From f75757962f00028c9db3a4df8825044a99636088 Mon Sep 17 00:00:00 2001 From: TheBestNom Date: Mon, 8 May 2023 23:37:44 +0300 Subject: [PATCH] Publish 2.0.4 --- dist/defaults.d.ts | 1 + dist/neovis-without-dependencies.js | 2 +- dist/neovis-without-dependencies.js.map | 2 +- dist/neovis.js | 2 +- dist/neovis.js.map | 2 +- dist/types.d.ts | 5 +++ docs/assets/search.js | 2 +- docs/classes/EventController.html | 8 ++-- docs/classes/NeoVis.html | 34 ++++++++--------- docs/enums/NeoVisEvents.html | 10 ++--- docs/functions/migrateFromOldConfig.html | 2 +- docs/functions/objectToTitleHtml.html | 2 +- docs/functions/objectToTitleString.html | 2 +- docs/interfaces/BaseNeovisConfig.html | 28 ++++++++++---- docs/interfaces/Edge.html | 6 +-- docs/interfaces/EventFunctionTypes.html | 10 ++--- docs/interfaces/LabelConfig.html | 4 +- docs/interfaces/Neo4jConfig.html | 10 ++--- docs/interfaces/NeoVisAdvanceConfig.html | 8 ++-- docs/interfaces/NeovisConfig.html | 33 ++++++++++++----- docs/interfaces/Node.html | 6 +-- .../NonFlatNeoVisAdvanceConfig.html | 10 ++--- docs/interfaces/NonFlatNeovisConfig.html | 37 +++++++++++++------ docs/interfaces/OldLabelConfig.html | 16 ++++---- docs/interfaces/OldNeoVisConfig.html | 30 +++++++-------- docs/interfaces/OldRelationshipConfig.html | 6 +-- docs/interfaces/RelationshipConfig.html | 4 +- docs/types/Cypher.html | 2 +- docs/types/NeovisDataConfig.html | 2 +- docs/types/NonFlatLabelConfig.html | 2 +- docs/types/NonFlatRelationsipConfig.html | 2 +- docs/types/NumberOrInteger.html | 2 +- docs/types/RecursiveMapTo.html | 2 +- docs/types/RecursiveMapToDist.html | 2 +- docs/types/RecursiveMapToFunction.html | 2 +- docs/types/RecursiveMapToFunctionDist.html | 2 +- docs/variables/NEOVIS_ADVANCED_CONFIG.html | 2 +- docs/variables/NEOVIS_DEFAULT_CONFIG.html | 2 +- package.json | 2 +- 39 files changed, 175 insertions(+), 131 deletions(-) diff --git a/dist/defaults.d.ts b/dist/defaults.d.ts index 6c8e70d..f1f5fc6 100644 --- a/dist/defaults.d.ts +++ b/dist/defaults.d.ts @@ -11,6 +11,7 @@ declare const defaults: { connectionAcquisitionTimeout: number; disableLosslessIntegers: boolean; }; + groupAsLabel: boolean; }; visJs: { nodes: { diff --git a/dist/neovis-without-dependencies.js b/dist/neovis-without-dependencies.js index a51a2ef..a2e7b3c 100644 --- a/dist/neovis-without-dependencies.js +++ b/dist/neovis-without-dependencies.js @@ -1,2 +1,2 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/helpers/classPrivateFieldSet"),require("@babel/runtime-corejs3/helpers/classPrivateFieldGet"),require("@babel/runtime-corejs3/core-js-stable/array/is-array"),require("@babel/runtime-corejs3/core-js-stable/object/keys"),require("@babel/runtime-corejs3/core-js-stable/instance/map"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/instance/reduce"),require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("@babel/runtime-corejs3/core-js-stable/object/entries"),require("@babel/runtime-corejs3/core-js-stable/weak-map"),require("@babel/runtime-corejs3/core-js-stable/weak-set"),require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),require("neo4j-driver"),require("neo4j-driver-core"),require("vis-network/standalone"),require("deepmerge"),require("@babel/runtime-corejs3/core-js-stable/symbol")):"function"==typeof define&&define.amd?define(["@babel/runtime-corejs3/helpers/defineProperty","@babel/runtime-corejs3/helpers/classPrivateFieldSet","@babel/runtime-corejs3/helpers/classPrivateFieldGet","@babel/runtime-corejs3/core-js-stable/array/is-array","@babel/runtime-corejs3/core-js-stable/object/keys","@babel/runtime-corejs3/core-js-stable/instance/map","@babel/runtime-corejs3/core-js-stable/promise","@babel/runtime-corejs3/core-js-stable/set-timeout","@babel/runtime-corejs3/core-js-stable/instance/reduce","@babel/runtime-corejs3/core-js-stable/instance/concat","@babel/runtime-corejs3/core-js-stable/object/entries","@babel/runtime-corejs3/core-js-stable/weak-map","@babel/runtime-corejs3/core-js-stable/weak-set","@babel/runtime-corejs3/core-js-stable/instance/for-each","neo4j-driver","neo4j-driver-core","vis-network/standalone","deepmerge","@babel/runtime-corejs3/core-js-stable/symbol"],t):"object"==typeof exports?exports.NeoVis=t(require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/helpers/classPrivateFieldSet"),require("@babel/runtime-corejs3/helpers/classPrivateFieldGet"),require("@babel/runtime-corejs3/core-js-stable/array/is-array"),require("@babel/runtime-corejs3/core-js-stable/object/keys"),require("@babel/runtime-corejs3/core-js-stable/instance/map"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/instance/reduce"),require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("@babel/runtime-corejs3/core-js-stable/object/entries"),require("@babel/runtime-corejs3/core-js-stable/weak-map"),require("@babel/runtime-corejs3/core-js-stable/weak-set"),require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),require("neo4j-driver"),require("neo4j-driver-core"),require("vis-network/standalone"),require("deepmerge"),require("@babel/runtime-corejs3/core-js-stable/symbol")):e.NeoVis=t(e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0])}(self,((e,t,r,i,s,o,n,a,l,c,h,d,u,b,p,f,j,v,m)=>(()=>{"use strict";var w={852:e=>{e.exports=i},848:e=>{e.exports=c},349:e=>{e.exports=b},820:e=>{e.exports=o},83:e=>{e.exports=l},209:e=>{e.exports=h},995:e=>{e.exports=s},723:e=>{e.exports=n},519:e=>{e.exports=a},581:e=>{e.exports=m},317:e=>{e.exports=d},483:e=>{e.exports=u},779:e=>{e.exports=r},642:e=>{e.exports=t},783:t=>{t.exports=e},613:e=>{e.exports=v},949:e=>{e.exports=p},55:e=>{e.exports=f},365:e=>{e.exports=j}},g={};function y(e){var t=g[e];if(void 0!==t)return t.exports;var r=g[e]={exports:{}};return w[e](r,r.exports,y),r.exports}y.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return y.d(t,{a:t}),t},y.d=(e,t)=>{for(var r in t)y.o(t,r)&&!y.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},y.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var E={};return(()=>{y.r(E),y.d(E,{EventController:()=>P,NEOVIS_ADVANCED_CONFIG:()=>H,NEOVIS_DEFAULT_CONFIG:()=>M,NeoVis:()=>je,NeoVisEvents:()=>D,default:()=>xe,migrateFromOldConfig:()=>ke,objectToTitleHtml:()=>Q,objectToTitleString:()=>Y});var e=y(783),t=y.n(e),r=y(642),i=y.n(r),s=y(779),o=y.n(s),n=y(852),a=y.n(n),l=y(995),c=y.n(l),h=y(820),d=y.n(h),u=y(723),b=y.n(u),p=y(519),f=y.n(p),j=y(83),v=y.n(j),m=y(848),w=y.n(m),g=y(209),C=y.n(g),N=y(317),q=y.n(N),I=y(483),_=y.n(I),k=y(349),x=y.n(k),T=y(949),A=y.n(T),S=y(55),O=y(365);const F={neo4j:{initialQuery:"MATCH (n) WHERE exists(n.pagerank)\n WITH (n), RAND() AS random\n ORDER BY random LIMIT 3000\n OPTIONAL MATCH (n)-[r]-(m)\n //WITH n,r,m WHERE exists(n.pagerank) AND exists(m.pagerank) AND exists(m.community)\n RETURN n, r, m;",neo4jUri:"bolt://localhost:7687",neo4jUser:"neo4j",neo4jPassword:"neo4j",driverConfig:{encrypted:"ENCRYPTION_OFF",trust:"TRUST_ALL_CERTIFICATES",maxConnectionPoolSize:100,connectionAcquisitionTimeout:1e4,disableLosslessIntegers:!0}},visJs:{nodes:{font:{size:26,strokeWidth:7},scaling:{}},edges:{arrows:{to:{enabled:!1}},length:200},layout:{improvedLayout:!1,hierarchical:{enabled:!1,sortMethod:"hubsize"}},physics:{adaptiveTimestep:!0,stabilization:{iterations:200,fit:!0}}}};let D=function(e){return e.CompletionEvent="completed",e.ClickNodeEvent="clickNode",e.ClickEdgeEvent="clickEdge",e.ErrorEvent="error",e}({});class P{constructor(){t()(this,"_handlers",void 0),this._handlers={[D.CompletionEvent]:[],[D.ErrorEvent]:[],[D.ClickNodeEvent]:[],[D.ClickEdgeEvent]:[]}}register(e,t){if(void 0===this._handlers[e])throw new Error("Unknown event: "+e);this._handlers[e].push(t)}generateEvent(e,t){if(void 0===this._handlers[e])throw new Error("Unknown event: "+e);for(const r of this._handlers[e])r(t)}}var R=y(613),U=y.n(R),V=y(581),L=y.n(V);const M=L()(),H=L()();function z(e,t){W(e,t),t.add(e)}function G(e,t,r){W(e,t),t.set(e,r)}function W(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function $(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return r}function B(e,t){if(a()(t)&&t.length>1){let r=`${e}:
"}return`${e}: ${t}
`}function J(e,t){if("object"==typeof t?.properties)return(0,S.isInt)(t.properties[e])?t.properties[e].toInt():t.properties[e];throw new Error("Neo4j object is not properly constructed")}function Q(e,t){let r="";t||(t=c()(e.properties));for(const i of t){const t=J(i,e);t&&(r+=B(i,t))}const i=document.createElement("div");return i.innerHTML=r,i}function Y(e,t){let r="";t||(t=c()(e.properties));for(const i of t){const t=J(i,e);t&&(r+=`${i}: ${t}\n`)}return r}var K=new(q()),X=new(q()),Z=new(q()),ee=new(q()),te=new(q()),re=new(q()),ie=new(q()),se=new(q()),oe=new(_()),ne=new(_()),ae=new(_()),le=new(_()),ce=new(_()),he=new(_()),de=new(_()),ue=new(_()),be=new(_()),pe=new(_()),fe=new(_());class je{get nodes(){return o()(this,K).nodes}get edges(){return o()(this,K).edges}get _config(){return o()(this,ee)}get network(){return o()(this,X)}constructor(e){z(this,fe),z(this,pe),z(this,be),z(this,ue),z(this,de),z(this,he),z(this,ce),z(this,le),z(this,ae),z(this,ne),z(this,oe),G(this,K,{writable:!0,value:{nodes:new O.DataSet,edges:new O.DataSet}}),G(this,X,{writable:!0,value:null}),G(this,Z,{writable:!0,value:new P}),G(this,ee,{writable:!0,value:void 0}),G(this,te,{writable:!0,value:void 0}),G(this,re,{writable:!0,value:void 0}),G(this,ie,{writable:!0,value:void 0}),G(this,se,{writable:!0,value:void 0}),$(this,ne,me).call(this,e),$(this,oe,ve).call(this,e),$(this,oe,ve).call(this,F)}render(e){let t=0;const r=e||o()(this,ie),s=o()(this,te).session(o()(this,re)?{database:o()(this,re)}:void 0),n=[];s.run(r,{limit:30}).subscribe({onNext:e=>{t++,$(this,oe,ve).call(this,"CLASS NAME"),$(this,oe,ve).call(this,e?.constructor.name),$(this,oe,ve).call(this,e);const r=d()(e).call(e,(async e=>{if($(this,oe,ve).call(this,"Constructor:"),$(this,oe,ve).call(this,e?.constructor.name),(0,S.isNode)(e)){const t=await $(this,pe,Ie).call(this,e);try{o()(this,K).nodes.update(t)}catch(e){$(this,oe,ve).call(this,e,"error")}}else if((0,S.isRelationship)(e)){const t=await $(this,fe,_e).call(this,e);o()(this,K).edges.update(t)}else if((0,S.isPath)(e)){$(this,oe,ve).call(this,"PATH"),$(this,oe,ve).call(this,e);const t=await $(this,pe,Ie).call(this,e.start),r=await $(this,pe,Ie).call(this,e.end);o()(this,K).nodes.update(t),o()(this,K).nodes.update(r);for(const t of e.segments)o()(this,K).nodes.update(await $(this,pe,Ie).call(this,t.start)),o()(this,K).nodes.update(await $(this,pe,Ie).call(this,t.end)),o()(this,K).edges.update(await $(this,fe,_e).call(this,t.relationship))}else if(a()(e))for(const t of e)if($(this,oe,ve).call(this,"Array element constructor:"),$(this,oe,ve).call(this,t?.constructor.name),(0,S.isNode)(t)){const e=await $(this,pe,Ie).call(this,t);o()(this,K).nodes.update(e)}else if((0,S.isRelationship)(t)){const e=await $(this,fe,_e).call(this,t);o()(this,K).edges.update(e)}}));n.push(b().all(r))},onCompleted:async()=>{if(await b().all(n),await s.close(),!o()(this,X)){const e=U()(F.visJs,o()(this,ee).visConfig??{}),t=o()(this,se);$(this,oe,ve).call(this,o()(this,K).nodes),$(this,oe,ve).call(this,o()(this,K).edges),i()(this,X,new O.Network(t,o()(this,K),e))}$(this,oe,ve).call(this,"completed"),f()((()=>{o()(this,X).stopSimulation()}),1e4),o()(this,Z).generateEvent(D.CompletionEvent,{recordCount:t});const e=this;o()(this,X).on("click",(function(t){if(t.nodes.length>0){const r=this.getNodeAt(t.pointer.DOM);o()(e,Z).generateEvent(D.ClickNodeEvent,{nodeId:r,node:o()(e,K).nodes.get(r)})}else if(t.edges.length>0){const r=this.getEdgeAt(t.pointer.DOM);o()(e,Z).generateEvent(D.ClickEdgeEvent,{edgeId:r,edge:o()(e,K).edges.get(r)})}}))},onError:e=>{$(this,oe,ve).call(this,e,"error"),o()(this,Z).generateEvent(D.ErrorEvent,{error:e})}})}clearNetwork(){o()(this,K).nodes.clear(),o()(this,K).edges.clear()}registerOnEvent(e,t){o()(this,Z).register(e,t)}reinit(e){$(this,ne,me).call(this,e),this.render()}reload(){this.clearNetwork(),this.render()}stabilize(){o()(this,X).stopSimulation(),$(this,oe,ve).call(this,"Calling stopSimulation")}renderWithCypher(e){this.clearNetwork(),i()(this,ie,e),this.render()}updateWithCypher(e){this.render(e)}}function ve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";("log"!==t||o()(this,ee).consoleDebug)&&console[t](e)}function me(e){let t,r;if(e.nonFlat&&e.defaultLabelConfig){if(t=e.defaultLabelConfig,t[H])throw new Error("non flat config can't use NEOVIS_ADVANCED_CONFIG, read the doc to see how the config should look");if(r=e.defaultRelationshipsConfig,r[H])throw new Error("non flat config can't use NEOVIS_ADVANCED_CONFIG, read the doc to see how the config should look")}else t=e.labels?.[M],r=e.relationships?.[M];if(t)for(const r of c()(e.labels))e=e.nonFlat?{...e,labels:{...e.labels,[r]:U()(t,e.labels?.[r])}}:{...e,labels:{...e.labels,[r]:{...U()(t,e.labels?.[r]),[H]:U()(t[H]??{},(e.labels?.[r])[H]??{})}}};if(r)for(const t of c()(e.relationships))e=e.nonFlat?{...e,relationships:{...e.relationships,[t]:U()(r,e.relationships?.[t])}}:{...e,relationships:{...e.relationships,[t]:{...U()(r,e.relationships?.[t]),[H]:U()(r[H]??{},(e.relationships?.[t])[H]??{})}}};i()(this,ee,e),i()(this,te,e.neo4j instanceof A().driver?e.neo4j:A().driver(e.neo4j?.serverUrl??F.neo4j.neo4jUri,A().auth.basic(e.neo4j?.serverUser??F.neo4j.neo4jUser,e.neo4j?.serverPassword??F.neo4j.neo4jPassword),U()(F.neo4j.driverConfig,e.neo4j?.driverConfig??{}))),i()(this,re,e.serverDatabase),i()(this,ie,e.initialCypher??F.neo4j.initialQuery),i()(this,se,document.getElementById(e.containerId))}async function we(e,t){const r=o()(this,te).session(o()(this,re)&&{database:o()(this,re)}),i=[];try{const s=await r.readTransaction((r=>r.run(e,{id:t})));for(const e of s.records)x()(e).call(e,(e=>{i.push(e)}))}finally{await r.close()}if(0!==i.length)return 1===i.length?i.pop():i}function ge(e,t){if("function"==typeof e)return e(t);throw new Error("Function type property field must be a function")}function ye(e,t){if(e&&"object"==typeof e)for(const r of c()(e)){const i=e[r];i&&"object"==typeof i?(t[r]||(t[r]={}),$(this,ce,ye).call(this,i,t[r])):t[r]=i}}function Ee(e,t,r){if(e&&"object"==typeof e)for(const i of c()(e)){const s=e[i];if("object"==typeof s)t[i]||(t[i]={}),$(this,he,Ee).call(this,s,t[i],r);else{const s=e[i];t[i]=J(s,r)}}}function*Ce(e,t,r){if(e&&"object"==typeof e)for(const i of c()(e)){const s=e[i];if(s&&"object"==typeof s)t[i]||(t[i]={}),yield*$(this,de,Ce).call(this,s,t[i],r);else{const e=$(this,ae,we).call(this,s,r);yield b().resolve(e).then((e=>{t[i]=e}))}}}function*Ne(e,t,r){if(e&&"object"==typeof e)for(const i of c()(e)){const s=e[i];if(s&&"object"==typeof s)t[i]||(t[i]={}),yield*$(this,ue,Ne).call(this,s,t[i],r);else{const e=$(this,le,ge).call(this,s,r);yield b().resolve(e).then((e=>{t[i]=e}))}}}async function qe(e,t,r,i){if(!e)return;let s,n,a,l;if(o()(this,ee).nonFlat){if(void 0!==e[H])throw new Error("Advanced config and non flat config should not be together");s=e.static,n=e.cypher,a=e.property,l=e.function}else{const t=e[H];if(a=e,void 0!==t&&"object"!=typeof t)throw new Error("Advanced config should be an object. See documentation for details.");n=t?.cypher,s=t?.static,l=t?.function}$(this,he,Ee).call(this,a,t,r),$(this,ce,ye).call(this,s,t),await b().all($(this,de,Ce).call(this,n,t,i)),await b().all($(this,ue,Ne).call(this,l,t,r))}async function Ie(e){const t={},r=e.labels[0],i=o()(this,ee)?.labels?.[r]??o()(this,ee)?.defaultLabelConfig??o()(this,ee)?.labels?.[M];return t.id=(0,S.isInt)(e.identity)?e.identity.toInt():e.identity,t.raw=e,await $(this,be,qe).call(this,i,t,e,t.id),t}async function _e(e){const t=o()(this,ee)?.relationships?.[e.type]??o()(this,ee).defaultRelationshipsConfig??o()(this,ee)?.relationships?.[M],r={};return r.id=(0,S.isInt)(e.identity)?e.identity.toInt():e.identity,r.from=(0,S.isInt)(e.start)?e.start.toInt():e.start,r.to=(0,S.isInt)(e.end)?e.end.toInt():e.end,r.raw=e,await $(this,be,qe).call(this,t,r,e,r.id),r}function ke(e){var t,r,i,s;return{containerId:e.container_id,initialCypher:e.initial_cypher,consoleDebug:e.console_debug,serverDatabase:e.server_database,neo4j:{serverUrl:e.server_url,serverUser:e.server_user,serverPassword:e.server_password,driverConfig:e.encrypted||e.trust?{encrypted:e.encrypted,trust:e.trust}:void 0},visConfig:e.arrows||e.hierarchical?{edges:e.arrows?{arrows:{to:{enabled:e.arrows}}}:void 0,layout:e.hierarchical?{enabled:e.hierarchical,sortMethod:e.hierarchical_sort_method}:void 0}:void 0,labels:e.labels?v()(t=w()(r=C()(e.labels)).call(r,e.labels?.[M]?[[M,e.labels[M]]]:[])).call(t,((e,t)=>{let[r,i]=t;return e[r]={label:"function"!=typeof i.caption?i.caption:void 0,value:i.size,group:i.community,[H]:{cypher:i.sizeCypher?{value:i.sizeCypher}:void 0,function:U()({title:e=>Q(e,i.title_properties)},"function"==typeof i.caption?{label:i.caption}:{}),static:{font:i.font,shape:i.image?"image":"dot",image:i.image}}},e}),{}):void 0,relationships:e.relationships?v()(i=w()(s=C()(e.relationships)).call(s,e.relationships[M]?[[M,e.relationships[M]]]:[])).call(i,((e,t)=>{let[r,i]=t;return e[r]={value:i.thickness,label:"string"==typeof i.caption?i.caption:void 0,[H]:{function:{title:Q}}},e}),{}):void 0}}t()(je,"NEOVIS_DEFAULT_CONFIG",M),t()(je,"NEOVIS_ADVANCED_CONFIG",H),t()(je,"objectToTitleHtml",Q),t()(je,"objectToTitleString",Y);const xe=je})(),E})())); +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/helpers/classPrivateFieldSet"),require("@babel/runtime-corejs3/helpers/classPrivateFieldGet"),require("@babel/runtime-corejs3/core-js-stable/array/is-array"),require("@babel/runtime-corejs3/core-js-stable/object/keys"),require("@babel/runtime-corejs3/core-js-stable/instance/map"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/instance/reduce"),require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("@babel/runtime-corejs3/core-js-stable/object/entries"),require("@babel/runtime-corejs3/core-js-stable/weak-map"),require("@babel/runtime-corejs3/core-js-stable/weak-set"),require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),require("neo4j-driver"),require("neo4j-driver-core"),require("vis-network/standalone"),require("deepmerge"),require("@babel/runtime-corejs3/core-js-stable/symbol")):"function"==typeof define&&define.amd?define(["@babel/runtime-corejs3/helpers/defineProperty","@babel/runtime-corejs3/helpers/classPrivateFieldSet","@babel/runtime-corejs3/helpers/classPrivateFieldGet","@babel/runtime-corejs3/core-js-stable/array/is-array","@babel/runtime-corejs3/core-js-stable/object/keys","@babel/runtime-corejs3/core-js-stable/instance/map","@babel/runtime-corejs3/core-js-stable/promise","@babel/runtime-corejs3/core-js-stable/set-timeout","@babel/runtime-corejs3/core-js-stable/instance/reduce","@babel/runtime-corejs3/core-js-stable/instance/concat","@babel/runtime-corejs3/core-js-stable/object/entries","@babel/runtime-corejs3/core-js-stable/weak-map","@babel/runtime-corejs3/core-js-stable/weak-set","@babel/runtime-corejs3/core-js-stable/instance/for-each","neo4j-driver","neo4j-driver-core","vis-network/standalone","deepmerge","@babel/runtime-corejs3/core-js-stable/symbol"],t):"object"==typeof exports?exports.NeoVis=t(require("@babel/runtime-corejs3/helpers/defineProperty"),require("@babel/runtime-corejs3/helpers/classPrivateFieldSet"),require("@babel/runtime-corejs3/helpers/classPrivateFieldGet"),require("@babel/runtime-corejs3/core-js-stable/array/is-array"),require("@babel/runtime-corejs3/core-js-stable/object/keys"),require("@babel/runtime-corejs3/core-js-stable/instance/map"),require("@babel/runtime-corejs3/core-js-stable/promise"),require("@babel/runtime-corejs3/core-js-stable/set-timeout"),require("@babel/runtime-corejs3/core-js-stable/instance/reduce"),require("@babel/runtime-corejs3/core-js-stable/instance/concat"),require("@babel/runtime-corejs3/core-js-stable/object/entries"),require("@babel/runtime-corejs3/core-js-stable/weak-map"),require("@babel/runtime-corejs3/core-js-stable/weak-set"),require("@babel/runtime-corejs3/core-js-stable/instance/for-each"),require("neo4j-driver"),require("neo4j-driver-core"),require("vis-network/standalone"),require("deepmerge"),require("@babel/runtime-corejs3/core-js-stable/symbol")):e.NeoVis=t(e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0],e[void 0])}(self,((e,t,r,s,i,o,n,a,l,c,h,d,u,b,p,f,j,v,m)=>(()=>{"use strict";var g={852:e=>{e.exports=s},848:e=>{e.exports=c},349:e=>{e.exports=b},820:e=>{e.exports=o},83:e=>{e.exports=l},209:e=>{e.exports=h},995:e=>{e.exports=i},723:e=>{e.exports=n},519:e=>{e.exports=a},581:e=>{e.exports=m},317:e=>{e.exports=d},483:e=>{e.exports=u},779:e=>{e.exports=r},642:e=>{e.exports=t},783:t=>{t.exports=e},613:e=>{e.exports=v},949:e=>{e.exports=p},55:e=>{e.exports=f},365:e=>{e.exports=j}},w={};function y(e){var t=w[e];if(void 0!==t)return t.exports;var r=w[e]={exports:{}};return g[e](r,r.exports,y),r.exports}y.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return y.d(t,{a:t}),t},y.d=(e,t)=>{for(var r in t)y.o(t,r)&&!y.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},y.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var E={};return(()=>{y.r(E),y.d(E,{EventController:()=>P,NEOVIS_ADVANCED_CONFIG:()=>H,NEOVIS_DEFAULT_CONFIG:()=>M,NeoVis:()=>je,NeoVisEvents:()=>D,default:()=>xe,migrateFromOldConfig:()=>ke,objectToTitleHtml:()=>Q,objectToTitleString:()=>Y});var e=y(783),t=y.n(e),r=y(642),s=y.n(r),i=y(779),o=y.n(i),n=y(852),a=y.n(n),l=y(995),c=y.n(l),h=y(820),d=y.n(h),u=y(723),b=y.n(u),p=y(519),f=y.n(p),j=y(83),v=y.n(j),m=y(848),g=y.n(m),w=y(209),C=y.n(w),N=y(317),q=y.n(N),I=y(483),_=y.n(I),k=y(349),x=y.n(k),A=y(949),T=y.n(A),S=y(55),O=y(365);const F={neo4j:{initialQuery:"MATCH (n) WHERE exists(n.pagerank)\n WITH (n), RAND() AS random\n ORDER BY random LIMIT 3000\n OPTIONAL MATCH (n)-[r]-(m)\n //WITH n,r,m WHERE exists(n.pagerank) AND exists(m.pagerank) AND exists(m.community)\n RETURN n, r, m;",neo4jUri:"bolt://localhost:7687",neo4jUser:"neo4j",neo4jPassword:"neo4j",driverConfig:{encrypted:"ENCRYPTION_OFF",trust:"TRUST_ALL_CERTIFICATES",maxConnectionPoolSize:100,connectionAcquisitionTimeout:1e4,disableLosslessIntegers:!0},groupAsLabel:!0},visJs:{nodes:{font:{size:26,strokeWidth:7},scaling:{}},edges:{arrows:{to:{enabled:!1}},length:200},layout:{improvedLayout:!1,hierarchical:{enabled:!1,sortMethod:"hubsize"}},physics:{adaptiveTimestep:!0,stabilization:{iterations:200,fit:!0}}}};let D=function(e){return e.CompletionEvent="completed",e.ClickNodeEvent="clickNode",e.ClickEdgeEvent="clickEdge",e.ErrorEvent="error",e}({});class P{constructor(){t()(this,"_handlers",void 0),this._handlers={[D.CompletionEvent]:[],[D.ErrorEvent]:[],[D.ClickNodeEvent]:[],[D.ClickEdgeEvent]:[]}}register(e,t){if(void 0===this._handlers[e])throw new Error("Unknown event: "+e);this._handlers[e].push(t)}generateEvent(e,t){if(void 0===this._handlers[e])throw new Error("Unknown event: "+e);for(const r of this._handlers[e])r(t)}}var L=y(613),R=y.n(L),U=y(581),V=y.n(U);const M=V()(),H=V()();function z(e,t){W(e,t),t.add(e)}function G(e,t,r){W(e,t),t.set(e,r)}function W(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function $(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return r}function B(e,t){if(a()(t)&&t.length>1){let r=`${e}:
"}return`${e}: ${t}
`}function J(e,t){if("object"==typeof t?.properties)return(0,S.isInt)(t.properties[e])?t.properties[e].toInt():t.properties[e];throw new Error("Neo4j object is not properly constructed")}function Q(e,t){let r="";t||(t=c()(e.properties));for(const s of t){const t=J(s,e);t&&(r+=B(s,t))}const s=document.createElement("div");return s.innerHTML=r,s}function Y(e,t){let r="";t||(t=c()(e.properties));for(const s of t){const t=J(s,e);t&&(r+=`${s}: ${t}\n`)}return r}var K=new(q()),X=new(q()),Z=new(q()),ee=new(q()),te=new(q()),re=new(q()),se=new(q()),ie=new(q()),oe=new(_()),ne=new(_()),ae=new(_()),le=new(_()),ce=new(_()),he=new(_()),de=new(_()),ue=new(_()),be=new(_()),pe=new(_()),fe=new(_());class je{get nodes(){return o()(this,K).nodes}get edges(){return o()(this,K).edges}get _config(){return o()(this,ee)}get network(){return o()(this,X)}constructor(e){z(this,fe),z(this,pe),z(this,be),z(this,ue),z(this,de),z(this,he),z(this,ce),z(this,le),z(this,ae),z(this,ne),z(this,oe),G(this,K,{writable:!0,value:{nodes:new O.DataSet,edges:new O.DataSet}}),G(this,X,{writable:!0,value:null}),G(this,Z,{writable:!0,value:new P}),G(this,ee,{writable:!0,value:void 0}),G(this,te,{writable:!0,value:void 0}),G(this,re,{writable:!0,value:void 0}),G(this,se,{writable:!0,value:void 0}),G(this,ie,{writable:!0,value:void 0}),$(this,ne,me).call(this,e),$(this,oe,ve).call(this,e),$(this,oe,ve).call(this,F)}render(e){let t=0;const r=e||o()(this,se),i=o()(this,te).session(o()(this,re)?{database:o()(this,re)}:void 0),n=[];i.run(r,{limit:30}).subscribe({onNext:e=>{t++,$(this,oe,ve).call(this,"CLASS NAME"),$(this,oe,ve).call(this,e?.constructor.name),$(this,oe,ve).call(this,e);const r=d()(e).call(e,(async e=>{if($(this,oe,ve).call(this,"Constructor:"),$(this,oe,ve).call(this,e?.constructor.name),(0,S.isNode)(e)){const t=await $(this,pe,Ie).call(this,e);try{o()(this,K).nodes.update(t)}catch(e){$(this,oe,ve).call(this,e,"error")}}else if((0,S.isRelationship)(e)){const t=await $(this,fe,_e).call(this,e);o()(this,K).edges.update(t)}else if((0,S.isPath)(e)){$(this,oe,ve).call(this,"PATH"),$(this,oe,ve).call(this,e);const t=await $(this,pe,Ie).call(this,e.start),r=await $(this,pe,Ie).call(this,e.end);o()(this,K).nodes.update(t),o()(this,K).nodes.update(r);for(const t of e.segments)o()(this,K).nodes.update(await $(this,pe,Ie).call(this,t.start)),o()(this,K).nodes.update(await $(this,pe,Ie).call(this,t.end)),o()(this,K).edges.update(await $(this,fe,_e).call(this,t.relationship))}else if(a()(e))for(const t of e)if($(this,oe,ve).call(this,"Array element constructor:"),$(this,oe,ve).call(this,t?.constructor.name),(0,S.isNode)(t)){const e=await $(this,pe,Ie).call(this,t);o()(this,K).nodes.update(e)}else if((0,S.isRelationship)(t)){const e=await $(this,fe,_e).call(this,t);o()(this,K).edges.update(e)}}));n.push(b().all(r))},onCompleted:async()=>{if(await b().all(n),await i.close(),!o()(this,X)){const e=R()(F.visJs,o()(this,ee).visConfig??{}),t=o()(this,ie);$(this,oe,ve).call(this,o()(this,K).nodes),$(this,oe,ve).call(this,o()(this,K).edges),s()(this,X,new O.Network(t,o()(this,K),e))}$(this,oe,ve).call(this,"completed"),f()((()=>{o()(this,X).stopSimulation()}),1e4),o()(this,Z).generateEvent(D.CompletionEvent,{recordCount:t});const e=this;o()(this,X).on("click",(function(t){if(t.nodes.length>0){const r=this.getNodeAt(t.pointer.DOM);o()(e,Z).generateEvent(D.ClickNodeEvent,{nodeId:r,node:o()(e,K).nodes.get(r)})}else if(t.edges.length>0){const r=this.getEdgeAt(t.pointer.DOM);o()(e,Z).generateEvent(D.ClickEdgeEvent,{edgeId:r,edge:o()(e,K).edges.get(r)})}}))},onError:e=>{$(this,oe,ve).call(this,e,"error"),o()(this,Z).generateEvent(D.ErrorEvent,{error:e})}})}clearNetwork(){o()(this,K).nodes.clear(),o()(this,K).edges.clear()}registerOnEvent(e,t){o()(this,Z).register(e,t)}reinit(e){$(this,ne,me).call(this,e),this.render()}reload(){this.clearNetwork(),this.render()}stabilize(){o()(this,X).stopSimulation(),$(this,oe,ve).call(this,"Calling stopSimulation")}renderWithCypher(e){this.clearNetwork(),s()(this,se,e),this.render()}updateWithCypher(e){this.render(e)}}function ve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";("log"!==t||o()(this,ee).consoleDebug)&&console[t](e)}function me(e){let t,r;if(e.nonFlat&&e.defaultLabelConfig){if(t=e.defaultLabelConfig,t[H])throw new Error("non flat config can't use NEOVIS_ADVANCED_CONFIG, read the doc to see how the config should look");if(r=e.defaultRelationshipsConfig,r[H])throw new Error("non flat config can't use NEOVIS_ADVANCED_CONFIG, read the doc to see how the config should look")}else t=e.labels?.[M],r=e.relationships?.[M];if(t)for(const r of c()(e.labels))e=e.nonFlat?{...e,labels:{...e.labels,[r]:R()(t,e.labels?.[r])}}:{...e,labels:{...e.labels,[r]:{...R()(t,e.labels?.[r]),[H]:R()(t[H]??{},(e.labels?.[r])[H]??{})}}};if(r)for(const t of c()(e.relationships))e=e.nonFlat?{...e,relationships:{...e.relationships,[t]:R()(r,e.relationships?.[t])}}:{...e,relationships:{...e.relationships,[t]:{...R()(r,e.relationships?.[t]),[H]:R()(r[H]??{},(e.relationships?.[t])[H]??{})}}};s()(this,ee,e),s()(this,te,e.neo4j instanceof T().driver?e.neo4j:T().driver(e.neo4j?.serverUrl??F.neo4j.neo4jUri,T().auth.basic(e.neo4j?.serverUser??F.neo4j.neo4jUser,e.neo4j?.serverPassword??F.neo4j.neo4jPassword),R()(F.neo4j.driverConfig,e.neo4j?.driverConfig??{}))),s()(this,re,e.serverDatabase),s()(this,se,e.initialCypher??F.neo4j.initialQuery),s()(this,ie,document.getElementById(e.containerId)),o()(this,ee).groupAsLabel=e.groupAsLabel??F.neo4j.groupAsLabel}async function ge(e,t){const r=o()(this,te).session(o()(this,re)&&{database:o()(this,re)}),s=[];try{const i=await r.readTransaction((r=>r.run(e,{id:t})));for(const e of i.records)x()(e).call(e,(e=>{s.push(e)}))}finally{await r.close()}if(0!==s.length)return 1===s.length?s.pop():s}function we(e,t){if("function"==typeof e)return e(t);throw new Error("Function type property field must be a function")}function ye(e,t){if(e&&"object"==typeof e)for(const r of c()(e)){const s=e[r];s&&"object"==typeof s?(t[r]||(t[r]={}),$(this,ce,ye).call(this,s,t[r])):t[r]=s}}function Ee(e,t,r){if(e&&"object"==typeof e)for(const s of c()(e)){const i=e[s];if("object"==typeof i)t[s]||(t[s]={}),$(this,he,Ee).call(this,i,t[s],r);else{const i=e[s];t[s]=J(i,r)}}}function*Ce(e,t,r){if(e&&"object"==typeof e)for(const s of c()(e)){const i=e[s];if(i&&"object"==typeof i)t[s]||(t[s]={}),yield*$(this,de,Ce).call(this,i,t[s],r);else{const e=$(this,ae,ge).call(this,i,r);yield b().resolve(e).then((e=>{t[s]=e}))}}}function*Ne(e,t,r){if(e&&"object"==typeof e)for(const s of c()(e)){const i=e[s];if(i&&"object"==typeof i)t[s]||(t[s]={}),yield*$(this,ue,Ne).call(this,i,t[s],r);else{const e=$(this,le,we).call(this,i,r);yield b().resolve(e).then((e=>{t[s]=e}))}}}async function qe(e,t,r,s){if(!e)return;let i,n,a,l;if(o()(this,ee).nonFlat){if(void 0!==e[H])throw new Error("Advanced config and non flat config should not be together");i=e.static,n=e.cypher,a=e.property,l=e.function}else{const t=e[H];if(a=e,void 0!==t&&"object"!=typeof t)throw new Error("Advanced config should be an object. See documentation for details.");n=t?.cypher,i=t?.static,l=t?.function}$(this,he,Ee).call(this,a,t,r),$(this,ce,ye).call(this,i,t),await b().all($(this,de,Ce).call(this,n,t,s)),await b().all($(this,ue,Ne).call(this,l,t,r))}async function Ie(e){const t={},r=e.labels[0],s=o()(this,ee)?.labels?.[r]??o()(this,ee)?.defaultLabelConfig??o()(this,ee)?.labels?.[M];return t.id=(0,S.isInt)(e.identity)?e.identity.toInt():e.identity,t.raw=e,o()(this,ee).groupAsLabel&&(t.group=r),await $(this,be,qe).call(this,s,t,e,t.id),t}async function _e(e){const t=o()(this,ee)?.relationships?.[e.type]??o()(this,ee).defaultRelationshipsConfig??o()(this,ee)?.relationships?.[M],r={};return r.id=(0,S.isInt)(e.identity)?e.identity.toInt():e.identity,r.from=(0,S.isInt)(e.start)?e.start.toInt():e.start,r.to=(0,S.isInt)(e.end)?e.end.toInt():e.end,r.raw=e,await $(this,be,qe).call(this,t,r,e,r.id),r}function ke(e){var t,r,s,i;return{containerId:e.container_id,initialCypher:e.initial_cypher,consoleDebug:e.console_debug,serverDatabase:e.server_database,neo4j:{serverUrl:e.server_url,serverUser:e.server_user,serverPassword:e.server_password,driverConfig:e.encrypted||e.trust?{encrypted:e.encrypted,trust:e.trust}:void 0},visConfig:e.arrows||e.hierarchical?{edges:e.arrows?{arrows:{to:{enabled:e.arrows}}}:void 0,layout:e.hierarchical?{enabled:e.hierarchical,sortMethod:e.hierarchical_sort_method}:void 0}:void 0,labels:e.labels?v()(t=g()(r=C()(e.labels)).call(r,e.labels?.[M]?[[M,e.labels[M]]]:[])).call(t,((e,t)=>{let[r,s]=t;return e[r]={label:"function"!=typeof s.caption?s.caption:void 0,value:s.size,group:s.community,[H]:{cypher:s.sizeCypher?{value:s.sizeCypher}:void 0,function:R()({title:e=>Q(e,s.title_properties)},"function"==typeof s.caption?{label:s.caption}:{}),static:{font:s.font,shape:s.image?"image":"dot",image:s.image}}},e}),{}):void 0,relationships:e.relationships?v()(s=g()(i=C()(e.relationships)).call(i,e.relationships[M]?[[M,e.relationships[M]]]:[])).call(s,((e,t)=>{let[r,s]=t;return e[r]={value:s.thickness,label:"string"==typeof s.caption?s.caption:void 0,[H]:{function:{title:Q}}},e}),{}):void 0}}t()(je,"NEOVIS_DEFAULT_CONFIG",M),t()(je,"NEOVIS_ADVANCED_CONFIG",H),t()(je,"objectToTitleHtml",Q),t()(je,"objectToTitleString",Y);const xe=je})(),E})())); //# sourceMappingURL=neovis-without-dependencies.js.map \ No newline at end of file diff --git a/dist/neovis-without-dependencies.js.map b/dist/neovis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C,QAAyB,CAAE3B,MAAO0B,EAAeC,SAAY,CAAC,GACvF/B,OAAQ,CACP/M,KAAM6O,EAAe7O,KACrBoP,MAAOP,EAAeQ,MAAQ,QAAU,MACxCA,MAAOR,EAAeQ,SAIlBV,CAAe,GACpB,CAAC,QAAKxS,EACVuO,cAAeiD,EAAgBjD,cAAgB8D,IAAAV,EAAAW,IAAAV,EAACW,IAAef,EAAgBjD,gBAAc7L,KAAAkP,EACpFJ,EAAgBjD,cAAcvI,GAAyB,CAAC,CAACA,EAAuBwL,EAAgBjD,cAAcvI,KAA2B,KAAGtD,KAAAiP,GAC5I,CAACa,EAAeW,KAA6C,IAA1CpH,EAAcqH,GAAuBD,EAU/D,OATAX,EAAgBzG,GAAgB,CAC/BjJ,MAAOsQ,EAAuBC,UAC9BrC,MAAiD,iBAAnCoC,EAAuBT,QAAuBS,EAAuBT,aAAU3S,EAC7F,CAACkG,GAAyB,CACzB2K,SAAU,CACT/I,MAAON,KAIHgL,CAAe,GACpB,CAAC,QAAKxS,EAEZ,CA9SEkF,IAjUWsE,GAAM,wBACaxD,GAAqBd,IADxCsE,GAAM,yBAEctD,GAAsBhB,IAF1CsE,GAAM,oBAGShC,GAAiBtC,IAHhCsE,GAAM,sBAIWtB,GA6mB9B,W","sources":["webpack://NeoVis/webpack/universalModuleDefinition","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/array/is-array\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/array/is-array\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/array/is-array\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/instance/concat\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/instance/concat\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/instance/concat\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/instance/for-each\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/instance/for-each\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/instance/for-each\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/instance/map\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/instance/map\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/instance/map\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/instance/reduce\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/instance/reduce\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/instance/reduce\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/object/entries\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/object/entries\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/object/entries\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/object/keys\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/object/keys\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/object/keys\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/promise\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/promise\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/promise\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/set-timeout\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/set-timeout\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/set-timeout\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/symbol\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/symbol\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/symbol\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/weak-map\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/weak-map\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/weak-map\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/weak-set\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/weak-set\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/weak-set\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/helpers/classPrivateFieldGet\",\"commonjs2\":\"@babel/runtime-corejs3/helpers/classPrivateFieldGet\",\"amd\":\"@babel/runtime-corejs3/helpers/classPrivateFieldGet\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/helpers/classPrivateFieldSet\",\"commonjs2\":\"@babel/runtime-corejs3/helpers/classPrivateFieldSet\",\"amd\":\"@babel/runtime-corejs3/helpers/classPrivateFieldSet\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/helpers/defineProperty\",\"commonjs2\":\"@babel/runtime-corejs3/helpers/defineProperty\",\"amd\":\"@babel/runtime-corejs3/helpers/defineProperty\"}","webpack://NeoVis/external umd {\"commonjs\":\"deepmerge\",\"commonjs2\":\"deepmerge\",\"amd\":\"deepmerge\"}","webpack://NeoVis/external umd {\"commonjs\":\"neo4j-driver\",\"commonjs2\":\"neo4j-driver\",\"amd\":\"neo4j-driver\"}","webpack://NeoVis/external umd {\"commonjs\":\"neo4j-driver-core\",\"commonjs2\":\"neo4j-driver-core\",\"amd\":\"neo4j-driver-core\"}","webpack://NeoVis/external umd {\"commonjs\":\"vis-network/standalone\",\"commonjs2\":\"vis-network/standalone\",\"amd\":\"vis-network/standalone\"}","webpack://NeoVis/webpack/bootstrap","webpack://NeoVis/webpack/runtime/compat get default export","webpack://NeoVis/webpack/runtime/define property getters","webpack://NeoVis/webpack/runtime/hasOwnProperty shorthand","webpack://NeoVis/webpack/runtime/make namespace object","webpack://NeoVis/./src/defaults.ts","webpack://NeoVis/./src/events.ts","webpack://NeoVis/./src/types.ts","webpack://NeoVis/./src/neovis.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@babel/runtime-corejs3/helpers/defineProperty\"), require(\"@babel/runtime-corejs3/helpers/classPrivateFieldSet\"), require(\"@babel/runtime-corejs3/helpers/classPrivateFieldGet\"), require(\"@babel/runtime-corejs3/core-js-stable/array/is-array\"), require(\"@babel/runtime-corejs3/core-js-stable/object/keys\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/map\"), require(\"@babel/runtime-corejs3/core-js-stable/promise\"), require(\"@babel/runtime-corejs3/core-js-stable/set-timeout\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/reduce\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/concat\"), require(\"@babel/runtime-corejs3/core-js-stable/object/entries\"), require(\"@babel/runtime-corejs3/core-js-stable/weak-map\"), require(\"@babel/runtime-corejs3/core-js-stable/weak-set\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/for-each\"), require(\"neo4j-driver\"), require(\"neo4j-driver-core\"), require(\"vis-network/standalone\"), require(\"deepmerge\"), require(\"@babel/runtime-corejs3/core-js-stable/symbol\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"@babel/runtime-corejs3/helpers/defineProperty\", \"@babel/runtime-corejs3/helpers/classPrivateFieldSet\", \"@babel/runtime-corejs3/helpers/classPrivateFieldGet\", \"@babel/runtime-corejs3/core-js-stable/array/is-array\", \"@babel/runtime-corejs3/core-js-stable/object/keys\", \"@babel/runtime-corejs3/core-js-stable/instance/map\", \"@babel/runtime-corejs3/core-js-stable/promise\", \"@babel/runtime-corejs3/core-js-stable/set-timeout\", \"@babel/runtime-corejs3/core-js-stable/instance/reduce\", \"@babel/runtime-corejs3/core-js-stable/instance/concat\", \"@babel/runtime-corejs3/core-js-stable/object/entries\", \"@babel/runtime-corejs3/core-js-stable/weak-map\", \"@babel/runtime-corejs3/core-js-stable/weak-set\", \"@babel/runtime-corejs3/core-js-stable/instance/for-each\", \"neo4j-driver\", \"neo4j-driver-core\", \"vis-network/standalone\", \"deepmerge\", \"@babel/runtime-corejs3/core-js-stable/symbol\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"NeoVis\"] = factory(require(\"@babel/runtime-corejs3/helpers/defineProperty\"), require(\"@babel/runtime-corejs3/helpers/classPrivateFieldSet\"), require(\"@babel/runtime-corejs3/helpers/classPrivateFieldGet\"), require(\"@babel/runtime-corejs3/core-js-stable/array/is-array\"), require(\"@babel/runtime-corejs3/core-js-stable/object/keys\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/map\"), require(\"@babel/runtime-corejs3/core-js-stable/promise\"), require(\"@babel/runtime-corejs3/core-js-stable/set-timeout\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/reduce\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/concat\"), require(\"@babel/runtime-corejs3/core-js-stable/object/entries\"), require(\"@babel/runtime-corejs3/core-js-stable/weak-map\"), require(\"@babel/runtime-corejs3/core-js-stable/weak-set\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/for-each\"), require(\"neo4j-driver\"), require(\"neo4j-driver-core\"), require(\"vis-network/standalone\"), require(\"deepmerge\"), require(\"@babel/runtime-corejs3/core-js-stable/symbol\"));\n\telse\n\t\troot[\"NeoVis\"] = factory(root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined]);\n})(self, (__WEBPACK_EXTERNAL_MODULE__783__, __WEBPACK_EXTERNAL_MODULE__642__, __WEBPACK_EXTERNAL_MODULE__779__, __WEBPACK_EXTERNAL_MODULE__852__, __WEBPACK_EXTERNAL_MODULE__995__, __WEBPACK_EXTERNAL_MODULE__820__, __WEBPACK_EXTERNAL_MODULE__723__, __WEBPACK_EXTERNAL_MODULE__519__, __WEBPACK_EXTERNAL_MODULE__83__, __WEBPACK_EXTERNAL_MODULE__848__, __WEBPACK_EXTERNAL_MODULE__209__, __WEBPACK_EXTERNAL_MODULE__317__, __WEBPACK_EXTERNAL_MODULE__483__, __WEBPACK_EXTERNAL_MODULE__349__, __WEBPACK_EXTERNAL_MODULE__949__, __WEBPACK_EXTERNAL_MODULE__55__, __WEBPACK_EXTERNAL_MODULE__365__, __WEBPACK_EXTERNAL_MODULE__613__, __WEBPACK_EXTERNAL_MODULE__581__) => {\nreturn ","module.exports = __WEBPACK_EXTERNAL_MODULE__852__;","module.exports = __WEBPACK_EXTERNAL_MODULE__848__;","module.exports = __WEBPACK_EXTERNAL_MODULE__349__;","module.exports = __WEBPACK_EXTERNAL_MODULE__820__;","module.exports = __WEBPACK_EXTERNAL_MODULE__83__;","module.exports = __WEBPACK_EXTERNAL_MODULE__209__;","module.exports = __WEBPACK_EXTERNAL_MODULE__995__;","module.exports = __WEBPACK_EXTERNAL_MODULE__723__;","module.exports = __WEBPACK_EXTERNAL_MODULE__519__;","module.exports = __WEBPACK_EXTERNAL_MODULE__581__;","module.exports = __WEBPACK_EXTERNAL_MODULE__317__;","module.exports = __WEBPACK_EXTERNAL_MODULE__483__;","module.exports = __WEBPACK_EXTERNAL_MODULE__779__;","module.exports = __WEBPACK_EXTERNAL_MODULE__642__;","module.exports = __WEBPACK_EXTERNAL_MODULE__783__;","module.exports = __WEBPACK_EXTERNAL_MODULE__613__;","module.exports = __WEBPACK_EXTERNAL_MODULE__949__;","module.exports = __WEBPACK_EXTERNAL_MODULE__55__;","module.exports = __WEBPACK_EXTERNAL_MODULE__365__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const defaults = {\r\n\r\n\tneo4j: {\r\n\t\tinitialQuery: `MATCH (n) WHERE exists(n.pagerank)\r\n WITH (n), RAND() AS random\r\n ORDER BY random LIMIT 3000\r\n OPTIONAL MATCH (n)-[r]-(m)\r\n //WITH n,r,m WHERE exists(n.pagerank) AND exists(m.pagerank) AND exists(m.community)\r\n RETURN n, r, m;`,\r\n\t\tneo4jUri: 'bolt://localhost:7687',\r\n\t\tneo4jUser: 'neo4j',\r\n\t\tneo4jPassword: 'neo4j',\r\n\t\tdriverConfig: {\r\n\t\t\tencrypted: 'ENCRYPTION_OFF',\r\n\t\t\ttrust: 'TRUST_ALL_CERTIFICATES',\r\n\t\t\tmaxConnectionPoolSize: 100,\r\n\t\t\tconnectionAcquisitionTimeout: 10000,\r\n\t\t\tdisableLosslessIntegers: true,\r\n\t\t}\r\n\t},\r\n\r\n\tvisJs: {\r\n\t\tnodes: {\r\n\t\t\tfont: {\r\n\t\t\t\tsize: 26,\r\n\t\t\t\tstrokeWidth: 7\r\n\t\t\t},\r\n\t\t\tscaling: {}\r\n\t\t},\r\n\t\tedges: {\r\n\t\t\tarrows: {\r\n\t\t\t\tto: { enabled: false }\r\n\t\t\t},\r\n\t\t\tlength: 200\r\n\t\t},\r\n\t\tlayout: {\r\n\t\t\timprovedLayout: false,\r\n\t\t\thierarchical: {\r\n\t\t\t\tenabled: false,\r\n\t\t\t\tsortMethod: 'hubsize'\r\n\t\t\t}\r\n\t\t},\r\n\t\tphysics: { // TODO: adaptive physics settings based on size of graph rendered\r\n\t\t\t// enabled: true,\r\n\t\t\t// timestep: 0.5,\r\n\t\t\t// stabilization: {\r\n\t\t\t// iterations: 10\r\n\t\t\t// }\r\n\r\n\t\t\tadaptiveTimestep: true,\r\n\t\t\t// barnesHut: {\r\n\t\t\t// gravitationalConstant: -8000,\r\n\t\t\t// springConstant: 0.04,\r\n\t\t\t// springLength: 95\r\n\t\t\t// },\r\n\t\t\tstabilization: {\r\n\t\t\t\titerations: 200,\r\n\t\t\t\tfit: true\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n\r\nexport { defaults };","import { Edge, Node } from './types';\r\n\r\nexport enum NeoVisEvents {\r\n\tCompletionEvent = 'completed',\r\n\tClickNodeEvent = 'clickNode',\r\n\tClickEdgeEvent = 'clickEdge',\r\n\tErrorEvent = 'error'\r\n}\r\n\r\nexport interface EventFunctionTypes {\r\n\t[NeoVisEvents.CompletionEvent]: (event: { recordCount: number }) => void;\r\n\t[NeoVisEvents.ClickNodeEvent]: (event: { nodeId: number, node: Node }) => void;\r\n\t[NeoVisEvents.ClickEdgeEvent]: (event: { edgeId: number, edge: Edge }) => void;\r\n\t[NeoVisEvents.ErrorEvent]: (event: { error: Error }) => void;\r\n}\r\n\r\nexport class EventController {\r\n\tprivate readonly _handlers: { [p: string]: Function[] };\r\n\r\n\tconstructor() {\r\n\t\tthis._handlers = {\r\n\t\t\t[NeoVisEvents.CompletionEvent]: [],\r\n\t\t\t[NeoVisEvents.ErrorEvent]: [],\r\n\t\t\t[NeoVisEvents.ClickNodeEvent]: [],\r\n\t\t\t[NeoVisEvents.ClickEdgeEvent]: [],\r\n\t\t};\r\n\t}\r\n\r\n\t/**\r\n\t *\r\n\t * @param eventType - Type of the event to be handled\r\n\t * @param handler - Handler to manage the event\r\n\t */\r\n\tregister(eventType: T, handler: EventFunctionTypes[T]): void {\r\n\t\tif (this._handlers[eventType] === undefined) {\r\n\t\t\tthrow new Error('Unknown event: ' + eventType);\r\n\t\t}\r\n\r\n\t\tthis._handlers[eventType].push(handler);\r\n\t}\r\n\r\n\t/**\r\n\t *\r\n\t * @param {string} eventType - Type of the event generated\r\n\t * @param {any} values - Values associated to the event\r\n\t */\r\n\tgenerateEvent(eventType: T, values: Parameters[0]): void {\r\n\t\tif (this._handlers[eventType] === undefined) {\r\n\t\t\tthrow new Error('Unknown event: ' + eventType);\r\n\t\t}\r\n\r\n\t\tfor (const handler of this._handlers[eventType]) {\r\n\t\t\thandler(values);\r\n\t\t}\r\n\t}\r\n}\r\n","import type * as Neo4jTypes from 'neo4j-driver';\r\nimport type * as VisNetwork from 'vis-network';\r\n\r\n\r\nexport const NEOVIS_DEFAULT_CONFIG = Symbol();\r\nexport const NEOVIS_ADVANCED_CONFIG = Symbol();\r\nexport type NumberOrInteger = number | Neo4jTypes.Integer;\r\n\r\nexport type RecursiveMapToDist = T extends object ? RecursiveMapTo : New\r\n\r\n/**\r\n * Maps a type recursively and replace each non object type with the new type\r\n * @param type to map\r\n * @param type to map to for each non object type\r\n */\r\nexport type RecursiveMapTo = { [P in keyof T]: RecursiveMapToDist }\r\n\r\nexport type RecursiveMapToFunctionDist = T extends object ? ((param: PARAM_TYPE) => T) | (RecursiveMapToFunction) : (param: PARAM_TYPE) => T\r\n/**\r\n * Maps a type recursively and adds the ability for each object property to be a function that returns the same type\r\n * but replace each non object type with a function that returns the same type\r\n * @param type to map\r\n * @param type of parameter the functions get\r\n */\r\nexport type RecursiveMapToFunction = {\r\n\t[P in keyof T]: RecursiveMapToFunctionDist\r\n};\r\n\r\n/**\r\n * Cypher quarry\r\n */\r\nexport type Cypher = string;\r\n\r\nexport interface NeoVisAdvanceConfig {\r\n\t/**\r\n\t * Static values that will the same for every node/relationship\r\n\t * */\r\n\tstatic?: VIS_TYPE;\r\n\t/**\r\n\t * Cypher that will be called for every object (will look the same as\r\n\t */\r\n\tcypher?: RecursiveMapTo;\r\n\tfunction?: RecursiveMapToFunction;\r\n}\r\n\r\nexport interface NonFlatNeoVisAdvanceConfig extends NeoVisAdvanceConfig {\r\n\tproperty?: RecursiveMapTo;\r\n}\r\n\r\nexport type NeovisDataConfig =\r\n\tRecursiveMapTo\r\n\t& { [NEOVIS_ADVANCED_CONFIG]?: NeoVisAdvanceConfig };\r\n\r\n/**\r\n * A mapper between neo4j node properties names to vis-network node config\r\n * @link https://visjs.github.io/vis-network/docs/network/nodes.html\r\n */\r\nexport interface LabelConfig extends RecursiveMapTo {\r\n\t/**\r\n\t * advance options which allow for:\r\n\t * mapping static options to each node\r\n\t * mapping cypher to run for each node to determine vis-network node option\r\n\t * mapping function that gets the neo4j node and returns vis-network node option\r\n\t */\r\n\t[NEOVIS_ADVANCED_CONFIG]?: NeoVisAdvanceConfig>;\r\n}\r\n\r\n/**\r\n * A mapper between neo4j relationship properties names to vis-network edge config\r\n * @link https://visjs.github.io/vis-network/docs/network/edges.html\r\n */\r\nexport interface RelationshipConfig extends RecursiveMapTo {\r\n\t/**\r\n\t * advance options which allow for:\r\n\t * mapping static options to each edge\r\n\t * mapping cypher to run for each relationship to determine vis-network edge option\r\n\t * mapping function that gets the neo4j relationship and returns vis-network edge option\r\n\t */\r\n\t[NEOVIS_ADVANCED_CONFIG]?: NeoVisAdvanceConfig>;\r\n}\r\n\r\nexport interface Neo4jConfig {\r\n\t/**\r\n\t * neo4j server\r\n\t * @example bolt://localhost:7687\r\n\t */\r\n\tserverUrl?: string;\r\n\tserverUser?: string;\r\n\tserverPassword?: string;\r\n\t/**\r\n\t * @link https://neo4j.com/docs/api/javascript-driver/current/function/index.html#configuration\r\n\t */\r\n\tdriverConfig?: Neo4jTypes.Config;\r\n}\r\n\r\nexport interface BaseNeovisConfig {\r\n\t/**\r\n\t * Html id of the element you want Neovis to render on\r\n\t */\r\n\tcontainerId: string;\r\n\t/**\r\n\t * database name you want to connect to\r\n\t * @default neo4j\r\n\t */\r\n\tserverDatabase?: string;\r\n\t/**\r\n\t * Neo4j Driver instance or configuration to make one\r\n\t */\r\n\tneo4j?: Neo4jTypes.Driver | Neo4jConfig;\r\n\t/**\r\n\t * Vis network config to override neovis defaults\r\n\t * @link https://visjs.github.io/vis-network/docs/network/#options\r\n\t */\r\n\tvisConfig?: VisNetwork.Options;\r\n\r\n\t/**\r\n\t * The Cypher query that will get the data\r\n\t */\r\n\tinitialCypher?: Cypher;\r\n\t/**\r\n\t * Should output debug messages to console\r\n\t * @default false\r\n\t */\r\n\tconsoleDebug?: boolean;\r\n\r\n\r\n\t/**\r\n\t * Tells Neovis is the config is flat or not\r\n\t * @default false\r\n\t */\r\n\tnonFlat?: boolean;\r\n}\r\n\r\n/**\r\n * @example\r\n * ```js\r\n * //simple\r\n * {\r\n * containerId: \"viz\",\r\n * neo4j: {\r\n * \tserverUrl: \"bolt://localhost:7687\",\r\n * \tserverUser: \"neo4j\",\r\n * \tserverPassword: \"sorts-swims-burglaries\"\r\n * },\r\n * labels: {\r\n * \tCharacter: {\r\n * \t\tlabel: \"name\",\r\n * \t\tvalue: \"pagerank\",\r\n * \t\tgroup: \"community\"\r\n * \t}\r\n * },\r\n * relationships: {\r\n * \tINTERACTS: {\r\n * \t\tvalue: \"weight\"\r\n * \t}\r\n * },\r\n * initialCypher: \"MATCH (n)-[r:INTERACTS]->(m) RETURN n,r,m\"\r\n * }\r\n * // advance\r\n * {\r\n * containerId: 'viz',\r\n * neo4j: {\r\n * \tserverUrl: 'bolt://localhost:7687',\r\n * \tserverUser: 'neo4j',\r\n * \tserverPassword: 'gland-presentation-worry'\r\n * },\r\n * visConfig: {\r\n * \tnodes: {\r\n * \t\tshape: 'square'\r\n * \t},\r\n * \tedges: {\r\n * \t\tarrows: {\r\n * \t\t\tto: {enabled: true}\r\n * \t\t}\r\n * \t},\r\n * },\r\n * labels: {\r\n * \tCharacter: {\r\n * \t\tlabel: 'pagerank',\r\n * \t\tgroup: 'community',\r\n * \t\t[Neovis.NEOVIS_ADVANCED_CONFIG]: {\r\n * \t\t\tcypher: {\r\n * \t\t\t\tvalue: \"MATCH (n) WHERE id(n) = $id RETURN n.size\"\r\n * \t\t\t},\r\n * \t\t\tfunction: {\r\n * \t\t\t\ttitle: (node) => {\r\n * \t\t\t\t\treturn viz.nodeToHtml(node, undefined);\r\n * \t\t\t\t}\r\n * \t\t\t},\r\n * \t\t}\r\n * \t}\r\n * },\r\n * relationships: {\r\n * \tINTERACTS: {\r\n * \t\tvalue: 'weight',\r\n * \t\t[Neovis.NEOVIS_ADVANCED_CONFIG]: {\r\n * \t\t\tfunction: {\r\n * \t\t\t\ttitle: (edge) => {\r\n * \t\t\t\t\treturn viz.nodeToHtml(edge, undefined);\r\n * \t\t\t\t}\r\n * \t\t\t},\r\n * \t\t}\r\n * \t}\r\n * },\r\n * initialCypher: 'MATCH (n)-[r]->(m) RETURN n,r,m'\r\n * }\r\n * ```\r\n */\r\nexport interface NeovisConfig extends BaseNeovisConfig {\r\n\tnonFlat?: false;\r\n\t/**\r\n\t * @example ```javascript\r\n\t *{\r\n\t * \tCharacter: {\r\n\t * \tlabel: 'pagerank',\r\n\t * \t\tgroup: 'community',\r\n\t * \t\t[Neovis.NEOVIS_ADVANCED_CONFIG]: {\r\n\t * \t\t\tcypher: {\r\n\t * \t\t\t\tvalue: \"MATCH (n) WHERE id(n) = $id RETURN n.size\"\r\n\t * \t\t\t},\r\n\t * \t\t\tfunction: {\r\n\t * \t\t\t\ttitle: (node) => {\r\n\t * \t\t\t\t\treturn viz.nodeToHtml(node, undefined);\r\n\t * \t\t\t\t}\r\n\t * \t\t\t},\r\n\t * \t\t}\r\n\t * \t}\r\n\t * }\r\n\t * ```\r\n\t */\r\n\tlabels?: {\r\n\t\t[label: string]: LabelConfig,\r\n\t\t[NEOVIS_DEFAULT_CONFIG]?: LabelConfig\r\n\t};\r\n\t/**\r\n\t * @example\r\n\t * ``` js\r\n\t * {\r\n\t * INTERACTS: {\r\n\t * \t value: 'weight',\r\n\t * \t [Neovis.NEOVIS_ADVANCED_CONFIG]: {\r\n\t * \t \tfunction: {\r\n\t * \t \t\ttitle: (edge) => {\r\n\t * \t \t\t\treturn viz.nodeToHtml(edge, undefined);\r\n\t * \t \t\t}\r\n\t * \t \t},\r\n\t * \t }\r\n\t * }\r\n\t * }\r\n\t * ```\r\n\t */\r\n\trelationships?: {\r\n\t\t[relationship: string]: RelationshipConfig,\r\n\t\t[NEOVIS_DEFAULT_CONFIG]?: RelationshipConfig\r\n\t};\r\n}\r\n\r\nexport type NonFlatLabelConfig = NonFlatNeoVisAdvanceConfig>;\r\nexport type NonFlatRelationsipConfig = NonFlatNeoVisAdvanceConfig>;\r\n\r\n/**\r\n * non flat version of the configuration (without Symbols)\r\n * look at the normal config for more information\r\n *\r\n * @example\r\n * ```js\r\n * {\r\n * containerId: 'viz',\r\n * nonFlat: true,\r\n * neo4j: {\r\n * \tserverUrl: 'bolt://localhost:7687',\r\n * \tserverUser: 'neo4j',\r\n * \tserverPassword: 'gland-presentation-worry'\r\n * },\r\n * visConfig: {\r\n * \tnodes: {\r\n * \t\tshape: 'square'\r\n * \t},\r\n * \tedges: {\r\n * \t\tarrows: {\r\n * \t\t\tto: {enabled: true}\r\n * \t\t}\r\n * \t},\r\n * },\r\n * labels: {\r\n * \tCharacter: {\r\n * \t\tproperty: {\r\n * \t\t label: 'pagerank',\r\n * \t\t group: 'community'\r\n * \t }\r\n * \t\tcypher: {\r\n * \t\t\tvalue: \"MATCH (n) WHERE id(n) = $id RETURN n.size\"\r\n * \t\t},\r\n * \t\tfunction: {\r\n * \t\t\ttitle: (node) => {\r\n * \t\t\t\treturn viz.nodeToHtml(node, undefined);\r\n * \t\t\t}\r\n * \t\t}\r\n * \t}\r\n * },\r\n * relationships: {\r\n * \tINTERACTS: {\r\n * property: {\r\n * \t\t value: 'weight'\r\n * \t }\r\n * \t\tfunction: {\r\n * \t\t\ttitle: (edge) => {\r\n * \t\t\t\treturn viz.nodeToHtml(edge, undefined);\r\n * \t\t\t}\r\n * \t\t}\r\n * \t}\r\n * },\r\n * initialCypher: 'MATCH (n)-[r]->(m) RETURN n,r,m'\r\n * }\r\n * ```\r\n */\r\nexport interface NonFlatNeovisConfig extends BaseNeovisConfig {\r\n\tnonFlat: true;\r\n\tdefaultLabelConfig?: NonFlatLabelConfig;\r\n\tdefaultRelationshipsConfig?: NonFlatRelationsipConfig;\r\n\tlabels?: Record;\r\n\trelationships?: Record;\r\n}\r\n\r\n/**\r\n * A network node with raw neo4j node\r\n */\r\nexport interface Node extends VisNetwork.Node {\r\n\t/**\r\n\t * @link https://neo4j.com/docs/api/javascript-driver/current/class/src/graph-types.js~Node.html\r\n\t */\r\n\tid: number;\r\n\traw: Neo4jTypes.Node;\r\n}\r\n\r\n/**\r\n * A network edge with raw neo4j relationship\r\n */\r\nexport interface Edge extends VisNetwork.Edge {\r\n\t/**\r\n\t * https://neo4j.com/docs/api/javascript-driver/current/class/src/graph-types.js~Relationship.html\r\n\t */\r\n\tid: number;\r\n\traw: Neo4jTypes.Relationship;\r\n}","'use strict';\r\n\r\nimport type * as Neo4jTypes from 'neo4j-driver';\r\nimport Neo4j from 'neo4j-driver';\r\nimport type * as Neo4jCore from 'neo4j-driver-core';\r\nimport { isInt, isNode, isPath, isRelationship } from 'neo4j-driver-core';\r\nimport * as vis from 'vis-network/standalone';\r\nimport { defaults } from './defaults';\r\nimport { EventController, EventFunctionTypes, NeoVisEvents } from './events';\r\nimport deepmerge from 'deepmerge';\r\nimport type * as VisNetwork from 'vis-network';\r\nimport {\r\n\tCypher,\r\n\tEdge,\r\n\tLabelConfig,\r\n\tNeo4jConfig,\r\n\tNEOVIS_ADVANCED_CONFIG,\r\n\tNEOVIS_DEFAULT_CONFIG,\r\n\tNeovisConfig,\r\n\tNeovisDataConfig,\r\n\tNode,\r\n\tNonFlatLabelConfig,\r\n\tNonFlatNeoVisAdvanceConfig,\r\n\tNonFlatNeovisConfig,\r\n\tNonFlatRelationsipConfig,\r\n\tNumberOrInteger,\r\n\tRecursiveMapTo,\r\n\tRecursiveMapToFunction,\r\n\tRelationshipConfig\r\n} from './types';\r\n\r\nexport * from './events';\r\nexport * from './types';\r\n\r\nfunction isNeo4jDriver(neo4jConfig: Neo4jTypes.Driver | Neo4jConfig): neo4jConfig is Neo4jTypes.Driver {\r\n\treturn neo4jConfig instanceof Neo4j.driver;\r\n}\r\nfunction _propertyToHtml string }>(key: string, value: T | T[]): string {\r\n\tif (Array.isArray(value) && value.length > 1) {\r\n\t\tlet out = `${key}:
    `;\r\n\t\tfor (const val of value) {\r\n\t\t\tout += `
  • ${val}
  • `;\r\n\t\t}\r\n\t\treturn out + '
';\r\n\t}\r\n\treturn `${key}: ${value}
`;\r\n}\r\n\r\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\r\nfunction _retrieveProperty(prop: string, obj: any): T {\r\n\tif (typeof obj?.properties === 'object') {\r\n\t\treturn isInt(obj.properties[prop]) ? obj.properties[prop].toInt() : obj.properties[prop];\r\n\t}\r\n\tthrow new Error('Neo4j object is not properly constructed');\r\n}\r\n\r\n/**\r\n * create html display of the node\r\n * @param neo4jObject node to create html from\r\n * @param titleProperties which properties to map\r\n */\r\nexport function objectToTitleHtml(neo4jObject: Neo4jTypes.Node | Neo4jTypes.Relationship, titleProperties: string[]): HTMLDivElement {\r\n\tlet titleString = '';\r\n\tif (!titleProperties) {\r\n\t\ttitleProperties = Object.keys(neo4jObject.properties);\r\n\t}\r\n\tfor (const key of titleProperties) {\r\n\t\tconst propVal = _retrieveProperty(key, neo4jObject);\r\n\t\tif (propVal) {\r\n\t\t\ttitleString += _propertyToHtml(key, propVal);\r\n\t\t}\r\n\t}\r\n\tconst title = document.createElement('div');\r\n\ttitle.innerHTML = titleString;\r\n\treturn title;\r\n}\r\n\r\n/**\r\n * create string display of the node\r\n * @param neo4jObject node to create title string from\r\n * @param titleProperties which properties to map\r\n */\r\nexport function objectToTitleString(neo4jObject: Neo4jTypes.Node | Neo4jTypes.Relationship, titleProperties: string[]): string {\r\n\tlet title = '';\r\n\tif (!titleProperties) {\r\n\t\ttitleProperties = Object.keys(neo4jObject.properties);\r\n\t}\r\n\tfor (const key of titleProperties) {\r\n\t\tconst propVal = _retrieveProperty(key, neo4jObject);\r\n\t\tif (propVal) {\r\n\t\t\ttitle += `${key}: ${propVal}\\n`;\r\n\t\t}\r\n\t}\r\n\treturn title;\r\n}\r\n\r\nexport class NeoVis {\r\n\tstatic NEOVIS_DEFAULT_CONFIG = NEOVIS_DEFAULT_CONFIG;\r\n\tstatic NEOVIS_ADVANCED_CONFIG = NEOVIS_ADVANCED_CONFIG;\r\n\tstatic objectToTitleHtml = objectToTitleHtml;\r\n\tstatic objectToTitleString = objectToTitleString;\r\n\t#data = {\r\n\t\tnodes: new vis.DataSet(),\r\n\t\tedges: new vis.DataSet()\r\n\t};\r\n\t#network: VisNetwork.Network = null;\r\n\t#events = new EventController();\r\n\t#config: NeovisConfig | NonFlatNeovisConfig;\r\n\t#driver: Neo4jTypes.Driver;\r\n\t#database: string;\r\n\t#query: Cypher;\r\n\t#container: HTMLElement;\r\n\r\n\t/**\r\n\t * All view nodes as DataSet\r\n\t * @link https://visjs.github.io/vis-data/data/dataset.html\r\n\t */\r\n\tget nodes(): VisNetwork.DataSet {\r\n\t\treturn this.#data.nodes;\r\n\t}\r\n\r\n\t/**\r\n\t * All view edges as DataSet\r\n\t * @link https://visjs.github.io/vis-data/data/dataset.html\r\n\t */\r\n\tget edges(): VisNetwork.DataSet {\r\n\t\treturn this.#data.edges;\r\n\t}\r\n\r\n\t/**\r\n\t * @ignore for test purposes only\r\n\t */\r\n\tget _config(): NeovisConfig | NonFlatNeovisConfig {\r\n\t\treturn this.#config;\r\n\t}\r\n\r\n\t/**\r\n\t * The vis network object\r\n\t * @link https://visjs.github.io/vis-network/docs/network/#methods\r\n\t */\r\n\tget network(): VisNetwork.Network | undefined {\r\n\t\treturn this.#network;\r\n\t}\r\n\r\n\t/**\r\n\t *\r\n\t * @constructor\r\n\t * @param {object} config - configures the visualization and Neo4j server connection\r\n\t */\r\n\tconstructor(config: NeovisConfig | NonFlatNeovisConfig) {\r\n\t\tthis.#init(config);\r\n\r\n\t\tthis.#consoleLog(config);\r\n\t\tthis.#consoleLog(defaults);\r\n\t}\r\n\r\n\t#consoleLog(message: object | string, level = 'log'): void {\r\n\t\tif (level !== 'log' || this.#config.consoleDebug) {\r\n\t\t\t// eslint-disable-next-line no-console\r\n\t\t\tconsole[level](message);\r\n\t\t}\r\n\t}\r\n\r\n\t#init(config: NeovisConfig | NonFlatNeovisConfig): void {\r\n\t\tlet defaultLabelConfig: NonFlatLabelConfig | LabelConfig;\r\n\t\tlet defaultRelationshipConfig: NonFlatRelationsipConfig | RelationshipConfig;\r\n\t\tif (config.nonFlat && config.defaultLabelConfig) {\r\n\t\t\tdefaultLabelConfig = config.defaultLabelConfig;\r\n\t\t\tif (defaultLabelConfig[NEOVIS_ADVANCED_CONFIG]) {\r\n\t\t\t\tthrow new Error('non flat config can\\'t use NEOVIS_ADVANCED_CONFIG, read the doc to see how the config should look');\r\n\t\t\t}\r\n\t\t\tdefaultRelationshipConfig = config.defaultRelationshipsConfig;\r\n\t\t\tif (defaultRelationshipConfig[NEOVIS_ADVANCED_CONFIG]) {\r\n\t\t\t\tthrow new Error('non flat config can\\'t use NEOVIS_ADVANCED_CONFIG, read the doc to see how the config should look');\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tdefaultLabelConfig = (config as NeovisConfig).labels?.[NEOVIS_DEFAULT_CONFIG];\r\n\t\t\tdefaultRelationshipConfig = (config as NeovisConfig).relationships?.[NEOVIS_DEFAULT_CONFIG];\r\n\t\t}\r\n\t\tif (defaultLabelConfig) {\r\n\t\t\tfor (const key of Object.keys(config.labels)) {\r\n\t\t\t\t// getting out of my for not changing the original config object\r\n\t\t\t\tif (config.nonFlat) {\r\n\t\t\t\t\t(config as NonFlatNeovisConfig) = {\r\n\t\t\t\t\t\t...config as NonFlatNeovisConfig,\r\n\t\t\t\t\t\tlabels: {\r\n\t\t\t\t\t\t\t...config.labels as Record,\r\n\t\t\t\t\t\t\t[key]: deepmerge(defaultLabelConfig as NonFlatLabelConfig, config.labels?.[key] as NonFlatLabelConfig)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t};\r\n\t\t\t\t} else {\r\n\t\t\t\t\t(config as NeovisConfig) = {\r\n\t\t\t\t\t\t...config as NeovisConfig,\r\n\t\t\t\t\t\tlabels: {\r\n\t\t\t\t\t\t\t...config.labels as Record,\r\n\t\t\t\t\t\t\t[key]: {\r\n\t\t\t\t\t\t\t\t...deepmerge(defaultLabelConfig as LabelConfig, config.labels?.[key] as LabelConfig),\r\n\t\t\t\t\t\t\t\t[NEOVIS_ADVANCED_CONFIG]: deepmerge((defaultLabelConfig as LabelConfig)[NEOVIS_ADVANCED_CONFIG] ?? {}, (config.labels?.[key] as LabelConfig)[NEOVIS_ADVANCED_CONFIG] ?? {}),\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (defaultRelationshipConfig) {\r\n\t\t\tfor (const key of Object.keys(config.relationships)) {\r\n\t\t\t\t// getting out of my for not changing the original config object\r\n\t\t\t\tif (config.nonFlat) {\r\n\t\t\t\t\t(config as NonFlatNeovisConfig) = {\r\n\t\t\t\t\t\t...config as NonFlatNeovisConfig,\r\n\t\t\t\t\t\trelationships: {\r\n\t\t\t\t\t\t\t...config.relationships as Record,\r\n\t\t\t\t\t\t\t[key]: deepmerge(defaultRelationshipConfig as NonFlatRelationsipConfig, config.relationships?.[key] as NonFlatRelationsipConfig)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t};\r\n\t\t\t\t} else {\r\n\t\t\t\t\t(config as NeovisConfig) = {\r\n\t\t\t\t\t\t...config as NeovisConfig,\r\n\t\t\t\t\t\trelationships: {\r\n\t\t\t\t\t\t\t...config.relationships as Record,\r\n\t\t\t\t\t\t\t[key]: {\r\n\t\t\t\t\t\t\t\t...deepmerge(defaultRelationshipConfig as RelationshipConfig, config.relationships?.[key] as RelationshipConfig),\r\n\t\t\t\t\t\t\t\t[NEOVIS_ADVANCED_CONFIG]: deepmerge((defaultRelationshipConfig as RelationshipConfig)[NEOVIS_ADVANCED_CONFIG] ?? {}, (config.relationships?.[key] as RelationshipConfig)[NEOVIS_ADVANCED_CONFIG] ?? {}),\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.#config = config;\r\n\t\tthis.#driver = isNeo4jDriver(config.neo4j) ? config.neo4j : Neo4j.driver(\r\n\t\t\tconfig.neo4j?.serverUrl ?? defaults.neo4j.neo4jUri,\r\n\t\t\tNeo4j.auth.basic(\r\n\t\t\t\tconfig.neo4j?.serverUser ?? defaults.neo4j.neo4jUser,\r\n\t\t\t\tconfig.neo4j?.serverPassword ?? defaults.neo4j.neo4jPassword\r\n\t\t\t),\r\n\t\t\tdeepmerge(defaults.neo4j.driverConfig, config.neo4j?.driverConfig ?? {})\r\n\t\t);\r\n\t\tthis.#database = config.serverDatabase;\r\n\t\tthis.#query = config.initialCypher ?? defaults.neo4j.initialQuery;\r\n\t\tthis.#container = document.getElementById(config.containerId);\r\n\t}\r\n\r\n\tasync #runCypher(cypher: Cypher, id: number): Promise {\r\n\t\tconst session = this.#driver.session(this.#database && { database: this.#database });\r\n\t\tconst results: T[] = [];\r\n\r\n\t\ttry {\r\n\t\t\tconst result = await session.readTransaction(tx => tx.run(cypher, { id }));\r\n\t\t\tfor (const record of result.records) {\r\n\t\t\t\trecord.forEach((v) => {\r\n\t\t\t\t\tresults.push(v);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tawait session.close();\r\n\t\t}\r\n\r\n\t\tif (results.length === 0) {\r\n\t\t\treturn undefined;\r\n\t\t} else if (results.length === 1) {\r\n\t\t\treturn results.pop();\r\n\t\t}\r\n\r\n\t\treturn results;\r\n\t}\r\n\r\n\t#runFunction(func: (neoObj: NEO_TYPE) => VIS_TYPE | Promise, node: NEO_TYPE): Promise | VIS_TYPE {\r\n\t\tif (typeof func === 'function') {\r\n\t\t\treturn func(node);\r\n\t\t}\r\n\t\tthrow new Error('Function type property field must be a function');\r\n\t}\r\n\r\n\t#buildStaticObject(staticConfig: VIS_TYPE, object: VIS_TYPE): void {\r\n\t\tif (staticConfig && typeof staticConfig === 'object') {\r\n\t\t\tfor (const prop of Object.keys(staticConfig) as (keyof VIS_TYPE)[]) {\r\n\t\t\t\tconst value = staticConfig[prop];\r\n\t\t\t\tif (value && typeof value === 'object') {\r\n\t\t\t\t\tif (!object[prop]) {\r\n\t\t\t\t\t\tobject[prop as string] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.#buildStaticObject(value, object[prop] as VIS_TYPE[keyof VIS_TYPE] & object);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tobject[prop] = value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t#buildPropertyNameObject(propertyNameConfig: RecursiveMapTo, object: VIS_TYPE, neo4jObj: NEO_TYPE): void {\r\n\t\tif (propertyNameConfig && typeof propertyNameConfig === 'object') {\r\n\t\t\tfor (const prop of Object.keys(propertyNameConfig) as (keyof VIS_TYPE)[]) {\r\n\t\t\t\tconst property = propertyNameConfig[prop];\r\n\t\t\t\tif (typeof property === 'object') {\r\n\t\t\t\t\tif (!object[prop]) {\r\n\t\t\t\t\t\tobject[prop as string] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.#buildPropertyNameObject(property as RecursiveMapTo, object[prop], neo4jObj);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst value = propertyNameConfig[prop];\r\n\t\t\t\t\tobject[prop] = _retrieveProperty(value as string, neo4jObj);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t*#buildCypherObject(cypherConfig: RecursiveMapTo, object: VIS_TYPE, id: number): Generator> {\r\n\t\tif (cypherConfig && typeof cypherConfig === 'object') {\r\n\t\t\tfor (const prop of Object.keys(cypherConfig) as (keyof VIS_TYPE)[]) {\r\n\t\t\t\tconst value = cypherConfig[prop];\r\n\t\t\t\tif (value && typeof value === 'object') {\r\n\t\t\t\t\tif (!object[prop]) {\r\n\t\t\t\t\t\tobject[prop as string] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tyield *this.#buildCypherObject(value as RecursiveMapTo, object[prop], id);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst promise = this.#runCypher(value as string, id) as Promise;\r\n\t\t\t\t\tyield Promise.resolve(promise).then(value => { object[prop] = value; } ) as Promise;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t*#buildFunctionObject(functionConfig: RecursiveMapToFunction, object: VIS_TYPE, neo4jObj: NEO_TYPE): Generator> {\r\n\t\tif (functionConfig && typeof functionConfig === 'object') {\r\n\t\t\tfor (const prop of Object.keys(functionConfig) as (keyof VIS_TYPE)[]) {\r\n\t\t\t\tconst func = functionConfig[prop];\r\n\t\t\t\tif (func && typeof func === 'object') {\r\n\t\t\t\t\tif (!object[prop]) {\r\n\t\t\t\t\t\tobject[prop as string] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tyield *this.#buildFunctionObject(func as RecursiveMapToFunction, object[prop], neo4jObj);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst promise = this.#runFunction(func as (neo: NEO_TYPE) => VIS_TYPE[keyof VIS_TYPE], neo4jObj);\r\n\t\t\t\t\tyield Promise.resolve(promise).then(value => { object[prop] = value; } ) as Promise;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tasync #buildVisObject(\r\n\t\tconfig: NeovisDataConfig | NonFlatNeoVisAdvanceConfig, baseObject: VIS_TYPE, neo4jObject: NEO_TYPE, id: number\r\n\t): Promise {\r\n\t\tif (!config) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlet staticConfig: VIS_TYPE;\r\n\t\tlet cypherConfig: RecursiveMapTo;\r\n\t\tlet propertyConfig: RecursiveMapTo;\r\n\t\tlet functionConfig: RecursiveMapToFunction;\r\n\r\n\t\tif (this.#config.nonFlat) {\r\n\t\t\tif (config[NEOVIS_ADVANCED_CONFIG] !== undefined) {\r\n\t\t\t\tthrow new Error('Advanced config and non flat config should not be together');\r\n\t\t\t}\r\n\t\t\tconfig = config as NonFlatNeoVisAdvanceConfig;\r\n\t\t\tstaticConfig = config.static;\r\n\t\t\tcypherConfig = config.cypher;\r\n\t\t\tpropertyConfig = config.property;\r\n\t\t\tfunctionConfig = config.function;\r\n\t\t} else {\r\n\t\t\tconfig = config as NeovisDataConfig;\r\n\t\t\tconst advancedConfig = config[NEOVIS_ADVANCED_CONFIG];\r\n\t\t\tpropertyConfig = config;\r\n\t\t\tif (advancedConfig !== undefined && typeof advancedConfig != 'object') {\r\n\t\t\t\tthrow new Error('Advanced config should be an object. See documentation for details.');\r\n\t\t\t}\r\n\t\t\tcypherConfig = advancedConfig?.cypher;\r\n\t\t\tstaticConfig = advancedConfig?.static;\r\n\t\t\tfunctionConfig = advancedConfig?.function;\r\n\t\t}\r\n\t\tthis.#buildPropertyNameObject(propertyConfig, baseObject, neo4jObject);\r\n\t\tthis.#buildStaticObject(staticConfig, baseObject);\r\n\t\tawait Promise.all(this.#buildCypherObject(cypherConfig, baseObject, id));\r\n\t\tawait Promise.all(this.#buildFunctionObject(functionConfig, baseObject, neo4jObject));\r\n\t}\r\n\r\n\t/**\r\n\t * Build node object for vis from a neo4j Node\r\n\t * @param neo4jNode\r\n\t * @returns {{}}\r\n\t */\r\n\tasync #buildNodeVisObject(neo4jNode: Neo4jTypes.Node): Promise {\r\n\t\tconst node: Partial = {};\r\n\t\tconst label: string = neo4jNode.labels[0];\r\n\r\n\t\tconst labelConfig: LabelConfig | NonFlatLabelConfig = this.#config?.labels?.[label] ?? (this.#config as NonFlatNeovisConfig)?.defaultLabelConfig ??\r\n\t\t\t(this.#config as NeovisConfig)?.labels?.[NEOVIS_DEFAULT_CONFIG];\r\n\r\n\t\tnode.id = isInt(neo4jNode.identity) ? (neo4jNode.identity as Neo4jTypes.Integer).toInt() : neo4jNode.identity as number;\r\n\t\tnode.raw = neo4jNode;\r\n\r\n\t\tawait this.#buildVisObject(labelConfig, node as Node, neo4jNode, node.id);\r\n\r\n\t\treturn node as Node;\r\n\t}\r\n\r\n\r\n\t/**\r\n\t * Build edge object for vis from a neo4j Relationship\r\n\t * @param r\r\n\t * @returns {{}}\r\n\t */\r\n\tasync #buildEdgeVisObject(r: Neo4jTypes.Relationship): Promise {\r\n\t\tconst relationshipConfig = this.#config?.relationships?.[r.type] ?? (this.#config as NonFlatNeovisConfig).defaultRelationshipsConfig ??\r\n\t\t\t(this.#config as NeovisConfig)?.relationships?.[NEOVIS_DEFAULT_CONFIG];\r\n\r\n\t\tconst edge: Partial = {};\r\n\t\tedge.id = isInt(r.identity) ? (r.identity as Neo4jTypes.Integer).toInt() : r.identity as number;\r\n\t\tedge.from = isInt(r.start) ? (r.start as Neo4jTypes.Integer).toInt() : r.start as number;\r\n\t\tedge.to = isInt(r.end) ? (r.end as Neo4jTypes.Integer).toInt() : r.end as number;\r\n\t\tedge.raw = r;\r\n\r\n\t\tawait this.#buildVisObject(relationshipConfig, edge as Edge, r, edge.id);\r\n\r\n\t\treturn edge as Edge;\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the network\r\n\t */\r\n\trender(query?: Cypher): void {\r\n\r\n\t\t// connect to Neo4j instance\r\n\t\t// run query\r\n\t\tlet recordCount = 0;\r\n\t\tconst _query = query || this.#query;\r\n\t\tconst session = this.#driver.session(this.#database ? { database: this.#database } : undefined);\r\n\t\tconst dataBuildPromises = [];\r\n\t\tsession\r\n\t\t\t.run(_query, { limit: 30 })\r\n\t\t\t.subscribe({\r\n\t\t\t\tonNext: (record) => {\r\n\t\t\t\t\trecordCount++;\r\n\r\n\t\t\t\t\tthis.#consoleLog('CLASS NAME');\r\n\t\t\t\t\tthis.#consoleLog(record?.constructor.name);\r\n\t\t\t\t\tthis.#consoleLog(record);\r\n\r\n\t\t\t\t\tconst dataPromises = record.map(async (v: object) => {\r\n\t\t\t\t\t\tthis.#consoleLog('Constructor:');\r\n\t\t\t\t\t\tthis.#consoleLog(v?.constructor.name);\r\n\t\t\t\t\t\tif (isNode(v)) {\r\n\t\t\t\t\t\t\tconst node = await this.#buildNodeVisObject(v);\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tthis.#data.nodes.update(node);\r\n\t\t\t\t\t\t\t} catch (e) {\r\n\t\t\t\t\t\t\t\tthis.#consoleLog(e, 'error');\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else if (isRelationship(v)) {\r\n\t\t\t\t\t\t\tconst edge = await this.#buildEdgeVisObject(v);\r\n\t\t\t\t\t\t\tthis.#data.edges.update(edge);\r\n\r\n\t\t\t\t\t\t} else if (isPath(v)) {\r\n\t\t\t\t\t\t\tthis.#consoleLog('PATH');\r\n\t\t\t\t\t\t\tthis.#consoleLog(v);\r\n\t\t\t\t\t\t\tconst startNode = await this.#buildNodeVisObject(v.start);\r\n\t\t\t\t\t\t\tconst endNode = await this.#buildNodeVisObject(v.end);\r\n\r\n\t\t\t\t\t\t\tthis.#data.nodes.update(startNode);\r\n\t\t\t\t\t\t\tthis.#data.nodes.update(endNode);\r\n\r\n\t\t\t\t\t\t\tfor (const obj of v.segments) {\r\n\t\t\t\t\t\t\t\tthis.#data.nodes.update(await this.#buildNodeVisObject(obj.start));\r\n\t\t\t\t\t\t\t\tthis.#data.nodes.update(await this.#buildNodeVisObject(obj.end));\r\n\t\t\t\t\t\t\t\tthis.#data.edges.update(await this.#buildEdgeVisObject(obj.relationship));\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else if (Array.isArray(v)) {\r\n\t\t\t\t\t\t\tfor (const obj of v) {\r\n\t\t\t\t\t\t\t\tthis.#consoleLog('Array element constructor:');\r\n\t\t\t\t\t\t\t\tthis.#consoleLog(obj?.constructor.name);\r\n\t\t\t\t\t\t\t\tif (isNode(obj)) {\r\n\t\t\t\t\t\t\t\t\tconst node = await this.#buildNodeVisObject(obj);\r\n\t\t\t\t\t\t\t\t\tthis.#data.nodes.update(node);\r\n\r\n\t\t\t\t\t\t\t\t} else if (isRelationship(obj)) {\r\n\t\t\t\t\t\t\t\t\tconst edge = await this.#buildEdgeVisObject(obj);\r\n\r\n\t\t\t\t\t\t\t\t\tthis.#data.edges.update(edge);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\tdataBuildPromises.push(Promise.all(dataPromises));\r\n\t\t\t\t},\r\n\t\t\t\tonCompleted: async () => {\r\n\t\t\t\t\tawait Promise.all(dataBuildPromises);\r\n\t\t\t\t\tawait session.close();\r\n\r\n\t\t\t\t\tif (!this.#network) {\r\n\t\t\t\t\t\tconst options = deepmerge(defaults.visJs, this.#config.visConfig ?? {});\r\n\r\n\t\t\t\t\t\tconst container = this.#container;\r\n\r\n\t\t\t\t\t\tthis.#consoleLog(this.#data.nodes);\r\n\t\t\t\t\t\tthis.#consoleLog(this.#data.edges);\r\n\r\n\t\t\t\t\t\tthis.#network = new vis.Network(container, this.#data, options);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.#consoleLog('completed');\r\n\t\t\t\t\tsetTimeout(\r\n\t\t\t\t\t\t() => {\r\n\t\t\t\t\t\t\tthis.#network.stopSimulation();\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t10000\r\n\t\t\t\t\t);\r\n\t\t\t\t\tthis.#events.generateEvent(NeoVisEvents.CompletionEvent, { recordCount });\r\n\r\n\t\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-this-alias\r\n\t\t\t\t\tconst neoVis = this;\r\n\t\t\t\t\tthis.#network.on('click', function (this: VisNetwork.Network, params: { nodes: Node[], edges: Edge[], pointer: { DOM: VisNetwork.Position } }) {\r\n\t\t\t\t\t\tif (params.nodes.length > 0) {\r\n\t\t\t\t\t\t\tconst nodeId = this.getNodeAt(params.pointer.DOM) as number;\r\n\t\t\t\t\t\t\tneoVis.#events.generateEvent(NeoVisEvents.ClickNodeEvent, {\r\n\t\t\t\t\t\t\t\tnodeId,\r\n\t\t\t\t\t\t\t\tnode: neoVis.#data.nodes.get(nodeId)\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t} else if (params.edges.length > 0) {\r\n\t\t\t\t\t\t\tconst edgeId = this.getEdgeAt(params.pointer.DOM) as number;\r\n\t\t\t\t\t\t\tneoVis.#events.generateEvent(NeoVisEvents.ClickEdgeEvent, {\r\n\t\t\t\t\t\t\t\tedgeId,\r\n\t\t\t\t\t\t\t\tedge: neoVis.#data.edges.get(edgeId)\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t},\r\n\t\t\t\tonError: (error) => {\r\n\t\t\t\t\tthis.#consoleLog(error, 'error');\r\n\t\t\t\t\tthis.#events.generateEvent(NeoVisEvents.ErrorEvent, { error });\r\n\t\t\t\t}\r\n\t\t\t} as Neo4jCore.ResultObserver);\r\n\t}\r\n\r\n\t/**\r\n\t * Clear the data for the visualization\r\n\t */\r\n\tclearNetwork(): void {\r\n\t\tthis.#data.nodes.clear();\r\n\t\tthis.#data.edges.clear();\r\n\t}\r\n\r\n\r\n\t/**\r\n\t *\r\n\t * @param {string} eventType Event type to be handled\r\n\t * @param {Function} handler Handler to manage the event\r\n\t */\r\n\tregisterOnEvent(eventType: T, handler: EventFunctionTypes[T]): void {\r\n\t\tthis.#events.register(eventType, handler);\r\n\t}\r\n\r\n\r\n\t/**\r\n\t * Reset the config object and reload data\r\n\t * @param config\r\n\t */\r\n\treinit(config: NeovisConfig | NonFlatNeovisConfig): void {\r\n\t\tthis.#init(config);\r\n\t\tthis.render();\r\n\t}\r\n\r\n\t/**\r\n\t * Clear the network and fetch live data form the server and reload the visualization\r\n\t */\r\n\treload(): void {\r\n\t\tthis.clearNetwork();\r\n\t\tthis.render();\r\n\t}\r\n\r\n\t/**\r\n\t * Stabilize the visualization\r\n\t */\r\n\tstabilize(): void {\r\n\t\tthis.#network.stopSimulation();\r\n\t\tthis.#consoleLog('Calling stopSimulation');\r\n\t}\r\n\r\n\t/**\r\n\t * Execute an arbitrary Cypher query and re-render the visualization\r\n\t * @param query\r\n\t */\r\n\trenderWithCypher(query: Cypher): void {\r\n\t\t// this._config.initialCypher = query;\r\n\t\tthis.clearNetwork();\r\n\t\tthis.#query = query;\r\n\t\tthis.render();\r\n\t}\r\n\r\n\t/**\r\n\t * Execute an arbitrary Cypher query and update the current visualization, retaning current nodes\r\n\t * This function will not change the original query given by renderWithCypher or the inital cypher.\r\n\t * @param query\r\n\t */\r\n\tupdateWithCypher(query: Cypher): void {\r\n\t\tthis.render(query);\r\n\t}\r\n}\r\n\r\n/**\r\n * @deprecated for migration only\r\n */\r\nexport interface OldLabelConfig {\r\n\tcaption?: string | ((node: Neo4jTypes.Node) => string);\r\n\tsize?: number;\r\n\tcommunity?: string;\r\n\tsizeCypher?: string;\r\n\timage?: string;\r\n\tfont?: string | VisNetwork.Font;\r\n\ttitle_properties?: string[];\r\n}\r\n\r\n/**\r\n * @deprecated for migration only\r\n */\r\nexport interface OldRelationshipConfig {\r\n\tthickness?: number;\r\n\tcaption?: boolean | string;\r\n}\r\n\r\n/**\r\n * @deprecated for migration only\r\n */\r\nexport interface OldNeoVisConfig {\r\n\tcontainer_id: string;\r\n\tserver_url: string;\r\n\tserver_user: string;\r\n\tserver_password: string;\r\n\tserver_database: string;\r\n\tlabels?: {\r\n\t\t[label: string]: OldLabelConfig,\r\n\t\t[NEOVIS_DEFAULT_CONFIG]?: OldLabelConfig\r\n\t};\r\n\trelationships?: {\r\n\t\t[relationship: string]: OldRelationshipConfig,\r\n\t\t[NEOVIS_DEFAULT_CONFIG]?: OldRelationshipConfig\r\n\t};\r\n\tarrows?: boolean;\r\n\thierarchical?: boolean;\r\n\thierarchical_sort_method?: 'hubsize' | 'directed';\r\n\tinitial_cypher?: string;\r\n\tconsole_debug?: boolean;\r\n\tencrypted?: 'ENCRYPTION_OFF' | 'ENCRYPTION_ON';\r\n\ttrust?: 'TRUST_ALL_CERTIFICATES' | 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES';\r\n}\r\n\r\n/**\r\n * @deprecated will be removed in the future\r\n * migrate old config to the new one\r\n * @param oldNeoVisConfig 1.0.0 config object\r\n */\r\nexport function migrateFromOldConfig(oldNeoVisConfig: OldNeoVisConfig): NeovisConfig {\r\n\treturn {\r\n\t\tcontainerId: oldNeoVisConfig.container_id,\r\n\t\tinitialCypher: oldNeoVisConfig.initial_cypher,\r\n\t\tconsoleDebug: oldNeoVisConfig.console_debug,\r\n\t\tserverDatabase: oldNeoVisConfig.server_database,\r\n\t\tneo4j: {\r\n\t\t\tserverUrl: oldNeoVisConfig.server_url,\r\n\t\t\tserverUser: oldNeoVisConfig.server_user,\r\n\t\t\tserverPassword: oldNeoVisConfig.server_password,\r\n\t\t\tdriverConfig: oldNeoVisConfig.encrypted || oldNeoVisConfig.trust ? {\r\n\t\t\t\tencrypted: oldNeoVisConfig.encrypted,\r\n\t\t\t\ttrust: oldNeoVisConfig.trust\r\n\t\t\t} : undefined\r\n\t\t},\r\n\t\tvisConfig: oldNeoVisConfig.arrows || oldNeoVisConfig.hierarchical ? {\r\n\t\t\tedges: oldNeoVisConfig.arrows ? {\r\n\t\t\t\tarrows: {\r\n\t\t\t\t\tto: {\r\n\t\t\t\t\t\tenabled: oldNeoVisConfig.arrows\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} : undefined,\r\n\t\t\tlayout: oldNeoVisConfig.hierarchical ? {\r\n\t\t\t\tenabled: oldNeoVisConfig.hierarchical,\r\n\t\t\t\tsortMethod: oldNeoVisConfig.hierarchical_sort_method\r\n\t\t\t} : undefined\r\n\t\t} : undefined,\r\n\t\tlabels: oldNeoVisConfig.labels ? (Object.entries(oldNeoVisConfig.labels) as [string | typeof NEOVIS_DEFAULT_CONFIG, OldLabelConfig][])\r\n\t\t\t.concat(oldNeoVisConfig.labels?.[NEOVIS_DEFAULT_CONFIG] ? [[NEOVIS_DEFAULT_CONFIG, oldNeoVisConfig.labels[NEOVIS_DEFAULT_CONFIG]]] : [])\r\n\t\t\t.reduce((newLabelsConfig, [label, oldLabelConfig]) => {\r\n\t\t\t\tnewLabelsConfig[label] = {\r\n\t\t\t\t\tlabel: typeof oldLabelConfig.caption !== 'function' ? oldLabelConfig.caption : undefined,\r\n\t\t\t\t\tvalue: oldLabelConfig.size,\r\n\t\t\t\t\tgroup: oldLabelConfig.community,\r\n\t\t\t\t\t[NEOVIS_ADVANCED_CONFIG]: {\r\n\t\t\t\t\t\tcypher: oldLabelConfig.sizeCypher ? {\r\n\t\t\t\t\t\t\tvalue: oldLabelConfig.sizeCypher\r\n\t\t\t\t\t\t} : undefined,\r\n\t\t\t\t\t\tfunction: deepmerge({\r\n\t\t\t\t\t\t\ttitle: (props) => objectToTitleHtml(props, oldLabelConfig.title_properties)\r\n\t\t\t\t\t\t}, typeof oldLabelConfig.caption === 'function' ? { label: oldLabelConfig.caption } : {}),\r\n\t\t\t\t\t\tstatic: {\r\n\t\t\t\t\t\t\tfont: oldLabelConfig.font,\r\n\t\t\t\t\t\t\tshape: oldLabelConfig.image ? 'image' : 'dot',\r\n\t\t\t\t\t\t\timage: oldLabelConfig.image\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\treturn newLabelsConfig;\r\n\t\t\t}, {}) : undefined,\r\n\t\trelationships: oldNeoVisConfig.relationships ? (Object.entries(oldNeoVisConfig.relationships) as [string | typeof NEOVIS_DEFAULT_CONFIG, OldRelationshipConfig][])\r\n\t\t\t.concat(oldNeoVisConfig.relationships[NEOVIS_DEFAULT_CONFIG] ? [[NEOVIS_DEFAULT_CONFIG, oldNeoVisConfig.relationships[NEOVIS_DEFAULT_CONFIG]]] : [])\r\n\t\t\t.reduce((newLabelsConfig, [relationship, oldRelationshipsConfig]) => {\r\n\t\t\t\tnewLabelsConfig[relationship] = {\r\n\t\t\t\t\tvalue: oldRelationshipsConfig.thickness,\r\n\t\t\t\t\tlabel: typeof oldRelationshipsConfig.caption === 'string' ? oldRelationshipsConfig.caption : undefined,\r\n\t\t\t\t\t[NEOVIS_ADVANCED_CONFIG]: {\r\n\t\t\t\t\t\tfunction: {\r\n\t\t\t\t\t\t\ttitle: objectToTitleHtml\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\treturn newLabelsConfig;\r\n\t\t\t}, {}) : undefined\r\n\t};\r\n}\r\n\r\nexport default NeoVis;\r\n"],"names":["root","factory","exports","module","require","define","amd","undefined","self","__WEBPACK_EXTERNAL_MODULE__783__","__WEBPACK_EXTERNAL_MODULE__642__","__WEBPACK_EXTERNAL_MODULE__779__","__WEBPACK_EXTERNAL_MODULE__852__","__WEBPACK_EXTERNAL_MODULE__995__","__WEBPACK_EXTERNAL_MODULE__820__","__WEBPACK_EXTERNAL_MODULE__723__","__WEBPACK_EXTERNAL_MODULE__519__","__WEBPACK_EXTERNAL_MODULE__83__","__WEBPACK_EXTERNAL_MODULE__848__","__WEBPACK_EXTERNAL_MODULE__209__","__WEBPACK_EXTERNAL_MODULE__317__","__WEBPACK_EXTERNAL_MODULE__483__","__WEBPACK_EXTERNAL_MODULE__349__","__WEBPACK_EXTERNAL_MODULE__949__","__WEBPACK_EXTERNAL_MODULE__55__","__WEBPACK_EXTERNAL_MODULE__365__","__WEBPACK_EXTERNAL_MODULE__613__","__WEBPACK_EXTERNAL_MODULE__581__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","defaults","neo4j","initialQuery","neo4jUri","neo4jUser","neo4jPassword","driverConfig","encrypted","trust","maxConnectionPoolSize","connectionAcquisitionTimeout","disableLosslessIntegers","visJs","nodes","font","size","strokeWidth","scaling","edges","arrows","to","enabled","length","layout","improvedLayout","hierarchical","sortMethod","physics","adaptiveTimestep","stabilization","iterations","fit","NeoVisEvents","EventController","constructor","_defineProperty","this","_handlers","CompletionEvent","ErrorEvent","ClickNodeEvent","ClickEdgeEvent","register","eventType","handler","Error","push","generateEvent","values","NEOVIS_DEFAULT_CONFIG","_Symbol","NEOVIS_ADVANCED_CONFIG","_classPrivateMethodInitSpec","privateSet","_checkPrivateRedeclaration","add","_classPrivateFieldInitSpec","privateMap","set","privateCollection","has","TypeError","_classPrivateMethodGet","receiver","fn","_propertyToHtml","_Array$isArray","out","val","_retrieveProperty","properties","isInt","toInt","objectToTitleHtml","neo4jObject","titleProperties","titleString","_Object$keys","propVal","title","document","createElement","innerHTML","objectToTitleString","_data","_WeakMap","_network","_events","_config","_driver","_database","_query2","_container","_consoleLog","_WeakSet","_init","_runCypher","_runFunction","_buildStaticObject","_buildPropertyNameObject","_buildCypherObject","_buildFunctionObject","_buildVisObject","_buildNodeVisObject","_buildEdgeVisObject","NeoVis","_classPrivateFieldGet","network","config","writable","vis","_init2","_consoleLog2","render","query","recordCount","_query","session","database","dataBuildPromises","run","limit","subscribe","onNext","record","name","dataPromises","_mapInstanceProperty","async","v","isNode","node","_buildNodeVisObject2","update","e","isRelationship","edge","_buildEdgeVisObject2","isPath","startNode","start","endNode","end","segments","relationship","_Promise","onCompleted","close","options","deepmerge","visConfig","container","_classPrivateFieldSet","_setTimeout","stopSimulation","neoVis","on","params","nodeId","getNodeAt","pointer","DOM","edgeId","getEdgeAt","onError","error","clearNetwork","clear","registerOnEvent","reinit","reload","stabilize","renderWithCypher","updateWithCypher","message","level","arguments","consoleDebug","console","defaultLabelConfig","defaultRelationshipConfig","nonFlat","defaultRelationshipsConfig","labels","relationships","Neo4j","serverUrl","serverUser","serverPassword","serverDatabase","initialCypher","getElementById","containerId","_runCypher2","cypher","id","results","result","readTransaction","tx","records","_forEachInstanceProperty","pop","_runFunction2","func","_buildStaticObject2","staticConfig","object","_buildPropertyNameObject2","propertyNameConfig","neo4jObj","property","_buildCypherObject2","cypherConfig","promise","then","_buildFunctionObject2","functionConfig","_buildVisObject2","baseObject","propertyConfig","static","function","advancedConfig","neo4jNode","label","labelConfig","identity","raw","relationshipConfig","type","from","migrateFromOldConfig","oldNeoVisConfig","_context","_context2","_context3","_context4","container_id","initial_cypher","console_debug","server_database","server_url","server_user","server_password","hierarchical_sort_method","_reduceInstanceProperty","_concatInstanceProperty","_Object$entries","newLabelsConfig","_ref","oldLabelConfig","caption","group","community","sizeCypher","props","title_properties","shape","image","_ref2","oldRelationshipsConfig","thickness"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"neovis-without-dependencies.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,iDAAkDA,QAAQ,uDAAwDA,QAAQ,uDAAwDA,QAAQ,wDAAyDA,QAAQ,qDAAsDA,QAAQ,sDAAuDA,QAAQ,iDAAkDA,QAAQ,qDAAsDA,QAAQ,yDAA0DA,QAAQ,yDAA0DA,QAAQ,wDAAyDA,QAAQ,kDAAmDA,QAAQ,kDAAmDA,QAAQ,2DAA4DA,QAAQ,gBAAiBA,QAAQ,qBAAsBA,QAAQ,0BAA2BA,QAAQ,aAAcA,QAAQ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CAAC,CAACA,EAAuByL,EAAgBlD,cAAcvI,KAA2B,KAAGvD,KAAAmP,GAC5I,CAACa,EAAeU,KAA6C,IAA1CpH,EAAcqH,GAAuBD,EAU/D,OATAV,EAAgB1G,GAAgB,CAC/BlJ,MAAOuQ,EAAuBC,UAC9BrC,MAAiD,iBAAnCoC,EAAuBR,QAAuBQ,EAAuBR,aAAU7S,EAC7F,CAACmG,GAAyB,CACzB2K,SAAU,CACT/I,MAAON,KAIHiL,CAAe,GACpB,CAAC,QAAK1S,EAEZ,CA9SEmF,IArUWsE,GAAM,wBACaxD,GAAqBd,IADxCsE,GAAM,yBAEctD,GAAsBhB,IAF1CsE,GAAM,oBAGShC,GAAiBtC,IAHhCsE,GAAM,sBAIWtB,GAinB9B,W","sources":["webpack://NeoVis/webpack/universalModuleDefinition","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/array/is-array\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/array/is-array\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/array/is-array\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/instance/concat\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/instance/concat\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/instance/concat\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/instance/for-each\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/instance/for-each\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/instance/for-each\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/instance/map\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/instance/map\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/instance/map\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/instance/reduce\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/instance/reduce\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/instance/reduce\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/object/entries\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/object/entries\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/object/entries\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/object/keys\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/object/keys\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/object/keys\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/promise\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/promise\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/promise\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/set-timeout\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/set-timeout\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/set-timeout\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/symbol\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/symbol\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/symbol\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/weak-map\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/weak-map\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/weak-map\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/core-js-stable/weak-set\",\"commonjs2\":\"@babel/runtime-corejs3/core-js-stable/weak-set\",\"amd\":\"@babel/runtime-corejs3/core-js-stable/weak-set\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/helpers/classPrivateFieldGet\",\"commonjs2\":\"@babel/runtime-corejs3/helpers/classPrivateFieldGet\",\"amd\":\"@babel/runtime-corejs3/helpers/classPrivateFieldGet\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/helpers/classPrivateFieldSet\",\"commonjs2\":\"@babel/runtime-corejs3/helpers/classPrivateFieldSet\",\"amd\":\"@babel/runtime-corejs3/helpers/classPrivateFieldSet\"}","webpack://NeoVis/external umd {\"commonjs\":\"@babel/runtime-corejs3/helpers/defineProperty\",\"commonjs2\":\"@babel/runtime-corejs3/helpers/defineProperty\",\"amd\":\"@babel/runtime-corejs3/helpers/defineProperty\"}","webpack://NeoVis/external umd {\"commonjs\":\"deepmerge\",\"commonjs2\":\"deepmerge\",\"amd\":\"deepmerge\"}","webpack://NeoVis/external umd {\"commonjs\":\"neo4j-driver\",\"commonjs2\":\"neo4j-driver\",\"amd\":\"neo4j-driver\"}","webpack://NeoVis/external umd {\"commonjs\":\"neo4j-driver-core\",\"commonjs2\":\"neo4j-driver-core\",\"amd\":\"neo4j-driver-core\"}","webpack://NeoVis/external umd {\"commonjs\":\"vis-network/standalone\",\"commonjs2\":\"vis-network/standalone\",\"amd\":\"vis-network/standalone\"}","webpack://NeoVis/webpack/bootstrap","webpack://NeoVis/webpack/runtime/compat get default export","webpack://NeoVis/webpack/runtime/define property getters","webpack://NeoVis/webpack/runtime/hasOwnProperty shorthand","webpack://NeoVis/webpack/runtime/make namespace object","webpack://NeoVis/./src/defaults.ts","webpack://NeoVis/./src/events.ts","webpack://NeoVis/./src/types.ts","webpack://NeoVis/./src/neovis.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@babel/runtime-corejs3/helpers/defineProperty\"), require(\"@babel/runtime-corejs3/helpers/classPrivateFieldSet\"), require(\"@babel/runtime-corejs3/helpers/classPrivateFieldGet\"), require(\"@babel/runtime-corejs3/core-js-stable/array/is-array\"), require(\"@babel/runtime-corejs3/core-js-stable/object/keys\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/map\"), require(\"@babel/runtime-corejs3/core-js-stable/promise\"), require(\"@babel/runtime-corejs3/core-js-stable/set-timeout\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/reduce\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/concat\"), require(\"@babel/runtime-corejs3/core-js-stable/object/entries\"), require(\"@babel/runtime-corejs3/core-js-stable/weak-map\"), require(\"@babel/runtime-corejs3/core-js-stable/weak-set\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/for-each\"), require(\"neo4j-driver\"), require(\"neo4j-driver-core\"), require(\"vis-network/standalone\"), require(\"deepmerge\"), require(\"@babel/runtime-corejs3/core-js-stable/symbol\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"@babel/runtime-corejs3/helpers/defineProperty\", \"@babel/runtime-corejs3/helpers/classPrivateFieldSet\", \"@babel/runtime-corejs3/helpers/classPrivateFieldGet\", \"@babel/runtime-corejs3/core-js-stable/array/is-array\", \"@babel/runtime-corejs3/core-js-stable/object/keys\", \"@babel/runtime-corejs3/core-js-stable/instance/map\", \"@babel/runtime-corejs3/core-js-stable/promise\", \"@babel/runtime-corejs3/core-js-stable/set-timeout\", \"@babel/runtime-corejs3/core-js-stable/instance/reduce\", \"@babel/runtime-corejs3/core-js-stable/instance/concat\", \"@babel/runtime-corejs3/core-js-stable/object/entries\", \"@babel/runtime-corejs3/core-js-stable/weak-map\", \"@babel/runtime-corejs3/core-js-stable/weak-set\", \"@babel/runtime-corejs3/core-js-stable/instance/for-each\", \"neo4j-driver\", \"neo4j-driver-core\", \"vis-network/standalone\", \"deepmerge\", \"@babel/runtime-corejs3/core-js-stable/symbol\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"NeoVis\"] = factory(require(\"@babel/runtime-corejs3/helpers/defineProperty\"), require(\"@babel/runtime-corejs3/helpers/classPrivateFieldSet\"), require(\"@babel/runtime-corejs3/helpers/classPrivateFieldGet\"), require(\"@babel/runtime-corejs3/core-js-stable/array/is-array\"), require(\"@babel/runtime-corejs3/core-js-stable/object/keys\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/map\"), require(\"@babel/runtime-corejs3/core-js-stable/promise\"), require(\"@babel/runtime-corejs3/core-js-stable/set-timeout\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/reduce\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/concat\"), require(\"@babel/runtime-corejs3/core-js-stable/object/entries\"), require(\"@babel/runtime-corejs3/core-js-stable/weak-map\"), require(\"@babel/runtime-corejs3/core-js-stable/weak-set\"), require(\"@babel/runtime-corejs3/core-js-stable/instance/for-each\"), require(\"neo4j-driver\"), require(\"neo4j-driver-core\"), require(\"vis-network/standalone\"), require(\"deepmerge\"), require(\"@babel/runtime-corejs3/core-js-stable/symbol\"));\n\telse\n\t\troot[\"NeoVis\"] = factory(root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined], root[undefined]);\n})(self, (__WEBPACK_EXTERNAL_MODULE__783__, __WEBPACK_EXTERNAL_MODULE__642__, __WEBPACK_EXTERNAL_MODULE__779__, __WEBPACK_EXTERNAL_MODULE__852__, __WEBPACK_EXTERNAL_MODULE__995__, __WEBPACK_EXTERNAL_MODULE__820__, __WEBPACK_EXTERNAL_MODULE__723__, __WEBPACK_EXTERNAL_MODULE__519__, __WEBPACK_EXTERNAL_MODULE__83__, __WEBPACK_EXTERNAL_MODULE__848__, __WEBPACK_EXTERNAL_MODULE__209__, __WEBPACK_EXTERNAL_MODULE__317__, __WEBPACK_EXTERNAL_MODULE__483__, __WEBPACK_EXTERNAL_MODULE__349__, __WEBPACK_EXTERNAL_MODULE__949__, __WEBPACK_EXTERNAL_MODULE__55__, __WEBPACK_EXTERNAL_MODULE__365__, __WEBPACK_EXTERNAL_MODULE__613__, __WEBPACK_EXTERNAL_MODULE__581__) => {\nreturn ","module.exports = __WEBPACK_EXTERNAL_MODULE__852__;","module.exports = __WEBPACK_EXTERNAL_MODULE__848__;","module.exports = __WEBPACK_EXTERNAL_MODULE__349__;","module.exports = __WEBPACK_EXTERNAL_MODULE__820__;","module.exports = __WEBPACK_EXTERNAL_MODULE__83__;","module.exports = __WEBPACK_EXTERNAL_MODULE__209__;","module.exports = __WEBPACK_EXTERNAL_MODULE__995__;","module.exports = __WEBPACK_EXTERNAL_MODULE__723__;","module.exports = __WEBPACK_EXTERNAL_MODULE__519__;","module.exports = __WEBPACK_EXTERNAL_MODULE__581__;","module.exports = __WEBPACK_EXTERNAL_MODULE__317__;","module.exports = __WEBPACK_EXTERNAL_MODULE__483__;","module.exports = __WEBPACK_EXTERNAL_MODULE__779__;","module.exports = __WEBPACK_EXTERNAL_MODULE__642__;","module.exports = __WEBPACK_EXTERNAL_MODULE__783__;","module.exports = __WEBPACK_EXTERNAL_MODULE__613__;","module.exports = __WEBPACK_EXTERNAL_MODULE__949__;","module.exports = __WEBPACK_EXTERNAL_MODULE__55__;","module.exports = __WEBPACK_EXTERNAL_MODULE__365__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const defaults = {\r\n\r\n\tneo4j: {\r\n\t\tinitialQuery: `MATCH (n) WHERE exists(n.pagerank)\r\n WITH (n), RAND() AS random\r\n ORDER BY random LIMIT 3000\r\n OPTIONAL MATCH (n)-[r]-(m)\r\n //WITH n,r,m WHERE exists(n.pagerank) AND exists(m.pagerank) AND exists(m.community)\r\n RETURN n, r, m;`,\r\n\t\tneo4jUri: 'bolt://localhost:7687',\r\n\t\tneo4jUser: 'neo4j',\r\n\t\tneo4jPassword: 'neo4j',\r\n\t\tdriverConfig: {\r\n\t\t\tencrypted: 'ENCRYPTION_OFF',\r\n\t\t\ttrust: 'TRUST_ALL_CERTIFICATES',\r\n\t\t\tmaxConnectionPoolSize: 100,\r\n\t\t\tconnectionAcquisitionTimeout: 10000,\r\n\t\t\tdisableLosslessIntegers: true,\r\n\t\t},\r\n\t\tgroupAsLabel: true\r\n\t},\r\n\r\n\tvisJs: {\r\n\t\tnodes: {\r\n\t\t\tfont: {\r\n\t\t\t\tsize: 26,\r\n\t\t\t\tstrokeWidth: 7\r\n\t\t\t},\r\n\t\t\tscaling: {}\r\n\t\t},\r\n\t\tedges: {\r\n\t\t\tarrows: {\r\n\t\t\t\tto: { enabled: false }\r\n\t\t\t},\r\n\t\t\tlength: 200\r\n\t\t},\r\n\t\tlayout: {\r\n\t\t\timprovedLayout: false,\r\n\t\t\thierarchical: {\r\n\t\t\t\tenabled: false,\r\n\t\t\t\tsortMethod: 'hubsize'\r\n\t\t\t}\r\n\t\t},\r\n\t\tphysics: { // TODO: adaptive physics settings based on size of graph rendered\r\n\t\t\t// enabled: true,\r\n\t\t\t// timestep: 0.5,\r\n\t\t\t// stabilization: {\r\n\t\t\t// iterations: 10\r\n\t\t\t// }\r\n\r\n\t\t\tadaptiveTimestep: true,\r\n\t\t\t// barnesHut: {\r\n\t\t\t// gravitationalConstant: -8000,\r\n\t\t\t// springConstant: 0.04,\r\n\t\t\t// springLength: 95\r\n\t\t\t// },\r\n\t\t\tstabilization: {\r\n\t\t\t\titerations: 200,\r\n\t\t\t\tfit: true\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n\r\nexport { defaults };","import { Edge, Node } from './types';\r\n\r\nexport enum NeoVisEvents {\r\n\tCompletionEvent = 'completed',\r\n\tClickNodeEvent = 'clickNode',\r\n\tClickEdgeEvent = 'clickEdge',\r\n\tErrorEvent = 'error'\r\n}\r\n\r\nexport interface EventFunctionTypes {\r\n\t[NeoVisEvents.CompletionEvent]: (event: { recordCount: number }) => void;\r\n\t[NeoVisEvents.ClickNodeEvent]: (event: { nodeId: number, node: Node }) => void;\r\n\t[NeoVisEvents.ClickEdgeEvent]: (event: { edgeId: number, edge: Edge }) => void;\r\n\t[NeoVisEvents.ErrorEvent]: (event: { error: Error }) => void;\r\n}\r\n\r\nexport class EventController {\r\n\tprivate readonly _handlers: { [p: string]: Function[] };\r\n\r\n\tconstructor() {\r\n\t\tthis._handlers = {\r\n\t\t\t[NeoVisEvents.CompletionEvent]: [],\r\n\t\t\t[NeoVisEvents.ErrorEvent]: [],\r\n\t\t\t[NeoVisEvents.ClickNodeEvent]: [],\r\n\t\t\t[NeoVisEvents.ClickEdgeEvent]: [],\r\n\t\t};\r\n\t}\r\n\r\n\t/**\r\n\t *\r\n\t * @param eventType - Type of the event to be handled\r\n\t * @param handler - Handler to manage the event\r\n\t */\r\n\tregister(eventType: T, handler: EventFunctionTypes[T]): void {\r\n\t\tif (this._handlers[eventType] === undefined) {\r\n\t\t\tthrow new Error('Unknown event: ' + eventType);\r\n\t\t}\r\n\r\n\t\tthis._handlers[eventType].push(handler);\r\n\t}\r\n\r\n\t/**\r\n\t *\r\n\t * @param {string} eventType - Type of the event generated\r\n\t * @param {any} values - Values associated to the event\r\n\t */\r\n\tgenerateEvent(eventType: T, values: Parameters[0]): void {\r\n\t\tif (this._handlers[eventType] === undefined) {\r\n\t\t\tthrow new Error('Unknown event: ' + eventType);\r\n\t\t}\r\n\r\n\t\tfor (const handler of this._handlers[eventType]) {\r\n\t\t\thandler(values);\r\n\t\t}\r\n\t}\r\n}\r\n","import type * as Neo4jTypes from 'neo4j-driver';\r\nimport type * as VisNetwork from 'vis-network';\r\n\r\n\r\nexport const NEOVIS_DEFAULT_CONFIG = Symbol();\r\nexport const NEOVIS_ADVANCED_CONFIG = Symbol();\r\nexport type NumberOrInteger = number | Neo4jTypes.Integer;\r\n\r\nexport type RecursiveMapToDist = T extends object ? RecursiveMapTo : New\r\n\r\n/**\r\n * Maps a type recursively and replace each non object type with the new type\r\n * @param type to map\r\n * @param type to map to for each non object type\r\n */\r\nexport type RecursiveMapTo = { [P in keyof T]: RecursiveMapToDist }\r\n\r\nexport type RecursiveMapToFunctionDist = T extends object ? ((param: PARAM_TYPE) => T) | (RecursiveMapToFunction) : (param: PARAM_TYPE) => T\r\n/**\r\n * Maps a type recursively and adds the ability for each object property to be a function that returns the same type\r\n * but replace each non object type with a function that returns the same type\r\n * @param type to map\r\n * @param type of parameter the functions get\r\n */\r\nexport type RecursiveMapToFunction = {\r\n\t[P in keyof T]: RecursiveMapToFunctionDist\r\n};\r\n\r\n/**\r\n * Cypher quarry\r\n */\r\nexport type Cypher = string;\r\n\r\nexport interface NeoVisAdvanceConfig {\r\n\t/**\r\n\t * Static values that will the same for every node/relationship\r\n\t * */\r\n\tstatic?: VIS_TYPE;\r\n\t/**\r\n\t * Cypher that will be called for every object (will look the same as\r\n\t */\r\n\tcypher?: RecursiveMapTo;\r\n\tfunction?: RecursiveMapToFunction;\r\n}\r\n\r\nexport interface NonFlatNeoVisAdvanceConfig extends NeoVisAdvanceConfig {\r\n\tproperty?: RecursiveMapTo;\r\n}\r\n\r\nexport type NeovisDataConfig =\r\n\tRecursiveMapTo\r\n\t& { [NEOVIS_ADVANCED_CONFIG]?: NeoVisAdvanceConfig };\r\n\r\n/**\r\n * A mapper between neo4j node properties names to vis-network node config\r\n * @link https://visjs.github.io/vis-network/docs/network/nodes.html\r\n */\r\nexport interface LabelConfig extends RecursiveMapTo {\r\n\t/**\r\n\t * advance options which allow for:\r\n\t * mapping static options to each node\r\n\t * mapping cypher to run for each node to determine vis-network node option\r\n\t * mapping function that gets the neo4j node and returns vis-network node option\r\n\t */\r\n\t[NEOVIS_ADVANCED_CONFIG]?: NeoVisAdvanceConfig>;\r\n}\r\n\r\n/**\r\n * A mapper between neo4j relationship properties names to vis-network edge config\r\n * @link https://visjs.github.io/vis-network/docs/network/edges.html\r\n */\r\nexport interface RelationshipConfig extends RecursiveMapTo {\r\n\t/**\r\n\t * advance options which allow for:\r\n\t * mapping static options to each edge\r\n\t * mapping cypher to run for each relationship to determine vis-network edge option\r\n\t * mapping function that gets the neo4j relationship and returns vis-network edge option\r\n\t */\r\n\t[NEOVIS_ADVANCED_CONFIG]?: NeoVisAdvanceConfig>;\r\n}\r\n\r\nexport interface Neo4jConfig {\r\n\t/**\r\n\t * neo4j server\r\n\t * @example bolt://localhost:7687\r\n\t */\r\n\tserverUrl?: string;\r\n\tserverUser?: string;\r\n\tserverPassword?: string;\r\n\t/**\r\n\t * @link https://neo4j.com/docs/api/javascript-driver/current/function/index.html#configuration\r\n\t */\r\n\tdriverConfig?: Neo4jTypes.Config;\r\n}\r\n\r\nexport interface BaseNeovisConfig {\r\n\t/**\r\n\t * Html id of the element you want Neovis to render on\r\n\t */\r\n\tcontainerId: string;\r\n\t/**\r\n\t * database name you want to connect to\r\n\t * @default neo4j\r\n\t */\r\n\tserverDatabase?: string;\r\n\t/**\r\n\t * Neo4j Driver instance or configuration to make one\r\n\t */\r\n\tneo4j?: Neo4jTypes.Driver | Neo4jConfig;\r\n\t/**\r\n\t * Vis network config to override neovis defaults\r\n\t * @link https://visjs.github.io/vis-network/docs/network/#options\r\n\t */\r\n\tvisConfig?: VisNetwork.Options;\r\n\r\n\t/**\r\n\t * The Cypher query that will get the data\r\n\t */\r\n\tinitialCypher?: Cypher;\r\n\t/**\r\n\t * Should output debug messages to console\r\n\t * @default false\r\n\t */\r\n\tconsoleDebug?: boolean;\r\n\r\n\t/**\r\n\t * Should group be the label\r\n\t * @default true\r\n\t */\r\n\tgroupAsLabel?: boolean;\r\n\r\n\t/**\r\n\t * Tells Neovis is the config is flat or not\r\n\t * @default false\r\n\t */\r\n\tnonFlat?: boolean;\r\n}\r\n\r\n/**\r\n * @example\r\n * ```js\r\n * //simple\r\n * {\r\n * containerId: \"viz\",\r\n * neo4j: {\r\n * \tserverUrl: \"bolt://localhost:7687\",\r\n * \tserverUser: \"neo4j\",\r\n * \tserverPassword: \"sorts-swims-burglaries\"\r\n * },\r\n * labels: {\r\n * \tCharacter: {\r\n * \t\tlabel: \"name\",\r\n * \t\tvalue: \"pagerank\",\r\n * \t\tgroup: \"community\"\r\n * \t}\r\n * },\r\n * relationships: {\r\n * \tINTERACTS: {\r\n * \t\tvalue: \"weight\"\r\n * \t}\r\n * },\r\n * initialCypher: \"MATCH (n)-[r:INTERACTS]->(m) RETURN n,r,m\"\r\n * }\r\n * // advance\r\n * {\r\n * containerId: 'viz',\r\n * neo4j: {\r\n * \tserverUrl: 'bolt://localhost:7687',\r\n * \tserverUser: 'neo4j',\r\n * \tserverPassword: 'gland-presentation-worry'\r\n * },\r\n * visConfig: {\r\n * \tnodes: {\r\n * \t\tshape: 'square'\r\n * \t},\r\n * \tedges: {\r\n * \t\tarrows: {\r\n * \t\t\tto: {enabled: true}\r\n * \t\t}\r\n * \t},\r\n * },\r\n * labels: {\r\n * \tCharacter: {\r\n * \t\tlabel: 'pagerank',\r\n * \t\tgroup: 'community',\r\n * \t\t[Neovis.NEOVIS_ADVANCED_CONFIG]: {\r\n * \t\t\tcypher: {\r\n * \t\t\t\tvalue: \"MATCH (n) WHERE id(n) = $id RETURN n.size\"\r\n * \t\t\t},\r\n * \t\t\tfunction: {\r\n * \t\t\t\ttitle: (node) => {\r\n * \t\t\t\t\treturn viz.nodeToHtml(node, undefined);\r\n * \t\t\t\t}\r\n * \t\t\t},\r\n * \t\t}\r\n * \t}\r\n * },\r\n * relationships: {\r\n * \tINTERACTS: {\r\n * \t\tvalue: 'weight',\r\n * \t\t[Neovis.NEOVIS_ADVANCED_CONFIG]: {\r\n * \t\t\tfunction: {\r\n * \t\t\t\ttitle: (edge) => {\r\n * \t\t\t\t\treturn viz.nodeToHtml(edge, undefined);\r\n * \t\t\t\t}\r\n * \t\t\t},\r\n * \t\t}\r\n * \t}\r\n * },\r\n * initialCypher: 'MATCH (n)-[r]->(m) RETURN n,r,m'\r\n * }\r\n * ```\r\n */\r\nexport interface NeovisConfig extends BaseNeovisConfig {\r\n\tnonFlat?: false;\r\n\t/**\r\n\t * @example ```javascript\r\n\t *{\r\n\t * \tCharacter: {\r\n\t * \tlabel: 'pagerank',\r\n\t * \t\tgroup: 'community',\r\n\t * \t\t[Neovis.NEOVIS_ADVANCED_CONFIG]: {\r\n\t * \t\t\tcypher: {\r\n\t * \t\t\t\tvalue: \"MATCH (n) WHERE id(n) = $id RETURN n.size\"\r\n\t * \t\t\t},\r\n\t * \t\t\tfunction: {\r\n\t * \t\t\t\ttitle: (node) => {\r\n\t * \t\t\t\t\treturn viz.nodeToHtml(node, undefined);\r\n\t * \t\t\t\t}\r\n\t * \t\t\t},\r\n\t * \t\t}\r\n\t * \t}\r\n\t * }\r\n\t * ```\r\n\t */\r\n\tlabels?: {\r\n\t\t[label: string]: LabelConfig,\r\n\t\t[NEOVIS_DEFAULT_CONFIG]?: LabelConfig\r\n\t};\r\n\t/**\r\n\t * @example\r\n\t * ``` js\r\n\t * {\r\n\t * INTERACTS: {\r\n\t * \t value: 'weight',\r\n\t * \t [Neovis.NEOVIS_ADVANCED_CONFIG]: {\r\n\t * \t \tfunction: {\r\n\t * \t \t\ttitle: (edge) => {\r\n\t * \t \t\t\treturn viz.nodeToHtml(edge, undefined);\r\n\t * \t \t\t}\r\n\t * \t \t},\r\n\t * \t }\r\n\t * }\r\n\t * }\r\n\t * ```\r\n\t */\r\n\trelationships?: {\r\n\t\t[relationship: string]: RelationshipConfig,\r\n\t\t[NEOVIS_DEFAULT_CONFIG]?: RelationshipConfig\r\n\t};\r\n}\r\n\r\nexport type NonFlatLabelConfig = NonFlatNeoVisAdvanceConfig>;\r\nexport type NonFlatRelationsipConfig = NonFlatNeoVisAdvanceConfig>;\r\n\r\n/**\r\n * non flat version of the configuration (without Symbols)\r\n * look at the normal config for more information\r\n *\r\n * @example\r\n * ```js\r\n * {\r\n * containerId: 'viz',\r\n * nonFlat: true,\r\n * neo4j: {\r\n * \tserverUrl: 'bolt://localhost:7687',\r\n * \tserverUser: 'neo4j',\r\n * \tserverPassword: 'gland-presentation-worry'\r\n * },\r\n * visConfig: {\r\n * \tnodes: {\r\n * \t\tshape: 'square'\r\n * \t},\r\n * \tedges: {\r\n * \t\tarrows: {\r\n * \t\t\tto: {enabled: true}\r\n * \t\t}\r\n * \t},\r\n * },\r\n * labels: {\r\n * \tCharacter: {\r\n * \t\tproperty: {\r\n * \t\t label: 'pagerank',\r\n * \t\t group: 'community'\r\n * \t }\r\n * \t\tcypher: {\r\n * \t\t\tvalue: \"MATCH (n) WHERE id(n) = $id RETURN n.size\"\r\n * \t\t},\r\n * \t\tfunction: {\r\n * \t\t\ttitle: (node) => {\r\n * \t\t\t\treturn viz.nodeToHtml(node, undefined);\r\n * \t\t\t}\r\n * \t\t}\r\n * \t}\r\n * },\r\n * relationships: {\r\n * \tINTERACTS: {\r\n * property: {\r\n * \t\t value: 'weight'\r\n * \t }\r\n * \t\tfunction: {\r\n * \t\t\ttitle: (edge) => {\r\n * \t\t\t\treturn viz.nodeToHtml(edge, undefined);\r\n * \t\t\t}\r\n * \t\t}\r\n * \t}\r\n * },\r\n * initialCypher: 'MATCH (n)-[r]->(m) RETURN n,r,m'\r\n * }\r\n * ```\r\n */\r\nexport interface NonFlatNeovisConfig extends BaseNeovisConfig {\r\n\tnonFlat: true;\r\n\tdefaultLabelConfig?: NonFlatLabelConfig;\r\n\tdefaultRelationshipsConfig?: NonFlatRelationsipConfig;\r\n\tlabels?: Record;\r\n\trelationships?: Record;\r\n}\r\n\r\n/**\r\n * A network node with raw neo4j node\r\n */\r\nexport interface Node extends VisNetwork.Node {\r\n\t/**\r\n\t * @link https://neo4j.com/docs/api/javascript-driver/current/class/src/graph-types.js~Node.html\r\n\t */\r\n\tid: number;\r\n\traw: Neo4jTypes.Node;\r\n}\r\n\r\n/**\r\n * A network edge with raw neo4j relationship\r\n */\r\nexport interface Edge extends VisNetwork.Edge {\r\n\t/**\r\n\t * https://neo4j.com/docs/api/javascript-driver/current/class/src/graph-types.js~Relationship.html\r\n\t */\r\n\tid: number;\r\n\traw: Neo4jTypes.Relationship;\r\n}","'use strict';\r\n\r\nimport type * as Neo4jTypes from 'neo4j-driver';\r\nimport Neo4j from 'neo4j-driver';\r\nimport type * as Neo4jCore from 'neo4j-driver-core';\r\nimport { isInt, isNode, isPath, isRelationship } from 'neo4j-driver-core';\r\nimport * as vis from 'vis-network/standalone';\r\nimport { defaults } from './defaults';\r\nimport { EventController, EventFunctionTypes, NeoVisEvents } from './events';\r\nimport deepmerge from 'deepmerge';\r\nimport type * as VisNetwork from 'vis-network';\r\nimport {\r\n\tCypher,\r\n\tEdge,\r\n\tLabelConfig,\r\n\tNeo4jConfig,\r\n\tNEOVIS_ADVANCED_CONFIG,\r\n\tNEOVIS_DEFAULT_CONFIG,\r\n\tNeovisConfig,\r\n\tNeovisDataConfig,\r\n\tNode,\r\n\tNonFlatLabelConfig,\r\n\tNonFlatNeoVisAdvanceConfig,\r\n\tNonFlatNeovisConfig,\r\n\tNonFlatRelationsipConfig,\r\n\tNumberOrInteger,\r\n\tRecursiveMapTo,\r\n\tRecursiveMapToFunction,\r\n\tRelationshipConfig\r\n} from './types';\r\n\r\nexport * from './events';\r\nexport * from './types';\r\n\r\nfunction isNeo4jDriver(neo4jConfig: Neo4jTypes.Driver | Neo4jConfig): neo4jConfig is Neo4jTypes.Driver {\r\n\treturn neo4jConfig instanceof Neo4j.driver;\r\n}\r\nfunction _propertyToHtml string }>(key: string, value: T | T[]): string {\r\n\tif (Array.isArray(value) && value.length > 1) {\r\n\t\tlet out = `${key}:
    `;\r\n\t\tfor (const val of value) {\r\n\t\t\tout += `
  • ${val}
  • `;\r\n\t\t}\r\n\t\treturn out + '
';\r\n\t}\r\n\treturn `${key}: ${value}
`;\r\n}\r\n\r\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\r\nfunction _retrieveProperty(prop: string, obj: any): T {\r\n\tif (typeof obj?.properties === 'object') {\r\n\t\treturn isInt(obj.properties[prop]) ? obj.properties[prop].toInt() : obj.properties[prop];\r\n\t}\r\n\tthrow new Error('Neo4j object is not properly constructed');\r\n}\r\n\r\n/**\r\n * create html display of the node\r\n * @param neo4jObject node to create html from\r\n * @param titleProperties which properties to map\r\n */\r\nexport function objectToTitleHtml(neo4jObject: Neo4jTypes.Node | Neo4jTypes.Relationship, titleProperties: string[]): HTMLDivElement {\r\n\tlet titleString = '';\r\n\tif (!titleProperties) {\r\n\t\ttitleProperties = Object.keys(neo4jObject.properties);\r\n\t}\r\n\tfor (const key of titleProperties) {\r\n\t\tconst propVal = _retrieveProperty(key, neo4jObject);\r\n\t\tif (propVal) {\r\n\t\t\ttitleString += _propertyToHtml(key, propVal);\r\n\t\t}\r\n\t}\r\n\tconst title = document.createElement('div');\r\n\ttitle.innerHTML = titleString;\r\n\treturn title;\r\n}\r\n\r\n/**\r\n * create string display of the node\r\n * @param neo4jObject node to create title string from\r\n * @param titleProperties which properties to map\r\n */\r\nexport function objectToTitleString(neo4jObject: Neo4jTypes.Node | Neo4jTypes.Relationship, titleProperties: string[]): string {\r\n\tlet title = '';\r\n\tif (!titleProperties) {\r\n\t\ttitleProperties = Object.keys(neo4jObject.properties);\r\n\t}\r\n\tfor (const key of titleProperties) {\r\n\t\tconst propVal = _retrieveProperty(key, neo4jObject);\r\n\t\tif (propVal) {\r\n\t\t\ttitle += `${key}: ${propVal}\\n`;\r\n\t\t}\r\n\t}\r\n\treturn title;\r\n}\r\n\r\nexport class NeoVis {\r\n\tstatic NEOVIS_DEFAULT_CONFIG = NEOVIS_DEFAULT_CONFIG;\r\n\tstatic NEOVIS_ADVANCED_CONFIG = NEOVIS_ADVANCED_CONFIG;\r\n\tstatic objectToTitleHtml = objectToTitleHtml;\r\n\tstatic objectToTitleString = objectToTitleString;\r\n\t#data = {\r\n\t\tnodes: new vis.DataSet(),\r\n\t\tedges: new vis.DataSet()\r\n\t};\r\n\t#network: VisNetwork.Network = null;\r\n\t#events = new EventController();\r\n\t#config: NeovisConfig | NonFlatNeovisConfig;\r\n\t#driver: Neo4jTypes.Driver;\r\n\t#database: string;\r\n\t#query: Cypher;\r\n\t#container: HTMLElement;\r\n\r\n\t/**\r\n\t * All view nodes as DataSet\r\n\t * @link https://visjs.github.io/vis-data/data/dataset.html\r\n\t */\r\n\tget nodes(): VisNetwork.DataSet {\r\n\t\treturn this.#data.nodes;\r\n\t}\r\n\r\n\t/**\r\n\t * All view edges as DataSet\r\n\t * @link https://visjs.github.io/vis-data/data/dataset.html\r\n\t */\r\n\tget edges(): VisNetwork.DataSet {\r\n\t\treturn this.#data.edges;\r\n\t}\r\n\r\n\t/**\r\n\t * @ignore for test purposes only\r\n\t */\r\n\tget _config(): NeovisConfig | NonFlatNeovisConfig {\r\n\t\treturn this.#config;\r\n\t}\r\n\r\n\t/**\r\n\t * The vis network object\r\n\t * @link https://visjs.github.io/vis-network/docs/network/#methods\r\n\t */\r\n\tget network(): VisNetwork.Network | undefined {\r\n\t\treturn this.#network;\r\n\t}\r\n\r\n\t/**\r\n\t *\r\n\t * @constructor\r\n\t * @param {object} config - configures the visualization and Neo4j server connection\r\n\t */\r\n\tconstructor(config: NeovisConfig | NonFlatNeovisConfig) {\r\n\t\tthis.#init(config);\r\n\r\n\t\tthis.#consoleLog(config);\r\n\t\tthis.#consoleLog(defaults);\r\n\t}\r\n\r\n\t#consoleLog(message: object | string, level = 'log'): void {\r\n\t\tif (level !== 'log' || this.#config.consoleDebug) {\r\n\t\t\t// eslint-disable-next-line no-console\r\n\t\t\tconsole[level](message);\r\n\t\t}\r\n\t}\r\n\r\n\t#init(config: NeovisConfig | NonFlatNeovisConfig): void {\r\n\t\tlet defaultLabelConfig: NonFlatLabelConfig | LabelConfig;\r\n\t\tlet defaultRelationshipConfig: NonFlatRelationsipConfig | RelationshipConfig;\r\n\t\tif (config.nonFlat && config.defaultLabelConfig) {\r\n\t\t\tdefaultLabelConfig = config.defaultLabelConfig;\r\n\t\t\tif (defaultLabelConfig[NEOVIS_ADVANCED_CONFIG]) {\r\n\t\t\t\tthrow new Error('non flat config can\\'t use NEOVIS_ADVANCED_CONFIG, read the doc to see how the config should look');\r\n\t\t\t}\r\n\t\t\tdefaultRelationshipConfig = config.defaultRelationshipsConfig;\r\n\t\t\tif (defaultRelationshipConfig[NEOVIS_ADVANCED_CONFIG]) {\r\n\t\t\t\tthrow new Error('non flat config can\\'t use NEOVIS_ADVANCED_CONFIG, read the doc to see how the config should look');\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tdefaultLabelConfig = (config as NeovisConfig).labels?.[NEOVIS_DEFAULT_CONFIG];\r\n\t\t\tdefaultRelationshipConfig = (config as NeovisConfig).relationships?.[NEOVIS_DEFAULT_CONFIG];\r\n\t\t}\r\n\t\tif (defaultLabelConfig) {\r\n\t\t\tfor (const key of Object.keys(config.labels)) {\r\n\t\t\t\t// getting out of my for not changing the original config object\r\n\t\t\t\tif (config.nonFlat) {\r\n\t\t\t\t\t(config as NonFlatNeovisConfig) = {\r\n\t\t\t\t\t\t...config as NonFlatNeovisConfig,\r\n\t\t\t\t\t\tlabels: {\r\n\t\t\t\t\t\t\t...config.labels as Record,\r\n\t\t\t\t\t\t\t[key]: deepmerge(defaultLabelConfig as NonFlatLabelConfig, config.labels?.[key] as NonFlatLabelConfig)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t};\r\n\t\t\t\t} else {\r\n\t\t\t\t\t(config as NeovisConfig) = {\r\n\t\t\t\t\t\t...config as NeovisConfig,\r\n\t\t\t\t\t\tlabels: {\r\n\t\t\t\t\t\t\t...config.labels as Record,\r\n\t\t\t\t\t\t\t[key]: {\r\n\t\t\t\t\t\t\t\t...deepmerge(defaultLabelConfig as LabelConfig, config.labels?.[key] as LabelConfig),\r\n\t\t\t\t\t\t\t\t[NEOVIS_ADVANCED_CONFIG]: deepmerge((defaultLabelConfig as LabelConfig)[NEOVIS_ADVANCED_CONFIG] ?? {}, (config.labels?.[key] as LabelConfig)[NEOVIS_ADVANCED_CONFIG] ?? {}),\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (defaultRelationshipConfig) {\r\n\t\t\tfor (const key of Object.keys(config.relationships)) {\r\n\t\t\t\t// getting out of my for not changing the original config object\r\n\t\t\t\tif (config.nonFlat) {\r\n\t\t\t\t\t(config as NonFlatNeovisConfig) = {\r\n\t\t\t\t\t\t...config as NonFlatNeovisConfig,\r\n\t\t\t\t\t\trelationships: {\r\n\t\t\t\t\t\t\t...config.relationships as Record,\r\n\t\t\t\t\t\t\t[key]: deepmerge(defaultRelationshipConfig as NonFlatRelationsipConfig, config.relationships?.[key] as NonFlatRelationsipConfig)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t};\r\n\t\t\t\t} else {\r\n\t\t\t\t\t(config as NeovisConfig) = {\r\n\t\t\t\t\t\t...config as NeovisConfig,\r\n\t\t\t\t\t\trelationships: {\r\n\t\t\t\t\t\t\t...config.relationships as Record,\r\n\t\t\t\t\t\t\t[key]: {\r\n\t\t\t\t\t\t\t\t...deepmerge(defaultRelationshipConfig as RelationshipConfig, config.relationships?.[key] as RelationshipConfig),\r\n\t\t\t\t\t\t\t\t[NEOVIS_ADVANCED_CONFIG]: deepmerge((defaultRelationshipConfig as RelationshipConfig)[NEOVIS_ADVANCED_CONFIG] ?? {}, (config.relationships?.[key] as RelationshipConfig)[NEOVIS_ADVANCED_CONFIG] ?? {}),\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.#config = config;\r\n\t\tthis.#driver = isNeo4jDriver(config.neo4j) ? config.neo4j : Neo4j.driver(\r\n\t\t\tconfig.neo4j?.serverUrl ?? defaults.neo4j.neo4jUri,\r\n\t\t\tNeo4j.auth.basic(\r\n\t\t\t\tconfig.neo4j?.serverUser ?? defaults.neo4j.neo4jUser,\r\n\t\t\t\tconfig.neo4j?.serverPassword ?? defaults.neo4j.neo4jPassword\r\n\t\t\t),\r\n\t\t\tdeepmerge(defaults.neo4j.driverConfig, config.neo4j?.driverConfig ?? {})\r\n\t\t);\r\n\t\tthis.#database = config.serverDatabase;\r\n\t\tthis.#query = config.initialCypher ?? defaults.neo4j.initialQuery;\r\n\t\tthis.#container = document.getElementById(config.containerId);\r\n\t\tthis.#config.groupAsLabel = config.groupAsLabel ?? defaults.neo4j.groupAsLabel;\r\n\t}\r\n\r\n\tasync #runCypher(cypher: Cypher, id: number): Promise {\r\n\t\tconst session = this.#driver.session(this.#database && { database: this.#database });\r\n\t\tconst results: T[] = [];\r\n\r\n\t\ttry {\r\n\t\t\tconst result = await session.readTransaction(tx => tx.run(cypher, { id }));\r\n\t\t\tfor (const record of result.records) {\r\n\t\t\t\trecord.forEach((v) => {\r\n\t\t\t\t\tresults.push(v);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tawait session.close();\r\n\t\t}\r\n\r\n\t\tif (results.length === 0) {\r\n\t\t\treturn undefined;\r\n\t\t} else if (results.length === 1) {\r\n\t\t\treturn results.pop();\r\n\t\t}\r\n\r\n\t\treturn results;\r\n\t}\r\n\r\n\t#runFunction(func: (neoObj: NEO_TYPE) => VIS_TYPE | Promise, node: NEO_TYPE): Promise | VIS_TYPE {\r\n\t\tif (typeof func === 'function') {\r\n\t\t\treturn func(node);\r\n\t\t}\r\n\t\tthrow new Error('Function type property field must be a function');\r\n\t}\r\n\r\n\t#buildStaticObject(staticConfig: VIS_TYPE, object: VIS_TYPE): void {\r\n\t\tif (staticConfig && typeof staticConfig === 'object') {\r\n\t\t\tfor (const prop of Object.keys(staticConfig) as (keyof VIS_TYPE)[]) {\r\n\t\t\t\tconst value = staticConfig[prop];\r\n\t\t\t\tif (value && typeof value === 'object') {\r\n\t\t\t\t\tif (!object[prop]) {\r\n\t\t\t\t\t\tobject[prop as string] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.#buildStaticObject(value, object[prop] as VIS_TYPE[keyof VIS_TYPE] & object);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tobject[prop] = value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t#buildPropertyNameObject(propertyNameConfig: RecursiveMapTo, object: VIS_TYPE, neo4jObj: NEO_TYPE): void {\r\n\t\tif (propertyNameConfig && typeof propertyNameConfig === 'object') {\r\n\t\t\tfor (const prop of Object.keys(propertyNameConfig) as (keyof VIS_TYPE)[]) {\r\n\t\t\t\tconst property = propertyNameConfig[prop];\r\n\t\t\t\tif (typeof property === 'object') {\r\n\t\t\t\t\tif (!object[prop]) {\r\n\t\t\t\t\t\tobject[prop as string] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.#buildPropertyNameObject(property as RecursiveMapTo, object[prop], neo4jObj);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst value = propertyNameConfig[prop];\r\n\t\t\t\t\tobject[prop] = _retrieveProperty(value as string, neo4jObj);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t*#buildCypherObject(cypherConfig: RecursiveMapTo, object: VIS_TYPE, id: number): Generator> {\r\n\t\tif (cypherConfig && typeof cypherConfig === 'object') {\r\n\t\t\tfor (const prop of Object.keys(cypherConfig) as (keyof VIS_TYPE)[]) {\r\n\t\t\t\tconst value = cypherConfig[prop];\r\n\t\t\t\tif (value && typeof value === 'object') {\r\n\t\t\t\t\tif (!object[prop]) {\r\n\t\t\t\t\t\tobject[prop as string] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tyield *this.#buildCypherObject(value as RecursiveMapTo, object[prop], id);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst promise = this.#runCypher(value as string, id) as Promise;\r\n\t\t\t\t\tyield Promise.resolve(promise).then(value => { object[prop] = value; } ) as Promise;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t*#buildFunctionObject(functionConfig: RecursiveMapToFunction, object: VIS_TYPE, neo4jObj: NEO_TYPE): Generator> {\r\n\t\tif (functionConfig && typeof functionConfig === 'object') {\r\n\t\t\tfor (const prop of Object.keys(functionConfig) as (keyof VIS_TYPE)[]) {\r\n\t\t\t\tconst func = functionConfig[prop];\r\n\t\t\t\tif (func && typeof func === 'object') {\r\n\t\t\t\t\tif (!object[prop]) {\r\n\t\t\t\t\t\tobject[prop as string] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tyield *this.#buildFunctionObject(func as RecursiveMapToFunction, object[prop], neo4jObj);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst promise = this.#runFunction(func as (neo: NEO_TYPE) => VIS_TYPE[keyof VIS_TYPE], neo4jObj);\r\n\t\t\t\t\tyield Promise.resolve(promise).then(value => { object[prop] = value; } ) as Promise;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tasync #buildVisObject(\r\n\t\tconfig: NeovisDataConfig | NonFlatNeoVisAdvanceConfig, baseObject: VIS_TYPE, neo4jObject: NEO_TYPE, id: number\r\n\t): Promise {\r\n\t\tif (!config) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlet staticConfig: VIS_TYPE;\r\n\t\tlet cypherConfig: RecursiveMapTo;\r\n\t\tlet propertyConfig: RecursiveMapTo;\r\n\t\tlet functionConfig: RecursiveMapToFunction;\r\n\r\n\t\tif (this.#config.nonFlat) {\r\n\t\t\tif (config[NEOVIS_ADVANCED_CONFIG] !== undefined) {\r\n\t\t\t\tthrow new Error('Advanced config and non flat config should not be together');\r\n\t\t\t}\r\n\t\t\tconfig = config as NonFlatNeoVisAdvanceConfig;\r\n\t\t\tstaticConfig = config.static;\r\n\t\t\tcypherConfig = config.cypher;\r\n\t\t\tpropertyConfig = config.property;\r\n\t\t\tfunctionConfig = config.function;\r\n\t\t} else {\r\n\t\t\tconfig = config as NeovisDataConfig;\r\n\t\t\tconst advancedConfig = config[NEOVIS_ADVANCED_CONFIG];\r\n\t\t\tpropertyConfig = config;\r\n\t\t\tif (advancedConfig !== undefined && typeof advancedConfig != 'object') {\r\n\t\t\t\tthrow new Error('Advanced config should be an object. See documentation for details.');\r\n\t\t\t}\r\n\t\t\tcypherConfig = advancedConfig?.cypher;\r\n\t\t\tstaticConfig = advancedConfig?.static;\r\n\t\t\tfunctionConfig = advancedConfig?.function;\r\n\t\t}\r\n\t\tthis.#buildPropertyNameObject(propertyConfig, baseObject, neo4jObject);\r\n\t\tthis.#buildStaticObject(staticConfig, baseObject);\r\n\t\tawait Promise.all(this.#buildCypherObject(cypherConfig, baseObject, id));\r\n\t\tawait Promise.all(this.#buildFunctionObject(functionConfig, baseObject, neo4jObject));\r\n\t}\r\n\r\n\t/**\r\n\t * Build node object for vis from a neo4j Node\r\n\t * @param neo4jNode\r\n\t * @returns {{}}\r\n\t */\r\n\tasync #buildNodeVisObject(neo4jNode: Neo4jTypes.Node): Promise {\r\n\t\tconst node: Partial = {};\r\n\t\tconst label: string = neo4jNode.labels[0];\r\n\r\n\t\tconst labelConfig: LabelConfig | NonFlatLabelConfig = this.#config?.labels?.[label] ?? (this.#config as NonFlatNeovisConfig)?.defaultLabelConfig ??\r\n\t\t\t(this.#config as NeovisConfig)?.labels?.[NEOVIS_DEFAULT_CONFIG];\r\n\r\n\t\tnode.id = isInt(neo4jNode.identity) ? (neo4jNode.identity as Neo4jTypes.Integer).toInt() : neo4jNode.identity as number;\r\n\t\tnode.raw = neo4jNode;\r\n\t\tif(this.#config.groupAsLabel) {\r\n\t\t\tnode.group = label;\r\n\t\t}\r\n\r\n\t\tawait this.#buildVisObject(labelConfig, node as Node, neo4jNode, node.id);\r\n\r\n\t\treturn node as Node;\r\n\t}\r\n\r\n\r\n\t/**\r\n\t * Build edge object for vis from a neo4j Relationship\r\n\t * @param r\r\n\t * @returns {{}}\r\n\t */\r\n\tasync #buildEdgeVisObject(r: Neo4jTypes.Relationship): Promise {\r\n\t\tconst relationshipConfig = this.#config?.relationships?.[r.type] ?? (this.#config as NonFlatNeovisConfig).defaultRelationshipsConfig ??\r\n\t\t\t(this.#config as NeovisConfig)?.relationships?.[NEOVIS_DEFAULT_CONFIG];\r\n\r\n\t\tconst edge: Partial = {};\r\n\t\tedge.id = isInt(r.identity) ? (r.identity as Neo4jTypes.Integer).toInt() : r.identity as number;\r\n\t\tedge.from = isInt(r.start) ? (r.start as Neo4jTypes.Integer).toInt() : r.start as number;\r\n\t\tedge.to = isInt(r.end) ? (r.end as Neo4jTypes.Integer).toInt() : r.end as number;\r\n\t\tedge.raw = r;\r\n\r\n\t\tawait this.#buildVisObject(relationshipConfig, edge as Edge, r, edge.id);\r\n\r\n\t\treturn edge as Edge;\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the network\r\n\t */\r\n\trender(query?: Cypher): void {\r\n\r\n\t\t// connect to Neo4j instance\r\n\t\t// run query\r\n\t\tlet recordCount = 0;\r\n\t\tconst _query = query || this.#query;\r\n\t\tconst session = this.#driver.session(this.#database ? { database: this.#database } : undefined);\r\n\t\tconst dataBuildPromises = [];\r\n\t\tsession\r\n\t\t\t.run(_query, { limit: 30 })\r\n\t\t\t.subscribe({\r\n\t\t\t\tonNext: (record) => {\r\n\t\t\t\t\trecordCount++;\r\n\r\n\t\t\t\t\tthis.#consoleLog('CLASS NAME');\r\n\t\t\t\t\tthis.#consoleLog(record?.constructor.name);\r\n\t\t\t\t\tthis.#consoleLog(record);\r\n\r\n\t\t\t\t\tconst dataPromises = record.map(async (v: object) => {\r\n\t\t\t\t\t\tthis.#consoleLog('Constructor:');\r\n\t\t\t\t\t\tthis.#consoleLog(v?.constructor.name);\r\n\t\t\t\t\t\tif (isNode(v)) {\r\n\t\t\t\t\t\t\tconst node = await this.#buildNodeVisObject(v);\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tthis.#data.nodes.update(node);\r\n\t\t\t\t\t\t\t} catch (e) {\r\n\t\t\t\t\t\t\t\tthis.#consoleLog(e, 'error');\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else if (isRelationship(v)) {\r\n\t\t\t\t\t\t\tconst edge = await this.#buildEdgeVisObject(v);\r\n\t\t\t\t\t\t\tthis.#data.edges.update(edge);\r\n\r\n\t\t\t\t\t\t} else if (isPath(v)) {\r\n\t\t\t\t\t\t\tthis.#consoleLog('PATH');\r\n\t\t\t\t\t\t\tthis.#consoleLog(v);\r\n\t\t\t\t\t\t\tconst startNode = await this.#buildNodeVisObject(v.start);\r\n\t\t\t\t\t\t\tconst endNode = await this.#buildNodeVisObject(v.end);\r\n\r\n\t\t\t\t\t\t\tthis.#data.nodes.update(startNode);\r\n\t\t\t\t\t\t\tthis.#data.nodes.update(endNode);\r\n\r\n\t\t\t\t\t\t\tfor (const obj of v.segments) {\r\n\t\t\t\t\t\t\t\tthis.#data.nodes.update(await this.#buildNodeVisObject(obj.start));\r\n\t\t\t\t\t\t\t\tthis.#data.nodes.update(await this.#buildNodeVisObject(obj.end));\r\n\t\t\t\t\t\t\t\tthis.#data.edges.update(await this.#buildEdgeVisObject(obj.relationship));\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else if (Array.isArray(v)) {\r\n\t\t\t\t\t\t\tfor (const obj of v) {\r\n\t\t\t\t\t\t\t\tthis.#consoleLog('Array element constructor:');\r\n\t\t\t\t\t\t\t\tthis.#consoleLog(obj?.constructor.name);\r\n\t\t\t\t\t\t\t\tif (isNode(obj)) {\r\n\t\t\t\t\t\t\t\t\tconst node = await this.#buildNodeVisObject(obj);\r\n\t\t\t\t\t\t\t\t\tthis.#data.nodes.update(node);\r\n\r\n\t\t\t\t\t\t\t\t} else if (isRelationship(obj)) {\r\n\t\t\t\t\t\t\t\t\tconst edge = await this.#buildEdgeVisObject(obj);\r\n\r\n\t\t\t\t\t\t\t\t\tthis.#data.edges.update(edge);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\tdataBuildPromises.push(Promise.all(dataPromises));\r\n\t\t\t\t},\r\n\t\t\t\tonCompleted: async () => {\r\n\t\t\t\t\tawait Promise.all(dataBuildPromises);\r\n\t\t\t\t\tawait session.close();\r\n\r\n\t\t\t\t\tif (!this.#network) {\r\n\t\t\t\t\t\tconst options = deepmerge(defaults.visJs, this.#config.visConfig ?? {});\r\n\r\n\t\t\t\t\t\tconst container = this.#container;\r\n\r\n\t\t\t\t\t\tthis.#consoleLog(this.#data.nodes);\r\n\t\t\t\t\t\tthis.#consoleLog(this.#data.edges);\r\n\r\n\t\t\t\t\t\tthis.#network = new vis.Network(container, this.#data, options);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.#consoleLog('completed');\r\n\t\t\t\t\tsetTimeout(\r\n\t\t\t\t\t\t() => {\r\n\t\t\t\t\t\t\tthis.#network.stopSimulation();\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t10000\r\n\t\t\t\t\t);\r\n\t\t\t\t\tthis.#events.generateEvent(NeoVisEvents.CompletionEvent, { recordCount });\r\n\r\n\t\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-this-alias\r\n\t\t\t\t\tconst neoVis = this;\r\n\t\t\t\t\tthis.#network.on('click', function (this: VisNetwork.Network, params: { nodes: Node[], edges: Edge[], pointer: { DOM: VisNetwork.Position } }) {\r\n\t\t\t\t\t\tif (params.nodes.length > 0) {\r\n\t\t\t\t\t\t\tconst nodeId = this.getNodeAt(params.pointer.DOM) as number;\r\n\t\t\t\t\t\t\tneoVis.#events.generateEvent(NeoVisEvents.ClickNodeEvent, {\r\n\t\t\t\t\t\t\t\tnodeId,\r\n\t\t\t\t\t\t\t\tnode: neoVis.#data.nodes.get(nodeId)\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t} else if (params.edges.length > 0) {\r\n\t\t\t\t\t\t\tconst edgeId = this.getEdgeAt(params.pointer.DOM) as number;\r\n\t\t\t\t\t\t\tneoVis.#events.generateEvent(NeoVisEvents.ClickEdgeEvent, {\r\n\t\t\t\t\t\t\t\tedgeId,\r\n\t\t\t\t\t\t\t\tedge: neoVis.#data.edges.get(edgeId)\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t},\r\n\t\t\t\tonError: (error) => {\r\n\t\t\t\t\tthis.#consoleLog(error, 'error');\r\n\t\t\t\t\tthis.#events.generateEvent(NeoVisEvents.ErrorEvent, { error });\r\n\t\t\t\t}\r\n\t\t\t} as Neo4jCore.ResultObserver);\r\n\t}\r\n\r\n\t/**\r\n\t * Clear the data for the visualization\r\n\t */\r\n\tclearNetwork(): void {\r\n\t\tthis.#data.nodes.clear();\r\n\t\tthis.#data.edges.clear();\r\n\t}\r\n\r\n\r\n\t/**\r\n\t *\r\n\t * @param {string} eventType Event type to be handled\r\n\t * @param {Function} handler Handler to manage the event\r\n\t */\r\n\tregisterOnEvent(eventType: T, handler: EventFunctionTypes[T]): void {\r\n\t\tthis.#events.register(eventType, handler);\r\n\t}\r\n\r\n\r\n\t/**\r\n\t * Reset the config object and reload data\r\n\t * @param config\r\n\t */\r\n\treinit(config: NeovisConfig | NonFlatNeovisConfig): void {\r\n\t\tthis.#init(config);\r\n\t\tthis.render();\r\n\t}\r\n\r\n\t/**\r\n\t * Clear the network and fetch live data form the server and reload the visualization\r\n\t */\r\n\treload(): void {\r\n\t\tthis.clearNetwork();\r\n\t\tthis.render();\r\n\t}\r\n\r\n\t/**\r\n\t * Stabilize the visualization\r\n\t */\r\n\tstabilize(): void {\r\n\t\tthis.#network.stopSimulation();\r\n\t\tthis.#consoleLog('Calling stopSimulation');\r\n\t}\r\n\r\n\t/**\r\n\t * Execute an arbitrary Cypher query and re-render the visualization\r\n\t * @param query\r\n\t */\r\n\trenderWithCypher(query: Cypher): void {\r\n\t\t// this._config.initialCypher = query;\r\n\t\tthis.clearNetwork();\r\n\t\tthis.#query = query;\r\n\t\tthis.render();\r\n\t}\r\n\r\n\t/**\r\n\t * Execute an arbitrary Cypher query and update the current visualization, retaning current nodes\r\n\t * This function will not change the original query given by renderWithCypher or the inital cypher.\r\n\t * @param query\r\n\t */\r\n\tupdateWithCypher(query: Cypher): void {\r\n\t\tthis.render(query);\r\n\t}\r\n}\r\n\r\n/**\r\n * @deprecated for migration only\r\n */\r\nexport interface OldLabelConfig {\r\n\tcaption?: string | ((node: Neo4jTypes.Node) => string);\r\n\tsize?: number;\r\n\tcommunity?: string;\r\n\tsizeCypher?: string;\r\n\timage?: string;\r\n\tfont?: string | VisNetwork.Font;\r\n\ttitle_properties?: string[];\r\n}\r\n\r\n/**\r\n * @deprecated for migration only\r\n */\r\nexport interface OldRelationshipConfig {\r\n\tthickness?: number;\r\n\tcaption?: boolean | string;\r\n}\r\n\r\n/**\r\n * @deprecated for migration only\r\n */\r\nexport interface OldNeoVisConfig {\r\n\tcontainer_id: string;\r\n\tserver_url: string;\r\n\tserver_user: string;\r\n\tserver_password: string;\r\n\tserver_database: string;\r\n\tlabels?: {\r\n\t\t[label: string]: OldLabelConfig,\r\n\t\t[NEOVIS_DEFAULT_CONFIG]?: OldLabelConfig\r\n\t};\r\n\trelationships?: {\r\n\t\t[relationship: string]: OldRelationshipConfig,\r\n\t\t[NEOVIS_DEFAULT_CONFIG]?: OldRelationshipConfig\r\n\t};\r\n\tarrows?: boolean;\r\n\thierarchical?: boolean;\r\n\thierarchical_sort_method?: 'hubsize' | 'directed';\r\n\tinitial_cypher?: string;\r\n\tconsole_debug?: boolean;\r\n\tencrypted?: 'ENCRYPTION_OFF' | 'ENCRYPTION_ON';\r\n\ttrust?: 'TRUST_ALL_CERTIFICATES' | 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES';\r\n}\r\n\r\n/**\r\n * @deprecated will be removed in the future\r\n * migrate old config to the new one\r\n * @param oldNeoVisConfig 1.0.0 config object\r\n */\r\nexport function migrateFromOldConfig(oldNeoVisConfig: OldNeoVisConfig): NeovisConfig {\r\n\treturn {\r\n\t\tcontainerId: oldNeoVisConfig.container_id,\r\n\t\tinitialCypher: oldNeoVisConfig.initial_cypher,\r\n\t\tconsoleDebug: oldNeoVisConfig.console_debug,\r\n\t\tserverDatabase: oldNeoVisConfig.server_database,\r\n\t\tneo4j: {\r\n\t\t\tserverUrl: oldNeoVisConfig.server_url,\r\n\t\t\tserverUser: oldNeoVisConfig.server_user,\r\n\t\t\tserverPassword: oldNeoVisConfig.server_password,\r\n\t\t\tdriverConfig: oldNeoVisConfig.encrypted || oldNeoVisConfig.trust ? {\r\n\t\t\t\tencrypted: oldNeoVisConfig.encrypted,\r\n\t\t\t\ttrust: oldNeoVisConfig.trust\r\n\t\t\t} : undefined\r\n\t\t},\r\n\t\tvisConfig: oldNeoVisConfig.arrows || oldNeoVisConfig.hierarchical ? {\r\n\t\t\tedges: oldNeoVisConfig.arrows ? {\r\n\t\t\t\tarrows: {\r\n\t\t\t\t\tto: {\r\n\t\t\t\t\t\tenabled: oldNeoVisConfig.arrows\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} : undefined,\r\n\t\t\tlayout: oldNeoVisConfig.hierarchical ? {\r\n\t\t\t\tenabled: oldNeoVisConfig.hierarchical,\r\n\t\t\t\tsortMethod: oldNeoVisConfig.hierarchical_sort_method\r\n\t\t\t} : undefined\r\n\t\t} : undefined,\r\n\t\tlabels: oldNeoVisConfig.labels ? (Object.entries(oldNeoVisConfig.labels) as [string | typeof NEOVIS_DEFAULT_CONFIG, OldLabelConfig][])\r\n\t\t\t.concat(oldNeoVisConfig.labels?.[NEOVIS_DEFAULT_CONFIG] ? [[NEOVIS_DEFAULT_CONFIG, oldNeoVisConfig.labels[NEOVIS_DEFAULT_CONFIG]]] : [])\r\n\t\t\t.reduce((newLabelsConfig, [label, oldLabelConfig]) => {\r\n\t\t\t\tnewLabelsConfig[label] = {\r\n\t\t\t\t\tlabel: typeof oldLabelConfig.caption !== 'function' ? oldLabelConfig.caption : undefined,\r\n\t\t\t\t\tvalue: oldLabelConfig.size,\r\n\t\t\t\t\tgroup: oldLabelConfig.community,\r\n\t\t\t\t\t[NEOVIS_ADVANCED_CONFIG]: {\r\n\t\t\t\t\t\tcypher: oldLabelConfig.sizeCypher ? {\r\n\t\t\t\t\t\t\tvalue: oldLabelConfig.sizeCypher\r\n\t\t\t\t\t\t} : undefined,\r\n\t\t\t\t\t\tfunction: deepmerge({\r\n\t\t\t\t\t\t\ttitle: (props) => objectToTitleHtml(props, oldLabelConfig.title_properties)\r\n\t\t\t\t\t\t}, typeof oldLabelConfig.caption === 'function' ? { label: oldLabelConfig.caption } : {}),\r\n\t\t\t\t\t\tstatic: {\r\n\t\t\t\t\t\t\tfont: oldLabelConfig.font,\r\n\t\t\t\t\t\t\tshape: oldLabelConfig.image ? 'image' : 'dot',\r\n\t\t\t\t\t\t\timage: oldLabelConfig.image\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\treturn newLabelsConfig;\r\n\t\t\t}, {}) : undefined,\r\n\t\trelationships: oldNeoVisConfig.relationships ? (Object.entries(oldNeoVisConfig.relationships) as [string | typeof NEOVIS_DEFAULT_CONFIG, OldRelationshipConfig][])\r\n\t\t\t.concat(oldNeoVisConfig.relationships[NEOVIS_DEFAULT_CONFIG] ? [[NEOVIS_DEFAULT_CONFIG, oldNeoVisConfig.relationships[NEOVIS_DEFAULT_CONFIG]]] : [])\r\n\t\t\t.reduce((newLabelsConfig, [relationship, oldRelationshipsConfig]) => {\r\n\t\t\t\tnewLabelsConfig[relationship] = {\r\n\t\t\t\t\tvalue: oldRelationshipsConfig.thickness,\r\n\t\t\t\t\tlabel: typeof oldRelationshipsConfig.caption === 'string' ? oldRelationshipsConfig.caption : undefined,\r\n\t\t\t\t\t[NEOVIS_ADVANCED_CONFIG]: {\r\n\t\t\t\t\t\tfunction: {\r\n\t\t\t\t\t\t\ttitle: objectToTitleHtml\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\treturn newLabelsConfig;\r\n\t\t\t}, {}) : undefined\r\n\t};\r\n}\r\n\r\nexport default NeoVis;\r\n"],"names":["root","factory","exports","module","require","define","amd","undefined","self","__WEBPACK_EXTERNAL_MODULE__783__","__WEBPACK_EXTERNAL_MODULE__642__","__WEBPACK_EXTERNAL_MODULE__779__","__WEBPACK_EXTERNAL_MODULE__852__","__WEBPACK_EXTERNAL_MODULE__995__","__WEBPACK_EXTERNAL_MODULE__820__","__WEBPACK_EXTERNAL_MODULE__723__","__WEBPACK_EXTERNAL_MODULE__519__","__WEBPACK_EXTERNAL_MODULE__83__","__WEBPACK_EXTERNAL_MODULE__848__","__WEBPACK_EXTERNAL_MODULE__209__","__WEBPACK_EXTERNAL_MODULE__317__","__WEBPACK_EXTERNAL_MODULE__483__","__WEBPACK_EXTERNAL_MODULE__349__","__WEBPACK_EXTERNAL_MODULE__949__","__WEBPACK_EXTERNAL_MODULE__55__","__WEBPACK_EXTERNAL_MODULE__365__","__WEBPACK_EXTERNAL_MODULE__613__","__WEBPACK_EXTERNAL_MODULE__581__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","defaults","neo4j","initialQuery","neo4jUri","neo4jUser","neo4jPassword","driverConfig","encrypted","trust","maxConnectionPoolSize","connectionAcquisitionTimeout","disableLosslessIntegers","groupAsLabel","visJs","nodes","font","size","strokeWidth","scaling","edges","arrows","to","enabled","length","layout","improvedLayout","hierarchical","sortMethod","physics","adaptiveTimestep","stabilization","iterations","fit","NeoVisEvents","EventController","constructor","_defineProperty","this","_handlers","CompletionEvent","ErrorEvent","ClickNodeEvent","ClickEdgeEvent","register","eventType","handler","Error","push","generateEvent","values","NEOVIS_DEFAULT_CONFIG","_Symbol","NEOVIS_ADVANCED_CONFIG","_classPrivateMethodInitSpec","privateSet","_checkPrivateRedeclaration","add","_classPrivateFieldInitSpec","privateMap","set","privateCollection","has","TypeError","_classPrivateMethodGet","receiver","fn","_propertyToHtml","_Array$isArray","out","val","_retrieveProperty","properties","isInt","toInt","objectToTitleHtml","neo4jObject","titleProperties","titleString","_Object$keys","propVal","title","document","createElement","innerHTML","objectToTitleString","_data","_WeakMap","_network","_events","_config","_driver","_database","_query2","_container","_consoleLog","_WeakSet","_init","_runCypher","_runFunction","_buildStaticObject","_buildPropertyNameObject","_buildCypherObject","_buildFunctionObject","_buildVisObject","_buildNodeVisObject","_buildEdgeVisObject","NeoVis","_classPrivateFieldGet","network","config","writable","vis","_init2","_consoleLog2","render","query","recordCount","_query","session","database","dataBuildPromises","run","limit","subscribe","onNext","record","name","dataPromises","_mapInstanceProperty","async","v","isNode","node","_buildNodeVisObject2","update","e","isRelationship","edge","_buildEdgeVisObject2","isPath","startNode","start","endNode","end","segments","relationship","_Promise","onCompleted","close","options","deepmerge","visConfig","container","_classPrivateFieldSet","_setTimeout","stopSimulation","neoVis","on","params","nodeId","getNodeAt","pointer","DOM","edgeId","getEdgeAt","onError","error","clearNetwork","clear","registerOnEvent","reinit","reload","stabilize","renderWithCypher","updateWithCypher","message","level","arguments","consoleDebug","console","defaultLabelConfig","defaultRelationshipConfig","nonFlat","defaultRelationshipsConfig","labels","relationships","Neo4j","serverUrl","serverUser","serverPassword","serverDatabase","initialCypher","getElementById","containerId","_runCypher2","cypher","id","results","result","readTransaction","tx","records","_forEachInstanceProperty","pop","_runFunction2","func","_buildStaticObject2","staticConfig","object","_buildPropertyNameObject2","propertyNameConfig","neo4jObj","property","_buildCypherObject2","cypherConfig","promise","then","_buildFunctionObject2","functionConfig","_buildVisObject2","baseObject","propertyConfig","static","function","advancedConfig","neo4jNode","label","labelConfig","identity","raw","group","relationshipConfig","type","from","migrateFromOldConfig","oldNeoVisConfig","_context","_context2","_context3","_context4","container_id","initial_cypher","console_debug","server_database","server_url","server_user","server_password","hierarchical_sort_method","_reduceInstanceProperty","_concatInstanceProperty","_Object$entries","newLabelsConfig","_ref","oldLabelConfig","caption","community","sizeCypher","props","title_properties","shape","image","_ref2","oldRelationshipsConfig","thickness"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/neovis.js b/dist/neovis.js index 02c8bcd..bd43793 100644 --- a/dist/neovis.js +++ b/dist/neovis.js @@ -1,3 +1,3 @@ /*! For license information please see neovis.js.LICENSE.txt */ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.NeoVis=e():t.NeoVis=e()}(self,(()=>(()=>{var t={9742:(t,e)=>{"use strict";e.byteLength=function(t){var e=s(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,o=s(t),g=o[0],A=o[1],C=new i(function(t,e,n){return 3*(e+n)/4-n}(0,g,A)),I=0,a=A>0?g-4:g;for(n=0;n>16&255,C[I++]=e>>8&255,C[I++]=255&e;return 2===A&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,C[I++]=255&e),1===A&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,C[I++]=e>>8&255,C[I++]=255&e),C},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],g=16383,s=0,C=r-i;sC?C:s+g));return 1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0;g<64;++g)n[g]=o[g],r[o.charCodeAt(g)]=g;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function A(t,e,r){for(var i,o,g=[],s=e;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return g.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},8764:(t,e,n)=>{"use strict";const r=n(9742),i=n(645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=A,e.SlowBuffer=function(t){return+t!=t&&(t=0),A.alloc(+t)},e.INSPECT_MAX_BYTES=50;const g=2147483647;function s(t){if(t>g)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,A.prototype),e}function A(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return a(t)}return C(t,e,n)}function C(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!A.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|h(t,e);let r=s(n);const i=r.write(t,e);return i!==n&&(r=r.slice(0,i)),r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Q(t,Uint8Array)){const e=new Uint8Array(t);return c(e.buffer,e.byteOffset,e.byteLength)}return u(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Q(t,ArrayBuffer)||t&&Q(t.buffer,ArrayBuffer))return c(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(Q(t,SharedArrayBuffer)||t&&Q(t.buffer,SharedArrayBuffer)))return c(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return A.from(r,e,n);const i=function(t){if(A.isBuffer(t)){const e=0|l(t.length),n=s(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||X(t.length)?s(0):u(t):"Buffer"===t.type&&Array.isArray(t.data)?u(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return A.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function I(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function a(t){return I(t),s(t<0?0:0|l(t))}function u(t){const e=t.length<0?0:0|l(t.length),n=s(e);for(let r=0;r=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return 0|t}function h(t,e){if(A.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Q(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(t).length;default:if(i)return r?-1:Y(t).length;e=(""+e).toLowerCase(),i=!0}}function d(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return S(this,e,n);case"utf8":case"utf-8":return E(this,e,n);case"ascii":return k(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return x(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function f(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function p(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=A.from(e,r)),A.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,i){let o,g=1,s=t.length,A=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;g=2,s/=2,A/=2,n/=2}function C(t,e){return 1===g?t[e]:t.readUInt16BE(e*g)}if(i){let r=-1;for(o=n;os&&(n=s-A),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=e.length;let g;for(r>o/2&&(r=o/2),g=0;g>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function x(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function E(t,e,n){n=Math.min(t.length,n);const r=[];let i=e;for(;i239?4:e>223?3:e>191?2:1;if(i+g<=n){let n,r,s,A;switch(g){case 1:e<128&&(o=e);break;case 2:n=t[i+1],128==(192&n)&&(A=(31&e)<<6|63&n,A>127&&(o=A));break;case 3:n=t[i+1],r=t[i+2],128==(192&n)&&128==(192&r)&&(A=(15&e)<<12|(63&n)<<6|63&r,A>2047&&(A<55296||A>57343)&&(o=A));break;case 4:n=t[i+1],r=t[i+2],s=t[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(A=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&s,A>65535&&A<1114112&&(o=A))}}null===o?(o=65533,g=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=g}return function(t){const e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);let n="",r=0;for(;rr.length?(A.isBuffer(e)||(e=A.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!A.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},A.byteLength=h,A.prototype._isBuffer=!0,A.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;en&&(t+=" ... "),""},o&&(A.prototype[o]=A.prototype.inspect),A.prototype.compare=function(t,e,n,r,i){if(Q(t,Uint8Array)&&(t=A.from(t,t.offset,t.byteLength)),!A.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;let o=(i>>>=0)-(r>>>=0),g=(n>>>=0)-(e>>>=0);const s=Math.min(o,g),C=this.slice(r,i),I=t.slice(e,n);for(let t=0;t>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":case"latin1":case"binary":return m(this,t,e,n);case"base64":return w(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function k(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;ir)&&(n=r);let i="";for(let r=e;rn)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!A.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function D(t,e,n,r,i){U(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let g=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=g,g>>=8,t[n++]=g,g>>=8,t[n++]=g,g>>=8,t[n++]=g,n}function M(t,e,n,r,i){U(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let g=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=g,g>>=8,t[n+2]=g,g>>=8,t[n+1]=g,g>>=8,t[n]=g,n+8}function j(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(t,e,n,r,o){return e=+e,n>>>=0,o||j(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function L(t,e,n,r,o){return e=+e,n>>>=0,o||j(t,0,n,8),i.write(t,e,n,r,52,8),n+8}A.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||N(t,e,this.length);let r=this[t],i=1,o=0;for(;++o>>=0,e>>>=0,n||N(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},A.prototype.readUint8=A.prototype.readUInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),this[t]},A.prototype.readUint16LE=A.prototype.readUInt16LE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]|this[t+1]<<8},A.prototype.readUint16BE=A.prototype.readUInt16BE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]<<8|this[t+1]},A.prototype.readUint32LE=A.prototype.readUInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},A.prototype.readUint32BE=A.prototype.readUInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},A.prototype.readBigUInt64LE=J((function(t){V(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||G(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||G(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<>>=0,e>>>=0,n||N(t,e,this.length);let r=this[t],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*e)),r},A.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||N(t,e,this.length);let r=e,i=1,o=this[t+--r];for(;r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},A.prototype.readInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},A.prototype.readInt16LE=function(t,e){t>>>=0,e||N(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},A.prototype.readInt16BE=function(t,e){t>>>=0,e||N(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},A.prototype.readInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},A.prototype.readInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},A.prototype.readBigInt64LE=J((function(t){V(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||G(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||G(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<>>=0,e||N(t,4,this.length),i.read(this,t,!0,23,4)},A.prototype.readFloatBE=function(t,e){return t>>>=0,e||N(t,4,this.length),i.read(this,t,!1,23,4)},A.prototype.readDoubleLE=function(t,e){return t>>>=0,e||N(t,8,this.length),i.read(this,t,!0,52,8)},A.prototype.readDoubleBE=function(t,e){return t>>>=0,e||N(t,8,this.length),i.read(this,t,!1,52,8)},A.prototype.writeUintLE=A.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[e]=255&t;++o>>=0,n>>>=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},A.prototype.writeUint8=A.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,255,0),this[e]=255&t,e+1},A.prototype.writeUint16LE=A.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},A.prototype.writeUint16BE=A.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},A.prototype.writeUint32LE=A.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},A.prototype.writeUint32BE=A.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},A.prototype.writeBigUInt64LE=J((function(t,e=0){return D(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),A.prototype.writeBigUInt64BE=J((function(t,e=0){return M(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),A.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=0,o=1,g=0;for(this[e]=255&t;++i>0)-g&255;return e+n},A.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=n-1,o=1,g=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===g&&0!==this[e+i+1]&&(g=1),this[e+i]=(t/o>>0)-g&255;return e+n},A.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},A.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},A.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},A.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},A.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},A.prototype.writeBigInt64LE=J((function(t,e=0){return D(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),A.prototype.writeBigInt64BE=J((function(t,e=0){return M(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),A.prototype.writeFloatLE=function(t,e,n){return B(this,t,e,!0,n)},A.prototype.writeFloatBE=function(t,e,n){return B(this,t,e,!1,n)},A.prototype.writeDoubleLE=function(t,e,n){return L(this,t,e,!0,n)},A.prototype.writeDoubleBE=function(t,e,n){return L(this,t,e,!1,n)},A.prototype.copy=function(t,e,n,r){if(!A.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function U(t,e,n,r,i,o){if(t>n||t3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new F.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,n){V(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||G(e,t.length-(n+1))}(r,i,o)}function V(t,e){if("number"!=typeof t)throw new F.ERR_INVALID_ARG_TYPE(e,"number",t)}function G(t,e,n){if(Math.floor(t)!==t)throw V(t,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}z("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),z("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),z("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=Z(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=Z(i)),i+="n"),r+=` It must be ${e}. Received ${i}`,r}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function Y(t,e){let n;e=e||1/0;const r=t.length;let i=null;const o=[];for(let g=0;g55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(g+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function K(t,e,n,r){let i;for(i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function Q(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function X(t){return t!=t}const q=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function J(t){return"undefined"==typeof BigInt?$:t}function $(){throw new Error("BigInt not supported")}},3536:(t,e,n)=>{var r=n(1910);t.exports=r},281:(t,e,n)=>{var r=n(2547);n(3975),t.exports=r},31:(t,e,n)=>{var r=n(6509);t.exports=r},7487:(t,e,n)=>{var r=n(5774);t.exports=r},4034:(t,e,n)=>{n(2988);var r=n(4058);t.exports=r.Array.isArray},5367:(t,e,n)=>{n(5906);var r=n(5703);t.exports=r("Array").concat},9324:(t,e,n)=>{n(2437);var r=n(5703);t.exports=r("Array").forEach},3866:(t,e,n)=>{n(8787);var r=n(5703);t.exports=r("Array").map},2999:(t,e,n)=>{n(1876);var r=n(5703);t.exports=r("Array").reduce},6043:(t,e,n)=>{var r=n(7046),i=n(5367),o=Array.prototype;t.exports=function(t){var e=t.concat;return t===o||r(o,t)&&e===o.concat?i:e}},8287:(t,e,n)=>{var r=n(7046),i=n(3866),o=Array.prototype;t.exports=function(t){var e=t.map;return t===o||r(o,t)&&e===o.map?i:e}},8025:(t,e,n)=>{var r=n(7046),i=n(2999),o=Array.prototype;t.exports=function(t){var e=t.reduce;return t===o||r(o,t)&&e===o.reduce?i:e}},8171:(t,e,n)=>{n(6450);var r=n(4058).Object,i=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(i.sham=!0)},3081:(t,e,n)=>{n(1078);var r=n(4058);t.exports=r.Object.entries},8494:(t,e,n)=>{n(1724);var r=n(4058);t.exports=r.Object.keys},2956:(t,e,n)=>{n(7627),n(6274),n(5967),n(8881),n(4560),n(7206),n(4349),n(7971);var r=n(4058);t.exports=r.Promise},7473:(t,e,n)=>{n(5906),n(5967),n(5824),n(8555),n(2615),n(1732),n(5903),n(1825),n(8394),n(5915),n(1766),n(2737),n(9911),n(4315),n(3131),n(4714),n(659),n(9120),n(5327),n(1502);var r=n(4058);t.exports=r.Symbol},4227:(t,e,n)=>{n(6274),n(5967),n(7971),n(1825);var r=n(1477);t.exports=r.f("iterator")},2978:(t,e,n)=>{n(8084),n(3131);var r=n(1477);t.exports=r.f("toPrimitive")},2304:(t,e,n)=>{n(6274),n(5967),n(4334);var r=n(4058);t.exports=r.WeakMap},9567:(t,e,n)=>{n(6274),n(5967),n(1773);var r=n(4058);t.exports=r.WeakSet},3685:(t,e,n)=>{t.exports=n(621)},6600:(t,e,n)=>{t.exports=n(2201)},9759:(t,e,n)=>{t.exports=n(7398)},1384:(t,e,n)=>{t.exports=n(6189)},621:(t,e,n)=>{var r=n(3536);t.exports=r},2201:(t,e,n)=>{var r=n(281);n(8783),n(2731),n(5605),n(5799),n(1943),n(6774),n(5414),n(620),n(6172),t.exports=r},7398:(t,e,n)=>{var r=n(31);t.exports=r},6189:(t,e,n)=>{var r=n(7487);t.exports=r},4883:(t,e,n)=>{var r=n(7475),i=n(9826),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},174:(t,e,n)=>{var r=n(4284),i=n(9826),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a constructor")}},1851:(t,e,n)=>{var r=n(7475),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},8479:t=>{t.exports=function(){}},5743:(t,e,n)=>{var r=n(7046),i=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw i("Incorrect invocation")}},6059:(t,e,n)=>{var r=n(941),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not an object")}},7135:(t,e,n)=>{var r=n(5981);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},6837:(t,e,n)=>{"use strict";var r=n(3610).forEach,i=n(4194)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},1692:(t,e,n)=>{var r=n(4529),i=n(9413),o=n(623),g=function(t){return function(e,n,g){var s,A=r(e),C=o(A),I=i(g,C);if(t&&n!=n){for(;C>I;)if((s=A[I++])!=s)return!0}else for(;C>I;I++)if((t||I in A)&&A[I]===n)return t||I||0;return!t&&-1}};t.exports={includes:g(!0),indexOf:g(!1)}},3610:(t,e,n)=>{var r=n(6843),i=n(5329),o=n(7026),g=n(9678),s=n(623),A=n(4692),C=i([].push),I=function(t){var e=1==t,n=2==t,i=3==t,I=4==t,a=6==t,u=7==t,c=5==t||a;return function(l,h,d,f){for(var p,v,y=g(l),b=o(y),m=r(h,d),w=s(b),_=0,x=f||A,E=e?x(l,w):n||u?x(l,0):void 0;w>_;_++)if((c||_ in b)&&(v=m(p=b[_],_,y),t))if(e)E[_]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return _;case 2:C(E,p)}else switch(t){case 4:return!1;case 7:C(E,p)}return a?-1:i||I?I:E}};t.exports={forEach:I(0),map:I(1),filter:I(2),some:I(3),every:I(4),find:I(5),findIndex:I(6),filterReject:I(7)}},568:(t,e,n)=>{var r=n(5981),i=n(9813),o=n(3385),g=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[g]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},4194:(t,e,n)=>{"use strict";var r=n(5981);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},6499:(t,e,n)=>{var r=n(4883),i=n(9678),o=n(7026),g=n(623),s=TypeError,A=function(t){return function(e,n,A,C){r(n);var I=i(e),a=o(I),u=g(I),c=t?u-1:0,l=t?-1:1;if(A<2)for(;;){if(c in a){C=a[c],c+=l;break}if(c+=l,t?c<0:u<=c)throw s("Reduce of empty array with no initial value")}for(;t?c>=0:u>c;c+=l)c in a&&(C=n(C,a[c],c,I));return C}};t.exports={left:A(!1),right:A(!0)}},5790:(t,e,n)=>{var r=n(9413),i=n(623),o=n(5449),g=Array,s=Math.max;t.exports=function(t,e,n){for(var A=i(t),C=r(e,A),I=r(void 0===n?A:n,A),a=g(s(I-C,0)),u=0;C{var r=n(5329);t.exports=r([].slice)},5693:(t,e,n)=>{var r=n(1052),i=n(4284),o=n(941),g=n(9813)("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(i(e)&&(e===s||r(e.prototype))||o(e)&&null===(e=e[g]))&&(e=void 0)),void 0===e?s:e}},4692:(t,e,n)=>{var r=n(5693);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},1385:(t,e,n)=>{var r=n(9813)("iterator"),i=!1;try{var o=0,g={next:function(){return{done:!!o++}},return:function(){i=!0}};g[r]=function(){return this},Array.from(g,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},2532:(t,e,n)=>{var r=n(5329),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},9697:(t,e,n)=>{var r=n(2885),i=n(7475),o=n(2532),g=n(9813)("toStringTag"),s=Object,A="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),g))?n:A?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},8850:(t,e,n)=>{"use strict";var r=n(5329),i=n(4380),o=n(1647).getWeakData,g=n(5743),s=n(6059),A=n(2119),C=n(941),I=n(3091),a=n(3610),u=n(953),c=n(5402),l=c.set,h=c.getterFor,d=a.find,f=a.findIndex,p=r([].splice),v=0,y=function(t){return t.frozen||(t.frozen=new b)},b=function(){this.entries=[]},m=function(t,e){return d(t.entries,(function(t){return t[0]===e}))};b.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var n=m(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=f(this.entries,(function(e){return e[0]===t}));return~e&&p(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var a=t((function(t,i){g(t,c),l(t,{type:e,id:v++,frozen:void 0}),A(i)||I(i,t[r],{that:t,AS_ENTRIES:n})})),c=a.prototype,d=h(e),f=function(t,e,n){var r=d(t),i=o(s(e),!0);return!0===i?y(r).set(e,n):i[r.id]=n,t};return i(c,{delete:function(t){var e=d(this);if(!C(t))return!1;var n=o(t);return!0===n?y(e).delete(t):n&&u(n,e.id)&&delete n[e.id]},has:function(t){var e=d(this);if(!C(t))return!1;var n=o(t);return!0===n?y(e).has(t):n&&u(n,e.id)}}),i(c,n?{get:function(t){var e=d(this);if(C(t)){var n=o(t);return!0===n?y(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return f(this,t,e)}}:{add:function(t){return f(this,t,!0)}}),a}}},4683:(t,e,n)=>{"use strict";var r=n(6887),i=n(1899),o=n(1647),g=n(5981),s=n(2029),A=n(3091),C=n(5743),I=n(7475),a=n(941),u=n(904),c=n(5988).f,l=n(3610).forEach,h=n(5746),d=n(5402),f=d.set,p=d.getterFor;t.exports=function(t,e,n){var d,v=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),b=v?"set":"add",m=i[t],w=m&&m.prototype,_={};if(h&&I(m)&&(y||w.forEach&&!g((function(){(new m).entries().next()})))){var x=(d=e((function(e,n){f(C(e,x),{type:t,collection:new m}),null!=n&&A(n,e[b],{that:e,AS_ENTRIES:v})}))).prototype,E=p(t);l(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in w)||y&&"clear"==t||s(x,t,(function(n,r){var i=E(this).collection;if(!e&&y&&!a(n))return"get"==t&&void 0;var o=i[t](0===n?0:n,r);return e?this:o}))})),y||c(x,"size",{configurable:!0,get:function(){return E(this).collection.size}})}else d=n.getConstructor(e,t,v,b),o.enable();return u(d,t,!1,!0),_[t]=d,r({global:!0,forced:!0},_),y||n.setStrong(d,t,v),d}},3489:(t,e,n)=>{var r=n(953),i=n(1136),o=n(9677),g=n(5988);t.exports=function(t,e,n){for(var s=i(e),A=g.f,C=o.f,I=0;I{var r=n(5981);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},3538:t=>{t.exports=function(t,e){return{value:t,done:e}}},2029:(t,e,n)=>{var r=n(5746),i=n(5988),o=n(1887);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},1887:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5449:(t,e,n)=>{"use strict";var r=n(3894),i=n(5988),o=n(1887);t.exports=function(t,e,n){var g=r(e);g in t?i.f(t,g,o(0,n)):t[g]=n}},9202:(t,e,n)=>{var r=n(5988);t.exports=function(t,e,n){return r.f(t,e,n)}},5929:(t,e,n)=>{var r=n(2029);t.exports=function(t,e,n,i){return i&&i.enumerable?t[e]=n:r(t,e,n),t}},4380:(t,e,n)=>{var r=n(5929);t.exports=function(t,e,n){for(var i in e)n&&n.unsafe&&t[i]?t[i]=e[i]:r(t,i,e[i],n);return t}},5609:(t,e,n)=>{var r=n(1899),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},5746:(t,e,n)=>{var r=n(5981);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6616:t=>{var e="object"==typeof document&&document.all,n=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},1333:(t,e,n)=>{var r=n(1899),i=n(941),o=r.document,g=i(o)&&i(o.createElement);t.exports=function(t){return g?o.createElement(t):{}}},6796:t=>{var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},3281:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},3321:(t,e,n)=>{var r=n(8501),i=n(6049);t.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},6491:t=>{t.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},8501:t=>{t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},4470:(t,e,n)=>{var r=n(2861);t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},2749:(t,e,n)=>{var r=n(2861);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},6049:(t,e,n)=>{var r=n(2532);t.exports="undefined"!=typeof process&&"process"==r(process)},8045:(t,e,n)=>{var r=n(2861);t.exports=/web0s(?!.*chrome)/i.test(r)},2861:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3385:(t,e,n)=>{var r,i,o=n(1899),g=n(2861),s=o.process,A=o.Deno,C=s&&s.versions||A&&A.version,I=C&&C.v8;I&&(i=(r=I.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&g&&(!(r=g.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=g.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},5703:(t,e,n)=>{var r=n(4058);t.exports=function(t){return r[t+"Prototype"]}},6759:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3995:(t,e,n)=>{var r=n(5329),i=Error,o=r("".replace),g=String(i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,A=s.test(g);t.exports=function(t,e){if(A&&"string"==typeof t&&!i.prepareStackTrace)for(;e--;)t=o(t,s,"");return t}},9585:(t,e,n)=>{var r=n(2029),i=n(3995),o=n(8780),g=Error.captureStackTrace;t.exports=function(t,e,n,s){o&&(g?g(t,e):r(t,"stack",i(n,s)))}},8780:(t,e,n)=>{var r=n(5981),i=n(1887);t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},6887:(t,e,n)=>{"use strict";var r=n(1899),i=n(9730),o=n(7484),g=n(7475),s=n(9677).f,A=n(7252),C=n(4058),I=n(6843),a=n(2029),u=n(953),c=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return i(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,i,l,h,d,f,p,v,y,b=t.target,m=t.global,w=t.stat,_=t.proto,x=m?r:w?r[b]:(r[b]||{}).prototype,E=m?C:C[b]||a(C,b,{})[b],O=E.prototype;for(h in e)i=!(n=A(m?h:b+(w?".":"#")+h,t.forced))&&x&&u(x,h),f=E[h],i&&(p=t.dontCallGetSet?(y=s(x,h))&&y.value:x[h]),d=i&&p?p:e[h],i&&typeof f==typeof d||(v=t.bind&&i?I(d,r):t.wrap&&i?c(d):_&&g(d)?o(d):d,(t.sham||d&&d.sham||f&&f.sham)&&a(v,"sham",!0),a(E,h,v),_&&(u(C,l=b+"Prototype")||a(C,l,{}),a(C[l],h,d),t.real&&O&&(n||!O[h])&&a(O,h,d)))}},5981:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},5602:(t,e,n)=>{var r=n(5981);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},9730:(t,e,n)=>{var r=n(8285),i=Function.prototype,o=i.apply,g=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?g.bind(o):function(){return g.apply(o,arguments)})},6843:(t,e,n)=>{var r=n(7484),i=n(4883),o=n(8285),g=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?g(t,e):function(){return t.apply(e,arguments)}}},8285:(t,e,n)=>{var r=n(5981);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8834:(t,e,n)=>{var r=n(8285),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},9417:(t,e,n)=>{var r=n(5746),i=n(953),o=Function.prototype,g=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),A=s&&"something"===function(){}.name,C=s&&(!r||r&&g(o,"name").configurable);t.exports={EXISTS:s,PROPER:A,CONFIGURABLE:C}},5526:(t,e,n)=>{var r=n(5329),i=n(4883);t.exports=function(t,e,n){try{return r(i(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},7484:(t,e,n)=>{var r=n(2532),i=n(5329);t.exports=function(t){if("Function"===r(t))return i(t)}},5329:(t,e,n)=>{var r=n(8285),i=Function.prototype,o=i.call,g=r&&i.bind.bind(o,o);t.exports=r?g:function(t){return function(){return o.apply(t,arguments)}}},626:(t,e,n)=>{var r=n(4058),i=n(1899),o=n(7475),g=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?g(r[t])||g(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},2902:(t,e,n)=>{var r=n(9697),i=n(4229),o=n(2119),g=n(2077),s=n(9813)("iterator");t.exports=function(t){if(!o(t))return i(t,s)||i(t,"@@iterator")||g[r(t)]}},3476:(t,e,n)=>{var r=n(8834),i=n(4883),o=n(6059),g=n(9826),s=n(2902),A=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(i(n))return o(r(n,t));throw A(g(t)+" is not iterable")}},3323:(t,e,n)=>{var r=n(5329),i=n(1052),o=n(7475),g=n(2532),s=n(5803),A=r([].push);t.exports=function(t){if(o(t))return t;if(i(t)){for(var e=t.length,n=[],r=0;r{var r=n(4883),i=n(2119);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},1899:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},953:(t,e,n)=>{var r=n(5329),i=n(9678),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},7748:t=>{t.exports={}},4845:t=>{t.exports=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}},5463:(t,e,n)=>{var r=n(626);t.exports=r("document","documentElement")},2840:(t,e,n)=>{var r=n(5746),i=n(5981),o=n(1333);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},7026:(t,e,n)=>{var r=n(5329),i=n(5981),o=n(2532),g=Object,s=r("".split);t.exports=i((function(){return!g("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?s(t,""):g(t)}:g},1302:(t,e,n)=>{var r=n(5329),i=n(7475),o=n(3030),g=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return g(t)}),t.exports=o.inspectSource},3794:(t,e,n)=>{var r=n(941),i=n(2029);t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},1647:(t,e,n)=>{var r=n(6887),i=n(5329),o=n(7748),g=n(941),s=n(953),A=n(5988).f,C=n(946),I=n(684),a=n(1584),u=n(9418),c=n(5602),l=!1,h=u("meta"),d=0,f=function(t){A(t,h,{value:{objectID:"O"+d++,weakData:{}}})},p=t.exports={enable:function(){p.enable=function(){},l=!0;var t=C.f,e=i([].splice),n={};n[h]=1,t(n).length&&(C.f=function(n){for(var r=t(n),i=0,o=r.length;i{var r,i,o,g=n(7093),s=n(1899),A=n(941),C=n(2029),I=n(953),a=n(3030),u=n(4262),c=n(7748),l="Object already initialized",h=s.TypeError,d=s.WeakMap;if(g||a.state){var f=a.state||(a.state=new d);f.get=f.get,f.has=f.has,f.set=f.set,r=function(t,e){if(f.has(t))throw h(l);return e.facade=t,f.set(t,e),e},i=function(t){return f.get(t)||{}},o=function(t){return f.has(t)}}else{var p=u("state");c[p]=!0,r=function(t,e){if(I(t,p))throw h(l);return e.facade=t,C(t,p,e),e},i=function(t){return I(t,p)?t[p]:{}},o=function(t){return I(t,p)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!A(e)||(n=i(e)).type!==t)throw h("Incompatible receiver, "+t+" required");return n}}}},6782:(t,e,n)=>{var r=n(9813),i=n(2077),o=r("iterator"),g=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||g[o]===t)}},1052:(t,e,n)=>{var r=n(2532);t.exports=Array.isArray||function(t){return"Array"==r(t)}},7475:(t,e,n)=>{var r=n(6616),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},4284:(t,e,n)=>{var r=n(5329),i=n(5981),o=n(7475),g=n(9697),s=n(626),A=n(1302),C=function(){},I=[],a=s("Reflect","construct"),u=/^\s*(?:class|function)\b/,c=r(u.exec),l=!u.exec(C),h=function(t){if(!o(t))return!1;try{return a(C,I,t),!0}catch(t){return!1}},d=function(t){if(!o(t))return!1;switch(g(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(u,A(t))}catch(t){return!0}};d.sham=!0,t.exports=!a||i((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?d:h},7252:(t,e,n)=>{var r=n(5981),i=n(7475),o=/#|\.prototype\./,g=function(t,e){var n=A[s(t)];return n==I||n!=C&&(i(e)?r(e):!!e)},s=g.normalize=function(t){return String(t).replace(o,".").toLowerCase()},A=g.data={},C=g.NATIVE="N",I=g.POLYFILL="P";t.exports=g},2119:t=>{t.exports=function(t){return null==t}},941:(t,e,n)=>{var r=n(7475),i=n(6616),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===o}:function(t){return"object"==typeof t?null!==t:r(t)}},2529:t=>{t.exports=!0},6664:(t,e,n)=>{var r=n(626),i=n(7475),o=n(7046),g=n(2302),s=Object;t.exports=g?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},3091:(t,e,n)=>{var r=n(6843),i=n(8834),o=n(6059),g=n(9826),s=n(6782),A=n(623),C=n(7046),I=n(3476),a=n(2902),u=n(7609),c=TypeError,l=function(t,e){this.stopped=t,this.result=e},h=l.prototype;t.exports=function(t,e,n){var d,f,p,v,y,b,m,w=n&&n.that,_=!(!n||!n.AS_ENTRIES),x=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),k=r(e,w),T=function(t){return d&&u(d,"normal",t),new l(!0,t)},S=function(t){return _?(o(t),O?k(t[0],t[1],T):k(t[0],t[1])):O?k(t,T):k(t)};if(x)d=t.iterator;else if(E)d=t;else{if(!(f=a(t)))throw c(g(t)+" is not iterable");if(s(f)){for(p=0,v=A(t);v>p;p++)if((y=S(t[p]))&&C(h,y))return y;return new l(!1)}d=I(t,f)}for(b=x?t.next:d.next;!(m=i(b,d)).done;){try{y=S(m.value)}catch(t){u(d,"throw",t)}if("object"==typeof y&&y&&C(h,y))return y}return new l(!1)}},7609:(t,e,n)=>{var r=n(8834),i=n(6059),o=n(4229);t.exports=function(t,e,n){var g,s;i(t);try{if(!(g=o(t,"return"))){if("throw"===e)throw n;return n}g=r(g,t)}catch(t){s=!0,g=t}if("throw"===e)throw n;if(s)throw g;return i(g),n}},3847:(t,e,n)=>{"use strict";var r=n(5143).IteratorPrototype,i=n(9290),o=n(1887),g=n(904),s=n(2077),A=function(){return this};t.exports=function(t,e,n,C){var I=e+" Iterator";return t.prototype=i(r,{next:o(+!C,n)}),g(t,I,!1,!0),s[I]=A,t}},5105:(t,e,n)=>{"use strict";var r=n(6887),i=n(8834),o=n(2529),g=n(9417),s=n(7475),A=n(3847),C=n(249),I=n(8929),a=n(904),u=n(2029),c=n(5929),l=n(9813),h=n(2077),d=n(5143),f=g.PROPER,p=g.CONFIGURABLE,v=d.IteratorPrototype,y=d.BUGGY_SAFARI_ITERATORS,b=l("iterator"),m="keys",w="values",_="entries",x=function(){return this};t.exports=function(t,e,n,g,l,d,E){A(n,e,g);var O,k,T,S=function(t){if(t===l&&M)return M;if(!y&&t in R)return R[t];switch(t){case m:case w:case _:return function(){return new n(this,t)}}return function(){return new n(this)}},P=e+" Iterator",N=!1,R=t.prototype,D=R[b]||R["@@iterator"]||l&&R[l],M=!y&&D||S(l),j="Array"==e&&R.entries||D;if(j&&(O=C(j.call(new t)))!==Object.prototype&&O.next&&(o||C(O)===v||(I?I(O,v):s(O[b])||c(O,b,x)),a(O,P,!0,!0),o&&(h[P]=x)),f&&l==w&&D&&D.name!==w&&(!o&&p?u(R,"name",w):(N=!0,M=function(){return i(D,this)})),l)if(k={values:S(w),keys:d?M:S(m),entries:S(_)},E)for(T in k)(y||N||!(T in R))&&c(R,T,k[T]);else r({target:e,proto:!0,forced:y||N},k);return o&&!E||R[b]===M||c(R,b,M,{name:l}),h[e]=M,k}},5143:(t,e,n)=>{"use strict";var r,i,o,g=n(5981),s=n(7475),A=n(941),C=n(9290),I=n(249),a=n(5929),u=n(9813),c=n(2529),l=u("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(i=I(I(o)))!==Object.prototype&&(r=i):h=!0),!A(r)||g((function(){var t={};return r[l].call(t)!==t}))?r={}:c&&(r=C(r)),s(r[l])||a(r,l,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},2077:t=>{t.exports={}},623:(t,e,n)=>{var r=n(3057);t.exports=function(t){return r(t.length)}},5331:t=>{var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},6132:(t,e,n)=>{var r,i,o,g,s,A=n(1899),C=n(6843),I=n(9677).f,a=n(2941).set,u=n(8397),c=n(2749),l=n(4470),h=n(8045),d=n(6049),f=A.MutationObserver||A.WebKitMutationObserver,p=A.document,v=A.process,y=A.Promise,b=I(A,"queueMicrotask"),m=b&&b.value;if(!m){var w=new u,_=function(){var t,e;for(d&&(t=v.domain)&&t.exit();e=w.get();)try{e()}catch(t){throw w.head&&r(),t}t&&t.enter()};c||d||h||!f||!p?!l&&y&&y.resolve?((g=y.resolve(void 0)).constructor=y,s=C(g.then,g),r=function(){s(_)}):d?r=function(){v.nextTick(_)}:(a=C(a,A),r=function(){a(_)}):(i=!0,o=p.createTextNode(""),new f(_).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),m=function(t){w.head||r(),w.add(t)}}t.exports=m},9520:(t,e,n)=>{"use strict";var r=n(4883),i=TypeError,o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw i("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},4649:(t,e,n)=>{var r=n(5803);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},9290:(t,e,n)=>{var r,i=n(6059),o=n(9938),g=n(6759),s=n(7748),A=n(5463),C=n(1333),I=n(4262),a="prototype",u="script",c=I("IE_PROTO"),l=function(){},h=function(t){return"<"+u+">"+t+""},d=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},f=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;f="undefined"!=typeof document?document.domain&&r?d(r):(e=C("iframe"),n="java"+u+":",e.style.display="none",A.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):d(r);for(var i=g.length;i--;)delete f[a][g[i]];return f()};s[c]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(l[a]=i(t),n=new l,l[a]=null,n[c]=t):n=f(),void 0===e?n:o.f(n,e)}},9938:(t,e,n)=>{var r=n(5746),i=n(3937),o=n(5988),g=n(6059),s=n(4529),A=n(4771);e.f=r&&!i?Object.defineProperties:function(t,e){g(t);for(var n,r=s(e),i=A(e),C=i.length,I=0;C>I;)o.f(t,n=i[I++],r[n]);return t}},5988:(t,e,n)=>{var r=n(5746),i=n(2840),o=n(3937),g=n(6059),s=n(3894),A=TypeError,C=Object.defineProperty,I=Object.getOwnPropertyDescriptor,a="enumerable",u="configurable",c="writable";e.f=r?o?function(t,e,n){if(g(t),e=s(e),g(n),"function"==typeof t&&"prototype"===e&&"value"in n&&c in n&&!n[c]){var r=I(t,e);r&&r[c]&&(t[e]=n.value,n={configurable:u in n?n[u]:r[u],enumerable:a in n?n[a]:r[a],writable:!1})}return C(t,e,n)}:C:function(t,e,n){if(g(t),e=s(e),g(n),i)try{return C(t,e,n)}catch(t){}if("get"in n||"set"in n)throw A("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},9677:(t,e,n)=>{var r=n(5746),i=n(8834),o=n(6760),g=n(1887),s=n(4529),A=n(3894),C=n(953),I=n(2840),a=Object.getOwnPropertyDescriptor;e.f=r?a:function(t,e){if(t=s(t),e=A(e),I)try{return a(t,e)}catch(t){}if(C(t,e))return g(!i(o.f,t,e),t[e])}},684:(t,e,n)=>{var r=n(2532),i=n(4529),o=n(946).f,g=n(5790),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==r(t)?function(t){try{return o(t)}catch(t){return g(s)}}(t):o(i(t))}},946:(t,e,n)=>{var r=n(5629),i=n(6759).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},7857:(t,e)=>{e.f=Object.getOwnPropertySymbols},249:(t,e,n)=>{var r=n(953),i=n(7475),o=n(9678),g=n(4262),s=n(4160),A=g("IE_PROTO"),C=Object,I=C.prototype;t.exports=s?C.getPrototypeOf:function(t){var e=o(t);if(r(e,A))return e[A];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof C?I:null}},1584:(t,e,n)=>{var r=n(5981),i=n(941),o=n(2532),g=n(7135),s=Object.isExtensible,A=r((function(){s(1)}));t.exports=A||g?function(t){return!!i(t)&&(!g||"ArrayBuffer"!=o(t))&&(!s||s(t))}:s},7046:(t,e,n)=>{var r=n(5329);t.exports=r({}.isPrototypeOf)},5629:(t,e,n)=>{var r=n(5329),i=n(953),o=n(4529),g=n(1692).indexOf,s=n(7748),A=r([].push);t.exports=function(t,e){var n,r=o(t),C=0,I=[];for(n in r)!i(s,n)&&i(r,n)&&A(I,n);for(;e.length>C;)i(r,n=e[C++])&&(~g(I,n)||A(I,n));return I}},4771:(t,e,n)=>{var r=n(5629),i=n(6759);t.exports=Object.keys||function(t){return r(t,i)}},6760:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},8929:(t,e,n)=>{var r=n(5526),i=n(6059),o=n(1851);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},8810:(t,e,n)=>{var r=n(5746),i=n(5329),o=n(4771),g=n(4529),s=i(n(6760).f),A=i([].push),C=function(t){return function(e){for(var n,i=g(e),C=o(i),I=C.length,a=0,u=[];I>a;)n=C[a++],r&&!s(i,n)||A(u,t?[n,i[n]]:i[n]);return u}};t.exports={entries:C(!0),values:C(!1)}},5623:(t,e,n)=>{"use strict";var r=n(2885),i=n(9697);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},9811:(t,e,n)=>{var r=n(8834),i=n(7475),o=n(941),g=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw g("Can't convert object to primitive value")}},1136:(t,e,n)=>{var r=n(626),i=n(5329),o=n(946),g=n(7857),s=n(6059),A=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=g.f;return n?A(e,n(t)):e}},4058:t=>{t.exports={}},2:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},7742:(t,e,n)=>{var r=n(1899),i=n(6991),o=n(7475),g=n(7252),s=n(1302),A=n(9813),C=n(3321),I=n(8501),a=n(2529),u=n(3385),c=i&&i.prototype,l=A("species"),h=!1,d=o(r.PromiseRejectionEvent),f=g("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===u)return!0;if(a&&(!c.catch||!c.finally))return!0;if(!u||u<51||!/native code/.test(t)){var n=new i((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[l]=r,!(h=n.then((function(){}))instanceof r))return!0}return!e&&(C||I)&&!d}));t.exports={CONSTRUCTOR:f,REJECTION_EVENT:d,SUBCLASSING:h}},6991:(t,e,n)=>{var r=n(1899);t.exports=r.Promise},6584:(t,e,n)=>{var r=n(6059),i=n(941),o=n(9520);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},1542:(t,e,n)=>{var r=n(6991),i=n(1385),o=n(7742).CONSTRUCTOR;t.exports=o||!i((function(t){r.all(t).then(void 0,(function(){}))}))},8397:t=>{var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},8219:(t,e,n)=>{var r=n(2119),i=TypeError;t.exports=function(t){if(r(t))throw i("Can't call method on "+t);return t}},7620:(t,e,n)=>{"use strict";var r,i=n(1899),o=n(9730),g=n(7475),s=n(6491),A=n(2861),C=n(3765),I=n(8348),a=i.Function,u=/MSIE .\./.test(A)||s&&((r=i.Bun.version.split(".")).length<3||0==r[0]&&(r[1]<3||3==r[1]&&0==r[2]));t.exports=function(t,e){var n=e?2:1;return u?function(r,i){var s=I(arguments.length,1)>n,A=g(r)?r:a(r),u=s?C(arguments,n):[],c=s?function(){o(A,this,u)}:A;return e?t(c,i):t(c)}:t}},4431:(t,e,n)=>{"use strict";var r=n(626),i=n(9202),o=n(9813),g=n(5746),s=o("species");t.exports=function(t){var e=r(t);g&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},904:(t,e,n)=>{var r=n(2885),i=n(5988).f,o=n(2029),g=n(953),s=n(5623),A=n(9813)("toStringTag");t.exports=function(t,e,n,C){if(t){var I=n?t:t.prototype;g(I,A)||i(I,A,{configurable:!0,value:e}),C&&!r&&o(I,"toString",s)}}},4262:(t,e,n)=>{var r=n(8726),i=n(9418),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},3030:(t,e,n)=>{var r=n(1899),i=n(5609),o="__core-js_shared__",g=r[o]||i(o,{});t.exports=g},8726:(t,e,n)=>{var r=n(2529),i=n(3030);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},487:(t,e,n)=>{var r=n(6059),i=n(174),o=n(2119),g=n(9813)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||o(n=r(s)[g])?e:i(n)}},4620:(t,e,n)=>{var r=n(5329),i=n(2435),o=n(5803),g=n(8219),s=r("".charAt),A=r("".charCodeAt),C=r("".slice),I=function(t){return function(e,n){var r,I,a=o(g(e)),u=i(n),c=a.length;return u<0||u>=c?t?"":void 0:(r=A(a,u))<55296||r>56319||u+1===c||(I=A(a,u+1))<56320||I>57343?t?s(a,u):r:t?C(a,u,u+2):I-56320+(r-55296<<10)+65536}};t.exports={codeAt:I(!1),charAt:I(!0)}},3405:(t,e,n)=>{var r=n(3385),i=n(5981),o=n(1899).String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},9630:(t,e,n)=>{var r=n(8834),i=n(626),o=n(9813),g=n(5929);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=o("toPrimitive");e&&!e[s]&&g(e,s,(function(t){return r(n,this)}),{arity:1})}},4680:(t,e,n)=>{var r=n(3405);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},2941:(t,e,n)=>{var r,i,o,g,s=n(1899),A=n(9730),C=n(6843),I=n(7475),a=n(953),u=n(5981),c=n(5463),l=n(3765),h=n(1333),d=n(8348),f=n(2749),p=n(6049),v=s.setImmediate,y=s.clearImmediate,b=s.process,m=s.Dispatch,w=s.Function,_=s.MessageChannel,x=s.String,E=0,O={},k="onreadystatechange";u((function(){r=s.location}));var T=function(t){if(a(O,t)){var e=O[t];delete O[t],e()}},S=function(t){return function(){T(t)}},P=function(t){T(t.data)},N=function(t){s.postMessage(x(t),r.protocol+"//"+r.host)};v&&y||(v=function(t){d(arguments.length,1);var e=I(t)?t:w(t),n=l(arguments,1);return O[++E]=function(){A(e,void 0,n)},i(E),E},y=function(t){delete O[t]},p?i=function(t){b.nextTick(S(t))}:m&&m.now?i=function(t){m.now(S(t))}:_&&!f?(g=(o=new _).port2,o.port1.onmessage=P,i=C(g.postMessage,g)):s.addEventListener&&I(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!u(N)?(i=N,s.addEventListener("message",P,!1)):i=k in h("script")?function(t){c.appendChild(h("script"))[k]=function(){c.removeChild(this),T(t)}}:function(t){setTimeout(S(t),0)}),t.exports={set:v,clear:y}},9413:(t,e,n)=>{var r=n(2435),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},4529:(t,e,n)=>{var r=n(7026),i=n(8219);t.exports=function(t){return r(i(t))}},2435:(t,e,n)=>{var r=n(5331);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},3057:(t,e,n)=>{var r=n(2435),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},9678:(t,e,n)=>{var r=n(8219),i=Object;t.exports=function(t){return i(r(t))}},6935:(t,e,n)=>{var r=n(8834),i=n(941),o=n(6664),g=n(4229),s=n(9811),A=n(9813),C=TypeError,I=A("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,A=g(t,I);if(A){if(void 0===e&&(e="default"),n=r(A,t,e),!i(n)||o(n))return n;throw C("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},3894:(t,e,n)=>{var r=n(6935),i=n(6664);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},2885:(t,e,n)=>{var r={};r[n(9813)("toStringTag")]="z",t.exports="[object z]"===String(r)},5803:(t,e,n)=>{var r=n(9697),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},9826:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9418:(t,e,n)=>{var r=n(5329),i=0,o=Math.random(),g=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+g(++i+o,36)}},2302:(t,e,n)=>{var r=n(3405);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3937:(t,e,n)=>{var r=n(5746),i=n(5981);t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8348:t=>{var e=TypeError;t.exports=function(t,n){if(t{var r=n(1899),i=n(7475),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},3464:(t,e,n)=>{var r=n(4058),i=n(953),o=n(1477),g=n(5988).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||g(e,t,{value:o.f(t)})}},1477:(t,e,n)=>{var r=n(9813);e.f=r},9813:(t,e,n)=>{var r=n(1899),i=n(8726),o=n(953),g=n(9418),s=n(3405),A=n(2302),C=r.Symbol,I=i("wks"),a=A?C.for||C:C&&C.withoutSetter||g;t.exports=function(t){return o(I,t)||(I[t]=s&&o(C,t)?C[t]:a("Symbol."+t)),I[t]}},9812:(t,e,n)=>{"use strict";var r=n(6887),i=n(7046),o=n(249),g=n(8929),s=n(3489),A=n(9290),C=n(2029),I=n(1887),a=n(3794),u=n(9585),c=n(3091),l=n(4649),h=n(9813)("toStringTag"),d=Error,f=[].push,p=function(t,e){var n,r=i(v,this);g?n=g(d(),r?o(this):v):(n=r?this:A(v),C(n,h,"Error")),void 0!==e&&C(n,"message",l(e)),u(n,p,n.stack,1),arguments.length>2&&a(n,arguments[2]);var s=[];return c(t,f,{that:s}),C(n,"errors",s),n};g?g(p,d):s(p,d,{name:!0});var v=p.prototype=A(d.prototype,{constructor:I(1,p),message:I(1,""),name:I(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:p})},7627:(t,e,n)=>{n(9812)},5906:(t,e,n)=>{"use strict";var r=n(6887),i=n(5981),o=n(1052),g=n(941),s=n(9678),A=n(623),C=n(6796),I=n(5449),a=n(4692),u=n(568),c=n(9813),l=n(3385),h=c("isConcatSpreadable"),d=l>=51||!i((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),f=function(t){if(!g(t))return!1;var e=t[h];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,arity:1,forced:!d||!u("concat")},{concat:function(t){var e,n,r,i,o,g=s(this),u=a(g,0),c=0;for(e=-1,r=arguments.length;e{"use strict";var r=n(6887),i=n(6837);r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},2988:(t,e,n)=>{n(6887)({target:"Array",stat:!0},{isArray:n(1052)})},6274:(t,e,n)=>{"use strict";var r=n(4529),i=n(8479),o=n(2077),g=n(5402),s=n(5988).f,A=n(5105),C=n(3538),I=n(2529),a=n(5746),u="Array Iterator",c=g.set,l=g.getterFor(u);t.exports=A(Array,"Array",(function(t,e){c(this,{type:u,target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,C(void 0,!0)):C("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values");var h=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!I&&a&&"values"!==h.name)try{s(h,"name",{value:"values"})}catch(t){}},8787:(t,e,n)=>{"use strict";var r=n(6887),i=n(3610).map;r({target:"Array",proto:!0,forced:!n(568)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},1876:(t,e,n)=>{"use strict";var r=n(6887),i=n(6499).left,o=n(4194),g=n(3385);r({target:"Array",proto:!0,forced:!n(6049)&&g>79&&g<83||!o("reduce")},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},8084:()=>{},2619:(t,e,n)=>{var r=n(6887),i=n(626),o=n(9730),g=n(8834),s=n(5329),A=n(5981),C=n(7475),I=n(6664),a=n(3765),u=n(3323),c=n(3405),l=String,h=i("JSON","stringify"),d=s(/./.exec),f=s("".charAt),p=s("".charCodeAt),v=s("".replace),y=s(1..toString),b=/[\uD800-\uDFFF]/g,m=/^[\uD800-\uDBFF]$/,w=/^[\uDC00-\uDFFF]$/,_=!c||A((function(){var t=i("Symbol")();return"[null]"!=h([t])||"{}"!=h({a:t})||"{}"!=h(Object(t))})),x=A((function(){return'"\\udf06\\ud834"'!==h("\udf06\ud834")||'"\\udead"'!==h("\udead")})),E=function(t,e){var n=a(arguments),r=u(e);if(C(r)||void 0!==t&&!I(t))return n[1]=function(t,e){if(C(r)&&(e=g(r,this,l(t),e)),!I(e))return e},o(h,null,n)},O=function(t,e,n){var r=f(n,e-1),i=f(n,e+1);return d(m,t)&&!d(w,i)||d(w,t)&&!d(m,r)?"\\u"+y(p(t,0),16):t};h&&r({target:"JSON",stat:!0,arity:3,forced:_||x},{stringify:function(t,e,n){var r=a(arguments),i=o(_?E:h,null,r);return x&&"string"==typeof i?v(i,b,O):i}})},9120:(t,e,n)=>{var r=n(1899);n(904)(r.JSON,"JSON",!0)},5327:()=>{},6450:(t,e,n)=>{var r=n(6887),i=n(5746),o=n(5988).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!i},{defineProperty:o})},1078:(t,e,n)=>{var r=n(6887),i=n(8810).entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},7144:(t,e,n)=>{var r=n(6887),i=n(3405),o=n(5981),g=n(7857),s=n(9678);r({target:"Object",stat:!0,forced:!i||o((function(){g.f(1)}))},{getOwnPropertySymbols:function(t){var e=g.f;return e?e(s(t)):[]}})},1724:(t,e,n)=>{var r=n(6887),i=n(9678),o=n(4771);r({target:"Object",stat:!0,forced:n(5981)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},5967:()=>{},4560:(t,e,n)=>{"use strict";var r=n(6887),i=n(8834),o=n(4883),g=n(9520),s=n(2),A=n(3091);r({target:"Promise",stat:!0,forced:n(1542)},{allSettled:function(t){var e=this,n=g.f(e),r=n.resolve,C=n.reject,I=s((function(){var n=o(e.resolve),g=[],s=0,C=1;A(t,(function(t){var o=s++,A=!1;C++,i(n,e,t).then((function(t){A||(A=!0,g[o]={status:"fulfilled",value:t},--C||r(g))}),(function(t){A||(A=!0,g[o]={status:"rejected",reason:t},--C||r(g))}))})),--C||r(g)}));return I.error&&C(I.value),n.promise}})},6890:(t,e,n)=>{"use strict";var r=n(6887),i=n(8834),o=n(4883),g=n(9520),s=n(2),A=n(3091);r({target:"Promise",stat:!0,forced:n(1542)},{all:function(t){var e=this,n=g.f(e),r=n.resolve,C=n.reject,I=s((function(){var n=o(e.resolve),g=[],s=0,I=1;A(t,(function(t){var o=s++,A=!1;I++,i(n,e,t).then((function(t){A||(A=!0,g[o]=t,--I||r(g))}),C)})),--I||r(g)}));return I.error&&C(I.value),n.promise}})},7206:(t,e,n)=>{"use strict";var r=n(6887),i=n(8834),o=n(4883),g=n(626),s=n(9520),A=n(2),C=n(3091),I=n(1542),a="No one promise resolved";r({target:"Promise",stat:!0,forced:I},{any:function(t){var e=this,n=g("AggregateError"),r=s.f(e),I=r.resolve,u=r.reject,c=A((function(){var r=o(e.resolve),g=[],s=0,A=1,c=!1;C(t,(function(t){var o=s++,C=!1;A++,i(r,e,t).then((function(t){C||c||(c=!0,I(t))}),(function(t){C||c||(C=!0,g[o]=t,--A||u(new n(g,a)))}))})),--A||u(new n(g,a))}));return c.error&&u(c.value),r.promise}})},3376:(t,e,n)=>{"use strict";var r=n(6887),i=n(2529),o=n(7742).CONSTRUCTOR,g=n(6991),s=n(626),A=n(7475),C=n(5929),I=g&&g.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&A(g)){var a=s("Promise").prototype.catch;I.catch!==a&&C(I,"catch",a,{unsafe:!0})}},6934:(t,e,n)=>{"use strict";var r,i,o,g=n(6887),s=n(2529),A=n(6049),C=n(1899),I=n(8834),a=n(5929),u=n(8929),c=n(904),l=n(4431),h=n(4883),d=n(7475),f=n(941),p=n(5743),v=n(487),y=n(2941).set,b=n(6132),m=n(4845),w=n(2),_=n(8397),x=n(5402),E=n(6991),O=n(7742),k=n(9520),T="Promise",S=O.CONSTRUCTOR,P=O.REJECTION_EVENT,N=O.SUBCLASSING,R=x.getterFor(T),D=x.set,M=E&&E.prototype,j=E,B=M,L=C.TypeError,F=C.document,z=C.process,Z=k.f,U=Z,V=!!(F&&F.createEvent&&C.dispatchEvent),G="unhandledrejection",W=function(t){var e;return!(!f(t)||!d(e=t.then))&&e},Y=function(t,e){var n,r,i,o=e.value,g=1==e.state,s=g?t.ok:t.fail,A=t.resolve,C=t.reject,a=t.domain;try{s?(g||(2===e.rejection&&q(e),e.rejection=1),!0===s?n=o:(a&&a.enter(),n=s(o),a&&(a.exit(),i=!0)),n===t.promise?C(L("Promise-chain cycle")):(r=W(n))?I(r,n,A,C):A(n)):C(o)}catch(t){a&&!i&&a.exit(),C(t)}},H=function(t,e){t.notified||(t.notified=!0,b((function(){for(var n,r=t.reactions;n=r.get();)Y(n,t);t.notified=!1,e&&!t.rejection&&Q(t)})))},K=function(t,e,n){var r,i;V?((r=F.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),C.dispatchEvent(r)):r={promise:e,reason:n},!P&&(i=C["on"+t])?i(r):t===G&&m("Unhandled promise rejection",n)},Q=function(t){I(y,C,(function(){var e,n=t.facade,r=t.value;if(X(t)&&(e=w((function(){A?z.emit("unhandledRejection",r,n):K(G,n,r)})),t.rejection=A||X(t)?2:1,e.error))throw e.value}))},X=function(t){return 1!==t.rejection&&!t.parent},q=function(t){I(y,C,(function(){var e=t.facade;A?z.emit("rejectionHandled",e):K("rejectionhandled",e,t.value)}))},J=function(t,e,n){return function(r){t(e,r,n)}},$=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,H(t,!0))},tt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw L("Promise can't be resolved itself");var r=W(e);r?b((function(){var n={done:!1};try{I(r,e,J(tt,n,t),J($,n,t))}catch(e){$(n,e,t)}})):(t.value=e,t.state=1,H(t,!1))}catch(e){$({done:!1},e,t)}}};if(S&&(B=(j=function(t){p(this,B),h(t),I(r,this);var e=R(this);try{t(J(tt,e),J($,e))}catch(t){$(e,t)}}).prototype,(r=function(t){D(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:void 0})}).prototype=a(B,"then",(function(t,e){var n=R(this),r=Z(v(this,j));return n.parent=!0,r.ok=!d(t)||t,r.fail=d(e)&&e,r.domain=A?z.domain:void 0,0==n.state?n.reactions.add(r):b((function(){Y(r,n)})),r.promise})),i=function(){var t=new r,e=R(t);this.promise=t,this.resolve=J(tt,e),this.reject=J($,e)},k.f=Z=function(t){return t===j||void 0===t?new i(t):U(t)},!s&&d(E)&&M!==Object.prototype)){o=M.then,N||a(M,"then",(function(t,e){var n=this;return new j((function(t,e){I(o,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete M.constructor}catch(t){}u&&u(M,B)}g({global:!0,constructor:!0,wrap:!0,forced:S},{Promise:j}),c(j,T,!1,!0),l(T)},4349:(t,e,n)=>{"use strict";var r=n(6887),i=n(2529),o=n(6991),g=n(5981),s=n(626),A=n(7475),C=n(487),I=n(6584),a=n(5929),u=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&g((function(){u.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=C(this,s("Promise")),n=A(t);return this.then(n?function(n){return I(e,t()).then((function(){return n}))}:t,n?function(n){return I(e,t()).then((function(){throw n}))}:t)}}),!i&&A(o)){var c=s("Promise").prototype.finally;u.finally!==c&&a(u,"finally",c,{unsafe:!0})}},8881:(t,e,n)=>{n(6934),n(6890),n(3376),n(5921),n(4069),n(4482)},5921:(t,e,n)=>{"use strict";var r=n(6887),i=n(8834),o=n(4883),g=n(9520),s=n(2),A=n(3091);r({target:"Promise",stat:!0,forced:n(1542)},{race:function(t){var e=this,n=g.f(e),r=n.reject,C=s((function(){var g=o(e.resolve);A(t,(function(t){i(g,e,t).then(n.resolve,r)}))}));return C.error&&r(C.value),n.promise}})},4069:(t,e,n)=>{"use strict";var r=n(6887),i=n(8834),o=n(9520);r({target:"Promise",stat:!0,forced:n(7742).CONSTRUCTOR},{reject:function(t){var e=o.f(this);return i(e.reject,void 0,t),e.promise}})},4482:(t,e,n)=>{"use strict";var r=n(6887),i=n(626),o=n(2529),g=n(6991),s=n(7742).CONSTRUCTOR,A=n(6584),C=i("Promise"),I=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(t){return A(I&&this===C?g:this,t)}})},1502:()=>{},7971:(t,e,n)=>{"use strict";var r=n(4620).charAt,i=n(5803),o=n(5402),g=n(5105),s=n(3538),A="String Iterator",C=o.set,I=o.getterFor(A);g(String,"String",(function(t){C(this,{type:A,string:i(t),index:0})}),(function(){var t,e=I(this),n=e.string,i=e.index;return i>=n.length?s(void 0,!0):(t=r(n,i),e.index+=t.length,s(t,!1))}))},8555:(t,e,n)=>{n(3464)("asyncIterator")},8616:(t,e,n)=>{"use strict";var r=n(6887),i=n(1899),o=n(8834),g=n(5329),s=n(2529),A=n(5746),C=n(3405),I=n(5981),a=n(953),u=n(7046),c=n(6059),l=n(4529),h=n(3894),d=n(5803),f=n(1887),p=n(9290),v=n(4771),y=n(946),b=n(684),m=n(7857),w=n(9677),_=n(5988),x=n(9938),E=n(6760),O=n(5929),k=n(9202),T=n(8726),S=n(4262),P=n(7748),N=n(9418),R=n(9813),D=n(1477),M=n(3464),j=n(9630),B=n(904),L=n(5402),F=n(3610).forEach,z=S("hidden"),Z="Symbol",U="prototype",V=L.set,G=L.getterFor(Z),W=Object[U],Y=i.Symbol,H=Y&&Y[U],K=i.TypeError,Q=i.QObject,X=w.f,q=_.f,J=b.f,$=E.f,tt=g([].push),et=T("symbols"),nt=T("op-symbols"),rt=T("wks"),it=!Q||!Q[U]||!Q[U].findChild,ot=A&&I((function(){return 7!=p(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=X(W,e);r&&delete W[e],q(t,e,n),r&&t!==W&&q(W,e,r)}:q,gt=function(t,e){var n=et[t]=p(H);return V(n,{type:Z,tag:t,description:e}),A||(n.description=e),n},st=function(t,e,n){t===W&&st(nt,e,n),c(t);var r=h(e);return c(n),a(et,r)?(n.enumerable?(a(t,z)&&t[z][r]&&(t[z][r]=!1),n=p(n,{enumerable:f(0,!1)})):(a(t,z)||q(t,z,f(1,{})),t[z][r]=!0),ot(t,r,n)):q(t,r,n)},At=function(t,e){c(t);var n=l(e),r=v(n).concat(ut(n));return F(r,(function(e){A&&!o(Ct,n,e)||st(t,e,n[e])})),t},Ct=function(t){var e=h(t),n=o($,this,e);return!(this===W&&a(et,e)&&!a(nt,e))&&(!(n||!a(this,e)||!a(et,e)||a(this,z)&&this[z][e])||n)},It=function(t,e){var n=l(t),r=h(e);if(n!==W||!a(et,r)||a(nt,r)){var i=X(n,r);return!i||!a(et,r)||a(n,z)&&n[z][r]||(i.enumerable=!0),i}},at=function(t){var e=J(l(t)),n=[];return F(e,(function(t){a(et,t)||a(P,t)||tt(n,t)})),n},ut=function(t){var e=t===W,n=J(e?nt:l(t)),r=[];return F(n,(function(t){!a(et,t)||e&&!a(W,t)||tt(r,et[t])})),r};C||(O(H=(Y=function(){if(u(H,this))throw K("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?d(arguments[0]):void 0,e=N(t),n=function(t){this===W&&o(n,nt,t),a(this,z)&&a(this[z],e)&&(this[z][e]=!1),ot(this,e,f(1,t))};return A&&it&&ot(W,e,{configurable:!0,set:n}),gt(e,t)})[U],"toString",(function(){return G(this).tag})),O(Y,"withoutSetter",(function(t){return gt(N(t),t)})),E.f=Ct,_.f=st,x.f=At,w.f=It,y.f=b.f=at,m.f=ut,D.f=function(t){return gt(R(t),t)},A&&(k(H,"description",{configurable:!0,get:function(){return G(this).description}}),s||O(W,"propertyIsEnumerable",Ct,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!C,sham:!C},{Symbol:Y}),F(v(rt),(function(t){M(t)})),r({target:Z,stat:!0,forced:!C},{useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!C,sham:!A},{create:function(t,e){return void 0===e?p(t):At(p(t),e)},defineProperty:st,defineProperties:At,getOwnPropertyDescriptor:It}),r({target:"Object",stat:!0,forced:!C},{getOwnPropertyNames:at}),j(),B(Y,Z),P[z]=!0},2615:()=>{},4523:(t,e,n)=>{var r=n(6887),i=n(626),o=n(953),g=n(5803),s=n(8726),A=n(4680),C=s("string-to-symbol-registry"),I=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!A},{for:function(t){var e=g(t);if(o(C,e))return C[e];var n=i("Symbol")(e);return C[e]=n,I[n]=e,n}})},1732:(t,e,n)=>{n(3464)("hasInstance")},5903:(t,e,n)=>{n(3464)("isConcatSpreadable")},1825:(t,e,n)=>{n(3464)("iterator")},5824:(t,e,n)=>{n(8616),n(4523),n(8608),n(2619),n(7144)},8608:(t,e,n)=>{var r=n(6887),i=n(953),o=n(6664),g=n(9826),s=n(8726),A=n(4680),C=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!A},{keyFor:function(t){if(!o(t))throw TypeError(g(t)+" is not a symbol");if(i(C,t))return C[t]}})},5915:(t,e,n)=>{n(3464)("matchAll")},8394:(t,e,n)=>{n(3464)("match")},1766:(t,e,n)=>{n(3464)("replace")},2737:(t,e,n)=>{n(3464)("search")},9911:(t,e,n)=>{n(3464)("species")},4315:(t,e,n)=>{n(3464)("split")},3131:(t,e,n)=>{var r=n(3464),i=n(9630);r("toPrimitive"),i()},4714:(t,e,n)=>{var r=n(626),i=n(3464),o=n(904);i("toStringTag"),o(r("Symbol"),"Symbol")},659:(t,e,n)=>{n(3464)("unscopables")},4776:(t,e,n)=>{"use strict";var r,i=n(5602),o=n(1899),g=n(5329),s=n(4380),A=n(1647),C=n(4683),I=n(8850),a=n(941),u=n(5402).enforce,c=n(5981),l=n(7093),h=Object,d=Array.isArray,f=h.isExtensible,p=h.isFrozen,v=h.isSealed,y=h.freeze,b=h.seal,m={},w={},_=!o.ActiveXObject&&"ActiveXObject"in o,x=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},E=C("WeakMap",x,I),O=E.prototype,k=g(O.set);if(l)if(_){r=I.getConstructor(x,"WeakMap",!0),A.enable();var T=g(O.delete),S=g(O.has),P=g(O.get);s(O,{delete:function(t){if(a(t)&&!f(t)){var e=u(this);return e.frozen||(e.frozen=new r),T(this,t)||e.frozen.delete(t)}return T(this,t)},has:function(t){if(a(t)&&!f(t)){var e=u(this);return e.frozen||(e.frozen=new r),S(this,t)||e.frozen.has(t)}return S(this,t)},get:function(t){if(a(t)&&!f(t)){var e=u(this);return e.frozen||(e.frozen=new r),S(this,t)?P(this,t):e.frozen.get(t)}return P(this,t)},set:function(t,e){if(a(t)&&!f(t)){var n=u(this);n.frozen||(n.frozen=new r),S(this,t)?k(this,t,e):n.frozen.set(t,e)}else k(this,t,e);return this}})}else i&&c((function(){var t=y([]);return k(new E,t,1),!p(t)}))&&s(O,{set:function(t,e){var n;return d(t)&&(p(t)?n=m:v(t)&&(n=w)),k(this,t,e),n==m&&y(t),n==w&&b(t),this}})},4334:(t,e,n)=>{n(4776)},1115:(t,e,n)=>{"use strict";n(4683)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(8850))},1773:(t,e,n)=>{n(1115)},8783:(t,e,n)=>{n(3464)("asyncDispose")},3975:(t,e,n)=>{n(3464)("dispose")},2731:(t,e,n)=>{var r=n(6887),i=n(626),o=n(5329),g=i("Symbol"),s=g.keyFor,A=o(g.prototype.valueOf);r({target:"Symbol",stat:!0},{isRegistered:function(t){try{return void 0!==s(A(t))}catch(t){return!1}}})},5605:(t,e,n)=>{for(var r=n(6887),i=n(8726),o=n(626),g=n(5329),s=n(6664),A=n(9813),C=o("Symbol"),I=C.isWellKnown,a=o("Object","getOwnPropertyNames"),u=g(C.prototype.valueOf),c=i("wks"),l=0,h=a(C),d=h.length;l{n(3464)("matcher")},1943:(t,e,n)=>{n(3464)("metadataKey")},5414:(t,e,n)=>{n(3464)("metadata")},6774:(t,e,n)=>{n(3464)("observable")},620:(t,e,n)=>{n(3464)("patternMatch")},6172:(t,e,n)=>{n(3464)("replaceAll")},7634:(t,e,n)=>{n(6274);var r=n(3281),i=n(1899),o=n(9697),g=n(2029),s=n(2077),A=n(9813)("toStringTag");for(var C in r){var I=i[C],a=I&&I.prototype;a&&o(a)!==A&&g(a,A,C),s[C]=s.Array}},9229:(t,e,n)=>{var r=n(6887),i=n(1899),o=n(7620)(i.setInterval,!0);r({global:!0,bind:!0,forced:i.setInterval!==o},{setInterval:o})},7749:(t,e,n)=>{var r=n(6887),i=n(1899),o=n(7620)(i.setTimeout,!0);r({global:!0,bind:!0,forced:i.setTimeout!==o},{setTimeout:o})},1249:(t,e,n)=>{n(9229),n(7749)},3363:(t,e,n)=>{var r=n(4034);t.exports=r},9216:(t,e,n)=>{var r=n(9324);t.exports=r},8065:(t,e,n)=>{var r=n(6043);t.exports=r},6279:(t,e,n)=>{n(7634);var r=n(9697),i=n(953),o=n(7046),g=n(9216),s=Array.prototype,A={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.forEach;return t===s||o(s,t)&&e===s.forEach||i(A,r(t))?g:e}},1798:(t,e,n)=>{var r=n(8287);t.exports=r},2527:(t,e,n)=>{var r=n(8025);t.exports=r},1910:(t,e,n)=>{var r=n(8171);t.exports=r},6209:(t,e,n)=>{var r=n(3081);t.exports=r},3059:(t,e,n)=>{var r=n(8494);t.exports=r},7460:(t,e,n)=>{var r=n(2956);n(7634),t.exports=r},7989:(t,e,n)=>{n(1249);var r=n(4058);t.exports=r.setTimeout},2547:(t,e,n)=>{var r=n(7473);n(7634),t.exports=r},6509:(t,e,n)=>{var r=n(4227);n(7634),t.exports=r},5774:(t,e,n)=>{var r=n(2978);t.exports=r},2010:(t,e,n)=>{var r=n(2304);n(7634),t.exports=r},3726:(t,e,n)=>{var r=n(9567);n(7634),t.exports=r},9996:t=>{"use strict";var e=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===n}(t)}(t)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(t,e){return!1!==e.clone&&e.isMergeableObject(t)?s((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function i(t,e,n){return t.concat(e).map((function(t){return r(t,n)}))}function o(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function g(t,e){try{return e in t}catch(t){return!1}}function s(t,n,A){(A=A||{}).arrayMerge=A.arrayMerge||i,A.isMergeableObject=A.isMergeableObject||e,A.cloneUnlessOtherwiseSpecified=r;var C=Array.isArray(n);return C===Array.isArray(t)?C?A.arrayMerge(t,n,A):function(t,e,n){var i={};return n.isMergeableObject(t)&&o(t).forEach((function(e){i[e]=r(t[e],n)})),o(e).forEach((function(o){(function(t,e){return g(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(g(t,o)&&n.isMergeableObject(e[o])?i[o]=function(t,e){if(!e.customMerge)return s;var n=e.customMerge(t);return"function"==typeof n?n:s}(o,n)(t[o],e[o],n):i[o]=r(e[o],n))})),i}(t,n,A):r(n,A)}s.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return s(t,n,e)}),{})};var A=s;t.exports=A},645:(t,e)=>{e.read=function(t,e,n,r,i){var o,g,s=8*i-r-1,A=(1<>1,I=-7,a=n?i-1:0,u=n?-1:1,c=t[e+a];for(a+=u,o=c&(1<<-I)-1,c>>=-I,I+=s;I>0;o=256*o+t[e+a],a+=u,I-=8);for(g=o&(1<<-I)-1,o>>=-I,I+=r;I>0;g=256*g+t[e+a],a+=u,I-=8);if(0===o)o=1-C;else{if(o===A)return g?NaN:1/0*(c?-1:1);g+=Math.pow(2,r),o-=C}return(c?-1:1)*g*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var g,s,A,C=8*o-i-1,I=(1<>1,u=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,c=r?0:o-1,l=r?1:-1,h=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,g=I):(g=Math.floor(Math.log(e)/Math.LN2),e*(A=Math.pow(2,-g))<1&&(g--,A*=2),(e+=g+a>=1?u/A:u*Math.pow(2,1-a))*A>=2&&(g++,A/=2),g+a>=I?(s=0,g=I):g+a>=1?(s=(e*A-1)*Math.pow(2,i),g+=a):(s=e*Math.pow(2,a-1)*Math.pow(2,i),g=0));i>=8;t[n+c]=255&s,c+=l,s/=256,i-=8);for(g=g<0;t[n+c]=255&g,c+=l,g/=256,C-=8);t[n+c-l]|=128*h}},1401:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertImpersonatedUserIsEmpty=e.assertTxConfigIsEmpty=e.assertDatabaseIsEmpty=void 0;var r=n(758);e.assertTxConfigIsEmpty=function(t,e,n){if(void 0===e&&(e=function(){}),t&&!t.isEmpty()){var i=(0,r.newError)("Driver is connected to the database that does not support transaction configuration. Please upgrade to neo4j 3.5.0 or later in order to use this functionality");throw e(i.message),n.onError(i),i}},e.assertDatabaseIsEmpty=function(t,e,n){if(void 0===e&&(e=function(){}),t){var i=(0,r.newError)("Driver is connected to the database that does not support multiple databases. Please upgrade to neo4j 4.0.0 or later in order to use this functionality");throw e(i.message),n.onError(i),i}},e.assertImpersonatedUserIsEmpty=function(t,e,n){if(void 0===e&&(e=function(){}),t){var i=(0,r.newError)("Driver is connected to the database that does not support user impersonation. Please upgrade to neo4j 4.4.0 or later in order to use this functionality. Trying to impersonate "+t+".");throw e(i.message),n.onError(i),i}}},6055:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(1401),o=n(7687),g=r(n(4415)),s=n(1235),A=n(758),C=A.internal.bookmark.Bookmark,I=A.internal.constants,a=I.ACCESS_MODE_WRITE,u=I.BOLT_PROTOCOL_V1,c=(A.internal.logger.Logger,A.internal.txConfig.TxConfig),l=function(){function t(t,e,n,r,i,o){var g=void 0===n?{}:n,s=g.disableLosslessIntegers,A=g.useBigInt;void 0===r&&(r=function(){return null}),this._server=t||{},this._chunker=e,this._packer=this._createPacker(e),this._unpacker=this._createUnpacker(s,A),this._responseHandler=r(this),this._log=i,this._onProtocolError=o,this._fatalError=null}return Object.defineProperty(t.prototype,"version",{get:function(){return u},enumerable:!1,configurable:!0}),t.prototype.packer=function(){return this._packer},t.prototype.unpacker=function(){return this._unpacker},t.prototype.transformMetadata=function(t){return t},t.prototype.initialize=function(t){var e=this,n=void 0===t?{}:t,r=n.userAgent,i=n.authToken,o=n.onError,A=n.onComplete,C=new s.LoginObserver({onError:function(t){return e._onLoginError(t,o)},onCompleted:function(t){return e._onLoginCompleted(t,A)}});return this.write(g.default.init(r,i),C,!0),C},t.prototype.prepareToClose=function(){},t.prototype.beginTransaction=function(t){var e=void 0===t?{}:t,n=e.bookmark,r=e.txConfig,i=e.database,o=e.mode,g=e.impersonatedUser,s=e.beforeError,A=e.afterError,C=e.beforeComplete,I=e.afterComplete;return this.run("BEGIN",n?n.asBeginTransactionParameters():{},{bookmark:n,txConfig:r,database:i,mode:o,impersonatedUser:g,beforeError:s,afterError:A,beforeComplete:C,afterComplete:I,flush:!1})},t.prototype.commitTransaction=function(t){var e=void 0===t?{}:t,n=e.beforeError,r=e.afterError,i=e.beforeComplete,o=e.afterComplete;return this.run("COMMIT",{},{bookmark:C.empty(),txConfig:c.empty(),mode:a,beforeError:n,afterError:r,beforeComplete:i,afterComplete:o})},t.prototype.rollbackTransaction=function(t){var e=void 0===t?{}:t,n=e.beforeError,r=e.afterError,i=e.beforeComplete,o=e.afterComplete;return this.run("ROLLBACK",{},{bookmark:C.empty(),txConfig:c.empty(),mode:a,beforeError:n,afterError:r,beforeComplete:i,afterComplete:o})},t.prototype.run=function(t,e,n){var r=void 0===n?{}:n,o=(r.bookmark,r.txConfig),A=r.database,C=(r.mode,r.impersonatedUser),I=r.beforeKeys,a=r.afterKeys,u=r.beforeError,c=r.afterError,l=r.beforeComplete,h=r.afterComplete,d=r.flush,f=void 0===d||d,p=new s.ResultStreamObserver({server:this._server,beforeKeys:I,afterKeys:a,beforeError:u,afterError:c,beforeComplete:l,afterComplete:h});return(0,i.assertTxConfigIsEmpty)(o,this._onProtocolError,p),(0,i.assertDatabaseIsEmpty)(A,this._onProtocolError,p),(0,i.assertImpersonatedUserIsEmpty)(C,this._onProtocolError,p),this.write(g.default.run(t,e),p,!1),this.write(g.default.pullAll(),p,f),p},Object.defineProperty(t.prototype,"currentFailure",{get:function(){return this._responseHandler.currentFailure},enumerable:!1,configurable:!0}),t.prototype.reset=function(t){var e=void 0===t?{}:t,n=e.onError,r=e.onComplete,i=new s.ResetObserver({onProtocolError:this._onProtocolError,onError:n,onComplete:r});return this.write(g.default.reset(),i,!0),i},t.prototype._createPacker=function(t){return new o.v1.Packer(t)},t.prototype._createUnpacker=function(t,e){return new o.v1.Unpacker(t,e)},t.prototype.write=function(t,e,n){var r=this;this.queueObserverIfProtocolIsNotBroken(e)&&(this._log.isDebugEnabled()&&this._log.debug("C: "+t),this.packer().packStruct(t.signature,t.fields.map((function(t){return r.packer().packable(t)}))),this._chunker.messageBoundary(),n&&this._chunker.flush())},t.prototype.notifyFatalError=function(t){return this._fatalError=t,this._responseHandler._notifyErrorToObservers(t)},t.prototype.updateCurrentObserver=function(){return this._responseHandler._updateCurrentObserver()},t.prototype.hasOngoingObservableRequests=function(){return this._responseHandler.hasOngoingObservableRequests()},t.prototype.queueObserverIfProtocolIsNotBroken=function(t){return this.isBroken()?(this.notifyFatalErrorToObserver(t),!1):this._responseHandler._queueObserver(t)},t.prototype.isBroken=function(){return!!this._fatalError},t.prototype.notifyFatalErrorToObserver=function(t){t&&t.onError&&t.onError(this._fatalError)},t.prototype.resetFailure=function(){this._responseHandler._resetFailure()},t.prototype._onLoginCompleted=function(t,e){if(t){var n=t.server;this._server.version||(this._server.version=n)}e&&e(t)},t.prototype._onLoginError=function(t,e){this._onProtocolError(t.message),e&&e(t)},t}();e.default=l},661:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var g=o(n(6055)),s=o(n(7687)),A=n(758).internal.constants.BOLT_PROTOCOL_V2,C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._createPacker=function(t){return new s.default.Packer(t)},e.prototype._createUnpacker=function(t,e){return new s.default.Unpacker(t,e)},Object.defineProperty(e.prototype,"version",{get:function(){return A},enumerable:!1,configurable:!0}),e}(g.default);e.default=C},3619:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7078),i=n(758);function o(t,e){return{major:t,minor:e}}e.default=function(t){var e=this;return new Promise((function(n,g){var s=function(t){g(t)};t.onerror=s.bind(e),t._error&&s(t._error),t.onmessage=function(t){try{var e=function(t){var e=[t.readUInt8(),t.readUInt8(),t.readUInt8(),t.readUInt8()];if(72===e[0]&&84===e[1]&&84===e[2]&&80===e[3])throw(0,i.newError)("Server responded HTTP. Make sure you are not trying to connect to the http endpoint (HTTP defaults to port 7474 whereas BOLT defaults to port 7687)");return Number(e[3]+"."+e[2])}(t);n({protocolVersion:e,consumeRemainingBuffer:function(e){t.hasRemaining()&&e(t.readSlice(t.remaining()))}})}catch(t){g(t)}},t.write(function(t){if(t.length>4)throw(0,i.newError)("It should not have more than 4 versions of the protocol");var e=(0,r.alloc)(20);return e.writeInt32(1616949271),t.forEach((function(t){if(t instanceof Array){var n=t[0],r=n.major,i=(o=n.minor)-t[1].minor;e.writeInt32(i<<16|o<<8|r)}else{r=t.major;var o=t.minor;e.writeInt32(o<<8|r)}})),e.reset(),e}([[o(4,4),o(4,2)],o(4,1),o(4,0),o(3,0)]))}))}},7778:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RawRoutingTable=e.BoltProtocol=void 0;var g=o(n(4904)),s=o(n(5530)),A=o(n(7478)),C=o(n(1548));i(n(1235),e),e.BoltProtocol=A.default,e.RawRoutingTable=C.default,e.default={handshake:g.default,create:s.default}},4415:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(758),i=r.internal.constants,o=i.ACCESS_MODE_READ,g=i.FETCH_ALL,s=r.internal.util.assertString,A=function(){function t(t,e,n){this.signature=t,this.fields=e,this.toString=n}return t.init=function(e,n){return new t(1,[e,n],(function(){return"INIT "+e+" {...}"}))},t.run=function(e,n){return new t(16,[e,n],(function(){return"RUN "+e+" "+r.json.stringify(n)}))},t.pullAll=function(){return a},t.reset=function(){return u},t.hello=function(e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null);var o=Object.assign({user_agent:e},n);return r&&(o.routing=r),i&&(o.patch_bolt=i),new t(1,[o],(function(){return"HELLO {user_agent: '"+e+"', ...}"}))},t.begin=function(e){var n=void 0===e?{}:e,i=C(n.bookmark,n.txConfig,n.database,n.mode,n.impersonatedUser);return new t(17,[i],(function(){return"BEGIN "+r.json.stringify(i)}))},t.commit=function(){return c},t.rollback=function(){return l},t.runWithMetadata=function(e,n,i){var o=void 0===i?{}:i,g=C(o.bookmark,o.txConfig,o.database,o.mode,o.impersonatedUser);return new t(16,[e,n,g],(function(){return"RUN "+e+" "+r.json.stringify(n)+" "+r.json.stringify(g)}))},t.goodbye=function(){return h},t.pull=function(e){var n=void 0===e?{}:e,i=n.stmtId,o=void 0===i?-1:i,s=n.n,A=I(null==o?-1:o,(void 0===s?g:s)||g);return new t(63,[A],(function(){return"PULL "+r.json.stringify(A)}))},t.discard=function(e){var n=void 0===e?{}:e,i=n.stmtId,o=void 0===i?-1:i,s=n.n,A=I(null==o?-1:o,(void 0===s?g:s)||g);return new t(47,[A],(function(){return"DISCARD "+r.json.stringify(A)}))},t.route=function(e,n,i){return void 0===e&&(e={}),void 0===n&&(n=[]),void 0===i&&(i=null),new t(102,[e,n,i],(function(){return"ROUTE "+r.json.stringify(e)+" "+r.json.stringify(n)+" "+i}))},t.routeV4x4=function(e,n,i){void 0===e&&(e={}),void 0===n&&(n=[]),void 0===i&&(i={});var o={};return i.databaseName&&(o.db=i.databaseName),i.impersonatedUser&&(o.imp_user=i.impersonatedUser),new t(102,[e,n,o],(function(){return"ROUTE "+r.json.stringify(e)+" "+r.json.stringify(n)+" "+r.json.stringify(o)}))},t}();function C(t,e,n,r,i){var g={};return t.isEmpty()||(g.bookmarks=t.values()),e.timeout&&(g.tx_timeout=e.timeout),e.metadata&&(g.tx_metadata=e.metadata),n&&(g.db=s(n,"database")),i&&(g.imp_user=s(i,"impersonatedUser")),r===o&&(g.mode="r"),g}function I(t,e){var n={n:(0,r.int)(e)};return-1!==t&&(n.qid=(0,r.int)(t)),n}e.default=A;var a=new A(63,[],(function(){return"PULL_ALL"})),u=new A(15,[],(function(){return"RESET"})),c=new A(18,[],(function(){return"COMMIT"})),l=new A(19,[],(function(){return"ROLLBACK"})),h=new A(2,[],(function(){return"GOODBYE"}))},2385:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(758);function i(){}function o(t){return t}var g={onNext:i,onCompleted:i,onError:i},s=function(){function t(t){var e=void 0===t?{}:t,n=e.transformMetadata,r=e.log,g=e.observer;this._pendingObservers=[],this._log=r,this._transformMetadata=n||o,this._observer=Object.assign({onPendingObserversChange:i,onError:i,onFailure:i,onErrorApplyTransformation:o},g)}return Object.defineProperty(t.prototype,"currentFailure",{get:function(){return this._currentFailure},enumerable:!1,configurable:!0}),t.prototype.handleResponse=function(t){var e=t.fields[0];switch(t.signature){case 113:this._log.isDebugEnabled()&&this._log.debug("S: RECORD "+r.json.stringify(t)),this._currentObserver.onNext(e);break;case 112:this._log.isDebugEnabled()&&this._log.debug("S: SUCCESS "+r.json.stringify(t));try{var n=this._transformMetadata(e);this._currentObserver.onCompleted(n)}finally{this._updateCurrentObserver()}break;case 127:this._log.isDebugEnabled()&&this._log.debug("S: FAILURE "+r.json.stringify(t));try{var i=(0,r.newError)(e.message,e.code);this._currentFailure=this._observer.onErrorApplyTransformation(i),this._currentObserver.onError(this._currentFailure)}finally{this._updateCurrentObserver(),this._observer.onFailure(this._currentFailure)}break;case 126:this._log.isDebugEnabled()&&this._log.debug("S: IGNORED "+r.json.stringify(t));try{this._currentFailure&&this._currentObserver.onError?this._currentObserver.onError(this._currentFailure):this._currentObserver.onError&&this._currentObserver.onError((0,r.newError)("Ignored either because of an error or RESET"))}finally{this._updateCurrentObserver()}break;default:this._observer.onError((0,r.newError)("Unknown Bolt protocol message: "+t))}},t.prototype._updateCurrentObserver=function(){this._currentObserver=this._pendingObservers.shift(),this._observer.onPendingObserversChange(this._pendingObservers.length)},t.prototype._queueObserver=function(t){return(t=t||g).onCompleted=t.onCompleted||i,t.onError=t.onError||i,t.onNext=t.onNext||i,void 0===this._currentObserver?this._currentObserver=t:this._pendingObservers.push(t),this._observer.onPendingObserversChange(this._pendingObservers.length),!0},t.prototype._notifyErrorToObservers=function(t){for(this._currentObserver&&this._currentObserver.onError&&this._currentObserver.onError(t);this._pendingObservers.length>0;){var e=this._pendingObservers.shift();e&&e.onError&&e.onError(t)}},t.prototype.hasOngoingObservableRequests=function(){return null!=this._currentObserver||this._pendingObservers.length>0},t.prototype._resetFailure=function(){this._currentFailure=null},t}();e.default=s},1548:function(t,e){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.ofRecord=function(e){return null===e?t.ofNull():new s(e)},t.ofMessageResponse=function(e){return null===e?t.ofNull():new o(e)},t.ofNull=function(){return new g},Object.defineProperty(t.prototype,"ttl",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"db",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"servers",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNull",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),t}();e.default=i;var o=function(t){function e(e){var n=t.call(this)||this;return n._response=e,n}return r(e,t),Object.defineProperty(e.prototype,"ttl",{get:function(){return this._response.rt.ttl},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"servers",{get:function(){return this._response.rt.servers},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"db",{get:function(){return this._response.rt.db},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isNull",{get:function(){return null===this._response},enumerable:!1,configurable:!0}),e}(i),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),Object.defineProperty(e.prototype,"isNull",{get:function(){return!0},enumerable:!1,configurable:!0}),e}(i),s=function(t){function e(e){var n=t.call(this)||this;return n._record=e,n}return r(e,t),Object.defineProperty(e.prototype,"ttl",{get:function(){return this._record.get("ttl")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"servers",{get:function(){return this._record.get("servers")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"db",{get:function(){return this._record.has("db")?this._record.get("db"):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isNull",{get:function(){return null===this._record},enumerable:!1,configurable:!0}),e}(i)},1235:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProcedureRouteObserver=e.RouteObserver=e.CompletedObserver=e.FailedObserver=e.ResetObserver=e.LoginObserver=e.ResultStreamObserver=e.StreamObserver=void 0;var g=n(758),s=o(n(1548)),A=g.internal.constants.FETCH_ALL,C=g.error.PROTOCOL_ERROR,I=function(){function t(){}return t.prototype.onNext=function(t){},t.prototype.onError=function(t){},t.prototype.onCompleted=function(t){},t}();e.StreamObserver=I;var a=function(t){function e(e){var n=void 0===e?{}:e,r=n.reactive,i=void 0!==r&&r,o=n.moreFunction,g=n.discardFunction,s=n.fetchSize,C=void 0===s?A:s,I=n.beforeError,a=n.afterError,u=n.beforeKeys,c=n.afterKeys,l=n.beforeComplete,h=n.afterComplete,d=n.server,f=t.call(this)||this;return f._fieldKeys=null,f._fieldLookup=null,f._head=null,f._queuedRecords=[],f._tail=null,f._error=null,f._observers=[],f._meta={},f._server=d,f._beforeError=I,f._afterError=a,f._beforeKeys=u,f._afterKeys=c,f._beforeComplete=l,f._afterComplete=h,f._queryId=null,f._moreFunction=o,f._discardFunction=g,f._discard=!1,f._fetchSize=C,f._setState(i?p.READY:p.READY_STREAMING),f._setupAuoPull(C),f}return i(e,t),e.prototype.onNext=function(t){var e=new g.Record(this._fieldKeys,t,this._fieldLookup);this._observers.some((function(t){return t.onNext}))?this._observers.forEach((function(t){t.onNext&&t.onNext(e)})):(this._queuedRecords.push(e),this._queuedRecords.length>this._highRecordWatermark&&(this._autoPull=!1))},e.prototype.onCompleted=function(t){this._state.onSuccess(this,t)},e.prototype.onError=function(t){this._state.onError(this,t)},e.prototype.cancel=function(){this._discard=!0},e.prototype.prepareToHandleSingleResponse=function(){this._head=[],this._fieldKeys=[],this._setState(p.STREAMING)},e.prototype.markCompleted=function(){this._head=[],this._fieldKeys=[],this._tail={},this._setState(p.SUCCEEDED)},e.prototype.subscribe=function(t){if(this._error)t.onError(this._error);else{if(this._head&&t.onKeys&&t.onKeys(this._head),this._queuedRecords.length>0&&t.onNext)for(var e=0;e0){this._fieldKeys=t.fields;for(var r=0;r>8),this.putUInt8(t+1,255&e)},t.prototype.putUInt16=function(t,e){this.putUInt8(t,e>>8&255),this.putUInt8(t+1,255&e)},t.prototype.putInt32=function(t,e){this.putInt8(t,e>>24),this.putUInt8(t+1,e>>16&255),this.putUInt8(t+2,e>>8&255),this.putUInt8(t+3,255&e)},t.prototype.putUInt32=function(t,e){this.putUInt8(t,e>>24&255),this.putUInt8(t+1,e>>16&255),this.putUInt8(t+2,e>>8&255),this.putUInt8(t+3,255&e)},t.prototype.putInt64=function(t,e){this.putInt8(t,e>>48),this.putUInt8(t+1,e>>42&255),this.putUInt8(t+2,e>>36&255),this.putUInt8(t+3,e>>30&255),this.putUInt8(t+4,e>>24&255),this.putUInt8(t+5,e>>16&255),this.putUInt8(t+6,e>>8&255),this.putUInt8(t+7,255&e)},t.prototype.putBytes=function(t,e){for(var n=0,r=e.remaining();n0},t.prototype.reset=function(){this.position=0},t.prototype.toString=function(){return this.constructor.name+"( position="+this.position+" )\n "+this.toHex()},t.prototype.toHex=function(){for(var t="",e=0;e=0}(e);return function(t,e,n){null===n||(t&&!n?console.warn("Neo4j driver is configured to use secure WebSocket on a HTTP web page. WebSockets might not work in a mixed content environment. Please consider configuring driver to not use encryption."):e&&n&&console.warn("Neo4j driver is configured to use insecure WebSocket on a HTTPS web page. WebSockets might not work in a mixed content environment. Please consider configuring driver to use encryption."))}(n,r,g),r?{scheme:"ws",error:null}:g?{scheme:"wss",error:null}:n?i&&"TRUST_SYSTEM_CA_SIGNED_CERTIFICATES"!==i?{scheme:null,error:(0,o.newError)("The browser version of this driver only supports one trust strategy, 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'. "+i+' is not supported. Please either use TRUST_SYSTEM_CA_SIGNED_CERTIFICATES or disable encryption by setting `encrypted:"'+s+'"` in the driver configuration.')}:{scheme:"wss",error:null}:{scheme:"ws",error:null}}(t,e),g=r.scheme,C=r.error;if(C)this._error=C;else{this._ws=function(t,e,n){var r=t+"://"+e.asHostPort();try{return n(r)}catch(r){if(function(t,e){return"SyntaxError"===t.name&&("["===(n=e.asHostPort()).charAt(0)&&-1!==n.indexOf("]"));var n}(r,e)){var i=function(t,e){return t+"://"+e.host().replace(new RegExp(":","g"),"-").replace("%","s")+".ipv6-literal.net:"+e.port()}(t,e);return n(i)}throw r}}(g,t.address,n),this._ws.binaryType="arraybuffer";var a=this;this._ws.onclose=function(t){t&&!t.wasClean&&a._handleConnectionError(),a._open=!1},this._ws.onopen=function(){a._clearConnectionTimeout();var t=a._pending;a._pending=null;for(var e=0;e{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(758),i=r.internal.util,o=i.ENCRYPTION_OFF,g=i.ENCRYPTION_ON,s=r.error.SERVICE_UNAVAILABLE,A=[null,void 0,!0,!1,g,o],C=[null,void 0,"TRUST_ALL_CERTIFICATES","TRUST_CUSTOM_CA_SIGNED_CERTIFICATES","TRUST_SYSTEM_CA_SIGNED_CERTIFICATES"];e.default=function(t,e,n){this.address=t,this.encrypted=function(t){var e=t.encrypted;if(-1===A.indexOf(e))throw(0,r.newError)("Illegal value of the encrypted setting "+e+". Expected one of "+A);return e}(e),this.trust=function(t){var e=t.trust;if(-1===C.indexOf(e))throw(0,r.newError)("Illegal value of the trust setting "+e+". Expected one of "+C);return e}(e),this.trustedCertificates=function(t){return t.trustedCertificates||[]}(e),this.knownHostsPath=function(t){return t.knownHosts||null}(e),this.connectionErrorCode=n||s,this.connectionTimeout=function(t){var e=parseInt(t.connectionTimeout,10);return 0===e||e&&e<0?null:e||3e4}(e)}},4985:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Dechunker=e.Chunker=void 0;var g=o(n(8364)),s=n(1731),A=o(n(4603)),C=function(t){function e(e,n){var r=t.call(this,0)||this;return r._bufferSize=n||1400,r._ch=e,r._buffer=(0,s.alloc)(r._bufferSize),r._currentChunkStart=0,r._chunkOpen=!1,r}return i(e,t),e.prototype.putUInt8=function(t,e){this._ensure(1),this._buffer.writeUInt8(e)},e.prototype.putInt8=function(t,e){this._ensure(1),this._buffer.writeInt8(e)},e.prototype.putFloat64=function(t,e){this._ensure(8),this._buffer.writeFloat64(e)},e.prototype.putBytes=function(t,e){for(;e.remaining()>0;)this._ensure(1),this._buffer.remaining()>e.remaining()?this._buffer.writeBytes(e):this._buffer.writeBytes(e.readSlice(this._buffer.remaining()));return this},e.prototype.flush=function(){if(this._buffer.position>0){this._closeChunkIfOpen();var t=this._buffer;this._buffer=null,this._ch.write(t.getSlice(0,t.position)),this._buffer=(0,s.alloc)(this._bufferSize),this._chunkOpen=!1}return this},e.prototype.messageBoundary=function(){this._closeChunkIfOpen(),this._buffer.remaining()<2&&this.flush(),this._buffer.writeInt16(0)},e.prototype._ensure=function(t){var e=this._chunkOpen?t:t+2;this._buffer.remaining()=2?this._onHeader(t.readUInt16()):(this._partialChunkHeader=t.readUInt8()<<8,this.IN_HEADER)},t.prototype.IN_HEADER=function(t){return this._onHeader(65535&(this._partialChunkHeader|t.readUInt8()))},t.prototype.IN_CHUNK=function(t){return this._chunkSize<=t.remaining()?(this._currentMessage.push(t.readSlice(this._chunkSize)),this.AWAITING_CHUNK):(this._chunkSize-=t.remaining(),this._currentMessage.push(t.readSlice(t.remaining())),this.IN_CHUNK)},t.prototype.CLOSED=function(t){},t.prototype._onHeader=function(t){if(0===t){var e=void 0;switch(this._currentMessage.length){case 0:return this.AWAITING_CHUNK;case 1:e=this._currentMessage[0];break;default:e=new A.default(this._currentMessage)}return this._currentMessage=[],this.onmessage(e),this.AWAITING_CHUNK}return this._chunkSize=t,this.IN_CHUNK},t.prototype.write=function(t){for(;t.hasRemaining();)this._state=this._state(t)},t}();e.Dechunker=I},4603:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(7268),g=n(1731),s=function(t){function e(e){for(var n=this,r=0,i=0;i=n.length))return n.getUInt8(t);t-=n.length}},e.prototype.getInt8=function(t){for(var e=0;e=n.length))return n.getInt8(t);t-=n.length}},e.prototype.getFloat64=function(t){for(var e=(0,g.alloc)(8),n=0;n<8;n++)e.putUInt8(n,this.getUInt8(t+n));return e.getFloat64(0)},e}(o.BaseBuffer);e.default=s},7078:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.utf8=e.alloc=e.ChannelConfig=void 0,i(n(2530),e),i(n(4985),e);var g=n(3190);Object.defineProperty(e,"ChannelConfig",{enumerable:!0,get:function(){return o(g).default}});var s=n(1731);Object.defineProperty(e,"alloc",{enumerable:!0,get:function(){return s.alloc}});var A=n(2969);Object.defineProperty(e,"utf8",{enumerable:!0,get:function(){return o(A).default}})},2969:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(1731)),o=n(758),g=r(n(8764)),s=new(n(2553).StringDecoder)("utf8");e.default={encode:function(t){return new i.default(function(t){return"function"==typeof g.default.Buffer.from?g.default.Buffer.from(t,"utf8"):new g.default.Buffer(t,"utf8")}(t))},decode:function(t,e){if(Object.prototype.hasOwnProperty.call(t,"_buffer"))return function(t,e){var n=t.position,r=n+e;return t.position=Math.min(r,t.length),t._buffer.toString("utf8",n,r)}(t,e);if(Object.prototype.hasOwnProperty.call(t,"_buffers"))return function(t,e){return function(t,e,n,r){var i=e,o=t.position;return t._updatePos(Math.min(e,t.length-o)),t._buffers.reduce((function(t,e){if(i<=0)return t;if(o>=e.length)return o-=e.length,"";e._updatePos(o-e.position);var n=Math.min(e.length-o,i),r=e.readSlice(n);return e._updatePos(n),i=Math.max(i-r.length,0),o=0,t+function(t){return s.write(t._buffer)}(r)}),"")+s.end()}(t,e)}(t,e);throw(0,o.newError)("Don't know how to decode strings from '"+t+"'")}}},2358:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function g(t){try{A(r.next(t))}catch(t){o(t)}}function s(t){try{A(r.throw(t))}catch(t){o(t)}}function A(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(g,s)}A((r=r.apply(t,e||[])).next())}))},g=this&&this.__generator||function(t,e){var n,r,i,o,g={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,r=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!((i=(i=g.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){g=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=c}))];case 1:return[2,t.sent()]}}))}))},e.prototype.supportsTransactionConfig=function(){return o(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this._hasProtocolVersion((function(t){return t>=u}))];case 1:return[2,t.sent()]}}))}))},e.prototype.supportsUserImpersonation=function(){return o(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this._hasProtocolVersion((function(t){return t>=l}))];case 1:return[2,t.sent()]}}))}))},e}(A.default));e.default=d},6779:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),g=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return g(e,t),e},A=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function g(t){try{A(r.next(t))}catch(t){o(t)}}function s(t){try{A(r.throw(t))}catch(t){o(t)}}function A(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(g,s)}A((r=r.apply(t,e||[])).next())}))},C=this&&this.__generator||function(t,e){var n,r,i,o,g={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,r=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!((i=(i=g.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){g=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){g=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),g=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)g.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return g},c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=n(758),h=A(n(4066)),d=n(7078),f=c(n(9070)),p=c(n(6779)),v=n(6836),y=n(870),b=l.error.SERVICE_UNAVAILABLE,m=l.error.SESSION_EXPIRED,w=l.internal.bookmark.Bookmark,_=l.internal.constants,x=_.ACCESS_MODE_READ,E=_.ACCESS_MODE_WRITE,O=_.BOLT_PROTOCOL_V3,k=_.BOLT_PROTOCOL_V4_0,T=_.BOLT_PROTOCOL_V4_4,S=null,P=(0,l.int)(3e4),N=function(t){function e(e){var n=e.id,r=e.address,i=e.routingContext,g=e.hostNameResolver,s=e.config,A=e.log,C=e.userAgent,I=e.authToken,a=e.routingTablePurgeDelay,u=t.call(this,{id:n,config:s,log:A,userAgent:C,authToken:I},(function(t){return(0,y.createChannelConnection)(t,u._config,u._createConnectionErrorHandler(),u._log,u._routingContext)}))||this;return u._routingContext=o(o({},i),{address:r.toString()}),u._seedRouter=r,u._rediscovery=new h.default(u._routingContext),u._loadBalancingStrategy=new v.LeastConnectedLoadBalancingStrategy(u._connectionPool),u._hostNameResolver=g,u._dnsResolver=new d.HostNameResolver,u._log=A,u._useSeedRouter=!0,u._routingTableRegistry=new R(a?(0,l.int)(a):P),u}return i(e,t),e.prototype._createConnectionErrorHandler=function(){return new y.ConnectionErrorHandler(m)},e.prototype._handleUnavailability=function(t,e,n){return this._log.warn("Routing driver "+this._id+" will forget "+e+" for database '"+n+"' because of an error "+t.code+" '"+t.message+"'"),this.forget(e,n||S),t},e.prototype._handleAuthorizationExpired=function(t,e,n){return this._log.warn("Routing driver "+this._id+" will close connections to "+e+" for database '"+n+"' because of an error "+t.code+" '"+t.message+"'"),this._connectionPool.purge(e).catch((function(){})),t},e.prototype._handleWriteFailure=function(t,e,n){return this._log.warn("Routing driver "+this._id+" will forget writer "+e+" for database '"+n+"' because of an error "+t.code+" '"+t.message+"'"),this.forgetWriter(e,n||S),(0,l.newError)("No longer possible to write to server at "+e,m)},e.prototype.acquireConnection=function(t){var e=void 0===t?{}:t,n=e.accessMode,r=e.database,i=e.bookmarks,o=e.impersonatedUser,g=e.onDatabaseNameResolved;return C(this,void 0,void 0,(function(){var t,e,s,A,C,a,u,c=this;return I(this,(function(I){switch(I.label){case 0:return s={database:r||S},A=new y.ConnectionErrorHandler(m,(function(t,e){return c._handleUnavailability(t,e,s.database)}),(function(t,e){return c._handleWriteFailure(t,e,s.database)}),(function(t,e){return c._handleAuthorizationExpired(t,e,s.database)})),[4,this._freshRoutingTable({accessMode:n,database:s.database,bookmark:i,impersonatedUser:o,onDatabaseNameResolved:function(t){s.database=s.database||t,g&&g(t)}})];case 1:if(C=I.sent(),n===x)e=this._loadBalancingStrategy.selectReader(C.readers),t="read";else{if(n!==E)throw(0,l.newError)("Illegal mode "+n);e=this._loadBalancingStrategy.selectWriter(C.writers),t="write"}if(!e)throw(0,l.newError)("Failed to obtain connection towards "+t+" server. Known routing table is: "+C,m);I.label=2;case 2:return I.trys.push([2,4,,5]),[4,this._acquireConnectionToServer(e,t,C)];case 3:return a=I.sent(),[2,new y.DelegateConnection(a,A)];case 4:throw u=I.sent(),A.handleAndTransformError(u,e);case 5:return[2]}}))}))},e.prototype._hasProtocolVersion=function(t){return C(this,void 0,void 0,(function(){var e,n,r,i,o,g;return I(this,(function(s){switch(s.label){case 0:return[4,this._resolveSeedRouter(this._seedRouter)];case 1:e=s.sent(),r=0,s.label=2;case 2:if(!(r=k}))];case 1:return[2,t.sent()]}}))}))},e.prototype.supportsTransactionConfig=function(){return C(this,void 0,void 0,(function(){return I(this,(function(t){switch(t.label){case 0:return[4,this._hasProtocolVersion((function(t){return t>=O}))];case 1:return[2,t.sent()]}}))}))},e.prototype.supportsUserImpersonation=function(){return C(this,void 0,void 0,(function(){return I(this,(function(t){switch(t.label){case 0:return[4,this._hasProtocolVersion((function(t){return t>=T}))];case 1:return[2,t.sent()]}}))}))},e.prototype.forget=function(t,e){this._routingTableRegistry.apply(e,{applyWhenExists:function(e){return e.forget(t)}}),this._connectionPool.purge(t).catch((function(){}))},e.prototype.forgetWriter=function(t,e){this._routingTableRegistry.apply(e,{applyWhenExists:function(e){return e.forgetWriter(t)}})},e.prototype._acquireConnectionToServer=function(t,e,n){return this._connectionPool.acquire(t)},e.prototype._freshRoutingTable=function(t){var e=void 0===t?{}:t,n=e.accessMode,r=e.database,i=e.bookmark,o=e.impersonatedUser,g=e.onDatabaseNameResolved,s=this._routingTableRegistry.get(r,(function(){return new h.RoutingTable({database:r})}));return s.isStaleFor(n)?(this._log.info('Routing table is stale for database: "'+r+'" and access mode: "'+n+'": '+s),this._refreshRoutingTable(s,i,o,g)):s},e.prototype._refreshRoutingTable=function(t,e,n,r){var i=t.routers;return this._useSeedRouter?this._fetchRoutingTableFromSeedRouterFallbackToKnownRouters(i,t,e,n,r):this._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter(i,t,e,n,r)},e.prototype._fetchRoutingTableFromSeedRouterFallbackToKnownRouters=function(t,e,n,r,i){return C(this,void 0,void 0,(function(){var o,g;return I(this,(function(s){switch(s.label){case 0:return o=[],[4,this._fetchRoutingTableUsingSeedRouter(o,this._seedRouter,e,n,r)];case 1:return(g=s.sent())?(this._useSeedRouter=!1,[3,4]):[3,2];case 2:return[4,this._fetchRoutingTableUsingKnownRouters(t,e,n,r)];case 3:g=s.sent(),s.label=4;case 4:return[4,this._applyRoutingTableIfPossible(e,g,i)];case 5:return[2,s.sent()]}}))}))},e.prototype._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter=function(t,e,n,r,i){return C(this,void 0,void 0,(function(){var o;return I(this,(function(g){switch(g.label){case 0:return[4,this._fetchRoutingTableUsingKnownRouters(t,e,n,r)];case 1:return(o=g.sent())?[3,3]:[4,this._fetchRoutingTableUsingSeedRouter(t,this._seedRouter,e,n,r)];case 2:o=g.sent(),g.label=3;case 3:return[4,this._applyRoutingTableIfPossible(e,o,i)];case 4:return[2,g.sent()]}}))}))},e.prototype._fetchRoutingTableUsingKnownRouters=function(t,n,r,i){return C(this,void 0,void 0,(function(){var o,g;return I(this,(function(s){switch(s.label){case 0:return[4,this._fetchRoutingTable(t,n,r,i)];case 1:return(o=s.sent())?[2,o]:(g=t.length-1,e._forgetRouter(n,t,g),[2,null])}}))}))},e.prototype._fetchRoutingTableUsingSeedRouter=function(t,e,n,r,i){return C(this,void 0,void 0,(function(){var o,g;return I(this,(function(s){switch(s.label){case 0:return[4,this._resolveSeedRouter(e)];case 1:return o=s.sent(),g=o.filter((function(e){return t.indexOf(e)<0})),[4,this._fetchRoutingTable(g,n,r,i)];case 2:return[2,s.sent()]}}))}))},e.prototype._resolveSeedRouter=function(t){return C(this,void 0,void 0,(function(){var e,n,r=this;return I(this,(function(i){switch(i.label){case 0:return[4,this._hostNameResolver.resolve(t)];case 1:return e=i.sent(),[4,Promise.all(e.map((function(t){return r._dnsResolver.resolve(t)})))];case 2:return n=i.sent(),[2,[].concat.apply([],n)]}}))}))},e.prototype._fetchRoutingTable=function(t,n,r,i){var o=this;return t.reduce((function(g,s,A){return C(o,void 0,void 0,(function(){var o,C,a,u;return I(this,(function(I){switch(I.label){case 0:return[4,g];case 1:return(o=I.sent())?[2,o]:(C=A-1,e._forgetRouter(n,t,C),[4,this._createSessionForRediscovery(s,r,i)]);case 2:if(!(a=I.sent()))return[3,8];I.label=3;case 3:return I.trys.push([3,5,6,7]),[4,this._rediscovery.lookupRoutingTableOnRouter(a,n.database,s,i)];case 4:return[2,I.sent()];case 5:if((u=I.sent())&&"Neo.ClientError.Database.DatabaseNotFound"===u.code)throw u;return this._log.warn("unable to fetch routing table because of an error "+u),[2,null];case 6:return a.close(),[7];case 7:return[3,9];case 8:return[2,null];case 9:return[2]}}))}))}),Promise.resolve(null))},e.prototype._createSessionForRediscovery=function(t,e,n){return C(this,void 0,void 0,(function(){var r,i,o,g,s=this;return I(this,(function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,this._connectionPool.acquire(t)];case 1:return r=A.sent(),i=y.ConnectionErrorHandler.create({errorCode:m,handleAuthorizationExpired:function(t,e){return s._handleAuthorizationExpired(t,e)}}),o=new f.default(new y.DelegateConnection(r,i)),r.protocol().version<4?[2,new l.Session({mode:E,bookmark:w.empty(),connectionProvider:o})]:[2,new l.Session({mode:x,database:"system",bookmark:e,connectionProvider:o,impersonatedUser:n})];case 2:if((g=A.sent())&&"Neo.ClientError.Security.Unauthorized"===g.code)throw g;return[2,null];case 3:return[2]}}))}))},e.prototype._applyRoutingTableIfPossible=function(t,e,n){return C(this,void 0,void 0,(function(){return I(this,(function(r){switch(r.label){case 0:if(!e)throw(0,l.newError)("Could not perform discovery. No routing servers available. Known routing table: "+t,b);return 0===e.writers.length&&(this._useSeedRouter=!0),[4,this._updateRoutingTable(e,n)];case 1:return r.sent(),[2,e]}}))}))},e.prototype._updateRoutingTable=function(t,e){return C(this,void 0,void 0,(function(){return I(this,(function(n){switch(n.label){case 0:return[4,this._connectionPool.keepAll(t.allServers())];case 1:return n.sent(),this._routingTableRegistry.removeExpired(),this._routingTableRegistry.register(t),e(t.database),this._log.info("Updated routing table "+t),[2]}}))}))},e._forgetRouter=function(t,e,n){var r=e[n];t&&r&&t.forgetRouter(r)},e}(p.default);e.default=N;var R=function(){function t(t){this._tables=new Map,this._routingTablePurgeDelay=t}return t.prototype.register=function(t){return this._tables.set(t.database,t),this},t.prototype.apply=function(t,e){var n=void 0===e?{}:e,r=n.applyWhenExists,i=n.applyWhenDontExists,o=void 0===i?function(){}:i;return this._tables.has(t)?r(this._tables.get(t)):"string"==typeof t||null===t?o():this._forEach(r),this},t.prototype.get=function(t,e){return this._tables.has(t)?this._tables.get(t):"function"==typeof e?e():e},t.prototype.removeExpired=function(){var t=this;return this._removeIf((function(e){return e.isExpiredFor(t._routingTablePurgeDelay)}))},t.prototype._forEach=function(t){var e,n;try{for(var r=a(this._tables),i=r.next();!i.done;i=r.next())t(u(i.value,2)[1])}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return this},t.prototype._remove=function(t){return this._tables.delete(t),this},t.prototype._removeIf=function(t){var e,n;try{for(var r=a(this._tables),i=r.next();!i.done;i=r.next()){var o=u(i.value,2),g=o[0];t(o[1])&&this._remove(g)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return this},t}()},9070:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=t.call(this)||this;return n._connection=e,n}return i(e,t),e.prototype.acquireConnection=function(t){var e=void 0===t?{}:t,n=(e.accessMode,e.database,e.bookmarks,this._connection);return this._connection=null,Promise.resolve(n)},e}(n(758).ConnectionProvider);e.default=o},1677:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RoutingConnectionProvider=e.DirectConnectionProvider=e.PooledConnectionProvider=e.SingleConnectionProvider=void 0;var i=n(9070);Object.defineProperty(e,"SingleConnectionProvider",{enumerable:!0,get:function(){return r(i).default}});var o=n(6779);Object.defineProperty(e,"PooledConnectionProvider",{enumerable:!0,get:function(){return r(o).default}});var g=n(2358);Object.defineProperty(e,"DirectConnectionProvider",{enumerable:!0,get:function(){return r(g).default}});var s=n(9223);Object.defineProperty(e,"RoutingConnectionProvider",{enumerable:!0,get:function(){return r(s).default}})},7441:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function g(t){try{A(r.next(t))}catch(t){o(t)}}function s(t){try{A(r.throw(t))}catch(t){o(t)}}function A(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(g,s)}A((r=r.apply(t,e||[])).next())}))},g=this&&this.__generator||function(t,e){var n,r,i,o,g={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,r=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!((i=(i=g.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){g=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?n._ch.setupReceiveTimeout(1e3*s):n._log.info("Server located at "+n._address+" supplied an invalid connection receive timeout value ("+s+"). Please, verify the server configuration and status because this can be the symptom of a bigger issue.")}}}i(r)}})}))},e.prototype.protocol=function(){return this._protocol},Object.defineProperty(e.prototype,"address",{get:function(){return this._address},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._server.version},set:function(t){this._server.version=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"server",{get:function(){return this._server},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"logger",{get:function(){return this._log},enumerable:!1,configurable:!0}),e.prototype._handleFatalError=function(t){this._isBroken=!0,this._error=this.handleAndTransformError(this._protocol.currentFailure||t,this._address),this._log.isErrorEnabled()&&this._log.error("experienced a fatal error caused by "+this._error+" ("+C.json.stringify(this._error)+")"),this._protocol.notifyFatalError(this._error)},e.prototype._queueObserver=function(t){return this._protocol.queueObserverIfProtocolIsNotBroken(t)},e.prototype.hasOngoingObservableRequests=function(){return this._protocol.hasOngoingObservableRequests()},e.prototype.resetAndFlush=function(){var t=this;return new Promise((function(e,n){t._protocol.reset({onError:function(e){if(t._isBroken)n(e);else{var r=t._handleProtocolError("Received FAILURE as a response for RESET: "+e);n(r)}},onComplete:function(){e()}})}))},e.prototype._resetOnFailure=function(){var t=this;this.isOpen()&&this._protocol.reset({onError:function(){t._protocol.resetFailure()},onComplete:function(){t._protocol.resetFailure()}})},e.prototype._updateCurrentObserver=function(){this._protocol.updateCurrentObserver()},e.prototype.isOpen=function(){return!this._isBroken&&this._ch._open},e.prototype._handleOngoingRequestsNumberChange=function(t){0===t?this._ch.stopReceiveTimeout():this._ch.startReceiveTimeout()},e.prototype.close=function(){return o(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return this._log.isDebugEnabled()&&this._log.debug("closing"),this._protocol&&this.isOpen()&&this._protocol.prepareToClose(),[4,this._ch.close()];case 1:return t.sent(),this._log.isDebugEnabled()&&this._log.debug("closed"),[2]}}))}))},e.prototype.toString=function(){return"Connection ["+this.id+"]["+(this.databaseId||"")+"]"},e.prototype._handleProtocolError=function(t){this._protocol.resetFailure(),this._updateCurrentObserver();var e=(0,C.newError)(t,u);return this._handleFatalError(e),e},e}(I.default);e.default=h},3124:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var g=function(t){function e(e,n){var r=t.call(this,n)||this;return n&&(r._originalErrorHandler=e._errorHandler,e._errorHandler=r._errorHandler),r._delegate=e,r}return i(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"databaseId",{get:function(){return this._delegate.databaseId},set:function(t){this._delegate.databaseId=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"server",{get:function(){return this._delegate.server},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"address",{get:function(){return this._delegate.address},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._delegate.version},set:function(t){this._delegate.version=t},enumerable:!1,configurable:!0}),e.prototype.isOpen=function(){return this._delegate.isOpen()},e.prototype.protocol=function(){return this._delegate.protocol()},e.prototype.connect=function(t,e){return this._delegate.connect(t,e)},e.prototype.write=function(t,e,n){return this._delegate.write(t,e,n)},e.prototype.resetAndFlush=function(){return this._delegate.resetAndFlush()},e.prototype.close=function(){return this._delegate.close()},e.prototype._release=function(){return this._originalErrorHandler&&(this._delegate._errorHandler=this._originalErrorHandler),this._delegate._release()},e}(o(n(7075)).default);e.default=g},6370:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(758),i=r.error.SERVICE_UNAVAILABLE,o=r.error.SESSION_EXPIRED,g=function(){function t(t,e,n,r){this._errorCode=t,this._handleUnavailability=e||s,this._handleWriteFailure=n||s,this._handleAuthorizationExpired=r||s}return t.create=function(e){return new t(e.errorCode,e.handleUnavailability,e.handleWriteFailure,e.handleAuthorizationExpired)},t.prototype.errorCode=function(){return this._errorCode},t.prototype.handleAndTransformError=function(t,e){return function(t){return t&&("Neo.ClientError.Security.AuthorizationExpired"===t.code||"Neo.ClientError.Security.TokenExpired"===t.code)}(t)?this._handleAuthorizationExpired(t,e):function(t){return!!t&&(t.code===o||t.code===i||"Neo.TransientError.General.DatabaseUnavailable"===t.code)}(t)?this._handleUnavailability(t,e):function(t){return!!t&&("Neo.ClientError.Cluster.NotALeader"===t.code||"Neo.ClientError.General.ForbiddenOnReadOnlyDatabase"===t.code)}(t)?this._handleWriteFailure(t,e):t},t}();function s(t){return t}e.default=g},7075:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this._errorHandler=t}return Object.defineProperty(t.prototype,"id",{get:function(){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"databaseId",{get:function(){throw new Error("not implemented")},set:function(t){throw new Error("not implemented")},enumerable:!1,configurable:!0}),t.prototype.isOpen=function(){throw new Error("not implemented")},t.prototype.protocol=function(){throw new Error("not implemented")},Object.defineProperty(t.prototype,"address",{get:function(){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){throw new Error("not implemented")},set:function(t){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"server",{get:function(){throw new Error("not implemented")},enumerable:!1,configurable:!0}),t.prototype.connect=function(t,e){throw new Error("not implemented")},t.prototype.write=function(t,e,n){throw new Error("not implemented")},t.prototype.resetAndFlush=function(){throw new Error("not implemented")},t.prototype.close=function(){throw new Error("not implemented")},t.prototype.handleAndTransformError=function(t,e){return this._errorHandler?this._errorHandler.handleAndTransformError(t,e):t},t}();e.default=n},870:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},g=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.createChannelConnection=e.ConnectionErrorHandler=e.DelegateConnection=e.ChannelConnection=e.Connection=void 0;var s=g(n(7075));e.Connection=s.default;var A=o(n(7441));e.ChannelConnection=A.default,Object.defineProperty(e,"createChannelConnection",{enumerable:!0,get:function(){return A.createChannelConnection}});var C=g(n(3124));e.DelegateConnection=C.default;var I=g(n(6370));e.ConnectionErrorHandler=I.default,e.default=s.default},297:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},g=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.pool=e.packstream=e.channel=e.buf=e.bolt=e.loadBalancing=void 0,e.loadBalancing=o(n(6836)),e.bolt=o(n(7778)),e.buf=o(n(7268)),e.channel=o(n(7078)),e.packstream=o(n(7687)),e.pool=o(n(2043)),g(n(1677),e)},6836:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.LeastConnectedLoadBalancingStrategy=e.LoadBalancingStrategy=void 0;var i=r(n(7986));e.LoadBalancingStrategy=i.default;var o=r(n(7865));e.LeastConnectedLoadBalancingStrategy=o.default,e.default=o.default},7865:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var g=o(n(226)),s=function(t){function e(e){var n=t.call(this)||this;return n._readersIndex=new g.default,n._writersIndex=new g.default,n._connectionPool=e,n}return i(e,t),e.prototype.selectReader=function(t){return this._select(t,this._readersIndex)},e.prototype.selectWriter=function(t){return this._select(t,this._writersIndex)},e.prototype._select=function(t,e){var n=t.length;if(0===n)return null;var r=e.next(n),i=r,o=null,g=Number.MAX_SAFE_INTEGER;do{var s=t[i],A=this._connectionPool.activeResourceCount(s);A{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.prototype.selectReader=function(t){throw new Error("Abstract function")},t.prototype.selectWriter=function(t){throw new Error("Abstract function")},t}();e.default=n},226:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this._offset=t||0}return t.prototype.next=function(t){if(0===t)return-1;var e=this._offset;return this._offset+=1,this._offset===Number.MAX_SAFE_INTEGER&&(this._offset=0),e%t},t}();e.default=n},7687:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.v2=e.v1=void 0;var g=o(n(843));e.v1=g;var s=o(n(6303));e.v2=s,e.default=s},5637:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packDateTime=e.unpackDateTimeWithZoneId=e.unpackDateTimeWithZoneOffset=e.DATE_TIME_WITH_ZONE_ID=e.DATE_TIME_WITH_ZONE_OFFSET=void 0;var r=n(758),i=n(9735),o=r.internal.temporalUtil.localDateTimeToEpochSecond;function g(t,e,n){var i=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1,era:"narrow"}),g=(0,r.int)(e).multiply(1e3).add((0,r.int)(n).div(1e6)).toNumber(),s=i.formatToParts(g).reduce((function(t,e){return"era"===e.type?t.adjustEra="B"===e.value.toUpperCase()?function(t){return t.subtract(1).negate()}:function(t){return t}:"literal"!==e.type&&(t[e.type]=(0,r.int)(e.value)),t}),{});s.year=s.adjustEra(s.year);var A=o(s.year,s.month,s.day,s.hour,s.minute,s.second,s.nanosecond);return s.timeZoneOffsetSeconds=A.subtract(e),s.hour=s.hour.modulo(24),s}function s(t,e,n){if(!e&&!n)return t;var i=function(t){return n?t.toBigInt():t.toNumberOrInfinity()},o=Object.create(Object.getPrototypeOf(t));for(var g in t)if(!0===Object.prototype.hasOwnProperty.call(t,g)){var s=t[g];o[g]=(0,r.isInt)(s)?i(s):s}return Object.freeze(o),o}e.DATE_TIME_WITH_ZONE_OFFSET=73,e.DATE_TIME_WITH_ZONE_ID=105,e.unpackDateTimeWithZoneOffset=function(t,e,n,o,g){t._verifyStructSize("DateTimeWithZoneOffset",3,e);var A=t.unpackInteger(n),C=t.unpackInteger(n),I=t.unpackInteger(n),a=(0,r.int)(A).add(I),u=(0,i.epochSecondAndNanoToLocalDateTime)(a,C);return s(new r.DateTime(u.year,u.month,u.day,u.hour,u.minute,u.second,u.nanosecond,I,null),o,g)},e.unpackDateTimeWithZoneId=function(t,e,n,i,o){t._verifyStructSize("DateTimeWithZoneId",3,e);var A=t.unpackInteger(n),C=t.unpackInteger(n),I=t.unpack(n),a=g(I,A,C);return s(new r.DateTime(a.year,a.month,a.day,a.hour,a.minute,a.second,(0,r.int)(C),a.timeZoneOffsetSeconds,I),i,o)},e.packDateTime=function(t,n){t.timeZoneId?function(t,n){var i=o(t.year,t.month,t.day,t.hour,t.minute,t.second,t.nanosecond),s=null!=t.timeZoneOffsetSeconds?t.timeZoneOffsetSeconds:function(t,e,n){var r=g(t,e,n),i=o(r.year,r.month,r.day,r.hour,r.minute,r.second,n).subtract(e),s=e.subtract(i),A=g(t,s,n);return o(A.year,A.month,A.day,A.hour,A.minute,A.second,n).subtract(s)}(t.timeZoneId,i,t.nanosecond),A=i.subtract(s),C=(0,r.int)(t.nanosecond),I=t.timeZoneId,a=[n.packable(A),n.packable(C),n.packable(I)];n.packStruct(e.DATE_TIME_WITH_ZONE_ID,a)}(t,n):function(t,n){var i=o(t.year,t.month,t.day,t.hour,t.minute,t.second,t.nanosecond),g=(0,r.int)(t.nanosecond),s=(0,r.int)(t.timeZoneOffsetSeconds),A=i.subtract(s),C=[n.packable(A),n.packable(g),n.packable(s)];n.packStruct(e.DATE_TIME_WITH_ZONE_OFFSET,C)}(t,n)}},843:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Structure=e.Unpacker=e.Packer=void 0;var r=n(7078),i=n(758),o=i.internal.objectUtil,g=i.error.PROTOCOL_ERROR,s=function(){function t(t,e){this.signature=t,this.fields=e}return t.prototype.toString=function(){for(var t="",e=0;e0&&(t+=", "),t+=this.fields[e];return"Structure("+this.signature+", ["+t+"])"},t}();e.Structure=s;var A=function(){function t(t){this._ch=t,this._byteArraysSupported=!0}return t.prototype.packable=function(t){var e,n=this;if(null===t)return function(){return n._ch.writeUInt8(192)};if(!0===t)return function(){return n._ch.writeUInt8(195)};if(!1===t)return function(){return n._ch.writeUInt8(194)};if("number"==typeof t)return function(){return n.packFloat(t)};if("string"==typeof t)return function(){return n.packString(t)};if("bigint"==typeof t)return function(){return n.packInteger((0,i.int)(t))};if((0,i.isInt)(t))return function(){return n.packInteger(t)};if(t instanceof Int8Array)return function(){return n.packBytes(t)};if(t instanceof Array)return function(){n.packListHeader(t.length);for(var e=0;e>0),this._ch.writeUInt8(n%256),this._ch.writeBytes(e);else{if(!(n<4294967296))throw(0,i.newError)("UTF-8 strings of size "+n+" are not supported");this._ch.writeUInt8(210),this._ch.writeUInt8((n/16777216>>0)%256),this._ch.writeUInt8((n/65536>>0)%256),this._ch.writeUInt8((n/256>>0)%256),this._ch.writeUInt8(n%256),this._ch.writeBytes(e)}},t.prototype.packListHeader=function(t){if(t<16)this._ch.writeUInt8(144|t);else if(t<256)this._ch.writeUInt8(212),this._ch.writeUInt8(t);else if(t<65536)this._ch.writeUInt8(213),this._ch.writeUInt8((t/256>>0)%256),this._ch.writeUInt8(t%256);else{if(!(t<4294967296))throw(0,i.newError)("Lists of size "+t+" are not supported");this._ch.writeUInt8(214),this._ch.writeUInt8((t/16777216>>0)%256),this._ch.writeUInt8((t/65536>>0)%256),this._ch.writeUInt8((t/256>>0)%256),this._ch.writeUInt8(t%256)}},t.prototype.packBytes=function(t){if(!this._byteArraysSupported)throw(0,i.newError)("Byte arrays are not supported by the database this driver is connected to");this.packBytesHeader(t.length);for(var e=0;e>0)%256),this._ch.writeUInt8(t%256);else{if(!(t<4294967296))throw(0,i.newError)("Byte arrays of size "+t+" are not supported");this._ch.writeUInt8(206),this._ch.writeUInt8((t/16777216>>0)%256),this._ch.writeUInt8((t/65536>>0)%256),this._ch.writeUInt8((t/256>>0)%256),this._ch.writeUInt8(t%256)}},t.prototype.packMapHeader=function(t){if(t<16)this._ch.writeUInt8(160|t);else if(t<256)this._ch.writeUInt8(216),this._ch.writeUInt8(t);else if(t<65536)this._ch.writeUInt8(217),this._ch.writeUInt8(t/256>>0),this._ch.writeUInt8(t%256);else{if(!(t<4294967296))throw(0,i.newError)("Maps of size "+t+" are not supported");this._ch.writeUInt8(218),this._ch.writeUInt8((t/16777216>>0)%256),this._ch.writeUInt8((t/65536>>0)%256),this._ch.writeUInt8((t/256>>0)%256),this._ch.writeUInt8(t%256)}},t.prototype.packStructHeader=function(t,e){if(t<16)this._ch.writeUInt8(176|t),this._ch.writeUInt8(e);else if(t<256)this._ch.writeUInt8(220),this._ch.writeUInt8(t),this._ch.writeUInt8(e);else{if(!(t<65536))throw(0,i.newError)("Structures of size "+t+" are not supported");this._ch.writeUInt8(221),this._ch.writeUInt8(t/256>>0),this._ch.writeUInt8(t%256)}},t.prototype.disableByteArrays=function(){this._byteArraysSupported=!1},t.prototype._nonPackableValue=function(t){return function(){throw(0,i.newError)(t,g)}},t}();e.Packer=A;var C=function(){function t(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1),this._disableLosslessIntegers=t,this._useBigInt=e}return t.prototype.unpack=function(t){var e=t.readUInt8(),n=240&e,r=15&e;if(192===e)return null;var o=this._unpackBoolean(e);if(null!==o)return o;var g=this._unpackNumberOrInteger(e,t);if(null!==g){if((0,i.isInt)(g)){if(this._useBigInt)return g.toBigInt();if(this._disableLosslessIntegers)return g.toNumberOrInfinity()}return g}var s=this._unpackString(e,n,r,t);if(null!==s)return s;var A=this._unpackList(e,n,r,t);if(null!==A)return A;var C=this._unpackByteArray(e,t);if(null!==C)return C;var I=this._unpackMap(e,n,r,t);if(null!==I)return I;var a=this._unpackStruct(e,n,r,t);if(null!==a)return a;throw(0,i.newError)("Unknown packed value with marker "+e.toString(16))},t.prototype.unpackInteger=function(t){var e=t.readUInt8(),n=this._unpackInteger(e,t);if(null==n)throw(0,i.newError)("Unable to unpack integer value with marker "+e.toString(16));return n},t.prototype._unpackBoolean=function(t){return 195===t||194!==t&&null},t.prototype._unpackNumberOrInteger=function(t,e){return 193===t?e.readFloat64():this._unpackInteger(t,e)},t.prototype._unpackInteger=function(t,e){if(t>=0&&t<128)return(0,i.int)(t);if(t>=240&&t<256)return(0,i.int)(t-256);if(200===t)return(0,i.int)(e.readInt8());if(201===t)return(0,i.int)(e.readInt16());if(202===t){var n=e.readInt32();return(0,i.int)(n)}if(203===t){var r=e.readInt32(),o=e.readInt32();return new i.Integer(o,r)}return null},t.prototype._unpackString=function(t,e,n,i){return 128===e?r.utf8.decode(i,n):208===t?r.utf8.decode(i,i.readUInt8()):209===t?r.utf8.decode(i,i.readUInt16()):210===t?r.utf8.decode(i,i.readUInt32()):null},t.prototype._unpackList=function(t,e,n,r){return 144===e?this._unpackListWithSize(n,r):212===t?this._unpackListWithSize(r.readUInt8(),r):213===t?this._unpackListWithSize(r.readUInt16(),r):214===t?this._unpackListWithSize(r.readUInt32(),r):null},t.prototype._unpackListWithSize=function(t,e){for(var n=[],r=0;r0?(a=r[I-1])instanceof i.UnboundRelationship&&(r[I-1]=a=a.bind(s.identity,C.identity)):(a=r[-I-1])instanceof i.UnboundRelationship&&(r[-I-1]=a=a.bind(C.identity,s.identity)),g.push(new i.PathSegment(s,a,C)),s=C}return new i.Path(n[0],n[n.length-1],g)},t.prototype._unpackUnknownStruct=function(t,e,n){for(var r=new s(t,[]),i=0;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.epochSecondAndNanoToLocalDateTime=e.nanoOfDayToLocalTime=e.epochDayToDate=void 0;var r=n(758),i=r.internal.temporalUtil,o=i.DAYS_0000_TO_1970,g=i.DAYS_PER_400_YEAR_CYCLE,s=i.NANOS_PER_HOUR,A=i.NANOS_PER_MINUTE,C=i.NANOS_PER_SECOND,I=i.SECONDS_PER_DAY,a=i.floorDiv,u=i.floorMod;function c(t){var e=(t=(0,r.int)(t)).add(o).subtract(60),n=(0,r.int)(0);if(e.lessThan(0)){var i=e.add(1).div(g).subtract(1);n=i.multiply(400),e=e.add(i.multiply(-g))}var s=e.multiply(400).add(591).div(g),A=e.subtract(s.multiply(365).add(s.div(4)).subtract(s.div(100)).add(s.div(400)));A.lessThan(0)&&(s=s.subtract(1),A=e.subtract(s.multiply(365).add(s.div(4)).subtract(s.div(100)).add(s.div(400)))),s=s.add(n);var C=A,I=C.multiply(5).add(2).div(153),a=I.add(2).modulo(12).add(1),u=C.subtract(I.multiply(306).add(5).div(10)).add(1);return s=s.add(I.div(10)),new r.Date(s,a,u)}function l(t){var e=(t=(0,r.int)(t)).div(s),n=(t=t.subtract(e.multiply(s))).div(A),i=(t=t.subtract(n.multiply(A))).div(C),o=t.subtract(i.multiply(C));return new r.LocalTime(e,n,i,o)}e.epochDayToDate=c,e.nanoOfDayToLocalTime=l,e.epochSecondAndNanoToLocalDateTime=function(t,e){var n=a(t,I),i=u(t,I).multiply(C).add(e),o=c(n),g=l(i);return new r.LocalDateTime(o.year,o.month,o.day,g.hour,g.minute,g.second,g.nanosecond)}},2043:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},g=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_MAX_SIZE=e.DEFAULT_ACQUISITION_TIMEOUT=e.PoolConfig=e.Pool=void 0;var s=o(n(1269));e.PoolConfig=s.default,Object.defineProperty(e,"DEFAULT_ACQUISITION_TIMEOUT",{enumerable:!0,get:function(){return s.DEFAULT_ACQUISITION_TIMEOUT}}),Object.defineProperty(e,"DEFAULT_MAX_SIZE",{enumerable:!0,get:function(){return s.DEFAULT_MAX_SIZE}});var A=g(n(1971));e.Pool=A.default,e.default=A.default},1269:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_ACQUISITION_TIMEOUT=e.DEFAULT_MAX_SIZE=void 0;var n=100;e.DEFAULT_MAX_SIZE=n;var r=6e4;e.DEFAULT_ACQUISITION_TIMEOUT=r;var i=function(){function t(t,e){this.maxSize=o(t,n),this.acquisitionTimeout=o(e,r)}return t.defaultConfig=function(){return new t(n,r)},t.fromDriverConfig=function(e){return new t(g(e.maxConnectionPoolSize)?e.maxConnectionPoolSize:n,g(e.connectionAcquisitionTimeout)?e.connectionAcquisitionTimeout:r)},t}();function o(t,e){return 0===t||t?t:e}function g(t){return 0===t||t}e.default=i},1971:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function g(t){try{A(r.next(t))}catch(t){o(t)}}function s(t){try{A(r.throw(t))}catch(t){o(t)}}function A(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(g,s)}A((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,i,o,g={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,r=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!((i=(i=g.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){g=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&this.activeResourceCount(t)+this._pendingCreates[e]>=this._maxSize)return[2,null];this._pendingCreates[e]=this._pendingCreates[e]+1,i.label=6;case 6:return i.trys.push([6,,8,9]),[4,this._create(t,(function(t,e){return A._release(r,t,e)}))];case 7:return g=i.sent(),I(e,this._activeResourceCounts),this._log.isDebugEnabled()&&this._log.debug(g+" created for the pool "+e),[3,9];case 8:return this._pendingCreates[e]=this._pendingCreates[e]-1,[7];case 9:return[2,g]}}))}))},t.prototype._release=function(t,e,n){return r(this,void 0,void 0,(function(){var r,o,g=this;return i(this,(function(i){switch(i.label){case 0:return r=e.asKey(),(o=this._pools[r])&&t&&t.isActive()?this._validate(n)?[3,2]:(this._log.isDebugEnabled()&&this._log.debug(n+" destroyed and can't be released to the pool "+r+" because it is not functional"),[4,this._destroy(n)]):[3,4];case 1:return i.sent(),[3,3];case 2:this._installIdleObserver&&this._installIdleObserver(n,{onError:function(t){g._log.debug("Idle connection "+n+" destroyed because of error: "+t);var e=g._pools[r];e&&(g._pools[r]=e.filter((function(t){return t!==n}))),g._destroy(n).catch((function(){}))}}),o.push(n),this._log.isDebugEnabled()&&this._log.debug(n+" released to the pool "+r),i.label=3;case 3:return[3,6];case 4:return this._log.isDebugEnabled()&&this._log.debug(n+" destroyed and can't be released to the pool "+r+" because pool has been purged"),[4,this._destroy(n)];case 5:i.sent(),i.label=6;case 6:return function(t,e){var n=(e[t]||0)-1;n>0?e[t]=n:delete e[t]}(r,this._activeResourceCounts),this._processPendingAcquireRequests(e),[2]}}))}))},t.prototype._purgeKey=function(t){return r(this,void 0,void 0,(function(){var e,n,r,o;return i(this,(function(i){switch(i.label){case 0:for(e=this._pools[t]||[],n=this._poolState[t]||new u,r=[];e.length;)o=e.pop(),this._removeIdleObserver&&this._removeIdleObserver(o),r.push(this._destroy(o));return n.close(),delete this._pools[t],delete this._poolState[t],[4,Promise.all(r)];case 1:return i.sent(),[2]}}))}))},t.prototype._processPendingAcquireRequests=function(t){var e=this,n=t.asKey(),r=this._acquireRequests[n],i=this._poolState[n];if(r){var o=r.shift();o?this._acquire(t).catch((function(t){return o.reject(t),null})).then((function(n){n&&(o.isCompleted()?e._release(i,t,n):o.resolve(n))})):delete this._acquireRequests[n]}},t}();function I(t,e){var n=e[t]||0;e[t]=n+1}var a=function(){function t(t,e,n,r,i){this._key=t,this._resolve=e,this._reject=n,this._timeoutId=r,this._log=i,this._completed=!1}return t.prototype.isCompleted=function(){return this._completed},t.prototype.resolve=function(t){this._completed||(this._completed=!0,clearTimeout(this._timeoutId),this._log.isDebugEnabled()&&this._log.debug(t+" acquired from the pool "+this._key),this._resolve(t))},t.prototype.reject=function(t){this._completed||(this._completed=!0,clearTimeout(this._timeoutId),this._reject(t))},t}(),u=function(){function t(){this._active=!0}return t.prototype.isActive=function(){return this._active},t.prototype.close=function(){this._active=!1},t}();e.default=C},4066:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RoutingTable=e.Rediscovery=void 0;var i=r(n(8862));e.Rediscovery=i.default;var o=r(n(1852));e.RoutingTable=o.default,e.default=i.default},8862:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(1852)),o=n(7778),g=n(758),s=g.error.SERVICE_UNAVAILABLE,A=function(){function t(t){this._routingContext=t}return t.prototype.lookupRoutingTableOnRouter=function(t,e,n,r){var o=this;return t._acquireConnection((function(g){return o._requestRawRoutingTable(g,t,e,n,r).then((function(t){return t.isNull?null:i.default.fromRawRoutingTable(e,n,t)}))}))},t.prototype._requestRawRoutingTable=function(t,e,n,r,i){var A=this;return new Promise((function(C,I){t.protocol().requestRoutingInformation({routingContext:A._routingContext,databaseName:n,impersonatedUser:i,sessionContext:{bookmark:e._lastBookmark,mode:e._mode,database:e._database,afterComplete:e._onComplete},onCompleted:C,onError:function(t){"Neo.ClientError.Database.DatabaseNotFound"===t.code?I(t):"Neo.ClientError.Procedure.ProcedureNotFound"===t.code?I((0,g.newError)("Server at "+r.asHostPort()+" can't perform routing. Make sure you are connecting to a causal cluster",s)):C(o.RawRoutingTable.ofNull())}})}))},t}();e.default=A},1852:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),g=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)g.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return g},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={basic:function(t,e,n){return n?{scheme:"basic",principal:t,credentials:e,realm:n}:{scheme:"basic",principal:t,credentials:e}},kerberos:function(t){return{scheme:"kerberos",principal:"",credentials:t}},bearer:function(t){return{scheme:"bearer",credentials:t}},custom:function(t,e,n,r,i){return i?{scheme:r,principal:t,credentials:e,realm:n,parameters:i}:{scheme:r,principal:t,credentials:e,realm:n}}}},3915:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.prototype.acquireConnection=function(t){throw Error("Not implemented")},t.prototype.supportsMultiDb=function(){throw Error("Not implemented")},t.prototype.supportsTransactionConfig=function(){throw Error("Not implemented")},t.prototype.supportsUserImpersonation=function(){throw Error("Not implemented")},t.prototype.close=function(){throw Error("Not implemented")},t}();e.default=n},5287:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.id="",this.databaseId=""}return t.prototype.isOpen=function(){return!1},t.prototype.protocol=function(){throw Error("Not implemented")},t.prototype.connect=function(t,e){throw Error("Not implemented")},t.prototype.write=function(t,e,n){throw Error("Not implemented")},t.prototype.resetAndFlush=function(){throw Error("Not implemented")},t.prototype.close=function(){throw Error("Not implemented")},t.prototype._release=function(){return Promise.resolve()},t}();e.default=n},5278:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WRITE=e.READ=e.Driver=void 0;var i=n(9763),o=n(2783),g=r(n(1406)),s=n(2206),A=n(1205),C=r(n(4777)),I=n(7400),a=s.ACCESS_MODE_READ;e.READ=a;var u=s.ACCESS_MODE_WRITE;e.WRITE=u;var c=0,l=function(){function t(t,e,n,r){void 0===e&&(e={}),void 0===r&&(r=function(t){return new C.default(t)}),function(t){t.maxConnectionLifetime=h(t.maxConnectionLifetime,36e5),t.maxConnectionPoolSize=h(t.maxConnectionPoolSize,s.DEFAULT_POOL_MAX_SIZE),t.connectionAcquisitionTimeout=h(t.connectionAcquisitionTimeout,s.DEFAULT_POOL_ACQUISITION_TIMEOUT),t.fetchSize=d(t.fetchSize,1e3)}(e),function(t){var e=t.resolver;if(e&&"function"!=typeof e)throw new TypeError("Configured resolver should be a function. Got: "+e)}(e),this._id=c++,this._meta=t,this._config=e,this._log=A.Logger.create(e),this._createConnectionProvider=n,this._createSession=r,this._connectionProvider=null,this._afterConstruction()}return t.prototype.verifyConnectivity=function(t){var e=(void 0===t?{}:t).database,n=void 0===e?"":e,r=this._getOrCreateConnectionProvider();return new o.ConnectivityVerifier(r).verify({database:n})},t.prototype.supportsMultiDb=function(){return this._getOrCreateConnectionProvider().supportsMultiDb()},t.prototype.supportsTransactionConfig=function(){return this._getOrCreateConnectionProvider().supportsTransactionConfig()},t.prototype.supportsUserImpersonation=function(){return this._getOrCreateConnectionProvider().supportsUserImpersonation()},t.prototype._supportsRouting=function(){return this._meta.routing},t.prototype._isEncrypted=function(){return this._config.encrypted===I.ENCRYPTION_ON},t.prototype._getTrust=function(){return this._config.trust},t.prototype.session=function(t){var e=void 0===t?{}:t,n=e.defaultAccessMode,r=void 0===n?u:n,i=e.bookmarks,o=e.database,g=void 0===o?"":o,s=e.impersonatedUser,A=e.fetchSize;return this._newSession({defaultAccessMode:r,bookmarkOrBookmarks:i,database:g,reactive:!1,impersonatedUser:s,fetchSize:d(A,this._config.fetchSize)})},t.prototype.close=function(){return this._log.info("Driver "+this._id+" closing"),this._connectionProvider?this._connectionProvider.close():Promise.resolve()},t.prototype._afterConstruction=function(){this._log.info(this._meta.typename+" driver "+this._id+" created for server address "+this._meta.address)},t.prototype._newSession=function(t){var e=t.defaultAccessMode,n=t.bookmarkOrBookmarks,r=t.database,o=t.reactive,g=t.impersonatedUser,s=t.fetchSize,A=C.default._validateSessionMode(e),I=this._getOrCreateConnectionProvider(),a=n?new i.Bookmark(n):i.Bookmark.empty();return this._createSession({mode:A,database:r||"",connectionProvider:I,bookmark:a,config:this._config,reactive:o,impersonatedUser:g,fetchSize:s})},t.prototype._getOrCreateConnectionProvider=function(){var t;return this._connectionProvider||(this._connectionProvider=this._createConnectionProvider(this._id,this._config,this._log,(t=this._config,new g.default(t.resolver)))),this._connectionProvider},t}();function h(t,e){var n=parseInt(t,10);return n>0||0===n?n:n<0?Number.MAX_SAFE_INTEGER:e}function d(t,e){var n=parseInt(t,10);if(n>0||n===s.FETCH_ALL)return n;if(0===n||n<0)throw new Error("The fetch size can only be a positive value or "+s.FETCH_ALL+" for ALL. However fetchSize = "+n);return e}e.Driver=l,e.default=l},4949:function(t,e){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.PROTOCOL_ERROR=e.SESSION_EXPIRED=e.SERVICE_UNAVAILABLE=e.Neo4jError=e.newError=void 0,e.SERVICE_UNAVAILABLE="ServiceUnavailable",e.SESSION_EXPIRED="SessionExpired",e.PROTOCOL_ERROR="ProtocolError";var i=function(t){function e(n,r){var i=t.call(this,n)||this;return i.constructor=e,i.__proto__=e.prototype,i.code=r,i.name="Neo4jError",i}return r(e,t),e}(Error);e.Neo4jError=i,e.newError=function(t,e){return new i(t,null!=e?e:"N/A")}},8156:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isPathSegment=e.PathSegment=e.isPath=e.Path=e.isUnboundRelationship=e.UnboundRelationship=e.isRelationship=e.Relationship=e.isNode=e.Node=void 0;var r=n(2347),i={value:!0,enumerable:!1,configurable:!1,writable:!1},o="__isNode__",g="__isRelationship__",s="__isUnboundRelationship__",A="__isPath__",C="__isPathSegment__";function I(t,e){return!0===(t&&t[e])}var a=function(){function t(t,e,n){this.identity=t,this.labels=e,this.properties=n}return t.prototype.toString=function(){for(var t="("+this.identity,e=0;e0){for(t+=" {",e=0;e0&&(t+=","),t+=n[e]+":"+(0,r.stringify)(this.properties[n[e]]);t+="}"}return t+")"},t}();e.Node=a,Object.defineProperty(a.prototype,o,i),e.isNode=function(t){return I(t,o)};var u=function(){function t(t,e,n,r,i){this.identity=t,this.start=e,this.end=n,this.type=r,this.properties=i}return t.prototype.toString=function(){var t="("+this.start+")-[:"+this.type,e=Object.keys(this.properties);if(e.length>0){t+=" {";for(var n=0;n0&&(t+=","),t+=e[n]+":"+(0,r.stringify)(this.properties[e[n]]);t+="}"}return t+"]->("+this.end+")"},t}();e.Relationship=u,Object.defineProperty(u.prototype,g,i),e.isRelationship=function(t){return I(t,g)};var c=function(){function t(t,e,n){this.identity=t,this.type=e,this.properties=n}return t.prototype.bind=function(t,e){return new u(this.identity,t,e,this.type,this.properties)},t.prototype.toString=function(){var t="-[:"+this.type,e=Object.keys(this.properties);if(e.length>0){t+=" {";for(var n=0;n0&&(t+=","),t+=e[n]+":"+(0,r.stringify)(this.properties[e[n]]);t+="}"}return t+"]->"},t}();e.UnboundRelationship=c,Object.defineProperty(c.prototype,s,i),e.isUnboundRelationship=function(t){return I(t,s)};var l=function(t,e,n){this.start=t,this.relationship=e,this.end=n};e.PathSegment=l,Object.defineProperty(l.prototype,C,i),e.isPathSegment=function(t){return I(t,C)};var h=function(t,e,n){this.start=t,this.end=e,this.segments=n,this.length=n.length};e.Path=h,Object.defineProperty(h.prototype,A,i),e.isPath=function(t){return I(t,A)}},758:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},g=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.types=e.Driver=e.Session=e.Transaction=e.Connection=e.ConnectionProvider=e.Result=e.Stats=e.QueryStatistics=e.ProfiledPlan=e.Plan=e.Notification=e.ServerInfo=e.queryType=e.ResultSummary=e.Record=e.isPathSegment=e.PathSegment=e.isPath=e.Path=e.isUnboundRelationship=e.UnboundRelationship=e.isRelationship=e.Relationship=e.isNode=e.Node=e.Time=e.LocalTime=e.LocalDateTime=e.isTime=e.isLocalTime=e.isLocalDateTime=e.isDuration=e.isDateTime=e.isDate=e.Duration=e.DateTime=e.Date=e.Point=e.isPoint=e.internal=e.toString=e.toNumber=e.inSafeRange=e.isInt=e.int=e.Integer=e.error=e.Neo4jError=e.newError=void 0,e.auth=e.json=e.driver=void 0;var s=n(4949);Object.defineProperty(e,"newError",{enumerable:!0,get:function(){return s.newError}}),Object.defineProperty(e,"Neo4jError",{enumerable:!0,get:function(){return s.Neo4jError}});var A=o(n(6720));e.Integer=A.default,Object.defineProperty(e,"int",{enumerable:!0,get:function(){return A.int}}),Object.defineProperty(e,"isInt",{enumerable:!0,get:function(){return A.isInt}}),Object.defineProperty(e,"inSafeRange",{enumerable:!0,get:function(){return A.inSafeRange}}),Object.defineProperty(e,"toNumber",{enumerable:!0,get:function(){return A.toNumber}}),Object.defineProperty(e,"toString",{enumerable:!0,get:function(){return A.toString}});var C=n(8718);Object.defineProperty(e,"Date",{enumerable:!0,get:function(){return C.Date}}),Object.defineProperty(e,"DateTime",{enumerable:!0,get:function(){return C.DateTime}}),Object.defineProperty(e,"Duration",{enumerable:!0,get:function(){return C.Duration}}),Object.defineProperty(e,"isDate",{enumerable:!0,get:function(){return C.isDate}}),Object.defineProperty(e,"isDateTime",{enumerable:!0,get:function(){return C.isDateTime}}),Object.defineProperty(e,"isDuration",{enumerable:!0,get:function(){return C.isDuration}}),Object.defineProperty(e,"isLocalDateTime",{enumerable:!0,get:function(){return C.isLocalDateTime}}),Object.defineProperty(e,"isLocalTime",{enumerable:!0,get:function(){return C.isLocalTime}}),Object.defineProperty(e,"isTime",{enumerable:!0,get:function(){return C.isTime}}),Object.defineProperty(e,"LocalDateTime",{enumerable:!0,get:function(){return C.LocalDateTime}}),Object.defineProperty(e,"LocalTime",{enumerable:!0,get:function(){return C.LocalTime}}),Object.defineProperty(e,"Time",{enumerable:!0,get:function(){return C.Time}});var I=n(8156);Object.defineProperty(e,"Node",{enumerable:!0,get:function(){return I.Node}}),Object.defineProperty(e,"isNode",{enumerable:!0,get:function(){return I.isNode}}),Object.defineProperty(e,"Relationship",{enumerable:!0,get:function(){return I.Relationship}}),Object.defineProperty(e,"isRelationship",{enumerable:!0,get:function(){return I.isRelationship}}),Object.defineProperty(e,"UnboundRelationship",{enumerable:!0,get:function(){return I.UnboundRelationship}}),Object.defineProperty(e,"isUnboundRelationship",{enumerable:!0,get:function(){return I.isUnboundRelationship}}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return I.Path}}),Object.defineProperty(e,"isPath",{enumerable:!0,get:function(){return I.isPath}}),Object.defineProperty(e,"PathSegment",{enumerable:!0,get:function(){return I.PathSegment}}),Object.defineProperty(e,"isPathSegment",{enumerable:!0,get:function(){return I.isPathSegment}});var a=g(n(1104));e.Record=a.default;var u=n(8729);Object.defineProperty(e,"isPoint",{enumerable:!0,get:function(){return u.isPoint}}),Object.defineProperty(e,"Point",{enumerable:!0,get:function(){return u.Point}});var c=o(n(260));e.ResultSummary=c.default,Object.defineProperty(e,"queryType",{enumerable:!0,get:function(){return c.queryType}}),Object.defineProperty(e,"ServerInfo",{enumerable:!0,get:function(){return c.ServerInfo}}),Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return c.Notification}}),Object.defineProperty(e,"Plan",{enumerable:!0,get:function(){return c.Plan}}),Object.defineProperty(e,"ProfiledPlan",{enumerable:!0,get:function(){return c.ProfiledPlan}}),Object.defineProperty(e,"QueryStatistics",{enumerable:!0,get:function(){return c.QueryStatistics}}),Object.defineProperty(e,"Stats",{enumerable:!0,get:function(){return c.Stats}});var l=g(n(9675));e.Result=l.default;var h=g(n(3915));e.ConnectionProvider=h.default;var d=g(n(5287));e.Connection=d.default;var f=g(n(7561));e.Transaction=f.default;var p=g(n(4777));e.Session=p.default;var v=o(n(5278)),y=v;e.Driver=v.default,e.driver=y;var b=g(n(1251));e.auth=b.default;var m=o(n(5833));e.types=m;var w=o(n(2347));e.json=w;var _=o(n(6457));e.internal=_;var x={SERVICE_UNAVAILABLE:s.SERVICE_UNAVAILABLE,SESSION_EXPIRED:s.SESSION_EXPIRED,PROTOCOL_ERROR:s.PROTOCOL_ERROR};e.error=x;var E={newError:s.newError,Neo4jError:s.Neo4jError,error:x,Integer:A.default,int:A.int,isInt:A.isInt,inSafeRange:A.inSafeRange,toNumber:A.toNumber,toString:A.toString,internal:_,isPoint:u.isPoint,Point:u.Point,Date:C.Date,DateTime:C.DateTime,Duration:C.Duration,isDate:C.isDate,isDateTime:C.isDateTime,isDuration:C.isDuration,isLocalDateTime:C.isLocalDateTime,isLocalTime:C.isLocalTime,isTime:C.isTime,LocalDateTime:C.LocalDateTime,LocalTime:C.LocalTime,Time:C.Time,Node:I.Node,isNode:I.isNode,Relationship:I.Relationship,isRelationship:I.isRelationship,UnboundRelationship:I.UnboundRelationship,isUnboundRelationship:I.isUnboundRelationship,Path:I.Path,isPath:I.isPath,PathSegment:I.PathSegment,isPathSegment:I.isPathSegment,Record:a.default,ResultSummary:c.default,queryType:c.queryType,ServerInfo:c.ServerInfo,Notification:c.Notification,Plan:c.Plan,ProfiledPlan:c.ProfiledPlan,QueryStatistics:c.QueryStatistics,Stats:c.Stats,Result:l.default,Transaction:f.default,Session:p.default,Driver:v.default,Connection:d.default,types:m,driver:y,json:w,auth:b.default};e.default=E},6720:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toString=e.toNumber=e.inSafeRange=e.isInt=e.int=void 0;var r=n(4949),i=new Map,o=function(){function t(t,e){this.low=t||0,this.high=e||0}return t.prototype.inSafeRange=function(){return this.greaterThanOrEqual(t.MIN_SAFE_VALUE)&&this.lessThanOrEqual(t.MAX_SAFE_VALUE)},t.prototype.toInt=function(){return this.low},t.prototype.toNumber=function(){return this.high*s+(this.low>>>0)},t.prototype.toBigInt=function(){if(this.isZero())return BigInt(0);if(this.isPositive())return BigInt(this.high>>>0)*BigInt(s)+BigInt(this.low>>>0);var t=this.negate();return BigInt(-1)*(BigInt(t.high>>>0)*BigInt(s)+BigInt(t.low>>>0))},t.prototype.toNumberOrInfinity=function(){return this.lessThan(t.MIN_SAFE_VALUE)?Number.NEGATIVE_INFINITY:this.greaterThan(t.MAX_SAFE_VALUE)?Number.POSITIVE_INFINITY:this.toNumber()},t.prototype.toString=function(e){if((e=e||10)<2||e>36)throw RangeError("radix out of range: "+e);if(this.isZero())return"0";var n;if(this.isNegative()){if(this.equals(t.MIN_VALUE)){var r=t.fromNumber(e),i=this.div(r);return n=i.multiply(r).subtract(this),i.toString(e)+n.toInt().toString(e)}return"-"+this.negate().toString(e)}var o=t.fromNumber(Math.pow(e,6));n=this;for(var g="";;){var s=n.div(o),A=(n.subtract(s.multiply(o)).toInt()>>>0).toString(e);if((n=s).isZero())return A+g;for(;A.length<6;)A="0"+A;g=""+A+g}},t.prototype.getHighBits=function(){return this.high},t.prototype.getLowBits=function(){return this.low},t.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.equals(t.MIN_VALUE)?64:this.negate().getNumBitsAbs();for(var e=0!==this.high?this.high:this.low,n=31;n>0&&0==(e&1<=0},t.prototype.isOdd=function(){return 1==(1&this.low)},t.prototype.isEven=function(){return 0==(1&this.low)},t.prototype.equals=function(e){var n=t.fromValue(e);return this.high===n.high&&this.low===n.low},t.prototype.notEquals=function(t){return!this.equals(t)},t.prototype.lessThan=function(t){return this.compare(t)<0},t.prototype.lessThanOrEqual=function(t){return this.compare(t)<=0},t.prototype.greaterThan=function(t){return this.compare(t)>0},t.prototype.greaterThanOrEqual=function(t){return this.compare(t)>=0},t.prototype.compare=function(e){var n=t.fromValue(e);if(this.equals(n))return 0;var r=this.isNegative(),i=n.isNegative();return r&&!i?-1:!r&&i?1:this.subtract(n).isNegative()?-1:1},t.prototype.negate=function(){return this.equals(t.MIN_VALUE)?t.MIN_VALUE:this.not().add(t.ONE)},t.prototype.add=function(e){var n=t.fromValue(e),r=this.high>>>16,i=65535&this.high,o=this.low>>>16,g=65535&this.low,s=n.high>>>16,A=65535&n.high,C=n.low>>>16,I=0,a=0,u=0,c=0;return u+=(c+=g+(65535&n.low))>>>16,c&=65535,a+=(u+=o+C)>>>16,u&=65535,I+=(a+=i+A)>>>16,a&=65535,I+=r+s,I&=65535,t.fromBits(u<<16|c,I<<16|a)},t.prototype.subtract=function(e){var n=t.fromValue(e);return this.add(n.negate())},t.prototype.multiply=function(e){if(this.isZero())return t.ZERO;var n=t.fromValue(e);if(n.isZero())return t.ZERO;if(this.equals(t.MIN_VALUE))return n.isOdd()?t.MIN_VALUE:t.ZERO;if(n.equals(t.MIN_VALUE))return this.isOdd()?t.MIN_VALUE:t.ZERO;if(this.isNegative())return n.isNegative()?this.negate().multiply(n.negate()):this.negate().multiply(n).negate();if(n.isNegative())return this.multiply(n.negate()).negate();if(this.lessThan(C)&&n.lessThan(C))return t.fromNumber(this.toNumber()*n.toNumber());var r=this.high>>>16,i=65535&this.high,o=this.low>>>16,g=65535&this.low,s=n.high>>>16,A=65535&n.high,I=n.low>>>16,a=65535&n.low,u=0,c=0,l=0,h=0;return l+=(h+=g*a)>>>16,h&=65535,c+=(l+=o*a)>>>16,l&=65535,c+=(l+=g*I)>>>16,l&=65535,u+=(c+=i*a)>>>16,c&=65535,u+=(c+=o*I)>>>16,c&=65535,u+=(c+=g*A)>>>16,c&=65535,u+=r*a+i*I+o*A+g*s,u&=65535,t.fromBits(l<<16|h,u<<16|c)},t.prototype.div=function(e){var n,i,o,g=t.fromValue(e);if(g.isZero())throw(0,r.newError)("division by zero");if(this.isZero())return t.ZERO;if(this.equals(t.MIN_VALUE))return g.equals(t.ONE)||g.equals(t.NEG_ONE)?t.MIN_VALUE:g.equals(t.MIN_VALUE)?t.ONE:(n=this.shiftRight(1).div(g).shiftLeft(1)).equals(t.ZERO)?g.isNegative()?t.ONE:t.NEG_ONE:(i=this.subtract(g.multiply(n)),o=n.add(i.div(g)));if(g.equals(t.MIN_VALUE))return t.ZERO;if(this.isNegative())return g.isNegative()?this.negate().div(g.negate()):this.negate().div(g).negate();if(g.isNegative())return this.div(g.negate()).negate();for(o=t.ZERO,i=this;i.greaterThanOrEqual(g);){n=Math.max(1,Math.floor(i.toNumber()/g.toNumber()));for(var s=Math.ceil(Math.log(n)/Math.LN2),A=s<=48?1:Math.pow(2,s-48),C=t.fromNumber(n),I=C.multiply(g);I.isNegative()||I.greaterThan(i);)n-=A,I=(C=t.fromNumber(n)).multiply(g);C.isZero()&&(C=t.ONE),o=o.add(C),i=i.subtract(I)}return o},t.prototype.modulo=function(e){var n=t.fromValue(e);return this.subtract(this.div(n).multiply(n))},t.prototype.not=function(){return t.fromBits(~this.low,~this.high)},t.prototype.and=function(e){var n=t.fromValue(e);return t.fromBits(this.low&n.low,this.high&n.high)},t.prototype.or=function(e){var n=t.fromValue(e);return t.fromBits(this.low|n.low,this.high|n.high)},t.prototype.xor=function(e){var n=t.fromValue(e);return t.fromBits(this.low^n.low,this.high^n.high)},t.prototype.shiftLeft=function(e){var n=t.toNumber(e);return 0==(n&=63)?t.ZERO:n<32?t.fromBits(this.low<>>32-n):t.fromBits(0,this.low<>>n|this.high<<32-n,this.high>>n):t.fromBits(this.high>>n-32,this.high>=0?0:-1)},t.isInteger=function(t){return!0===(t&&t.__isInteger__)},t.fromInt=function(e){var n,r;return(e|=0)>=-128&&e<128&&(r=i.get(e))?r:(n=new t(e,e<0?-1:0),e>=-128&&e<128&&i.set(e,n),n)},t.fromBits=function(e,n){return new t(e,n)},t.fromNumber=function(e){return isNaN(e)||!isFinite(e)?t.ZERO:e<=-A?t.MIN_VALUE:e+1>=A?t.MAX_VALUE:e<0?t.fromNumber(-e).negate():new t(e%s|0,e/s|0)},t.fromString=function(e,n,i){var o,s=(void 0===i?{}:i).strictStringValidation;if(0===e.length)throw(0,r.newError)("number format error: empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t.ZERO;if((n=n||10)<2||n>36)throw(0,r.newError)("radix out of range: "+n);if((o=e.indexOf("-"))>0)throw(0,r.newError)('number format error: interior "-" character: '+e);if(0===o)return t.fromString(e.substring(1),n).negate();for(var A=t.fromNumber(Math.pow(n,8)),C=t.ZERO,I=0;I{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectivityVerifier=void 0;var r=n(1474),i=n(2206),o=n(4949),g=function(){function t(t){this._connectionProvider=t}return t.prototype.verify=function(t){var e=(void 0===t?{}:t).database,n=void 0===e?"":e;return function(t,e){var n=new r.ConnectionHolder({mode:i.ACCESS_MODE_READ,database:e,connectionProvider:t});return n.initializeConnection(),n.getConnection().then((function(t){if(!t)throw(0,o.newError)("Unexpected error acquiring transaction");return n.close().then((function(){return t.server}))})).catch((function(t){return n.close().catch((function(t){})).then((function(){return Promise.reject(t)}))}))}(this._connectionProvider,n)},t}();e.ConnectivityVerifier=g},2206:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BOLT_PROTOCOL_V4_4=e.BOLT_PROTOCOL_V4_3=e.BOLT_PROTOCOL_V4_2=e.BOLT_PROTOCOL_V4_1=e.BOLT_PROTOCOL_V4_0=e.BOLT_PROTOCOL_V3=e.BOLT_PROTOCOL_V2=e.BOLT_PROTOCOL_V1=e.DEFAULT_POOL_MAX_SIZE=e.DEFAULT_POOL_ACQUISITION_TIMEOUT=e.ACCESS_MODE_WRITE=e.ACCESS_MODE_READ=e.FETCH_ALL=void 0,e.FETCH_ALL=-1,e.DEFAULT_POOL_ACQUISITION_TIMEOUT=6e4,e.DEFAULT_POOL_MAX_SIZE=100,e.ACCESS_MODE_READ="READ",e.ACCESS_MODE_WRITE="WRITE",e.BOLT_PROTOCOL_V1=1,e.BOLT_PROTOCOL_V2=2,e.BOLT_PROTOCOL_V3=3,e.BOLT_PROTOCOL_V4_0=4,e.BOLT_PROTOCOL_V4_1=4.1,e.BOLT_PROTOCOL_V4_2=4.2,e.BOLT_PROTOCOL_V4_3=4.3,e.BOLT_PROTOCOL_V4_4=4.4},6457:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.objectUtil=e.retryStrategy=e.resolver=e.serverAddress=e.urlUtil=e.logger=e.connectivityVerifier=e.transactionExecutor=e.txConfig=e.connectionHolder=e.constants=e.bookmark=e.observer=e.temporalUtil=e.util=void 0;var g=o(n(7400));e.util=g;var s=o(n(3355));e.temporalUtil=s;var A=o(n(2130));e.observer=A;var C=o(n(9763));e.bookmark=C;var I=o(n(2206));e.constants=I;var a=o(n(1474));e.connectionHolder=a;var u=o(n(5838));e.txConfig=u;var c=o(n(1475));e.transactionExecutor=c;var l=o(n(2783));e.connectivityVerifier=l;var h=o(n(1205));e.logger=h;var d=o(n(4434));e.urlUtil=d;var f=o(n(4));e.serverAddress=f;var p=o(n(5447));e.resolver=p;var v=o(n(9297));e.retryStrategy=v;var y=o(n(2775));e.objectUtil=y},1205:function(t,e,n){"use strict";var r,i,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Logger=void 0;var g=n(4949),s="error",A="warn",C="info",I="debug",a=C,u=((i={})[s]=0,i[A]=1,i[C]=2,i[I]=3,i),c=function(){function t(t,e){this._level=t,this._loggerFunction=e}return t.create=function(e){if(e&&e.logging){var n=e.logging,r=function(t){if(t&&t.level){var e=t.level,n=u[e];if(!n&&0!==n)throw(0,g.newError)("Illegal logging level: "+e+". Supported levels are: "+Object.keys(u));return e}return a}(n),i=function(t){if(t&&t.logger){var e=t.logger;if(e&&"function"==typeof e)return e}throw(0,g.newError)("Illegal logger function: "+t.logger)}(n);return new t(r,i)}return this.noOp()},t.noOp=function(){return l},t.prototype.isErrorEnabled=function(){return h(this._level,s)},t.prototype.error=function(t){this.isErrorEnabled()&&this._loggerFunction(s,t)},t.prototype.isWarnEnabled=function(){return h(this._level,A)},t.prototype.warn=function(t){this.isWarnEnabled()&&this._loggerFunction(A,t)},t.prototype.isInfoEnabled=function(){return h(this._level,C)},t.prototype.info=function(t){this.isInfoEnabled()&&this._loggerFunction(C,t)},t.prototype.isDebugEnabled=function(){return h(this._level,I)},t.prototype.debug=function(t){this.isDebugEnabled()&&this._loggerFunction(I,t)},t}();e.Logger=c;var l=new(function(t){function e(){return t.call(this,C,(function(t,e){}))||this}return o(e,t),e.prototype.isErrorEnabled=function(){return!1},e.prototype.error=function(t){},e.prototype.isWarnEnabled=function(){return!1},e.prototype.warn=function(t){},e.prototype.isInfoEnabled=function(){return!1},e.prototype.info=function(t){},e.prototype.isDebugEnabled=function(){return!1},e.prototype.debug=function(t){},e}(c));function h(t,e){return u[t]>=u[e]}},2775:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBrokenObjectReason=e.isBrokenObject=e.createBrokenObject=void 0;var n="__isBrokenObject__",r="__reason__";e.createBrokenObject=function(t,e){void 0===e&&(e={});var i=function(){throw t};return new Proxy(e,{get:function(e,o){return o===n||(o===r?t:void("toJSON"!==o&&i()))},set:i,apply:i,construct:i,defineProperty:i,deleteProperty:i,getOwnPropertyDescriptor:i,getPrototypeOf:i,has:i,isExtensible:i,ownKeys:i,preventExtensions:i,setPrototypeOf:i})},e.isBrokenObject=function(t){return null!==t&&"object"==typeof t&&!0===t[n]},e.getBrokenObjectReason=function(t){return t[r]}},2130:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FailedObserver=e.CompletedObserver=void 0;var n=function(){function t(){}return t.prototype.subscribe=function(t){i(t,t.onKeys,[]),i(t,t.onCompleted,{})},t.prototype.cancel=function(){},t.prototype.prepareToHandleSingleResponse=function(){},t.prototype.markCompleted=function(){},t.prototype.onError=function(t){throw Error("CompletedObserver not supposed to call onError")},t}();e.CompletedObserver=n;var r=function(){function t(t){var e=t.error,n=t.onError;this._error=e,this._beforeError=n,this._observers=[],this.onError(e)}return t.prototype.subscribe=function(t){i(t,t.onError,this._error),this._observers.push(t)},t.prototype.onError=function(t){var e=this;Promise.resolve(i(this,this._beforeError,t)).then((function(){return e._observers.forEach((function(e){return i(e,e.onError,t)}))}))},t.prototype.cancel=function(){},t.prototype.prepareToHandleSingleResponse=function(){},t.prototype.markCompleted=function(){},t}();function i(t,e,n){e&&e.bind(t)(n)}e.FailedObserver=r},7517:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.prototype.resolve=function(){throw new Error("Abstract function")},t.prototype._resolveToItself=function(t){return Promise.resolve([t])},t}();e.default=n},1406:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4);function i(t){return Promise.resolve([t])}var o=function(){function t(t){this._resolverFunction=t||i}return t.prototype.resolve=function(t){var e=this;return new Promise((function(n){return n(e._resolverFunction(t.asHostPort()))})).then((function(t){if(!Array.isArray(t))throw new TypeError("Configured resolver function should either return an array of addresses or a Promise resolved with an array of addresses.Each address is ':'. Got: "+t);return t.map((function(t){return r.ServerAddress.fromUrl(t)}))}))},t}();e.default=o},5447:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ConfiguredCustomResolver=e.BaseHostNameResolver=void 0;var i=r(n(7517));e.BaseHostNameResolver=i.default;var o=r(n(1406));e.ConfiguredCustomResolver=o.default},9297:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.canRetryOn=void 0;var r=n(4949);e.canRetryOn=function(t){return t&&t instanceof r.Neo4jError&&t.code&&(t.code===r.SERVICE_UNAVAILABLE||t.code===r.SESSION_EXPIRED||"Neo.ClientError.Security.AuthorizationExpired"===t.code||(e=t.code).indexOf("TransientError")>=0&&"Neo.TransientError.Transaction.Terminated"!==e&&"Neo.TransientError.Transaction.LockClientStopped"!==e);var e}},4:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.ServerAddress=void 0;var g=n(7400),s=o(n(4434)),A=function(){function t(t,e,n,r){this._host=(0,g.assertString)(t,"host"),this._resolved=e?(0,g.assertString)(e,"resolved"):null,this._port=(0,g.assertNumber)(n,"port"),this._hostPort=r,this._stringValue=e?r+"("+e+")":""+r}return t.prototype.host=function(){return this._host},t.prototype.resolvedHost=function(){return this._resolved?this._resolved:this._host},t.prototype.port=function(){return this._port},t.prototype.resolveWith=function(e){return new t(this._host,e,this._port,this._hostPort)},t.prototype.asHostPort=function(){return this._hostPort},t.prototype.asKey=function(){return this._hostPort},t.prototype.toString=function(){return this._stringValue},t.fromUrl=function(e){var n=s.parseDatabaseUrl(e);return new t(n.host,null,n.port,n.hostAndPort)},t}();e.ServerAddress=A},3355:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.floorMod=e.floorDiv=e.assertValidZoneId=e.assertValidNanosecond=e.assertValidSecond=e.assertValidMinute=e.assertValidHour=e.assertValidDay=e.assertValidMonth=e.assertValidYear=e.timeZoneOffsetInSeconds=e.totalNanoseconds=e.newDate=e.toStandardDate=e.isoStringToStandardDate=e.dateToIsoString=e.timeZoneOffsetToIsoString=e.timeToIsoString=e.durationToIsoString=e.dateToEpochDay=e.localDateTimeToEpochSecond=e.localTimeToNanoOfDay=e.normalizeNanosecondsForDuration=e.normalizeSecondsForDuration=e.SECONDS_PER_DAY=e.DAYS_PER_400_YEAR_CYCLE=e.DAYS_0000_TO_1970=e.NANOS_PER_HOUR=e.NANOS_PER_MINUTE=e.NANOS_PER_MILLISECOND=e.NANOS_PER_SECOND=e.SECONDS_PER_HOUR=e.SECONDS_PER_MINUTE=e.MINUTES_PER_HOUR=e.NANOSECOND_OF_SECOND_RANGE=e.SECOND_OF_MINUTE_RANGE=e.MINUTE_OF_HOUR_RANGE=e.HOUR_OF_DAY_RANGE=e.DAY_OF_MONTH_RANGE=e.MONTH_OF_YEAR_RANGE=e.YEAR_RANGE=void 0;var g=o(n(6720)),s=n(4949),A=n(7400),C=function(){function t(t,e){this._minNumber=t,this._maxNumber=e,this._minInteger=(0,g.int)(t),this._maxInteger=(0,g.int)(e)}return t.prototype.contains=function(t){if((0,g.isInt)(t)&&t instanceof g.default)return t.greaterThanOrEqual(this._minInteger)&&t.lessThanOrEqual(this._maxInteger);if("bigint"==typeof t){var e=(0,g.int)(t);return e.greaterThanOrEqual(this._minInteger)&&e.lessThanOrEqual(this._maxInteger)}return t>=this._minNumber&&t<=this._maxNumber},t.prototype.toString=function(){return"["+this._minNumber+", "+this._maxNumber+"]"},t}();function I(t,n,r){t=(0,g.int)(t),n=(0,g.int)(n),r=(0,g.int)(r);var i=t.multiply(365);return i=(i=(i=t.greaterThanOrEqual(0)?i.add(t.add(3).div(4).subtract(t.add(99).div(100)).add(t.add(399).div(400))):i.subtract(t.div(-4).subtract(t.div(-100)).add(t.div(-400)))).add(n.multiply(367).subtract(362).div(12))).add(r.subtract(1)),n.greaterThan(2)&&(i=i.subtract(1),function(t){return!(!(t=(0,g.int)(t)).modulo(4).equals(0)||t.modulo(100).equals(0)&&!t.modulo(400).equals(0))}(t)||(i=i.subtract(1))),i.subtract(e.DAYS_0000_TO_1970)}function a(t,e,n){if((0,A.assertNumberOrInteger)(t,n),!e.contains(t))throw(0,s.newError)(n+" is expected to be in range "+e+" but was: "+t);return t}function u(t,e){t=(0,g.int)(t),e=(0,g.int)(e);var n=t.div(e);return t.isPositive()!==e.isPositive()&&n.multiply(e).notEquals(t)&&(n=n.subtract(1)),n}function c(t,e){return t=(0,g.int)(t),e=(0,g.int)(e),t.subtract(u(t,e).multiply(e))}function l(t){return(t=(0,g.int)(t)).equals(0)?"":"."+h(t,9)}function h(t,e,n){var r=(t=(0,g.int)(t)).isNegative();r&&(t=t.negate());var i=t.toString();if(e)for(;i.length=t.getUTCSeconds()?t.getSeconds()-t.getUTCSeconds():t.getSeconds()-t.getUTCSeconds()+60,r=t.getTimezoneOffset();return 0===r?0+n:-1*r*e.SECONDS_PER_MINUTE+n},e.assertValidYear=function(t){return a(t,e.YEAR_RANGE,"Year")},e.assertValidMonth=function(t){return a(t,e.MONTH_OF_YEAR_RANGE,"Month")},e.assertValidDay=function(t){return a(t,e.DAY_OF_MONTH_RANGE,"Day")},e.assertValidHour=function(t){return a(t,e.HOUR_OF_DAY_RANGE,"Hour")},e.assertValidMinute=function(t){return a(t,e.MINUTE_OF_HOUR_RANGE,"Minute")},e.assertValidSecond=function(t){return a(t,e.SECOND_OF_MINUTE_RANGE,"Second")},e.assertValidNanosecond=function(t){return a(t,e.NANOSECOND_OF_SECOND_RANGE,"Nanosecond")},e.assertValidZoneId=function(t,e){try{Intl.DateTimeFormat(void 0,{timeZone:e})}catch(n){throw(0,s.newError)(t+' is expected to be a valid ZoneId but was: "'+e+'"')}},e.floorDiv=u,e.floorMod=c},1475:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TransactionExecutor=void 0;var r=n(4949),i=n(9297),o=function(){function t(t,e,n,r){this._maxRetryTimeMs=g(t,3e4),this._initialRetryDelayMs=g(e,1e3),this._multiplier=g(n,2),this._jitterFactor=g(r,.2),this._inFlightTimeoutIds=[],this._verifyAfterConstruction()}return t.prototype.execute=function(t,e){var n=this;return new Promise((function(r,i){n._executeTransactionInsidePromise(t,e,r,i)})).catch((function(r){var i=Date.now(),o=n._initialRetryDelayMs;return n._retryTransactionPromise(t,e,r,i,o)}))},t.prototype.close=function(){this._inFlightTimeoutIds.forEach((function(t){return clearTimeout(t)})),this._inFlightTimeoutIds=[]},t.prototype._retryTransactionPromise=function(t,e,n,r,o){var g=this;return Date.now()-r>this._maxRetryTimeMs||!(0,i.canRetryOn)(n)?Promise.reject(n):new Promise((function(n,r){var i=g._computeDelayWithJitter(o),s=setTimeout((function(){g._inFlightTimeoutIds=g._inFlightTimeoutIds.filter((function(t){return t!==s})),g._executeTransactionInsidePromise(t,e,n,r)}),i);g._inFlightTimeoutIds.push(s)})).catch((function(n){var i=o*g._multiplier;return g._retryTransactionPromise(t,e,n,r,i)}))},t.prototype._executeTransactionInsidePromise=function(t,e,n,r){var i,o=this;try{i=t()}catch(t){return void r(t)}this._safeExecuteTransactionWork(i,e).then((function(t){return o._handleTransactionWorkSuccess(t,i,n,r)})).catch((function(t){return o._handleTransactionWorkFailure(t,i,r)}))},t.prototype._safeExecuteTransactionWork=function(t,e){try{var n=e(t);return Promise.resolve(n)}catch(t){return Promise.reject(t)}},t.prototype._handleTransactionWorkSuccess=function(t,e,n,r){e.isOpen()?e.commit().then((function(){n(t)})).catch((function(t){r(t)})):n(t)},t.prototype._handleTransactionWorkFailure=function(t,e,n){e.isOpen()?e.rollback().catch((function(t){})).then((function(){return n(t)})):n(t)},t.prototype._computeDelayWithJitter=function(t){var e=t*this._jitterFactor,n=t-e,r=t+e;return Math.random()*(r-n)+n},t.prototype._verifyAfterConstruction=function(){if(this._maxRetryTimeMs<0)throw(0,r.newError)("Max retry time should be >= 0: "+this._maxRetryTimeMs);if(this._initialRetryDelayMs<0)throw(0,r.newError)("Initial retry delay should >= 0: "+this._initialRetryDelayMs);if(this._multiplier<1)throw(0,r.newError)("Multiplier should be >= 1.0: "+this._multiplier);if(this._jitterFactor<0||this._jitterFactor>1)throw(0,r.newError)("Jitter factor should be in [0.0, 1.0]: "+this._jitterFactor)},t}();function g(t,e){return t||0===t?t:e}e.TransactionExecutor=o},5838:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.TxConfig=void 0;var g=o(n(7400)),s=n(4949),A=n(6720),C=function(){function t(t){!function(t){t&&g.assertObject(t,"Transaction config")}(t),this.timeout=function(t){if(g.isObject(t)&&(t.timeout||0===t.timeout)){g.assertNumberOrInteger(t.timeout,"Transaction timeout");var e=(0,A.int)(t.timeout);if(e.isZero())throw(0,s.newError)("Transaction timeout should not be zero");if(e.isNegative())throw(0,s.newError)("Transaction timeout should not be negative");return e}return null}(t),this.metadata=function(t){if(g.isObject(t)&&t.metadata){var e=t.metadata;if(g.assertObject(e,"config.metadata"),0!==Object.keys(e).length)return e}return null}(t)}return t.empty=function(){return I},t.prototype.isEmpty=function(){return Object.values(this).every((function(t){return null==t}))},t}();e.TxConfig=C;var I=new C({})},4434:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)g.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return g};Object.defineProperty(e,"__esModule",{value:!0}),e.Url=e.formatIPv6Address=e.formatIPv4Address=e.defaultPortForScheme=e.parseDatabaseUrl=void 0;var o=n(7400),g=function(t,e,n,r,i){this.scheme=t,this.host=e,this.port=n,this.hostAndPort=r,this.query=i};function s(t,e,n){if(!(t=(t||"").trim()))throw new Error("Illegal empty "+e+" in URL query '"+n+"'");return t}function A(t){var e="["===t.charAt(0),n="]"===t.charAt(t.length-1);if(e||n){if(e&&n)return t;throw new Error("Illegal IPv6 address "+t)}return"["+t+"]"}function C(t){return"http"===t?7474:"https"===t?7473:7687}e.Url=g,e.parseDatabaseUrl=function(t){(0,o.assertString)(t,"URL");var e=function(t){return-1===(t=t.trim()).indexOf("://")?{schemeMissing:!0,url:"none://"+t}:{schemeMissing:!1,url:t}}(t),n=function(t){function e(t,e){var n=t.indexOf(e);return n>=0?[t.substring(0,n),t[n],t.substring(n+1)]:[t,"",""]}var n,o={};return":"===(n=e(t,":"))[1]&&(o.scheme=decodeURIComponent(n[0]),t=n[2]),"#"===(n=e(t,"#"))[1]&&(o.fragment=decodeURIComponent(n[2]),t=n[0]),"?"===(n=e(t,"?"))[1]&&(o.query=n[2],t=n[0]),t.startsWith("//")?(n=e(t.substr(2),"/"),(o=r(r({},o),function(t){var n,r,o,g,s={};"@"===(r=t,o="@",g=r.lastIndexOf(o),n=g>=0?[r.substring(0,g),r[g],r.substring(g+1)]:["","",r])[1]&&(s.userInfo=decodeURIComponent(n[0]),t=n[2]);var A=i(function(t,n,r){var i=e(t,n),o=e(i[2],r);return[o[0],o[2]]}(t,"[","]"),2),C=A[0],I=A[1];return""!==C?(s.host=C,n=e(I,":")):(n=e(t,":"),s.host=n[0]),":"===n[1]&&(s.port=n[2]),s}(n[0]))).path=n[1]+n[2]):o.path=t,o}(e.url),I=e.schemeMissing?null:function(t){return t?(":"===(t=t.trim()).charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t):null}(n.scheme),a=function(t,e){if(!t)throw new Error("Unable to extract host from "+void 0);return t.trim()}(n.host),u=function(t){if(!t)throw new Error("Illegal host "+t);return t.indexOf(":")>=0?A(t):t}(a),c=function(t,e){var n="string"==typeof t?parseInt(t,10):t;return 0===n||n?n:C(e)}(n.port,I),l=u+":"+c,h=function(t,e){var n=t?function(t){return(t=(t||"").trim())&&"?"===t.charAt(0)&&(t=t.substring(1,t.length)),t}(t):null,r={};return n&&n.split("&").forEach((function(t){var n=t.split("=");if(2!==n.length)throw new Error("Invalid parameters: '"+n+"' in URL '"+e+"'.");var i=s(n[0],"key",e),o=s(n[1],"value",e);if(r[i])throw new Error("Duplicated query parameters with key '"+i+"' in URL '"+e+"'");r[i]=o})),r}(n.query||function(t){if("string"!=typeof t)return null;var e=i(t.split("?"),2);return e[0],e[1]}(n.resourceName),t);return new g(I,a,c,l,h)},e.formatIPv4Address=function(t,e){return t+":"+e},e.formatIPv6Address=function(t,e){return A(t)+":"+e},e.defaultPortForScheme=C},7400:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ENCRYPTION_OFF=e.ENCRYPTION_ON=e.validateQueryAndParameters=e.assertValidDate=e.assertNumberOrInteger=e.assertNumber=e.assertString=e.assertObject=e.isString=e.isObject=e.isEmptyObjectOrNull=void 0;var r=n(6720),i=n(2347);function o(t){return"object"==typeof t&&!Array.isArray(t)&&null!==t}function g(t,e){if(!s(t))throw new TypeError(e+" expected to be string but was: "+(0,i.stringify)(t));return t}function s(t){return"[object String]"===Object.prototype.toString.call(t)}e.ENCRYPTION_ON="ENCRYPTION_ON",e.ENCRYPTION_OFF="ENCRYPTION_OFF",e.isEmptyObjectOrNull=function(t){if(null===t)return!0;if(!o(t))return!1;for(var e in t)if(Object.prototype.hasOwnProperty.bind(t,e))return!1;return!0},e.isObject=o,e.validateQueryAndParameters=function(t,e,n){var r="",i=e||{},s=(null==n?void 0:n.skipAsserts)||!1;return"string"==typeof t?r=t:t instanceof String?r=t.toString():"object"==typeof t&&t.text&&(r=t.text,i=t.parameters||{}),s||(function(t){if(g(t,"Cypher query"),0===t.trim().length)throw new TypeError("Cypher query is expected to be a non-empty string.")}(r),function(t){if(!o(t)){var e=t.constructor?" "+t.constructor.name:"";throw new TypeError("Query parameters are expected to either be undefined/null or an object, given:"+e+" "+t)}}(i)),{validatedQuery:r,params:i}},e.assertObject=function(t,e){if(!o(t))throw new TypeError(e+" expected to be an object but was: "+(0,i.stringify)(t));return t},e.assertString=g,e.assertNumber=function(t,e){if("number"!=typeof t)throw new TypeError(e+" expected to be a number but was: "+(0,i.stringify)(t));return t},e.assertNumberOrInteger=function(t,e){if("number"!=typeof t&&"bigint"!=typeof t&&!(0,r.isInt)(t))throw new TypeError(e+" expected to be either a number or an Integer object but was: "+(0,i.stringify)(t));return t},e.assertValidDate=function(t,e){if("[object Date]"!==Object.prototype.toString.call(t))throw new TypeError(e+" expected to be a standard JavaScript Date but was: "+(0,i.stringify)(t));if(Number.isNaN(t.getTime()))throw new TypeError(e+" expected to be valid JavaScript Date but its time was NaN: "+(0,i.stringify)(t));return t},e.isString=s},2347:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=void 0;var r=n(2775);e.stringify=function(t){return JSON.stringify(t,(function(t,e){return(0,r.isBrokenObject)(e)?{__isBrokenObject__:!0,__reason__:(0,r.getBrokenObjectReason)(e)}:"bigint"==typeof e?e+"n":e}))}},1104:function(t,e,n){"use strict";var r=this&&this.__generator||function(t,e){var n,r,i,o,g={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,r=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!((i=(i=g.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){g=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),g=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)g.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return g};Object.defineProperty(e,"__esModule",{value:!0});var g=n(4949),s=function(){function t(t,e,n){this.keys=t,this.length=t.length,this._fields=e,this._fieldLookup=n||function(t){var e={};return t.forEach((function(t,n){e[t]=n})),e}(t)}return t.prototype.forEach=function(t){var e,n;try{for(var r=i(this.entries()),g=r.next();!g.done;g=r.next()){var s=o(g.value,2),A=s[0];t(s[1],A,this)}}catch(t){e={error:t}}finally{try{g&&!g.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.map=function(t){var e,n,r=[];try{for(var g=i(this.entries()),s=g.next();!s.done;s=g.next()){var A=o(s.value,2),C=A[0],I=A[1];r.push(t(I,C,this))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=g.return)&&n.call(g)}finally{if(e)throw e.error}}return r},t.prototype.entries=function(){var t;return r(this,(function(e){switch(e.label){case 0:t=0,e.label=1;case 1:return tthis._fields.length-1||e<0)throw(0,g.newError)("This record has no field with index '"+e+"'. Remember that indexes start at `0`, and make sure your query returns records in the shape you meant it to.");return this._fields[e]},t.prototype.has=function(t){return"number"==typeof t?t>=0&&t0||this.pageCacheHits>0||this.pageCacheHitRatio>0},t}();e.ProfiledPlan=C;e.Stats=function(){this.nodesCreated=0,this.nodesDeleted=0,this.relationshipsCreated=0,this.relationshipsDeleted=0,this.propertiesSet=0,this.labelsAdded=0,this.labelsRemoved=0,this.indexesAdded=0,this.indexesRemoved=0,this.constraintsAdded=0,this.constraintsRemoved=0};var I=function(){function t(t){var e=this;this._stats={nodesCreated:0,nodesDeleted:0,relationshipsCreated:0,relationshipsDeleted:0,propertiesSet:0,labelsAdded:0,labelsRemoved:0,indexesAdded:0,indexesRemoved:0,constraintsAdded:0,constraintsRemoved:0},this._systemUpdates=0,Object.keys(t).forEach((function(n){var r=n.replace(/(-\w)/g,(function(t){return t[1].toUpperCase()}));r in e._stats?e._stats[r]=c(t[n]):"systemUpdates"===r?e._systemUpdates=c(t[n]):"containsSystemUpdates"===r?e._containsSystemUpdates=t[n]:"containsUpdates"===r&&(e._containsUpdates=t[n])})),this._stats=Object.freeze(this._stats)}return t.prototype.containsUpdates=function(){var t=this;return void 0!==this._containsUpdates?this._containsUpdates:Object.keys(this._stats).reduce((function(e,n){return e+t._stats[n]}),0)>0},t.prototype.updates=function(){return this._stats},t.prototype.containsSystemUpdates=function(){return void 0!==this._containsSystemUpdates?this._containsSystemUpdates:this._systemUpdates>0},t.prototype.systemUpdates=function(){return this._systemUpdates},t}();e.QueryStatistics=I;var a=function(){function t(e){this.code=e.code,this.title=e.title,this.description=e.description,this.severity=e.severity,this.position=t._constructPosition(e.position)}return t._constructPosition=function(t){return t?{offset:c(t.offset),line:c(t.line),column:c(t.column)}:{}},t}();e.Notification=a;var u=function(t,e){t&&(this.address=t.address,this.version=t.version,this.agent=t.version),this.protocolVersion=e};function c(t){return t instanceof g.default?t.toInt():"bigint"==typeof t?(0,g.int)(t).toInt():t}function l(t,e,n){return void 0===n&&(n=0),t in e?c(e[t]):n}e.ServerInfo=u,e.queryType={READ_ONLY:"r",READ_WRITE:"rw",WRITE_ONLY:"w",SCHEMA_WRITE:"s"},e.default=s},9675:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(260)),o=n(6457),g=o.connectionHolder.EMPTY_CONNECTION_HOLDER,s=function(t){console.log("Uncaught error when processing result: "+t)},A=function(t){},C=function(){function t(t,e,n,r){var i;this._stack=(i=new Error("")).stack?i.stack.replace(/^Error(\n\r)*/,""):null,this._streamObserverPromise=t,this._p=null,this._query=e,this._parameters=n||{},this._connectionHolder=r||g}return t.prototype.keys=function(){var t=this;return new Promise((function(e,n){t._streamObserverPromise.then((function(t){return t.subscribe({onKeys:function(t){return e(t)},onError:function(t){return n(t)}})})).catch(n)}))},t.prototype.summary=function(){var t=this;return new Promise((function(e,n){t._streamObserverPromise.then((function(r){r.cancel(),r.subscribe({onCompleted:function(r){return t._createSummary(r).then(e,n)},onError:function(t){return n(t)}})})).catch(n)}))},t.prototype._getOrCreatePromise=function(){var t=this;return this._p||(this._p=new Promise((function(e,n){var r=[],i={onNext:function(t){r.push(t)},onCompleted:function(t){e({records:r,summary:t})},onError:function(t){n(t)}};t.subscribe(i)}))),this._p},t.prototype.then=function(t,e){return this._getOrCreatePromise().then(t,e)},t.prototype.catch=function(t){return this._getOrCreatePromise().catch(t)},t.prototype.finally=function(t){return this._getOrCreatePromise().finally(t)},t.prototype.subscribe=function(t){var e=this,n=t.onCompleted||A;t.onCompleted=function(r){e._createSummary(r).then((function(e){return n.call(t,e)}))};var r=t.onError||s;t.onError=function(n){e._connectionHolder.releaseConnection().then((function(){!function(t,e){e&&(t.stack=t.toString()+"\n"+e)}(n,e._stack),r.call(t,n)}))},this._streamObserverPromise.then((function(e){return e.subscribe(t)})).catch((function(e){return t.onError(e)}))},t.prototype._cancel=function(){this._streamObserverPromise.then((function(t){return t.cancel()}))},t.prototype._createSummary=function(t){var e=o.util.validateQueryAndParameters(this._query,this._parameters,{skipAsserts:!0}),n=e.validatedQuery,r=e.params,g=this._connectionHolder;return g.getConnection().then((function(t){return g.releaseConnection().then((function(){return t?t.protocol().version:void 0}))}),(function(t){})).then((function(e){return new i.default(n,r,t,e)}))},t}();Symbol.toStringTag,e.default=C},4777:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function g(t){try{A(r.next(t))}catch(t){o(t)}}function s(t){try{A(r.throw(t))}catch(t){o(t)}}function A(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(g,s)}A((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,i,o,g={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,r=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!((i=(i=g.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){g=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isPoint=e.Point=void 0;var r=n(7400),i="__isPoint__",o=function(){function t(t,e,n,i){this.srid=(0,r.assertNumberOrInteger)(t,"SRID"),this.x=(0,r.assertNumber)(e,"X coordinate"),this.y=(0,r.assertNumber)(n,"Y coordinate"),this.z=null==i?i:(0,r.assertNumber)(i,"Z coordinate"),Object.freeze(this)}return t.prototype.toString=function(){return this.z||0===this.z?"Point{srid="+g(this.srid)+", x="+g(this.x)+", y="+g(this.y)+", z="+g(this.z)+"}":"Point{srid="+g(this.srid)+", x="+g(this.x)+", y="+g(this.y)+"}"},t}();function g(t){return Number.isInteger(t)?t+".0":t.toString()}e.Point=o,Object.defineProperty(o.prototype,i,{value:!0,enumerable:!1,configurable:!1,writable:!1}),e.isPoint=function(t){return!0===(t&&t[i])}},8718:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},g=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),g=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)g.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return g};Object.defineProperty(e,"__esModule",{value:!0}),e.isDateTime=e.DateTime=e.isLocalDateTime=e.LocalDateTime=e.isDate=e.Date=e.isTime=e.Time=e.isLocalTime=e.LocalTime=e.isDuration=e.Duration=void 0;var s=o(n(3355)),A=n(7400),C=n(4949),I=o(n(6720)),a={value:!0,enumerable:!1,configurable:!1,writable:!1},u="__isDuration__",c="__isLocalTime__",l="__isTime__",h="__isDate__",d="__isLocalDateTime__",f="__isDateTime__",p=function(){function t(t,e,n,r){this.months=(0,A.assertNumberOrInteger)(t,"Months"),this.days=(0,A.assertNumberOrInteger)(e,"Days"),(0,A.assertNumberOrInteger)(n,"Seconds"),(0,A.assertNumberOrInteger)(r,"Nanoseconds"),this.seconds=s.normalizeSecondsForDuration(n,r),this.nanoseconds=s.normalizeNanosecondsForDuration(r),Object.freeze(this)}return t.prototype.toString=function(){return s.durationToIsoString(this.months,this.days,this.seconds,this.nanoseconds)},t}();e.Duration=p,Object.defineProperty(p.prototype,u,a),e.isDuration=function(t){return _(t,u)};var v=function(){function t(t,e,n,r){this.hour=s.assertValidHour(t),this.minute=s.assertValidMinute(e),this.second=s.assertValidSecond(n),this.nanosecond=s.assertValidNanosecond(r),Object.freeze(this)}return t.fromStandardDate=function(e,n){E(e,n);var r=s.totalNanoseconds(e,n);return new t(e.getHours(),e.getMinutes(),e.getSeconds(),r instanceof I.default?r.toInt():"bigint"==typeof r?(0,I.int)(r).toInt():r)},t.prototype.toString=function(){return s.timeToIsoString(this.hour,this.minute,this.second,this.nanosecond)},t}();e.LocalTime=v,Object.defineProperty(v.prototype,c,a),e.isLocalTime=function(t){return _(t,c)};var y=function(){function t(t,e,n,r,i){this.hour=s.assertValidHour(t),this.minute=s.assertValidMinute(e),this.second=s.assertValidSecond(n),this.nanosecond=s.assertValidNanosecond(r),this.timeZoneOffsetSeconds=(0,A.assertNumberOrInteger)(i,"Time zone offset in seconds"),Object.freeze(this)}return t.fromStandardDate=function(e,n){return E(e,n),new t(e.getHours(),e.getMinutes(),e.getSeconds(),(0,I.toNumber)(s.totalNanoseconds(e,n)),s.timeZoneOffsetInSeconds(e))},t.prototype.toString=function(){return s.timeToIsoString(this.hour,this.minute,this.second,this.nanosecond)+s.timeZoneOffsetToIsoString(this.timeZoneOffsetSeconds)},t}();e.Time=y,Object.defineProperty(y.prototype,l,a),e.isTime=function(t){return _(t,l)};var b=function(){function t(t,e,n){this.year=s.assertValidYear(t),this.month=s.assertValidMonth(e),this.day=s.assertValidDay(n),Object.freeze(this)}return t.fromStandardDate=function(e){return E(e),new t(e.getFullYear(),e.getMonth()+1,e.getDate())},t.prototype.toString=function(){return s.dateToIsoString(this.year,this.month,this.day)},t}();e.Date=b,Object.defineProperty(b.prototype,h,a),e.isDate=function(t){return _(t,h)};var m=function(){function t(t,e,n,r,i,o,g){this.year=s.assertValidYear(t),this.month=s.assertValidMonth(e),this.day=s.assertValidDay(n),this.hour=s.assertValidHour(r),this.minute=s.assertValidMinute(i),this.second=s.assertValidSecond(o),this.nanosecond=s.assertValidNanosecond(g),Object.freeze(this)}return t.fromStandardDate=function(e,n){return E(e,n),new t(e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),(0,I.toNumber)(s.totalNanoseconds(e,n)))},t.prototype.toString=function(){return x(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond)},t}();e.LocalDateTime=m,Object.defineProperty(m.prototype,d,a),e.isLocalDateTime=function(t){return _(t,d)};var w=function(){function t(t,e,n,r,i,o,I,a,u){this.year=s.assertValidYear(t),this.month=s.assertValidMonth(e),this.day=s.assertValidDay(n),this.hour=s.assertValidHour(r),this.minute=s.assertValidMinute(i),this.second=s.assertValidSecond(o),this.nanosecond=s.assertValidNanosecond(I);var c=g(function(t,e){var n=t||0===t,r=e&&""!==e;if(!n&&!r)throw(0,C.newError)("Unable to create DateTime without either time zone offset or id. Please specify either of them. Given offset: "+t+" and id: "+e);var i=[void 0,void 0];return n&&((0,A.assertNumberOrInteger)(t,"Time zone offset in seconds"),i[0]=t),r&&((0,A.assertString)(e,"Time zone ID"),s.assertValidZoneId("Time zone ID",e),i[1]=e),i}(a,u),2),l=c[0],h=c[1];this.timeZoneOffsetSeconds=l,this.timeZoneId=h||void 0,Object.freeze(this)}return t.fromStandardDate=function(e,n){return E(e,n),new t(e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),(0,I.toNumber)(s.totalNanoseconds(e,n)),s.timeZoneOffsetInSeconds(e),null)},t.prototype.toString=function(){return x(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond)+(this.timeZoneId?"["+this.timeZoneId+"]":s.timeZoneOffsetToIsoString(this.timeZoneOffsetSeconds||0))},t}();function _(t,e){return!0===(t&&t[e])}function x(t,e,n,r,i,o,g){return s.dateToIsoString(t,e,n)+"T"+s.timeToIsoString(r,i,o,g)}function E(t,e){(0,A.assertValidDate)(t,"Standard date"),null!=e&&(0,A.assertNumberOrInteger)(e,"Nanosecond")}e.DateTime=w,Object.defineProperty(w.prototype,f,a),e.isDateTime=function(t){return _(t,f)}},7561:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function g(t){try{A(r.next(t))}catch(t){o(t)}}function s(t){try{A(r.throw(t))}catch(t){o(t)}}function A(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(g,s)}A((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,i,o,g={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,r=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!((i=(i=g.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){g=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},6083:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.WRITE=e.READ=e.Driver=void 0;var i=r(n(6690)),o=r(n(9728)),g=r(n(1655)),s=r(n(4993)),A=r(n(3808)),C=n(758),I=r(n(5735));var a=C.internal.constants.FETCH_ALL,u=C.driver.READ,c=C.driver.WRITE;e.WRITE=c,e.READ=u;var l=function(t){(0,g.default)(C,t);var e,n,r=(e=C,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=(0,A.default)(e);if(n){var i=(0,A.default)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,s.default)(this,t)});function C(){return(0,i.default)(this,C),r.apply(this,arguments)}return(0,o.default)(C,[{key:"rxSession",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.defaultAccessMode,n=void 0===e?c:e,r=t.bookmarks,i=t.database,o=void 0===i?"":i,g=t.fetchSize,s=t.impersonatedUser;return new I.default({session:this._newSession({defaultAccessMode:n,bookmarkOrBookmarks:r,database:o,impersonatedUser:s,reactive:!0,fetchSize:h(g,this._config.fetchSize)}),config:this._config})}}]),C}(C.Driver);function h(t,e){var n=parseInt(t,10);if(n>0||n===a)return n;if(0===n||n<0)throw new Error("The fetch size can only be a positive value or ".concat(a," for ALL. However fetchSize = ").concat(n));return e}e.Driver=l;var d=l;e.default=d},7499:(t,e,n)=>{"use strict";var r=n(4836);e.ZP=void 0;var i=n(6083),o=r(n(8289)),g=n(758),s=n(297),A=r(n(5735)),C=r(n(9323)),I=r(n(804)),a=g.internal.util,u=a.ENCRYPTION_ON,c=(a.ENCRYPTION_OFF,a.assertString),l=a.isEmptyObjectOrNull,h=g.internal.serverAddress.ServerAddress,d=g.internal.urlUtil;var f="neo4j-javascript/"+o.default,p={console:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){return{level:t,logger:function(t,e){return console.log("".concat(n.g.Date.now()," ").concat(t.toUpperCase()," ").concat(e))}}}))},v={Node:g.Node,Relationship:g.Relationship,UnboundRelationship:g.UnboundRelationship,PathSegment:g.PathSegment,Path:g.Path,Result:g.Result,ResultSummary:g.ResultSummary,Record:g.Record,Point:g.Point,Date:g.Date,DateTime:g.DateTime,Duration:g.Duration,LocalDateTime:g.LocalDateTime,LocalTime:g.LocalTime,Time:g.Time,Integer:g.Integer},y={READ:i.READ,WRITE:i.WRITE},b={toNumber:g.toNumber,toString:g.toString,inSafeRange:g.inSafeRange},m={isPoint:g.isPoint},w={isDuration:g.isDuration,isLocalTime:g.isLocalTime,isTime:g.isTime,isDate:g.isDate,isLocalDateTime:g.isLocalDateTime,isDateTime:g.isDateTime},_={driver:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};c(t,"Bolt URL");var r,o=d.parseDatabaseUrl(t),g=!1,A=!1;switch(o.scheme){case"bolt":break;case"bolt+s":A=!0,r="TRUST_SYSTEM_CA_SIGNED_CERTIFICATES";break;case"bolt+ssc":A=!0,r="TRUST_ALL_CERTIFICATES";break;case"neo4j":g=!0;break;case"neo4j+s":A=!0,r="TRUST_SYSTEM_CA_SIGNED_CERTIFICATES",g=!0;break;case"neo4j+ssc":A=!0,r="TRUST_ALL_CERTIFICATES",g=!0;break;default:throw new Error("Unknown scheme: ".concat(o.scheme))}if(A){if("encrypted"in n||"trust"in n)throw new Error("Encryption/trust can only be configured either through URL or config, not both");n.encrypted=u,n.trust=r}(e=e||{}).scheme=e.scheme||"none",n.userAgent=n.userAgent||f;var C=h.fromUrl(o.hostAndPort),I={address:C,typename:g?"Routing":"Direct",routing:g};return new i.Driver(I,n,function(){if(g)return function(t,n,r,i){return new s.RoutingConnectionProvider({id:t,config:n,log:r,hostNameResolver:i,authToken:e,address:C,userAgent:n.userAgent,routingContext:o.query})};if(!l(o.query))throw new Error("Parameters are not supported with none routed scheme. Given URL: '".concat(t,"'"));return function(t,n,r){return new s.DirectConnectionProvider({id:t,config:n,log:r,authToken:e,address:C,userAgent:n.userAgent})}}())},int:g.int,isInt:g.isInt,isPoint:g.isPoint,isDuration:g.isDuration,isLocalTime:g.isLocalTime,isTime:g.isTime,isDate:g.isDate,isLocalDateTime:g.isLocalDateTime,isDateTime:g.isDateTime,integer:b,Neo4jError:g.Neo4jError,auth:g.auth,logging:p,types:v,session:y,error:g.error,spatial:m,temporal:w,Driver:i.Driver,Session:g.Session,Transaction:g.Transaction,Result:g.Result,RxSession:A.default,RxTransaction:C.default,RxResult:I.default,ResultSummary:g.ResultSummary,Plan:g.Plan,ProfiledPlan:g.ProfiledPlan,QueryStatistics:g.QueryStatistics,Notification:g.Notification,ServerInfo:g.ServerInfo,Record:g.Record,Node:g.Node,Relationship:g.Relationship,UnboundRelationship:g.UnboundRelationship,Path:g.Path,PathSegment:g.PathSegment,Point:g.Point,Integer:g.Integer,Duration:g.Duration,LocalTime:g.LocalTime,Time:g.Time,Date:g.Date,LocalDateTime:g.LocalDateTime,DateTime:g.DateTime};e.ZP=_},2915:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(6690)),o=r(n(9728)),g=n(758),s=n(4143),A=n(1717),C=(g.internal.logger.Logger,g.internal.retryStrategy.canRetryOn),I=g.error.SERVICE_UNAVAILABLE,a=(g.error.SESSION_EXPIRED,function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.maxRetryTimeout,r=void 0===n?3e4:n,o=e.initialDelay,g=void 0===o?1e3:o,s=e.delayMultiplier,A=void 0===s?2:s,C=e.delayJitter,I=void 0===C?.2:C,a=e.logger,c=void 0===a?null:a;(0,i.default)(this,t),this._maxRetryTimeout=u(r,3e4),this._initialDelay=u(g,1e3),this._delayMultiplier=u(A,2),this._delayJitter=u(I,.2),this._logger=c}return(0,o.default)(t,[{key:"retry",value:function(t){var e=this;return t.pipe((0,A.retryWhen)((function(t){var n=[],r=Date.now(),i=1,o=e._initialDelay;return t.pipe((0,A.flatMap)((function(t){if(!C(t))return(0,s.throwError)(t);if(n.push(t),i>=2&&Date.now()-r>=e._maxRetryTimeout){var a=(0,g.newError)("Failed after retried for ".concat(i," times in ").concat(e._maxRetryTimeout," ms. Make sure that your database is online and retry again."),I);return a.seenErrors=n,(0,s.throwError)(a)}var u=e._computeNextDelay(o);return o*=e._delayMultiplier,i++,e._logger&&e._logger.warn("Transaction failed and will be retried in ".concat(u)),(0,s.of)(1).pipe((0,A.delay)(u))})))})))}},{key:"_computeNextDelay",value:function(t){var e=t*this._delayJitter;return t-e+2*e*Math.random()}}]),t}());function u(t,e){return t||0===t?t:e}e.default=a},804:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(6690)),o=r(n(9728)),g=n(758),s=n(4143),A=n(1717),C=function(){function t(e){(0,i.default)(this,t);var n=e.pipe((0,A.publishReplay)(1),(0,A.refCount)());this._result=n,this._keys=n.pipe((0,A.flatMap)((function(t){return(0,s.from)(t.keys())})),(0,A.publishReplay)(1),(0,A.refCount)()),this._records=new s.Subject,this._summary=new s.ReplaySubject,this._state=0}return(0,o.default)(t,[{key:"keys",value:function(){return this._keys}},{key:"records",value:function(){var t=this;return this._result.pipe((0,A.flatMap)((function(e){return new s.Observable((function(n){return t._startStreaming({result:e,recordsObserver:n})}))})))}},{key:"consume",value:function(){var t=this;return this._result.pipe((0,A.flatMap)((function(e){return new s.Observable((function(n){return t._startStreaming({result:e,summaryObserver:n})}))})))}},{key:"_startStreaming",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.result,r=e.recordsObserver,i=void 0===r?null:r,o=e.summaryObserver,s=void 0===o?null:o,A=[];return s&&A.push(this._summary.subscribe(s)),this._state<1?(this._state=1,i&&A.push(this._records.subscribe(i)),A.push({unsubscribe:function(){n._cancel&&n._cancel()}}),0===this._records.observers.length&&n._cancel(),n.subscribe({onNext:function(e){t._records.next(e)},onCompleted:function(e){t._records.complete(),t._summary.next(e),t._summary.complete(),t._state=2},onError:function(e){t._records.error(e),t._summary.error(e),t._state=2}})):i&&i.error((0,g.newError)("Streaming has already started/consumed with a previous records or summary subscription.")),function(){A.forEach((function(t){return t.unsubscribe()}))}}}]),t}();e.default=C},5735:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(6690)),o=r(n(9728)),g=n(4143),s=n(1717),A=r(n(804)),C=n(758),I=r(n(9323)),a=r(n(2915)),u=C.internal.constants,c=u.ACCESS_MODE_READ,l=u.ACCESS_MODE_WRITE,h=C.internal.txConfig.TxConfig,d=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.session,r=e.config;(0,i.default)(this,t),this._session=n,this._retryLogic=function(t){var e=t&&t.maxTransactionRetryTime?t.maxTransactionRetryTime:null;return new a.default({maxRetryTimeout:e})}(r)}return(0,o.default)(t,[{key:"run",value:function(t,e,n){var r=this;return new A.default(new g.Observable((function(i){try{i.next(r._session.run(t,e,n)),i.complete()}catch(t){i.error(t)}return function(){}})))}},{key:"beginTransaction",value:function(t){return this._beginTransaction(this._session._mode,t)}},{key:"readTransaction",value:function(t,e){return this._runTransaction(c,t,e)}},{key:"writeTransaction",value:function(t,e){return this._runTransaction(l,t,e)}},{key:"close",value:function(){var t=this;return new g.Observable((function(e){t._session.close().then((function(){e.complete()})).catch((function(t){return e.error(t)}))}))}},{key:"lastBookmark",value:function(){return this._session.lastBookmark()}},{key:"_beginTransaction",value:function(t,e){var n=this,r=h.empty();return e&&(r=new h(e)),new g.Observable((function(e){try{e.next(new I.default(n._session._beginTransaction(t,r))),e.complete()}catch(t){e.error(t)}return function(){}}))}},{key:"_runTransaction",value:function(t,e,n){return h.empty(),n&&new h(n),this._retryLogic.retry(this._beginTransaction(t,n).pipe((0,s.flatMap)((function(t){return(0,g.defer)((function(){try{return e(t)}catch(t){return(0,g.throwError)(t)}})).pipe((0,s.catchError)((function(e){return t.rollback().pipe((0,s.concat)((0,g.throwError)(e)))})),(0,s.concat)(t.commit()))}))))}}]),t}();e.default=d},9323:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(6690)),o=r(n(9728)),g=n(4143),s=r(n(804)),A=(r(n(758)),function(){function t(e){(0,i.default)(this,t),this._txc=e}return(0,o.default)(t,[{key:"run",value:function(t,e){var n=this;return new s.default(new g.Observable((function(r){try{r.next(n._txc.run(t,e)),r.complete()}catch(t){r.error(t)}return function(){}})))}},{key:"commit",value:function(){var t=this;return new g.Observable((function(e){t._txc.commit().then((function(){e.complete()})).catch((function(t){return e.error(t)}))}))}},{key:"rollback",value:function(){var t=this;return new g.Observable((function(e){t._txc.rollback().then((function(){e.complete()})).catch((function(t){return e.error(t)}))}))}},{key:"close",value:function(){var t=this;return new g.Observable((function(e){t._txc.close().then((function(){e.complete()})).catch((function(t){return e.error(t)}))}))}}]),t}());e.default=A},8289:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default="4.4.10"},4143:(t,e,n)=>{"use strict";n.r(e),n.d(e,{ArgumentOutOfRangeError:()=>S.W,AsyncSubject:()=>I.c,BehaviorSubject:()=>A.X,ConnectableObservable:()=>i.c,EMPTY:()=>Q.E,EmptyError:()=>P.K,GroupedObservable:()=>o.T,NEVER:()=>at,Notification:()=>x.P,NotificationKind:()=>x.W,ObjectUnsubscribedError:()=>N.N,Observable:()=>r.y,ReplaySubject:()=>C.t,Scheduler:()=>m.b,Subject:()=>s.xQ,Subscriber:()=>_.L,Subscription:()=>w.w,TimeoutError:()=>D.W,UnsubscriptionError:()=>R.B,VirtualAction:()=>b,VirtualTimeScheduler:()=>y,animationFrame:()=>v,animationFrameScheduler:()=>p,asap:()=>a.e,asapScheduler:()=>a.E,async:()=>u.P,asyncScheduler:()=>u.z,bindCallback:()=>F,bindNodeCallback:()=>U,combineLatest:()=>Y.aj,concat:()=>H.z,config:()=>Tt.v,defer:()=>K.P,empty:()=>Q.c,forkJoin:()=>J,from:()=>q.D,fromEvent:()=>et,fromEventPattern:()=>rt,generate:()=>it,identity:()=>k.y,iif:()=>gt,interval:()=>At,isObservable:()=>T,merge:()=>It.T,never:()=>ut,noop:()=>O.Z,observable:()=>g.L,of:()=>ct.of,onErrorResumeNext:()=>lt,pairs:()=>ht,partition:()=>yt,pipe:()=>E.z,queue:()=>c.c,queueScheduler:()=>c.N,race:()=>bt.S3,range:()=>mt,scheduled:()=>kt.x,throwError:()=>_t._,timer:()=>xt.H,using:()=>Et,zip:()=>Ot.$R});var r=n(2772),i=n(3140),o=n(1120),g=n(5050),s=n(211),A=n(9233),C=n(2630),I=n(364),a=n(6650),u=n(964),c=n(2546),l=n(655),h=n(6114),d=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return l.ZT(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(h.o),f=n(8399),p=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l.ZT(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++re.index?1:-1:t.delay>e.delay?1:-1},e}(h.o),m=n(8725),w=n(8760),_=n(979),x=n(2632),E=n(2561),O=n(3306),k=n(3608);function T(t){return!!t&&(t instanceof r.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var S=n(6565),P=n(6929),N=n(1016),R=n(8782),D=n(1462),M=n(5709),j=n(3642),B=n(9026),L=n(7507);function F(t,e,n){if(e){if(!(0,L.K)(e))return function(){for(var r=[],i=0;i1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}function nt(t,e,n,r,i){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var g=t;t.addEventListener(e,n,i),o=function(){return g.removeEventListener(e,n,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var s=t;t.on(e,n),o=function(){return s.off(e,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var A=t;t.addListener(e,n),o=function(){return A.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var C=0,I=t.length;C=e){r.complete();break}if(r.next(o++),r.closed)break}}))}function wt(t){var e=t.start,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}var _t=n(4944),xt=n(9604);function Et(t,e){return new r.y((function(n){var r,i;try{r=t()}catch(t){return void n.error(t)}try{i=e(r)}catch(t){return void n.error(t)}var o=(i?(0,q.D)(i):Q.E).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}}))}var Ot=n(5080),kt=n(8107),Tt=n(150)},364:(t,e,n)=>{"use strict";n.d(e,{c:()=>g});var r=n(655),i=n(211),o=n(8760),g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return r.ZT(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.w.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.w.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.xQ)},9233:(t,e,n)=>{"use strict";n.d(e,{X:()=>g});var r=n(655),i=n(211),o=n(1016),g=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.ZT(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.N;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.xQ)},2632:(t,e,n)=>{"use strict";n.d(e,{P:()=>s,W:()=>r});var r,i=n(5631),o=n(8170),g=n(4944);r||(r={});var s=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return(0,o.of)(this.value);case"E":return(0,g._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},2772:(t,e,n)=>{"use strict";n.d(e,{y:()=>I});var r=n(3642),i=n(979),o=n(3142),g=n(2174),s=n(5050),A=n(2561),C=n(150),I=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,s=function(t,e,n){if(t){if(t instanceof i.L)return t;if(t[o.b])return t[o.b]()}return t||e||n?new i.L(t,e,n):new i.L(g.c)}(t,e,n);if(r?s.add(r.call(s,this.source)):s.add(this.source||C.v.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),C.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){C.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),(0,r._)(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=a(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[s.L]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e{"use strict";n.d(e,{c:()=>o});var r=n(150),i=n(1644),o={closed:!0,next:function(t){},error:function(t){if(r.v.useDeprecatedSynchronousErrorHandling)throw t;(0,i.z)(t)},complete:function(){}}},2039:(t,e,n)=>{"use strict";n.d(e,{L:()=>i});var r=n(655),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.ZT(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(979).L)},2630:(t,e,n)=>{"use strict";n.d(e,{t:()=>I});var r=n(655),i=n(211),o=n(2546),g=n(8760),s=n(9276),A=n(1016),C=n(8253),I=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.ZT(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new a(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new A.N;if(this.isStopped||this.hasError?e=g.w.EMPTY:(this.observers.push(t),e=new C.W(this,t)),i&&t.add(t=new s.ht(t,i)),n)for(var I=0;Ie&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.xQ),a=function(){return function(t,e){this.time=t,this.value=e}}()},8725:(t,e,n)=>{"use strict";n.d(e,{b:()=>r});var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}()},211:(t,e,n)=>{"use strict";n.d(e,{Yc:()=>I,xQ:()=>a});var r=n(655),i=n(2772),o=n(979),g=n(8760),s=n(1016),A=n(8253),C=n(3142),I=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.ZT(e,t),e}(o.L),a=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.ZT(e,t),e.prototype[C.b]=function(){return new I(this)},e.prototype.lift=function(t){var e=new u(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s.N;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i{"use strict";n.d(e,{W:()=>i});var r=n(655),i=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.ZT(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n(8760).w)},979:(t,e,n)=>{"use strict";n.d(e,{L:()=>I});var r=n(655),i=n(4156),o=n(2174),g=n(8760),s=n(3142),A=n(150),C=n(1644),I=function(t){function e(n,r,i){var g=t.call(this)||this;switch(g.syncErrorValue=null,g.syncErrorThrown=!1,g.syncErrorThrowable=!1,g.isStopped=!1,arguments.length){case 0:g.destination=o.c;break;case 1:if(!n){g.destination=o.c;break}if("object"==typeof n){n instanceof e?(g.syncErrorThrowable=n.syncErrorThrowable,g.destination=n,n.add(g)):(g.syncErrorThrowable=!0,g.destination=new a(g,n));break}default:g.syncErrorThrowable=!0,g.destination=new a(g,n,r,i)}return g}return r.ZT(e,t),e.prototype[s.b]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(g.w),a=function(t){function e(e,n,r,g){var s,A=t.call(this)||this;A._parentSubscriber=e;var C=A;return(0,i.m)(n)?s=n:n&&(s=n.next,r=n.error,g=n.complete,n!==o.c&&(C=Object.create(n),(0,i.m)(C.unsubscribe)&&A.add(C.unsubscribe.bind(C)),C.unsubscribe=A.unsubscribe.bind(A))),A._context=C,A._next=s,A._error=r,A._complete=g,A}return r.ZT(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;A.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=A.v.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,C.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,C.z)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};A.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),A.v.useDeprecatedSynchronousErrorHandling)throw t;(0,C.z)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!A.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return A.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):((0,C.z)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(I)},8760:(t,e,n)=>{"use strict";n.d(e,{w:()=>s});var r=n(9026),i=n(2009),o=n(4156),g=n(8782),s=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this,s=n._parentOrParents,C=n._ctorUnsubscribe,I=n._unsubscribe,a=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,s instanceof t)s.remove(this);else if(null!==s)for(var u=0;u{"use strict";n.d(e,{v:()=>i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack,r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},7604:(t,e,n)=>{"use strict";n.d(e,{Ds:()=>A,IY:()=>s,ft:()=>C});var r=n(655),i=n(979),o=n(2772),g=n(7843),s=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return r.ZT(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(i.L),A=(i.L,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.ZT(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.L));function C(t,e){if(!e.closed){if(t instanceof o.y)return t.subscribe(e);var n;try{n=(0,g.s)(t)(e)}catch(t){e.error(t)}return n}}i.L},3140:(t,e,n)=>{"use strict";n.d(e,{N:()=>I,c:()=>C});var r=n(655),i=n(211),o=n(2772),g=n(979),s=n(8760),A=n(3018),C=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.ZT(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.w).add(this.source.subscribe(new a(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.w.EMPTY)),t},e.prototype.refCount=function(){return(0,A.x)()(this)},e}(o.y),I=function(){var t=C.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),a=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.ZT(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.Yc);g.L},5142:(t,e,n)=>{"use strict";n.d(e,{Ms:()=>a,aj:()=>I});var r=n(655),i=n(7507),o=n(9026),g=n(2039),s=n(2080),A=n(3375),C={};function I(){for(var t=[],e=0;e{"use strict";n.d(e,{z:()=>o});var r=n(8170),i=n(2257);function o(){for(var t=[],e=0;e{"use strict";n.d(e,{P:()=>g});var r=n(2772),i=n(5760),o=n(5631);function g(t){return new r.y((function(e){var n;try{n=t()}catch(t){return void e.error(t)}return(n?(0,i.D)(n):(0,o.c)()).subscribe(e)}))}},5631:(t,e,n)=>{"use strict";n.d(e,{E:()=>i,c:()=>o});var r=n(2772),i=new r.y((function(t){return t.complete()}));function o(t){return t?function(t){return new r.y((function(e){return t.schedule((function(){return e.complete()}))}))}(t):i}},5760:(t,e,n)=>{"use strict";n.d(e,{D:()=>g});var r=n(2772),i=n(7843),o=n(8107);function g(t,e){return e?(0,o.x)(t,e):t instanceof r.y?t:new r.y((0,i.s)(t))}},3375:(t,e,n)=>{"use strict";n.d(e,{n:()=>g});var r=n(2772),i=n(6900),o=n(3109);function g(t,e){return e?(0,o.r)(t,e):new r.y((0,i.V)(t))}},4370:(t,e,n)=>{"use strict";n.d(e,{T:()=>s});var r=n(2772),i=n(7507),o=n(2556),g=n(3375);function s(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof A&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.y?t[0]:(0,o.J)(n)((0,g.n)(t,s))}},8170:(t,e,n)=>{"use strict";n.d(e,{of:()=>g});var r=n(7507),i=n(3375),o=n(3109);function g(){for(var t=[],e=0;e{"use strict";n.d(e,{S3:()=>A});var r=n(655),i=n(9026),o=n(3375),g=n(2039),s=n(2080);function A(){for(var t=[],e=0;e{"use strict";n.d(e,{_:()=>i});var r=n(2772);function i(t,e){return e?new r.y((function(n){return e.schedule(o,0,{error:t,subscriber:n})})):new r.y((function(e){return e.error(t)}))}function o(t){var e=t.error;t.subscriber.error(e)}},9604:(t,e,n)=>{"use strict";n.d(e,{H:()=>s});var r=n(2772),i=n(964),o=n(5812),g=n(7507);function s(t,e,n){void 0===t&&(t=0);var s=-1;return(0,o.k)(e)?s=Number(e)<1?1:Number(e):(0,g.K)(e)&&(n=e),(0,g.K)(n)||(n=i.P),new r.y((function(e){var r=(0,o.k)(t)?t:+t-n.now();return n.schedule(A,r,{index:0,period:s,subscriber:e})}))}function A(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},5080:(t,e,n)=>{"use strict";n.d(e,{$R:()=>C,mx:()=>I});var r=n(655),i=n(3375),o=n(9026),g=n(979),s=n(999),A=n(7604);function C(){for(var t=[],e=0;ethis.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),l=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r.ZT(e,t),e.prototype[s.hZ]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return(0,A.ft)(this.observable,new A.IY(this))},e}(A.Ds)},2257:(t,e,n)=>{"use strict";n.d(e,{u:()=>i});var r=n(2556);function i(){return(0,r.J)(1)}},6008:(t,e,n)=>{"use strict";n.d(e,{h:()=>o});var r=n(655),i=n(979);function o(t,e){return function(n){return n.lift(new g(t,e))}}var g=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.ZT(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.L)},1120:(t,e,n)=>{"use strict";n.d(e,{T:()=>u,v:()=>A});var r=n(655),i=n(979),o=n(8760),g=n(2772),s=n(211);function A(t,e,n,r){return function(i){return i.lift(new C(t,e,n,r))}}var C=function(){function t(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}return t.prototype.call=function(t,e){return e.subscribe(new I(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),I=function(t){function e(e,n,r,i,o){var g=t.call(this,e)||this;return g.keySelector=n,g.elementSelector=r,g.durationSelector=i,g.subjectSelector=o,g.groups=null,g.attemptedToUnsubscribe=!1,g.count=0,g}return r.ZT(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new s.xQ,n.set(e,i);var o=new u(e,i,this);if(this.destination.next(o),this.durationSelector){var g=void 0;try{g=this.durationSelector(new u(e,i))}catch(t){return void this.error(t)}this.add(g.subscribe(new a(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach((function(e,n){e.error(t)})),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach((function(t,e){t.complete()})),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(i.L),a=function(t){function e(e,n,r){var i=t.call(this,n)||this;return i.key=e,i.group=n,i.parent=r,i}return r.ZT(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(i.L),u=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return r.ZT(e,t),e.prototype._subscribe=function(t){var e=new o.w,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new c(n)),e.add(r.subscribe(t)),e},e}(g.y),c=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return r.ZT(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(o.w)},5709:(t,e,n)=>{"use strict";n.d(e,{U:()=>o});var r=n(655),i=n(979);function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new g(t,e))}}var g=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.ZT(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.L)},2556:(t,e,n)=>{"use strict";n.d(e,{J:()=>o});var r=n(7746),i=n(3608);function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),(0,r.zg)(i.y,t)}},7746:(t,e,n)=>{"use strict";n.d(e,{VS:()=>I,zg:()=>s});var r=n(655),i=n(5709),o=n(5760),g=n(7604);function s(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(s((function(n,r){return(0,o.D)(t(n,r)).pipe((0,i.U)((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new A(t,n))})}var A=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new C(t,this.project,this.concurrent))},t}(),C=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.ZT(e,t),e.prototype._next=function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(g.Ds),I=s},9276:(t,e,n)=>{"use strict";n.d(e,{QV:()=>g,ht:()=>A});var r=n(655),i=n(979),o=n(2632);function g(t,e){return void 0===e&&(e=0),function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new A(t,this.scheduler,this.delay))},t}(),A=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return r.ZT(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new C(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.P.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.P.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(o.P.createComplete()),this.unsubscribe()},e}(i.L),C=function(){return function(t,e){this.notification=t,this.destination=e}}()},3018:(t,e,n)=>{"use strict";n.d(e,{x:()=>o});var r=n(655),i=n(979);function o(){return function(t){return t.lift(new g(t))}}var g=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new s(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.ZT(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(i.L)},3109:(t,e,n)=>{"use strict";n.d(e,{r:()=>o});var r=n(2772),i=n(8760);function o(t,e){return new r.y((function(n){var r=new i.w,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},8107:(t,e,n)=>{"use strict";n.d(e,{x:()=>I});var r=n(2772),i=n(8760),o=n(5050),g=n(3109),s=n(999),A=n(336),C=n(9217);function I(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.L]}(t))return function(t,e){return new r.y((function(n){var r=new i.w;return r.add(e.schedule((function(){var i=t[o.L]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if((0,A.t)(t))return function(t,e){return new r.y((function(n){var r=new i.w;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if((0,C.z)(t))return(0,g.r)(t,e);if(function(t){return t&&"function"==typeof t[s.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.y((function(n){var r,o=new i.w;return o.add((function(){r&&"function"==typeof r.return&&r.return()})),o.add(e.schedule((function(){r=t[s.hZ](),o.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),o}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}},6114:(t,e,n)=>{"use strict";n.d(e,{o:()=>i});var r=n(655),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.ZT(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.ZT(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(8760).w))},8399:(t,e,n)=>{"use strict";n.d(e,{v:()=>o});var r=n(655),i=n(8725),o=function(t){function e(n,r){void 0===r&&(r=i.b.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.ZT(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i.b)},6650:(t,e,n)=>{"use strict";n.d(e,{e:()=>I,E:()=>C});var r=n(655),i=1,o=function(){return Promise.resolve()}(),g={};function s(t){return t in g&&(delete g[t],!0)}var A=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.ZT(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=(A=e.flush.bind(e,null),C=i++,g[C]=!0,o.then((function(){return s(C)&&A()})),C)));var A,C},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(s(n),e.scheduled=void 0)},e}(n(6114).o),C=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.ZT(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r{"use strict";n.d(e,{P:()=>o,z:()=>i});var r=n(6114),i=new(n(8399).v)(r.o),o=i},2546:(t,e,n)=>{"use strict";n.d(e,{c:()=>g,N:()=>o});var r=n(655),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.ZT(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(n(6114).o),o=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.ZT(e,t),e}(n(8399).v))(i),g=o},999:(t,e,n)=>{"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,{hZ:()=>i});var i=r()},5050:(t,e,n)=>{"use strict";n.d(e,{L:()=>r});var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},3142:(t,e,n)=>{"use strict";n.d(e,{b:()=>r});var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},6565:(t,e,n)=>{"use strict";n.d(e,{W:()=>r});var r=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},6929:(t,e,n)=>{"use strict";n.d(e,{K:()=>r});var r=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}()},1016:(t,e,n)=>{"use strict";n.d(e,{N:()=>r});var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},1462:(t,e,n)=>{"use strict";n.d(e,{W:()=>r});var r=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}()},8782:(t,e,n)=>{"use strict";n.d(e,{B:()=>r});var r=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}()},3642:(t,e,n)=>{"use strict";n.d(e,{_:()=>i});var r=n(979);function i(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r.L?i:null}return!0}},1644:(t,e,n)=>{"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,{z:()=>r})},3608:(t,e,n)=>{"use strict";function r(t){return t}n.d(e,{y:()=>r})},9026:(t,e,n)=>{"use strict";n.d(e,{k:()=>r});var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},9217:(t,e,n)=>{"use strict";n.d(e,{z:()=>r});var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},4156:(t,e,n)=>{"use strict";function r(t){return"function"==typeof t}n.d(e,{m:()=>r})},5812:(t,e,n)=>{"use strict";n.d(e,{k:()=>i});var r=n(9026);function i(t){return!(0,r.k)(t)&&t-parseFloat(t)+1>=0}},2009:(t,e,n)=>{"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,{K:()=>r})},336:(t,e,n)=>{"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{t:()=>r})},7507:(t,e,n)=>{"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,{K:()=>r})},3306:(t,e,n)=>{"use strict";function r(){}n.d(e,{Z:()=>r})},8463:(t,e,n)=>{"use strict";function r(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}n.d(e,{f:()=>r})},2561:(t,e,n)=>{"use strict";n.d(e,{U:()=>o,z:()=>i});var r=n(3608);function i(){for(var t=[],e=0;e{"use strict";n.d(e,{s:()=>I});var r=n(6900),i=n(1644),o=n(999),g=n(5050),s=n(9217),A=n(336),C=n(2009),I=function(t){if(t&&"function"==typeof t[g.L])return I=t,function(t){var e=I[g.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,s.z)(t))return(0,r.V)(t);if((0,A.t)(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.z),t};if(t&&"function"==typeof t[o.hZ])return e=t,function(t){for(var n=e[o.hZ]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,I,a=(0,C.K)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+a+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},6900:(t,e,n)=>{"use strict";n.d(e,{V:()=>r});var r=function(t){return function(e){for(var n=0,r=t.length;n{"use strict";n.d(e,{D:()=>s});var r=n(655),i=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.ZT(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n(979).L),o=n(7843),g=n(2772);function s(t,e,n,r,s){if(void 0===s&&(s=new i(t,n,r)),!s.closed)return e instanceof g.y?e.subscribe(s):(0,o.s)(e)(s)}},1717:(t,e,n)=>{"use strict";n.r(e),n.d(e,{audit:()=>o,auditTime:()=>I,buffer:()=>a,bufferCount:()=>h,bufferTime:()=>y,bufferToggle:()=>S,bufferWhen:()=>R,catchError:()=>j,combineAll:()=>z,combineLatest:()=>V,concat:()=>W,concatAll:()=>Y.u,concatMap:()=>K,concatMapTo:()=>Q,count:()=>X,debounce:()=>$,debounceTime:()=>nt,defaultIfEmpty:()=>gt,delay:()=>at,delayWhen:()=>dt,dematerialize:()=>bt,distinct:()=>_t,distinctUntilChanged:()=>Ot,distinctUntilKeyChanged:()=>St,elementAt:()=>Ut,endWith:()=>Gt,every:()=>Wt,exhaust:()=>Kt,exhaustMap:()=>Jt,expand:()=>ee,filter:()=>Nt.h,finalize:()=>ie,find:()=>se,findIndex:()=>Ie,first:()=>ue,flatMap:()=>H.VS,groupBy:()=>ce.v,ignoreElements:()=>le,isEmpty:()=>fe,last:()=>we,map:()=>qt.U,mapTo:()=>_e,materialize:()=>Oe,max:()=>Me,merge:()=>Be,mergeAll:()=>Le.J,mergeMap:()=>H.zg,mergeMapTo:()=>Fe,mergeScan:()=>ze,min:()=>Ve,multicast:()=>We,observeOn:()=>He.QV,onErrorResumeNext:()=>Ke,pairwise:()=>qe,partition:()=>en,pluck:()=>nn,publish:()=>on,publishBehavior:()=>sn,publishLast:()=>Cn,publishReplay:()=>an,race:()=>cn,reduce:()=>De,refCount:()=>En.x,repeat:()=>ln,repeatWhen:()=>fn,retry:()=>yn,retryWhen:()=>wn,sample:()=>On,sampleTime:()=>Sn,scan:()=>Se,sequenceEqual:()=>Dn,share:()=>Fn,shareReplay:()=>zn,single:()=>Zn,skip:()=>Gn,skipLast:()=>Hn,skipUntil:()=>Xn,skipWhile:()=>$n,startWith:()=>nr,subscribeOn:()=>gr,switchAll:()=>ar,switchMap:()=>Ar,switchMapTo:()=>ur,take:()=>Ft,takeLast:()=>ye,takeUntil:()=>cr,takeWhile:()=>dr,tap:()=>br,throttle:()=>xr,throttleTime:()=>kr,throwIfEmpty:()=>Dt,timeInterval:()=>Rr,timeout:()=>zr,timeoutWith:()=>jr,timestamp:()=>Zr,toArray:()=>Gr,window:()=>Wr,windowCount:()=>Kr,windowTime:()=>qr,windowToggle:()=>ii,windowWhen:()=>si,withLatestFrom:()=>Ii,zip:()=>li,zipAll:()=>hi});var r=n(655),i=n(7604);function o(t){return function(e){return e.lift(new g(t))}}var g=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.durationSelector))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.ZT(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(t){return this.destination.error(t)}var n=(0,i.ft)(e,new i.IY(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this,e=t.value,n=t.hasValue,r=t.throttled;r&&(this.remove(r),this.throttled=void 0,r.unsubscribe()),n&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(i.Ds),A=n(964),C=n(9604);function I(t,e){return void 0===e&&(e=A.P),o((function(){return(0,C.H)(t,e)}))}function a(t){return function(e){return e.lift(new u(t))}}var u=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.closingNotifier))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add((0,i.ft)(n,new i.IY(r))),r}return r.ZT(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(i.Ds),l=n(979);function h(t,e){return void 0===e&&(e=null),function(n){return n.lift(new d(t,e))}}var d=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?p:f}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}return r.ZT(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(l.L),p=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r.ZT(e,t),e.prototype._next=function(t){var e=this,n=e.bufferSize,r=e.startBufferEvery,i=e.buffers,o=e.count;this.count++,o%r==0&&i.push([]);for(var g=i.length;g--;){var s=i[g];s.push(t),s.length===n&&(i.splice(g,1),this.destination.next(s))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)},e}(l.L),v=n(7507);function y(t){var e=arguments.length,n=A.P;(0,v.K)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new b(t,r,i,n))}}var b=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new w(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),m=function(){return function(){this.buffer=[]}}(),w=function(t){function e(e,n,r,i,o){var g=t.call(this,e)||this;g.bufferTimeSpan=n,g.bufferCreationInterval=r,g.maxBufferSize=i,g.scheduler=o,g.contexts=[];var s=g.openContext();if(g.timespanOnly=null==r||r<0,g.timespanOnly){var A={subscriber:g,context:s,bufferTimeSpan:n};g.add(s.closeAction=o.schedule(_,n,A))}else{var C={subscriber:g,context:s},I={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:g,scheduler:o};g.add(s.closeAction=o.schedule(E,n,C)),g.add(o.schedule(x,r,I))}return g}return r.ZT(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(_,n,r))}},e.prototype.openContext=function(){var t=new m;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(l.L);function _(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function x(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(E,n,{subscriber:r,context:o})),this.schedule(t,e))}function E(t){var e=t.subscriber,n=t.context;e.closeContext(n)}var O=n(8760),k=n(2080),T=n(2039);function S(t,e){return function(n){return n.lift(new P(t,e))}}var P=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new N(t,this.openings,this.closingSelector))},t}(),N=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.closingSelector=r,i.contexts=[],i.add((0,k.D)(i,n)),i}return r.ZT(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,r=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(r),r.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new O.w,r={buffer:[],subscription:n};e.push(r);var i=(0,k.D)(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},e}(T.L);function R(t){return function(e){return e.lift(new D(t))}}var D=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new M(t,this.closingSelector))},t}(),M=function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.ZT(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{e=(0,this.closingSelector)()}catch(t){return this.error(t)}t=new O.w,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add((0,i.ft)(e,new i.IY(this))),this.subscribing=!1},e}(i.Ds);function j(t){return function(e){var n=new B(t),r=e.lift(n);return n.caught=r}}var B=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new L(t,this.selector,this.caught))},t}(),L=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return r.ZT(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new i.IY(this);this.add(r);var o=(0,i.ft)(n,r);o!==r&&this.add(o)}},e}(i.Ds),F=n(5142);function z(t){return function(e){return e.lift(new F.Ms(t))}}var Z=n(9026),U=n(5760);function V(){for(var t=[],e=0;e0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new lt(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(It.P.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(It.P.createComplete()),this.unsubscribe()},e}(l.L),lt=function(){return function(t,e){this.time=t,this.notification=e}}(),ht=n(2772);function dt(t,e){return e?function(n){return new vt(n,e).lift(new ft(t))}:function(e){return e.lift(new ft(t))}}var ft=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new pt(t,this.delayDurationSelector))},t}(),pt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return r.ZT(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=(0,k.D)(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(T.L),vt=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}return r.ZT(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new yt(t,this.source))},e}(ht.y),yt=function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return r.ZT(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(l.L);function bt(){return function(t){return t.lift(new mt)}}var mt=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new wt(t))},t}(),wt=function(t){function e(e){return t.call(this,e)||this}return r.ZT(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(l.L);function _t(t,e){return function(n){return n.lift(new xt(t,e))}}var xt=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new Et(t,this.keySelector,this.flushes))},t}(),Et=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=n,o.values=new Set,r&&o.add((0,i.ft)(r,new i.IY(o))),o}return r.ZT(e,t),e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(i.Ds);function Ot(t,e){return function(n){return n.lift(new kt(t,e))}}var kt=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Tt(t,this.compare,this.keySelector))},t}(),Tt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.ZT(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(l.L);function St(t,e){return Ot((function(n,r){return e?e(n[t],r[t]):n[t]===r[t]}))}var Pt=n(6565),Nt=n(6008),Rt=n(6929);function Dt(t){return void 0===t&&(t=Bt),function(e){return e.lift(new Mt(t))}}var Mt=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new jt(t,this.errorFactory))},t}(),jt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.errorFactory=n,r.hasValue=!1,r}return r.ZT(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(l.L);function Bt(){return new Rt.K}var Lt=n(5631);function Ft(t){return function(e){return 0===t?(0,Lt.c)():e.lift(new zt(t))}}var zt=function(){function t(t){if(this.total=t,this.total<0)throw new Pt.W}return t.prototype.call=function(t,e){return e.subscribe(new Zt(t,this.total))},t}(),Zt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.ZT(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(l.L);function Ut(t,e){if(t<0)throw new Pt.W;var n=arguments.length>=2;return function(r){return r.pipe((0,Nt.h)((function(e,n){return n===t})),Ft(1),n?gt(e):Dt((function(){return new Pt.W})))}}var Vt=n(8170);function Gt(){for(var t=[],e=0;e0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(i.Ds);function ie(t){return function(e){return e.lift(new oe(t))}}var oe=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new ge(t,this.callback))},t}(),ge=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new O.w(n)),r}return r.ZT(e,t),e}(l.L);function se(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new Ae(t,n,!1,e))}}var Ae=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new Ce(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),Ce=function(t){function e(e,n,r,i,o){var g=t.call(this,e)||this;return g.predicate=n,g.source=r,g.yieldIndex=i,g.thisArg=o,g.index=0,g}return r.ZT(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(l.L);function Ie(t,e){return function(n){return n.lift(new Ae(t,n,!0,e))}}var ae=n(3608);function ue(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?(0,Nt.h)((function(e,n){return t(e,n,r)})):ae.y,Ft(1),n?gt(e):Dt((function(){return new Rt.K})))}}var ce=n(1120);function le(){return function(t){return t.lift(new he)}}var he=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new de(t))},t}(),de=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.ZT(e,t),e.prototype._next=function(t){},e}(l.L);function fe(){return function(t){return t.lift(new pe)}}var pe=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ve(t))},t}(),ve=function(t){function e(e){return t.call(this,e)||this}return r.ZT(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(l.L);function ye(t){return function(e){return 0===t?(0,Lt.c)():e.lift(new be(t))}}var be=function(){function t(t){if(this.total=t,this.total<0)throw new Pt.W}return t.prototype.call=function(t,e){return e.subscribe(new me(t,this.total))},t}(),me=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.ZT(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2;return function(r){return r.pipe(t?(0,Nt.h)((function(e,n){return t(e,n,r)})):ae.y,ye(1),n?gt(e):Dt((function(){return new Rt.K})))}}function _e(t){return function(e){return e.lift(new xe(t))}}var xe=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new Ee(t,this.value))},t}(),Ee=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.ZT(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(l.L);function Oe(){return function(t){return t.lift(new ke)}}var ke=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Te(t))},t}(),Te=function(t){function e(e){return t.call(this,e)||this}return r.ZT(e,t),e.prototype._next=function(t){this.destination.next(It.P.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(It.P.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(It.P.createComplete()),t.complete()},e}(l.L);function Se(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Pe(t,e,n))}}var Pe=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Ne(t,this.accumulator,this.seed,this.hasSeed))},t}(),Ne=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.ZT(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(l.L),Re=n(2561);function De(t,e){return arguments.length>=2?function(n){return(0,Re.z)(Se(t,e),ye(1),gt(e))(n)}:function(e){return(0,Re.z)(Se((function(e,n,r){return t(e,n,r+1)})),ye(1))(e)}}function Me(t){return De("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}var je=n(4370);function Be(){for(var t=[],e=0;e0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(i.Ds);function Ve(t){return De("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(l.L);function fn(t){return function(e){return e.lift(new pn(t))}}var pn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new vn(t,this.notifier,e))},t}(),vn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r.ZT(e,t),e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new rn.xQ;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=(0,i.ft)(e,new i.IY(this))},e}(i.Ds);function yn(t){return void 0===t&&(t=-1),function(e){return e.lift(new bn(t,e))}}var bn=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new mn(t,this.count,this.source))},t}(),mn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.ZT(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(l.L);function wn(t){return function(e){return e.lift(new _n(t,e))}}var _n=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new xn(t,this.notifier,this.source))},t}(),xn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}return r.ZT(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,o=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new rn.xQ;try{r=(0,this.notifier)(n)}catch(e){return t.prototype.error.call(this,e)}o=(0,i.ft)(r,new i.IY(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=o,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(i.Ds),En=n(3018);function On(t){return function(e){return e.lift(new kn(t))}}var kn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Tn(t),r=e.subscribe(n);return r.add((0,i.ft)(this.notifier,new i.IY(n))),r},t}(),Tn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return r.ZT(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(i.Ds);function Sn(t,e){return void 0===e&&(e=A.P),function(n){return n.lift(new Pn(t,e))}}var Pn=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Nn(t,this.period,this.scheduler))},t}(),Nn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(Rn,n,{subscriber:i,period:n})),i}return r.ZT(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(l.L);function Rn(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function Dn(t,e){return function(n){return n.lift(new Mn(t,e))}}var Mn=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new jn(t,this.compareTo,this.comparator))},t}(),jn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new Bn(e,i))),i}return r.ZT(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this,e=t._a,n=t._b,r=t.comparator;e.length>0&&n.length>0;){var i=e.shift(),o=n.shift(),g=!1;try{g=r?r(i,o):i===o}catch(t){this.destination.error(t)}g||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(l.L),Bn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return r.ZT(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(l.L);function Ln(){return new rn.xQ}function Fn(){return function(t){return(0,En.x)()(We(Ln)(t))}}function zn(t,e,n){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,r=t.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=t.windowTime,g=void 0===o?Number.POSITIVE_INFINITY:o,s=t.refCount,A=t.scheduler,C=0,I=!1,a=!1;return function(t){var r;C++,!e||I?(I=!1,e=new In.t(i,g,A),r=e.subscribe(this),n=t.subscribe({next:function(t){e.next(t)},error:function(t){I=!0,e.error(t)},complete:function(){a=!0,n=void 0,e.complete()}}),a&&(n=void 0)):r=e.subscribe(this),this.add((function(){C--,r.unsubscribe(),r=void 0,n&&!a&&s&&0===C&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(r))}}function Zn(t){return function(e){return e.lift(new Un(t,e))}}var Un=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Vn(t,this.predicate,this.source))},t}(),Vn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r.ZT(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new Rt.K)},e}(l.L);function Gn(t){return function(e){return e.lift(new Wn(t))}}var Wn=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new Yn(t,this.total))},t}(),Yn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.ZT(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(l.L);function Hn(t){return function(e){return e.lift(new Kn(t))}}var Kn=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new Pt.W}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new l.L(t)):e.subscribe(new Qn(t,this._skipCount))},t}(),Qn=function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r.ZT(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,g=0;g=0&&s%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var A=new rn.xQ;i.push(A),n.next(A)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(l.L);function qr(t){var e=A.P,n=null,r=Number.POSITIVE_INFINITY;return(0,v.K)(arguments[3])&&(e=arguments[3]),(0,v.K)(arguments[2])?e=arguments[2]:(0,ir.k)(arguments[2])&&(r=Number(arguments[2])),(0,v.K)(arguments[1])?e=arguments[1]:(0,ir.k)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new Jr(t,n,r,e))}}var Jr=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new ti(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),$r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return r.ZT(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(rn.xQ),ti=function(t){function e(e,n,r,i,o){var g=t.call(this,e)||this;g.destination=e,g.windowTimeSpan=n,g.windowCreationInterval=r,g.maxWindowSize=i,g.scheduler=o,g.windows=[];var s=g.openWindow();if(null!==r&&r>=0){var A={subscriber:g,window:s,context:null},C={windowTimeSpan:n,windowCreationInterval:r,subscriber:g,scheduler:o};g.add(o.schedule(ri,n,A)),g.add(o.schedule(ni,r,C))}else{var I={subscriber:g,window:s,windowTimeSpan:n};g.add(o.schedule(ei,n,I))}return g}return r.ZT(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new $r;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(l.L);function ei(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function ni(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),g=this,s={action:g,subscription:null},A={subscriber:n,window:o,context:s};s.subscription=r.schedule(ri,e,A),g.add(s.subscription),g.schedule(t,i)}function ri(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}function ii(t,e){return function(n){return n.lift(new oi(t,e))}}var oi=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new gi(t,this.openings,this.closingSelector))},t}(),gi=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=(0,k.D)(i,n,n)),i}return r.ZT(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(T.L),ci=n(5080);function li(){for(var t=[],e=0;e{var r=n(8764),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function g(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=g),g.prototype=Object.create(i.prototype),o(i,g),g.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},g.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},g.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},g.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},2553:(t,e,n)=>{"use strict";var r=n(9509).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=A,this.end=C,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=I,this.end=a,e=3;break;default:return this.write=u,void(this.end=c)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function g(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function A(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function C(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function I(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function a(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function u(t){return t.toString(this.encoding)}function c(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(i>0&&(t.lastNeed=i-1),i):--r=0?(i>0&&(t.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},655:(t,e,n)=>{"use strict";n.d(e,{ZT:()=>i});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},8309:(t,e,n)=>{t.exports=n(3363)},9022:(t,e,n)=>{t.exports=n(8065)},86:(t,e,n)=>{t.exports=n(6279)},7606:(t,e,n)=>{t.exports=n(1798)},4282:(t,e,n)=>{t.exports=n(2527)},2018:(t,e,n)=>{t.exports=n(6209)},8222:(t,e,n)=>{t.exports=n(3059)},6226:(t,e,n)=>{t.exports=n(7460)},7198:(t,e,n)=>{t.exports=n(7989)},3733:(t,e,n)=>{t.exports=n(2547)},8886:(t,e,n)=>{t.exports=n(2010)},9030:(t,e,n)=>{t.exports=n(3726)},7445:(t,e,n)=>{t.exports=n(3685)},2472:(t,e,n)=>{t.exports=n(6600)},8994:(t,e,n)=>{t.exports=n(9759)},24:(t,e,n)=>{t.exports=n(1384)},6115:t=>{t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},6690:t=>{t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},9728:(t,e,n)=>{var r=n(4062);function i(t,e){for(var n=0;n{function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},1655:(t,e,n)=>{var r=n(6015);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},4836:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},4993:(t,e,n)=>{var r=n(8698).default,i=n(6115);t.exports=function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},6015:t=>{function e(n,r){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},5036:(t,e,n)=>{var r=n(8698).default;t.exports=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},4062:(t,e,n)=>{var r=n(8698).default,i=n(5036);t.exports=function(t){var e=i(t,"string");return"symbol"===r(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},8698:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{EventController:()=>Zj,NEOVIS_ADVANCED_CONFIG:()=>Hj,NEOVIS_DEFAULT_CONFIG:()=>Yj,NeoVis:()=>bB,NeoVisEvents:()=>zj,default:()=>DB,migrateFromOldConfig:()=>RB,objectToTitleHtml:()=>tB,objectToTitleString:()=>eB});var t=n(7445),e=n(2472),i=n(8994);function o(t){return o="function"==typeof e&&"symbol"==typeof i?function(t){return typeof t}:function(t){return t&&"function"==typeof e&&t.constructor===e&&t!==e.prototype?"symbol":typeof t},o(t)}var g=n(24);function s(e,n,r){return(n=function(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var n=t[g];if(void 0!==n){var r=n.call(t,"string");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===o(e)?e:String(e)}(n))in e?t(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function A(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function C(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,A(t,e,"set"),n),n}function I(t,e){return function(t,e){return e.get?e.get.call(t):e.value}(t,A(t,e,"get"))}var a=n(8309),u=n.n(a),c=n(8222),l=n.n(c),h=n(7606),d=n.n(h),f=n(6226),p=n.n(f),v=n(7198),y=n.n(v),b=n(4282),m=n.n(b),w=n(9022),_=n.n(w),x=n(2018),E=n.n(x),O=n(8886),k=n.n(O),T=n(9030),S=n.n(T),P=n(86),N=n.n(P),R=n(7499),D=n(758),M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function j(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var B={},L={get exports(){return B},set exports(t){B=t}},F=function(t){return t&&t.Math==Math&&t},z=F("object"==typeof globalThis&&globalThis)||F("object"==typeof window&&window)||F("object"==typeof self&&self)||F("object"==typeof M&&M)||function(){return this}()||Function("return this")(),Z=function(t){try{return!!t()}catch(t){return!0}},U=!Z((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),V=U,G=Function.prototype,W=G.apply,Y=G.call,H="object"==typeof Reflect&&Reflect.apply||(V?Y.bind(W):function(){return Y.apply(W,arguments)}),K=U,Q=Function.prototype,X=Q.call,q=K&&Q.bind.bind(X,X),J=K?q:function(t){return function(){return X.apply(t,arguments)}},$=J,tt=$({}.toString),et=$("".slice),nt=function(t){return et(tt(t),8,-1)},rt=nt,it=J,ot=function(t){if("Function"===rt(t))return it(t)},gt="object"==typeof document&&document.all,st={all:gt,IS_HTMLDDA:void 0===gt&&void 0!==gt},At=st.all,Ct=st.IS_HTMLDDA?function(t){return"function"==typeof t||t===At}:function(t){return"function"==typeof t},It={},at=!Z((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ut=U,ct=Function.prototype.call,lt=ut?ct.bind(ct):function(){return ct.apply(ct,arguments)},ht={},dt={}.propertyIsEnumerable,ft=Object.getOwnPropertyDescriptor,pt=ft&&!dt.call({1:2},1);ht.f=pt?function(t){var e=ft(this,t);return!!e&&e.enumerable}:dt;var vt,yt,bt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},mt=Z,wt=nt,_t=Object,xt=J("".split),Et=mt((function(){return!_t("z").propertyIsEnumerable(0)}))?function(t){return"String"==wt(t)?xt(t,""):_t(t)}:_t,Ot=function(t){return null==t},kt=Ot,Tt=TypeError,St=function(t){if(kt(t))throw Tt("Can't call method on "+t);return t},Pt=Et,Nt=St,Rt=function(t){return Pt(Nt(t))},Dt=Ct,Mt=st.all,jt=st.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Dt(t)||t===Mt}:function(t){return"object"==typeof t?null!==t:Dt(t)},Bt={},Lt=Bt,Ft=z,zt=Ct,Zt=function(t){return zt(t)?t:void 0},Ut=function(t,e){return arguments.length<2?Zt(Lt[t])||Zt(Ft[t]):Lt[t]&&Lt[t][e]||Ft[t]&&Ft[t][e]},Vt=J({}.isPrototypeOf),Gt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Wt=z,Yt=Gt,Ht=Wt.process,Kt=Wt.Deno,Qt=Ht&&Ht.versions||Kt&&Kt.version,Xt=Qt&&Qt.v8;Xt&&(yt=(vt=Xt.split("."))[0]>0&&vt[0]<4?1:+(vt[0]+vt[1])),!yt&&Yt&&(!(vt=Yt.match(/Edge\/(\d+)/))||vt[1]>=74)&&(vt=Yt.match(/Chrome\/(\d+)/))&&(yt=+vt[1]);var qt=yt,Jt=qt,$t=Z,te=!!Object.getOwnPropertySymbols&&!$t((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Jt&&Jt<41})),ee=te&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ne=Ut,re=Ct,ie=Vt,oe=Object,ge=ee?function(t){return"symbol"==typeof t}:function(t){var e=ne("Symbol");return re(e)&&ie(e.prototype,oe(t))},se=String,Ae=function(t){try{return se(t)}catch(t){return"Object"}},Ce=Ct,Ie=Ae,ae=TypeError,ue=function(t){if(Ce(t))return t;throw ae(Ie(t)+" is not a function")},ce=ue,le=Ot,he=function(t,e){var n=t[e];return le(n)?void 0:ce(n)},de=lt,fe=Ct,pe=jt,ve=TypeError,ye={},be={get exports(){return ye},set exports(t){ye=t}},me=z,we=Object.defineProperty,_e="__core-js_shared__",xe=z[_e]||function(t,e){try{we(me,t,{value:e,configurable:!0,writable:!0})}catch(n){me[t]=e}return e}(_e,{}),Ee=xe;(be.exports=function(t,e){return Ee[t]||(Ee[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Oe=St,ke=Object,Te=function(t){return ke(Oe(t))},Se=Te,Pe=J({}.hasOwnProperty),Ne=Object.hasOwn||function(t,e){return Pe(Se(t),e)},Re=J,De=0,Me=Math.random(),je=Re(1..toString),Be=function(t){return"Symbol("+(void 0===t?"":t)+")_"+je(++De+Me,36)},Le=ye,Fe=Ne,ze=Be,Ze=te,Ue=ee,Ve=z.Symbol,Ge=Le("wks"),We=Ue?Ve.for||Ve:Ve&&Ve.withoutSetter||ze,Ye=function(t){return Fe(Ge,t)||(Ge[t]=Ze&&Fe(Ve,t)?Ve[t]:We("Symbol."+t)),Ge[t]},He=lt,Ke=jt,Qe=ge,Xe=he,qe=TypeError,Je=Ye("toPrimitive"),$e=function(t,e){if(!Ke(t)||Qe(t))return t;var n,r=Xe(t,Je);if(r){if(void 0===e&&(e="default"),n=He(r,t,e),!Ke(n)||Qe(n))return n;throw qe("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&fe(n=t.toString)&&!pe(r=de(n,t)))return r;if(fe(n=t.valueOf)&&!pe(r=de(n,t)))return r;if("string"!==e&&fe(n=t.toString)&&!pe(r=de(n,t)))return r;throw ve("Can't convert object to primitive value")}(t,e)},tn=ge,en=function(t){var e=$e(t,"string");return tn(e)?e:e+""},nn=jt,rn=z.document,on=nn(rn)&&nn(rn.createElement),gn=function(t){return on?rn.createElement(t):{}},sn=gn,An=!at&&!Z((function(){return 7!=Object.defineProperty(sn("div"),"a",{get:function(){return 7}}).a})),Cn=at,In=lt,an=ht,un=bt,cn=Rt,ln=en,hn=Ne,dn=An,fn=Object.getOwnPropertyDescriptor;It.f=Cn?fn:function(t,e){if(t=cn(t),e=ln(e),dn)try{return fn(t,e)}catch(t){}if(hn(t,e))return un(!In(an.f,t,e),t[e])};var pn=Z,vn=Ct,yn=/#|\.prototype\./,bn=function(t,e){var n=wn[mn(t)];return n==xn||n!=_n&&(vn(e)?pn(e):!!e)},mn=bn.normalize=function(t){return String(t).replace(yn,".").toLowerCase()},wn=bn.data={},_n=bn.NATIVE="N",xn=bn.POLYFILL="P",En=bn,On=ue,kn=U,Tn=ot(ot.bind),Sn=function(t,e){return On(t),void 0===e?t:kn?Tn(t,e):function(){return t.apply(e,arguments)}},Pn={},Nn=at&&Z((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Rn=jt,Dn=String,Mn=TypeError,jn=function(t){if(Rn(t))return t;throw Mn(Dn(t)+" is not an object")},Bn=at,Ln=An,Fn=Nn,zn=jn,Zn=en,Un=TypeError,Vn=Object.defineProperty,Gn=Object.getOwnPropertyDescriptor,Wn="enumerable",Yn="configurable",Hn="writable";Pn.f=Bn?Fn?function(t,e,n){if(zn(t),e=Zn(e),zn(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Hn in n&&!n[Hn]){var r=Gn(t,e);r&&r[Hn]&&(t[e]=n.value,n={configurable:Yn in n?n[Yn]:r[Yn],enumerable:Wn in n?n[Wn]:r[Wn],writable:!1})}return Vn(t,e,n)}:Vn:function(t,e,n){if(zn(t),e=Zn(e),zn(n),Ln)try{return Vn(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Un("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Kn=Pn,Qn=bt,Xn=at?function(t,e,n){return Kn.f(t,e,Qn(1,n))}:function(t,e,n){return t[e]=n,t},qn=z,Jn=H,$n=ot,tr=Ct,er=It.f,nr=En,rr=Bt,ir=Sn,or=Xn,gr=Ne,sr=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return Jn(t,this,arguments)};return e.prototype=t.prototype,e},Ar=function(t,e){var n,r,i,o,g,s,A,C,I,a=t.target,u=t.global,c=t.stat,l=t.proto,h=u?qn:c?qn[a]:(qn[a]||{}).prototype,d=u?rr:rr[a]||or(rr,a,{})[a],f=d.prototype;for(o in e)r=!(n=nr(u?o:a+(c?".":"#")+o,t.forced))&&h&&gr(h,o),s=d[o],r&&(A=t.dontCallGetSet?(I=er(h,o))&&I.value:h[o]),g=r&&A?A:e[o],r&&typeof s==typeof g||(C=t.bind&&r?ir(g,qn):t.wrap&&r?sr(g):l&&tr(g)?$n(g):g,(t.sham||g&&g.sham||s&&s.sham)&&or(C,"sham",!0),or(d,o,C),l&&(gr(rr,i=a+"Prototype")||or(rr,i,{}),or(rr[i],o,g),t.real&&f&&(n||!f[o])&&or(f,o,g)))},Cr=Math.ceil,Ir=Math.floor,ar=Math.trunc||function(t){var e=+t;return(e>0?Ir:Cr)(e)},ur=function(t){var e=+t;return e!=e||0===e?0:ar(e)},cr=ur,lr=Math.max,hr=Math.min,dr=function(t,e){var n=cr(t);return n<0?lr(n+e,0):hr(n,e)},fr=ur,pr=Math.min,vr=function(t){return(e=t.length)>0?pr(fr(e),9007199254740991):0;var e},yr=Rt,br=dr,mr=vr,wr=function(t){return function(e,n,r){var i,o=yr(e),g=mr(o),s=br(r,g);if(t&&n!=n){for(;g>s;)if((i=o[s++])!=i)return!0}else for(;g>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},_r={includes:wr(!0),indexOf:wr(!1)},xr={},Er=Ne,Or=Rt,kr=_r.indexOf,Tr=xr,Sr=J([].push),Pr=function(t,e){var n,r=Or(t),i=0,o=[];for(n in r)!Er(Tr,n)&&Er(r,n)&&Sr(o,n);for(;e.length>i;)Er(r,n=e[i++])&&(~kr(o,n)||Sr(o,n));return o},Nr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Rr=Pr,Dr=Nr,Mr=Object.keys||function(t){return Rr(t,Dr)},jr={};jr.f=Object.getOwnPropertySymbols;var Br=at,Lr=J,Fr=lt,zr=Z,Zr=Mr,Ur=jr,Vr=ht,Gr=Te,Wr=Et,Yr=Object.assign,Hr=Object.defineProperty,Kr=Lr([].concat),Qr=!Yr||zr((function(){if(Br&&1!==Yr({b:1},Yr(Hr({},"a",{enumerable:!0,get:function(){Hr(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Yr({},t)[n]||Zr(Yr({},e)).join("")!=r}))?function(t,e){for(var n=Gr(t),r=arguments.length,i=1,o=Ur.f,g=Vr.f;r>i;)for(var s,A=Wr(arguments[i++]),C=o?Kr(Zr(A),o(A)):Zr(A),I=C.length,a=0;I>a;)s=C[a++],Br&&!Fr(g,A,s)||(n[s]=A[s]);return n}:Yr,Xr=Qr;Ar({target:"Object",stat:!0,arity:2,forced:Object.assign!==Xr},{assign:Xr});var qr=Bt.Object.assign;!function(t){t.exports=qr}(L);var Jr=j(B),$r={},ti={get exports(){return $r},set exports(t){$r=t}},ei=J([].slice),ni=J,ri=ue,ii=jt,oi=Ne,gi=ei,si=U,Ai=Function,Ci=ni([].concat),Ii=ni([].join),ai={},ui=si?Ai.bind:function(t){var e=ri(this),n=e.prototype,r=gi(arguments,1),i=function(){var n=Ci(r,gi(arguments));return this instanceof i?function(t,e,n){if(!oi(ai,e)){for(var r=[],i=0;i=.1;)(l=+o[a++%g])>I&&(l=I),c=Math.sqrt(l*l/(1+C*C)),e+=c=s<0?-c:c,n+=C*c,!0===u?t.lineTo(e,n):t.moveTo(e,n),I-=l,u=!u}var Oi={circle:mi,dashedLine:Ei,database:xi,diamond:function(t,e,n,r){t.beginPath(),t.lineTo(e,n+r),t.lineTo(e+r,n),t.lineTo(e,n-r),t.lineTo(e-r,n),t.closePath()},ellipse:_i,ellipse_vis:_i,hexagon:function(t,e,n,r){t.beginPath();var i=2*Math.PI/6;t.moveTo(e+r,n);for(var o=1;o<6;o++)t.lineTo(e+r*Math.cos(i*o),n+r*Math.sin(i*o));t.closePath()},roundRect:wi,square:function(t,e,n,r){t.beginPath(),t.rect(e-r,n-r,2*r,2*r),t.closePath()},star:function(t,e,n,r){t.beginPath(),n+=.1*(r*=.82);for(var i=0;i<10;i++){var o=i%2==0?1.3*r:.5*r;t.lineTo(e+o*Math.sin(2*i*Math.PI/10),n-o*Math.cos(2*i*Math.PI/10))}t.closePath()},triangle:function(t,e,n,r){t.beginPath(),n+=.275*(r*=1.15);var i=2*r,o=i/2,g=Math.sqrt(3)/6*i,s=Math.sqrt(i*i-o*o);t.moveTo(e,n-(s-g)),t.lineTo(e+o,n+g),t.lineTo(e-o,n+g),t.lineTo(e,n-(s-g)),t.closePath()},triangleDown:function(t,e,n,r){t.beginPath(),n-=.275*(r*=1.15);var i=2*r,o=i/2,g=Math.sqrt(3)/6*i,s=Math.sqrt(i*i-o*o);t.moveTo(e,n+(s-g)),t.lineTo(e+o,n-g),t.lineTo(e-o,n-g),t.lineTo(e,n+(s-g)),t.closePath()}};function ki(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}ki(".vis-overlay {\n position: absolute;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n\n /* Must be displayed above for example selected Timeline items */\n z-index: 10;\n}\n\n.vis-active {\n box-shadow: 0 0 10px #86d5f8;\n}\n"),ki('/* override some bootstrap styles screwing up the timelines css */\n\n.vis [class*="span"] {\n min-height: 0;\n width: auto;\n}\n'),ki("div.vis-color-picker {\n position: absolute;\n top: 0px;\n left: 30px;\n margin-top: -140px;\n margin-left: 30px;\n width: 310px;\n height: 444px;\n z-index: 1;\n padding: 10px;\n border-radius: 15px;\n background-color: #ffffff;\n display: none;\n box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 10px 0px;\n}\n\ndiv.vis-color-picker div.vis-arrow {\n position: absolute;\n top: 147px;\n left: 5px;\n}\n\ndiv.vis-color-picker div.vis-arrow::after,\ndiv.vis-color-picker div.vis-arrow::before {\n right: 100%;\n top: 50%;\n border: solid transparent;\n content: \" \";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\ndiv.vis-color-picker div.vis-arrow:after {\n border-color: rgba(255, 255, 255, 0);\n border-right-color: #ffffff;\n border-width: 30px;\n margin-top: -30px;\n}\n\ndiv.vis-color-picker div.vis-color {\n position: absolute;\n width: 289px;\n height: 289px;\n cursor: pointer;\n}\n\ndiv.vis-color-picker div.vis-brightness {\n position: absolute;\n top: 313px;\n}\n\ndiv.vis-color-picker div.vis-opacity {\n position: absolute;\n top: 350px;\n}\n\ndiv.vis-color-picker div.vis-selector {\n position: absolute;\n top: 137px;\n left: 137px;\n width: 15px;\n height: 15px;\n border-radius: 15px;\n border: 1px solid #ffffff;\n background: #4c4c4c; /* Old browsers */\n background: -moz-linear-gradient(\n top,\n #4c4c4c 0%,\n #595959 12%,\n #666666 25%,\n #474747 39%,\n #2c2c2c 50%,\n #000000 51%,\n #111111 60%,\n #2b2b2b 76%,\n #1c1c1c 91%,\n #131313 100%\n ); /* FF3.6+ */\n background: -webkit-gradient(\n linear,\n left top,\n left bottom,\n color-stop(0%, #4c4c4c),\n color-stop(12%, #595959),\n color-stop(25%, #666666),\n color-stop(39%, #474747),\n color-stop(50%, #2c2c2c),\n color-stop(51%, #000000),\n color-stop(60%, #111111),\n color-stop(76%, #2b2b2b),\n color-stop(91%, #1c1c1c),\n color-stop(100%, #131313)\n ); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(\n top,\n #4c4c4c 0%,\n #595959 12%,\n #666666 25%,\n #474747 39%,\n #2c2c2c 50%,\n #000000 51%,\n #111111 60%,\n #2b2b2b 76%,\n #1c1c1c 91%,\n #131313 100%\n ); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(\n top,\n #4c4c4c 0%,\n #595959 12%,\n #666666 25%,\n #474747 39%,\n #2c2c2c 50%,\n #000000 51%,\n #111111 60%,\n #2b2b2b 76%,\n #1c1c1c 91%,\n #131313 100%\n ); /* Opera 11.10+ */\n background: -ms-linear-gradient(\n top,\n #4c4c4c 0%,\n #595959 12%,\n #666666 25%,\n #474747 39%,\n #2c2c2c 50%,\n #000000 51%,\n #111111 60%,\n #2b2b2b 76%,\n #1c1c1c 91%,\n #131313 100%\n ); /* IE10+ */\n background: linear-gradient(\n to bottom,\n #4c4c4c 0%,\n #595959 12%,\n #666666 25%,\n #474747 39%,\n #2c2c2c 50%,\n #000000 51%,\n #111111 60%,\n #2b2b2b 76%,\n #1c1c1c 91%,\n #131313 100%\n ); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#131313',GradientType=0 ); /* IE6-9 */\n}\n\ndiv.vis-color-picker div.vis-new-color {\n position: absolute;\n width: 140px;\n height: 20px;\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-radius: 5px;\n top: 380px;\n left: 159px;\n text-align: right;\n padding-right: 2px;\n font-size: 10px;\n color: rgba(0, 0, 0, 0.4);\n vertical-align: middle;\n line-height: 20px;\n}\n\ndiv.vis-color-picker div.vis-initial-color {\n position: absolute;\n width: 140px;\n height: 20px;\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-radius: 5px;\n top: 380px;\n left: 10px;\n text-align: left;\n padding-left: 2px;\n font-size: 10px;\n color: rgba(0, 0, 0, 0.4);\n vertical-align: middle;\n line-height: 20px;\n}\n\ndiv.vis-color-picker div.vis-label {\n position: absolute;\n width: 300px;\n left: 10px;\n}\n\ndiv.vis-color-picker div.vis-label.vis-brightness {\n top: 300px;\n}\n\ndiv.vis-color-picker div.vis-label.vis-opacity {\n top: 338px;\n}\n\ndiv.vis-color-picker div.vis-button {\n position: absolute;\n width: 68px;\n height: 25px;\n border-radius: 10px;\n vertical-align: middle;\n text-align: center;\n line-height: 25px;\n top: 410px;\n border: 2px solid #d9d9d9;\n background-color: #f7f7f7;\n cursor: pointer;\n}\n\ndiv.vis-color-picker div.vis-button.vis-cancel {\n /*border:2px solid #ff4e33;*/\n /*background-color: #ff7761;*/\n left: 5px;\n}\ndiv.vis-color-picker div.vis-button.vis-load {\n /*border:2px solid #a153e6;*/\n /*background-color: #cb8dff;*/\n left: 82px;\n}\ndiv.vis-color-picker div.vis-button.vis-apply {\n /*border:2px solid #4588e6;*/\n /*background-color: #82b6ff;*/\n left: 159px;\n}\ndiv.vis-color-picker div.vis-button.vis-save {\n /*border:2px solid #45e655;*/\n /*background-color: #6dff7c;*/\n left: 236px;\n}\n\ndiv.vis-color-picker input.vis-range {\n width: 290px;\n height: 20px;\n}\n\n/* TODO: is this redundant?\ndiv.vis-color-picker input.vis-range-brightness {\n width: 289px !important;\n}\n\n\ndiv.vis-color-picker input.vis-saturation-range {\n width: 289px !important;\n}*/\n"),ki("div.vis-configuration {\n position: relative;\n display: block;\n float: left;\n font-size: 12px;\n}\n\ndiv.vis-configuration-wrapper {\n display: block;\n width: 700px;\n}\n\ndiv.vis-configuration-wrapper::after {\n clear: both;\n content: \"\";\n display: block;\n}\n\ndiv.vis-configuration.vis-config-option-container {\n display: block;\n width: 495px;\n background-color: #ffffff;\n border: 2px solid #f7f8fa;\n border-radius: 4px;\n margin-top: 20px;\n left: 10px;\n padding-left: 5px;\n}\n\ndiv.vis-configuration.vis-config-button {\n display: block;\n width: 495px;\n height: 25px;\n vertical-align: middle;\n line-height: 25px;\n background-color: #f7f8fa;\n border: 2px solid #ceced0;\n border-radius: 4px;\n margin-top: 20px;\n left: 10px;\n padding-left: 5px;\n cursor: pointer;\n margin-bottom: 30px;\n}\n\ndiv.vis-configuration.vis-config-button.hover {\n background-color: #4588e6;\n border: 2px solid #214373;\n color: #ffffff;\n}\n\ndiv.vis-configuration.vis-config-item {\n display: block;\n float: left;\n width: 495px;\n height: 25px;\n vertical-align: middle;\n line-height: 25px;\n}\n\ndiv.vis-configuration.vis-config-item.vis-config-s2 {\n left: 10px;\n background-color: #f7f8fa;\n padding-left: 5px;\n border-radius: 3px;\n}\ndiv.vis-configuration.vis-config-item.vis-config-s3 {\n left: 20px;\n background-color: #e4e9f0;\n padding-left: 5px;\n border-radius: 3px;\n}\ndiv.vis-configuration.vis-config-item.vis-config-s4 {\n left: 30px;\n background-color: #cfd8e6;\n padding-left: 5px;\n border-radius: 3px;\n}\n\ndiv.vis-configuration.vis-config-header {\n font-size: 18px;\n font-weight: bold;\n}\n\ndiv.vis-configuration.vis-config-label {\n width: 120px;\n height: 25px;\n line-height: 25px;\n}\n\ndiv.vis-configuration.vis-config-label.vis-config-s3 {\n width: 110px;\n}\ndiv.vis-configuration.vis-config-label.vis-config-s4 {\n width: 100px;\n}\n\ndiv.vis-configuration.vis-config-colorBlock {\n top: 1px;\n width: 30px;\n height: 19px;\n border: 1px solid #444444;\n border-radius: 2px;\n padding: 0px;\n margin: 0px;\n cursor: pointer;\n}\n\ninput.vis-configuration.vis-config-checkbox {\n left: -5px;\n}\n\ninput.vis-configuration.vis-config-rangeinput {\n position: relative;\n top: -5px;\n width: 60px;\n /*height:13px;*/\n padding: 1px;\n margin: 0;\n pointer-events: none;\n}\n\ninput.vis-configuration.vis-config-range {\n /*removes default webkit styles*/\n -webkit-appearance: none;\n\n /*fix for FF unable to apply focus style bug */\n border: 0px solid white;\n background-color: rgba(0, 0, 0, 0);\n\n /*required for proper track sizing in FF*/\n width: 300px;\n height: 20px;\n}\ninput.vis-configuration.vis-config-range::-webkit-slider-runnable-track {\n width: 300px;\n height: 5px;\n background: #dedede; /* Old browsers */\n background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(\n linear,\n left top,\n left bottom,\n color-stop(0%, #dedede),\n color-stop(99%, #c8c8c8)\n ); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(\n top,\n #dedede 0%,\n #c8c8c8 99%\n ); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(\n top,\n #dedede 0%,\n #c8c8c8 99%\n ); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n\n border: 1px solid #999999;\n box-shadow: #aaaaaa 0px 0px 3px 0px;\n border-radius: 3px;\n}\ninput.vis-configuration.vis-config-range::-webkit-slider-thumb {\n -webkit-appearance: none;\n border: 1px solid #14334b;\n height: 17px;\n width: 17px;\n border-radius: 50%;\n background: #3876c2; /* Old browsers */\n background: -moz-linear-gradient(top, #3876c2 0%, #385380 100%); /* FF3.6+ */\n background: -webkit-gradient(\n linear,\n left top,\n left bottom,\n color-stop(0%, #3876c2),\n color-stop(100%, #385380)\n ); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(\n top,\n #3876c2 0%,\n #385380 100%\n ); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(\n top,\n #3876c2 0%,\n #385380 100%\n ); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #3876c2 0%, #385380 100%); /* IE10+ */\n background: linear-gradient(to bottom, #3876c2 0%, #385380 100%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3876c2', endColorstr='#385380',GradientType=0 ); /* IE6-9 */\n box-shadow: #111927 0px 0px 1px 0px;\n margin-top: -7px;\n}\ninput.vis-configuration.vis-config-range:focus {\n outline: none;\n}\ninput.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track {\n background: #9d9d9d; /* Old browsers */\n background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(\n linear,\n left top,\n left bottom,\n color-stop(0%, #9d9d9d),\n color-stop(99%, #c8c8c8)\n ); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(\n top,\n #9d9d9d 0%,\n #c8c8c8 99%\n ); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(\n top,\n #9d9d9d 0%,\n #c8c8c8 99%\n ); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #9d9d9d 0%, #c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9d9d9d', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n}\n\ninput.vis-configuration.vis-config-range::-moz-range-track {\n width: 300px;\n height: 10px;\n background: #dedede; /* Old browsers */\n background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(\n linear,\n left top,\n left bottom,\n color-stop(0%, #dedede),\n color-stop(99%, #c8c8c8)\n ); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(\n top,\n #dedede 0%,\n #c8c8c8 99%\n ); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(\n top,\n #dedede 0%,\n #c8c8c8 99%\n ); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n\n border: 1px solid #999999;\n box-shadow: #aaaaaa 0px 0px 3px 0px;\n border-radius: 3px;\n}\ninput.vis-configuration.vis-config-range::-moz-range-thumb {\n border: none;\n height: 16px;\n width: 16px;\n\n border-radius: 50%;\n background: #385380;\n}\n\n/*hide the outline behind the border*/\ninput.vis-configuration.vis-config-range:-moz-focusring {\n outline: 1px solid white;\n outline-offset: -1px;\n}\n\ninput.vis-configuration.vis-config-range::-ms-track {\n width: 300px;\n height: 5px;\n\n /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */\n background: transparent;\n\n /*leave room for the larger thumb to overflow with a transparent border */\n border-color: transparent;\n border-width: 6px 0;\n\n /*remove default tick marks*/\n color: transparent;\n}\ninput.vis-configuration.vis-config-range::-ms-fill-lower {\n background: #777;\n border-radius: 10px;\n}\ninput.vis-configuration.vis-config-range::-ms-fill-upper {\n background: #ddd;\n border-radius: 10px;\n}\ninput.vis-configuration.vis-config-range::-ms-thumb {\n border: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #385380;\n}\ninput.vis-configuration.vis-config-range:focus::-ms-fill-lower {\n background: #888;\n}\ninput.vis-configuration.vis-config-range:focus::-ms-fill-upper {\n background: #ccc;\n}\n\n.vis-configuration-popup {\n position: absolute;\n background: rgba(57, 76, 89, 0.85);\n border: 2px solid #f2faff;\n line-height: 30px;\n height: 30px;\n width: 150px;\n text-align: center;\n color: #ffffff;\n font-size: 14px;\n border-radius: 4px;\n -webkit-transition: opacity 0.3s ease-in-out;\n -moz-transition: opacity 0.3s ease-in-out;\n transition: opacity 0.3s ease-in-out;\n}\n.vis-configuration-popup:after,\n.vis-configuration-popup:before {\n left: 100%;\n top: 50%;\n border: solid transparent;\n content: \" \";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.vis-configuration-popup:after {\n border-color: rgba(136, 183, 213, 0);\n border-left-color: rgba(57, 76, 89, 0.85);\n border-width: 8px;\n margin-top: -8px;\n}\n.vis-configuration-popup:before {\n border-color: rgba(194, 225, 245, 0);\n border-left-color: #f2faff;\n border-width: 12px;\n margin-top: -12px;\n}\n"),ki("div.vis-tooltip {\n position: absolute;\n visibility: hidden;\n padding: 5px;\n white-space: nowrap;\n\n font-family: verdana;\n font-size: 14px;\n color: #000000;\n background-color: #f5f4ed;\n\n -moz-border-radius: 3px;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n border: 1px solid #808074;\n\n box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);\n pointer-events: none;\n\n z-index: 5;\n}\n");var Ti={};!function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}t.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 n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),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 n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i=s?t?"":void 0:(r=$i(o,g))<55296||r>56319||g+1===s||(i=$i(o,g+1))<56320||i>57343?t?Ji(o,g):r:t?to(o,g,g+2):i-56320+(r-55296<<10)+65536}},no={codeAt:eo(!1),charAt:eo(!0)},ro=Ct,io=z.WeakMap,oo=ro(io)&&/native code/.test(String(io)),go=Be,so=ye("keys"),Ao=function(t){return so[t]||(so[t]=go(t))},Co=oo,Io=z,ao=jt,uo=Xn,co=Ne,lo=xe,ho=Ao,fo=xr,po="Object already initialized",vo=Io.TypeError,yo=Io.WeakMap;if(Co||lo.state){var bo=lo.state||(lo.state=new yo);bo.get=bo.get,bo.has=bo.has,bo.set=bo.set,Di=function(t,e){if(bo.has(t))throw vo(po);return e.facade=t,bo.set(t,e),e},Mi=function(t){return bo.get(t)||{}},ji=function(t){return bo.has(t)}}else{var mo=ho("state");fo[mo]=!0,Di=function(t,e){if(co(t,mo))throw vo(po);return e.facade=t,uo(t,mo,e),e},Mi=function(t){return co(t,mo)?t[mo]:{}},ji=function(t){return co(t,mo)}}var wo={set:Di,get:Mi,has:ji,enforce:function(t){return ji(t)?Mi(t):Di(t,{})},getterFor:function(t){return function(e){var n;if(!ao(e)||(n=Mi(e)).type!==t)throw vo("Incompatible receiver, "+t+" required");return n}}},_o=at,xo=Ne,Eo=Function.prototype,Oo=_o&&Object.getOwnPropertyDescriptor,ko=xo(Eo,"name"),To={EXISTS:ko,PROPER:ko&&"something"===function(){}.name,CONFIGURABLE:ko&&(!_o||_o&&Oo(Eo,"name").configurable)},So={},Po=at,No=Nn,Ro=Pn,Do=jn,Mo=Rt,jo=Mr;So.f=Po&&!No?Object.defineProperties:function(t,e){Do(t);for(var n,r=Mo(e),i=jo(e),o=i.length,g=0;o>g;)Ro.f(t,n=i[g++],r[n]);return t};var Bo,Lo=Ut("document","documentElement"),Fo=jn,zo=So,Zo=Nr,Uo=xr,Vo=Lo,Go=gn,Wo="prototype",Yo="script",Ho=Ao("IE_PROTO"),Ko=function(){},Qo=function(t){return"<"+Yo+">"+t+""},Xo=function(t){t.write(Qo("")),t.close();var e=t.parentWindow.Object;return t=null,e},qo=function(){try{Bo=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;qo="undefined"!=typeof document?document.domain&&Bo?Xo(Bo):(e=Go("iframe"),n="java"+Yo+":",e.style.display="none",Vo.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Qo("document.F=Object")),t.close(),t.F):Xo(Bo);for(var r=Zo.length;r--;)delete qo[Wo][Zo[r]];return qo()};Uo[Ho]=!0;var Jo,$o,tg,eg=Object.create||function(t,e){var n;return null!==t?(Ko[Wo]=Fo(t),n=new Ko,Ko[Wo]=null,n[Ho]=t):n=qo(),void 0===e?n:zo.f(n,e)},ng=!Z((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),rg=Ne,ig=Ct,og=Te,gg=ng,sg=Ao("IE_PROTO"),Ag=Object,Cg=Ag.prototype,Ig=gg?Ag.getPrototypeOf:function(t){var e=og(t);if(rg(e,sg))return e[sg];var n=e.constructor;return ig(n)&&e instanceof n?n.prototype:e instanceof Ag?Cg:null},ag=Xn,ug=function(t,e,n,r){return r&&r.enumerable?t[e]=n:ag(t,e,n),t},cg=Z,lg=Ct,hg=jt,dg=eg,fg=Ig,pg=ug,vg=Ye("iterator"),yg=!1;[].keys&&("next"in(tg=[].keys())?($o=fg(fg(tg)))!==Object.prototype&&(Jo=$o):yg=!0);var bg=!hg(Jo)||cg((function(){var t={};return Jo[vg].call(t)!==t}));lg((Jo=bg?{}:dg(Jo))[vg])||pg(Jo,vg,(function(){return this}));var mg={IteratorPrototype:Jo,BUGGY_SAFARI_ITERATORS:yg},wg=Gi,_g=Bi?{}.toString:function(){return"[object "+wg(this)+"]"},xg=Bi,Eg=Pn.f,Og=Xn,kg=Ne,Tg=_g,Sg=Ye("toStringTag"),Pg=function(t,e,n,r){if(t){var i=n?t:t.prototype;kg(i,Sg)||Eg(i,Sg,{configurable:!0,value:e}),r&&!xg&&Og(i,"toString",Tg)}},Ng={},Rg=mg.IteratorPrototype,Dg=eg,Mg=bt,jg=Pg,Bg=Ng,Lg=function(){return this},Fg=J,zg=ue,Zg=Ct,Ug=String,Vg=TypeError,Gg=jn,Wg=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=function(t,e,n){try{return Fg(zg(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Gg(n),function(t){if("object"==typeof t||Zg(t))return t;throw Vg("Can't set "+Ug(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Yg=Ar,Hg=lt,Kg=Ig,Qg=Pg,Xg=ug,qg=Ng,Jg=To.PROPER,$g=mg.BUGGY_SAFARI_ITERATORS,ts=Ye("iterator"),es="keys",ns="values",rs="entries",is=function(){return this},os=function(t,e,n,r,i,o,g){!function(t,e,n,r){var i=e+" Iterator";t.prototype=Dg(Rg,{next:Mg(+!r,n)}),jg(t,i,!1,!0),Bg[i]=Lg}(n,e,r);var s,A,C,I=function(t){if(t===i&&h)return h;if(!$g&&t in c)return c[t];switch(t){case es:case ns:case rs:return function(){return new n(this,t)}}return function(){return new n(this)}},a=e+" Iterator",u=!1,c=t.prototype,l=c[ts]||c["@@iterator"]||i&&c[i],h=!$g&&l||I(i),d="Array"==e&&c.entries||l;if(d&&(s=Kg(d.call(new t)))!==Object.prototype&&s.next&&(Qg(s,a,!0,!0),qg[a]=is),Jg&&i==ns&&l&&l.name!==ns&&(u=!0,h=function(){return Hg(l,this)}),i)if(A={values:I(ns),keys:o?h:I(es),entries:I(rs)},g)for(C in A)($g||u||!(C in c))&&Xg(c,C,A[C]);else Yg({target:e,proto:!0,forced:$g||u},A);return g&&c[ts]!==h&&Xg(c,ts,h,{name:i}),qg[e]=h,A},gs=function(t,e){return{value:t,done:e}},ss=no.charAt,As=Hi,Cs=wo,Is=os,as=gs,us="String Iterator",cs=Cs.set,ls=Cs.getterFor(us);Is(String,"String",(function(t){cs(this,{type:us,string:As(t),index:0})}),(function(){var t,e=ls(this),n=e.string,r=e.index;return r>=n.length?as(void 0,!0):(t=ss(n,r),e.index+=t.length,as(t,!1))}));var hs=lt,ds=jn,fs=he,ps=function(t,e,n){var r,i;ds(t);try{if(!(r=fs(t,"return"))){if("throw"===e)throw n;return n}r=hs(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return ds(r),n},vs=jn,ys=ps,bs=Ng,ms=Ye("iterator"),ws=Array.prototype,_s=function(t){return void 0!==t&&(bs.Array===t||ws[ms]===t)},xs=Ct,Es=xe,Os=J(Function.toString);xs(Es.inspectSource)||(Es.inspectSource=function(t){return Os(t)});var ks=Es.inspectSource,Ts=J,Ss=Z,Ps=Ct,Ns=Gi,Rs=ks,Ds=function(){},Ms=[],js=Ut("Reflect","construct"),Bs=/^\s*(?:class|function)\b/,Ls=Ts(Bs.exec),Fs=!Bs.exec(Ds),zs=function(t){if(!Ps(t))return!1;try{return js(Ds,Ms,t),!0}catch(t){return!1}},Zs=function(t){if(!Ps(t))return!1;switch(Ns(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Fs||!!Ls(Bs,Rs(t))}catch(t){return!0}};Zs.sham=!0;var Us=!js||Ss((function(){var t;return zs(zs.call)||!zs(Object)||!zs((function(){t=!0}))||t}))?Zs:zs,Vs=en,Gs=Pn,Ws=bt,Ys=function(t,e,n){var r=Vs(e);r in t?Gs.f(t,r,Ws(0,n)):t[r]=n},Hs=Gi,Ks=he,Qs=Ot,Xs=Ng,qs=Ye("iterator"),Js=function(t){if(!Qs(t))return Ks(t,qs)||Ks(t,"@@iterator")||Xs[Hs(t)]},$s=lt,tA=ue,eA=jn,nA=Ae,rA=Js,iA=TypeError,oA=function(t,e){var n=arguments.length<2?rA(t):e;if(tA(n))return eA($s(n,t));throw iA(nA(t)+" is not iterable")},gA=Sn,sA=lt,AA=Te,CA=function(t,e,n,r){try{return r?e(vs(n)[0],n[1]):e(n)}catch(e){ys(t,"throw",e)}},IA=_s,aA=Us,uA=vr,cA=Ys,lA=oA,hA=Js,dA=Array,fA=Ye("iterator"),pA=!1;try{var vA=0,yA={next:function(){return{done:!!vA++}},return:function(){pA=!0}};yA[fA]=function(){return this},Array.from(yA,(function(){throw 2}))}catch(t){}var bA=function(t,e){if(!e&&!pA)return!1;var n=!1;try{var r={};r[fA]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n};Ar({target:"Array",stat:!0,forced:!bA((function(t){Array.from(t)}))},{from:function(t){var e=AA(t),n=aA(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=gA(i,r>2?arguments[2]:void 0));var g,s,A,C,I,a,u=hA(e),c=0;if(!u||this===dA&&IA(u))for(g=uA(e),s=n?new this(g):dA(g);g>c;c++)a=o?i(e[c],c):e[c],cA(s,c,a);else for(I=(C=lA(e,u)).next,s=n?new this:[];!(A=sA(I,C)).done;c++)a=o?CA(C,i,[A.value,c],!0):A.value,cA(s,c,a);return s.length=c,s}});var mA=Bt.Array.from;!function(t){t.exports=mA}(Ni);var wA=j(Pi),_A={},xA={get exports(){return _A},set exports(t){_A=t}},EA={},OA={get exports(){return EA},set exports(t){EA=t}},kA=Rt,TA=Ng,SA=wo;Pn.f;var PA=os,NA=gs,RA="Array Iterator",DA=SA.set,MA=SA.getterFor(RA);PA(Array,"Array",(function(t,e){DA(this,{type:RA,target:kA(t),index:0,kind:e})}),(function(){var t=MA(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,NA(void 0,!0)):NA("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),TA.Arguments=TA.Array;var jA=Js,BA=z,LA=Gi,FA=Xn,zA=Ng,ZA=Ye("toStringTag");for(var UA 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 VA=BA[UA],GA=VA&&VA.prototype;GA&&LA(GA)!==ZA&&FA(GA,ZA,UA),zA[UA]=zA.Array}var WA=jA;!function(t){t.exports=WA}(OA),function(t){t.exports=EA}(xA);var YA=j(_A),HA={},KA={get exports(){return HA},set exports(t){HA=t}},QA={},XA=Pr,qA=Nr.concat("length","prototype");QA.f=Object.getOwnPropertyNames||function(t){return XA(t,qA)};var JA={},$A=dr,tC=vr,eC=Ys,nC=Array,rC=Math.max,iC=function(t,e,n){for(var r=tC(t),i=$A(e,r),o=$A(void 0===n?r:n,r),g=nC(rC(o-i,0)),s=0;ip;p++)if((s||p in h)&&(c=d(u=h[p],p,l),t))if(e)y[p]=c;else if(c)switch(t){case 3:return!0;case 5:return u;case 6:return p;case 2:BC(y,u)}else switch(t){case 4:return!1;case 7:BC(y,u)}return o?-1:r||i?i:y}},FC={forEach:LC(0),map:LC(1),filter:LC(2),some:LC(3),every:LC(4),find:LC(5),findIndex:LC(6),filterReject:LC(7)},zC=Ar,ZC=z,UC=lt,VC=J,GC=at,WC=te,YC=Z,HC=Ne,KC=Vt,QC=jn,XC=Rt,qC=en,JC=Hi,$C=bt,tI=eg,eI=Mr,nI=QA,rI=JA,iI=jr,oI=It,gI=Pn,sI=So,AI=ht,CI=ug,II=aC,aI=ye,uI=xr,cI=Be,lI=Ye,hI=uC,dI=pC,fI=wC,pI=Pg,vI=wo,yI=FC.forEach,bI=Ao("hidden"),mI="Symbol",wI="prototype",_I=vI.set,xI=vI.getterFor(mI),EI=Object[wI],OI=ZC.Symbol,kI=OI&&OI[wI],TI=ZC.TypeError,SI=ZC.QObject,PI=oI.f,NI=gI.f,RI=rI.f,DI=AI.f,MI=VC([].push),jI=aI("symbols"),BI=aI("op-symbols"),LI=aI("wks"),FI=!SI||!SI[wI]||!SI[wI].findChild,zI=GC&&YC((function(){return 7!=tI(NI({},"a",{get:function(){return NI(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=PI(EI,e);r&&delete EI[e],NI(t,e,n),r&&t!==EI&&NI(EI,e,r)}:NI,ZI=function(t,e){var n=jI[t]=tI(kI);return _I(n,{type:mI,tag:t,description:e}),GC||(n.description=e),n},UI=function(t,e,n){t===EI&&UI(BI,e,n),QC(t);var r=qC(e);return QC(n),HC(jI,r)?(n.enumerable?(HC(t,bI)&&t[bI][r]&&(t[bI][r]=!1),n=tI(n,{enumerable:$C(0,!1)})):(HC(t,bI)||NI(t,bI,$C(1,{})),t[bI][r]=!0),zI(t,r,n)):NI(t,r,n)},VI=function(t,e){QC(t);var n=XC(e),r=eI(n).concat(HI(n));return yI(r,(function(e){GC&&!UC(GI,n,e)||UI(t,e,n[e])})),t},GI=function(t){var e=qC(t),n=UC(DI,this,e);return!(this===EI&&HC(jI,e)&&!HC(BI,e))&&(!(n||!HC(this,e)||!HC(jI,e)||HC(this,bI)&&this[bI][e])||n)},WI=function(t,e){var n=XC(t),r=qC(e);if(n!==EI||!HC(jI,r)||HC(BI,r)){var i=PI(n,r);return!i||!HC(jI,r)||HC(n,bI)&&n[bI][r]||(i.enumerable=!0),i}},YI=function(t){var e=RI(XC(t)),n=[];return yI(e,(function(t){HC(jI,t)||HC(uI,t)||MI(n,t)})),n},HI=function(t){var e=t===EI,n=RI(e?BI:XC(t)),r=[];return yI(n,(function(t){!HC(jI,t)||e&&!HC(EI,t)||MI(r,jI[t])})),r};WC||(CI(kI=(OI=function(){if(KC(kI,this))throw TI("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?JC(arguments[0]):void 0,e=cI(t),n=function(t){this===EI&&UC(n,BI,t),HC(this,bI)&&HC(this[bI],e)&&(this[bI][e]=!1),zI(this,e,$C(1,t))};return GC&&FI&&zI(EI,e,{configurable:!0,set:n}),ZI(e,t)})[wI],"toString",(function(){return xI(this).tag})),CI(OI,"withoutSetter",(function(t){return ZI(cI(t),t)})),AI.f=GI,gI.f=UI,sI.f=VI,oI.f=WI,nI.f=rI.f=YI,iI.f=HI,hI.f=function(t){return ZI(lI(t),t)},GC&&II(kI,"description",{configurable:!0,get:function(){return xI(this).description}})),zC({global:!0,constructor:!0,wrap:!0,forced:!WC,sham:!WC},{Symbol:OI}),yI(eI(LI),(function(t){dI(t)})),zC({target:mI,stat:!0,forced:!WC},{useSetter:function(){FI=!0},useSimple:function(){FI=!1}}),zC({target:"Object",stat:!0,forced:!WC,sham:!GC},{create:function(t,e){return void 0===e?tI(t):VI(tI(t),e)},defineProperty:UI,defineProperties:VI,getOwnPropertyDescriptor:WI}),zC({target:"Object",stat:!0,forced:!WC},{getOwnPropertyNames:YI}),fI(),pI(OI,mI),uI[bI]=!0;var KI=te&&!!Symbol.for&&!!Symbol.keyFor,QI=Ar,XI=Ut,qI=Ne,JI=Hi,$I=ye,ta=KI,ea=$I("string-to-symbol-registry"),na=$I("symbol-to-string-registry");QI({target:"Symbol",stat:!0,forced:!ta},{for:function(t){var e=JI(t);if(qI(ea,e))return ea[e];var n=XI("Symbol")(e);return ea[e]=n,na[n]=e,n}});var ra=Ar,ia=Ne,oa=ge,ga=Ae,sa=KI,Aa=ye("symbol-to-string-registry");ra({target:"Symbol",stat:!0,forced:!sa},{keyFor:function(t){if(!oa(t))throw TypeError(ga(t)+" is not a symbol");if(ia(Aa,t))return Aa[t]}});var Ca=xC,Ia=Ct,aa=nt,ua=Hi,ca=J([].push),la=Ar,ha=Ut,da=H,fa=lt,pa=J,va=Z,ya=Ct,ba=ge,ma=ei,wa=te,_a=String,xa=ha("JSON","stringify"),Ea=pa(/./.exec),Oa=pa("".charAt),ka=pa("".charCodeAt),Ta=pa("".replace),Sa=pa(1..toString),Pa=/[\uD800-\uDFFF]/g,Na=/^[\uD800-\uDBFF]$/,Ra=/^[\uDC00-\uDFFF]$/,Da=!wa||va((function(){var t=ha("Symbol")();return"[null]"!=xa([t])||"{}"!=xa({a:t})||"{}"!=xa(Object(t))})),Ma=va((function(){return'"\\udf06\\ud834"'!==xa("\udf06\ud834")||'"\\udead"'!==xa("\udead")})),ja=function(t,e){var n=ma(arguments),r=function(t){if(Ia(t))return t;if(Ca(t)){for(var e=t.length,n=[],r=0;rs;)void 0!==(n=i(r,e=o[s++]))&&uu(g,e,n);return g}});var cu=Bt.Object.getOwnPropertyDescriptors;!function(t){t.exports=cu}(nu);var lu=j(eu),hu={},du={get exports(){return hu},set exports(t){hu=t}},fu={},pu={get exports(){return fu},set exports(t){fu=t}},vu=Ar,yu=at,bu=So.f;vu({target:"Object",stat:!0,forced:Object.defineProperties!==bu,sham:!yu},{defineProperties:bu});var mu=Bt.Object,wu=pu.exports=function(t,e){return mu.defineProperties(t,e)};mu.defineProperties.sham&&(wu.sham=!0);var _u=fu;!function(t){t.exports=_u}(du);var xu=j(hu),Eu={},Ou={get exports(){return Eu},set exports(t){Eu=t}},ku={},Tu={get exports(){return ku},set exports(t){ku=t}},Su=Ar,Pu=at,Nu=Pn.f;Su({target:"Object",stat:!0,forced:Object.defineProperty!==Nu,sham:!Pu},{defineProperty:Nu});var Ru=Bt.Object,Du=Tu.exports=function(t,e,n){return Ru.defineProperty(t,e,n)};Ru.defineProperty.sham&&(Du.sham=!0);var Mu=ku;!function(t){t.exports=Mu}(Ou);var ju=j(Eu);function Bu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Lu={},Fu={get exports(){return Lu},set exports(t){Lu=t}},zu={},Zu=Mu;!function(t){t.exports=Zu}({get exports(){return zu},set exports(t){zu=t}}),function(t){t.exports=zu}(Fu);var Uu=j(Lu),Vu={},Gu={get exports(){return Vu},set exports(t){Vu=t}},Wu={},Yu={get exports(){return Wu},set exports(t){Wu=t}},Hu=TypeError,Ku=function(t){if(t>9007199254740991)throw Hu("Maximum allowed index exceeded");return t},Qu=Z,Xu=qt,qu=Ye("species"),Ju=function(t){return Xu>=51||!Qu((function(){var e=[];return(e.constructor={})[qu]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},$u=Ar,tc=Z,ec=xC,nc=jt,rc=Te,ic=vr,oc=Ku,gc=Ys,sc=PC,Ac=Ju,Cc=qt,Ic=Ye("isConcatSpreadable"),ac=Cc>=51||!tc((function(){var t=[];return t[Ic]=!1,t.concat()[0]!==t})),uc=function(t){if(!nc(t))return!1;var e=t[Ic];return void 0!==e?!!e:ec(t)};$u({target:"Array",proto:!0,arity:1,forced:!ac||!Ac("concat")},{concat:function(t){var e,n,r,i,o,g=rc(this),s=sc(g,0),A=0;for(e=-1,r=arguments.length;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?arguments[1]:void 0)}});var uh=hi("Array").map,ch=Vt,lh=uh,hh=Array.prototype,dh=function(t){var e=t.map;return t===hh||ch(hh,t)&&e===hh.map?lh:e};!function(t){t.exports=dh}(Ih);var fh=j(Ch),ph={},vh={get exports(){return ph},set exports(t){ph=t}},yh=Te,bh=Mr;Ar({target:"Object",stat:!0,forced:Z((function(){bh(1)}))},{keys:function(t){return bh(yh(t))}});var mh=Bt.Object.keys;!function(t){t.exports=mh}(vh);var wh=j(ph),_h={},xh={get exports(){return _h},set exports(t){_h=t}},Eh=Ar,Oh=Date,kh=J(Oh.prototype.getTime);Eh({target:"Date",stat:!0},{now:function(){return kh(new Oh)}});var Th=Bt.Date.now;!function(t){t.exports=Th}(xh);var Sh=j(_h),Ph={},Nh={get exports(){return Ph},set exports(t){Ph=t}},Rh=Z,Dh=function(t,e){var n=[][t];return!!n&&Rh((function(){n.call(null,e||function(){return 1},1)}))},Mh=FC.forEach,jh=Dh("forEach")?[].forEach:function(t){return Mh(this,t,arguments.length>1?arguments[1]:void 0)};Ar({target:"Array",proto:!0,forced:[].forEach!=jh},{forEach:jh});var Bh=hi("Array").forEach,Lh=Gi,Fh=Ne,zh=Vt,Zh=Bh,Uh=Array.prototype,Vh={DOMTokenList:!0,NodeList:!0},Gh=function(t){var e=t.forEach;return t===Uh||zh(Uh,t)&&e===Uh.forEach||Fh(Vh,Lh(t))?Zh:e};!function(t){t.exports=Gh}(Nh);var Wh=j(Ph),Yh={},Hh={get exports(){return Yh},set exports(t){Yh=t}},Kh=Ar,Qh=xC,Xh=J([].reverse),qh=[1,2];Kh({target:"Array",proto:!0,forced:String(qh)===String(qh.reverse())},{reverse:function(){return Qh(this)&&(this.length=this.length),Xh(this)}});var Jh=hi("Array").reverse,$h=Vt,td=Jh,ed=Array.prototype,nd=function(t){var e=t.reverse;return t===ed||$h(ed,t)&&e===ed.reverse?td:e};!function(t){t.exports=nd}(Hh);var rd=j(Yh),id={},od={get exports(){return id},set exports(t){id=t}},gd=at,sd=xC,Ad=TypeError,Cd=Object.getOwnPropertyDescriptor,Id=gd&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),ad=Ae,ud=TypeError,cd=function(t,e){if(!delete t[e])throw ud("Cannot delete property "+ad(e)+" of "+ad(t))},ld=Ar,hd=Te,dd=dr,fd=ur,pd=vr,vd=Id?function(t,e){if(sd(t)&&!Cd(t,"length").writable)throw Ad("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},yd=Ku,bd=PC,md=Ys,wd=cd,_d=Ju("splice"),xd=Math.max,Ed=Math.min;ld({target:"Array",proto:!0,forced:!_d},{splice:function(t,e){var n,r,i,o,g,s,A=hd(this),C=pd(A),I=dd(t,C),a=arguments.length;for(0===a?n=r=0:1===a?(n=0,r=C-I):(n=a-2,r=Ed(xd(fd(e),0),C-I)),yd(C+n-r),i=bd(A,r),o=0;oC-r+n;o--)wd(A,o-1)}else if(n>r)for(o=C-r;o>I;o--)s=o+n-1,(g=o+r-1)in A?A[s]=A[g]:wd(A,s);for(o=0;o1?arguments[1]:void 0)}});var jd=hi("Array").includes,Bd=jt,Ld=nt,Fd=Ye("match"),zd=TypeError,Zd=Ye("match"),Ud=Ar,Vd=function(t){if(function(t){var e;return Bd(t)&&(void 0!==(e=t[Fd])?!!e:"RegExp"==Ld(t))}(t))throw zd("The method doesn't accept regular expressions");return t},Gd=St,Wd=Hi,Yd=J("".indexOf);Ud({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Zd]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~Yd(Wd(Gd(this)),Wd(Vd(t)),arguments.length>1?arguments[1]:void 0)}});var Hd=hi("String").includes,Kd=Vt,Qd=jd,Xd=Hd,qd=Array.prototype,Jd=String.prototype,$d=function(t){var e=t.includes;return t===qd||Kd(qd,t)&&e===qd.includes?Qd:"string"==typeof t||t===Jd||Kd(Jd,t)&&e===Jd.includes?Xd:e};!function(t){t.exports=$d}(Dd);var tf=j(Rd),ef={},nf={get exports(){return ef},set exports(t){ef=t}},rf=Te,of=Ig,gf=ng;Ar({target:"Object",stat:!0,forced:Z((function(){of(1)})),sham:!gf},{getPrototypeOf:function(t){return of(rf(t))}});var sf=Bt.Object.getPrototypeOf;!function(t){t.exports=sf}(nf);var Af=j(ef),Cf={},If={get exports(){return Cf},set exports(t){Cf=t}},af=FC.filter;Ar({target:"Array",proto:!0,forced:!Ju("filter")},{filter:function(t){return af(this,t,arguments.length>1?arguments[1]:void 0)}});var uf=hi("Array").filter,cf=Vt,lf=uf,hf=Array.prototype,df=function(t){var e=t.filter;return t===hf||cf(hf,t)&&e===hf.filter?lf:e};!function(t){t.exports=df}(If);var ff=j(Cf),pf={},vf={get exports(){return pf},set exports(t){pf=t}},yf=at,bf=J,mf=Mr,wf=Rt,_f=bf(ht.f),xf=bf([].push),Ef=function(t){return function(e){for(var n,r=wf(e),i=mf(r),o=i.length,g=0,s=[];o>g;)n=i[g++],yf&&!_f(r,n)||xf(s,t?[n,r[n]]:r[n]);return s}},Of=(Ef(!0),Ef(!1));Ar({target:"Object",stat:!0},{values:function(t){return Of(t)}});var kf=Bt.Object.values;!function(t){t.exports=kf}(vf);var Tf={},Sf={get exports(){return Tf},set exports(t){Tf=t}},Pf="\t\n\v\f\r                 \u2028\u2029\ufeff",Nf=St,Rf=Hi,Df=Pf,Mf=J("".replace),jf=RegExp("^["+Df+"]+"),Bf=RegExp("(^|[^"+Df+"])["+Df+"]+$"),Lf=function(t){return function(e){var n=Rf(Nf(e));return 1&t&&(n=Mf(n,jf,"")),2&t&&(n=Mf(n,Bf,"$1")),n}},Ff={start:Lf(1),end:Lf(2),trim:Lf(3)},zf=z,Zf=Z,Uf=J,Vf=Hi,Gf=Ff.trim,Wf=Pf,Yf=zf.parseInt,Hf=zf.Symbol,Kf=Hf&&Hf.iterator,Qf=/^[+-]?0x/i,Xf=Uf(Qf.exec),qf=8!==Yf(Wf+"08")||22!==Yf(Wf+"0x16")||Kf&&!Zf((function(){Yf(Object(Kf))}))?function(t,e){var n=Gf(Vf(t));return Yf(n,e>>>0||(Xf(Qf,n)?16:10))}:Yf;Ar({global:!0,forced:parseInt!=qf},{parseInt:qf});var Jf=Bt.parseInt;!function(t){t.exports=Jf}(Sf);var $f=j(Tf),tp={},ep={get exports(){return tp},set exports(t){tp=t}},np=Ar,rp=_r.indexOf,ip=Dh,op=ot([].indexOf),gp=!!op&&1/op([1],1,-0)<0;np({target:"Array",proto:!0,forced:gp||!ip("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return gp?op(this,t,e)||0:rp(this,t,e)}});var sp=hi("Array").indexOf,Ap=Vt,Cp=sp,Ip=Array.prototype,ap=function(t){var e=t.indexOf;return t===Ip||Ap(Ip,t)&&e===Ip.indexOf?Cp:e};!function(t){t.exports=ap}(ep);var up,cp=j(tp),lp={},hp={get exports(){return lp},set exports(t){lp=t}},dp=To.PROPER,fp=Pf,pp=Ff.trim;Ar({target:"String",proto:!0,forced:(up="trim",Z((function(){return!!fp[up]()||"​…᠎"!=="​…᠎"[up]()||dp&&fp[up].name!==up})))},{trim:function(){return pp(this)}});var vp=hi("String").trim,yp=Vt,bp=vp,mp=String.prototype,wp=function(t){var e=t.trim;return"string"==typeof t||t===mp||yp(mp,t)&&e===mp.trim?bp:e};!function(t){t.exports=wp}(hp);var _p={},xp={get exports(){return _p},set exports(t){_p=t}};Ar({target:"Object",stat:!0,sham:!at},{create:eg});var Ep=Bt.Object,Op=function(t,e){return Ep.create(t,e)};!function(t){t.exports=Op}(xp);var kp=j(_p),Tp={},Sp={get exports(){return Tp},set exports(t){Tp=t}},Pp=Bt,Np=H;Pp.JSON||(Pp.JSON={stringify:JSON.stringify});var Rp=function(t,e,n){return Np(Pp.JSON.stringify,null,arguments)};!function(t){t.exports=Rp}(Sp);var Dp=j(Tp),Mp={},jp={get exports(){return Mp},set exports(t){Mp=t}},Bp="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Lp=TypeError,Fp=function(t,e){if(tn,g=Up(r)?r:Hp(r),s=o?Wp(arguments,n):[],A=o?function(){Zp(g,this,s)}:g;return e?t(A,i):t(A)}:t},Xp=Ar,qp=z,Jp=Qp(qp.setInterval,!0);Xp({global:!0,bind:!0,forced:qp.setInterval!==Jp},{setInterval:Jp});var $p=Ar,tv=z,ev=Qp(tv.setTimeout,!0);$p({global:!0,bind:!0,forced:tv.setTimeout!==ev},{setTimeout:ev});var nv=Bt.setTimeout;!function(t){t.exports=nv}(jp);var rv=j(Mp),iv={},ov={get exports(){return iv},set exports(t){iv=t}},gv=Te,sv=dr,Av=vr;Ar({target:"Array",proto:!0},{fill:function(t){for(var e=gv(this),n=Av(e),r=arguments.length,i=sv(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,g=void 0===o?n:sv(o,n);g>i;)e[i++]=t;return e}});var Cv=hi("Array").fill,Iv=Vt,av=Cv,uv=Array.prototype,cv=function(t){var e=t.fill;return t===uv||Iv(uv,t)&&e===uv.fill?av:e};!function(t){t.exports=cv}(ov);var lv=j(iv);function hv(){return hv=Object.assign||function(t){for(var e=1;e-1}var ry=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===kv&&(t=this.compute()),Ov&&this.manager.element.style&&Dv[t]&&(this.manager.element.style[Ev]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return ty(this.manager.recognizers,(function(e){ey(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(ny(t,Pv))return Pv;var e=ny(t,Nv),n=ny(t,Rv);return e&&n?Pv:e||n?e?Nv:Rv:ny(t,Sv)?Sv:Tv}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=ny(r,Pv)&&!Dv[Pv],o=ny(r,Rv)&&!Dv[Rv],g=ny(r,Nv)&&!Dv[Nv];if(i){var s=1===t.pointers.length,A=t.distance<2,C=t.deltaTime<250;if(s&&A&&C)return}if(!g||!o)return i||o&&n&Qv||g&&n&Xv?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function iy(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function oy(t){var e=t.length;if(1===e)return{x:mv(t[0].clientX),y:mv(t[0].clientY)};for(var n=0,r=0,i=0;i=wv(e)?t<0?Wv:Yv:e<0?Hv:Kv}function Iy(t,e,n){return{x:e/t||0,y:n/t||0}}function ay(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&Zv&&r-i==0,g=e&(Uv|Vv)&&r-i==0;n.isFirst=!!o,n.isFinal=!!g,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=gy(e)),i>1&&!n.firstMultiple?n.firstMultiple=gy(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,g=n.firstMultiple,s=g?g.center:o.center,A=e.center=oy(r);e.timeStamp=_v(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Ay(s,A),e.distance=sy(s,A),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==Zv&&o.eventType!==Uv||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=Cy(e.deltaX,e.deltaY);var C,I,a=Iy(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=a.x,e.overallVelocityY=a.y,e.overallVelocity=wv(a.x)>wv(a.y)?a.x:a.y,e.scale=g?(C=g.pointers,sy((I=r)[0],I[1],$v)/sy(C[0],C[1],$v)):1,e.rotation=g?function(t,e){return Ay(e[1],e[0],$v)+Ay(t[1],t[0],$v)}(g.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,g=t.lastInterval||e,s=e.timeStamp-g.timeStamp;if(e.eventType!==Vv&&(s>zv||void 0===g.velocity)){var A=e.deltaX-g.deltaX,C=e.deltaY-g.deltaY,I=Iy(s,A,C);r=I.x,i=I.y,n=wv(I.x)>wv(I.y)?I.x:I.y,o=Cy(A,C),t.lastInterval=e}else n=g.velocity,r=g.velocityX,i=g.velocityY,o=g.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var u,c=t.element,l=e.srcEvent;iy(u=l.composedPath?l.composedPath()[0]:l.path?l.path[0]:l.target,c)&&(c=u),e.target=c}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function uy(t){return t.trim().split(/\s+/g)}function cy(t,e,n){ty(uy(e),(function(e){t.addEventListener(e,n,!1)}))}function ly(t,e,n){ty(uy(e),(function(e){t.removeEventListener(e,n,!1)}))}function hy(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var dy=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){ey(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&cy(this.element,this.evEl,this.domHandler),this.evTarget&&cy(this.target,this.evTarget,this.domHandler),this.evWin&&cy(hy(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&ly(this.element,this.evEl,this.domHandler),this.evTarget&&ly(this.target,this.evTarget,this.domHandler),this.evWin&&ly(hy(this.element),this.evWin,this.domHandler)},t}();function fy(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;rn[e]})):r.sort()),r}var xy={touchstart:Zv,touchmove:2,touchend:Uv,touchcancel:Vv},Ey=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).targetIds={},n}return dv(e,t),e.prototype.handler=function(t){var e=xy[t.type],n=Oy.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Lv,srcEvent:t})},e}(dy);function Oy(t,e){var n,r,i=wy(t.touches),o=this.targetIds;if(e&(2|Zv)&&1===i.length)return o[i[0].identifier]=!0,[i,i];var g=wy(t.changedTouches),s=[],A=this.target;if(r=i.filter((function(t){return iy(t.target,A)})),e===Zv)for(n=0;n-1&&r.splice(t,1)}),Sy)}}function Ny(t,e){t&Zv?(this.primaryTouch=e.changedPointers[0].identifier,Py.call(this,e)):t&(Uv|Vv)&&Py.call(this,e)}function Ry(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r-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,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+Fy(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+Fy(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=jy},e.canEmit=function(){for(var t=0;te.threshold&&i&e.direction},n.attrTest=function(t){return Uy.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},n.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=Vy(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(Uy),Wy=function(t){function e(e){return void 0===e&&(e={}),t.call(this,hv({event:"swipe",threshold:10,velocity:.3,direction:Qv|Xv,pointers:1},e))||this}dv(e,t);var n=e.prototype;return n.getTouchAction=function(){return Gy.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,r=this.options.direction;return r&(Qv|Xv)?n=e.overallVelocity:r&Qv?n=e.overallVelocityX:r&Xv&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&wv(n)>this.options.velocity&&e.eventType&Uv},n.emit=function(t){var e=Vy(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(Uy),Yy=function(t){function e(e){return void 0===e&&(e={}),t.call(this,hv({event:"pinch",threshold:0,pointers:2},e))||this}dv(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Pv]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},n.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},e}(Uy),Hy=function(t){function e(e){return void 0===e&&(e={}),t.call(this,hv({event:"rotate",threshold:0,pointers:2},e))||this}dv(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Pv]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(Uy),Ky=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,hv({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}dv(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Tv]},n.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distancen.time;if(this._input=t,!i||!r||t.eventType&(Uv|Vv)&&!o)this.reset();else if(t.eventType&Zv)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.time);else if(t.eventType&Uv)return 8;return jy},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){8===this.state&&(t&&t.eventType&Uv?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=_v(),this.manager.emit(this.options.event,this._input)))},e}(zy),Qy={domEvents:!1,touchAction:kv,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Xy=[[Hy,{enable:!1}],[Yy,{enable:!1},["rotate"]],[Wy,{direction:Qv}],[Gy,{direction:Qv},["swipe"]],[Zy],[Zy,{event:"doubletap",taps:2},["tap"]],[Ky]];function qy(t,e){var n,r=t.element;r.style&&(ty(t.options.cssProps,(function(i,o){n=xv(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}var Jy=function(){function t(t,e){var n=this;this.options=vv({},Qy,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new(this.options.inputClass||(jv?my:Bv?Ey:Mv?Dy:Ty))(this,ay),this.touchAction=new ry(this,this.options.touchAction),qy(this,!0),ty(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 vv(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 n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(e.curRecognizer=null,i=null);for(var o=0;o\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,r,n),t.apply(this,arguments)}}var rb=nb((function(t,e,n){for(var r=Object.keys(e),i=0;i=t.length?{done:!0}:{done:!1,value:t[r++]}},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,g=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return g=t.done,t},e:function(t){s=!0,o=t},f:function(){try{g||null==n.return||n.return()}finally{if(s)throw o}}}}function Ib(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2)return cb.apply(void 0,th(r=[ub(e[0],e[1])]).call(r,Gl(nh(e).call(e,2))));var i,o=e[0],g=e[1],s=Cb(gh(g));try{for(s.s();!(i=s.n()).done;){var A=i.value;Object.prototype.propertyIsEnumerable.call(g,A)&&(g[A]===ab?delete o[A]:null===o[A]||null===g[A]||"object"!==Hc(o[A])||"object"!==Hc(g[A])||Ah(o[A])||Ah(g[A])?o[A]=lb(g[A]):o[A]=cb(o[A],g[A]))}}catch(t){s.e(t)}finally{s.f()}return o}function lb(t){return Ah(t)?fh(t).call(t,(function(t){return lb(t)})):"object"===Hc(t)&&null!==t?cb({},t):t}function hb(t){for(var e=0,n=wh(t);e>>0,t=(i*=t)>>>0,t+=4294967296*(i-=t)}return 2.3283064365386963e-10*(t>>>0)}}(),e=t(" "),n=t(" "),r=t(" "),i=0;i2&&void 0!==arguments[2]&&arguments[2];for(var r in t)if(void 0!==e[r])if(null===e[r]||"object"!==Hc(e[r]))Eb(t,e,r,n);else{var i=t[r],o=e[r];xb(i)&&xb(o)&&Ob(i,o,n)}}function kb(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Ah(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0;i3&&void 0!==arguments[3]&&arguments[3];if(Ah(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&!tf(t).call(t,i))if(n[i]&&n[i].constructor===Object)void 0===e[i]&&(e[i]={}),e[i].constructor===Object?Sb(e[i],n[i]):Eb(e,n,i,r);else if(Ah(n[i])){e[i]=[];for(var o=0;o2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)||!0===n)if("object"===Hc(e[i])&&null!==e[i]&&Af(e[i])===Object.prototype)void 0===t[i]?t[i]=Sb({},e[i],n):"object"===Hc(t[i])&&null!==t[i]&&Af(t[i])===Object.prototype?Sb(t[i],e[i],n):Eb(t,e,i,r);else if(Ah(e[i])){var o;t[i]=nh(o=e[i]).call(o)}else Eb(t,e,i,r);return t}function Pb(t,e){var n;return th(n=[]).call(n,Gl(t),[e])}function Nb(t){return t.getBoundingClientRect().top}function Rb(t,e){if(Ah(t))for(var n=t.length,r=0;r3&&void 0!==arguments[3]?arguments[3]:{},i=function(t){return null!=t},o=function(t){return null!==t&&"object"===Hc(t)};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(e))throw new Error("Parameter options must be an object");if(!i(n))throw new Error("Parameter option must have a value");if(!o(r))throw new Error("Parameter globalOptions must be an object");var g=e[n],s=o(r)&&!function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(r)?r[n]:void 0,A=s?s.enabled:void 0;if(void 0!==g){if("boolean"==typeof g)return o(t[n])||(t[n]={}),void(t[n].enabled=g);if(null===g&&!o(t[n])){if(!i(s))return;t[n]=kp(s)}if(o(g)){var C=!0;void 0!==g.enabled?C=g.enabled:void 0!==A&&(C=s.enabled),function(t,e,n){o(t[n])||(t[n]={});var r=e[n],i=t[n];for(var g in r)Object.prototype.hasOwnProperty.call(r,g)&&(i[g]=r[g])}(t,e,n),t[n].enabled=C}}}var Wb={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function Yb(t,e){var n;Ah(e)||(e=[e]);var r,i=Cb(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(o){n=o[e[0]];for(var g=1;g0&&void 0!==arguments[0]?arguments[0]:1;Bu(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return nl(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return Hb[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var n,r=this._isColorString(t);if(void 0!==r&&(t=r),!0===_b(t)){if(!0===Ub(t)){var i=t.substr(4).substr(0,t.length-5).split(",");n={r:i[0],g:i[1],b:i[2],a:1}}else if(!0===function(t){return mb.test(t)}(t)){var o=t.substr(5).substr(0,t.length-6).split(",");n={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===Zb(t)){var g=Db(t);n={r:g.r,g:g.g,b:g.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var s=void 0!==t.a?t.a:"1.0";n={r:t.r,g:t.g,b:t.b,a:s}}if(void 0===n)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Dp(t));this._setColor(n,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=Jr({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",rv((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=Jr({},t)),this.color=t;var e=Lb(t.r,t.g,t.b),n=2*Math.PI,r=this.r*e.s,i=this.centerCoordinates.x+r*Math.sin(n*e.h),o=this.centerCoordinates.y+r*Math.cos(n*e.h);this.colorPickerSelector.style.left=i-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=o-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=Lb(this.color.r,this.color.g,this.color.b);e.v=t/100;var n=Fb(e.h,e.s,e.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=Lb(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var r=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,r,i),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-e.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),lv(n).call(n),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,n,r;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var i=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var g=this;this.opacityRange.onchange=function(){g._setOpacity(this.value)},this.opacityRange.oninput=function(){g._setOpacity(this.value)},this.brightnessRange.onchange=function(){g._setBrightness(this.value)},this.brightnessRange.oninput=function(){g._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=bi(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=bi(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=bi(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=bi(r=this._loadLast).call(r,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new fb(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",(function(e){e.isFirst&&t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,n,r,i,o=this.colorPickerCanvas.clientWidth,g=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,o,g),this.centerCoordinates={x:.5*o,y:.5*g},this.r=.49*o;var s,A=2*Math.PI/360,C=1/this.r;for(r=0;r<360;r++)for(i=0;i3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};Bu(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Jr(this.options,this.defaultOptions),this.configureOptions=r,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Kb(i),this.wrapper=void 0}return nl(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(Ah(t))this.options.filter=t.join();else if("object"===Hc(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==ff(t)&&(this.options.filter=ff(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===ff(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=ff(this.options),e=0,n=!1;for(var r in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,r)&&(this.allowCreation=!1,n=!1,"function"==typeof t?n=(n=t(r,[]))||this._handleObject(this.configureOptions[r],[r],!0):!0!==t&&-1===cp(t).call(t,r)||(n=!0),!1!==n&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(r),this._handleObject(this.configureOptions[r],[r])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t1?n-1:0),i=1;i2&&void 0!==arguments[2]&&arguments[2],r=document.createElement("div");if(r.className="vis-configuration vis-config-label vis-config-s"+e.length,!0===n){for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(Qb("i","b",t))}else r.innerText=t+":";return r}},{key:"_makeDropdown",value:function(t,e,n){var r=document.createElement("select");r.className="vis-configuration vis-config-select";var i=0;void 0!==e&&-1!==cp(t).call(t,e)&&(i=cp(t).call(t,e));for(var o=0;oo&&1!==o&&(s.max=Math.ceil(e*I),C=s.max,A="range increased"),s.value=e}else s.value=r;var a=document.createElement("input");a.className="vis-configuration vis-config-rangeinput",a.value=s.value;var u=this;s.onchange=function(){a.value=this.value,u._update(Number(this.value),n)},s.oninput=function(){a.value=this.value};var c=this._makeLabel(n[n.length-1],n),l=this._makeItem(n,c,s,a);""!==A&&this.popupHistory[l]!==C&&(this.popupHistory[l]=C,this._setupPopup(A,l))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var n=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1,i=ff(this.options),o=!1;for(var g in t)if(Object.prototype.hasOwnProperty.call(t,g)){r=!0;var s=t[g],A=Pb(e,g);if("function"==typeof i&&!1===(r=i(g,e))&&!Ah(s)&&"string"!=typeof s&&"boolean"!=typeof s&&s instanceof Object&&(this.allowCreation=!1,r=this._handleObject(s,A,!0),this.allowCreation=!1===n),!1!==r){o=!0;var C=this._getValue(A);if(Ah(s))this._handleArray(s,C,A);else if("string"==typeof s)this._makeTextInput(s,C,A);else if("boolean"==typeof s)this._makeCheckbox(s,C,A);else if(s instanceof Object){if(!this.hideOption(e,g,this.moduleOptions))if(void 0!==s.enabled){var I=Pb(A,"enabled"),a=this._getValue(I);if(!0===a){var u=this._makeLabel(g,A,!0);this._makeItem(A,u),o=this._handleObject(s,A)||o}else this._makeCheckbox(s,a,A)}else{var c=this._makeLabel(g,A,!0);this._makeItem(A,c),o=this._handleObject(s,A)||o}}else console.error("dont know how to handle",s,g,A)}}return o}},{key:"_handleArray",value:function(t,e,n){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,n),t[1]!==e&&this.changedOptions.push({path:n,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:Number(e)}))}},{key:"_update",value:function(t,e){var n=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;t="false"!==(t="true"===t||t)&&t;for(var i=0;ii-this.padding&&(s=!0),o=s?this.x-n:this.x,g=A?this.y-e:this.y}else(g=this.y-e)+e+this.padding>r&&(g=r-e-this.padding),gi&&(o=i-n-this.padding),og.distance?" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(g.path,g.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):". Did you mean one of these: "+t.print(wh(n))+t.printLocation(r,e),console.error('%cUnknown option detected: "'+e+'"'+i,tm),$b=!0}},{key:"findInOptions",value:function(e,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],g=1e9,s="",A=[],C=e.toLowerCase(),I=void 0;for(var a in n){var u=void 0;if(void 0!==n[a].__type__&&!0===o){var c=t.findInOptions(e,n[a],Pb(r,a));g>c.distance&&(s=c.closestMatch,A=c.path,g=c.distance,I=c.indexMatch)}else{var l;-1!==cp(l=a.toLowerCase()).call(l,C)&&(I=a),g>(u=t.levenshteinDistance(e,a))&&(s=a,A=nh(i=r).call(i),g=u)}}return{closestMatch:s,path:A,distance:g,indexMatch:I}}},{key:"printLocation",value:function(t,e){for(var n="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",r=0;r":!0,"--":!0},um="",cm=0,lm="",hm="",dm=Im.NULL;function fm(){cm++,lm=um.charAt(cm)}function pm(){return um.charAt(cm+1)}function vm(t){var e=t.charCodeAt(0);return e<47?35===e||46===e:e<59?e>47:e<91?e>64:e<96?95===e:e<123&&e>96}function ym(t,e){if(t||(t={}),e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function bm(t,e,n){for(var r=e.split("."),i=t;r.length;){var o=r.shift();r.length?(i[o]||(i[o]={}),i=i[o]):i[o]=n}}function mm(t,e){for(var n,r,i=null,o=[t],g=t;g.parent;)o.push(g.parent),g=g.parent;if(g.nodes)for(n=0,r=g.nodes.length;n=0;n--){var s,A=o[n];A.nodes||(A.nodes=[]),-1===cp(s=A.nodes).call(s,i)&&A.nodes.push(i)}e.attr&&(i.attr=ym(i.attr,e.attr))}function wm(t,e){if(t.edges||(t.edges=[]),t.edges.push(e),t.edge){var n=ym({},t.edge);e.attr=ym(n,e.attr)}}function _m(t,e,n,r,i){var o={from:e,to:n,type:r};return t.edge&&(o.attr=ym({},t.edge)),o.attr=ym(o.attr||{},i),null!=i&&i.hasOwnProperty("arrows")&&null!=i.arrows&&(o.arrows={to:{enabled:!0,type:i.arrows.type}},i.arrows=null),o}function xm(){for(dm=Im.NULL,hm="";" "===lm||"\t"===lm||"\n"===lm||"\r"===lm;)fm();do{var t=!1;if("#"===lm){for(var e=cm-1;" "===um.charAt(e)||"\t"===um.charAt(e);)e--;if("\n"===um.charAt(e)||""===um.charAt(e)){for(;""!=lm&&"\n"!=lm;)fm();t=!0}}if("/"===lm&&"/"===pm()){for(;""!=lm&&"\n"!=lm;)fm();t=!0}if("/"===lm&&"*"===pm()){for(;""!=lm;){if("*"===lm&&"/"===pm()){fm(),fm();break}fm()}t=!0}for(;" "===lm||"\t"===lm||"\n"===lm||"\r"===lm;)fm()}while(t);if(""!==lm){var n=lm+pm();if(am[n])return dm=Im.DELIMITER,hm=n,fm(),void fm();if(am[lm])return dm=Im.DELIMITER,hm=lm,void fm();if(vm(lm)||"-"===lm){for(hm+=lm,fm();vm(lm);)hm+=lm,fm();return"false"===hm?hm=!1:"true"===hm?hm=!0:isNaN(Number(hm))||(hm=Number(hm)),void(dm=Im.IDENTIFIER)}if('"'===lm){for(fm();""!=lm&&('"'!=lm||'"'===lm&&'"'===pm());)'"'===lm?(hm+=lm,fm()):"\\"===lm&&"n"===pm()?(hm+="\n",fm()):hm+=lm,fm();if('"'!=lm)throw Pm('End of string " expected');return fm(),void(dm=Im.IDENTIFIER)}for(dm=Im.UNKNOWN;""!=lm;)hm+=lm,fm();throw new SyntaxError('Syntax error in part "'+Nm(hm,30)+'"')}dm=Im.DELIMITER}function Em(t){for(;""!==hm&&"}"!=hm;)Om(t),";"===hm&&xm()}function Om(t){var e=km(t);if(e)Tm(t,e);else{var n=function(t){return"node"===hm?(xm(),t.node=Sm(),"node"):"edge"===hm?(xm(),t.edge=Sm(),"edge"):"graph"===hm?(xm(),t.graph=Sm(),"graph"):null}(t);if(!n){if(dm!=Im.IDENTIFIER)throw Pm("Identifier expected");var r=hm;if(xm(),"="===hm){if(xm(),dm!=Im.IDENTIFIER)throw Pm("Identifier expected");t[r]=hm,xm()}else!function(t,e){var n={id:e},r=Sm();r&&(n.attr=r),mm(t,n),Tm(t,e)}(t,r)}}}function km(t){var e=null;if("subgraph"===hm&&((e={}).type="subgraph",xm(),dm===Im.IDENTIFIER&&(e.id=hm,xm())),"{"===hm){if(xm(),e||(e={}),e.parent=t,e.node=t.node,e.edge=t.edge,e.graph=t.graph,Em(e),"}"!=hm)throw Pm("Angle bracket } expected");xm(),delete e.node,delete e.edge,delete e.graph,delete e.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(e)}return e}function Tm(t,e){for(;"->"===hm||"--"===hm;){var n,r=hm;xm();var i=km(t);if(i)n=i;else{if(dm!=Im.IDENTIFIER)throw Pm("Identifier or subgraph expected");mm(t,{id:n=hm}),xm()}wm(t,_m(t,e,n,r,Sm())),e=n}}function Sm(){for(var t,e,n=null,r={dashed:!0,solid:!1,dotted:[1,5]},i={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},o=new Array,g=new Array;"["===hm;){for(xm(),n={};""!==hm&&"]"!=hm;){if(dm!=Im.IDENTIFIER)throw Pm("Attribute name expected");var s=hm;if(xm(),"="!=hm)throw Pm("Equal sign = expected");if(xm(),dm!=Im.IDENTIFIER)throw Pm("Attribute value expected");var A=hm;"style"===s&&(A=r[A]),"arrowhead"===s&&(s="arrows",A={to:{enabled:!0,type:i[A]}}),"arrowtail"===s&&(s="arrows",A={from:{enabled:!0,type:i[A]}}),o.push({attr:n,name:s,value:A}),g.push(s),xm(),","==hm&&xm()}if("]"!=hm)throw Pm("Bracket ] expected");xm()}if(tf(g).call(g,"dir")){var C={arrows:{}};for(t=0;t"===t.type&&(e.arrows="to"),e};Wh(i=n.edges).call(i,(function(t){var e,n,i,g,s,A,C;e=t.from instanceof Object?t.from.nodes:{id:t.from},n=t.to instanceof Object?t.to.nodes:{id:t.to},t.from instanceof Object&&t.from.edges&&Wh(i=t.from.edges).call(i,(function(t){var e=o(t);r.edges.push(e)})),s=n,A=function(e,n){var i=_m(r,e.id,n.id,t.type,t.attr),g=o(i);r.edges.push(g)},Ah(g=e)?Wh(g).call(g,(function(t){Ah(s)?Wh(s).call(s,(function(e){A(t,e)})):A(t,s)})):Ah(s)?Wh(s).call(s,(function(t){A(g,t)})):A(g,s),t.to instanceof Object&&t.to.edges&&Wh(C=t.to.edges).call(C,(function(t){var e=o(t);r.edges.push(e)}))}))}return n.attr&&(r.options=n.attr),r}var jm=Object.freeze({__proto__:null,cn:{addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},cs:{addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",addEdge:"Přidat hranu",addNode:"Přidat vrchol",back:"Zpět",close:"Zavřít",createEdgeError:"Nelze připojit hranu ke shluku.",del:"Smazat výběr",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",editNode:"Upravit vrchol"},de:{addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzufügen",addNode:"Knoten hinzufügen",back:"Zurück",close:"Schließen",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",del:"Lösche Auswahl",deleteClusterError:"Cluster können nicht gelöscht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster können nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},en:{addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},es:{addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",addEdge:"Añadir arista",addNode:"Añadir nodo",back:"Atrás",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selección",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},fr:{addDescription:"Cliquez dans un endroit vide pour placer un nœud.",addEdge:"Ajouter un lien",addNode:"Ajouter un nœud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de créer un lien vers un cluster.",del:"Effacer la sélection",deleteClusterError:"Les clusters ne peuvent pas être effacés.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",edit:"Éditer",editClusterError:"Les clusters ne peuvent pas être édités.",editEdge:"Éditer le lien",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",editNode:"Éditer le nœud"},it:{addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},nl:{addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},pt:{addDescription:"Clique em um espaço em branco para adicionar um novo nó",addEdge:"Adicionar aresta",addNode:"Adicionar nó",back:"Voltar",close:"Fechar",createEdgeError:"Não foi possível linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters não puderam ser removidos.",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",edit:"Editar",editClusterError:"Clusters não puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",editNode:"Editar nó"},ru:{addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},uk:{addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"}}),Bm=function(){function t(){Bu(this,t),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return nl(t,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var t=this.image.width,e=this.image.height;this.width=t,this.height=e;var n=Math.floor(e/2),r=Math.floor(e/4),i=Math.floor(e/8),o=Math.floor(e/16),g=Math.floor(t/2),s=Math.floor(t/4),A=Math.floor(t/8),C=Math.floor(t/16);this.canvas.width=3*s,this.canvas.height=n,this.coordinates=[[0,0,g,n],[g,0,s,r],[g,r,A,i],[5*A,r,C,o]],this._fillMipMap()}}},{key:"initialized",value:function(){return void 0!==this.coordinates}},{key:"_fillMipMap",value:function(){var t=this.canvas.getContext("2d"),e=this.coordinates[0];t.drawImage(this.image,e[0],e[1],e[2],e[3]);for(var n=1;n2){e*=.5;for(var g=0;e>2&&g=this.NUM_ITERATIONS&&(g=this.NUM_ITERATIONS-1);var s=this.coordinates[g];t.drawImage(this.canvas,s[0],s[1],s[2],s[3],n,r,i,o)}else t.drawImage(this.image,n,r,i,o)}}]),t}(),Lm=function(){function t(e){Bu(this,t),this.images={},this.imageBroken={},this.callback=e}return nl(t,[{key:"_tryloadBrokenUrl",value:function(t,e,n){void 0!==t&&void 0!==n&&(void 0!==e?(n.image.onerror=function(){console.error("Could not load brokenImage:",e)},n.image.src=e):console.warn("No broken url image defined"))}},{key:"_redrawWithImage",value:function(t){this.callback&&this.callback(t)}},{key:"load",value:function(t,e){var n=this,r=this.images[t];if(r)return r;var i=new Bm;return this.images[t]=i,i.image.onload=function(){n._fixImageCoordinates(i.image),i.init(),n._redrawWithImage(i)},i.image.onerror=function(){console.error("Could not load image:",t),n._tryloadBrokenUrl(t,e,i)},i.image.src=t,i}},{key:"_fixImageCoordinates",value:function(t){0===t.width&&(document.body.appendChild(t),t.width=t.offsetWidth,t.height=t.offsetHeight,document.body.removeChild(t))}}]),t}(),Fm={},zm={get exports(){return Fm},set exports(t){Fm=t}},Zm={},Um={get exports(){return Zm},set exports(t){Zm=t}},Vm=Z((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Gm=Z,Wm=jt,Ym=nt,Hm=Vm,Km=Object.isExtensible,Qm=Gm((function(){Km(1)}))||Hm?function(t){return!!Wm(t)&&(!Hm||"ArrayBuffer"!=Ym(t))&&(!Km||Km(t))}:Km,Xm=!Z((function(){return Object.isExtensible(Object.preventExtensions({}))})),qm=Ar,Jm=J,$m=xr,tw=jt,ew=Ne,nw=Pn.f,rw=QA,iw=JA,ow=Qm,gw=Xm,sw=!1,Aw=Be("meta"),Cw=0,Iw=function(t){nw(t,Aw,{value:{objectID:"O"+Cw++,weakData:{}}})},aw=Um.exports={enable:function(){aw.enable=function(){},sw=!0;var t=rw.f,e=Jm([].splice),n={};n[Aw]=1,t(n).length&&(rw.f=function(n){for(var r=t(n),i=0,o=r.length;io;o++)if((s=f(t[o]))&&pw(_w,s))return s;return new ww(!1)}r=vw(t,i)}for(A=u?t.next:r.next;!(C=cw(A,r)).done;){try{s=f(C.value)}catch(t){bw(r,"throw",t)}if("object"==typeof s&&s&&pw(_w,s))return s}return new ww(!1)},Ew=Vt,Ow=TypeError,kw=function(t,e){if(Ew(e,t))return t;throw Ow("Incorrect invocation")},Tw=Ar,Sw=z,Pw=Zm,Nw=Z,Rw=Xn,Dw=xw,Mw=kw,jw=Ct,Bw=jt,Lw=Pg,Fw=Pn.f,zw=FC.forEach,Zw=at,Uw=wo.set,Vw=wo.getterFor,Gw=function(t,e,n){var r,i=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),g=i?"set":"add",s=Sw[t],A=s&&s.prototype,C={};if(Zw&&jw(s)&&(o||A.forEach&&!Nw((function(){(new s).entries().next()})))){var I=(r=e((function(e,n){Uw(Mw(e,I),{type:t,collection:new s}),null!=n&&Dw(n,e[g],{that:e,AS_ENTRIES:i})}))).prototype,a=Vw(t);zw(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in A)||o&&"clear"==t||Rw(I,t,(function(n,r){var i=a(this).collection;if(!e&&o&&!Bw(n))return"get"==t&&void 0;var g=i[t](0===n?0:n,r);return e?this:g}))})),o||Fw(I,"size",{configurable:!0,get:function(){return a(this).collection.size}})}else r=n.getConstructor(e,t,i,g),Pw.enable();return Lw(r,t,!1,!0),C[t]=r,Tw({global:!0,forced:!0},C),o||n.setStrong(r,t,i),r},Ww=ug,Yw=function(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:Ww(t,r,e[r],n);return t},Hw=Ut,Kw=aC,Qw=at,Xw=Ye("species"),qw=function(t){var e=Hw(t);Qw&&e&&!e[Xw]&&Kw(e,Xw,{configurable:!0,get:function(){return this}})},Jw=eg,$w=aC,t_=Yw,e_=Sn,n_=kw,r_=Ot,i_=xw,o_=os,g_=gs,s_=qw,A_=at,C_=Zm.fastKey,I_=wo.set,a_=wo.getterFor,u_={getConstructor:function(t,e,n,r){var i=t((function(t,i){n_(t,o),I_(t,{type:e,index:Jw(null),first:void 0,last:void 0,size:0}),A_||(t.size=0),r_(i)||i_(i,t[r],{that:t,AS_ENTRIES:n})})),o=i.prototype,g=a_(e),s=function(t,e,n){var r,i,o=g(t),s=A(t,e);return s?s.value=n:(o.last=s={index:i=C_(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),A_?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},A=function(t,e){var n,r=g(t),i=C_(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return t_(o,{clear:function(){for(var t=g(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,A_?t.size=0:this.size=0},delete:function(t){var e=this,n=g(e),r=A(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),A_?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=g(this),r=e_(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!A(this,t)}}),t_(o,n?{get:function(t){var e=A(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),A_&&$w(o,"size",{configurable:!0,get:function(){return g(this).size}}),i},setStrong:function(t,e,n){var r=e+" Iterator",i=a_(e),o=a_(r);o_(t,e,(function(t,e){I_(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?g_("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,g_(void 0,!0))}),n?"entries":"values",!n,!0),s_(e)}};Gw("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),u_);var c_=Bt.Map;!function(t){t.exports=c_}(zm);var l_=j(Fm),h_=function(){function t(){Bu(this,t),this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},Jr(this.options,this.defaultOptions)}return nl(t,[{key:"setOptions",value:function(t){var e=["useDefaultGroups"];if(void 0!==t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&-1===cp(e).call(e,n)){var r=t[n];this.add(n,r)}}},{key:"clear",value:function(){this._groups=new l_,this._groupNames=[]}},{key:"get",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this._groups.get(t);if(void 0===n&&e)if(!1===this.options.useDefaultGroups&&this._groupNames.length>0){var r=this._groupIndex%this._groupNames.length;++this._groupIndex,(n={}).color=this._groups.get(this._groupNames[r]),this._groups.set(t,n)}else{var i=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,(n={}).color=this._defaultGroups[i],this._groups.set(t,n)}return n}},{key:"add",value:function(t,e){return this._groups.has(t)||this._groupNames.push(t),this._groups.set(t,e),e}}]),t}(),d_={},f_={get exports(){return d_},set exports(t){d_=t}};Ar({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var p_=Bt.Number.isNaN;!function(t){t.exports=p_}(f_);var v_=j(d_),y_={},b_={get exports(){return y_},set exports(t){y_=t}},m_=z.isFinite;Ar({target:"Number",stat:!0},{isFinite:Number.isFinite||function(t){return"number"==typeof t&&m_(t)}});var w_=Bt.Number.isFinite;!function(t){t.exports=w_}(b_);var __=j(y_),x_={},E_={get exports(){return x_},set exports(t){x_=t}},O_=FC.some;Ar({target:"Array",proto:!0,forced:!Dh("some")},{some:function(t){return O_(this,t,arguments.length>1?arguments[1]:void 0)}});var k_=hi("Array").some,T_=Vt,S_=k_,P_=Array.prototype,N_=function(t){var e=t.some;return t===P_||T_(P_,t)&&e===P_.some?S_:e};!function(t){t.exports=N_}(E_);var R_=j(x_);function D_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var M_={},j_={get exports(){return M_},set exports(t){M_=t}},B_={},L_=Op;!function(t){t.exports=L_}({get exports(){return B_},set exports(t){B_=t}}),function(t){t.exports=B_}(j_);var F_=j(M_),z_={},Z_={get exports(){return z_},set exports(t){z_=t}},U_={},V_={get exports(){return U_},set exports(t){U_=t}};Ar({target:"Object",stat:!0},{setPrototypeOf:Wg});var G_=Bt.Object.setPrototypeOf;!function(t){t.exports=G_}(V_),function(t){t.exports=U_}(Z_);var W_=j(z_),Y_={},H_={get exports(){return Y_},set exports(t){Y_=t}},K_={},Q_=yi;!function(t){t.exports=Q_}({get exports(){return K_},set exports(t){K_=t}}),function(t){t.exports=K_}(H_);var X_=j(Y_);function q_(t,e){var n;return q_=W_?X_(n=W_).call(n):function(t,e){return t.__proto__=e,t},q_(t,e)}function J_(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=F_(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Uu(t,"prototype",{writable:!1}),e&&q_(t,e)}function $_(t,e){if(e&&("object"===Hc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return D_(t)}var tx={},ex={get exports(){return tx},set exports(t){tx=t}},nx={},rx=sf;!function(t){t.exports=rx}({get exports(){return nx},set exports(t){nx=t}}),function(t){t.exports=nx}(ex);var ix=j(tx);function ox(t){var e;return ox=W_?X_(e=ix).call(e):function(t){return t.__proto__||ix(t)},ox(t)}var gx={},sx={get exports(){return gx},set exports(t){gx=t}},Ax={};!function(t){var e=Vu,n=zc;function r(i){return t.exports=r="function"==typeof e&&"symbol"==typeof n?function(t){return typeof t}:function(t){return t&&"function"==typeof e&&t.constructor===e&&t!==e.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(i)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}({get exports(){return Ax},set exports(t){Ax=t}});var Cx={},Ix={get exports(){return Cx},set exports(t){Cx=t}},ax={},ux=Gh;!function(t){t.exports=ux}({get exports(){return ax},set exports(t){ax=t}}),function(t){t.exports=ax}(Ix);var cx={},lx={get exports(){return cx},set exports(t){cx=t}},hx={},dx={get exports(){return hx},set exports(t){hx=t}},fx=Ne,px=Au,vx=It,yx=Pn,bx=jt,mx=Xn,wx=Error,_x=J("".replace),xx=String(wx("zxcasd").stack),Ex=/\n\s*at [^:]*:[^\n]*/,Ox=Ex.test(xx),kx=bt,Tx=!Z((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",kx(1,7)),7!==t.stack)})),Sx=Xn,Px=Tx,Nx=Error.captureStackTrace,Rx=Hi,Dx=Ar,Mx=Vt,jx=Ig,Bx=Wg,Lx=eg,Fx=Xn,zx=bt,Zx=function(t,e,n,r){Px&&(Nx?Nx(t,e):Sx(t,"stack",function(t,e){if(Ox&&"string"==typeof t&&!wx.prepareStackTrace)for(;e--;)t=_x(t,Ex,"");return t}(n,r)))},Ux=xw,Vx=Ye("toStringTag"),Gx=Error,Wx=[].push,Yx=function(t,e){var n,r,i,o=Mx(Hx,this);Bx?n=Bx(Gx(),o?jx(this):Hx):(n=o?this:Lx(Hx),Fx(n,Vx,"Error")),void 0!==e&&Fx(n,"message",function(t,e){return void 0===t?arguments.length<2?"":e:Rx(t)}(e)),Zx(n,Yx,n.stack,1),arguments.length>2&&(r=n,bx(i=arguments[2])&&"cause"in i&&mx(r,"cause",i.cause));var g=[];return Ux(t,Wx,{that:g}),Fx(n,"errors",g),n};Bx?Bx(Yx,Gx):function(t,e,n){for(var r=px(e),i=yx.f,o=vx.f,g=0;g=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var g=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(g&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),w}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:B(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),w}},u}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}(sx);var _T=gx(),xT=_T;try{regeneratorRuntime=_T}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=_T:Function("r","regeneratorRuntime = r")(_T)}var ET={},OT={get exports(){return ET},set exports(t){ET=t}},kT=ue,TT=Te,ST=Et,PT=vr,NT=TypeError,RT=function(t){return function(e,n,r,i){kT(n);var o=TT(e),g=ST(o),s=PT(o),A=t?s-1:0,C=t?-1:1;if(r<2)for(;;){if(A in g){i=g[A],A+=C;break}if(A+=C,t?A<0:s<=A)throw NT("Reduce of empty array with no initial value")}for(;t?A>=0:s>A;A+=C)A in g&&(i=n(i,g[A],A,o));return i}},DT=[RT(!1),RT(!0)][0];Ar({target:"Array",proto:!0,forced:!Jx&&qt>79&&qt<83||!Dh("reduce")},{reduce:function(t){var e=arguments.length;return DT(this,t,e,e>1?arguments[1]:void 0)}});var MT=hi("Array").reduce,jT=Vt,BT=MT,LT=Array.prototype,FT=function(t){var e=t.reduce;return t===LT||jT(LT,t)&&e===LT.reduce?BT:e};!function(t){t.exports=FT}(OT);var zT=j(ET),ZT={},UT={get exports(){return ZT},set exports(t){ZT=t}},VT=xC,GT=vr,WT=Ku,YT=Sn,HT=function(t,e,n,r,i,o,g,s){for(var A,C,I=i,a=0,u=!!g&&YT(g,s);a0&&VT(A)?(C=GT(A),I=HT(t,e,A,C,I,o-1)-1):(WT(I+1),t[I]=A),I++),a++;return I},KT=HT,QT=ue,XT=Te,qT=vr,JT=PC;Ar({target:"Array",proto:!0},{flatMap:function(t){var e,n=XT(this),r=qT(n);return QT(t),(e=JT(n,0)).length=KT(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var $T=hi("Array").flatMap,tS=Vt,eS=$T,nS=Array.prototype,rS=function(t){var e=t.flatMap;return t===nS||tS(nS,t)&&e===nS.flatMap?eS:e};!function(t){t.exports=rS}(UT);var iS={},oS={get exports(){return iS},set exports(t){iS=t}};Gw("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),u_);var gS=Bt.Set;!function(t){t.exports=gS}(oS);var sS=j(iS),AS={};!function(t){t.exports=Gc}({get exports(){return AS},set exports(t){AS=t}});var CS=j(AS),IS={},aS={get exports(){return IS},set exports(t){IS=t}},uS={},cS=oA;!function(t){t.exports=cS}({get exports(){return uS},set exports(t){uS=t}}),function(t){t.exports=uS}(aS);var lS=j(IS),hS={},dS={get exports(){return hS},set exports(t){hS=t}},fS=iC,pS=Math.floor,vS=function(t,e){var n=t.length,r=pS(n/2);return n<8?yS(t,e):bS(t,vS(fS(t,0,r),e),vS(fS(t,r),e),e)},yS=function(t,e){for(var n,r,i=t.length,o=1;o0;)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},bS=function(t,e,n,r){for(var i=e.length,o=n.length,g=0,s=0;g3)){if(FS)return!0;if(ZS)return ZS<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)US.push({k:e+r,v:n})}for(US.sort((function(t,e){return e.v-t.v})),r=0;rDS(n)?1:-1}}(t)),n=NS(i),r=0;r=t.length?{done:!0}:{done:!1,value:t[r++]}},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,g=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return g=t.done,t},e:function(t){s=!0,o=t},f:function(){try{g||null==n.return||n.return()}finally{if(s)throw o}}}}function AN(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nthis.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=rv((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;Wh(t=Nd(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(e,n){var r=new t(n);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=function(){r.flush()};var i=[{name:"flush",original:void 0}];if(n&&n.replace)for(var o=0;oi&&(i=A,r=s)}return r}},{key:"min",value:function(t){var e=lS(this._pairs),n=e.next();if(n.done)return null;for(var r=n.value[1],i=t(n.value[1],n.value[0]);!(n=e.next()).done;){var o=Vl(n.value,2),g=o[0],s=o[1],A=t(s,g);A1?n-1:0),i=1;ii?1:ri)&&(r=g,i=s)}}catch(t){o.e(t)}finally{o.f()}return r||null}},{key:"min",value:function(t){var e,n,r=null,i=null,o=sN(mP(e=this._data).call(e));try{for(o.s();!(n=o.n()).done;){var g=n.value,s=g[t];"number"==typeof s&&(null==i||se.x&&t.tope.y}function FN(t){return"string"==typeof t&&""!==t}function zN(t,e,n,r){var i=r.x,o=r.y;if("function"==typeof r.distanceToBorder){var g=r.distanceToBorder(t,e),s=Math.sin(e)*g,A=Math.cos(e)*g;A===g?(i+=g,o=r.y):s===g?(i=r.x,o-=g):(i+=A,o-=s)}else r.shape.width>r.shape.height?(i=r.x+.5*r.shape.width,o=r.y-n):(i=r.x+n,o=r.y-.5*r.shape.height);return{x:i,y:o}}var ZN=function(){function t(e){Bu(this,t),this.measureText=e,this.current=0,this.width=0,this.height=0,this.lines=[]}return nl(t,[{key:"_add",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";void 0===this.lines[t]&&(this.lines[t]={width:0,height:0,blocks:[]});var r=e;void 0!==e&&""!==e||(r=" ");var i=this.measureText(r,n),o=Jr({},mP(i));o.text=e,o.width=i.width,o.mod=n,void 0!==e&&""!==e||(o.width=0),this.lines[t].blocks.push(o),this.lines[t].width+=o.width}},{key:"curWidth",value:function(){var t=this.lines[this.current];return void 0===t?0:t.width}},{key:"append",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,t,e)}},{key:"newLine",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,t,e),this.current++}},{key:"determineLineHeights",value:function(){for(var t=0;tt&&(t=r.width),e+=r.height}this.width=t,this.height=e}},{key:"removeEmptyBlocks",value:function(){for(var t=[],e=0;e"://,""://,""://,"":/<\/b>/,"":/<\/i>/,"":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},VN=function(){function t(e){Bu(this,t),this.text=e,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return nl(t,[{key:"mod",value:function(){return 0===this.modStack.length?"normal":this.modStack[0]}},{key:"modName",value:function(){return 0===this.modStack.length?"normal":"mono"===this.modStack[0]?"mono":this.bold&&this.ital?"boldital":this.bold?"bold":this.ital?"ital":void 0}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(t){" "===t&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1)," "!=t&&(this.buffer+=t)}},{key:"parseWS",value:function(t){return!!/[ \t]/.test(t)&&(this.mono?this.add(t):this.spacing=!0,!0)}},{key:"setTag",value:function(t){this.emitBlock(),this[t]=!0,this.modStack.unshift(t)}},{key:"unsetTag",value:function(t){this.emitBlock(),this[t]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(t,e){return!(this.mono||this[t]||!this.match(e)||(this.setTag(t),0))}},{key:"match",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Vl(this.prepareRegExp(t),2),r=n[0],i=n[1],o=r.test(this.text.substr(this.position,i));return o&&e&&(this.position+=i-1),o}},{key:"parseEndTag",value:function(t,e,n){var r=this.mod()===t;return!(!(r="mono"===t?r&&this.mono:r&&!this.mono)||!this.match(e)||(void 0!==n?(this.position===this.text.length-1||this.match(n,!1))&&this.unsetTag(t):this.unsetTag(t),0))}},{key:"replace",value:function(t,e){return!!this.match(t)&&(this.add(e),this.position+=length-1,!0)}},{key:"prepareRegExp",value:function(t){var e,n;if(t instanceof RegExp)n=t,e=1;else{var r=UN[t];n=void 0!==r?r:new RegExp(t),e=t.length}return[n,e]}}]),t}(),GN=function(){function t(e,n,r,i){var o=this;Bu(this,t),this.ctx=e,this.parent=n,this.selected=r,this.hover=i,this.lines=new ZN((function(t,n){if(void 0===t)return 0;var g=o.parent.getFormattingValues(e,r,i,n),s=0;return""!==t&&(s=o.ctx.measureText(t).width),{width:s,values:g}}))}return nl(t,[{key:"process",value:function(t){if(!FN(t))return this.lines.finalize();var e=this.parent.fontOptions;t=(t=t.replace(/\r\n/g,"\n")).replace(/\r/g,"\n");var n=String(t).split("\n"),r=n.length;if(e.multi)for(var i=0;i0)for(var g=0;g0)for(var u=0;u")||e.parseStartTag("ital","")||e.parseStartTag("mono","")||e.parseEndTag("bold","")||e.parseEndTag("ital","")||e.parseEndTag("mono",""))||n(r)||e.add(r),e.position++}return e.emitBlock(),e.blocks}},{key:"splitMarkdownBlocks",value:function(t){for(var e=this,n=new VN(t),r=!0,i=function(t){return!!/\\/.test(t)&&(n.positionthis.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(t){for(var e="",n=0;n1&&void 0!==arguments[1]?arguments[1]:"normal",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.parent.getFormattingValues(this.ctx,this.selected,this.hover,e);for(var r=(t=(t=t.replace(/^( +)/g,"$1\r")).replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r")).split("\r");r.length>0;){var i=this.getLongestFit(r);if(0===i){var o=r[0],g=this.getLongestFitWord(o);this.lines.newLine(nh(o).call(o,0,g),e),r[0]=nh(o).call(o,g)}else{var s=i;" "===r[i-1]?i--:" "===r[s]&&s++;var A=nh(r).call(r,0,i).join("");i==r.length&&n?this.lines.append(A,e):this.lines.newLine(A,e),r=nh(r).call(r,s)}}}}]),t}(),WN=["bold","ital","boldital","mono"],YN=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Bu(this,t),this.body=e,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(n),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=r}return nl(t,[{key:"setOptions",value:function(t){if(this.elementOptions=t,this.initFontOptions(t.font),FN(t.label)?this.labelDirty=!0:t.label=void 0,void 0!==t.font&&null!==t.font)if("string"==typeof t.font)this.baseSize=this.fontOptions.size;else if("object"===Hc(t.font)){var e=t.font.size;void 0!==e&&(this.baseSize=e)}}},{key:"initFontOptions",value:function(e){var n=this;Rb(WN,(function(t){n.fontOptions[t]={}})),t.parseFontString(this.fontOptions,e)?this.fontOptions.vadjust=0:Rb(e,(function(t,e){null!=t&&"object"!==Hc(t)&&(n.fontOptions[e]=t)}))}},{key:"constrain",value:function(t){var e={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},n=Yb(t,"widthConstraint");if("number"==typeof n)e.maxWdt=Number(n),e.minWdt=Number(n);else if("object"===Hc(n)){var r=Yb(t,["widthConstraint","maximum"]);"number"==typeof r&&(e.maxWdt=Number(r));var i=Yb(t,["widthConstraint","minimum"]);"number"==typeof i&&(e.minWdt=Number(i))}var o=Yb(t,"heightConstraint");if("number"==typeof o)e.minHgt=Number(o);else if("object"===Hc(o)){var g=Yb(t,["heightConstraint","minimum"]);"number"==typeof g&&(e.minHgt=Number(g));var s=Yb(t,["heightConstraint","valign"]);"string"==typeof s&&("top"!==s&&"bottom"!==s||(e.valign=s))}return e}},{key:"update",value:function(t,e){this.setOptions(t,!0),this.propagateFonts(e),Sb(this.fontOptions,this.constrain(e)),this.fontOptions.chooser=BN("label",e)}},{key:"adjustSizes",value:function(t){var e=t?t.right+t.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=e,this.fontOptions.minWdt-=e);var n=t?t.top+t.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=n)}},{key:"addFontOptionsToPile",value:function(t,e){for(var n=0;n5&&void 0!==arguments[5]?arguments[5]:"middle";if(void 0!==this.elementOptions.label){var g=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&g=this.elementOptions.scaling.label.maxVisible&&(g=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(t,r,i,e,n,o),this._drawBackground(t),this._drawText(t,e,this.size.yLine,o,g))}}},{key:"_drawBackground",value:function(t){if(void 0!==this.fontOptions.background&&"none"!==this.fontOptions.background){t.fillStyle=this.fontOptions.background;var e=this.getSize();t.fillRect(e.left,e.top,e.width,e.height)}}},{key:"_drawText",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"middle",i=arguments.length>4?arguments[4]:void 0,o=Vl(this._setAlignment(t,e,n,r),2);e=o[0],n=o[1],t.textAlign="left",e-=this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&("top"===this.fontOptions.valign&&(n-=(this.size.height-this.size.labelHeight)/2),"bottom"===this.fontOptions.valign&&(n+=(this.size.height-this.size.labelHeight)/2));for(var g=0;g0&&(t.lineWidth=I.strokeWidth,t.strokeStyle=c,t.lineJoin="round"),t.fillStyle=u,I.strokeWidth>0&&t.strokeText(I.text,e+A,n+I.vadjust),t.fillText(I.text,e+A,n+I.vadjust),A+=I.width}n+=s.height}}}},{key:"_setAlignment",value:function(t,e,n,r){return this.isEdgeLabel&&"horizontal"!==this.fontOptions.align&&!1===this.pointToSelf?(e=0,n=0,"top"===this.fontOptions.align?(t.textBaseline="alphabetic",n-=4):"bottom"===this.fontOptions.align?(t.textBaseline="hanging",n+=4):t.textBaseline="middle"):t.textBaseline=r,[e,n]}},{key:"_getColor",value:function(t,e,n){var r=t||"#000000",i=n||"#ffffff";if(e<=this.elementOptions.scaling.label.drawThreshold){var o=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-e)));r=Mb(r,o),i=Mb(i,o)}return[r,i]}},{key:"getTextSize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this._processLabel(t,e,n),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var t=this.size.left,e=this.size.top-1;if(this.isEdgeLabel){var n=.5*-this.size.width;switch(this.fontOptions.align){case"middle":t=n,e=.5*-this.size.height;break;case"top":t=n,e=-(this.size.height+2);break;case"bottom":t=n,e=2}}return{left:t,top:e,width:this.size.width,height:this.size.height}}},{key:"calculateLabelSize",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";this._processLabel(t,e,n),this.size.left=r-.5*this.size.width,this.size.top=i-.5*this.size.height,this.size.yLine=i+.5*(1-this.lineCount)*this.fontOptions.size,"hanging"===o&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(t,e,n,r){var i=function(t,e,n){return"normal"===e?"mod"===n?"":t[n]:void 0!==t[e][n]?t[e][n]:t[n]},o={color:i(this.fontOptions,r,"color"),size:i(this.fontOptions,r,"size"),face:i(this.fontOptions,r,"face"),mod:i(this.fontOptions,r,"mod"),vadjust:i(this.fontOptions,r,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(e||n)&&("normal"===r&&!0===this.fontOptions.chooser&&this.elementOptions.labelHighlightBold?o.mod="bold":"function"==typeof this.fontOptions.chooser&&this.fontOptions.chooser(o,this.elementOptions.id,e,n));var g="";return void 0!==o.mod&&""!==o.mod&&(g+=o.mod+" "),g+=o.size+"px "+o.face,t.font=g.replace(/"/g,""),o.font=t.font,o.height=o.size,o}},{key:"differentState",value:function(t,e){return t!==this.selectedState||e!==this.hoverState}},{key:"_processLabelText",value:function(t,e,n,r){return new GN(t,this,e,n).process(r)}},{key:"_processLabel",value:function(t,e,n){if(!1!==this.labelDirty||this.differentState(e,n)){var r=this._processLabelText(t,e,n,this.elementOptions.label);this.fontOptions.minWdt>0&&r.width0&&r.height0&&(this.enableBorderDashes(t,e),t.stroke(),this.disableBorderDashes(t,e)),t.restore()}},{key:"performFill",value:function(t,e){t.save(),t.fillStyle=e.color,this.enableShadow(t,e),lv(t).call(t),this.disableShadow(t,e),t.restore(),this.performStroke(t,e)}},{key:"_addBoundingBoxMargin",value:function(t){this.boundingBox.left-=t,this.boundingBox.top-=t,this.boundingBox.bottom+=t,this.boundingBox.right+=t}},{key:"_updateBoundingBox",value:function(t,e,n,r,i){void 0!==n&&this.resize(n,r,i),this.left=t-this.width/2,this.top=e-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(t,e,n,r,i){this._updateBoundingBox(t,e,n,r,i)}},{key:"getDimensionsFromLabel",value:function(t,e,n){this.textSize=this.labelModule.getTextSize(t,e,n);var r=this.textSize.width,i=this.textSize.height;return 0===r&&(r=14,i=14),{width:r,height:i}}}]),t}();var KN=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){var o;return Bu(this,i),(o=r.call(this,t,e,n))._setMargins(n),o}return nl(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,n)){var r=this.getDimensionsFromLabel(t,e,n);this.width=r.width+this.margin.right+this.margin.left,this.height=r.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(t,e,n,r,i,o){this.resize(t,r,i),this.left=e-this.width/2,this.top=n-this.height/2,this.initContextForDraw(t,o),wi(t,this.left,this.top,this.width,this.height,o.borderRadius),this.performFill(t,o),this.updateBoundingBox(e,n,t,r,i),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,r,i)}},{key:"updateBoundingBox",value:function(t,e,n,r,i){this._updateBoundingBox(t,e,n,r,i);var o=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(o)}},{key:"distanceToBorder",value:function(t,e){t&&this.resize(t);var n=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(e)),Math.abs(this.height/2/Math.sin(e)))+n}}]),i}(HN);var QN=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){var o;return Bu(this,i),(o=r.call(this,t,e,n)).labelOffset=0,o.selected=!1,o}return nl(i,[{key:"setOptions",value:function(t,e,n){this.options=t,void 0===e&&void 0===n||this.setImages(e,n)}},{key:"setImages",value:function(t,e){e&&this.selected?(this.imageObj=e,this.imageObjAlt=t):(this.imageObj=t,this.imageObjAlt=e)}},{key:"switchImages",value:function(t){var e=t&&!this.selected||!t&&this.selected;if(this.selected=t,void 0!==this.imageObjAlt&&e){var n=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=n}}},{key:"_getImagePadding",value:function(){var t={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var e=this.options.imagePadding;"object"==Hc(e)?(t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left):(t.top=e,t.right=e,t.bottom=e,t.left=e)}return t}},{key:"_resizeImage",value:function(){var t,e;if(!1===this.options.shapeProperties.useImageSize){var n=1,r=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?n=this.imageObj.width/this.imageObj.height:r=this.imageObj.height/this.imageObj.width),t=2*this.options.size*n,e=2*this.options.size*r}else{var i=this._getImagePadding();t=this.imageObj.width+i.left+i.right,e=this.imageObj.height+i.top+i.bottom}this.width=t,this.height=e,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(t,e,n,r){this.initContextForDraw(t,r),mi(t,e,n,r.size),this.performFill(t,r)}},{key:"_drawImageAtPosition",value:function(t,e){if(0!=this.imageObj.width){t.globalAlpha=void 0!==e.opacity?e.opacity:1,this.enableShadow(t,e);var n=1;!0===this.options.shapeProperties.interpolation&&(n=this.imageObj.width/this.width/this.body.view.scale);var r=this._getImagePadding(),i=this.left+r.left,o=this.top+r.top,g=this.width-r.left-r.right,s=this.height-r.top-r.bottom;this.imageObj.drawImageAtPosition(t,n,i,o,g,s),this.disableShadow(t,e)}}},{key:"_drawImageLabel",value:function(t,e,n,r,i){var o=0;if(void 0!==this.height){o=.5*this.height;var g=this.labelModule.getTextSize(t,r,i);g.lineCount>=1&&(o+=g.height/2)}var s=n+o;this.options.label&&(this.labelOffset=o),this.labelModule.draw(t,e,s,r,i,"hanging")}}]),i}(HN);var XN=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){var o;return Bu(this,i),(o=r.call(this,t,e,n))._setMargins(n),o}return nl(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,n)){var r=this.getDimensionsFromLabel(t,e,n),i=Math.max(r.width+this.margin.right+this.margin.left,r.height+this.margin.top+this.margin.bottom);this.options.size=i/2,this.width=i,this.height=i,this.radius=this.width/2}}},{key:"draw",value:function(t,e,n,r,i,o){this.resize(t,r,i),this.left=e-this.width/2,this.top=n-this.height/2,this._drawRawCircle(t,e,n,o),this.updateBoundingBox(e,n),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,n,r,i)}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size}},{key:"distanceToBorder",value:function(t){return t&&this.resize(t),.5*this.width}}]),i}(QN);var qN=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n,o,g){var s;return Bu(this,i),(s=r.call(this,t,e,n)).setImages(o,g),s}return nl(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height){var r=2*this.options.size;return this.width=r,this.height=r,void(this.radius=.5*this.width)}this.needsRefresh(e,n)&&this._resizeImage()}},{key:"draw",value:function(t,e,n,r,i,o){this.switchImages(r),this.resize();var g=e,s=n;"top-left"===this.options.shapeProperties.coordinateOrigin?(this.left=e,this.top=n,g+=this.width/2,s+=this.height/2):(this.left=e-this.width/2,this.top=n-this.height/2),this._drawRawCircle(t,g,s,o),t.save(),t.clip(),this._drawImageAtPosition(t,o),t.restore(),this._drawImageLabel(t,g,s,r,i),this.updateBoundingBox(e,n)}},{key:"updateBoundingBox",value:function(t,e){"top-left"===this.options.shapeProperties.coordinateOrigin?(this.boundingBox.top=e,this.boundingBox.left=t,this.boundingBox.right=t+2*this.options.size,this.boundingBox.bottom=e+2*this.options.size):(this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(t){return t&&this.resize(t),.5*this.width}}]),i}(QN);var JN=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){return Bu(this,i),r.call(this,t,e,n)}return nl(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{size:this.options.size};if(this.needsRefresh(e,n)){var i,o;this.labelModule.getTextSize(t,e,n);var g=2*r.size;this.width=null!==(i=this.customSizeWidth)&&void 0!==i?i:g,this.height=null!==(o=this.customSizeHeight)&&void 0!==o?o:g,this.radius=.5*this.width}}},{key:"_drawShape",value:function(t,e,n,r,i,o,g,s){var A,C=this;return this.resize(t,o,g,s),this.left=r-this.width/2,this.top=i-this.height/2,this.initContextForDraw(t,s),(A=e,Object.prototype.hasOwnProperty.call(Oi,A)?Oi[A]:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),i}(HN);function $N(t,e){var n=wh(t);if(Za){var r=Za(t);e&&(r=ff(r).call(r,(function(e){return tu(t,e).enumerable}))),n.push.apply(n,r)}return n}function tR(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,n)){var r=this.getDimensionsFromLabel(t,e,n);this.height=2*r.height,this.width=r.width+r.height,this.radius=.5*this.width}}},{key:"draw",value:function(t,e,n,r,i,o){this.resize(t,r,i),this.left=e-.5*this.width,this.top=n-.5*this.height,this.initContextForDraw(t,o),_i(t,this.left,this.top,this.width,this.height),this.performFill(t,o),this.updateBoundingBox(e,n,t,r,i),this.labelModule.draw(t,e,n,r,i)}},{key:"distanceToBorder",value:function(t,e){t&&this.resize(t);var n=.5*this.width,r=.5*this.height,i=Math.sin(e)*n,o=Math.cos(e)*r;return n*r/Math.sqrt(i*i+o*o)}}]),i}(HN);var gR=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){var o;return Bu(this,i),(o=r.call(this,t,e,n))._setMargins(n),o}return nl(i,[{key:"resize",value:function(t,e,n){this.needsRefresh(e,n)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(t,e,n,r,i,o){var g=this;return this.resize(t,r,i),this.options.icon.size=this.options.icon.size||50,this.left=e-this.width/2,this.top=n-this.height/2,this._icon(t,e,n,r,i,o),{drawExternalLabel:function(){void 0!==g.options.label&&g.labelModule.draw(t,g.left+g.iconSize.width/2+g.margin.left,n+g.height/2+5,r),g.updateBoundingBox(e,n)}}}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-.5*this.options.icon.size,this.boundingBox.left=t-.5*this.options.icon.size,this.boundingBox.right=t+.5*this.options.icon.size,this.boundingBox.bottom=e+.5*this.options.icon.size,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+5))}},{key:"_icon",value:function(t,e,n,r,i,o){var g=Number(this.options.icon.size);void 0!==this.options.icon.code?(t.font=[null!=this.options.icon.weight?this.options.icon.weight:r?"bold":"",(null!=this.options.icon.weight&&r?5:0)+g+"px",this.options.icon.face].join(" "),t.fillStyle=this.options.icon.color||"black",t.textAlign="center",t.textBaseline="middle",this.enableShadow(t,o),t.fillText(this.options.icon.code,e,n),this.disableShadow(t,o)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(HN);var sR=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n,o,g){var s;return Bu(this,i),(s=r.call(this,t,e,n)).setImages(o,g),s}return nl(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height){var r=2*this.options.size;return this.width=r,void(this.height=r)}this.needsRefresh(e,n)&&this._resizeImage()}},{key:"draw",value:function(t,e,n,r,i,o){t.save(),this.switchImages(r),this.resize();var g=e,s=n;if("top-left"===this.options.shapeProperties.coordinateOrigin?(this.left=e,this.top=n,g+=this.width/2,s+=this.height/2):(this.left=e-this.width/2,this.top=n-this.height/2),!0===this.options.shapeProperties.useBorderWithImage){var A=this.options.borderWidth,C=this.options.borderWidthSelected||2*this.options.borderWidth,I=(r?C:A)/this.body.view.scale;t.lineWidth=Math.min(this.width,I),t.beginPath();var a=r?this.options.color.highlight.border:i?this.options.color.hover.border:this.options.color.border,u=r?this.options.color.highlight.background:i?this.options.color.hover.background:this.options.color.background;void 0!==o.opacity&&(a=Mb(a,o.opacity),u=Mb(u,o.opacity)),t.strokeStyle=a,t.fillStyle=u,t.rect(this.left-.5*t.lineWidth,this.top-.5*t.lineWidth,this.width+t.lineWidth,this.height+t.lineWidth),lv(t).call(t),this.performStroke(t,o),t.closePath()}this._drawImageAtPosition(t,o),this._drawImageLabel(t,g,s,r,i),this.updateBoundingBox(e,n),t.restore()}},{key:"updateBoundingBox",value:function(t,e){this.resize(),"top-left"===this.options.shapeProperties.coordinateOrigin?(this.left=t,this.top=e):(this.left=t-this.width/2,this.top=e-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(QN);var AR=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){return Bu(this,i),r.call(this,t,e,n)}return nl(i,[{key:"draw",value:function(t,e,n,r,i,o){return this._drawShape(t,"square",2,e,n,r,i,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(JN);var CR=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){return Bu(this,i),r.call(this,t,e,n)}return nl(i,[{key:"draw",value:function(t,e,n,r,i,o){return this._drawShape(t,"hexagon",4,e,n,r,i,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(JN);var IR=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){return Bu(this,i),r.call(this,t,e,n)}return nl(i,[{key:"draw",value:function(t,e,n,r,i,o){return this._drawShape(t,"star",4,e,n,r,i,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(JN);var aR=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){var o;return Bu(this,i),(o=r.call(this,t,e,n))._setMargins(n),o}return nl(i,[{key:"resize",value:function(t,e,n){this.needsRefresh(e,n)&&(this.textSize=this.labelModule.getTextSize(t,e,n),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(t,e,n,r,i,o){this.resize(t,r,i),this.left=e-this.width/2,this.top=n-this.height/2,this.enableShadow(t,o),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,r,i),this.disableShadow(t,o),this.updateBoundingBox(e,n,t,r,i)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(HN);var uR=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){return Bu(this,i),r.call(this,t,e,n)}return nl(i,[{key:"draw",value:function(t,e,n,r,i,o){return this._drawShape(t,"triangle",3,e,n,r,i,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(JN);var cR=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){return Bu(this,i),r.call(this,t,e,n)}return nl(i,[{key:"draw",value:function(t,e,n,r,i,o){return this._drawShape(t,"triangleDown",3,e,n,r,i,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(JN);function lR(t,e){var n=wh(t);if(Za){var r=Za(t);e&&(r=ff(r).call(r,(function(e){return tu(t,e).enumerable}))),n.push.apply(n,r)}return n}function hR(t){for(var e=1;et.left&&this.shape.topt.top}},{key:"isBoundingBoxOverlappingWith",value:function(t){return this.shape.boundingBox.leftt.left&&this.shape.boundingBox.topt.top}}],[{key:"checkOpacity",value:function(t){return 0<=t&&t<=1}},{key:"checkCoordinateOrigin",value:function(t){return void 0===t||"center"===t||"top-left"===t}},{key:"updateGroupOptions",value:function(e,n,r){var i;if(void 0!==r){var o=e.group;if(void 0!==n&&void 0!==n.group&&o!==n.group)throw new Error("updateGroupOptions: group values in options don't match.");if("number"==typeof o||"string"==typeof o&&""!=o){var g=r.get(o);void 0!==g.opacity&&void 0===n.opacity&&(t.checkOpacity(g.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+g.opacity),g.opacity=void 0));var s=ff(i=jN(n)).call(i,(function(t){return null!=n[t]}));s.push("font"),Tb(s,e,g),e.color=Bb(e.color)}}}},{key:"parseOptions",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0;if(Tb(["color","fixed","shadow"],e,n,r),t.checkMass(n),void 0!==e.opacity&&(t.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),void 0!==n.opacity&&(t.checkOpacity(n.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+n.opacity),n.opacity=void 0)),n.shapeProperties&&!t.checkCoordinateOrigin(n.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+n.shapeProperties.coordinateOrigin),Gb(e,n,"shadow",i),void 0!==n.color&&null!==n.color){var g=Bb(n.color);Ob(e.color,g)}else!0===r&&null===n.color&&(e.color=Vb(i.color));void 0!==n.fixed&&null!==n.fixed&&("boolean"==typeof n.fixed?(e.fixed.x=n.fixed,e.fixed.y=n.fixed):(void 0!==n.fixed.x&&"boolean"==typeof n.fixed.x&&(e.fixed.x=n.fixed.x),void 0!==n.fixed.y&&"boolean"==typeof n.fixed.y&&(e.fixed.y=n.fixed.y))),!0===r&&null===n.font&&(e.font=Vb(i.font)),t.updateGroupOptions(e,n,o),void 0!==n.scaling&&Gb(e.scaling,n.scaling,"label",i.scaling)}},{key:"checkMass",value:function(t,e){if(void 0!==t.mass&&t.mass<=0){var n="";void 0!==e&&(n=" in node id: "+e),console.error("%cNegative or zero mass disallowed"+n+", setting mass to 1.",gm),t.mass=1}}}]),t}();function fR(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+t.opacity):this.options.opacity=t.opacity),void 0!==t.shape)for(var e in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,e)&&this.body.nodes[e].updateShape();if(void 0!==t.font||void 0!==t.widthConstraint||void 0!==t.heightConstraint)for(var n=0,r=wh(this.body.nodes);n1&&void 0!==arguments[1]&&arguments[1],n=this.body.data.nodes;if(lN("id",t))this.body.data.nodes=t;else if(Ah(t))this.body.data.nodes=new cN,this.body.data.nodes.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.body.data.nodes=new cN}if(n&&Rb(this.nodesListeners,(function(t,e){n.off(e,t)})),this.body.nodes={},this.body.data.nodes){var r=this;Rb(this.nodesListeners,(function(t,e){r.body.data.nodes.on(e,t)}));var i=this.body.data.nodes.getIds();this.add(i,!0)}!1===e&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:dR)(t,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Rb(this.body.nodes,(function(n,r){var i=t.body.data.nodes.get(r);void 0!==i&&(!0===e&&n.setOptions({x:null,y:null}),n.setOptions({fixed:!1}),n.setOptions(i))}))}},{key:"getPositions",value:function(t){var e={};if(void 0!==t){if(!0===Ah(t)){for(var n=0;n=t.length?{done:!0}:{done:!1,value:t[r++]}},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,g=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return g=t.done,t},e:function(t){s=!0,o=t},f:function(){try{g||null==n.return||n.return()}finally{if(s)throw o}}}}(n.get());try{for(r.s();!(t=r.n()).done;){var i=t.value,o=i.id,g=this.body.nodes[o],s=Math.round(g.x),A=Math.round(g.y);i.x===s&&i.y===A||e.push({id:o,x:s,y:A})}}catch(t){r.e(t)}finally{r.f()}n.update(e)}},{key:"getBoundingBox",value:function(t){if(void 0!==this.body.nodes[t])return this.body.nodes[t].shape.boundingBox}},{key:"getConnectedNodes",value:function(t,e){var n=[];if(void 0!==this.body.nodes[t])for(var r=this.body.nodes[t],i={},o=0;o0?(r=n/s)*r:n;return s===1/0?1/0:s*UR(i)}});var VR=Bt.Math.hypot;!function(t){t.exports=VR}(LR);var GR=j(BR);function WR(t){var e=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ox(t);if(e){var i=ox(this).constructor;n=qP(r,arguments,i)}else n=r.apply(this,arguments);return $_(this,n)}}var YR=function(){function t(){Bu(this,t)}return nl(t,null,[{key:"transform",value:function(t,e){Ah(t)||(t=[t]);for(var n=e.point.x,r=e.point.y,i=e.angle,o=e.length,g=0;g4&&void 0!==arguments[4]?arguments[4]:this.getViaNode();t.strokeStyle=this.getColor(t,e),t.lineWidth=e.width,!1!==e.dashes?this._drawDashedLine(t,e,i):this._drawLine(t,e,i)}},{key:"_drawLine",value:function(t,e,n,r,i){if(this.from!=this.to)this._line(t,e,n,r,i);else{var o=Vl(this._getCircleData(t),3),g=o[0],s=o[1],A=o[2];this._circle(t,e,g,s,A)}}},{key:"_drawDashedLine",value:function(t,e,n,r,i){t.lineCap="round";var o=Ah(e.dashes)?e.dashes:[5,5];if(void 0!==t.setLineDash){if(t.save(),t.setLineDash(o),t.lineDashOffset=0,this.from!=this.to)this._line(t,e,n);else{var g=Vl(this._getCircleData(t),3),s=g[0],A=g[1],C=g[2];this._circle(t,e,s,A,C)}t.setLineDash([0]),t.lineDashOffset=0,t.restore()}else{if(this.from!=this.to)Ei(t,this.from.x,this.from.y,this.to.x,this.to.y,o);else{var I=Vl(this._getCircleData(t),3),a=I[0],u=I[1],c=I[2];this._circle(t,e,a,u,c)}this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}}},{key:"findBorderPosition",value:function(t,e,n){return this.from!=this.to?this._findBorderPosition(t,e,n):this._findBorderPositionCircle(t,e,n)}},{key:"findBorderPositions",value:function(t){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,t),to:this._findBorderPosition(this.to,t)};var e,n=Vl(nh(e=this._getCircleData(t)).call(e,0,2),2),r=n[0],i=n[1];return{from:this._findBorderPositionCircle(this.from,t,{x:r,y:i,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,t,{x:r,y:i,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(t){var e=this.options.selfReference.size;void 0!==t&&void 0===this.from.shape.width&&this.from.shape.resize(t);var n=zN(t,this.options.selfReference.angle,e,this.from);return[n.x,n.y,e]}},{key:"_pointOnCircle",value:function(t,e,n,r){var i=2*r*Math.PI;return{x:t+n*Math.cos(i),y:e-n*Math.sin(i)}}},{key:"_findBorderPositionCircle",value:function(t,e,n){var r,i=n.x,o=n.y,g=n.low,s=n.high,A=n.direction,C=this.options.selfReference.size,I=.5*(g+s),a=0;!0===this.options.arrowStrikethrough&&(-1===A?a=this.options.endPointOffset.from:1===A&&(a=this.options.endPointOffset.to));var u=0;do{I=.5*(g+s),r=this._pointOnCircle(i,o,C,I);var c=Math.atan2(t.y-r.y,t.x-r.x),l=t.distanceToBorder(e,c)+a-Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2));if(Math.abs(l)<.05)break;l>0?A>0?g=I:s=I:A>0?s=I:g=I,++u}while(g<=s&&u<10);return sD(sD({},r),{},{t:I})}},{key:"getLineWidth",value:function(t,e){return!0===t?Math.max(this.selectionWidth,.3/this._body.view.scale):!0===e?Math.max(this.hoverWidth,.3/this._body.view.scale):Math.max(this.options.width,.3/this._body.view.scale)}},{key:"getColor",value:function(t,e){if(!1!==e.inheritsColor){if("both"===e.inheritsColor&&this.from.id!==this.to.id){var n=t.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y),r=this.from.options.color.highlight.border,i=this.to.options.color.highlight.border;return!1===this.from.selected&&!1===this.to.selected?(r=Mb(this.from.options.color.border,e.opacity),i=Mb(this.to.options.color.border,e.opacity)):!0===this.from.selected&&!1===this.to.selected?i=this.to.options.color.border:!1===this.from.selected&&!0===this.to.selected&&(r=this.from.options.color.border),n.addColorStop(0,r),n.addColorStop(1,i),n}return"to"===e.inheritsColor?Mb(this.to.options.color.border,e.opacity):Mb(this.from.options.color.border,e.opacity)}return Mb(e.color,e.opacity)}},{key:"_circle",value:function(t,e,n,r,i){this.enableShadow(t,e);var o=0,g=2*Math.PI;if(!this.options.selfReference.renderBehindTheNode){var s=this.options.selfReference.angle,A=this.options.selfReference.angle+Math.PI,C=this._findBorderPositionCircle(this.from,t,{x:n,y:r,low:s,high:A,direction:-1}),I=this._findBorderPositionCircle(this.from,t,{x:n,y:r,low:s,high:A,direction:1});o=Math.atan2(C.y-r,C.x-n),g=Math.atan2(I.y-r,I.x-n)}t.beginPath(),t.arc(n,r,i,o,g,!1),t.stroke(),this.disableShadow(t,e)}},{key:"getDistanceToEdge",value:function(t,e,n,r,i,o){if(this.from!=this.to)return this._getDistanceToEdge(t,e,n,r,i,o);var g=Vl(this._getCircleData(void 0),3),s=g[0],A=g[1],C=g[2],I=s-i,a=A-o;return Math.abs(Math.sqrt(I*I+a*a)-C)}},{key:"_getDistanceToLine",value:function(t,e,n,r,i,o){var g=n-t,s=r-e,A=((i-t)*g+(o-e)*s)/(g*g+s*s);A>1?A=1:A<0&&(A=0);var C=t+A*g-i,I=e+A*s-o;return Math.sqrt(C*C+I*I)}},{key:"getArrowData",value:function(t,e,n,r,i,o){var g,s,A,C,I,a,u,c=o.width;"from"===e?(A=this.from,C=this.to,I=o.fromArrowScale<0,a=Math.abs(o.fromArrowScale),u=o.fromArrowType):"to"===e?(A=this.to,C=this.from,I=o.toArrowScale<0,a=Math.abs(o.toArrowScale),u=o.toArrowType):(A=this.to,C=this.from,I=o.middleArrowScale<0,a=Math.abs(o.middleArrowScale),u=o.middleArrowType);var l=15*a+3*c;if(A!=C){var h=l/GR(A.x-C.x,A.y-C.y);if("middle"!==e)if(!0===this.options.smooth.enabled){var d=this._findBorderPosition(A,t,{via:n}),f=this.getPoint(d.t+h*("from"===e?1:-1),n);g=Math.atan2(d.y-f.y,d.x-f.x),s=d}else g=Math.atan2(A.y-C.y,A.x-C.x),s=this._findBorderPosition(A,t);else{var p=(I?-h:h)/2,v=this.getPoint(.5+p,n),y=this.getPoint(.5-p,n);g=Math.atan2(v.y-y.y,v.x-y.x),s=this.getPoint(.5,n)}}else{var b=Vl(this._getCircleData(t),3),m=b[0],w=b[1],_=b[2];if("from"===e){var x=this.options.selfReference.angle,E=this.options.selfReference.angle+Math.PI,O=this._findBorderPositionCircle(this.from,t,{x:m,y:w,low:x,high:E,direction:-1});g=-2*O.t*Math.PI+1.5*Math.PI+.1*Math.PI,s=O}else if("to"===e){var k=this.options.selfReference.angle,T=this.options.selfReference.angle+Math.PI,S=this._findBorderPositionCircle(this.from,t,{x:m,y:w,low:k,high:T,direction:1});g=-2*S.t*Math.PI+1.5*Math.PI-1.1*Math.PI,s=S}else{var P=this.options.selfReference.angle/(2*Math.PI);s=this._pointOnCircle(m,w,_,P),g=-2*P*Math.PI+1.5*Math.PI+.1*Math.PI}}return{point:s,core:{x:s.x-.9*l*Math.cos(g),y:s.y-.9*l*Math.sin(g)},angle:g,length:l,type:u}}},{key:"drawArrowHead",value:function(t,e,n,r,i){t.strokeStyle=this.getColor(t,e),t.fillStyle=t.strokeStyle,t.lineWidth=e.width,oD.draw(t,i)&&(this.enableShadow(t,e),lv(t).call(t),this.disableShadow(t,e))}},{key:"enableShadow",value:function(t,e){!0===e.shadow&&(t.shadowColor=e.shadowColor,t.shadowBlur=e.shadowSize,t.shadowOffsetX=e.shadowX,t.shadowOffsetY=e.shadowY)}},{key:"disableShadow",value:function(t,e){!0===e.shadow&&(t.shadowColor="rgba(0,0,0,0)",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}},{key:"drawBackground",value:function(t,e){if(!1!==e.background){var n={strokeStyle:t.strokeStyle,lineWidth:t.lineWidth,dashes:t.dashes};t.strokeStyle=e.backgroundColor,t.lineWidth=e.backgroundSize,this.setStrokeDashed(t,e.backgroundDashes),t.stroke(),t.strokeStyle=n.strokeStyle,t.lineWidth=n.lineWidth,t.dashes=n.dashes,this.setStrokeDashed(t,e.dashes)}}},{key:"setStrokeDashed",value:function(t,e){if(!1!==e)if(void 0!==t.setLineDash){var n=Ah(e)?e:[5,5];t.setLineDash(n)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else void 0!==t.setLineDash?t.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}]),t}();function CD(t,e){var n=wh(t);if(Za){var r=Za(t);e&&(r=ff(r).call(r,(function(e){return tu(t,e).enumerable}))),n.push.apply(n,r)}return n}function ID(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:this._getViaCoordinates(),o=!1,g=1,s=0,A=this.to,C=this.options.endPointOffset?this.options.endPointOffset.to:0;t.id===this.from.id&&(A=this.from,o=!0,C=this.options.endPointOffset?this.options.endPointOffset.from:0),!1===this.options.arrowStrikethrough&&(C=0);var I=0;do{r=.5*(s+g),n=this.getPoint(r,i);var a=Math.atan2(A.y-n.y,A.x-n.x),u=A.distanceToBorder(e,a)+C-Math.sqrt(Math.pow(n.x-A.x,2)+Math.pow(n.y-A.y,2));if(Math.abs(u)<.2)break;u<0?!1===o?s=r:g=r:!1===o?g=r:s=r,++I}while(s<=g&&I<10);return ID(ID({},n),{},{t:r})}},{key:"_getDistanceToBezierEdge",value:function(t,e,n,r,i,o,g){var s,A,C,I,a,u=1e9,c=t,l=e;for(A=1;A<10;A++)C=.1*A,I=Math.pow(1-C,2)*t+2*C*(1-C)*g.x+Math.pow(C,2)*n,a=Math.pow(1-C,2)*e+2*C*(1-C)*g.y+Math.pow(C,2)*r,A>0&&(u=(s=this._getDistanceToLine(c,l,I,a,i,o))1&&void 0!==arguments[1]?arguments[1]:this.via;if(this.from===this.to){var n=Vl(this._getCircleData(),3),r=n[0],i=n[1],o=n[2],g=2*Math.PI*(1-t);return{x:r+o*Math.sin(g),y:i+o-o*(1-Math.cos(g))}}return{x:Math.pow(1-t,2)*this.fromPoint.x+2*t*(1-t)*e.x+Math.pow(t,2)*this.toPoint.x,y:Math.pow(1-t,2)*this.fromPoint.y+2*t*(1-t)*e.y+Math.pow(t,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(t,e){return this._findBorderPositionBezier(t,e,this.via)}},{key:"_getDistanceToEdge",value:function(t,e,n,r,i,o){return this._getDistanceToBezierEdge(t,e,n,r,i,o,this.via)}}]),i}(aD);var cD=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){return Bu(this,i),r.call(this,t,e,n)}return nl(i,[{key:"_line",value:function(t,e,n){this._bezierCurve(t,e,n)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var t,e,n=this.options.smooth.roundness,r=this.options.smooth.type,i=Math.abs(this.from.x-this.to.x),o=Math.abs(this.from.y-this.to.y);if("discrete"===r||"diagonalCross"===r){var g,s;g=s=i<=o?n*o:n*i,this.from.x>this.to.x&&(g=-g),this.from.y>=this.to.y&&(s=-s);var A=this.from.x+g,C=this.from.y+s;return"discrete"===r&&(i<=o?A=ithis.to.x&&(t=-t),this.from.y>=this.to.y&&(e=-e);var y=this.from.x+t,b=this.from.y+e;return i<=o?y=this.from.x<=this.to.x?this.to.xy?this.to.x:y:b=this.from.y>=this.to.y?this.to.y>b?this.to.y:b:this.to.y2&&void 0!==arguments[2]?arguments[2]:{};return this._findBorderPositionBezier(t,e,n.via)}},{key:"_getDistanceToEdge",value:function(t,e,n,r,i,o){var g=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(t,e,n,r,i,o,g)}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),n=t;return{x:Math.pow(1-n,2)*this.fromPoint.x+2*n*(1-n)*e.x+Math.pow(n,2)*this.toPoint.x,y:Math.pow(1-n,2)*this.fromPoint.y+2*n*(1-n)*e.y+Math.pow(n,2)*this.toPoint.y}}}]),i}(aD);var lD=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){return Bu(this,i),r.call(this,t,e,n)}return nl(i,[{key:"_getDistanceToBezierEdge2",value:function(t,e,n,r,i,o,g,s){for(var A=1e9,C=t,I=e,a=[0,0,0,0],u=1;u<10;u++){var c=.1*u;a[0]=Math.pow(1-c,3),a[1]=3*c*Math.pow(1-c,2),a[2]=3*Math.pow(c,2)*(1-c),a[3]=Math.pow(c,3);var l=a[0]*t+a[1]*g.x+a[2]*s.x+a[3]*n,h=a[0]*e+a[1]*g.y+a[2]*s.y+a[3]*r;if(u>0){var d=this._getDistanceToLine(C,I,l,h,i,o);A=dMath.abs(o)||!0===this.options.smooth.forceDirection||"horizontal"===this.options.smooth.forceDirection)&&"vertical"!==this.options.smooth.forceDirection?(e=this.from.y,r=this.to.y,t=this.from.x-g*i,n=this.to.x+g*i):(e=this.from.y-g*o,r=this.to.y+g*o,t=this.from.x,n=this.to.x),[{x:t,y:e},{x:n,y:r}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(t,e){return this._findBorderPositionBezier(t,e)}},{key:"_getDistanceToEdge",value:function(t,e,n,r,i,o){var g=Vl(arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates(),2),s=g[0],A=g[1];return this._getDistanceToBezierEdge2(t,e,n,r,i,o,s,A)}},{key:"getPoint",value:function(t){var e=Vl(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),2),n=e[0],r=e[1],i=t,o=[Math.pow(1-i,3),3*i*Math.pow(1-i,2),3*Math.pow(i,2)*(1-i),Math.pow(i,3)];return{x:o[0]*this.fromPoint.x+o[1]*n.x+o[2]*r.x+o[3]*this.toPoint.x,y:o[0]*this.fromPoint.y+o[1]*n.y+o[2]*r.y+o[3]*this.toPoint.y}}}]),i}(lD);var dD=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){return Bu(this,i),r.call(this,t,e,n)}return nl(i,[{key:"_line",value:function(t,e){t.beginPath(),t.moveTo(this.fromPoint.x,this.fromPoint.y),t.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(t){return{x:(1-t)*this.fromPoint.x+t*this.toPoint.x,y:(1-t)*this.fromPoint.y+t*this.toPoint.y}}},{key:"_findBorderPosition",value:function(t,e){var n=this.to,r=this.from;t.id===this.from.id&&(n=this.from,r=this.to);var i=Math.atan2(n.y-r.y,n.x-r.x),o=n.x-r.x,g=n.y-r.y,s=Math.sqrt(o*o+g*g),A=(s-t.distanceToBorder(e,i))/s;return{x:(1-A)*r.x+A*n.x,y:(1-A)*r.y+A*n.y,t:0}}},{key:"_getDistanceToEdge",value:function(t,e,n,r,i,o){return this._getDistanceToLine(t,e,n,r,i,o)}}]),i}(AD),fD=function(){function t(e,n,r,i,o){if(Bu(this,t),void 0===n)throw new Error("No body provided");this.options=Vb(i),this.globalOptions=i,this.defaultOptions=o,this.body=n,this.imagelist=r,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new YN(this.body,this.options,!0),this.setOptions(e)}return nl(t,[{key:"setOptions",value:function(e){if(e){var n=void 0!==e.physics&&this.options.physics!==e.physics||void 0!==e.hidden&&(this.options.hidden||!1)!==(e.hidden||!1)||void 0!==e.from&&this.options.from!==e.from||void 0!==e.to&&this.options.to!==e.to;t.parseOptions(this.options,e,!0,this.globalOptions),void 0!==e.id&&(this.id=e.id),void 0!==e.from&&(this.fromId=e.from),void 0!==e.to&&(this.toId=e.to),void 0!==e.title&&(this.title=e.title),void 0!==e.value&&(e.value=kN(e.value));var r=[e,this.options,this.defaultOptions];return this.chooser=BN("edge",r),this.updateLabelModule(e),n=this.updateEdgeType()||n,this._setInteractionWidths(),this.connect(),n}}},{key:"getFormattingValues",value:function(){var t=!0===this.options.arrows.to||!0===this.options.arrows.to.enabled,e=!0===this.options.arrows.from||!0===this.options.arrows.from.enabled,n=!0===this.options.arrows.middle||!0===this.options.arrows.middle.enabled,r=this.options.color.inherit,i={toArrow:t,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:n,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:e,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:r?void 0:this.options.color.color,inheritsColor:r,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(!0===this.chooser){if(this.selected){var o=this.options.selectionWidth;"function"==typeof o?i.width=o(i.width):"number"==typeof o&&(i.width+=o),i.width=Math.max(i.width,.3/this.body.view.scale),i.color=this.options.color.highlight,i.shadow=this.options.shadow.enabled}else if(this.hover){var g=this.options.hoverWidth;"function"==typeof g?i.width=g(i.width):"number"==typeof g&&(i.width+=g),i.width=Math.max(i.width,.3/this.body.view.scale),i.color=this.options.color.hover,i.shadow=this.options.shadow.enabled}}else"function"==typeof this.chooser&&(this.chooser(i,this.options.id,this.selected,this.hover),void 0!==i.color&&(i.inheritsColor=!1),!1===i.shadow&&(i.shadowColor===this.options.shadow.color&&i.shadowSize===this.options.shadow.size&&i.shadowX===this.options.shadow.x&&i.shadowY===this.options.shadow.y||(i.shadow=!0)));else i.shadow=this.options.shadow.enabled,i.width=Math.max(i.width,.3/this.body.view.scale);return i}},{key:"updateLabelModule",value:function(t){var e=[t,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,e),void 0!==this.labelModule.baseSize&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var t=this.options.smooth,e=!1,n=!0;return void 0!==this.edgeType&&((this.edgeType instanceof uD&&!0===t.enabled&&"dynamic"===t.type||this.edgeType instanceof hD&&!0===t.enabled&&"cubicBezier"===t.type||this.edgeType instanceof cD&&!0===t.enabled&&"dynamic"!==t.type&&"cubicBezier"!==t.type||this.edgeType instanceof dD&&!1===t.type.enabled)&&(n=!1),!0===n&&(e=this.cleanup())),!0===n?!0===t.enabled?"dynamic"===t.type?(e=!0,this.edgeType=new uD(this.options,this.body,this.labelModule)):"cubicBezier"===t.type?this.edgeType=new hD(this.options,this.body,this.labelModule):this.edgeType=new cD(this.options,this.body,this.labelModule):this.edgeType=new dD(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),e}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=void 0!==this.from&&void 0!==this.to,!0===this.connected?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(t,e,n){if(void 0!==this.options.value){var r=this.options.scaling.customScalingFunction(t,e,n,this.options.value),i=this.options.scaling.max-this.options.scaling.min;if(!0===this.options.scaling.label.enabled){var o=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+r*o}this.options.width=this.options.scaling.min+r*i}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){"function"==typeof this.options.hoverWidth?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,"function"==typeof this.options.selectionWidth?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:"draw",value:function(t){var e=this.getFormattingValues();if(!e.hidden){var n=this.edgeType.getViaNode();this.edgeType.drawLine(t,e,this.selected,this.hover,n),this.drawLabel(t,n)}}},{key:"drawArrows",value:function(t){var e=this.getFormattingValues();if(!e.hidden){var n=this.edgeType.getViaNode(),r={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,e.fromArrow&&(r.from=this.edgeType.getArrowData(t,"from",n,this.selected,this.hover,e),!1===e.arrowStrikethrough&&(this.edgeType.fromPoint=r.from.core),e.fromArrowSrc&&(r.from.image=this.imagelist.load(e.fromArrowSrc)),e.fromArrowImageWidth&&(r.from.imageWidth=e.fromArrowImageWidth),e.fromArrowImageHeight&&(r.from.imageHeight=e.fromArrowImageHeight)),e.toArrow&&(r.to=this.edgeType.getArrowData(t,"to",n,this.selected,this.hover,e),!1===e.arrowStrikethrough&&(this.edgeType.toPoint=r.to.core),e.toArrowSrc&&(r.to.image=this.imagelist.load(e.toArrowSrc)),e.toArrowImageWidth&&(r.to.imageWidth=e.toArrowImageWidth),e.toArrowImageHeight&&(r.to.imageHeight=e.toArrowImageHeight)),e.middleArrow&&(r.middle=this.edgeType.getArrowData(t,"middle",n,this.selected,this.hover,e),e.middleArrowSrc&&(r.middle.image=this.imagelist.load(e.middleArrowSrc)),e.middleArrowImageWidth&&(r.middle.imageWidth=e.middleArrowImageWidth),e.middleArrowImageHeight&&(r.middle.imageHeight=e.middleArrowImageHeight)),e.fromArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,r.from),e.middleArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,r.middle),e.toArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,r.to)}}},{key:"drawLabel",value:function(t,e){if(void 0!==this.options.label){var n,r=this.from,i=this.to;if(this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(t,this.selected,this.hover),r.id!=i.id){this.labelModule.pointToSelf=!1,n=this.edgeType.getPoint(.5,e),t.save();var o=this._getRotation(t);0!=o.angle&&(t.translate(o.x,o.y),t.rotate(o.angle)),this.labelModule.draw(t,n.x,n.y,this.selected,this.hover),t.restore()}else{this.labelModule.pointToSelf=!0;var g=zN(t,this.options.selfReference.angle,this.options.selfReference.size,r);n=this._pointOnCircle(g.x,g.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(t,n.x,n.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(t){var e=[];if(this.labelModule.visible()){var n=this._getRotation();LN(this.labelModule.getSize(),t,n)&&e.push({edgeId:this.id,labelId:0})}var r={left:t.x,top:t.y};return this.isOverlappingWith(r)&&e.push({edgeId:this.id}),e}},{key:"isOverlappingWith",value:function(t){if(this.connected){var e=this.from.x,n=this.from.y,r=this.to.x,i=this.to.y,o=t.left,g=t.top;return this.edgeType.getDistanceToEdge(e,n,r,i,o,g)<10}return!1}},{key:"_getRotation",value:function(t){var e=this.edgeType.getViaNode(),n=this.edgeType.getPoint(.5,e);void 0!==t&&this.labelModule.calculateLabelSize(t,this.selected,this.hover,n.x,n.y);var r={x:n.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible())return r;if("horizontal"===this.options.font.align)return r;var i=this.from.y-this.to.y,o=this.from.x-this.to.x,g=Math.atan2(i,o);return(g<-1&&o<0||g>0&&o<0)&&(g+=Math.PI),r.angle=g,r}},{key:"_pointOnCircle",value:function(t,e,n,r){return{x:t+n*Math.cos(r),y:e-n*Math.sin(r)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return void 0!==this.body.nodes[this.fromId]&&void 0!==this.body.nodes[this.toId]}}],[{key:"parseOptions",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(kb(["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"],t,e,n),void 0!==e.endPointOffset&&void 0!==e.endPointOffset.from&&(__(e.endPointOffset.from)?t.endPointOffset.from=e.endPointOffset.from:(t.endPointOffset.from=void 0!==r.endPointOffset.from?r.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),void 0!==e.endPointOffset&&void 0!==e.endPointOffset.to&&(__(e.endPointOffset.to)?t.endPointOffset.to=e.endPointOffset.to:(t.endPointOffset.to=void 0!==r.endPointOffset.to?r.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),FN(e.label)?t.label=e.label:FN(t.label)||(t.label=void 0),Gb(t,e,"smooth",r),Gb(t,e,"shadow",r),Gb(t,e,"background",r),void 0!==e.dashes&&null!==e.dashes?t.dashes=e.dashes:!0===n&&null===e.dashes&&(t.dashes=kp(r.dashes)),void 0!==e.scaling&&null!==e.scaling?(void 0!==e.scaling.min&&(t.scaling.min=e.scaling.min),void 0!==e.scaling.max&&(t.scaling.max=e.scaling.max),Gb(t.scaling,e.scaling,"label",r.scaling)):!0===n&&null===e.scaling&&(t.scaling=kp(r.scaling)),void 0!==e.arrows&&null!==e.arrows)if("string"==typeof e.arrows){var o=e.arrows.toLowerCase();t.arrows.to.enabled=-1!=cp(o).call(o,"to"),t.arrows.middle.enabled=-1!=cp(o).call(o,"middle"),t.arrows.from.enabled=-1!=cp(o).call(o,"from")}else{if("object"!==Hc(e.arrows))throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+Dp(e.arrows));Gb(t.arrows,e.arrows,"to",r.arrows),Gb(t.arrows,e.arrows,"middle",r.arrows),Gb(t.arrows,e.arrows,"from",r.arrows)}else!0===n&&null===e.arrows&&(t.arrows=kp(r.arrows));if(void 0!==e.color&&null!==e.color){var g=_b(e.color)?{color:e.color,highlight:e.color,hover:e.color,inherit:!1,opacity:1}:e.color,s=t.color;if(i)Sb(s,r.color,!1,n);else for(var A in s)Object.prototype.hasOwnProperty.call(s,A)&&delete s[A];if(_b(s))s.color=s,s.highlight=s,s.hover=s,s.inherit=!1,void 0===g.opacity&&(s.opacity=1);else{var C=!1;void 0!==g.color&&(s.color=g.color,C=!0),void 0!==g.highlight&&(s.highlight=g.highlight,C=!0),void 0!==g.hover&&(s.hover=g.hover,C=!0),void 0!==g.inherit&&(s.inherit=g.inherit),void 0!==g.opacity&&(s.opacity=Math.min(1,Math.max(0,g.opacity))),!0===C?s.inherit=!1:void 0===s.inherit&&(s.inherit="from")}}else!0===n&&null===e.color&&(t.color=Vb(r.color));!0===n&&null===e.font&&(t.font=Vb(r.font)),Object.prototype.hasOwnProperty.call(e,"selfReferenceSize")&&(console.warn("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),t.selfReference.size=e.selfReferenceSize)}}]),t}(),pD=function(){function t(e,n,r){var i,o=this;Bu(this,t),this.body=e,this.images=n,this.groups=r,this.body.functions.createEdge=bi(i=this.create).call(i,this),this.edgesListeners={add:function(t,e){o.add(e.items)},update:function(t,e){o.update(e.items)},remove:function(t,e){o.remove(e.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(t,e,n,r){if(e===t)return.5;var i=1/(e-t);return Math.max(0,(r-t)*i)}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},Sb(this.options,this.defaultOptions),this.bindEventListeners()}return nl(t,[{key:"bindEventListeners",value:function(){var t,e,n=this;this.body.emitter.on("_forceDisableDynamicCurves",(function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];"dynamic"===t&&(t="continuous");var r=!1;for(var i in n.body.edges)if(Object.prototype.hasOwnProperty.call(n.body.edges,i)){var o=n.body.edges[i],g=n.body.data.edges.get(i);if(null!=g){var s=g.smooth;void 0!==s&&!0===s.enabled&&"dynamic"===s.type&&(void 0===t?o.setOptions({smooth:!1}):o.setOptions({smooth:{type:t}}),r=!0)}}!0===e&&!0===r&&n.body.emitter.emit("_dataChanged")})),this.body.emitter.on("_dataUpdated",(function(){n.reconnectEdges()})),this.body.emitter.on("refreshEdges",bi(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",bi(e=this.refresh).call(e,this)),this.body.emitter.on("destroy",(function(){Rb(n.edgesListeners,(function(t,e){n.body.data.edges&&n.body.data.edges.off(e,t)})),delete n.body.functions.createEdge,delete n.edgesListeners.add,delete n.edgesListeners.update,delete n.edgesListeners.remove,delete n.edgesListeners}))}},{key:"setOptions",value:function(t){if(void 0!==t){fD.parseOptions(this.options,t,!0,this.defaultOptions,!0);var e=!1;if(void 0!==t.smooth)for(var n in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,n)&&(e=this.body.edges[n].updateEdgeType()||e);if(void 0!==t.font)for(var r in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,r)&&this.body.edges[r].updateLabelModule();void 0===t.hidden&&void 0===t.physics&&!0!==e||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.body.data.edges;if(lN("id",t))this.body.data.edges=t;else if(Ah(t))this.body.data.edges=new cN,this.body.data.edges.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.body.data.edges=new cN}if(r&&Rb(this.edgesListeners,(function(t,e){r.off(e,t)})),this.body.edges={},this.body.data.edges){Rb(this.edgesListeners,(function(t,n){e.body.data.edges.on(n,t)}));var i=this.body.data.edges.getIds();this.add(i,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),!1===n&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.body.edges,r=this.body.data.edges,i=0;i1&&void 0!==arguments[1])||arguments[1];if(0!==t.length){var n=this.body.edges;Rb(t,(function(t){var e=n[t];void 0!==e&&e.remove()})),e&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var t=this;Rb(this.body.edges,(function(e,n){var r=t.body.data.edges.get(n);void 0!==r&&e.setOptions(r)}))}},{key:"create",value:function(t){return new fD(t,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var t,e=this.body.nodes,n=this.body.edges;for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(e[t].edges=[]);for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)){var r=n[t];r.from=null,r.to=null,r.connect()}}},{key:"getConnectedNodes",value:function(t){var e=[];if(void 0!==this.body.edges[t]){var n=this.body.edges[t];void 0!==n.fromId&&e.push(n.fromId),void 0!==n.toId&&e.push(n.toId)}return e}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var t=this,e=[];Rb(this.body.edges,(function(n,r){var i=t.body.nodes[n.toId],o=t.body.nodes[n.fromId];void 0!==i&&!0===i.isCluster||void 0!==o&&!0===o.isCluster||void 0!==i&&void 0!==o||e.push(r)})),this.remove(e,!1)}},{key:"_addMissingEdges",value:function(){var t=this.body.data.edges;if(null!=t){var e=this.body.edges,n=[];Wh(t).call(t,(function(t,r){void 0===e[r]&&n.push(r)})),this.add(n,!0)}}}]),t}(),vD=function(){function t(e,n,r){Bu(this,t),this.body=e,this.physicsBody=n,this.barnesHutTree,this.setOptions(r),this._rng=db("BARNES HUT SOLVER")}return nl(t,[{key:"setOptions",value:function(t){this.options=t,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"solve",value:function(){if(0!==this.options.gravitationalConstant&&this.physicsBody.physicsNodeIndices.length>0){var t,e=this.body.nodes,n=this.physicsBody.physicsNodeIndices,r=n.length,i=this._formBarnesHutTree(e,n);this.barnesHutTree=i;for(var o=0;o0&&this._getForceContributions(i.root,t)}}},{key:"_getForceContributions",value:function(t,e){this._getForceContribution(t.children.NW,e),this._getForceContribution(t.children.NE,e),this._getForceContribution(t.children.SW,e),this._getForceContribution(t.children.SE,e)}},{key:"_getForceContribution",value:function(t,e){if(t.childrenCount>0){var n=t.centerOfMass.x-e.x,r=t.centerOfMass.y-e.y,i=Math.sqrt(n*n+r*r);i*t.calcSize>this.thetaInversed?this._calculateForces(i,n,r,e,t):4===t.childrenCount?this._getForceContributions(t,e):t.children.data.id!=e.id&&this._calculateForces(i,n,r,e,t)}}},{key:"_calculateForces",value:function(t,e,n,r,i){0===t&&(e=t=.1),this.overlapAvoidanceFactor<1&&r.shape.radius&&(t=Math.max(.1+this.overlapAvoidanceFactor*r.shape.radius,t-r.shape.radius));var o=this.options.gravitationalConstant*i.mass*r.options.mass/Math.pow(t,3),g=e*o,s=n*o;this.physicsBody.forces[r.id].x+=g,this.physicsBody.forces[r.id].y+=s}},{key:"_formBarnesHutTree",value:function(t,e){for(var n,r=e.length,i=t[e[0]].x,o=t[e[0]].y,g=t[e[0]].x,s=t[e[0]].y,A=1;A0&&(Ig&&(g=I),as&&(s=a))}var u=Math.abs(g-i)-Math.abs(s-o);u>0?(o-=.5*u,s+=.5*u):(i+=.5*u,g-=.5*u);var c=Math.max(1e-5,Math.abs(g-i)),l=.5*c,h=.5*(i+g),d=.5*(o+s),f={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:h-l,maxX:h+l,minY:d-l,maxY:d+l},size:c,calcSize:1/c,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(f.root);for(var p=0;p0&&this._placeInTree(f.root,n);return f}},{key:"_updateBranchMass",value:function(t,e){var n=t.centerOfMass,r=t.mass+e.options.mass,i=1/r;n.x=n.x*t.mass+e.x*e.options.mass,n.x*=i,n.y=n.y*t.mass+e.y*e.options.mass,n.y*=i,t.mass=r;var o=Math.max(Math.max(e.height,e.radius),e.width);t.maxWidth=t.maxWidthe.x?i.maxY>e.y?"NW":"SW":i.maxY>e.y?"NE":"SE",this._placeInRegion(t,e,r)}},{key:"_placeInRegion",value:function(t,e,n){var r=t.children[n];switch(r.childrenCount){case 0:r.children.data=e,r.childrenCount=1,this._updateBranchMass(r,e);break;case 1:r.children.data.x===e.x&&r.children.data.y===e.y?(e.x+=this._rng(),e.y+=this._rng()):(this._splitBranch(r),this._placeInTree(r,e));break;case 4:this._placeInTree(r,e)}}},{key:"_splitBranch",value:function(t){var e=null;1===t.childrenCount&&(e=t.children.data,t.mass=0,t.centerOfMass.x=0,t.centerOfMass.y=0),t.childrenCount=4,t.children.data=null,this._insertRegion(t,"NW"),this._insertRegion(t,"NE"),this._insertRegion(t,"SW"),this._insertRegion(t,"SE"),null!=e&&this._placeInTree(t,e)}},{key:"_insertRegion",value:function(t,e){var n,r,i,o,g=.5*t.size;switch(e){case"NW":n=t.range.minX,r=t.range.minX+g,i=t.range.minY,o=t.range.minY+g;break;case"NE":n=t.range.minX+g,r=t.range.maxX,i=t.range.minY,o=t.range.minY+g;break;case"SW":n=t.range.minX,r=t.range.minX+g,i=t.range.minY+g,o=t.range.maxY;break;case"SE":n=t.range.minX+g,r=t.range.maxX,i=t.range.minY+g,o=t.range.maxY}t.children[e]={centerOfMass:{x:0,y:0},mass:0,range:{minX:n,maxX:r,minY:i,maxY:o},size:.5*t.size,calcSize:2*t.calcSize,children:{data:null},maxWidth:0,level:t.level+1,childrenCount:0}}},{key:"_debug",value:function(t,e){void 0!==this.barnesHutTree&&(t.lineWidth=1,this._drawBranch(this.barnesHutTree.root,t,e))}},{key:"_drawBranch",value:function(t,e,n){void 0===n&&(n="#FF0000"),4===t.childrenCount&&(this._drawBranch(t.children.NW,e),this._drawBranch(t.children.NE,e),this._drawBranch(t.children.SE,e),this._drawBranch(t.children.SW,e)),e.strokeStyle=n,e.beginPath(),e.moveTo(t.range.minX,t.range.minY),e.lineTo(t.range.maxX,t.range.minY),e.stroke(),e.beginPath(),e.moveTo(t.range.maxX,t.range.minY),e.lineTo(t.range.maxX,t.range.maxY),e.stroke(),e.beginPath(),e.moveTo(t.range.maxX,t.range.maxY),e.lineTo(t.range.minX,t.range.maxY),e.stroke(),e.beginPath(),e.moveTo(t.range.minX,t.range.maxY),e.lineTo(t.range.minX,t.range.minY),e.stroke()}}]),t}(),yD=function(){function t(e,n,r){Bu(this,t),this._rng=db("REPULSION SOLVER"),this.body=e,this.physicsBody=n,this.setOptions(r)}return nl(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,e,n,r,i,o,g,s,A=this.body.nodes,C=this.physicsBody.physicsNodeIndices,I=this.physicsBody.forces,a=this.options.nodeDistance,u=-2/3/a,c=0;c0){var o=i.edges.length+1,g=this.options.centralGravity*o*i.options.mass;r[i.id].x=e*g,r[i.id].y=n*g}}}]),i}(_D),OD=function(){function t(e){Bu(this,t),this.body=e,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},Jr(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return nl(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("initPhysics",(function(){t.initPhysics()})),this.body.emitter.on("_layoutFailed",(function(){t.layoutFailed=!0})),this.body.emitter.on("resetPhysics",(function(){t.stopSimulation(),t.ready=!1})),this.body.emitter.on("disablePhysics",(function(){t.physicsEnabled=!1,t.stopSimulation()})),this.body.emitter.on("restorePhysics",(function(){t.setOptions(t.options),!0===t.ready&&t.startSimulation()})),this.body.emitter.on("startSimulation",(function(){!0===t.ready&&t.startSimulation()})),this.body.emitter.on("stopSimulation",(function(){t.stopSimulation()})),this.body.emitter.on("destroy",(function(){t.stopSimulation(!1),t.body.emitter.off()})),this.body.emitter.on("_dataChanged",(function(){t.updatePhysicsData()}))}},{key:"setOptions",value:function(t){if(void 0!==t)if(!1===t)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(!0===t)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,Tb(["stabilization"],this.options,t),Gb(this.options,t,"stabilization"),void 0===t.enabled&&(this.options.enabled=!0),!1===this.options.enabled&&(this.physicsEnabled=!1,this.stopSimulation());var e=this.options.wind;e&&(("number"!=typeof e.x||v_(e.x))&&(e.x=0),("number"!=typeof e.y||v_(e.y))&&(e.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var t;"forceAtlas2Based"===this.options.solver?(t=this.options.forceAtlas2Based,this.nodesSolver=new xD(this.body,this.physicsBody,t),this.edgesSolver=new mD(this.body,this.physicsBody,t),this.gravitySolver=new ED(this.body,this.physicsBody,t)):"repulsion"===this.options.solver?(t=this.options.repulsion,this.nodesSolver=new yD(this.body,this.physicsBody,t),this.edgesSolver=new mD(this.body,this.physicsBody,t),this.gravitySolver=new _D(this.body,this.physicsBody,t)):"hierarchicalRepulsion"===this.options.solver?(t=this.options.hierarchicalRepulsion,this.nodesSolver=new bD(this.body,this.physicsBody,t),this.edgesSolver=new wD(this.body,this.physicsBody,t),this.gravitySolver=new _D(this.body,this.physicsBody,t)):(t=this.options.barnesHut,this.nodesSolver=new vD(this.body,this.physicsBody,t),this.edgesSolver=new mD(this.body,this.physicsBody,t),this.gravitySolver=new _D(this.body,this.physicsBody,t)),this.modelOptions=t}},{key:"initPhysics",value:function(){!0===this.physicsEnabled&&!0===this.options.enabled?!0===this.options.stabilization.enabled?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){var t;!0===this.physicsEnabled&&!0===this.options.enabled?(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),void 0===this.viewFunction&&(this.viewFunction=bi(t=this.simulationStep).call(t,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))):this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.stabilized=!0,!0===t&&this._emitStabilized(),void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,!0===t&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var t=Sh();this.physicsTick(),(Sh()-t<.4*this.simulationInterval||!0===this.runDoubleSpeed)&&!1===this.stabilized&&(this.physicsTick(),this.runDoubleSpeed=!0),!0===this.stabilized&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||!0===this.startedStabilization)&&rv((function(){t.body.emitter.emit("stabilized",{iterations:e}),t.startedStabilization=!1,t.stabilizationIterations=0}),0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){!0===this._evaluateStepQuality()?this.timestep=1.2*this.timestep:this.timestep/1.2.3))return!1;return!0}},{key:"moveNodes",value:function(){for(var t=this.physicsBody.physicsNodeIndices,e=0,n=0,r=0;rr&&(t=t>0?r:-r),t}},{key:"_performStep",value:function(t){var e=this.body.nodes[t],n=this.physicsBody.forces[t];this.options.wind&&(n.x+=this.options.wind.x,n.y+=this.options.wind.y);var r=this.physicsBody.velocities[t];return this.previousStates[t]={x:e.x,y:e.y,vx:r.x,vy:r.y},!1===e.options.fixed.x?(r.x=this.calculateComponentVelocity(r.x,n.x,e.options.mass),e.x+=r.x*this.timestep):(n.x=0,r.x=0),!1===e.options.fixed.y?(r.y=this.calculateComponentVelocity(r.y,n.y,e.options.mass),e.y+=r.y*this.timestep):(n.y=0,r.y=0),Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2))}},{key:"_freezeNodes",value:function(){var t=this.body.nodes;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&t[e].x&&t[e].y){var n=t[e].options.fixed;this.freezeCache[e]={x:n.x,y:n.y},n.x=!0,n.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var t=this.body.nodes;for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&void 0!==this.freezeCache[e]&&(t[e].options.fixed.x=this.freezeCache[e].x,t[e].options.fixed.y=this.freezeCache[e].y);this.freezeCache={}}},{key:"stabilize",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.stabilization.iterations;"number"!=typeof e&&(e=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",e)),0!==this.physicsBody.physicsNodeIndices.length?(this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=e,!0===this.options.stabilization.onlyDynamicEdges&&this._freezeNodes(),this.stabilizationIterations=0,rv((function(){return t._stabilizationBatch()}),0)):this.ready=!0}},{key:"_startStabilizing",value:function(){return!0!==this.startedStabilization&&(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var t=this,e=function(){return!1===t.stabilized&&t.stabilizationIterations1&&void 0!==arguments[1]?arguments[1]:[],r=1e9,i=-1e9,o=1e9,g=-1e9;if(n.length>0)for(var s=0;s(e=t[n[s]]).shape.boundingBox.left&&(o=e.shape.boundingBox.left),ge.shape.boundingBox.top&&(r=e.shape.boundingBox.top),i1&&void 0!==arguments[1]?arguments[1]:[],r=1e9,i=-1e9,o=1e9,g=-1e9;if(n.length>0)for(var s=0;s(e=t[n[s]]).x&&(o=e.x),ge.y&&(r=e.y),i=t&&n.push(i.id)}for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0===e.joinCondition)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");e=this._checkOptions(e);var r={},i={};Rb(this.body.nodes,(function(n,o){n.options&&!0===e.joinCondition(n.options)&&(r[o]=n,Rb(n.edges,(function(e){void 0===t.clusteredEdges[e.id]&&(i[e.id]=e)})))})),this._cluster(r,i,e,n)}},{key:"clusterByEdgeCount",value:function(t,e){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e=this._checkOptions(e);for(var i,o,g,s=[],A={},C=function(){var r={},C={},a=n.body.nodeIndices[I],u=n.body.nodes[a];if(void 0===A[a]){g=0,o=[];for(var c=0;c0&&wh(C).length>0&&!0===h){var p=function(){for(var t=0;t1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(1,t,e)}},{key:"clusterBridges",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(2,t,e)}},{key:"clusterByConnection",value:function(t,e){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error("No nodeId supplied to clusterByConnection!");if(void 0===this.body.nodes[t])throw new Error("The nodeId given to clusterByConnection does not exist!");var i=this.body.nodes[t];void 0===(e=this._checkOptions(e,i)).clusterNodeProperties.x&&(e.clusterNodeProperties.x=i.x),void 0===e.clusterNodeProperties.y&&(e.clusterNodeProperties.y=i.y),void 0===e.clusterNodeProperties.fixed&&(e.clusterNodeProperties.fixed={},e.clusterNodeProperties.fixed.x=i.options.fixed.x,e.clusterNodeProperties.fixed.y=i.options.fixed.y);var o={},g={},s=i.id,A=kD.cloneOptions(i);o[s]=i;for(var C=0;C-1&&(g[f.id]=f)}this._cluster(o,g,e,r)}},{key:"_createClusterEdges",value:function(t,e,n,r){for(var i,o,g,s,A,C,I=wh(t),a=[],u=0;u0&&void 0!==arguments[0]?arguments[0]:{};return void 0===t.clusterEdgeProperties&&(t.clusterEdgeProperties={}),void 0===t.clusterNodeProperties&&(t.clusterNodeProperties={}),t}},{key:"_cluster",value:function(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&void 0!==this.clusteredNodes[o]&&i.push(o);for(var g=0;gi?e.x:i,o=e.yg?e.y:g;return{x:.5*(r+i),y:.5*(o+g)}}},{key:"openCluster",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error("No clusterNodeId supplied to openCluster.");var r=this.body.nodes[t];if(void 0===r)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(!0!==r.isCluster||void 0===r.containedNodes||void 0===r.containedEdges)throw new Error("The node:"+t+" is not a valid cluster.");var i=this.findNode(t),o=cp(i).call(i,t)-1;if(o>=0){var g=i[o];return this.body.nodes[g]._openChildCluster(t),delete this.body.nodes[t],void(!0===n&&this.body.emitter.emit("_dataChanged"))}var s=r.containedNodes,A=r.containedEdges;if(void 0!==e&&void 0!==e.releaseFunction&&"function"==typeof e.releaseFunction){var C={},I={x:r.x,y:r.y};for(var a in s)if(Object.prototype.hasOwnProperty.call(s,a)){var u=this.body.nodes[a];C[a]={x:u.x,y:u.y}}var c=e.releaseFunction(I,C);for(var l in s)if(Object.prototype.hasOwnProperty.call(s,l)){var h=this.body.nodes[l];void 0!==c[l]&&(h.x=void 0===c[l].x?r.x:c[l].x,h.y=void 0===c[l].y?r.y:c[l].y)}}else Rb(s,(function(t){!1===t.options.fixed.x&&(t.x=r.x),!1===t.options.fixed.y&&(t.y=r.y)}));for(var d in s)if(Object.prototype.hasOwnProperty.call(s,d)){var f=this.body.nodes[d];f.vx=r.vx,f.vy=r.vy,f.setOptions({physics:!0}),delete this.clusteredNodes[d]}for(var p=[],v=0;v0&&i<100;){var o=e.pop();if(void 0!==o){var g=this.body.edges[o];if(void 0!==g){i++;var s=g.clusteringEdgeReplacingIds;if(void 0===s)r.push(o);else for(var A=0;Ar&&(r=o.edges.length),t+=o.edges.length,e+=Math.pow(o.edges.length,2),n+=1}t/=n;var g=(e/=n)-Math.pow(t,2),s=Math.sqrt(g),A=Math.floor(t+2*s);return A>r&&(A=r),A}},{key:"_createClusteredEdge",value:function(t,e,n,r,i){var o=kD.cloneOptions(n,"edge");Sb(o,r),o.from=t,o.to=e,o.id="clusterEdge:"+iN(),void 0!==i&&Sb(o,i);var g=this.body.functions.createEdge(o);return g.clusteringEdgeReplacingIds=[n.id],g.connect(),this.body.edges[g.id]=g,g}},{key:"_clusterEdges",value:function(t,e,n,r){if(e instanceof fD){var i=e,o={};o[i.id]=i,e=o}if(t instanceof dR){var g=t,s={};s[g.id]=g,t=s}if(null==n)throw new Error("_clusterEdges: parameter clusterNode required");for(var A in void 0===r&&(r=n.clusterEdgeProperties),this._createClusterEdges(t,e,n,r),e)if(Object.prototype.hasOwnProperty.call(e,A)&&void 0!==this.body.edges[A]){var C=this.body.edges[A];this._backupEdgeOptions(C),C.setOptions({physics:!1})}for(var I in t)Object.prototype.hasOwnProperty.call(t,I)&&(this.clusteredNodes[I]={clusterId:n.id,node:this.body.nodes[I]},this.body.nodes[I].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(t){if(void 0!==t){var e=this.clusteredNodes[t];if(void 0!==e){var n=e.clusterId;if(void 0!==n)return this.body.nodes[n]}}}},{key:"_filter",value:function(t,e){var n=[];return Rb(t,(function(t){e(t)&&n.push(t)})),n}},{key:"_updateState",value:function(){var t,e=this,n=[],r={},i=function(t){Rb(e.body.nodes,(function(e){!0===e.isCluster&&t(e)}))};for(t in this.clusteredNodes)Object.prototype.hasOwnProperty.call(this.clusteredNodes,t)&&void 0===this.body.nodes[t]&&n.push(t);i((function(t){for(var e=0;e0}t.endPointsValid()&&i||(r[n]=n)})),i((function(t){Rb(r,(function(n){delete t.containedEdges[n],Rb(t.edges,(function(i,o){i.id!==n?i.clusteringEdgeReplacingIds=e._filter(i.clusteringEdgeReplacingIds,(function(t){return!r[t]})):t.edges[o]=null})),t.edges=e._filter(t.edges,(function(t){return null!==t}))}))})),Rb(r,(function(t){delete e.clusteredEdges[t]})),Rb(r,(function(t){delete e.body.edges[t]})),Rb(wh(this.body.edges),(function(t){var n=e.body.edges[t],r=e._isClusteredNode(n.fromId)||e._isClusteredNode(n.toId);if(r!==e._isClusteredEdge(n.id))if(r){var i=e._getClusterNodeForNode(n.fromId);void 0!==i&&e._clusterEdges(e.body.nodes[n.fromId],n,i);var o=e._getClusterNodeForNode(n.toId);void 0!==o&&e._clusterEdges(e.body.nodes[n.toId],n,o)}else delete e._clusterEdges[t],e._restoreEdge(n)}));for(var g=!1,s=!0,A=function(){var t=[];i((function(e){var n=wh(e.containedNodes).length,r=!0===e.options.allowSingleNodeCluster;(r&&n<1||!r&&n<2)&&t.push(e.id)}));for(var n=0;n0,g=g||s};s;)A();g&&this._updateState()}},{key:"_isClusteredNode",value:function(t){return void 0!==this.clusteredNodes[t]}},{key:"_isClusteredEdge",value:function(t){return void 0!==this.clusteredEdges[t]}}]),t}(),PD=function(){function t(e,n){var r;Bu(this,t),void 0!==window&&(r=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),window.requestAnimationFrame=void 0===r?function(t){t()}:r,this.body=e,this.canvas=n,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},Jr(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return nl(t,[{key:"bindEventListeners",value:function(){var t,e=this;this.body.emitter.on("dragStart",(function(){e.dragging=!0})),this.body.emitter.on("dragEnd",(function(){e.dragging=!1})),this.body.emitter.on("zoom",(function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=rv((function(){var t;e.zooming=!1,bi(t=e._requestRedraw).call(t,e)()}),250)})),this.body.emitter.on("_resizeNodes",(function(){e._resizeNodes()})),this.body.emitter.on("_redraw",(function(){!1===e.renderingActive&&e._redraw()})),this.body.emitter.on("_blockRedraw",(function(){e.allowRedraw=!1})),this.body.emitter.on("_allowRedraw",(function(){e.allowRedraw=!0,e.redrawRequested=!1})),this.body.emitter.on("_requestRedraw",bi(t=this._requestRedraw).call(t,this)),this.body.emitter.on("_startRendering",(function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()})),this.body.emitter.on("_stopRendering",(function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0})),this.body.emitter.on("destroy",(function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,!0===e.requiresTimeout?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()}))}},{key:"setOptions",value:function(t){void 0!==t&&kb(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"],this.options,t)}},{key:"_requestNextFrame",value:function(t,e){if("undefined"!=typeof window){var n,r=window;return!0===this.requiresTimeout?n=rv(t,e):r.requestAnimationFrame&&(n=r.requestAnimationFrame(t)),n}}},{key:"_startRendering",value:function(){var t;!0===this.renderingActive&&void 0===this.renderTimer&&(this.renderTimer=this._requestNextFrame(bi(t=this._renderStep).call(t,this),this.simulationInterval))}},{key:"_renderStep",value:function(){!0===this.renderingActive&&(this.renderTimer=void 0,!0===this.requiresTimeout&&this._startRendering(),this._redraw(),!1===this.requiresTimeout&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var t=this;!0!==this.redrawRequested&&!1===this.renderingActive&&!0===this.allowRedraw&&(this.redrawRequested=!0,this._requestNextFrame((function(){t._redraw(!1)}),0))}},{key:"_redraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!0===this.allowRedraw){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;var e={drawExternalLabels:null};0!==this.canvas.frame.canvas.width&&0!==this.canvas.frame.canvas.height||this.canvas.setSize(),this.canvas.setTransform();var n=this.canvas.getContext(),r=this.canvas.frame.canvas.clientWidth,i=this.canvas.frame.canvas.clientHeight;if(n.clearRect(0,0,r,i),0===this.canvas.frame.clientWidth)return;if(n.save(),n.translate(this.body.view.translation.x,this.body.view.translation.y),n.scale(this.body.view.scale,this.body.view.scale),n.beginPath(),this.body.emitter.emit("beforeDrawing",n),n.closePath(),!1===t&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&(!1===this.zooming||!0===this.zooming&&!1===this.options.hideEdgesOnZoom)&&this._drawEdges(n),!1===this.dragging||!0===this.dragging&&!1===this.options.hideNodesOnDrag){var o=this._drawNodes(n,t).drawExternalLabels;e.drawExternalLabels=o}!1===t&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&(!1===this.zooming||!0===this.zooming&&!1===this.options.hideEdgesOnZoom)&&this._drawArrows(n),null!=e.drawExternalLabels&&e.drawExternalLabels(),!1===t&&this._drawSelectionBox(n),n.beginPath(),this.body.emitter.emit("afterDrawing",n),n.closePath(),n.restore(),!0===t&&n.clearRect(0,0,r,i)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var t=this.canvas.getContext();t.save(),t.translate(this.body.view.translation.x,this.body.view.translation.y),t.scale(this.body.view.scale,this.body.view.scale);var e,n=this.body.nodes;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&((e=n[r]).resize(t),e.updateBoundingBox(t,e.selected));t.restore()}},{key:"_drawNodes",value:function(t){for(var e,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.body.nodes,o=this.body.nodeIndices,g=[],s=[],A=this.canvas.DOMtoCanvas({x:-20,y:-20}),C=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+20,y:this.canvas.frame.canvas.clientHeight+20}),I={top:A.y,left:A.x,bottom:C.y,right:C.x},a=[],u=0;u0&&void 0!==arguments[0]?arguments[0]:this.pixelRatio;!0===this.initialized&&(this.cameraState.previousWidth=this.frame.canvas.width/t,this.cameraState.previousHeight=this.frame.canvas.height/t,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/t,y:.5*this.frame.canvas.height/t}))}},{key:"_setCameraState",value:function(){if(void 0!==this.cameraState.scale&&0!==this.frame.canvas.clientWidth&&0!==this.frame.canvas.clientHeight&&0!==this.pixelRatio&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){var t=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,e=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,n=this.cameraState.scale;1!=t&&1!=e?n=.5*this.cameraState.scale*(t+e):1!=t?n=this.cameraState.scale*t:1!=e&&(n=this.cameraState.scale*e),this.body.view.scale=n;var r=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),i={x:r.x-this.cameraState.position.x,y:r.y-this.cameraState.position.y};this.body.view.translation.x+=i.x*this.body.view.scale,this.body.view.translation.y+=i.y*this.body.view.scale}}},{key:"_prepareValue",value:function(t){if("number"==typeof t)return t+"px";if("string"==typeof t){if(-1!==cp(t).call(t,"%")||-1!==cp(t).call(t,"px"))return t;if(-1===cp(t).call(t,"%"))return t+"px"}throw new Error("Could not use the value supplied for width or height:"+t)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=0,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(t)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var t=this;void 0!==this.hammer&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new im(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:im.DIRECTION_ALL}),MD(this.hammer,(function(e){t.body.eventListeners.onTouch(e)})),this.hammer.on("tap",(function(e){t.body.eventListeners.onTap(e)})),this.hammer.on("doubletap",(function(e){t.body.eventListeners.onDoubleTap(e)})),this.hammer.on("press",(function(e){t.body.eventListeners.onHold(e)})),this.hammer.on("panstart",(function(e){t.body.eventListeners.onDragStart(e)})),this.hammer.on("panmove",(function(e){t.body.eventListeners.onDrag(e)})),this.hammer.on("panend",(function(e){t.body.eventListeners.onDragEnd(e)})),this.hammer.on("pinch",(function(e){t.body.eventListeners.onPinch(e)})),this.frame.canvas.addEventListener("wheel",(function(e){t.body.eventListeners.onMouseWheel(e)})),this.frame.canvas.addEventListener("mousemove",(function(e){t.body.eventListeners.onMouseMove(e)})),this.frame.canvas.addEventListener("contextmenu",(function(e){t.body.eventListeners.onContext(e)})),this.hammerFrame=new im(this.frame),jD(this.hammerFrame,(function(e){t.body.eventListeners.onRelease(e)}))}},{key:"setSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.width,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.height;t=this._prepareValue(t),e=this._prepareValue(e);var n=!1,r=this.frame.canvas.width,i=this.frame.canvas.height,o=this.pixelRatio;if(this._setPixelRatio(),t!=this.options.width||e!=this.options.height||this.frame.style.width!=t||this.frame.style.height!=e)this._getCameraState(o),this.frame.style.width=t,this.frame.style.height=e,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=t,this.options.height=e,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},n=!0;else{var g=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),s=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);this.frame.canvas.width===g&&this.frame.canvas.height===s||this._getCameraState(o),this.frame.canvas.width!==g&&(this.frame.canvas.width=g,n=!0),this.frame.canvas.height!==s&&(this.frame.canvas.height=s,n=!0)}return!0===n&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(r/this.pixelRatio),oldHeight:Math.round(i/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,n}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var t=this.getContext();if(void 0===t)throw new Error("Could not get canvax context");var e=1;return"undefined"!=typeof window&&(e=window.devicePixelRatio||1),e/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var t=this.getContext();if(void 0===t)throw new Error("Could not get canvax context");t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(t){return{x:this._XconvertCanvasToDOM(t.x),y:this._YconvertCanvasToDOM(t.y)}}},{key:"DOMtoCanvas",value:function(t){return{x:this._XconvertDOMtoCanvas(t.x),y:this._YconvertDOMtoCanvas(t.y)}}}]),t}(),LD=function(){function t(e,n){var r,i,o=this;Bu(this,t),this.body=e,this.canvas=n,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",bi(r=this.fit).call(r,this)),this.body.emitter.on("animationFinished",(function(){o.body.emitter.emit("_stopRendering")})),this.body.emitter.on("unlockNode",bi(i=this.releaseNode).call(i,this))}return nl(t,[{key:"setOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t}},{key:"fit",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=function(t,e){var n=Jr({nodes:e,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},null!=t?t:{});if(!Ah(n.nodes))throw new TypeError("Nodes has to be an array of ids.");if(0===n.nodes.length&&(n.nodes=e),!("number"==typeof n.minZoomLevel&&n.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!("number"==typeof n.maxZoomLevel&&n.minZoomLevel<=n.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return n}(t,this.body.nodeIndices);var n,r,i=this.canvas.frame.canvas.clientWidth,o=this.canvas.frame.canvas.clientHeight;if(0===i||0===o)r=1,n=kD.getRange(this.body.nodes,t.nodes);else if(!0===e){var g=0;for(var s in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,s)&&!0===this.body.nodes[s].predefinedPosition&&(g+=1);if(g>.5*this.body.nodeIndices.length)return void this.fit(t,!1);n=kD.getRange(this.body.nodes,t.nodes),r=12.662/(this.body.nodeIndices.length+7.4147)+.0964822,r*=Math.min(i/600,o/600)}else{this.body.emitter.emit("_resizeNodes"),n=kD.getRange(this.body.nodes,t.nodes);var A=i/(1.1*Math.abs(n.maxX-n.minX)),C=o/(1.1*Math.abs(n.maxY-n.minY));r=A<=C?A:C}r>t.maxZoomLevel?r=t.maxZoomLevel:r1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==this.body.nodes[t]){var n={x:this.body.nodes[t].x,y:this.body.nodes[t].y};e.position=n,e.lockedOnNode=t,this.moveTo(e)}else console.error("Node: "+t+" cannot be found.")}},{key:"moveTo",value:function(t){if(void 0!==t){if(null!=t.offset){if(null!=t.offset.x){if(t.offset.x=+t.offset.x,!__(t.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else t.offset.x=0;if(null!=t.offset.y){if(t.offset.y=+t.offset.y,!__(t.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else t.offset.x=0}else t.offset={x:0,y:0};if(null!=t.position){if(null!=t.position.x){if(t.position.x=+t.position.x,!__(t.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else t.position.x=0;if(null!=t.position.y){if(t.position.y=+t.position.y,!__(t.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else t.position.x=0}else t.position=this.getViewPosition();if(null!=t.scale){if(t.scale=+t.scale,!(t.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else t.scale=this.body.view.scale;void 0===t.animation&&(t.animation={duration:0}),!1===t.animation&&(t.animation={duration:0}),!0===t.animation&&(t.animation={}),void 0===t.animation.duration&&(t.animation.duration=1e3),void 0===t.animation.easingFunction&&(t.animation.easingFunction="easeInOutQuad"),this.animateView(t)}else t={}}},{key:"animateView",value:function(t){if(void 0!==t){this.animationEasingFunction=t.animation.easingFunction,this.releaseNode(),!0===t.locked&&(this.lockedOnNodeId=t.lockedOnNode,this.lockedOnNodeOffset=t.offset),0!=this.easingTime&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=t.scale,this.body.view.scale=this.targetScale;var e,n,r=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i=r.x-t.position.x,o=r.y-t.position.y;this.targetTranslation={x:this.sourceTranslation.x+i*this.targetScale+t.offset.x,y:this.sourceTranslation.y+o*this.targetScale+t.offset.y},0===t.animation.duration?null!=this.lockedOnNodeId?(this.viewFunction=bi(e=this._lockedRedraw).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction)):(this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw")):(this.animationSpeed=1/(60*t.animation.duration*.001)||1/60,this.animationEasingFunction=t.animation.easingFunction,this.viewFunction=bi(n=this._transitionRedraw).call(n,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))}}},{key:"_lockedRedraw",value:function(){var t=this.body.nodes[this.lockedOnNodeId].x,e=this.body.nodes[this.lockedOnNodeId].y,n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),r=n.x-t,i=n.y-e,o=this.body.view.translation,g={x:o.x+r*this.body.view.scale+this.lockedOnNodeOffset.x,y:o.y+i*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=g}},{key:"releaseNode",value:function(){void 0!==this.lockedOnNodeId&&void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.easingTime+=this.animationSpeed,this.easingTime=!0===t?1:this.easingTime;var e,n=Wb[this.animationEasingFunction](this.easingTime);(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*n,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*n,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*n},this.easingTime>=1)&&(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,null!=this.lockedOnNodeId&&(this.viewFunction=bi(e=this._lockedRedraw).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction)),this.body.emitter.emit("animationFinished"))}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),t}();function FD(t){var e,n=t&&t.preventDefault||!1,r=t&&t.container||window,i={},o={keydown:{},keyup:{}},g={};for(e=97;e<=122;e++)g[String.fromCharCode(e)]={code:e-97+65,shift:!1};for(e=65;e<=90;e++)g[String.fromCharCode(e)]={code:e,shift:!0};for(e=0;e<=9;e++)g[""+e]={code:48+e,shift:!1};for(e=1;e<=12;e++)g["F"+e]={code:111+e,shift:!1};for(e=0;e<=9;e++)g["num"+e]={code:96+e,shift:!1};g["num*"]={code:106,shift:!1},g["num+"]={code:107,shift:!1},g["num-"]={code:109,shift:!1},g["num/"]={code:111,shift:!1},g["num."]={code:110,shift:!1},g.left={code:37,shift:!1},g.up={code:38,shift:!1},g.right={code:39,shift:!1},g.down={code:40,shift:!1},g.space={code:32,shift:!1},g.enter={code:13,shift:!1},g.shift={code:16,shift:void 0},g.esc={code:27,shift:!1},g.backspace={code:8,shift:!1},g.tab={code:9,shift:!1},g.ctrl={code:17,shift:!1},g.alt={code:18,shift:!1},g.delete={code:46,shift:!1},g.pageup={code:33,shift:!1},g.pagedown={code:34,shift:!1},g["="]={code:187,shift:!1},g["-"]={code:189,shift:!1},g["]"]={code:221,shift:!1},g["["]={code:219,shift:!1};var s=function(t){C(t,"keydown")},A=function(t){C(t,"keyup")},C=function(t,e){if(void 0!==o[e][t.keyCode]){for(var r=o[e][t.keyCode],i=0;i700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=(new Date).valueOf())}},{key:"_stopMovement",value:function(){for(var t in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,t)&&(this.body.emitter.off("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var t=this.body.view.scale,e=this.body.view.scale*(1+this.options.keyboard.speed.zoom),n=this.body.view.translation,r=e/t,i=(1-r)*this.canvas.canvasViewCenter.x+n.x*r,o=(1-r)*this.canvas.canvasViewCenter.y+n.y*r;this.body.view.scale=e,this.body.view.translation={x:i,y:o},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var t=this.body.view.scale,e=this.body.view.scale/(1+this.options.keyboard.speed.zoom),n=this.body.view.translation,r=e/t,i=(1-r)*this.canvas.canvasViewCenter.x+n.x*r,o=(1-r)*this.canvas.canvasViewCenter.y+n.y*r;this.body.view.scale=e,this.body.view.translation={x:i,y:o},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var t,e,n,r,i,o,g,s,A,C,I,a,u,c,l,h,d,f,p,v,y,b,m,w,_=this;void 0!==this.keycharm&&this.keycharm.destroy(),!0===this.options.keyboard.enabled&&(!0===this.options.keyboard.bindToWindow?this.keycharm=FD({container:window,preventDefault:!0}):this.keycharm=FD({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),!0===this.activated&&(bi(t=this.keycharm).call(t,"up",(function(){_.bindToRedraw("_moveUp")}),"keydown"),bi(e=this.keycharm).call(e,"down",(function(){_.bindToRedraw("_moveDown")}),"keydown"),bi(n=this.keycharm).call(n,"left",(function(){_.bindToRedraw("_moveLeft")}),"keydown"),bi(r=this.keycharm).call(r,"right",(function(){_.bindToRedraw("_moveRight")}),"keydown"),bi(i=this.keycharm).call(i,"=",(function(){_.bindToRedraw("_zoomIn")}),"keydown"),bi(o=this.keycharm).call(o,"num+",(function(){_.bindToRedraw("_zoomIn")}),"keydown"),bi(g=this.keycharm).call(g,"num-",(function(){_.bindToRedraw("_zoomOut")}),"keydown"),bi(s=this.keycharm).call(s,"-",(function(){_.bindToRedraw("_zoomOut")}),"keydown"),bi(A=this.keycharm).call(A,"[",(function(){_.bindToRedraw("_zoomOut")}),"keydown"),bi(C=this.keycharm).call(C,"]",(function(){_.bindToRedraw("_zoomIn")}),"keydown"),bi(I=this.keycharm).call(I,"pageup",(function(){_.bindToRedraw("_zoomIn")}),"keydown"),bi(a=this.keycharm).call(a,"pagedown",(function(){_.bindToRedraw("_zoomOut")}),"keydown"),bi(u=this.keycharm).call(u,"up",(function(){_.unbindFromRedraw("_moveUp")}),"keyup"),bi(c=this.keycharm).call(c,"down",(function(){_.unbindFromRedraw("_moveDown")}),"keyup"),bi(l=this.keycharm).call(l,"left",(function(){_.unbindFromRedraw("_moveLeft")}),"keyup"),bi(h=this.keycharm).call(h,"right",(function(){_.unbindFromRedraw("_moveRight")}),"keyup"),bi(d=this.keycharm).call(d,"=",(function(){_.unbindFromRedraw("_zoomIn")}),"keyup"),bi(f=this.keycharm).call(f,"num+",(function(){_.unbindFromRedraw("_zoomIn")}),"keyup"),bi(p=this.keycharm).call(p,"num-",(function(){_.unbindFromRedraw("_zoomOut")}),"keyup"),bi(v=this.keycharm).call(v,"-",(function(){_.unbindFromRedraw("_zoomOut")}),"keyup"),bi(y=this.keycharm).call(y,"[",(function(){_.unbindFromRedraw("_zoomOut")}),"keyup"),bi(b=this.keycharm).call(b,"]",(function(){_.unbindFromRedraw("_zoomIn")}),"keyup"),bi(m=this.keycharm).call(m,"pageup",(function(){_.unbindFromRedraw("_zoomIn")}),"keyup"),bi(w=this.keycharm).call(w,"pagedown",(function(){_.unbindFromRedraw("_zoomOut")}),"keyup")))}}]),t}();function ZD(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n50&&(this.drag.pointer=this.getPointer(t.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=(new Date).valueOf())}},{key:"onTap",value:function(t){var e=this.getPointer(t.center),n=this.selectionHandler.options.multiselect&&(t.changedPointers[0].ctrlKey||t.changedPointers[0].metaKey);this.checkSelectionChanges(e,n),this.selectionHandler.commitAndEmit(e,t),this.selectionHandler.generateClickEvent("click",t,e)}},{key:"onDoubleTap",value:function(t){var e=this.getPointer(t.center);this.selectionHandler.generateClickEvent("doubleClick",t,e)}},{key:"onHold",value:function(t){var e=this.getPointer(t.center),n=this.selectionHandler.options.multiselect;this.checkSelectionChanges(e,n),this.selectionHandler.commitAndEmit(e,t),this.selectionHandler.generateClickEvent("click",t,e),this.selectionHandler.generateClickEvent("hold",t,e)}},{key:"onRelease",value:function(t){if((new Date).valueOf()-this.touchTime>10){var e=this.getPointer(t.center);this.selectionHandler.generateClickEvent("release",t,e),this.touchTime=(new Date).valueOf()}}},{key:"onContext",value:function(t){var e=this.getPointer({x:t.clientX,y:t.clientY});this.selectionHandler.generateClickEvent("oncontext",t,e)}},{key:"checkSelectionChanges",value:function(t){!0===(arguments.length>1&&void 0!==arguments[1]&&arguments[1])?this.selectionHandler.selectAdditionalOnPoint(t):this.selectionHandler.selectOnPoint(t)}},{key:"_determineDifference",value:function(t,e){var n=function(t,e){for(var n=[],r=0;r=t.length?{done:!0}:{done:!1,value:t[r++]}},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,g=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return g=t.done,t},e:function(t){s=!0,o=t},f:function(){try{g||null==n.return||n.return()}finally{if(s)throw o}}}}(this.selectionHandler.getSelectedNodes());try{for(i.s();!(r=i.n()).done;){var o=r.value,g={id:o.id,node:o,x:o.x,y:o.y,xFixed:o.options.fixed.x,yFixed:o.options.fixed.y};o.options.fixed.x=!0,o.options.fixed.y=!0,this.drag.selection.push(g)}}catch(t){i.e(t)}finally{i.f()}}else this.selectionHandler.generateClickEvent("dragStart",t,this.drag.pointer,void 0,!0)}}},{key:"onDrag",value:function(t){var e=this;if(!0!==this.drag.pinched){this.body.emitter.emit("unlockNode");var n=this.getPointer(t.center),r=this.drag.selection;if(r&&r.length&&!0===this.options.dragNodes){this.selectionHandler.generateClickEvent("dragging",t,n);var i=n.x-this.drag.pointer.x,o=n.y-this.drag.pointer.y;Wh(r).call(r,(function(t){var n=t.node;!1===t.xFixed&&(n.x=e.canvas._XconvertDOMtoCanvas(e.canvas._XconvertCanvasToDOM(t.x)+i)),!1===t.yFixed&&(n.y=e.canvas._YconvertDOMtoCanvas(e.canvas._YconvertCanvasToDOM(t.y)+o))})),this.body.emitter.emit("startSimulation")}else{if(t.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",t,n,void 0,!0),void 0===this.drag.pointer)return void this.onDragStart(t);this.body.selectionBox.position.end={x:this.canvas._XconvertDOMtoCanvas(n.x),y:this.canvas._YconvertDOMtoCanvas(n.y)},this.body.emitter.emit("_requestRedraw")}if(!0===this.options.dragView&&!t.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",t,n,void 0,!0),void 0===this.drag.pointer)return void this.onDragStart(t);var g=n.x-this.drag.pointer.x,s=n.y-this.drag.pointer.y;this.body.view.translation={x:this.drag.translation.x+g,y:this.drag.translation.y+s},this.body.emitter.emit("_requestRedraw")}}}}},{key:"onDragEnd",value:function(t){var e=this;if(this.drag.dragging=!1,this.body.selectionBox.show){var n;this.body.selectionBox.show=!1;var r=this.body.selectionBox.position,i={minX:Math.min(r.start.x,r.end.x),minY:Math.min(r.start.y,r.end.y),maxX:Math.max(r.start.x,r.end.x),maxY:Math.max(r.start.y,r.end.y)},o=ff(n=this.body.nodeIndices).call(n,(function(t){var n=e.body.nodes[t];return n.x>=i.minX&&n.x<=i.maxX&&n.y>=i.minY&&n.y<=i.maxY}));Wh(o).call(o,(function(t){return e.selectionHandler.selectObject(e.body.nodes[t])}));var g=this.getPointer(t.center);this.selectionHandler.commitAndEmit(g,t),this.selectionHandler.generateClickEvent("dragEnd",t,this.getPointer(t.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{var s=this.drag.selection;s&&s.length?(Wh(s).call(s,(function(t){t.node.options.fixed.x=t.xFixed,t.node.options.fixed.y=t.yFixed})),this.selectionHandler.generateClickEvent("dragEnd",t,this.getPointer(t.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",t,this.getPointer(t.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}},{key:"onPinch",value:function(t){var e=this.getPointer(t.center);this.drag.pinched=!0,void 0===this.pinch.scale&&(this.pinch.scale=1);var n=this.pinch.scale*t.scale;this.zoom(n,e)}},{key:"zoom",value:function(t,e){if(!0===this.options.zoomView){var n=this.body.view.scale;t<1e-5&&(t=1e-5),t>10&&(t=10);var r=void 0;void 0!==this.drag&&!0===this.drag.dragging&&(r=this.canvas.DOMtoCanvas(this.drag.pointer));var i=this.body.view.translation,o=t/n,g=(1-o)*e.x+i.x*o,s=(1-o)*e.y+i.y*o;if(this.body.view.scale=t,this.body.view.translation={x:g,y:s},null!=r){var A=this.canvas.canvasToDOM(r);this.drag.pointer.x=A.x,this.drag.pointer.y=A.y}this.body.emitter.emit("_requestRedraw"),n0&&(this.popupObj=C[I[I.length-1]],o=!0)}if(void 0===this.popupObj&&!1===o){for(var u,c=this.body.edgeIndices,l=this.body.edges,h=[],d=0;d0&&(this.popupObj=l[h[h.length-1]],g="edge")}void 0!==this.popupObj?this.popupObj.id!==i&&(void 0===this.popup&&(this.popup=new om(this.canvas.frame)),this.popup.popupTargetType=g,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(t.x+3,t.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):void 0!==this.popup&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(t){var e=this.selectionHandler._pointerToPositionObject(t),n=!1;if("node"===this.popup.popupTargetType){if(void 0!==this.body.nodes[this.popup.popupTargetId]&&!0===(n=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(e))){var r=this.selectionHandler.getNodeAt(t);n=void 0!==r&&r.id===this.popup.popupTargetId}}else void 0===this.selectionHandler.getNodeAt(t)&&void 0!==this.body.edges[this.popup.popupTargetId]&&(n=this.body.edges[this.popup.popupTargetId].isOverlappingWith(e));!1===n&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),t}(),VD={},GD={get exports(){return VD},set exports(t){VD=t}},WD=J,YD=Yw,HD=Zm.getWeakData,KD=kw,QD=jn,XD=Ot,qD=jt,JD=xw,$D=Ne,tM=wo.set,eM=wo.getterFor,nM=FC.find,rM=FC.findIndex,iM=WD([].splice),oM=0,gM=function(t){return t.frozen||(t.frozen=new sM)},sM=function(){this.entries=[]},AM=function(t,e){return nM(t.entries,(function(t){return t[0]===e}))};sM.prototype={get:function(t){var e=AM(this,t);if(e)return e[1]},has:function(t){return!!AM(this,t)},set:function(t,e){var n=AM(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=rM(this.entries,(function(e){return e[0]===t}));return~e&&iM(this.entries,e,1),!!~e}};var CM,IM={getConstructor:function(t,e,n,r){var i=t((function(t,i){KD(t,o),tM(t,{type:e,id:oM++,frozen:void 0}),XD(i)||JD(i,t[r],{that:t,AS_ENTRIES:n})})),o=i.prototype,g=eM(e),s=function(t,e,n){var r=g(t),i=HD(QD(e),!0);return!0===i?gM(r).set(e,n):i[r.id]=n,t};return YD(o,{delete:function(t){var e=g(this);if(!qD(t))return!1;var n=HD(t);return!0===n?gM(e).delete(t):n&&$D(n,e.id)&&delete n[e.id]},has:function(t){var e=g(this);if(!qD(t))return!1;var n=HD(t);return!0===n?gM(e).has(t):n&&$D(n,e.id)}}),YD(o,n?{get:function(t){var e=g(this);if(qD(t)){var n=HD(t);return!0===n?gM(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return s(this,t,e)}}:{add:function(t){return s(this,t,!0)}}),i}},aM=Xm,uM=z,cM=J,lM=Yw,hM=Zm,dM=Gw,fM=IM,pM=jt,vM=wo.enforce,yM=Z,bM=oo,mM=Object,wM=Array.isArray,_M=mM.isExtensible,xM=mM.isFrozen,EM=mM.isSealed,OM=mM.freeze,kM=mM.seal,TM={},SM={},PM=!uM.ActiveXObject&&"ActiveXObject"in uM,NM=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},RM=dM("WeakMap",NM,fM),DM=RM.prototype,MM=cM(DM.set);if(bM)if(PM){CM=fM.getConstructor(NM,"WeakMap",!0),hM.enable();var jM=cM(DM.delete),BM=cM(DM.has),LM=cM(DM.get);lM(DM,{delete:function(t){if(pM(t)&&!_M(t)){var e=vM(this);return e.frozen||(e.frozen=new CM),jM(this,t)||e.frozen.delete(t)}return jM(this,t)},has:function(t){if(pM(t)&&!_M(t)){var e=vM(this);return e.frozen||(e.frozen=new CM),BM(this,t)||e.frozen.has(t)}return BM(this,t)},get:function(t){if(pM(t)&&!_M(t)){var e=vM(this);return e.frozen||(e.frozen=new CM),BM(this,t)?LM(this,t):e.frozen.get(t)}return LM(this,t)},set:function(t,e){if(pM(t)&&!_M(t)){var n=vM(this);n.frozen||(n.frozen=new CM),BM(this,t)?MM(this,t,e):n.frozen.set(t,e)}else MM(this,t,e);return this}})}else aM&&yM((function(){var t=OM([]);return MM(new RM,t,1),!xM(t)}))&&lM(DM,{set:function(t,e){var n;return wM(t)&&(xM(t)?n=TM:EM(t)&&(n=SM)),MM(this,t,e),n==TM&&OM(t),n==SM&&kM(t),this}});var FM=Bt.WeakMap;!function(t){t.exports=FM}(GD);var zM,ZM,UM,VM,GM,WM=j(VD);function YM(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function HM(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function KM(t,e){var n=void 0!==Yl&&YA(t)||t["@@iterator"];if(!n){if(Ah(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return QM(t,e);var r=nh(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?wA(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?QM(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},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,g=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return g=t.done,t},e:function(t){s=!0,o=t},f:function(){try{g||null==n.return||n.return()}finally{if(s)throw o}}}}function QM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:function(){};Bu(this,t),UM.set(this,new qM),VM.set(this,new qM),GM.set(this,void 0),HM(this,GM,e,"f")}return nl(t,[{key:"sizeNodes",get:function(){return YM(this,UM,"f").size}},{key:"sizeEdges",get:function(){return YM(this,VM,"f").size}},{key:"getNodes",value:function(){return YM(this,UM,"f").getSelection()}},{key:"getEdges",value:function(){return YM(this,VM,"f").getSelection()}},{key:"addNodes",value:function(){var t;(t=YM(this,UM,"f")).add.apply(t,arguments)}},{key:"addEdges",value:function(){var t;(t=YM(this,VM,"f")).add.apply(t,arguments)}},{key:"deleteNodes",value:function(t){YM(this,UM,"f").delete(t)}},{key:"deleteEdges",value:function(t){YM(this,VM,"f").delete(t)}},{key:"clear",value:function(){YM(this,UM,"f").clear(),YM(this,VM,"f").clear()}},{key:"commit",value:function(){for(var t,e,n={nodes:YM(this,UM,"f").commit(),edges:YM(this,VM,"f").commit()},r=arguments.length,i=new Array(r),o=0;o=t.length?{done:!0}:{done:!1,value:t[r++]}},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,g=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return g=t.done,t},e:function(t){s=!0,o=t},f:function(){try{g||null==n.return||n.return()}finally{if(s)throw o}}}}function tj(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n4&&void 0!==arguments[4]&&arguments[4],o=this._initBaseEvent(e,n);if(!0===i)o.nodes=[],o.edges=[];else{var g=this.getSelection();o.nodes=g.nodes,o.edges=g.edges}void 0!==r&&(o.previousSelection=r),"click"==t&&(o.items=this.getClickedItems(n)),void 0!==e.controlEdge&&(o.controlEdge=e.controlEdge),this.body.emitter.emit(t,o)}},{key:"selectObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.selectConnectedEdges;if(void 0!==t){var n;if(t instanceof dR)!0===e&&(n=this._selectionAccumulator).addEdges.apply(n,Gl(t.edges)),this._selectionAccumulator.addNodes(t);else this._selectionAccumulator.addEdges(t);return!0}return!1}},{key:"deselectObject",value:function(t){!0===t.isSelected()&&(t.selected=!1,this._removeFromSelection(t))}},{key:"_getAllNodesOverlappingWith",value:function(t){for(var e=[],n=this.body.nodes,r=0;r1&&void 0!==arguments[1])||arguments[1],n=this._pointerToPositionObject(t),r=this._getAllNodesOverlappingWith(n);return r.length>0?!0===e?this.body.nodes[r[r.length-1]]:r[r.length-1]:void 0}},{key:"_getEdgesOverlappingWith",value:function(t,e){for(var n=this.body.edges,r=0;r1&&void 0!==arguments[1])||arguments[1],n=this.canvas.DOMtoCanvas(t),r=10,i=null,o=this.body.edges,g=0;g0&&(this.generateClickEvent("deselectEdge",e,t,i),n=!0),r.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",e,t,i),n=!0),r.nodes.added.length>0&&(this.generateClickEvent("selectNode",e,t),n=!0),r.edges.added.length>0&&(this.generateClickEvent("selectEdge",e,t),n=!0),!0===n&&this.generateClickEvent("select",e,t)}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}},{key:"getSelectedNodes",value:function(){return this._selectionAccumulator.getNodes()}},{key:"getSelectedEdges",value:function(){return this._selectionAccumulator.getEdges()}},{key:"getSelectedNodeIds",value:function(){var t;return fh(t=this._selectionAccumulator.getNodes()).call(t,(function(t){return t.id}))}},{key:"getSelectedEdgeIds",value:function(){var t;return fh(t=this._selectionAccumulator.getEdges()).call(t,(function(t){return t.id}))}},{key:"setSelection",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!t.nodes&&!t.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((e.unselectAll||void 0===e.unselectAll)&&this.unselectAll(),t.nodes){var n,r=$M(t.nodes);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=this.body.nodes[i];if(!o)throw new RangeError('Node with id "'+i+'" not found');this.selectObject(o,e.highlightEdges)}}catch(t){r.e(t)}finally{r.f()}}if(t.edges){var g,s=$M(t.edges);try{for(s.s();!(g=s.n()).done;){var A=g.value,C=this.body.edges[A];if(!C)throw new RangeError('Edge with id "'+A+'" not found');this.selectObject(C)}}catch(t){s.e(t)}finally{s.f()}}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}},{key:"selectNodes",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t||void 0===t.length)throw"Selection must be an array with ids";this.setSelection({nodes:t},{highlightEdges:e})}},{key:"selectEdges",value:function(t){if(!t||void 0===t.length)throw"Selection must be an array with ids";this.setSelection({edges:t})}},{key:"updateSelection",value:function(){for(var t in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,t.id)||this._selectionAccumulator.deleteNodes(t);for(var e in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,e.id)||this._selectionAccumulator.deleteEdges(e)}},{key:"getClickedItems",value:function(t){for(var e=this.canvas.DOMtoCanvas(t),n=[],r=this.body.nodeIndices,i=this.body.nodes,o=r.length-1;o>=0;o--){var g=i[r[o]].getItemsOnPoint(e);n.push.apply(n,g)}for(var s=this.body.edgeIndices,A=this.body.edges,C=s.length-1;C>=0;C--){var I=A[s[C]].getItemsOnPoint(e);n.push.apply(n,I)}return n}}]),t}(),nj={},rj={get exports(){return nj},set exports(t){nj=t}},ij={};!function(t){!function(t){t.__esModule=!0,t.sort=function(t,n,r,s){if(!Array.isArray(t))throw new TypeError("Can only sort arrays");n?"function"!=typeof n&&(s=r,r=n,n=i):n=i,r||(r=0),s||(s=t.length);var A=s-r;if(!(A<2)){var I=0;if(A=e;)n|=1&t,t>>=1;return t+n}(A);do{if((I=o(t,r,s,n))u&&(c=u),g(t,r,r+c,r+I,n),I=c}a.pushRun(r,I),a.mergeRuns(),A-=I,r+=I}while(0!==A);a.forceMergeRuns()}}};var e=32,n=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9];function r(t){return t<1e5?t<100?t<10?0:1:t<1e4?t<1e3?2:3:4:t<1e7?t<1e6?5:6:t<1e9?t<1e8?7:8:9}function i(t,e){if(t===e)return 0;if(~~t===t&&~~e===e){if(0===t||0===e)return t=0)return-1;if(t>=0)return 1;t=-t,e=-e}var i=r(t),o=r(e),g=0;return io&&(e*=n[i-o-1],t/=10,g=1),t===e?g:t=0;)i++;return i-e}function g(t,e,n,r,i){for(r===e&&r++;r>>1;i(o,t[A])<0?s=A:g=A+1}var C=r-g;switch(C){case 3:t[g+3]=t[g+2];case 2:t[g+2]=t[g+1];case 1:t[g+1]=t[g];break;default:for(;C>0;)t[g+C]=t[g+C-1],C--}t[g]=o}}function s(t,e,n,r,i,o){var g=0,s=0,A=1;if(o(t,e[n+i])>0){for(s=r-i;A0;)g=A,(A=1+(A<<1))<=0&&(A=s);A>s&&(A=s),g+=i,A+=i}else{for(s=i+1;As&&(A=s);var C=g;g=i-A,A=i-C}for(g++;g>>1);o(t,e[n+I])>0?g=I+1:A=I}return A}function A(t,e,n,r,i,o){var g=0,s=0,A=1;if(o(t,e[n+i])<0){for(s=i+1;As&&(A=s);var C=g;g=i-A,A=i-C}else{for(s=r-i;A=0;)g=A,(A=1+(A<<1))<=0&&(A=s);A>s&&(A=s),g+=i,A+=i}for(g++;g>>1);o(t,e[n+I])<0?A=I:g=I+1}return A}var C=function(){function t(e,n){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.array=null,this.compare=null,this.minGallop=7,this.length=0,this.tmpStorageLength=256,this.stackLength=0,this.runStart=null,this.runLength=null,this.stackSize=0,this.array=e,this.compare=n,this.length=e.length,this.length<512&&(this.tmpStorageLength=this.length>>>1),this.tmp=new Array(this.tmpStorageLength),this.stackLength=this.length<120?5:this.length<1542?10:this.length<119151?19:40,this.runStart=new Array(this.stackLength),this.runLength=new Array(this.stackLength)}return t.prototype.pushRun=function(t,e){this.runStart[this.stackSize]=t,this.runLength[this.stackSize]=e,this.stackSize+=1},t.prototype.mergeRuns=function(){for(;this.stackSize>1;){var t=this.stackSize-2;if(t>=1&&this.runLength[t-1]<=this.runLength[t]+this.runLength[t+1]||t>=2&&this.runLength[t-2]<=this.runLength[t]+this.runLength[t-1])this.runLength[t-1]this.runLength[t+1])break;this.mergeAt(t)}},t.prototype.forceMergeRuns=function(){for(;this.stackSize>1;){var t=this.stackSize-2;t>0&&this.runLength[t-1]=7||h>=7);if(d)break;c<0&&(c=0),c+=2}if(this.minGallop=c,c<1&&(this.minGallop=1),1===e){for(C=0;C=0;C--)o[l+C]=o[c+C];if(0===e){p=!0;break}}if(o[u--]=g[a--],1==--r){p=!0;break}if(0!=(f=r-s(o[I],g,0,r,r-1,i))){for(r-=f,l=1+(u-=f),c=1+(a-=f),C=0;C=7||f>=7);if(p)break;h<0&&(h=0),h+=2}if(this.minGallop=h,h<1&&(this.minGallop=1),1===r){for(l=1+(u-=e),c=1+(I-=e),C=e-1;C>=0;C--)o[l+C]=o[c+C];o[u]=g[a]}else{if(0===r)throw new Error("mergeHigh preconditions were not respected");for(c=u-(r-1),C=0;C=0;C--)o[l+C]=o[c+C];o[u]=g[a]}else for(c=u-(r-1),C=0;C2&&void 0!==arguments[2]?arguments[2]:void 0;this.fake_use(t,e,n),this.abstract()}},{key:"getTreeSize",value:function(t){return this.fake_use(t),this.abstract()}},{key:"sort",value:function(t){this.fake_use(t),this.abstract()}},{key:"fix",value:function(t,e){this.fake_use(t,e),this.abstract()}},{key:"shift",value:function(t,e){this.fake_use(t,e),this.abstract()}}]),t}(),Aj=function(t){J_(n,t);var e=gj(n);function n(t){var r;return Bu(this,n),(r=e.call(this)).layout=t,r}return nl(n,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(t){return t.x}},{key:"setPosition",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==n&&this.layout.hierarchical.addToOrdering(t,n),t.x=e}},{key:"getTreeSize",value:function(t){var e=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:e.min_x,max:e.max_x}}},{key:"sort",value:function(t){nj.sort(t,(function(t,e){return t.x-e.x}))}},{key:"fix",value:function(t,e){t.y=this.layout.options.hierarchical.levelSeparation*e,t.options.fixed.y=!0}},{key:"shift",value:function(t,e){this.layout.body.nodes[t].x+=e}}]),n}(sj),Cj=function(t){J_(n,t);var e=gj(n);function n(t){var r;return Bu(this,n),(r=e.call(this)).layout=t,r}return nl(n,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(t){return t.y}},{key:"setPosition",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==n&&this.layout.hierarchical.addToOrdering(t,n),t.y=e}},{key:"getTreeSize",value:function(t){var e=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:e.min_y,max:e.max_y}}},{key:"sort",value:function(t){nj.sort(t,(function(t,e){return t.y-e.y}))}},{key:"fix",value:function(t,e){t.x=this.layout.options.hierarchical.levelSeparation*e,t.options.fixed.x=!0}},{key:"shift",value:function(t,e){this.layout.body.nodes[t].y+=e}}]),n}(sj),Ij={},aj={get exports(){return Ij},set exports(t){Ij=t}},uj=FC.every;Ar({target:"Array",proto:!0,forced:!Dh("every")},{every:function(t){return uj(this,t,arguments.length>1?arguments[1]:void 0)}});var cj=hi("Array").every,lj=Vt,hj=cj,dj=Array.prototype,fj=function(t){var e=t.every;return t===dj||lj(dj,t)&&e===dj.every?hj:e};!function(t){t.exports=fj}(aj);var pj=j(Ij);function vj(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=e[r])&&(e[r]=e[n]+1)})),e}function bj(t,e,n,r){var i,o,g=kp(null),s=zT(i=Gl(mP(r).call(r))).call(i,(function(t,e){return t+1+e.edges.length}),0),A=n+"Id",C="to"===n?1:-1,I=function(t,e){var n=void 0!==Yl&&YA(t)||t["@@iterator"];if(!n){if(Ah(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return vj(t,e);var r=nh(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?wA(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vj(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},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,g=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return g=t.done,t},e:function(t){s=!0,o=t},f:function(){try{g||null==n.return||n.return()}finally{if(s)throw o}}}}(r);try{var a=function(){var i=Vl(o.value,2),I=i[0],a=i[1];if(!r.has(I)||!t(a))return"continue";g[I]=0;for(var u,c=[a],l=0,h=function(){var t,i;if(!r.has(I))return"continue";var o=g[u.id]+C;if(Wh(t=ff(i=u.edges).call(i,(function(t){return t.connected&&t.to!==t.from&&t[n]!==u&&r.has(t.toId)&&r.has(t.fromId)}))).call(t,(function(t){var r=t[A],i=g[r];(null==i||e(o,i))&&(g[r]=o,c.push(t[n]))})),l>s)return{v:{v:yj(r,g)}};++l};u=c.pop();){var d=h();if("continue"!==d&&"object"===Hc(d))return d.v}};for(I.s();!(o=I.n()).done;){var u=a();if("continue"!==u&&"object"===Hc(u))return u.v}}catch(t){I.e(t)}finally{I.f()}return g}var mj=function(){function t(){Bu(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return nl(t,[{key:"addRelation",value:function(t,e){void 0===this.childrenReference[t]&&(this.childrenReference[t]=[]),this.childrenReference[t].push(e),void 0===this.parentReference[e]&&(this.parentReference[e]=[]),this.parentReference[e].push(t)}},{key:"checkIfTree",value:function(){for(var t in this.parentReference)if(this.parentReference[t].length>1)return void(this.isTree=!1);this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(t,e){void 0!==e&&void 0===this.trees[t.id]&&(this.trees[t.id]=e,this.treeIndex=Math.max(e,this.treeIndex))}},{key:"ensureLevel",value:function(t){void 0===this.levels[t]&&(this.levels[t]=0)}},{key:"getMaxLevel",value:function(t){var e=this,n={};return function t(r){if(void 0!==n[r])return n[r];var i=e.levels[r];if(e.childrenReference[r]){var o=e.childrenReference[r];if(o.length>0)for(var g=0;g0&&(n.levelSeparation*=-1):n.levelSeparation<0&&(n.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(e);if(!0===r)return this.body.emitter.emit("refresh"),Sb(e,this.optionsBackup)}return e}},{key:"_resetRNG",value:function(t){this.initialRandomSeed=t,this._rng=db(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(t){if(!0===this.options.hierarchical.enabled){var e=this.optionsBackup.physics;void 0===t.physics||!0===t.physics?(t.physics={enabled:void 0===e.enabled||e.enabled,solver:"hierarchicalRepulsion"},e.enabled=void 0===e.enabled||e.enabled,e.solver=e.solver||"barnesHut"):"object"===Hc(t.physics)?(e.enabled=void 0===t.physics.enabled||t.physics.enabled,e.solver=t.physics.solver||"barnesHut",t.physics.solver="hierarchicalRepulsion"):!1!==t.physics&&(e.solver="barnesHut",t.physics={solver:"hierarchicalRepulsion"});var n=this.direction.curveType();if(void 0===t.edges)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges={smooth:!1};else if(void 0===t.edges.smooth)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges.smooth=!1;else if("boolean"==typeof t.edges.smooth)this.optionsBackup.edges={smooth:t.edges.smooth},t.edges.smooth={enabled:t.edges.smooth,type:n};else{var r=t.edges.smooth;void 0!==r.type&&"dynamic"!==r.type&&(n=r.type),this.optionsBackup.edges={smooth:{enabled:void 0===r.enabled||r.enabled,type:void 0===r.type?"dynamic":r.type,roundness:void 0===r.roundness?.5:r.roundness,forceDirection:void 0!==r.forceDirection&&r.forceDirection}},t.edges.smooth={enabled:void 0===r.enabled||r.enabled,type:n,roundness:void 0===r.roundness?.5:r.roundness,forceDirection:void 0!==r.forceDirection&&r.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",n)}return t}},{key:"positionInitially",value:function(t){if(!0!==this.options.hierarchical.enabled){this._resetRNG(this.initialRandomSeed);for(var e=t.length+50,n=0;ni){for(var g=t.length;t.length>i&&r<=10;){r+=1;var s=t.length;if(r%3==0?this.body.modules.clustering.clusterBridges(o):this.body.modules.clustering.clusterOutliers(o),s==t.length&&r%3!=0)return this._declusterAll(),this.body.emitter.emit("_layoutFailed"),void console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.")}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*g)})}r>10&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(t,this.body.edgeIndices,!0),this._shiftToCenter();for(var A=0;A0){var t,e,n=!1,r=!1;for(e in this.lastNodeOnLevel={},this.hierarchical=new mj,this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,e)&&(void 0!==(t=this.body.nodes[e]).options.level?(n=!0,this.hierarchical.levels[e]=t.options.level):r=!0);if(!0===r&&!0===n)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(!0===r){var i=this.options.hierarchical.sortMethod;"hubsize"===i?this._determineLevelsByHubsize():"directed"===i?this._determineLevelsDirected():"custom"===i&&this._determineLevelsCustomCallback()}for(var o in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,o)&&this.hierarchical.ensureLevel(o);var g=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(g),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var t=this,e=!1,n={},r=function(e,n){var r=t.hierarchical.trees;for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&r[i]===e&&t.direction.shift(i,n)},i=function e(n,r){if(!r[n.id]&&(r[n.id]=!0,t.hierarchical.childrenReference[n.id])){var i=t.hierarchical.childrenReference[n.id];if(i.length>0)for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:1e9,r=1e9,i=1e9,o=1e9,g=-1e9;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var A=t.body.nodes[s],C=t.hierarchical.levels[A.id],I=t.direction.getPosition(A),a=Vl(t._getSpaceAroundNode(A,e),2),u=a[0],c=a[1];r=Math.min(u,r),i=Math.min(c,i),C<=n&&(o=Math.min(I,o),g=Math.max(I,g))}return[o,g,r,i]},g=function(e,n,r){for(var i=t.hierarchical,o=0;o1)for(var A=0;A2&&void 0!==arguments[2]&&arguments[2],s=t.direction.getPosition(n),A=t.direction.getPosition(r),C=Math.abs(A-s),I=t.options.hierarchical.nodeSpacing;if(C>I){var a={},u={};i(n,a),i(r,u);var c=function(e,n){var r=t.hierarchical.getMaxLevel(e.id),i=t.hierarchical.getMaxLevel(n.id);return Math.min(r,i)}(n,r),l=o(a,c),h=o(u,c),d=l[1],f=h[0],p=h[2];if(Math.abs(d-f)>I){var v=d-f+I;v<-p+I&&(v=-p+I),v<0&&(t._shiftBlock(r.id,v),e=!0,!0===g&&t._centerParent(r))}}},A=function(r,g){for(var s=g.id,A=g.edges,C=t.hierarchical.levels[g.id],I=t.options.hierarchical.levelSeparation*t.options.hierarchical.levelSeparation,a={},u=[],c=0;c0?c=Math.min(u,a-t.options.hierarchical.nodeSpacing):u<0&&(c=-Math.min(-u,I-t.options.hierarchical.nodeSpacing)),0!=c&&(t._shiftBlock(g.id,c),e=!0)}(v),function(n){var r=t.direction.getPosition(g),i=Vl(t._getSpaceAroundNode(g),2),o=i[0],s=i[1],A=n-r,C=r;A>0?C=Math.min(r+(s-t.options.hierarchical.nodeSpacing),n):A<0&&(C=Math.max(r-(o-t.options.hierarchical.nodeSpacing),n)),C!==r&&(t.direction.setPosition(g,C),e=!0)}(v=p(r,A))};!0===this.options.hierarchical.blockShifting&&(function(n){var r=t.hierarchical.getLevels();r=rd(r).call(r);for(var i=0;i<5&&(e=!1,g(s,r,!0),!0===e);i++);}(),function(){for(var e in t.body.nodes)Object.prototype.hasOwnProperty.call(t.body.nodes,e)&&t._centerParent(t.body.nodes[e])}()),!0===this.options.hierarchical.edgeMinimization&&function(n){var r=t.hierarchical.getLevels();r=rd(r).call(r);for(var i=0;i<20;i++){e=!1;for(var o=0;o0&&Math.abs(a)0&&(A=this.direction.getPosition(r[o-1])+s),this.direction.setPosition(g,A,e),this._validatePositionAndContinue(g,e,A),i++}}}}},{key:"_placeBranchNodes",value:function(t,e){var n,r=this.hierarchical.childrenReference[t];if(void 0!==r){for(var i=[],o=0;oe&&void 0===this.positionedNodes[s.id]))return;var C,I=this.options.hierarchical.nodeSpacing;C=0===g?this.direction.getPosition(this.body.nodes[t]):this.direction.getPosition(i[g-1])+I,this.direction.setPosition(s,C,A),this._validatePositionAndContinue(s,A,C)}var a=this._getCenterPosition(i);this.direction.setPosition(this.body.nodes[t],a,e)}}},{key:"_validatePositionAndContinue",value:function(t,e,n){if(this.hierarchical.isTree){if(void 0!==this.lastNodeOnLevel[e]){var r=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[e]]);if(n-rt}),"from",t)}(n),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_generateMap",value:function(){var t=this;this._crawlNetwork((function(e,n){t.hierarchical.levels[n.id]>t.hierarchical.levels[e.id]&&t.hierarchical.addRelation(e.id,n.id)})),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments.length>1?arguments[1]:void 0,r={},i=function n(i,o){if(void 0===r[i.id]){var g;t.hierarchical.setTreeIndex(i,o),r[i.id]=!0;for(var s=t._getActiveEdges(i),A=0;At.length)&&(e=t.length);for(var n=0,r=new Array(e);n1){let n=`${t}:
    `;for(const t of e)n+=`
  • ${t}
  • `;return n+"
"}return`${t}: ${e}
`}function $j(t,e){if("object"==typeof e?.properties)return(0,D.isInt)(e.properties[t])?e.properties[t].toInt():e.properties[t];throw new Error("Neo4j object is not properly constructed")}function tB(t,e){let n="";e||(e=l()(t.properties));for(const r of e){const e=$j(r,t);e&&(n+=Jj(r,e))}const r=document.createElement("div");return r.innerHTML=n,r}function eB(t,e){let n="";e||(e=l()(t.properties));for(const r of e){const e=$j(r,t);e&&(n+=`${r}: ${e}\n`)}return n}var nB=new(k()),rB=new(k()),iB=new(k()),oB=new(k()),gB=new(k()),sB=new(k()),AB=new(k()),CB=new(k()),IB=new(S()),aB=new(S()),uB=new(S()),cB=new(S()),lB=new(S()),hB=new(S()),dB=new(S()),fB=new(S()),pB=new(S()),vB=new(S()),yB=new(S());class bB{get nodes(){return I(this,nB).nodes}get edges(){return I(this,nB).edges}get _config(){return I(this,oB)}get network(){return I(this,rB)}constructor(t){Kj(this,yB),Kj(this,vB),Kj(this,pB),Kj(this,fB),Kj(this,dB),Kj(this,hB),Kj(this,lB),Kj(this,cB),Kj(this,uB),Kj(this,aB),Kj(this,IB),Qj(this,nB,{writable:!0,value:{nodes:new cN,edges:new cN}}),Qj(this,rB,{writable:!0,value:null}),Qj(this,iB,{writable:!0,value:new Zj}),Qj(this,oB,{writable:!0,value:void 0}),Qj(this,gB,{writable:!0,value:void 0}),Qj(this,sB,{writable:!0,value:void 0}),Qj(this,AB,{writable:!0,value:void 0}),Qj(this,CB,{writable:!0,value:void 0}),qj(this,aB,wB).call(this,t),qj(this,IB,mB).call(this,t),qj(this,IB,mB).call(this,Fj)}render(t){let e=0;const n=t||I(this,AB),r=I(this,gB).session(I(this,sB)?{database:I(this,sB)}:void 0),i=[];r.run(n,{limit:30}).subscribe({onNext:t=>{e++,qj(this,IB,mB).call(this,"CLASS NAME"),qj(this,IB,mB).call(this,t?.constructor.name),qj(this,IB,mB).call(this,t);const n=d()(t).call(t,(async t=>{if(qj(this,IB,mB).call(this,"Constructor:"),qj(this,IB,mB).call(this,t?.constructor.name),(0,D.isNode)(t)){const e=await qj(this,vB,PB).call(this,t);try{I(this,nB).nodes.update(e)}catch(t){qj(this,IB,mB).call(this,t,"error")}}else if((0,D.isRelationship)(t)){const e=await qj(this,yB,NB).call(this,t);I(this,nB).edges.update(e)}else if((0,D.isPath)(t)){qj(this,IB,mB).call(this,"PATH"),qj(this,IB,mB).call(this,t);const e=await qj(this,vB,PB).call(this,t.start),n=await qj(this,vB,PB).call(this,t.end);I(this,nB).nodes.update(e),I(this,nB).nodes.update(n);for(const e of t.segments)I(this,nB).nodes.update(await qj(this,vB,PB).call(this,e.start)),I(this,nB).nodes.update(await qj(this,vB,PB).call(this,e.end)),I(this,nB).edges.update(await qj(this,yB,NB).call(this,e.relationship))}else if(u()(t))for(const e of t)if(qj(this,IB,mB).call(this,"Array element constructor:"),qj(this,IB,mB).call(this,e?.constructor.name),(0,D.isNode)(e)){const t=await qj(this,vB,PB).call(this,e);I(this,nB).nodes.update(t)}else if((0,D.isRelationship)(e)){const t=await qj(this,yB,NB).call(this,e);I(this,nB).edges.update(t)}}));i.push(p().all(n))},onCompleted:async()=>{if(await p().all(i),await r.close(),!I(this,rB)){const t=Vj()(Fj.visJs,I(this,oB).visConfig??{}),e=I(this,CB);qj(this,IB,mB).call(this,I(this,nB).nodes),qj(this,IB,mB).call(this,I(this,nB).edges),C(this,rB,new Lj(e,I(this,nB),t))}qj(this,IB,mB).call(this,"completed"),y()((()=>{I(this,rB).stopSimulation()}),1e4),I(this,iB).generateEvent(zj.CompletionEvent,{recordCount:e});const t=this;I(this,rB).on("click",(function(e){if(e.nodes.length>0){const n=this.getNodeAt(e.pointer.DOM);I(t,iB).generateEvent(zj.ClickNodeEvent,{nodeId:n,node:I(t,nB).nodes.get(n)})}else if(e.edges.length>0){const n=this.getEdgeAt(e.pointer.DOM);I(t,iB).generateEvent(zj.ClickEdgeEvent,{edgeId:n,edge:I(t,nB).edges.get(n)})}}))},onError:t=>{qj(this,IB,mB).call(this,t,"error"),I(this,iB).generateEvent(zj.ErrorEvent,{error:t})}})}clearNetwork(){I(this,nB).nodes.clear(),I(this,nB).edges.clear()}registerOnEvent(t,e){I(this,iB).register(t,e)}reinit(t){qj(this,aB,wB).call(this,t),this.render()}reload(){this.clearNetwork(),this.render()}stabilize(){I(this,rB).stopSimulation(),qj(this,IB,mB).call(this,"Calling stopSimulation")}renderWithCypher(t){this.clearNetwork(),C(this,AB,t),this.render()}updateWithCypher(t){this.render(t)}}function mB(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";("log"!==e||I(this,oB).consoleDebug)&&console[e](t)}function wB(t){let e,n;if(t.nonFlat&&t.defaultLabelConfig){if(e=t.defaultLabelConfig,e[Hj])throw new Error("non flat config can't use NEOVIS_ADVANCED_CONFIG, read the doc to see how the config should look");if(n=t.defaultRelationshipsConfig,n[Hj])throw new Error("non flat config can't use NEOVIS_ADVANCED_CONFIG, read the doc to see how the config should look")}else e=t.labels?.[Yj],n=t.relationships?.[Yj];if(e)for(const n of l()(t.labels))t=t.nonFlat?{...t,labels:{...t.labels,[n]:Vj()(e,t.labels?.[n])}}:{...t,labels:{...t.labels,[n]:{...Vj()(e,t.labels?.[n]),[Hj]:Vj()(e[Hj]??{},(t.labels?.[n])[Hj]??{})}}};if(n)for(const e of l()(t.relationships))t=t.nonFlat?{...t,relationships:{...t.relationships,[e]:Vj()(n,t.relationships?.[e])}}:{...t,relationships:{...t.relationships,[e]:{...Vj()(n,t.relationships?.[e]),[Hj]:Vj()(n[Hj]??{},(t.relationships?.[e])[Hj]??{})}}};C(this,oB,t),C(this,gB,t.neo4j instanceof R.ZP.driver?t.neo4j:R.ZP.driver(t.neo4j?.serverUrl??Fj.neo4j.neo4jUri,R.ZP.auth.basic(t.neo4j?.serverUser??Fj.neo4j.neo4jUser,t.neo4j?.serverPassword??Fj.neo4j.neo4jPassword),Vj()(Fj.neo4j.driverConfig,t.neo4j?.driverConfig??{}))),C(this,sB,t.serverDatabase),C(this,AB,t.initialCypher??Fj.neo4j.initialQuery),C(this,CB,document.getElementById(t.containerId))}async function _B(t,e){const n=I(this,gB).session(I(this,sB)&&{database:I(this,sB)}),r=[];try{const i=await n.readTransaction((n=>n.run(t,{id:e})));for(const t of i.records)N()(t).call(t,(t=>{r.push(t)}))}finally{await n.close()}if(0!==r.length)return 1===r.length?r.pop():r}function xB(t,e){if("function"==typeof t)return t(e);throw new Error("Function type property field must be a function")}function EB(t,e){if(t&&"object"==typeof t)for(const n of l()(t)){const r=t[n];r&&"object"==typeof r?(e[n]||(e[n]={}),qj(this,lB,EB).call(this,r,e[n])):e[n]=r}}function OB(t,e,n){if(t&&"object"==typeof t)for(const r of l()(t)){const i=t[r];if("object"==typeof i)e[r]||(e[r]={}),qj(this,hB,OB).call(this,i,e[r],n);else{const i=t[r];e[r]=$j(i,n)}}}function*kB(t,e,n){if(t&&"object"==typeof t)for(const r of l()(t)){const i=t[r];if(i&&"object"==typeof i)e[r]||(e[r]={}),yield*qj(this,dB,kB).call(this,i,e[r],n);else{const t=qj(this,uB,_B).call(this,i,n);yield p().resolve(t).then((t=>{e[r]=t}))}}}function*TB(t,e,n){if(t&&"object"==typeof t)for(const r of l()(t)){const i=t[r];if(i&&"object"==typeof i)e[r]||(e[r]={}),yield*qj(this,fB,TB).call(this,i,e[r],n);else{const t=qj(this,cB,xB).call(this,i,n);yield p().resolve(t).then((t=>{e[r]=t}))}}}async function SB(t,e,n,r){if(!t)return;let i,o,g,s;if(I(this,oB).nonFlat){if(void 0!==t[Hj])throw new Error("Advanced config and non flat config should not be together");i=t.static,o=t.cypher,g=t.property,s=t.function}else{const e=t[Hj];if(g=t,void 0!==e&&"object"!=typeof e)throw new Error("Advanced config should be an object. See documentation for details.");o=e?.cypher,i=e?.static,s=e?.function}qj(this,hB,OB).call(this,g,e,n),qj(this,lB,EB).call(this,i,e),await p().all(qj(this,dB,kB).call(this,o,e,r)),await p().all(qj(this,fB,TB).call(this,s,e,n))}async function PB(t){const e={},n=t.labels[0],r=I(this,oB)?.labels?.[n]??I(this,oB)?.defaultLabelConfig??I(this,oB)?.labels?.[Yj];return e.id=(0,D.isInt)(t.identity)?t.identity.toInt():t.identity,e.raw=t,await qj(this,pB,SB).call(this,r,e,t,e.id),e}async function NB(t){const e=I(this,oB)?.relationships?.[t.type]??I(this,oB).defaultRelationshipsConfig??I(this,oB)?.relationships?.[Yj],n={};return n.id=(0,D.isInt)(t.identity)?t.identity.toInt():t.identity,n.from=(0,D.isInt)(t.start)?t.start.toInt():t.start,n.to=(0,D.isInt)(t.end)?t.end.toInt():t.end,n.raw=t,await qj(this,pB,SB).call(this,e,n,t,n.id),n}function RB(t){var e,n,r,i;return{containerId:t.container_id,initialCypher:t.initial_cypher,consoleDebug:t.console_debug,serverDatabase:t.server_database,neo4j:{serverUrl:t.server_url,serverUser:t.server_user,serverPassword:t.server_password,driverConfig:t.encrypted||t.trust?{encrypted:t.encrypted,trust:t.trust}:void 0},visConfig:t.arrows||t.hierarchical?{edges:t.arrows?{arrows:{to:{enabled:t.arrows}}}:void 0,layout:t.hierarchical?{enabled:t.hierarchical,sortMethod:t.hierarchical_sort_method}:void 0}:void 0,labels:t.labels?m()(e=_()(n=E()(t.labels)).call(n,t.labels?.[Yj]?[[Yj,t.labels[Yj]]]:[])).call(e,((t,e)=>{let[n,r]=e;return t[n]={label:"function"!=typeof r.caption?r.caption:void 0,value:r.size,group:r.community,[Hj]:{cypher:r.sizeCypher?{value:r.sizeCypher}:void 0,function:Vj()({title:t=>tB(t,r.title_properties)},"function"==typeof r.caption?{label:r.caption}:{}),static:{font:r.font,shape:r.image?"image":"dot",image:r.image}}},t}),{}):void 0,relationships:t.relationships?m()(r=_()(i=E()(t.relationships)).call(i,t.relationships[Yj]?[[Yj,t.relationships[Yj]]]:[])).call(r,((t,e)=>{let[n,r]=e;return t[n]={value:r.thickness,label:"string"==typeof r.caption?r.caption:void 0,[Hj]:{function:{title:tB}}},t}),{}):void 0}}s(bB,"NEOVIS_DEFAULT_CONFIG",Yj),s(bB,"NEOVIS_ADVANCED_CONFIG",Hj),s(bB,"objectToTitleHtml",tB),s(bB,"objectToTitleString",eB);const DB=bB})(),r})())); +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.NeoVis=e():t.NeoVis=e()}(self,(()=>(()=>{var t={9742:(t,e)=>{"use strict";e.byteLength=function(t){var e=s(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,o=s(t),g=o[0],A=o[1],C=new i(function(t,e,n){return 3*(e+n)/4-n}(0,g,A)),I=0,a=A>0?g-4:g;for(n=0;n>16&255,C[I++]=e>>8&255,C[I++]=255&e;return 2===A&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,C[I++]=255&e),1===A&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,C[I++]=e>>8&255,C[I++]=255&e),C},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],g=16383,s=0,C=r-i;sC?C:s+g));return 1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0;g<64;++g)n[g]=o[g],r[o.charCodeAt(g)]=g;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function A(t,e,r){for(var i,o,g=[],s=e;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return g.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},8764:(t,e,n)=>{"use strict";const r=n(9742),i=n(645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=A,e.SlowBuffer=function(t){return+t!=t&&(t=0),A.alloc(+t)},e.INSPECT_MAX_BYTES=50;const g=2147483647;function s(t){if(t>g)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,A.prototype),e}function A(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return a(t)}return C(t,e,n)}function C(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!A.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|h(t,e);let r=s(n);const i=r.write(t,e);return i!==n&&(r=r.slice(0,i)),r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Q(t,Uint8Array)){const e=new Uint8Array(t);return c(e.buffer,e.byteOffset,e.byteLength)}return u(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Q(t,ArrayBuffer)||t&&Q(t.buffer,ArrayBuffer))return c(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(Q(t,SharedArrayBuffer)||t&&Q(t.buffer,SharedArrayBuffer)))return c(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return A.from(r,e,n);const i=function(t){if(A.isBuffer(t)){const e=0|l(t.length),n=s(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||X(t.length)?s(0):u(t):"Buffer"===t.type&&Array.isArray(t.data)?u(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return A.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function I(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function a(t){return I(t),s(t<0?0:0|l(t))}function u(t){const e=t.length<0?0:0|l(t.length),n=s(e);for(let r=0;r=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return 0|t}function h(t,e){if(A.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Q(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(t).length;default:if(i)return r?-1:Y(t).length;e=(""+e).toLowerCase(),i=!0}}function d(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return S(this,e,n);case"utf8":case"utf-8":return E(this,e,n);case"ascii":return k(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return x(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function f(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function p(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=A.from(e,r)),A.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,i){let o,g=1,s=t.length,A=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;g=2,s/=2,A/=2,n/=2}function C(t,e){return 1===g?t[e]:t.readUInt16BE(e*g)}if(i){let r=-1;for(o=n;os&&(n=s-A),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=e.length;let g;for(r>o/2&&(r=o/2),g=0;g>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function x(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function E(t,e,n){n=Math.min(t.length,n);const r=[];let i=e;for(;i239?4:e>223?3:e>191?2:1;if(i+g<=n){let n,r,s,A;switch(g){case 1:e<128&&(o=e);break;case 2:n=t[i+1],128==(192&n)&&(A=(31&e)<<6|63&n,A>127&&(o=A));break;case 3:n=t[i+1],r=t[i+2],128==(192&n)&&128==(192&r)&&(A=(15&e)<<12|(63&n)<<6|63&r,A>2047&&(A<55296||A>57343)&&(o=A));break;case 4:n=t[i+1],r=t[i+2],s=t[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(A=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&s,A>65535&&A<1114112&&(o=A))}}null===o?(o=65533,g=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=g}return function(t){const e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);let n="",r=0;for(;rr.length?(A.isBuffer(e)||(e=A.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!A.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},A.byteLength=h,A.prototype._isBuffer=!0,A.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;en&&(t+=" ... "),""},o&&(A.prototype[o]=A.prototype.inspect),A.prototype.compare=function(t,e,n,r,i){if(Q(t,Uint8Array)&&(t=A.from(t,t.offset,t.byteLength)),!A.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;let o=(i>>>=0)-(r>>>=0),g=(n>>>=0)-(e>>>=0);const s=Math.min(o,g),C=this.slice(r,i),I=t.slice(e,n);for(let t=0;t>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":case"latin1":case"binary":return m(this,t,e,n);case"base64":return w(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function k(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;ir)&&(n=r);let i="";for(let r=e;rn)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!A.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function D(t,e,n,r,i){U(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let g=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=g,g>>=8,t[n++]=g,g>>=8,t[n++]=g,g>>=8,t[n++]=g,n}function M(t,e,n,r,i){U(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let g=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=g,g>>=8,t[n+2]=g,g>>=8,t[n+1]=g,g>>=8,t[n]=g,n+8}function j(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(t,e,n,r,o){return e=+e,n>>>=0,o||j(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function L(t,e,n,r,o){return e=+e,n>>>=0,o||j(t,0,n,8),i.write(t,e,n,r,52,8),n+8}A.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||N(t,e,this.length);let r=this[t],i=1,o=0;for(;++o>>=0,e>>>=0,n||N(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},A.prototype.readUint8=A.prototype.readUInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),this[t]},A.prototype.readUint16LE=A.prototype.readUInt16LE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]|this[t+1]<<8},A.prototype.readUint16BE=A.prototype.readUInt16BE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]<<8|this[t+1]},A.prototype.readUint32LE=A.prototype.readUInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},A.prototype.readUint32BE=A.prototype.readUInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},A.prototype.readBigUInt64LE=J((function(t){V(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||G(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||G(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<>>=0,e>>>=0,n||N(t,e,this.length);let r=this[t],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*e)),r},A.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||N(t,e,this.length);let r=e,i=1,o=this[t+--r];for(;r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},A.prototype.readInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},A.prototype.readInt16LE=function(t,e){t>>>=0,e||N(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},A.prototype.readInt16BE=function(t,e){t>>>=0,e||N(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},A.prototype.readInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},A.prototype.readInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},A.prototype.readBigInt64LE=J((function(t){V(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||G(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||G(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<>>=0,e||N(t,4,this.length),i.read(this,t,!0,23,4)},A.prototype.readFloatBE=function(t,e){return t>>>=0,e||N(t,4,this.length),i.read(this,t,!1,23,4)},A.prototype.readDoubleLE=function(t,e){return t>>>=0,e||N(t,8,this.length),i.read(this,t,!0,52,8)},A.prototype.readDoubleBE=function(t,e){return t>>>=0,e||N(t,8,this.length),i.read(this,t,!1,52,8)},A.prototype.writeUintLE=A.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[e]=255&t;++o>>=0,n>>>=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},A.prototype.writeUint8=A.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,255,0),this[e]=255&t,e+1},A.prototype.writeUint16LE=A.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},A.prototype.writeUint16BE=A.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},A.prototype.writeUint32LE=A.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},A.prototype.writeUint32BE=A.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},A.prototype.writeBigUInt64LE=J((function(t,e=0){return D(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),A.prototype.writeBigUInt64BE=J((function(t,e=0){return M(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),A.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=0,o=1,g=0;for(this[e]=255&t;++i>0)-g&255;return e+n},A.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=n-1,o=1,g=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===g&&0!==this[e+i+1]&&(g=1),this[e+i]=(t/o>>0)-g&255;return e+n},A.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},A.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},A.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},A.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},A.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},A.prototype.writeBigInt64LE=J((function(t,e=0){return D(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),A.prototype.writeBigInt64BE=J((function(t,e=0){return M(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),A.prototype.writeFloatLE=function(t,e,n){return B(this,t,e,!0,n)},A.prototype.writeFloatBE=function(t,e,n){return B(this,t,e,!1,n)},A.prototype.writeDoubleLE=function(t,e,n){return L(this,t,e,!0,n)},A.prototype.writeDoubleBE=function(t,e,n){return L(this,t,e,!1,n)},A.prototype.copy=function(t,e,n,r){if(!A.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function U(t,e,n,r,i,o){if(t>n||t3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new F.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,n){V(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||G(e,t.length-(n+1))}(r,i,o)}function V(t,e){if("number"!=typeof t)throw new F.ERR_INVALID_ARG_TYPE(e,"number",t)}function G(t,e,n){if(Math.floor(t)!==t)throw V(t,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}z("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),z("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),z("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=Z(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=Z(i)),i+="n"),r+=` It must be ${e}. Received ${i}`,r}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function Y(t,e){let n;e=e||1/0;const r=t.length;let i=null;const o=[];for(let g=0;g55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(g+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function K(t,e,n,r){let i;for(i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function Q(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function X(t){return t!=t}const q=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function J(t){return"undefined"==typeof BigInt?$:t}function $(){throw new Error("BigInt not supported")}},3536:(t,e,n)=>{var r=n(1910);t.exports=r},281:(t,e,n)=>{var r=n(2547);n(3975),t.exports=r},31:(t,e,n)=>{var r=n(6509);t.exports=r},7487:(t,e,n)=>{var r=n(5774);t.exports=r},4034:(t,e,n)=>{n(2988);var r=n(4058);t.exports=r.Array.isArray},5367:(t,e,n)=>{n(5906);var r=n(5703);t.exports=r("Array").concat},9324:(t,e,n)=>{n(2437);var r=n(5703);t.exports=r("Array").forEach},3866:(t,e,n)=>{n(8787);var r=n(5703);t.exports=r("Array").map},2999:(t,e,n)=>{n(1876);var r=n(5703);t.exports=r("Array").reduce},6043:(t,e,n)=>{var r=n(7046),i=n(5367),o=Array.prototype;t.exports=function(t){var e=t.concat;return t===o||r(o,t)&&e===o.concat?i:e}},8287:(t,e,n)=>{var r=n(7046),i=n(3866),o=Array.prototype;t.exports=function(t){var e=t.map;return t===o||r(o,t)&&e===o.map?i:e}},8025:(t,e,n)=>{var r=n(7046),i=n(2999),o=Array.prototype;t.exports=function(t){var e=t.reduce;return t===o||r(o,t)&&e===o.reduce?i:e}},8171:(t,e,n)=>{n(6450);var r=n(4058).Object,i=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(i.sham=!0)},3081:(t,e,n)=>{n(1078);var r=n(4058);t.exports=r.Object.entries},8494:(t,e,n)=>{n(1724);var r=n(4058);t.exports=r.Object.keys},2956:(t,e,n)=>{n(7627),n(6274),n(5967),n(8881),n(4560),n(7206),n(4349),n(7971);var r=n(4058);t.exports=r.Promise},7473:(t,e,n)=>{n(5906),n(5967),n(5824),n(8555),n(2615),n(1732),n(5903),n(1825),n(8394),n(5915),n(1766),n(2737),n(9911),n(4315),n(3131),n(4714),n(659),n(9120),n(5327),n(1502);var r=n(4058);t.exports=r.Symbol},4227:(t,e,n)=>{n(6274),n(5967),n(7971),n(1825);var r=n(1477);t.exports=r.f("iterator")},2978:(t,e,n)=>{n(8084),n(3131);var r=n(1477);t.exports=r.f("toPrimitive")},2304:(t,e,n)=>{n(6274),n(5967),n(4334);var r=n(4058);t.exports=r.WeakMap},9567:(t,e,n)=>{n(6274),n(5967),n(1773);var r=n(4058);t.exports=r.WeakSet},3685:(t,e,n)=>{t.exports=n(621)},6600:(t,e,n)=>{t.exports=n(2201)},9759:(t,e,n)=>{t.exports=n(7398)},1384:(t,e,n)=>{t.exports=n(6189)},621:(t,e,n)=>{var r=n(3536);t.exports=r},2201:(t,e,n)=>{var r=n(281);n(8783),n(2731),n(5605),n(5799),n(1943),n(6774),n(5414),n(620),n(6172),t.exports=r},7398:(t,e,n)=>{var r=n(31);t.exports=r},6189:(t,e,n)=>{var r=n(7487);t.exports=r},4883:(t,e,n)=>{var r=n(7475),i=n(9826),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},174:(t,e,n)=>{var r=n(4284),i=n(9826),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a constructor")}},1851:(t,e,n)=>{var r=n(7475),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},8479:t=>{t.exports=function(){}},5743:(t,e,n)=>{var r=n(7046),i=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw i("Incorrect invocation")}},6059:(t,e,n)=>{var r=n(941),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not an object")}},7135:(t,e,n)=>{var r=n(5981);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},6837:(t,e,n)=>{"use strict";var r=n(3610).forEach,i=n(4194)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},1692:(t,e,n)=>{var r=n(4529),i=n(9413),o=n(623),g=function(t){return function(e,n,g){var s,A=r(e),C=o(A),I=i(g,C);if(t&&n!=n){for(;C>I;)if((s=A[I++])!=s)return!0}else for(;C>I;I++)if((t||I in A)&&A[I]===n)return t||I||0;return!t&&-1}};t.exports={includes:g(!0),indexOf:g(!1)}},3610:(t,e,n)=>{var r=n(6843),i=n(5329),o=n(7026),g=n(9678),s=n(623),A=n(4692),C=i([].push),I=function(t){var e=1==t,n=2==t,i=3==t,I=4==t,a=6==t,u=7==t,c=5==t||a;return function(l,h,d,f){for(var p,v,y=g(l),b=o(y),m=r(h,d),w=s(b),_=0,x=f||A,E=e?x(l,w):n||u?x(l,0):void 0;w>_;_++)if((c||_ in b)&&(v=m(p=b[_],_,y),t))if(e)E[_]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return _;case 2:C(E,p)}else switch(t){case 4:return!1;case 7:C(E,p)}return a?-1:i||I?I:E}};t.exports={forEach:I(0),map:I(1),filter:I(2),some:I(3),every:I(4),find:I(5),findIndex:I(6),filterReject:I(7)}},568:(t,e,n)=>{var r=n(5981),i=n(9813),o=n(3385),g=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[g]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},4194:(t,e,n)=>{"use strict";var r=n(5981);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},6499:(t,e,n)=>{var r=n(4883),i=n(9678),o=n(7026),g=n(623),s=TypeError,A=function(t){return function(e,n,A,C){r(n);var I=i(e),a=o(I),u=g(I),c=t?u-1:0,l=t?-1:1;if(A<2)for(;;){if(c in a){C=a[c],c+=l;break}if(c+=l,t?c<0:u<=c)throw s("Reduce of empty array with no initial value")}for(;t?c>=0:u>c;c+=l)c in a&&(C=n(C,a[c],c,I));return C}};t.exports={left:A(!1),right:A(!0)}},5790:(t,e,n)=>{var r=n(9413),i=n(623),o=n(5449),g=Array,s=Math.max;t.exports=function(t,e,n){for(var A=i(t),C=r(e,A),I=r(void 0===n?A:n,A),a=g(s(I-C,0)),u=0;C{var r=n(5329);t.exports=r([].slice)},5693:(t,e,n)=>{var r=n(1052),i=n(4284),o=n(941),g=n(9813)("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(i(e)&&(e===s||r(e.prototype))||o(e)&&null===(e=e[g]))&&(e=void 0)),void 0===e?s:e}},4692:(t,e,n)=>{var r=n(5693);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},1385:(t,e,n)=>{var r=n(9813)("iterator"),i=!1;try{var o=0,g={next:function(){return{done:!!o++}},return:function(){i=!0}};g[r]=function(){return this},Array.from(g,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},2532:(t,e,n)=>{var r=n(5329),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},9697:(t,e,n)=>{var r=n(2885),i=n(7475),o=n(2532),g=n(9813)("toStringTag"),s=Object,A="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),g))?n:A?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},8850:(t,e,n)=>{"use strict";var r=n(5329),i=n(4380),o=n(1647).getWeakData,g=n(5743),s=n(6059),A=n(2119),C=n(941),I=n(3091),a=n(3610),u=n(953),c=n(5402),l=c.set,h=c.getterFor,d=a.find,f=a.findIndex,p=r([].splice),v=0,y=function(t){return t.frozen||(t.frozen=new b)},b=function(){this.entries=[]},m=function(t,e){return d(t.entries,(function(t){return t[0]===e}))};b.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var n=m(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=f(this.entries,(function(e){return e[0]===t}));return~e&&p(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var a=t((function(t,i){g(t,c),l(t,{type:e,id:v++,frozen:void 0}),A(i)||I(i,t[r],{that:t,AS_ENTRIES:n})})),c=a.prototype,d=h(e),f=function(t,e,n){var r=d(t),i=o(s(e),!0);return!0===i?y(r).set(e,n):i[r.id]=n,t};return i(c,{delete:function(t){var e=d(this);if(!C(t))return!1;var n=o(t);return!0===n?y(e).delete(t):n&&u(n,e.id)&&delete n[e.id]},has:function(t){var e=d(this);if(!C(t))return!1;var n=o(t);return!0===n?y(e).has(t):n&&u(n,e.id)}}),i(c,n?{get:function(t){var e=d(this);if(C(t)){var n=o(t);return!0===n?y(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return f(this,t,e)}}:{add:function(t){return f(this,t,!0)}}),a}}},4683:(t,e,n)=>{"use strict";var r=n(6887),i=n(1899),o=n(1647),g=n(5981),s=n(2029),A=n(3091),C=n(5743),I=n(7475),a=n(941),u=n(904),c=n(5988).f,l=n(3610).forEach,h=n(5746),d=n(5402),f=d.set,p=d.getterFor;t.exports=function(t,e,n){var d,v=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),b=v?"set":"add",m=i[t],w=m&&m.prototype,_={};if(h&&I(m)&&(y||w.forEach&&!g((function(){(new m).entries().next()})))){var x=(d=e((function(e,n){f(C(e,x),{type:t,collection:new m}),null!=n&&A(n,e[b],{that:e,AS_ENTRIES:v})}))).prototype,E=p(t);l(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in w)||y&&"clear"==t||s(x,t,(function(n,r){var i=E(this).collection;if(!e&&y&&!a(n))return"get"==t&&void 0;var o=i[t](0===n?0:n,r);return e?this:o}))})),y||c(x,"size",{configurable:!0,get:function(){return E(this).collection.size}})}else d=n.getConstructor(e,t,v,b),o.enable();return u(d,t,!1,!0),_[t]=d,r({global:!0,forced:!0},_),y||n.setStrong(d,t,v),d}},3489:(t,e,n)=>{var r=n(953),i=n(1136),o=n(9677),g=n(5988);t.exports=function(t,e,n){for(var s=i(e),A=g.f,C=o.f,I=0;I{var r=n(5981);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},3538:t=>{t.exports=function(t,e){return{value:t,done:e}}},2029:(t,e,n)=>{var r=n(5746),i=n(5988),o=n(1887);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},1887:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5449:(t,e,n)=>{"use strict";var r=n(3894),i=n(5988),o=n(1887);t.exports=function(t,e,n){var g=r(e);g in t?i.f(t,g,o(0,n)):t[g]=n}},9202:(t,e,n)=>{var r=n(5988);t.exports=function(t,e,n){return r.f(t,e,n)}},5929:(t,e,n)=>{var r=n(2029);t.exports=function(t,e,n,i){return i&&i.enumerable?t[e]=n:r(t,e,n),t}},4380:(t,e,n)=>{var r=n(5929);t.exports=function(t,e,n){for(var i in e)n&&n.unsafe&&t[i]?t[i]=e[i]:r(t,i,e[i],n);return t}},5609:(t,e,n)=>{var r=n(1899),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},5746:(t,e,n)=>{var r=n(5981);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6616:t=>{var e="object"==typeof document&&document.all,n=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},1333:(t,e,n)=>{var r=n(1899),i=n(941),o=r.document,g=i(o)&&i(o.createElement);t.exports=function(t){return g?o.createElement(t):{}}},6796:t=>{var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},3281:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},3321:(t,e,n)=>{var r=n(8501),i=n(6049);t.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},6491:t=>{t.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},8501:t=>{t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},4470:(t,e,n)=>{var r=n(2861);t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},2749:(t,e,n)=>{var r=n(2861);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},6049:(t,e,n)=>{var r=n(2532);t.exports="undefined"!=typeof process&&"process"==r(process)},8045:(t,e,n)=>{var r=n(2861);t.exports=/web0s(?!.*chrome)/i.test(r)},2861:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3385:(t,e,n)=>{var r,i,o=n(1899),g=n(2861),s=o.process,A=o.Deno,C=s&&s.versions||A&&A.version,I=C&&C.v8;I&&(i=(r=I.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&g&&(!(r=g.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=g.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},5703:(t,e,n)=>{var r=n(4058);t.exports=function(t){return r[t+"Prototype"]}},6759:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3995:(t,e,n)=>{var r=n(5329),i=Error,o=r("".replace),g=String(i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,A=s.test(g);t.exports=function(t,e){if(A&&"string"==typeof t&&!i.prepareStackTrace)for(;e--;)t=o(t,s,"");return t}},9585:(t,e,n)=>{var r=n(2029),i=n(3995),o=n(8780),g=Error.captureStackTrace;t.exports=function(t,e,n,s){o&&(g?g(t,e):r(t,"stack",i(n,s)))}},8780:(t,e,n)=>{var r=n(5981),i=n(1887);t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},6887:(t,e,n)=>{"use strict";var r=n(1899),i=n(9730),o=n(7484),g=n(7475),s=n(9677).f,A=n(7252),C=n(4058),I=n(6843),a=n(2029),u=n(953),c=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return i(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,i,l,h,d,f,p,v,y,b=t.target,m=t.global,w=t.stat,_=t.proto,x=m?r:w?r[b]:(r[b]||{}).prototype,E=m?C:C[b]||a(C,b,{})[b],O=E.prototype;for(h in e)i=!(n=A(m?h:b+(w?".":"#")+h,t.forced))&&x&&u(x,h),f=E[h],i&&(p=t.dontCallGetSet?(y=s(x,h))&&y.value:x[h]),d=i&&p?p:e[h],i&&typeof f==typeof d||(v=t.bind&&i?I(d,r):t.wrap&&i?c(d):_&&g(d)?o(d):d,(t.sham||d&&d.sham||f&&f.sham)&&a(v,"sham",!0),a(E,h,v),_&&(u(C,l=b+"Prototype")||a(C,l,{}),a(C[l],h,d),t.real&&O&&(n||!O[h])&&a(O,h,d)))}},5981:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},5602:(t,e,n)=>{var r=n(5981);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},9730:(t,e,n)=>{var r=n(8285),i=Function.prototype,o=i.apply,g=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?g.bind(o):function(){return g.apply(o,arguments)})},6843:(t,e,n)=>{var r=n(7484),i=n(4883),o=n(8285),g=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?g(t,e):function(){return t.apply(e,arguments)}}},8285:(t,e,n)=>{var r=n(5981);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8834:(t,e,n)=>{var r=n(8285),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},9417:(t,e,n)=>{var r=n(5746),i=n(953),o=Function.prototype,g=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),A=s&&"something"===function(){}.name,C=s&&(!r||r&&g(o,"name").configurable);t.exports={EXISTS:s,PROPER:A,CONFIGURABLE:C}},5526:(t,e,n)=>{var r=n(5329),i=n(4883);t.exports=function(t,e,n){try{return r(i(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},7484:(t,e,n)=>{var r=n(2532),i=n(5329);t.exports=function(t){if("Function"===r(t))return i(t)}},5329:(t,e,n)=>{var r=n(8285),i=Function.prototype,o=i.call,g=r&&i.bind.bind(o,o);t.exports=r?g:function(t){return function(){return o.apply(t,arguments)}}},626:(t,e,n)=>{var r=n(4058),i=n(1899),o=n(7475),g=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?g(r[t])||g(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},2902:(t,e,n)=>{var r=n(9697),i=n(4229),o=n(2119),g=n(2077),s=n(9813)("iterator");t.exports=function(t){if(!o(t))return i(t,s)||i(t,"@@iterator")||g[r(t)]}},3476:(t,e,n)=>{var r=n(8834),i=n(4883),o=n(6059),g=n(9826),s=n(2902),A=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(i(n))return o(r(n,t));throw A(g(t)+" is not iterable")}},3323:(t,e,n)=>{var r=n(5329),i=n(1052),o=n(7475),g=n(2532),s=n(5803),A=r([].push);t.exports=function(t){if(o(t))return t;if(i(t)){for(var e=t.length,n=[],r=0;r{var r=n(4883),i=n(2119);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},1899:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},953:(t,e,n)=>{var r=n(5329),i=n(9678),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},7748:t=>{t.exports={}},4845:t=>{t.exports=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}},5463:(t,e,n)=>{var r=n(626);t.exports=r("document","documentElement")},2840:(t,e,n)=>{var r=n(5746),i=n(5981),o=n(1333);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},7026:(t,e,n)=>{var r=n(5329),i=n(5981),o=n(2532),g=Object,s=r("".split);t.exports=i((function(){return!g("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?s(t,""):g(t)}:g},1302:(t,e,n)=>{var r=n(5329),i=n(7475),o=n(3030),g=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return g(t)}),t.exports=o.inspectSource},3794:(t,e,n)=>{var r=n(941),i=n(2029);t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},1647:(t,e,n)=>{var r=n(6887),i=n(5329),o=n(7748),g=n(941),s=n(953),A=n(5988).f,C=n(946),I=n(684),a=n(1584),u=n(9418),c=n(5602),l=!1,h=u("meta"),d=0,f=function(t){A(t,h,{value:{objectID:"O"+d++,weakData:{}}})},p=t.exports={enable:function(){p.enable=function(){},l=!0;var t=C.f,e=i([].splice),n={};n[h]=1,t(n).length&&(C.f=function(n){for(var r=t(n),i=0,o=r.length;i{var r,i,o,g=n(7093),s=n(1899),A=n(941),C=n(2029),I=n(953),a=n(3030),u=n(4262),c=n(7748),l="Object already initialized",h=s.TypeError,d=s.WeakMap;if(g||a.state){var f=a.state||(a.state=new d);f.get=f.get,f.has=f.has,f.set=f.set,r=function(t,e){if(f.has(t))throw h(l);return e.facade=t,f.set(t,e),e},i=function(t){return f.get(t)||{}},o=function(t){return f.has(t)}}else{var p=u("state");c[p]=!0,r=function(t,e){if(I(t,p))throw h(l);return e.facade=t,C(t,p,e),e},i=function(t){return I(t,p)?t[p]:{}},o=function(t){return I(t,p)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!A(e)||(n=i(e)).type!==t)throw h("Incompatible receiver, "+t+" required");return n}}}},6782:(t,e,n)=>{var r=n(9813),i=n(2077),o=r("iterator"),g=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||g[o]===t)}},1052:(t,e,n)=>{var r=n(2532);t.exports=Array.isArray||function(t){return"Array"==r(t)}},7475:(t,e,n)=>{var r=n(6616),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},4284:(t,e,n)=>{var r=n(5329),i=n(5981),o=n(7475),g=n(9697),s=n(626),A=n(1302),C=function(){},I=[],a=s("Reflect","construct"),u=/^\s*(?:class|function)\b/,c=r(u.exec),l=!u.exec(C),h=function(t){if(!o(t))return!1;try{return a(C,I,t),!0}catch(t){return!1}},d=function(t){if(!o(t))return!1;switch(g(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(u,A(t))}catch(t){return!0}};d.sham=!0,t.exports=!a||i((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?d:h},7252:(t,e,n)=>{var r=n(5981),i=n(7475),o=/#|\.prototype\./,g=function(t,e){var n=A[s(t)];return n==I||n!=C&&(i(e)?r(e):!!e)},s=g.normalize=function(t){return String(t).replace(o,".").toLowerCase()},A=g.data={},C=g.NATIVE="N",I=g.POLYFILL="P";t.exports=g},2119:t=>{t.exports=function(t){return null==t}},941:(t,e,n)=>{var r=n(7475),i=n(6616),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===o}:function(t){return"object"==typeof t?null!==t:r(t)}},2529:t=>{t.exports=!0},6664:(t,e,n)=>{var r=n(626),i=n(7475),o=n(7046),g=n(2302),s=Object;t.exports=g?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},3091:(t,e,n)=>{var r=n(6843),i=n(8834),o=n(6059),g=n(9826),s=n(6782),A=n(623),C=n(7046),I=n(3476),a=n(2902),u=n(7609),c=TypeError,l=function(t,e){this.stopped=t,this.result=e},h=l.prototype;t.exports=function(t,e,n){var d,f,p,v,y,b,m,w=n&&n.that,_=!(!n||!n.AS_ENTRIES),x=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),k=r(e,w),T=function(t){return d&&u(d,"normal",t),new l(!0,t)},S=function(t){return _?(o(t),O?k(t[0],t[1],T):k(t[0],t[1])):O?k(t,T):k(t)};if(x)d=t.iterator;else if(E)d=t;else{if(!(f=a(t)))throw c(g(t)+" is not iterable");if(s(f)){for(p=0,v=A(t);v>p;p++)if((y=S(t[p]))&&C(h,y))return y;return new l(!1)}d=I(t,f)}for(b=x?t.next:d.next;!(m=i(b,d)).done;){try{y=S(m.value)}catch(t){u(d,"throw",t)}if("object"==typeof y&&y&&C(h,y))return y}return new l(!1)}},7609:(t,e,n)=>{var r=n(8834),i=n(6059),o=n(4229);t.exports=function(t,e,n){var g,s;i(t);try{if(!(g=o(t,"return"))){if("throw"===e)throw n;return n}g=r(g,t)}catch(t){s=!0,g=t}if("throw"===e)throw n;if(s)throw g;return i(g),n}},3847:(t,e,n)=>{"use strict";var r=n(5143).IteratorPrototype,i=n(9290),o=n(1887),g=n(904),s=n(2077),A=function(){return this};t.exports=function(t,e,n,C){var I=e+" Iterator";return t.prototype=i(r,{next:o(+!C,n)}),g(t,I,!1,!0),s[I]=A,t}},5105:(t,e,n)=>{"use strict";var r=n(6887),i=n(8834),o=n(2529),g=n(9417),s=n(7475),A=n(3847),C=n(249),I=n(8929),a=n(904),u=n(2029),c=n(5929),l=n(9813),h=n(2077),d=n(5143),f=g.PROPER,p=g.CONFIGURABLE,v=d.IteratorPrototype,y=d.BUGGY_SAFARI_ITERATORS,b=l("iterator"),m="keys",w="values",_="entries",x=function(){return this};t.exports=function(t,e,n,g,l,d,E){A(n,e,g);var O,k,T,S=function(t){if(t===l&&M)return M;if(!y&&t in R)return R[t];switch(t){case m:case w:case _:return function(){return new n(this,t)}}return function(){return new n(this)}},P=e+" Iterator",N=!1,R=t.prototype,D=R[b]||R["@@iterator"]||l&&R[l],M=!y&&D||S(l),j="Array"==e&&R.entries||D;if(j&&(O=C(j.call(new t)))!==Object.prototype&&O.next&&(o||C(O)===v||(I?I(O,v):s(O[b])||c(O,b,x)),a(O,P,!0,!0),o&&(h[P]=x)),f&&l==w&&D&&D.name!==w&&(!o&&p?u(R,"name",w):(N=!0,M=function(){return i(D,this)})),l)if(k={values:S(w),keys:d?M:S(m),entries:S(_)},E)for(T in k)(y||N||!(T in R))&&c(R,T,k[T]);else r({target:e,proto:!0,forced:y||N},k);return o&&!E||R[b]===M||c(R,b,M,{name:l}),h[e]=M,k}},5143:(t,e,n)=>{"use strict";var r,i,o,g=n(5981),s=n(7475),A=n(941),C=n(9290),I=n(249),a=n(5929),u=n(9813),c=n(2529),l=u("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(i=I(I(o)))!==Object.prototype&&(r=i):h=!0),!A(r)||g((function(){var t={};return r[l].call(t)!==t}))?r={}:c&&(r=C(r)),s(r[l])||a(r,l,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},2077:t=>{t.exports={}},623:(t,e,n)=>{var r=n(3057);t.exports=function(t){return r(t.length)}},5331:t=>{var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},6132:(t,e,n)=>{var r,i,o,g,s,A=n(1899),C=n(6843),I=n(9677).f,a=n(2941).set,u=n(8397),c=n(2749),l=n(4470),h=n(8045),d=n(6049),f=A.MutationObserver||A.WebKitMutationObserver,p=A.document,v=A.process,y=A.Promise,b=I(A,"queueMicrotask"),m=b&&b.value;if(!m){var w=new u,_=function(){var t,e;for(d&&(t=v.domain)&&t.exit();e=w.get();)try{e()}catch(t){throw w.head&&r(),t}t&&t.enter()};c||d||h||!f||!p?!l&&y&&y.resolve?((g=y.resolve(void 0)).constructor=y,s=C(g.then,g),r=function(){s(_)}):d?r=function(){v.nextTick(_)}:(a=C(a,A),r=function(){a(_)}):(i=!0,o=p.createTextNode(""),new f(_).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),m=function(t){w.head||r(),w.add(t)}}t.exports=m},9520:(t,e,n)=>{"use strict";var r=n(4883),i=TypeError,o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw i("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},4649:(t,e,n)=>{var r=n(5803);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},9290:(t,e,n)=>{var r,i=n(6059),o=n(9938),g=n(6759),s=n(7748),A=n(5463),C=n(1333),I=n(4262),a="prototype",u="script",c=I("IE_PROTO"),l=function(){},h=function(t){return"<"+u+">"+t+""},d=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},f=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;f="undefined"!=typeof document?document.domain&&r?d(r):(e=C("iframe"),n="java"+u+":",e.style.display="none",A.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):d(r);for(var i=g.length;i--;)delete f[a][g[i]];return f()};s[c]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(l[a]=i(t),n=new l,l[a]=null,n[c]=t):n=f(),void 0===e?n:o.f(n,e)}},9938:(t,e,n)=>{var r=n(5746),i=n(3937),o=n(5988),g=n(6059),s=n(4529),A=n(4771);e.f=r&&!i?Object.defineProperties:function(t,e){g(t);for(var n,r=s(e),i=A(e),C=i.length,I=0;C>I;)o.f(t,n=i[I++],r[n]);return t}},5988:(t,e,n)=>{var r=n(5746),i=n(2840),o=n(3937),g=n(6059),s=n(3894),A=TypeError,C=Object.defineProperty,I=Object.getOwnPropertyDescriptor,a="enumerable",u="configurable",c="writable";e.f=r?o?function(t,e,n){if(g(t),e=s(e),g(n),"function"==typeof t&&"prototype"===e&&"value"in n&&c in n&&!n[c]){var r=I(t,e);r&&r[c]&&(t[e]=n.value,n={configurable:u in n?n[u]:r[u],enumerable:a in n?n[a]:r[a],writable:!1})}return C(t,e,n)}:C:function(t,e,n){if(g(t),e=s(e),g(n),i)try{return C(t,e,n)}catch(t){}if("get"in n||"set"in n)throw A("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},9677:(t,e,n)=>{var r=n(5746),i=n(8834),o=n(6760),g=n(1887),s=n(4529),A=n(3894),C=n(953),I=n(2840),a=Object.getOwnPropertyDescriptor;e.f=r?a:function(t,e){if(t=s(t),e=A(e),I)try{return a(t,e)}catch(t){}if(C(t,e))return g(!i(o.f,t,e),t[e])}},684:(t,e,n)=>{var r=n(2532),i=n(4529),o=n(946).f,g=n(5790),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==r(t)?function(t){try{return o(t)}catch(t){return g(s)}}(t):o(i(t))}},946:(t,e,n)=>{var r=n(5629),i=n(6759).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},7857:(t,e)=>{e.f=Object.getOwnPropertySymbols},249:(t,e,n)=>{var r=n(953),i=n(7475),o=n(9678),g=n(4262),s=n(4160),A=g("IE_PROTO"),C=Object,I=C.prototype;t.exports=s?C.getPrototypeOf:function(t){var e=o(t);if(r(e,A))return e[A];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof C?I:null}},1584:(t,e,n)=>{var r=n(5981),i=n(941),o=n(2532),g=n(7135),s=Object.isExtensible,A=r((function(){s(1)}));t.exports=A||g?function(t){return!!i(t)&&(!g||"ArrayBuffer"!=o(t))&&(!s||s(t))}:s},7046:(t,e,n)=>{var r=n(5329);t.exports=r({}.isPrototypeOf)},5629:(t,e,n)=>{var r=n(5329),i=n(953),o=n(4529),g=n(1692).indexOf,s=n(7748),A=r([].push);t.exports=function(t,e){var n,r=o(t),C=0,I=[];for(n in r)!i(s,n)&&i(r,n)&&A(I,n);for(;e.length>C;)i(r,n=e[C++])&&(~g(I,n)||A(I,n));return I}},4771:(t,e,n)=>{var r=n(5629),i=n(6759);t.exports=Object.keys||function(t){return r(t,i)}},6760:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},8929:(t,e,n)=>{var r=n(5526),i=n(6059),o=n(1851);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},8810:(t,e,n)=>{var r=n(5746),i=n(5329),o=n(4771),g=n(4529),s=i(n(6760).f),A=i([].push),C=function(t){return function(e){for(var n,i=g(e),C=o(i),I=C.length,a=0,u=[];I>a;)n=C[a++],r&&!s(i,n)||A(u,t?[n,i[n]]:i[n]);return u}};t.exports={entries:C(!0),values:C(!1)}},5623:(t,e,n)=>{"use strict";var r=n(2885),i=n(9697);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},9811:(t,e,n)=>{var r=n(8834),i=n(7475),o=n(941),g=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw g("Can't convert object to primitive value")}},1136:(t,e,n)=>{var r=n(626),i=n(5329),o=n(946),g=n(7857),s=n(6059),A=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=g.f;return n?A(e,n(t)):e}},4058:t=>{t.exports={}},2:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},7742:(t,e,n)=>{var r=n(1899),i=n(6991),o=n(7475),g=n(7252),s=n(1302),A=n(9813),C=n(3321),I=n(8501),a=n(2529),u=n(3385),c=i&&i.prototype,l=A("species"),h=!1,d=o(r.PromiseRejectionEvent),f=g("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===u)return!0;if(a&&(!c.catch||!c.finally))return!0;if(!u||u<51||!/native code/.test(t)){var n=new i((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[l]=r,!(h=n.then((function(){}))instanceof r))return!0}return!e&&(C||I)&&!d}));t.exports={CONSTRUCTOR:f,REJECTION_EVENT:d,SUBCLASSING:h}},6991:(t,e,n)=>{var r=n(1899);t.exports=r.Promise},6584:(t,e,n)=>{var r=n(6059),i=n(941),o=n(9520);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},1542:(t,e,n)=>{var r=n(6991),i=n(1385),o=n(7742).CONSTRUCTOR;t.exports=o||!i((function(t){r.all(t).then(void 0,(function(){}))}))},8397:t=>{var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},8219:(t,e,n)=>{var r=n(2119),i=TypeError;t.exports=function(t){if(r(t))throw i("Can't call method on "+t);return t}},7620:(t,e,n)=>{"use strict";var r,i=n(1899),o=n(9730),g=n(7475),s=n(6491),A=n(2861),C=n(3765),I=n(8348),a=i.Function,u=/MSIE .\./.test(A)||s&&((r=i.Bun.version.split(".")).length<3||0==r[0]&&(r[1]<3||3==r[1]&&0==r[2]));t.exports=function(t,e){var n=e?2:1;return u?function(r,i){var s=I(arguments.length,1)>n,A=g(r)?r:a(r),u=s?C(arguments,n):[],c=s?function(){o(A,this,u)}:A;return e?t(c,i):t(c)}:t}},4431:(t,e,n)=>{"use strict";var r=n(626),i=n(9202),o=n(9813),g=n(5746),s=o("species");t.exports=function(t){var e=r(t);g&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},904:(t,e,n)=>{var r=n(2885),i=n(5988).f,o=n(2029),g=n(953),s=n(5623),A=n(9813)("toStringTag");t.exports=function(t,e,n,C){if(t){var I=n?t:t.prototype;g(I,A)||i(I,A,{configurable:!0,value:e}),C&&!r&&o(I,"toString",s)}}},4262:(t,e,n)=>{var r=n(8726),i=n(9418),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},3030:(t,e,n)=>{var r=n(1899),i=n(5609),o="__core-js_shared__",g=r[o]||i(o,{});t.exports=g},8726:(t,e,n)=>{var r=n(2529),i=n(3030);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},487:(t,e,n)=>{var r=n(6059),i=n(174),o=n(2119),g=n(9813)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||o(n=r(s)[g])?e:i(n)}},4620:(t,e,n)=>{var r=n(5329),i=n(2435),o=n(5803),g=n(8219),s=r("".charAt),A=r("".charCodeAt),C=r("".slice),I=function(t){return function(e,n){var r,I,a=o(g(e)),u=i(n),c=a.length;return u<0||u>=c?t?"":void 0:(r=A(a,u))<55296||r>56319||u+1===c||(I=A(a,u+1))<56320||I>57343?t?s(a,u):r:t?C(a,u,u+2):I-56320+(r-55296<<10)+65536}};t.exports={codeAt:I(!1),charAt:I(!0)}},3405:(t,e,n)=>{var r=n(3385),i=n(5981),o=n(1899).String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},9630:(t,e,n)=>{var r=n(8834),i=n(626),o=n(9813),g=n(5929);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=o("toPrimitive");e&&!e[s]&&g(e,s,(function(t){return r(n,this)}),{arity:1})}},4680:(t,e,n)=>{var r=n(3405);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},2941:(t,e,n)=>{var r,i,o,g,s=n(1899),A=n(9730),C=n(6843),I=n(7475),a=n(953),u=n(5981),c=n(5463),l=n(3765),h=n(1333),d=n(8348),f=n(2749),p=n(6049),v=s.setImmediate,y=s.clearImmediate,b=s.process,m=s.Dispatch,w=s.Function,_=s.MessageChannel,x=s.String,E=0,O={},k="onreadystatechange";u((function(){r=s.location}));var T=function(t){if(a(O,t)){var e=O[t];delete O[t],e()}},S=function(t){return function(){T(t)}},P=function(t){T(t.data)},N=function(t){s.postMessage(x(t),r.protocol+"//"+r.host)};v&&y||(v=function(t){d(arguments.length,1);var e=I(t)?t:w(t),n=l(arguments,1);return O[++E]=function(){A(e,void 0,n)},i(E),E},y=function(t){delete O[t]},p?i=function(t){b.nextTick(S(t))}:m&&m.now?i=function(t){m.now(S(t))}:_&&!f?(g=(o=new _).port2,o.port1.onmessage=P,i=C(g.postMessage,g)):s.addEventListener&&I(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!u(N)?(i=N,s.addEventListener("message",P,!1)):i=k in h("script")?function(t){c.appendChild(h("script"))[k]=function(){c.removeChild(this),T(t)}}:function(t){setTimeout(S(t),0)}),t.exports={set:v,clear:y}},9413:(t,e,n)=>{var r=n(2435),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},4529:(t,e,n)=>{var r=n(7026),i=n(8219);t.exports=function(t){return r(i(t))}},2435:(t,e,n)=>{var r=n(5331);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},3057:(t,e,n)=>{var r=n(2435),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},9678:(t,e,n)=>{var r=n(8219),i=Object;t.exports=function(t){return i(r(t))}},6935:(t,e,n)=>{var r=n(8834),i=n(941),o=n(6664),g=n(4229),s=n(9811),A=n(9813),C=TypeError,I=A("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,A=g(t,I);if(A){if(void 0===e&&(e="default"),n=r(A,t,e),!i(n)||o(n))return n;throw C("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},3894:(t,e,n)=>{var r=n(6935),i=n(6664);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},2885:(t,e,n)=>{var r={};r[n(9813)("toStringTag")]="z",t.exports="[object z]"===String(r)},5803:(t,e,n)=>{var r=n(9697),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},9826:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9418:(t,e,n)=>{var r=n(5329),i=0,o=Math.random(),g=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+g(++i+o,36)}},2302:(t,e,n)=>{var r=n(3405);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3937:(t,e,n)=>{var r=n(5746),i=n(5981);t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8348:t=>{var e=TypeError;t.exports=function(t,n){if(t{var r=n(1899),i=n(7475),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},3464:(t,e,n)=>{var r=n(4058),i=n(953),o=n(1477),g=n(5988).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||g(e,t,{value:o.f(t)})}},1477:(t,e,n)=>{var r=n(9813);e.f=r},9813:(t,e,n)=>{var r=n(1899),i=n(8726),o=n(953),g=n(9418),s=n(3405),A=n(2302),C=r.Symbol,I=i("wks"),a=A?C.for||C:C&&C.withoutSetter||g;t.exports=function(t){return o(I,t)||(I[t]=s&&o(C,t)?C[t]:a("Symbol."+t)),I[t]}},9812:(t,e,n)=>{"use strict";var r=n(6887),i=n(7046),o=n(249),g=n(8929),s=n(3489),A=n(9290),C=n(2029),I=n(1887),a=n(3794),u=n(9585),c=n(3091),l=n(4649),h=n(9813)("toStringTag"),d=Error,f=[].push,p=function(t,e){var n,r=i(v,this);g?n=g(d(),r?o(this):v):(n=r?this:A(v),C(n,h,"Error")),void 0!==e&&C(n,"message",l(e)),u(n,p,n.stack,1),arguments.length>2&&a(n,arguments[2]);var s=[];return c(t,f,{that:s}),C(n,"errors",s),n};g?g(p,d):s(p,d,{name:!0});var v=p.prototype=A(d.prototype,{constructor:I(1,p),message:I(1,""),name:I(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:p})},7627:(t,e,n)=>{n(9812)},5906:(t,e,n)=>{"use strict";var r=n(6887),i=n(5981),o=n(1052),g=n(941),s=n(9678),A=n(623),C=n(6796),I=n(5449),a=n(4692),u=n(568),c=n(9813),l=n(3385),h=c("isConcatSpreadable"),d=l>=51||!i((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),f=function(t){if(!g(t))return!1;var e=t[h];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,arity:1,forced:!d||!u("concat")},{concat:function(t){var e,n,r,i,o,g=s(this),u=a(g,0),c=0;for(e=-1,r=arguments.length;e{"use strict";var r=n(6887),i=n(6837);r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},2988:(t,e,n)=>{n(6887)({target:"Array",stat:!0},{isArray:n(1052)})},6274:(t,e,n)=>{"use strict";var r=n(4529),i=n(8479),o=n(2077),g=n(5402),s=n(5988).f,A=n(5105),C=n(3538),I=n(2529),a=n(5746),u="Array Iterator",c=g.set,l=g.getterFor(u);t.exports=A(Array,"Array",(function(t,e){c(this,{type:u,target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,C(void 0,!0)):C("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values");var h=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!I&&a&&"values"!==h.name)try{s(h,"name",{value:"values"})}catch(t){}},8787:(t,e,n)=>{"use strict";var r=n(6887),i=n(3610).map;r({target:"Array",proto:!0,forced:!n(568)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},1876:(t,e,n)=>{"use strict";var r=n(6887),i=n(6499).left,o=n(4194),g=n(3385);r({target:"Array",proto:!0,forced:!n(6049)&&g>79&&g<83||!o("reduce")},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},8084:()=>{},2619:(t,e,n)=>{var r=n(6887),i=n(626),o=n(9730),g=n(8834),s=n(5329),A=n(5981),C=n(7475),I=n(6664),a=n(3765),u=n(3323),c=n(3405),l=String,h=i("JSON","stringify"),d=s(/./.exec),f=s("".charAt),p=s("".charCodeAt),v=s("".replace),y=s(1..toString),b=/[\uD800-\uDFFF]/g,m=/^[\uD800-\uDBFF]$/,w=/^[\uDC00-\uDFFF]$/,_=!c||A((function(){var t=i("Symbol")();return"[null]"!=h([t])||"{}"!=h({a:t})||"{}"!=h(Object(t))})),x=A((function(){return'"\\udf06\\ud834"'!==h("\udf06\ud834")||'"\\udead"'!==h("\udead")})),E=function(t,e){var n=a(arguments),r=u(e);if(C(r)||void 0!==t&&!I(t))return n[1]=function(t,e){if(C(r)&&(e=g(r,this,l(t),e)),!I(e))return e},o(h,null,n)},O=function(t,e,n){var r=f(n,e-1),i=f(n,e+1);return d(m,t)&&!d(w,i)||d(w,t)&&!d(m,r)?"\\u"+y(p(t,0),16):t};h&&r({target:"JSON",stat:!0,arity:3,forced:_||x},{stringify:function(t,e,n){var r=a(arguments),i=o(_?E:h,null,r);return x&&"string"==typeof i?v(i,b,O):i}})},9120:(t,e,n)=>{var r=n(1899);n(904)(r.JSON,"JSON",!0)},5327:()=>{},6450:(t,e,n)=>{var r=n(6887),i=n(5746),o=n(5988).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!i},{defineProperty:o})},1078:(t,e,n)=>{var r=n(6887),i=n(8810).entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},7144:(t,e,n)=>{var r=n(6887),i=n(3405),o=n(5981),g=n(7857),s=n(9678);r({target:"Object",stat:!0,forced:!i||o((function(){g.f(1)}))},{getOwnPropertySymbols:function(t){var e=g.f;return e?e(s(t)):[]}})},1724:(t,e,n)=>{var r=n(6887),i=n(9678),o=n(4771);r({target:"Object",stat:!0,forced:n(5981)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},5967:()=>{},4560:(t,e,n)=>{"use strict";var r=n(6887),i=n(8834),o=n(4883),g=n(9520),s=n(2),A=n(3091);r({target:"Promise",stat:!0,forced:n(1542)},{allSettled:function(t){var e=this,n=g.f(e),r=n.resolve,C=n.reject,I=s((function(){var n=o(e.resolve),g=[],s=0,C=1;A(t,(function(t){var o=s++,A=!1;C++,i(n,e,t).then((function(t){A||(A=!0,g[o]={status:"fulfilled",value:t},--C||r(g))}),(function(t){A||(A=!0,g[o]={status:"rejected",reason:t},--C||r(g))}))})),--C||r(g)}));return I.error&&C(I.value),n.promise}})},6890:(t,e,n)=>{"use strict";var r=n(6887),i=n(8834),o=n(4883),g=n(9520),s=n(2),A=n(3091);r({target:"Promise",stat:!0,forced:n(1542)},{all:function(t){var e=this,n=g.f(e),r=n.resolve,C=n.reject,I=s((function(){var n=o(e.resolve),g=[],s=0,I=1;A(t,(function(t){var o=s++,A=!1;I++,i(n,e,t).then((function(t){A||(A=!0,g[o]=t,--I||r(g))}),C)})),--I||r(g)}));return I.error&&C(I.value),n.promise}})},7206:(t,e,n)=>{"use strict";var r=n(6887),i=n(8834),o=n(4883),g=n(626),s=n(9520),A=n(2),C=n(3091),I=n(1542),a="No one promise resolved";r({target:"Promise",stat:!0,forced:I},{any:function(t){var e=this,n=g("AggregateError"),r=s.f(e),I=r.resolve,u=r.reject,c=A((function(){var r=o(e.resolve),g=[],s=0,A=1,c=!1;C(t,(function(t){var o=s++,C=!1;A++,i(r,e,t).then((function(t){C||c||(c=!0,I(t))}),(function(t){C||c||(C=!0,g[o]=t,--A||u(new n(g,a)))}))})),--A||u(new n(g,a))}));return c.error&&u(c.value),r.promise}})},3376:(t,e,n)=>{"use strict";var r=n(6887),i=n(2529),o=n(7742).CONSTRUCTOR,g=n(6991),s=n(626),A=n(7475),C=n(5929),I=g&&g.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&A(g)){var a=s("Promise").prototype.catch;I.catch!==a&&C(I,"catch",a,{unsafe:!0})}},6934:(t,e,n)=>{"use strict";var r,i,o,g=n(6887),s=n(2529),A=n(6049),C=n(1899),I=n(8834),a=n(5929),u=n(8929),c=n(904),l=n(4431),h=n(4883),d=n(7475),f=n(941),p=n(5743),v=n(487),y=n(2941).set,b=n(6132),m=n(4845),w=n(2),_=n(8397),x=n(5402),E=n(6991),O=n(7742),k=n(9520),T="Promise",S=O.CONSTRUCTOR,P=O.REJECTION_EVENT,N=O.SUBCLASSING,R=x.getterFor(T),D=x.set,M=E&&E.prototype,j=E,B=M,L=C.TypeError,F=C.document,z=C.process,Z=k.f,U=Z,V=!!(F&&F.createEvent&&C.dispatchEvent),G="unhandledrejection",W=function(t){var e;return!(!f(t)||!d(e=t.then))&&e},Y=function(t,e){var n,r,i,o=e.value,g=1==e.state,s=g?t.ok:t.fail,A=t.resolve,C=t.reject,a=t.domain;try{s?(g||(2===e.rejection&&q(e),e.rejection=1),!0===s?n=o:(a&&a.enter(),n=s(o),a&&(a.exit(),i=!0)),n===t.promise?C(L("Promise-chain cycle")):(r=W(n))?I(r,n,A,C):A(n)):C(o)}catch(t){a&&!i&&a.exit(),C(t)}},H=function(t,e){t.notified||(t.notified=!0,b((function(){for(var n,r=t.reactions;n=r.get();)Y(n,t);t.notified=!1,e&&!t.rejection&&Q(t)})))},K=function(t,e,n){var r,i;V?((r=F.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),C.dispatchEvent(r)):r={promise:e,reason:n},!P&&(i=C["on"+t])?i(r):t===G&&m("Unhandled promise rejection",n)},Q=function(t){I(y,C,(function(){var e,n=t.facade,r=t.value;if(X(t)&&(e=w((function(){A?z.emit("unhandledRejection",r,n):K(G,n,r)})),t.rejection=A||X(t)?2:1,e.error))throw e.value}))},X=function(t){return 1!==t.rejection&&!t.parent},q=function(t){I(y,C,(function(){var e=t.facade;A?z.emit("rejectionHandled",e):K("rejectionhandled",e,t.value)}))},J=function(t,e,n){return function(r){t(e,r,n)}},$=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,H(t,!0))},tt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw L("Promise can't be resolved itself");var r=W(e);r?b((function(){var n={done:!1};try{I(r,e,J(tt,n,t),J($,n,t))}catch(e){$(n,e,t)}})):(t.value=e,t.state=1,H(t,!1))}catch(e){$({done:!1},e,t)}}};if(S&&(B=(j=function(t){p(this,B),h(t),I(r,this);var e=R(this);try{t(J(tt,e),J($,e))}catch(t){$(e,t)}}).prototype,(r=function(t){D(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:void 0})}).prototype=a(B,"then",(function(t,e){var n=R(this),r=Z(v(this,j));return n.parent=!0,r.ok=!d(t)||t,r.fail=d(e)&&e,r.domain=A?z.domain:void 0,0==n.state?n.reactions.add(r):b((function(){Y(r,n)})),r.promise})),i=function(){var t=new r,e=R(t);this.promise=t,this.resolve=J(tt,e),this.reject=J($,e)},k.f=Z=function(t){return t===j||void 0===t?new i(t):U(t)},!s&&d(E)&&M!==Object.prototype)){o=M.then,N||a(M,"then",(function(t,e){var n=this;return new j((function(t,e){I(o,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete M.constructor}catch(t){}u&&u(M,B)}g({global:!0,constructor:!0,wrap:!0,forced:S},{Promise:j}),c(j,T,!1,!0),l(T)},4349:(t,e,n)=>{"use strict";var r=n(6887),i=n(2529),o=n(6991),g=n(5981),s=n(626),A=n(7475),C=n(487),I=n(6584),a=n(5929),u=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&g((function(){u.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=C(this,s("Promise")),n=A(t);return this.then(n?function(n){return I(e,t()).then((function(){return n}))}:t,n?function(n){return I(e,t()).then((function(){throw n}))}:t)}}),!i&&A(o)){var c=s("Promise").prototype.finally;u.finally!==c&&a(u,"finally",c,{unsafe:!0})}},8881:(t,e,n)=>{n(6934),n(6890),n(3376),n(5921),n(4069),n(4482)},5921:(t,e,n)=>{"use strict";var r=n(6887),i=n(8834),o=n(4883),g=n(9520),s=n(2),A=n(3091);r({target:"Promise",stat:!0,forced:n(1542)},{race:function(t){var e=this,n=g.f(e),r=n.reject,C=s((function(){var g=o(e.resolve);A(t,(function(t){i(g,e,t).then(n.resolve,r)}))}));return C.error&&r(C.value),n.promise}})},4069:(t,e,n)=>{"use strict";var r=n(6887),i=n(8834),o=n(9520);r({target:"Promise",stat:!0,forced:n(7742).CONSTRUCTOR},{reject:function(t){var e=o.f(this);return i(e.reject,void 0,t),e.promise}})},4482:(t,e,n)=>{"use strict";var r=n(6887),i=n(626),o=n(2529),g=n(6991),s=n(7742).CONSTRUCTOR,A=n(6584),C=i("Promise"),I=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(t){return A(I&&this===C?g:this,t)}})},1502:()=>{},7971:(t,e,n)=>{"use strict";var r=n(4620).charAt,i=n(5803),o=n(5402),g=n(5105),s=n(3538),A="String Iterator",C=o.set,I=o.getterFor(A);g(String,"String",(function(t){C(this,{type:A,string:i(t),index:0})}),(function(){var t,e=I(this),n=e.string,i=e.index;return i>=n.length?s(void 0,!0):(t=r(n,i),e.index+=t.length,s(t,!1))}))},8555:(t,e,n)=>{n(3464)("asyncIterator")},8616:(t,e,n)=>{"use strict";var r=n(6887),i=n(1899),o=n(8834),g=n(5329),s=n(2529),A=n(5746),C=n(3405),I=n(5981),a=n(953),u=n(7046),c=n(6059),l=n(4529),h=n(3894),d=n(5803),f=n(1887),p=n(9290),v=n(4771),y=n(946),b=n(684),m=n(7857),w=n(9677),_=n(5988),x=n(9938),E=n(6760),O=n(5929),k=n(9202),T=n(8726),S=n(4262),P=n(7748),N=n(9418),R=n(9813),D=n(1477),M=n(3464),j=n(9630),B=n(904),L=n(5402),F=n(3610).forEach,z=S("hidden"),Z="Symbol",U="prototype",V=L.set,G=L.getterFor(Z),W=Object[U],Y=i.Symbol,H=Y&&Y[U],K=i.TypeError,Q=i.QObject,X=w.f,q=_.f,J=b.f,$=E.f,tt=g([].push),et=T("symbols"),nt=T("op-symbols"),rt=T("wks"),it=!Q||!Q[U]||!Q[U].findChild,ot=A&&I((function(){return 7!=p(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=X(W,e);r&&delete W[e],q(t,e,n),r&&t!==W&&q(W,e,r)}:q,gt=function(t,e){var n=et[t]=p(H);return V(n,{type:Z,tag:t,description:e}),A||(n.description=e),n},st=function(t,e,n){t===W&&st(nt,e,n),c(t);var r=h(e);return c(n),a(et,r)?(n.enumerable?(a(t,z)&&t[z][r]&&(t[z][r]=!1),n=p(n,{enumerable:f(0,!1)})):(a(t,z)||q(t,z,f(1,{})),t[z][r]=!0),ot(t,r,n)):q(t,r,n)},At=function(t,e){c(t);var n=l(e),r=v(n).concat(ut(n));return F(r,(function(e){A&&!o(Ct,n,e)||st(t,e,n[e])})),t},Ct=function(t){var e=h(t),n=o($,this,e);return!(this===W&&a(et,e)&&!a(nt,e))&&(!(n||!a(this,e)||!a(et,e)||a(this,z)&&this[z][e])||n)},It=function(t,e){var n=l(t),r=h(e);if(n!==W||!a(et,r)||a(nt,r)){var i=X(n,r);return!i||!a(et,r)||a(n,z)&&n[z][r]||(i.enumerable=!0),i}},at=function(t){var e=J(l(t)),n=[];return F(e,(function(t){a(et,t)||a(P,t)||tt(n,t)})),n},ut=function(t){var e=t===W,n=J(e?nt:l(t)),r=[];return F(n,(function(t){!a(et,t)||e&&!a(W,t)||tt(r,et[t])})),r};C||(O(H=(Y=function(){if(u(H,this))throw K("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?d(arguments[0]):void 0,e=N(t),n=function(t){this===W&&o(n,nt,t),a(this,z)&&a(this[z],e)&&(this[z][e]=!1),ot(this,e,f(1,t))};return A&&it&&ot(W,e,{configurable:!0,set:n}),gt(e,t)})[U],"toString",(function(){return G(this).tag})),O(Y,"withoutSetter",(function(t){return gt(N(t),t)})),E.f=Ct,_.f=st,x.f=At,w.f=It,y.f=b.f=at,m.f=ut,D.f=function(t){return gt(R(t),t)},A&&(k(H,"description",{configurable:!0,get:function(){return G(this).description}}),s||O(W,"propertyIsEnumerable",Ct,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!C,sham:!C},{Symbol:Y}),F(v(rt),(function(t){M(t)})),r({target:Z,stat:!0,forced:!C},{useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!C,sham:!A},{create:function(t,e){return void 0===e?p(t):At(p(t),e)},defineProperty:st,defineProperties:At,getOwnPropertyDescriptor:It}),r({target:"Object",stat:!0,forced:!C},{getOwnPropertyNames:at}),j(),B(Y,Z),P[z]=!0},2615:()=>{},4523:(t,e,n)=>{var r=n(6887),i=n(626),o=n(953),g=n(5803),s=n(8726),A=n(4680),C=s("string-to-symbol-registry"),I=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!A},{for:function(t){var e=g(t);if(o(C,e))return C[e];var n=i("Symbol")(e);return C[e]=n,I[n]=e,n}})},1732:(t,e,n)=>{n(3464)("hasInstance")},5903:(t,e,n)=>{n(3464)("isConcatSpreadable")},1825:(t,e,n)=>{n(3464)("iterator")},5824:(t,e,n)=>{n(8616),n(4523),n(8608),n(2619),n(7144)},8608:(t,e,n)=>{var r=n(6887),i=n(953),o=n(6664),g=n(9826),s=n(8726),A=n(4680),C=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!A},{keyFor:function(t){if(!o(t))throw TypeError(g(t)+" is not a symbol");if(i(C,t))return C[t]}})},5915:(t,e,n)=>{n(3464)("matchAll")},8394:(t,e,n)=>{n(3464)("match")},1766:(t,e,n)=>{n(3464)("replace")},2737:(t,e,n)=>{n(3464)("search")},9911:(t,e,n)=>{n(3464)("species")},4315:(t,e,n)=>{n(3464)("split")},3131:(t,e,n)=>{var r=n(3464),i=n(9630);r("toPrimitive"),i()},4714:(t,e,n)=>{var r=n(626),i=n(3464),o=n(904);i("toStringTag"),o(r("Symbol"),"Symbol")},659:(t,e,n)=>{n(3464)("unscopables")},4776:(t,e,n)=>{"use strict";var r,i=n(5602),o=n(1899),g=n(5329),s=n(4380),A=n(1647),C=n(4683),I=n(8850),a=n(941),u=n(5402).enforce,c=n(5981),l=n(7093),h=Object,d=Array.isArray,f=h.isExtensible,p=h.isFrozen,v=h.isSealed,y=h.freeze,b=h.seal,m={},w={},_=!o.ActiveXObject&&"ActiveXObject"in o,x=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},E=C("WeakMap",x,I),O=E.prototype,k=g(O.set);if(l)if(_){r=I.getConstructor(x,"WeakMap",!0),A.enable();var T=g(O.delete),S=g(O.has),P=g(O.get);s(O,{delete:function(t){if(a(t)&&!f(t)){var e=u(this);return e.frozen||(e.frozen=new r),T(this,t)||e.frozen.delete(t)}return T(this,t)},has:function(t){if(a(t)&&!f(t)){var e=u(this);return e.frozen||(e.frozen=new r),S(this,t)||e.frozen.has(t)}return S(this,t)},get:function(t){if(a(t)&&!f(t)){var e=u(this);return e.frozen||(e.frozen=new r),S(this,t)?P(this,t):e.frozen.get(t)}return P(this,t)},set:function(t,e){if(a(t)&&!f(t)){var n=u(this);n.frozen||(n.frozen=new r),S(this,t)?k(this,t,e):n.frozen.set(t,e)}else k(this,t,e);return this}})}else i&&c((function(){var t=y([]);return k(new E,t,1),!p(t)}))&&s(O,{set:function(t,e){var n;return d(t)&&(p(t)?n=m:v(t)&&(n=w)),k(this,t,e),n==m&&y(t),n==w&&b(t),this}})},4334:(t,e,n)=>{n(4776)},1115:(t,e,n)=>{"use strict";n(4683)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(8850))},1773:(t,e,n)=>{n(1115)},8783:(t,e,n)=>{n(3464)("asyncDispose")},3975:(t,e,n)=>{n(3464)("dispose")},2731:(t,e,n)=>{var r=n(6887),i=n(626),o=n(5329),g=i("Symbol"),s=g.keyFor,A=o(g.prototype.valueOf);r({target:"Symbol",stat:!0},{isRegistered:function(t){try{return void 0!==s(A(t))}catch(t){return!1}}})},5605:(t,e,n)=>{for(var r=n(6887),i=n(8726),o=n(626),g=n(5329),s=n(6664),A=n(9813),C=o("Symbol"),I=C.isWellKnown,a=o("Object","getOwnPropertyNames"),u=g(C.prototype.valueOf),c=i("wks"),l=0,h=a(C),d=h.length;l{n(3464)("matcher")},1943:(t,e,n)=>{n(3464)("metadataKey")},5414:(t,e,n)=>{n(3464)("metadata")},6774:(t,e,n)=>{n(3464)("observable")},620:(t,e,n)=>{n(3464)("patternMatch")},6172:(t,e,n)=>{n(3464)("replaceAll")},7634:(t,e,n)=>{n(6274);var r=n(3281),i=n(1899),o=n(9697),g=n(2029),s=n(2077),A=n(9813)("toStringTag");for(var C in r){var I=i[C],a=I&&I.prototype;a&&o(a)!==A&&g(a,A,C),s[C]=s.Array}},9229:(t,e,n)=>{var r=n(6887),i=n(1899),o=n(7620)(i.setInterval,!0);r({global:!0,bind:!0,forced:i.setInterval!==o},{setInterval:o})},7749:(t,e,n)=>{var r=n(6887),i=n(1899),o=n(7620)(i.setTimeout,!0);r({global:!0,bind:!0,forced:i.setTimeout!==o},{setTimeout:o})},1249:(t,e,n)=>{n(9229),n(7749)},3363:(t,e,n)=>{var r=n(4034);t.exports=r},9216:(t,e,n)=>{var r=n(9324);t.exports=r},8065:(t,e,n)=>{var r=n(6043);t.exports=r},6279:(t,e,n)=>{n(7634);var r=n(9697),i=n(953),o=n(7046),g=n(9216),s=Array.prototype,A={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.forEach;return t===s||o(s,t)&&e===s.forEach||i(A,r(t))?g:e}},1798:(t,e,n)=>{var r=n(8287);t.exports=r},2527:(t,e,n)=>{var r=n(8025);t.exports=r},1910:(t,e,n)=>{var r=n(8171);t.exports=r},6209:(t,e,n)=>{var r=n(3081);t.exports=r},3059:(t,e,n)=>{var r=n(8494);t.exports=r},7460:(t,e,n)=>{var r=n(2956);n(7634),t.exports=r},7989:(t,e,n)=>{n(1249);var r=n(4058);t.exports=r.setTimeout},2547:(t,e,n)=>{var r=n(7473);n(7634),t.exports=r},6509:(t,e,n)=>{var r=n(4227);n(7634),t.exports=r},5774:(t,e,n)=>{var r=n(2978);t.exports=r},2010:(t,e,n)=>{var r=n(2304);n(7634),t.exports=r},3726:(t,e,n)=>{var r=n(9567);n(7634),t.exports=r},9996:t=>{"use strict";var e=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===n}(t)}(t)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(t,e){return!1!==e.clone&&e.isMergeableObject(t)?s((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function i(t,e,n){return t.concat(e).map((function(t){return r(t,n)}))}function o(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function g(t,e){try{return e in t}catch(t){return!1}}function s(t,n,A){(A=A||{}).arrayMerge=A.arrayMerge||i,A.isMergeableObject=A.isMergeableObject||e,A.cloneUnlessOtherwiseSpecified=r;var C=Array.isArray(n);return C===Array.isArray(t)?C?A.arrayMerge(t,n,A):function(t,e,n){var i={};return n.isMergeableObject(t)&&o(t).forEach((function(e){i[e]=r(t[e],n)})),o(e).forEach((function(o){(function(t,e){return g(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(g(t,o)&&n.isMergeableObject(e[o])?i[o]=function(t,e){if(!e.customMerge)return s;var n=e.customMerge(t);return"function"==typeof n?n:s}(o,n)(t[o],e[o],n):i[o]=r(e[o],n))})),i}(t,n,A):r(n,A)}s.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return s(t,n,e)}),{})};var A=s;t.exports=A},645:(t,e)=>{e.read=function(t,e,n,r,i){var o,g,s=8*i-r-1,A=(1<>1,I=-7,a=n?i-1:0,u=n?-1:1,c=t[e+a];for(a+=u,o=c&(1<<-I)-1,c>>=-I,I+=s;I>0;o=256*o+t[e+a],a+=u,I-=8);for(g=o&(1<<-I)-1,o>>=-I,I+=r;I>0;g=256*g+t[e+a],a+=u,I-=8);if(0===o)o=1-C;else{if(o===A)return g?NaN:1/0*(c?-1:1);g+=Math.pow(2,r),o-=C}return(c?-1:1)*g*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var g,s,A,C=8*o-i-1,I=(1<>1,u=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,c=r?0:o-1,l=r?1:-1,h=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,g=I):(g=Math.floor(Math.log(e)/Math.LN2),e*(A=Math.pow(2,-g))<1&&(g--,A*=2),(e+=g+a>=1?u/A:u*Math.pow(2,1-a))*A>=2&&(g++,A/=2),g+a>=I?(s=0,g=I):g+a>=1?(s=(e*A-1)*Math.pow(2,i),g+=a):(s=e*Math.pow(2,a-1)*Math.pow(2,i),g=0));i>=8;t[n+c]=255&s,c+=l,s/=256,i-=8);for(g=g<0;t[n+c]=255&g,c+=l,g/=256,C-=8);t[n+c-l]|=128*h}},1401:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertImpersonatedUserIsEmpty=e.assertTxConfigIsEmpty=e.assertDatabaseIsEmpty=void 0;var r=n(758);e.assertTxConfigIsEmpty=function(t,e,n){if(void 0===e&&(e=function(){}),t&&!t.isEmpty()){var i=(0,r.newError)("Driver is connected to the database that does not support transaction configuration. Please upgrade to neo4j 3.5.0 or later in order to use this functionality");throw e(i.message),n.onError(i),i}},e.assertDatabaseIsEmpty=function(t,e,n){if(void 0===e&&(e=function(){}),t){var i=(0,r.newError)("Driver is connected to the database that does not support multiple databases. Please upgrade to neo4j 4.0.0 or later in order to use this functionality");throw e(i.message),n.onError(i),i}},e.assertImpersonatedUserIsEmpty=function(t,e,n){if(void 0===e&&(e=function(){}),t){var i=(0,r.newError)("Driver is connected to the database that does not support user impersonation. Please upgrade to neo4j 4.4.0 or later in order to use this functionality. Trying to impersonate "+t+".");throw e(i.message),n.onError(i),i}}},6055:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(1401),o=n(7687),g=r(n(4415)),s=n(1235),A=n(758),C=A.internal.bookmark.Bookmark,I=A.internal.constants,a=I.ACCESS_MODE_WRITE,u=I.BOLT_PROTOCOL_V1,c=(A.internal.logger.Logger,A.internal.txConfig.TxConfig),l=function(){function t(t,e,n,r,i,o){var g=void 0===n?{}:n,s=g.disableLosslessIntegers,A=g.useBigInt;void 0===r&&(r=function(){return null}),this._server=t||{},this._chunker=e,this._packer=this._createPacker(e),this._unpacker=this._createUnpacker(s,A),this._responseHandler=r(this),this._log=i,this._onProtocolError=o,this._fatalError=null}return Object.defineProperty(t.prototype,"version",{get:function(){return u},enumerable:!1,configurable:!0}),t.prototype.packer=function(){return this._packer},t.prototype.unpacker=function(){return this._unpacker},t.prototype.transformMetadata=function(t){return t},t.prototype.initialize=function(t){var e=this,n=void 0===t?{}:t,r=n.userAgent,i=n.authToken,o=n.onError,A=n.onComplete,C=new s.LoginObserver({onError:function(t){return e._onLoginError(t,o)},onCompleted:function(t){return e._onLoginCompleted(t,A)}});return this.write(g.default.init(r,i),C,!0),C},t.prototype.prepareToClose=function(){},t.prototype.beginTransaction=function(t){var e=void 0===t?{}:t,n=e.bookmark,r=e.txConfig,i=e.database,o=e.mode,g=e.impersonatedUser,s=e.beforeError,A=e.afterError,C=e.beforeComplete,I=e.afterComplete;return this.run("BEGIN",n?n.asBeginTransactionParameters():{},{bookmark:n,txConfig:r,database:i,mode:o,impersonatedUser:g,beforeError:s,afterError:A,beforeComplete:C,afterComplete:I,flush:!1})},t.prototype.commitTransaction=function(t){var e=void 0===t?{}:t,n=e.beforeError,r=e.afterError,i=e.beforeComplete,o=e.afterComplete;return this.run("COMMIT",{},{bookmark:C.empty(),txConfig:c.empty(),mode:a,beforeError:n,afterError:r,beforeComplete:i,afterComplete:o})},t.prototype.rollbackTransaction=function(t){var e=void 0===t?{}:t,n=e.beforeError,r=e.afterError,i=e.beforeComplete,o=e.afterComplete;return this.run("ROLLBACK",{},{bookmark:C.empty(),txConfig:c.empty(),mode:a,beforeError:n,afterError:r,beforeComplete:i,afterComplete:o})},t.prototype.run=function(t,e,n){var r=void 0===n?{}:n,o=(r.bookmark,r.txConfig),A=r.database,C=(r.mode,r.impersonatedUser),I=r.beforeKeys,a=r.afterKeys,u=r.beforeError,c=r.afterError,l=r.beforeComplete,h=r.afterComplete,d=r.flush,f=void 0===d||d,p=new s.ResultStreamObserver({server:this._server,beforeKeys:I,afterKeys:a,beforeError:u,afterError:c,beforeComplete:l,afterComplete:h});return(0,i.assertTxConfigIsEmpty)(o,this._onProtocolError,p),(0,i.assertDatabaseIsEmpty)(A,this._onProtocolError,p),(0,i.assertImpersonatedUserIsEmpty)(C,this._onProtocolError,p),this.write(g.default.run(t,e),p,!1),this.write(g.default.pullAll(),p,f),p},Object.defineProperty(t.prototype,"currentFailure",{get:function(){return this._responseHandler.currentFailure},enumerable:!1,configurable:!0}),t.prototype.reset=function(t){var e=void 0===t?{}:t,n=e.onError,r=e.onComplete,i=new s.ResetObserver({onProtocolError:this._onProtocolError,onError:n,onComplete:r});return this.write(g.default.reset(),i,!0),i},t.prototype._createPacker=function(t){return new o.v1.Packer(t)},t.prototype._createUnpacker=function(t,e){return new o.v1.Unpacker(t,e)},t.prototype.write=function(t,e,n){var r=this;this.queueObserverIfProtocolIsNotBroken(e)&&(this._log.isDebugEnabled()&&this._log.debug("C: "+t),this.packer().packStruct(t.signature,t.fields.map((function(t){return r.packer().packable(t)}))),this._chunker.messageBoundary(),n&&this._chunker.flush())},t.prototype.notifyFatalError=function(t){return this._fatalError=t,this._responseHandler._notifyErrorToObservers(t)},t.prototype.updateCurrentObserver=function(){return this._responseHandler._updateCurrentObserver()},t.prototype.hasOngoingObservableRequests=function(){return this._responseHandler.hasOngoingObservableRequests()},t.prototype.queueObserverIfProtocolIsNotBroken=function(t){return this.isBroken()?(this.notifyFatalErrorToObserver(t),!1):this._responseHandler._queueObserver(t)},t.prototype.isBroken=function(){return!!this._fatalError},t.prototype.notifyFatalErrorToObserver=function(t){t&&t.onError&&t.onError(this._fatalError)},t.prototype.resetFailure=function(){this._responseHandler._resetFailure()},t.prototype._onLoginCompleted=function(t,e){if(t){var n=t.server;this._server.version||(this._server.version=n)}e&&e(t)},t.prototype._onLoginError=function(t,e){this._onProtocolError(t.message),e&&e(t)},t}();e.default=l},661:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var g=o(n(6055)),s=o(n(7687)),A=n(758).internal.constants.BOLT_PROTOCOL_V2,C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._createPacker=function(t){return new s.default.Packer(t)},e.prototype._createUnpacker=function(t,e){return new s.default.Unpacker(t,e)},Object.defineProperty(e.prototype,"version",{get:function(){return A},enumerable:!1,configurable:!0}),e}(g.default);e.default=C},3619:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7078),i=n(758);function o(t,e){return{major:t,minor:e}}e.default=function(t){var e=this;return new Promise((function(n,g){var s=function(t){g(t)};t.onerror=s.bind(e),t._error&&s(t._error),t.onmessage=function(t){try{var e=function(t){var e=[t.readUInt8(),t.readUInt8(),t.readUInt8(),t.readUInt8()];if(72===e[0]&&84===e[1]&&84===e[2]&&80===e[3])throw(0,i.newError)("Server responded HTTP. Make sure you are not trying to connect to the http endpoint (HTTP defaults to port 7474 whereas BOLT defaults to port 7687)");return Number(e[3]+"."+e[2])}(t);n({protocolVersion:e,consumeRemainingBuffer:function(e){t.hasRemaining()&&e(t.readSlice(t.remaining()))}})}catch(t){g(t)}},t.write(function(t){if(t.length>4)throw(0,i.newError)("It should not have more than 4 versions of the protocol");var e=(0,r.alloc)(20);return e.writeInt32(1616949271),t.forEach((function(t){if(t instanceof Array){var n=t[0],r=n.major,i=(o=n.minor)-t[1].minor;e.writeInt32(i<<16|o<<8|r)}else{r=t.major;var o=t.minor;e.writeInt32(o<<8|r)}})),e.reset(),e}([[o(4,4),o(4,2)],o(4,1),o(4,0),o(3,0)]))}))}},7778:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RawRoutingTable=e.BoltProtocol=void 0;var g=o(n(4904)),s=o(n(5530)),A=o(n(7478)),C=o(n(1548));i(n(1235),e),e.BoltProtocol=A.default,e.RawRoutingTable=C.default,e.default={handshake:g.default,create:s.default}},4415:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(758),i=r.internal.constants,o=i.ACCESS_MODE_READ,g=i.FETCH_ALL,s=r.internal.util.assertString,A=function(){function t(t,e,n){this.signature=t,this.fields=e,this.toString=n}return t.init=function(e,n){return new t(1,[e,n],(function(){return"INIT "+e+" {...}"}))},t.run=function(e,n){return new t(16,[e,n],(function(){return"RUN "+e+" "+r.json.stringify(n)}))},t.pullAll=function(){return a},t.reset=function(){return u},t.hello=function(e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null);var o=Object.assign({user_agent:e},n);return r&&(o.routing=r),i&&(o.patch_bolt=i),new t(1,[o],(function(){return"HELLO {user_agent: '"+e+"', ...}"}))},t.begin=function(e){var n=void 0===e?{}:e,i=C(n.bookmark,n.txConfig,n.database,n.mode,n.impersonatedUser);return new t(17,[i],(function(){return"BEGIN "+r.json.stringify(i)}))},t.commit=function(){return c},t.rollback=function(){return l},t.runWithMetadata=function(e,n,i){var o=void 0===i?{}:i,g=C(o.bookmark,o.txConfig,o.database,o.mode,o.impersonatedUser);return new t(16,[e,n,g],(function(){return"RUN "+e+" "+r.json.stringify(n)+" "+r.json.stringify(g)}))},t.goodbye=function(){return h},t.pull=function(e){var n=void 0===e?{}:e,i=n.stmtId,o=void 0===i?-1:i,s=n.n,A=I(null==o?-1:o,(void 0===s?g:s)||g);return new t(63,[A],(function(){return"PULL "+r.json.stringify(A)}))},t.discard=function(e){var n=void 0===e?{}:e,i=n.stmtId,o=void 0===i?-1:i,s=n.n,A=I(null==o?-1:o,(void 0===s?g:s)||g);return new t(47,[A],(function(){return"DISCARD "+r.json.stringify(A)}))},t.route=function(e,n,i){return void 0===e&&(e={}),void 0===n&&(n=[]),void 0===i&&(i=null),new t(102,[e,n,i],(function(){return"ROUTE "+r.json.stringify(e)+" "+r.json.stringify(n)+" "+i}))},t.routeV4x4=function(e,n,i){void 0===e&&(e={}),void 0===n&&(n=[]),void 0===i&&(i={});var o={};return i.databaseName&&(o.db=i.databaseName),i.impersonatedUser&&(o.imp_user=i.impersonatedUser),new t(102,[e,n,o],(function(){return"ROUTE "+r.json.stringify(e)+" "+r.json.stringify(n)+" "+r.json.stringify(o)}))},t}();function C(t,e,n,r,i){var g={};return t.isEmpty()||(g.bookmarks=t.values()),e.timeout&&(g.tx_timeout=e.timeout),e.metadata&&(g.tx_metadata=e.metadata),n&&(g.db=s(n,"database")),i&&(g.imp_user=s(i,"impersonatedUser")),r===o&&(g.mode="r"),g}function I(t,e){var n={n:(0,r.int)(e)};return-1!==t&&(n.qid=(0,r.int)(t)),n}e.default=A;var a=new A(63,[],(function(){return"PULL_ALL"})),u=new A(15,[],(function(){return"RESET"})),c=new A(18,[],(function(){return"COMMIT"})),l=new A(19,[],(function(){return"ROLLBACK"})),h=new A(2,[],(function(){return"GOODBYE"}))},2385:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(758);function i(){}function o(t){return t}var g={onNext:i,onCompleted:i,onError:i},s=function(){function t(t){var e=void 0===t?{}:t,n=e.transformMetadata,r=e.log,g=e.observer;this._pendingObservers=[],this._log=r,this._transformMetadata=n||o,this._observer=Object.assign({onPendingObserversChange:i,onError:i,onFailure:i,onErrorApplyTransformation:o},g)}return Object.defineProperty(t.prototype,"currentFailure",{get:function(){return this._currentFailure},enumerable:!1,configurable:!0}),t.prototype.handleResponse=function(t){var e=t.fields[0];switch(t.signature){case 113:this._log.isDebugEnabled()&&this._log.debug("S: RECORD "+r.json.stringify(t)),this._currentObserver.onNext(e);break;case 112:this._log.isDebugEnabled()&&this._log.debug("S: SUCCESS "+r.json.stringify(t));try{var n=this._transformMetadata(e);this._currentObserver.onCompleted(n)}finally{this._updateCurrentObserver()}break;case 127:this._log.isDebugEnabled()&&this._log.debug("S: FAILURE "+r.json.stringify(t));try{var i=(0,r.newError)(e.message,e.code);this._currentFailure=this._observer.onErrorApplyTransformation(i),this._currentObserver.onError(this._currentFailure)}finally{this._updateCurrentObserver(),this._observer.onFailure(this._currentFailure)}break;case 126:this._log.isDebugEnabled()&&this._log.debug("S: IGNORED "+r.json.stringify(t));try{this._currentFailure&&this._currentObserver.onError?this._currentObserver.onError(this._currentFailure):this._currentObserver.onError&&this._currentObserver.onError((0,r.newError)("Ignored either because of an error or RESET"))}finally{this._updateCurrentObserver()}break;default:this._observer.onError((0,r.newError)("Unknown Bolt protocol message: "+t))}},t.prototype._updateCurrentObserver=function(){this._currentObserver=this._pendingObservers.shift(),this._observer.onPendingObserversChange(this._pendingObservers.length)},t.prototype._queueObserver=function(t){return(t=t||g).onCompleted=t.onCompleted||i,t.onError=t.onError||i,t.onNext=t.onNext||i,void 0===this._currentObserver?this._currentObserver=t:this._pendingObservers.push(t),this._observer.onPendingObserversChange(this._pendingObservers.length),!0},t.prototype._notifyErrorToObservers=function(t){for(this._currentObserver&&this._currentObserver.onError&&this._currentObserver.onError(t);this._pendingObservers.length>0;){var e=this._pendingObservers.shift();e&&e.onError&&e.onError(t)}},t.prototype.hasOngoingObservableRequests=function(){return null!=this._currentObserver||this._pendingObservers.length>0},t.prototype._resetFailure=function(){this._currentFailure=null},t}();e.default=s},1548:function(t,e){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.ofRecord=function(e){return null===e?t.ofNull():new s(e)},t.ofMessageResponse=function(e){return null===e?t.ofNull():new o(e)},t.ofNull=function(){return new g},Object.defineProperty(t.prototype,"ttl",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"db",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"servers",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNull",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),t}();e.default=i;var o=function(t){function e(e){var n=t.call(this)||this;return n._response=e,n}return r(e,t),Object.defineProperty(e.prototype,"ttl",{get:function(){return this._response.rt.ttl},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"servers",{get:function(){return this._response.rt.servers},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"db",{get:function(){return this._response.rt.db},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isNull",{get:function(){return null===this._response},enumerable:!1,configurable:!0}),e}(i),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),Object.defineProperty(e.prototype,"isNull",{get:function(){return!0},enumerable:!1,configurable:!0}),e}(i),s=function(t){function e(e){var n=t.call(this)||this;return n._record=e,n}return r(e,t),Object.defineProperty(e.prototype,"ttl",{get:function(){return this._record.get("ttl")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"servers",{get:function(){return this._record.get("servers")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"db",{get:function(){return this._record.has("db")?this._record.get("db"):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isNull",{get:function(){return null===this._record},enumerable:!1,configurable:!0}),e}(i)},1235:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProcedureRouteObserver=e.RouteObserver=e.CompletedObserver=e.FailedObserver=e.ResetObserver=e.LoginObserver=e.ResultStreamObserver=e.StreamObserver=void 0;var g=n(758),s=o(n(1548)),A=g.internal.constants.FETCH_ALL,C=g.error.PROTOCOL_ERROR,I=function(){function t(){}return t.prototype.onNext=function(t){},t.prototype.onError=function(t){},t.prototype.onCompleted=function(t){},t}();e.StreamObserver=I;var a=function(t){function e(e){var n=void 0===e?{}:e,r=n.reactive,i=void 0!==r&&r,o=n.moreFunction,g=n.discardFunction,s=n.fetchSize,C=void 0===s?A:s,I=n.beforeError,a=n.afterError,u=n.beforeKeys,c=n.afterKeys,l=n.beforeComplete,h=n.afterComplete,d=n.server,f=t.call(this)||this;return f._fieldKeys=null,f._fieldLookup=null,f._head=null,f._queuedRecords=[],f._tail=null,f._error=null,f._observers=[],f._meta={},f._server=d,f._beforeError=I,f._afterError=a,f._beforeKeys=u,f._afterKeys=c,f._beforeComplete=l,f._afterComplete=h,f._queryId=null,f._moreFunction=o,f._discardFunction=g,f._discard=!1,f._fetchSize=C,f._setState(i?p.READY:p.READY_STREAMING),f._setupAuoPull(C),f}return i(e,t),e.prototype.onNext=function(t){var e=new g.Record(this._fieldKeys,t,this._fieldLookup);this._observers.some((function(t){return t.onNext}))?this._observers.forEach((function(t){t.onNext&&t.onNext(e)})):(this._queuedRecords.push(e),this._queuedRecords.length>this._highRecordWatermark&&(this._autoPull=!1))},e.prototype.onCompleted=function(t){this._state.onSuccess(this,t)},e.prototype.onError=function(t){this._state.onError(this,t)},e.prototype.cancel=function(){this._discard=!0},e.prototype.prepareToHandleSingleResponse=function(){this._head=[],this._fieldKeys=[],this._setState(p.STREAMING)},e.prototype.markCompleted=function(){this._head=[],this._fieldKeys=[],this._tail={},this._setState(p.SUCCEEDED)},e.prototype.subscribe=function(t){if(this._error)t.onError(this._error);else{if(this._head&&t.onKeys&&t.onKeys(this._head),this._queuedRecords.length>0&&t.onNext)for(var e=0;e0){this._fieldKeys=t.fields;for(var r=0;r>8),this.putUInt8(t+1,255&e)},t.prototype.putUInt16=function(t,e){this.putUInt8(t,e>>8&255),this.putUInt8(t+1,255&e)},t.prototype.putInt32=function(t,e){this.putInt8(t,e>>24),this.putUInt8(t+1,e>>16&255),this.putUInt8(t+2,e>>8&255),this.putUInt8(t+3,255&e)},t.prototype.putUInt32=function(t,e){this.putUInt8(t,e>>24&255),this.putUInt8(t+1,e>>16&255),this.putUInt8(t+2,e>>8&255),this.putUInt8(t+3,255&e)},t.prototype.putInt64=function(t,e){this.putInt8(t,e>>48),this.putUInt8(t+1,e>>42&255),this.putUInt8(t+2,e>>36&255),this.putUInt8(t+3,e>>30&255),this.putUInt8(t+4,e>>24&255),this.putUInt8(t+5,e>>16&255),this.putUInt8(t+6,e>>8&255),this.putUInt8(t+7,255&e)},t.prototype.putBytes=function(t,e){for(var n=0,r=e.remaining();n0},t.prototype.reset=function(){this.position=0},t.prototype.toString=function(){return this.constructor.name+"( position="+this.position+" )\n "+this.toHex()},t.prototype.toHex=function(){for(var t="",e=0;e=0}(e);return function(t,e,n){null===n||(t&&!n?console.warn("Neo4j driver is configured to use secure WebSocket on a HTTP web page. WebSockets might not work in a mixed content environment. Please consider configuring driver to not use encryption."):e&&n&&console.warn("Neo4j driver is configured to use insecure WebSocket on a HTTPS web page. WebSockets might not work in a mixed content environment. Please consider configuring driver to use encryption."))}(n,r,g),r?{scheme:"ws",error:null}:g?{scheme:"wss",error:null}:n?i&&"TRUST_SYSTEM_CA_SIGNED_CERTIFICATES"!==i?{scheme:null,error:(0,o.newError)("The browser version of this driver only supports one trust strategy, 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'. "+i+' is not supported. Please either use TRUST_SYSTEM_CA_SIGNED_CERTIFICATES or disable encryption by setting `encrypted:"'+s+'"` in the driver configuration.')}:{scheme:"wss",error:null}:{scheme:"ws",error:null}}(t,e),g=r.scheme,C=r.error;if(C)this._error=C;else{this._ws=function(t,e,n){var r=t+"://"+e.asHostPort();try{return n(r)}catch(r){if(function(t,e){return"SyntaxError"===t.name&&("["===(n=e.asHostPort()).charAt(0)&&-1!==n.indexOf("]"));var n}(r,e)){var i=function(t,e){return t+"://"+e.host().replace(new RegExp(":","g"),"-").replace("%","s")+".ipv6-literal.net:"+e.port()}(t,e);return n(i)}throw r}}(g,t.address,n),this._ws.binaryType="arraybuffer";var a=this;this._ws.onclose=function(t){t&&!t.wasClean&&a._handleConnectionError(),a._open=!1},this._ws.onopen=function(){a._clearConnectionTimeout();var t=a._pending;a._pending=null;for(var e=0;e{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(758),i=r.internal.util,o=i.ENCRYPTION_OFF,g=i.ENCRYPTION_ON,s=r.error.SERVICE_UNAVAILABLE,A=[null,void 0,!0,!1,g,o],C=[null,void 0,"TRUST_ALL_CERTIFICATES","TRUST_CUSTOM_CA_SIGNED_CERTIFICATES","TRUST_SYSTEM_CA_SIGNED_CERTIFICATES"];e.default=function(t,e,n){this.address=t,this.encrypted=function(t){var e=t.encrypted;if(-1===A.indexOf(e))throw(0,r.newError)("Illegal value of the encrypted setting "+e+". Expected one of "+A);return e}(e),this.trust=function(t){var e=t.trust;if(-1===C.indexOf(e))throw(0,r.newError)("Illegal value of the trust setting "+e+". Expected one of "+C);return e}(e),this.trustedCertificates=function(t){return t.trustedCertificates||[]}(e),this.knownHostsPath=function(t){return t.knownHosts||null}(e),this.connectionErrorCode=n||s,this.connectionTimeout=function(t){var e=parseInt(t.connectionTimeout,10);return 0===e||e&&e<0?null:e||3e4}(e)}},4985:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Dechunker=e.Chunker=void 0;var g=o(n(8364)),s=n(1731),A=o(n(4603)),C=function(t){function e(e,n){var r=t.call(this,0)||this;return r._bufferSize=n||1400,r._ch=e,r._buffer=(0,s.alloc)(r._bufferSize),r._currentChunkStart=0,r._chunkOpen=!1,r}return i(e,t),e.prototype.putUInt8=function(t,e){this._ensure(1),this._buffer.writeUInt8(e)},e.prototype.putInt8=function(t,e){this._ensure(1),this._buffer.writeInt8(e)},e.prototype.putFloat64=function(t,e){this._ensure(8),this._buffer.writeFloat64(e)},e.prototype.putBytes=function(t,e){for(;e.remaining()>0;)this._ensure(1),this._buffer.remaining()>e.remaining()?this._buffer.writeBytes(e):this._buffer.writeBytes(e.readSlice(this._buffer.remaining()));return this},e.prototype.flush=function(){if(this._buffer.position>0){this._closeChunkIfOpen();var t=this._buffer;this._buffer=null,this._ch.write(t.getSlice(0,t.position)),this._buffer=(0,s.alloc)(this._bufferSize),this._chunkOpen=!1}return this},e.prototype.messageBoundary=function(){this._closeChunkIfOpen(),this._buffer.remaining()<2&&this.flush(),this._buffer.writeInt16(0)},e.prototype._ensure=function(t){var e=this._chunkOpen?t:t+2;this._buffer.remaining()=2?this._onHeader(t.readUInt16()):(this._partialChunkHeader=t.readUInt8()<<8,this.IN_HEADER)},t.prototype.IN_HEADER=function(t){return this._onHeader(65535&(this._partialChunkHeader|t.readUInt8()))},t.prototype.IN_CHUNK=function(t){return this._chunkSize<=t.remaining()?(this._currentMessage.push(t.readSlice(this._chunkSize)),this.AWAITING_CHUNK):(this._chunkSize-=t.remaining(),this._currentMessage.push(t.readSlice(t.remaining())),this.IN_CHUNK)},t.prototype.CLOSED=function(t){},t.prototype._onHeader=function(t){if(0===t){var e=void 0;switch(this._currentMessage.length){case 0:return this.AWAITING_CHUNK;case 1:e=this._currentMessage[0];break;default:e=new A.default(this._currentMessage)}return this._currentMessage=[],this.onmessage(e),this.AWAITING_CHUNK}return this._chunkSize=t,this.IN_CHUNK},t.prototype.write=function(t){for(;t.hasRemaining();)this._state=this._state(t)},t}();e.Dechunker=I},4603:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(7268),g=n(1731),s=function(t){function e(e){for(var n=this,r=0,i=0;i=n.length))return n.getUInt8(t);t-=n.length}},e.prototype.getInt8=function(t){for(var e=0;e=n.length))return n.getInt8(t);t-=n.length}},e.prototype.getFloat64=function(t){for(var e=(0,g.alloc)(8),n=0;n<8;n++)e.putUInt8(n,this.getUInt8(t+n));return e.getFloat64(0)},e}(o.BaseBuffer);e.default=s},7078:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.utf8=e.alloc=e.ChannelConfig=void 0,i(n(2530),e),i(n(4985),e);var g=n(3190);Object.defineProperty(e,"ChannelConfig",{enumerable:!0,get:function(){return o(g).default}});var s=n(1731);Object.defineProperty(e,"alloc",{enumerable:!0,get:function(){return s.alloc}});var A=n(2969);Object.defineProperty(e,"utf8",{enumerable:!0,get:function(){return o(A).default}})},2969:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(1731)),o=n(758),g=r(n(8764)),s=new(n(2553).StringDecoder)("utf8");e.default={encode:function(t){return new i.default(function(t){return"function"==typeof g.default.Buffer.from?g.default.Buffer.from(t,"utf8"):new g.default.Buffer(t,"utf8")}(t))},decode:function(t,e){if(Object.prototype.hasOwnProperty.call(t,"_buffer"))return function(t,e){var n=t.position,r=n+e;return t.position=Math.min(r,t.length),t._buffer.toString("utf8",n,r)}(t,e);if(Object.prototype.hasOwnProperty.call(t,"_buffers"))return function(t,e){return function(t,e,n,r){var i=e,o=t.position;return t._updatePos(Math.min(e,t.length-o)),t._buffers.reduce((function(t,e){if(i<=0)return t;if(o>=e.length)return o-=e.length,"";e._updatePos(o-e.position);var n=Math.min(e.length-o,i),r=e.readSlice(n);return e._updatePos(n),i=Math.max(i-r.length,0),o=0,t+function(t){return s.write(t._buffer)}(r)}),"")+s.end()}(t,e)}(t,e);throw(0,o.newError)("Don't know how to decode strings from '"+t+"'")}}},2358:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function g(t){try{A(r.next(t))}catch(t){o(t)}}function s(t){try{A(r.throw(t))}catch(t){o(t)}}function A(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(g,s)}A((r=r.apply(t,e||[])).next())}))},g=this&&this.__generator||function(t,e){var n,r,i,o,g={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,r=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!((i=(i=g.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){g=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=c}))];case 1:return[2,t.sent()]}}))}))},e.prototype.supportsTransactionConfig=function(){return o(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this._hasProtocolVersion((function(t){return t>=u}))];case 1:return[2,t.sent()]}}))}))},e.prototype.supportsUserImpersonation=function(){return o(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this._hasProtocolVersion((function(t){return t>=l}))];case 1:return[2,t.sent()]}}))}))},e}(A.default));e.default=d},6779:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),g=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return g(e,t),e},A=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function g(t){try{A(r.next(t))}catch(t){o(t)}}function s(t){try{A(r.throw(t))}catch(t){o(t)}}function A(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(g,s)}A((r=r.apply(t,e||[])).next())}))},C=this&&this.__generator||function(t,e){var n,r,i,o,g={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,r=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!((i=(i=g.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){g=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){g=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),g=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)g.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return g},c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=n(758),h=A(n(4066)),d=n(7078),f=c(n(9070)),p=c(n(6779)),v=n(6836),y=n(870),b=l.error.SERVICE_UNAVAILABLE,m=l.error.SESSION_EXPIRED,w=l.internal.bookmark.Bookmark,_=l.internal.constants,x=_.ACCESS_MODE_READ,E=_.ACCESS_MODE_WRITE,O=_.BOLT_PROTOCOL_V3,k=_.BOLT_PROTOCOL_V4_0,T=_.BOLT_PROTOCOL_V4_4,S=null,P=(0,l.int)(3e4),N=function(t){function e(e){var n=e.id,r=e.address,i=e.routingContext,g=e.hostNameResolver,s=e.config,A=e.log,C=e.userAgent,I=e.authToken,a=e.routingTablePurgeDelay,u=t.call(this,{id:n,config:s,log:A,userAgent:C,authToken:I},(function(t){return(0,y.createChannelConnection)(t,u._config,u._createConnectionErrorHandler(),u._log,u._routingContext)}))||this;return u._routingContext=o(o({},i),{address:r.toString()}),u._seedRouter=r,u._rediscovery=new h.default(u._routingContext),u._loadBalancingStrategy=new v.LeastConnectedLoadBalancingStrategy(u._connectionPool),u._hostNameResolver=g,u._dnsResolver=new d.HostNameResolver,u._log=A,u._useSeedRouter=!0,u._routingTableRegistry=new R(a?(0,l.int)(a):P),u}return i(e,t),e.prototype._createConnectionErrorHandler=function(){return new y.ConnectionErrorHandler(m)},e.prototype._handleUnavailability=function(t,e,n){return this._log.warn("Routing driver "+this._id+" will forget "+e+" for database '"+n+"' because of an error "+t.code+" '"+t.message+"'"),this.forget(e,n||S),t},e.prototype._handleAuthorizationExpired=function(t,e,n){return this._log.warn("Routing driver "+this._id+" will close connections to "+e+" for database '"+n+"' because of an error "+t.code+" '"+t.message+"'"),this._connectionPool.purge(e).catch((function(){})),t},e.prototype._handleWriteFailure=function(t,e,n){return this._log.warn("Routing driver "+this._id+" will forget writer "+e+" for database '"+n+"' because of an error "+t.code+" '"+t.message+"'"),this.forgetWriter(e,n||S),(0,l.newError)("No longer possible to write to server at "+e,m)},e.prototype.acquireConnection=function(t){var e=void 0===t?{}:t,n=e.accessMode,r=e.database,i=e.bookmarks,o=e.impersonatedUser,g=e.onDatabaseNameResolved;return C(this,void 0,void 0,(function(){var t,e,s,A,C,a,u,c=this;return I(this,(function(I){switch(I.label){case 0:return s={database:r||S},A=new y.ConnectionErrorHandler(m,(function(t,e){return c._handleUnavailability(t,e,s.database)}),(function(t,e){return c._handleWriteFailure(t,e,s.database)}),(function(t,e){return c._handleAuthorizationExpired(t,e,s.database)})),[4,this._freshRoutingTable({accessMode:n,database:s.database,bookmark:i,impersonatedUser:o,onDatabaseNameResolved:function(t){s.database=s.database||t,g&&g(t)}})];case 1:if(C=I.sent(),n===x)e=this._loadBalancingStrategy.selectReader(C.readers),t="read";else{if(n!==E)throw(0,l.newError)("Illegal mode "+n);e=this._loadBalancingStrategy.selectWriter(C.writers),t="write"}if(!e)throw(0,l.newError)("Failed to obtain connection towards "+t+" server. Known routing table is: "+C,m);I.label=2;case 2:return I.trys.push([2,4,,5]),[4,this._acquireConnectionToServer(e,t,C)];case 3:return a=I.sent(),[2,new y.DelegateConnection(a,A)];case 4:throw u=I.sent(),A.handleAndTransformError(u,e);case 5:return[2]}}))}))},e.prototype._hasProtocolVersion=function(t){return C(this,void 0,void 0,(function(){var e,n,r,i,o,g;return I(this,(function(s){switch(s.label){case 0:return[4,this._resolveSeedRouter(this._seedRouter)];case 1:e=s.sent(),r=0,s.label=2;case 2:if(!(r=k}))];case 1:return[2,t.sent()]}}))}))},e.prototype.supportsTransactionConfig=function(){return C(this,void 0,void 0,(function(){return I(this,(function(t){switch(t.label){case 0:return[4,this._hasProtocolVersion((function(t){return t>=O}))];case 1:return[2,t.sent()]}}))}))},e.prototype.supportsUserImpersonation=function(){return C(this,void 0,void 0,(function(){return I(this,(function(t){switch(t.label){case 0:return[4,this._hasProtocolVersion((function(t){return t>=T}))];case 1:return[2,t.sent()]}}))}))},e.prototype.forget=function(t,e){this._routingTableRegistry.apply(e,{applyWhenExists:function(e){return e.forget(t)}}),this._connectionPool.purge(t).catch((function(){}))},e.prototype.forgetWriter=function(t,e){this._routingTableRegistry.apply(e,{applyWhenExists:function(e){return e.forgetWriter(t)}})},e.prototype._acquireConnectionToServer=function(t,e,n){return this._connectionPool.acquire(t)},e.prototype._freshRoutingTable=function(t){var e=void 0===t?{}:t,n=e.accessMode,r=e.database,i=e.bookmark,o=e.impersonatedUser,g=e.onDatabaseNameResolved,s=this._routingTableRegistry.get(r,(function(){return new h.RoutingTable({database:r})}));return s.isStaleFor(n)?(this._log.info('Routing table is stale for database: "'+r+'" and access mode: "'+n+'": '+s),this._refreshRoutingTable(s,i,o,g)):s},e.prototype._refreshRoutingTable=function(t,e,n,r){var i=t.routers;return this._useSeedRouter?this._fetchRoutingTableFromSeedRouterFallbackToKnownRouters(i,t,e,n,r):this._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter(i,t,e,n,r)},e.prototype._fetchRoutingTableFromSeedRouterFallbackToKnownRouters=function(t,e,n,r,i){return C(this,void 0,void 0,(function(){var o,g;return I(this,(function(s){switch(s.label){case 0:return o=[],[4,this._fetchRoutingTableUsingSeedRouter(o,this._seedRouter,e,n,r)];case 1:return(g=s.sent())?(this._useSeedRouter=!1,[3,4]):[3,2];case 2:return[4,this._fetchRoutingTableUsingKnownRouters(t,e,n,r)];case 3:g=s.sent(),s.label=4;case 4:return[4,this._applyRoutingTableIfPossible(e,g,i)];case 5:return[2,s.sent()]}}))}))},e.prototype._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter=function(t,e,n,r,i){return C(this,void 0,void 0,(function(){var o;return I(this,(function(g){switch(g.label){case 0:return[4,this._fetchRoutingTableUsingKnownRouters(t,e,n,r)];case 1:return(o=g.sent())?[3,3]:[4,this._fetchRoutingTableUsingSeedRouter(t,this._seedRouter,e,n,r)];case 2:o=g.sent(),g.label=3;case 3:return[4,this._applyRoutingTableIfPossible(e,o,i)];case 4:return[2,g.sent()]}}))}))},e.prototype._fetchRoutingTableUsingKnownRouters=function(t,n,r,i){return C(this,void 0,void 0,(function(){var o,g;return I(this,(function(s){switch(s.label){case 0:return[4,this._fetchRoutingTable(t,n,r,i)];case 1:return(o=s.sent())?[2,o]:(g=t.length-1,e._forgetRouter(n,t,g),[2,null])}}))}))},e.prototype._fetchRoutingTableUsingSeedRouter=function(t,e,n,r,i){return C(this,void 0,void 0,(function(){var o,g;return I(this,(function(s){switch(s.label){case 0:return[4,this._resolveSeedRouter(e)];case 1:return o=s.sent(),g=o.filter((function(e){return t.indexOf(e)<0})),[4,this._fetchRoutingTable(g,n,r,i)];case 2:return[2,s.sent()]}}))}))},e.prototype._resolveSeedRouter=function(t){return C(this,void 0,void 0,(function(){var e,n,r=this;return I(this,(function(i){switch(i.label){case 0:return[4,this._hostNameResolver.resolve(t)];case 1:return e=i.sent(),[4,Promise.all(e.map((function(t){return r._dnsResolver.resolve(t)})))];case 2:return n=i.sent(),[2,[].concat.apply([],n)]}}))}))},e.prototype._fetchRoutingTable=function(t,n,r,i){var o=this;return t.reduce((function(g,s,A){return C(o,void 0,void 0,(function(){var o,C,a,u;return I(this,(function(I){switch(I.label){case 0:return[4,g];case 1:return(o=I.sent())?[2,o]:(C=A-1,e._forgetRouter(n,t,C),[4,this._createSessionForRediscovery(s,r,i)]);case 2:if(!(a=I.sent()))return[3,8];I.label=3;case 3:return I.trys.push([3,5,6,7]),[4,this._rediscovery.lookupRoutingTableOnRouter(a,n.database,s,i)];case 4:return[2,I.sent()];case 5:if((u=I.sent())&&"Neo.ClientError.Database.DatabaseNotFound"===u.code)throw u;return this._log.warn("unable to fetch routing table because of an error "+u),[2,null];case 6:return a.close(),[7];case 7:return[3,9];case 8:return[2,null];case 9:return[2]}}))}))}),Promise.resolve(null))},e.prototype._createSessionForRediscovery=function(t,e,n){return C(this,void 0,void 0,(function(){var r,i,o,g,s=this;return I(this,(function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,this._connectionPool.acquire(t)];case 1:return r=A.sent(),i=y.ConnectionErrorHandler.create({errorCode:m,handleAuthorizationExpired:function(t,e){return s._handleAuthorizationExpired(t,e)}}),o=new f.default(new y.DelegateConnection(r,i)),r.protocol().version<4?[2,new l.Session({mode:E,bookmark:w.empty(),connectionProvider:o})]:[2,new l.Session({mode:x,database:"system",bookmark:e,connectionProvider:o,impersonatedUser:n})];case 2:if((g=A.sent())&&"Neo.ClientError.Security.Unauthorized"===g.code)throw g;return[2,null];case 3:return[2]}}))}))},e.prototype._applyRoutingTableIfPossible=function(t,e,n){return C(this,void 0,void 0,(function(){return I(this,(function(r){switch(r.label){case 0:if(!e)throw(0,l.newError)("Could not perform discovery. No routing servers available. Known routing table: "+t,b);return 0===e.writers.length&&(this._useSeedRouter=!0),[4,this._updateRoutingTable(e,n)];case 1:return r.sent(),[2,e]}}))}))},e.prototype._updateRoutingTable=function(t,e){return C(this,void 0,void 0,(function(){return I(this,(function(n){switch(n.label){case 0:return[4,this._connectionPool.keepAll(t.allServers())];case 1:return n.sent(),this._routingTableRegistry.removeExpired(),this._routingTableRegistry.register(t),e(t.database),this._log.info("Updated routing table "+t),[2]}}))}))},e._forgetRouter=function(t,e,n){var r=e[n];t&&r&&t.forgetRouter(r)},e}(p.default);e.default=N;var R=function(){function t(t){this._tables=new Map,this._routingTablePurgeDelay=t}return t.prototype.register=function(t){return this._tables.set(t.database,t),this},t.prototype.apply=function(t,e){var n=void 0===e?{}:e,r=n.applyWhenExists,i=n.applyWhenDontExists,o=void 0===i?function(){}:i;return this._tables.has(t)?r(this._tables.get(t)):"string"==typeof t||null===t?o():this._forEach(r),this},t.prototype.get=function(t,e){return this._tables.has(t)?this._tables.get(t):"function"==typeof e?e():e},t.prototype.removeExpired=function(){var t=this;return this._removeIf((function(e){return e.isExpiredFor(t._routingTablePurgeDelay)}))},t.prototype._forEach=function(t){var e,n;try{for(var r=a(this._tables),i=r.next();!i.done;i=r.next())t(u(i.value,2)[1])}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return this},t.prototype._remove=function(t){return this._tables.delete(t),this},t.prototype._removeIf=function(t){var e,n;try{for(var r=a(this._tables),i=r.next();!i.done;i=r.next()){var o=u(i.value,2),g=o[0];t(o[1])&&this._remove(g)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return this},t}()},9070:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=t.call(this)||this;return n._connection=e,n}return i(e,t),e.prototype.acquireConnection=function(t){var e=void 0===t?{}:t,n=(e.accessMode,e.database,e.bookmarks,this._connection);return this._connection=null,Promise.resolve(n)},e}(n(758).ConnectionProvider);e.default=o},1677:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RoutingConnectionProvider=e.DirectConnectionProvider=e.PooledConnectionProvider=e.SingleConnectionProvider=void 0;var i=n(9070);Object.defineProperty(e,"SingleConnectionProvider",{enumerable:!0,get:function(){return r(i).default}});var o=n(6779);Object.defineProperty(e,"PooledConnectionProvider",{enumerable:!0,get:function(){return r(o).default}});var g=n(2358);Object.defineProperty(e,"DirectConnectionProvider",{enumerable:!0,get:function(){return r(g).default}});var s=n(9223);Object.defineProperty(e,"RoutingConnectionProvider",{enumerable:!0,get:function(){return r(s).default}})},7441:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function g(t){try{A(r.next(t))}catch(t){o(t)}}function s(t){try{A(r.throw(t))}catch(t){o(t)}}function A(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(g,s)}A((r=r.apply(t,e||[])).next())}))},g=this&&this.__generator||function(t,e){var n,r,i,o,g={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,r=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!((i=(i=g.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){g=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?n._ch.setupReceiveTimeout(1e3*s):n._log.info("Server located at "+n._address+" supplied an invalid connection receive timeout value ("+s+"). Please, verify the server configuration and status because this can be the symptom of a bigger issue.")}}}i(r)}})}))},e.prototype.protocol=function(){return this._protocol},Object.defineProperty(e.prototype,"address",{get:function(){return this._address},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._server.version},set:function(t){this._server.version=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"server",{get:function(){return this._server},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"logger",{get:function(){return this._log},enumerable:!1,configurable:!0}),e.prototype._handleFatalError=function(t){this._isBroken=!0,this._error=this.handleAndTransformError(this._protocol.currentFailure||t,this._address),this._log.isErrorEnabled()&&this._log.error("experienced a fatal error caused by "+this._error+" ("+C.json.stringify(this._error)+")"),this._protocol.notifyFatalError(this._error)},e.prototype._queueObserver=function(t){return this._protocol.queueObserverIfProtocolIsNotBroken(t)},e.prototype.hasOngoingObservableRequests=function(){return this._protocol.hasOngoingObservableRequests()},e.prototype.resetAndFlush=function(){var t=this;return new Promise((function(e,n){t._protocol.reset({onError:function(e){if(t._isBroken)n(e);else{var r=t._handleProtocolError("Received FAILURE as a response for RESET: "+e);n(r)}},onComplete:function(){e()}})}))},e.prototype._resetOnFailure=function(){var t=this;this.isOpen()&&this._protocol.reset({onError:function(){t._protocol.resetFailure()},onComplete:function(){t._protocol.resetFailure()}})},e.prototype._updateCurrentObserver=function(){this._protocol.updateCurrentObserver()},e.prototype.isOpen=function(){return!this._isBroken&&this._ch._open},e.prototype._handleOngoingRequestsNumberChange=function(t){0===t?this._ch.stopReceiveTimeout():this._ch.startReceiveTimeout()},e.prototype.close=function(){return o(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return this._log.isDebugEnabled()&&this._log.debug("closing"),this._protocol&&this.isOpen()&&this._protocol.prepareToClose(),[4,this._ch.close()];case 1:return t.sent(),this._log.isDebugEnabled()&&this._log.debug("closed"),[2]}}))}))},e.prototype.toString=function(){return"Connection ["+this.id+"]["+(this.databaseId||"")+"]"},e.prototype._handleProtocolError=function(t){this._protocol.resetFailure(),this._updateCurrentObserver();var e=(0,C.newError)(t,u);return this._handleFatalError(e),e},e}(I.default);e.default=h},3124:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var g=function(t){function e(e,n){var r=t.call(this,n)||this;return n&&(r._originalErrorHandler=e._errorHandler,e._errorHandler=r._errorHandler),r._delegate=e,r}return i(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"databaseId",{get:function(){return this._delegate.databaseId},set:function(t){this._delegate.databaseId=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"server",{get:function(){return this._delegate.server},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"address",{get:function(){return this._delegate.address},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._delegate.version},set:function(t){this._delegate.version=t},enumerable:!1,configurable:!0}),e.prototype.isOpen=function(){return this._delegate.isOpen()},e.prototype.protocol=function(){return this._delegate.protocol()},e.prototype.connect=function(t,e){return this._delegate.connect(t,e)},e.prototype.write=function(t,e,n){return this._delegate.write(t,e,n)},e.prototype.resetAndFlush=function(){return this._delegate.resetAndFlush()},e.prototype.close=function(){return this._delegate.close()},e.prototype._release=function(){return this._originalErrorHandler&&(this._delegate._errorHandler=this._originalErrorHandler),this._delegate._release()},e}(o(n(7075)).default);e.default=g},6370:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(758),i=r.error.SERVICE_UNAVAILABLE,o=r.error.SESSION_EXPIRED,g=function(){function t(t,e,n,r){this._errorCode=t,this._handleUnavailability=e||s,this._handleWriteFailure=n||s,this._handleAuthorizationExpired=r||s}return t.create=function(e){return new t(e.errorCode,e.handleUnavailability,e.handleWriteFailure,e.handleAuthorizationExpired)},t.prototype.errorCode=function(){return this._errorCode},t.prototype.handleAndTransformError=function(t,e){return function(t){return t&&("Neo.ClientError.Security.AuthorizationExpired"===t.code||"Neo.ClientError.Security.TokenExpired"===t.code)}(t)?this._handleAuthorizationExpired(t,e):function(t){return!!t&&(t.code===o||t.code===i||"Neo.TransientError.General.DatabaseUnavailable"===t.code)}(t)?this._handleUnavailability(t,e):function(t){return!!t&&("Neo.ClientError.Cluster.NotALeader"===t.code||"Neo.ClientError.General.ForbiddenOnReadOnlyDatabase"===t.code)}(t)?this._handleWriteFailure(t,e):t},t}();function s(t){return t}e.default=g},7075:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this._errorHandler=t}return Object.defineProperty(t.prototype,"id",{get:function(){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"databaseId",{get:function(){throw new Error("not implemented")},set:function(t){throw new Error("not implemented")},enumerable:!1,configurable:!0}),t.prototype.isOpen=function(){throw new Error("not implemented")},t.prototype.protocol=function(){throw new Error("not implemented")},Object.defineProperty(t.prototype,"address",{get:function(){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){throw new Error("not implemented")},set:function(t){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"server",{get:function(){throw new Error("not implemented")},enumerable:!1,configurable:!0}),t.prototype.connect=function(t,e){throw new Error("not implemented")},t.prototype.write=function(t,e,n){throw new Error("not implemented")},t.prototype.resetAndFlush=function(){throw new Error("not implemented")},t.prototype.close=function(){throw new Error("not implemented")},t.prototype.handleAndTransformError=function(t,e){return this._errorHandler?this._errorHandler.handleAndTransformError(t,e):t},t}();e.default=n},870:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},g=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.createChannelConnection=e.ConnectionErrorHandler=e.DelegateConnection=e.ChannelConnection=e.Connection=void 0;var s=g(n(7075));e.Connection=s.default;var A=o(n(7441));e.ChannelConnection=A.default,Object.defineProperty(e,"createChannelConnection",{enumerable:!0,get:function(){return A.createChannelConnection}});var C=g(n(3124));e.DelegateConnection=C.default;var I=g(n(6370));e.ConnectionErrorHandler=I.default,e.default=s.default},297:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},g=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.pool=e.packstream=e.channel=e.buf=e.bolt=e.loadBalancing=void 0,e.loadBalancing=o(n(6836)),e.bolt=o(n(7778)),e.buf=o(n(7268)),e.channel=o(n(7078)),e.packstream=o(n(7687)),e.pool=o(n(2043)),g(n(1677),e)},6836:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.LeastConnectedLoadBalancingStrategy=e.LoadBalancingStrategy=void 0;var i=r(n(7986));e.LoadBalancingStrategy=i.default;var o=r(n(7865));e.LeastConnectedLoadBalancingStrategy=o.default,e.default=o.default},7865:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var g=o(n(226)),s=function(t){function e(e){var n=t.call(this)||this;return n._readersIndex=new g.default,n._writersIndex=new g.default,n._connectionPool=e,n}return i(e,t),e.prototype.selectReader=function(t){return this._select(t,this._readersIndex)},e.prototype.selectWriter=function(t){return this._select(t,this._writersIndex)},e.prototype._select=function(t,e){var n=t.length;if(0===n)return null;var r=e.next(n),i=r,o=null,g=Number.MAX_SAFE_INTEGER;do{var s=t[i],A=this._connectionPool.activeResourceCount(s);A{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.prototype.selectReader=function(t){throw new Error("Abstract function")},t.prototype.selectWriter=function(t){throw new Error("Abstract function")},t}();e.default=n},226:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this._offset=t||0}return t.prototype.next=function(t){if(0===t)return-1;var e=this._offset;return this._offset+=1,this._offset===Number.MAX_SAFE_INTEGER&&(this._offset=0),e%t},t}();e.default=n},7687:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.v2=e.v1=void 0;var g=o(n(843));e.v1=g;var s=o(n(6303));e.v2=s,e.default=s},5637:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packDateTime=e.unpackDateTimeWithZoneId=e.unpackDateTimeWithZoneOffset=e.DATE_TIME_WITH_ZONE_ID=e.DATE_TIME_WITH_ZONE_OFFSET=void 0;var r=n(758),i=n(9735),o=r.internal.temporalUtil.localDateTimeToEpochSecond;function g(t,e,n){var i=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1,era:"narrow"}),g=(0,r.int)(e).multiply(1e3).add((0,r.int)(n).div(1e6)).toNumber(),s=i.formatToParts(g).reduce((function(t,e){return"era"===e.type?t.adjustEra="B"===e.value.toUpperCase()?function(t){return t.subtract(1).negate()}:function(t){return t}:"literal"!==e.type&&(t[e.type]=(0,r.int)(e.value)),t}),{});s.year=s.adjustEra(s.year);var A=o(s.year,s.month,s.day,s.hour,s.minute,s.second,s.nanosecond);return s.timeZoneOffsetSeconds=A.subtract(e),s.hour=s.hour.modulo(24),s}function s(t,e,n){if(!e&&!n)return t;var i=function(t){return n?t.toBigInt():t.toNumberOrInfinity()},o=Object.create(Object.getPrototypeOf(t));for(var g in t)if(!0===Object.prototype.hasOwnProperty.call(t,g)){var s=t[g];o[g]=(0,r.isInt)(s)?i(s):s}return Object.freeze(o),o}e.DATE_TIME_WITH_ZONE_OFFSET=73,e.DATE_TIME_WITH_ZONE_ID=105,e.unpackDateTimeWithZoneOffset=function(t,e,n,o,g){t._verifyStructSize("DateTimeWithZoneOffset",3,e);var A=t.unpackInteger(n),C=t.unpackInteger(n),I=t.unpackInteger(n),a=(0,r.int)(A).add(I),u=(0,i.epochSecondAndNanoToLocalDateTime)(a,C);return s(new r.DateTime(u.year,u.month,u.day,u.hour,u.minute,u.second,u.nanosecond,I,null),o,g)},e.unpackDateTimeWithZoneId=function(t,e,n,i,o){t._verifyStructSize("DateTimeWithZoneId",3,e);var A=t.unpackInteger(n),C=t.unpackInteger(n),I=t.unpack(n),a=g(I,A,C);return s(new r.DateTime(a.year,a.month,a.day,a.hour,a.minute,a.second,(0,r.int)(C),a.timeZoneOffsetSeconds,I),i,o)},e.packDateTime=function(t,n){t.timeZoneId?function(t,n){var i=o(t.year,t.month,t.day,t.hour,t.minute,t.second,t.nanosecond),s=null!=t.timeZoneOffsetSeconds?t.timeZoneOffsetSeconds:function(t,e,n){var r=g(t,e,n),i=o(r.year,r.month,r.day,r.hour,r.minute,r.second,n).subtract(e),s=e.subtract(i),A=g(t,s,n);return o(A.year,A.month,A.day,A.hour,A.minute,A.second,n).subtract(s)}(t.timeZoneId,i,t.nanosecond),A=i.subtract(s),C=(0,r.int)(t.nanosecond),I=t.timeZoneId,a=[n.packable(A),n.packable(C),n.packable(I)];n.packStruct(e.DATE_TIME_WITH_ZONE_ID,a)}(t,n):function(t,n){var i=o(t.year,t.month,t.day,t.hour,t.minute,t.second,t.nanosecond),g=(0,r.int)(t.nanosecond),s=(0,r.int)(t.timeZoneOffsetSeconds),A=i.subtract(s),C=[n.packable(A),n.packable(g),n.packable(s)];n.packStruct(e.DATE_TIME_WITH_ZONE_OFFSET,C)}(t,n)}},843:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Structure=e.Unpacker=e.Packer=void 0;var r=n(7078),i=n(758),o=i.internal.objectUtil,g=i.error.PROTOCOL_ERROR,s=function(){function t(t,e){this.signature=t,this.fields=e}return t.prototype.toString=function(){for(var t="",e=0;e0&&(t+=", "),t+=this.fields[e];return"Structure("+this.signature+", ["+t+"])"},t}();e.Structure=s;var A=function(){function t(t){this._ch=t,this._byteArraysSupported=!0}return t.prototype.packable=function(t){var e,n=this;if(null===t)return function(){return n._ch.writeUInt8(192)};if(!0===t)return function(){return n._ch.writeUInt8(195)};if(!1===t)return function(){return n._ch.writeUInt8(194)};if("number"==typeof t)return function(){return n.packFloat(t)};if("string"==typeof t)return function(){return n.packString(t)};if("bigint"==typeof t)return function(){return n.packInteger((0,i.int)(t))};if((0,i.isInt)(t))return function(){return n.packInteger(t)};if(t instanceof Int8Array)return function(){return n.packBytes(t)};if(t instanceof Array)return function(){n.packListHeader(t.length);for(var e=0;e>0),this._ch.writeUInt8(n%256),this._ch.writeBytes(e);else{if(!(n<4294967296))throw(0,i.newError)("UTF-8 strings of size "+n+" are not supported");this._ch.writeUInt8(210),this._ch.writeUInt8((n/16777216>>0)%256),this._ch.writeUInt8((n/65536>>0)%256),this._ch.writeUInt8((n/256>>0)%256),this._ch.writeUInt8(n%256),this._ch.writeBytes(e)}},t.prototype.packListHeader=function(t){if(t<16)this._ch.writeUInt8(144|t);else if(t<256)this._ch.writeUInt8(212),this._ch.writeUInt8(t);else if(t<65536)this._ch.writeUInt8(213),this._ch.writeUInt8((t/256>>0)%256),this._ch.writeUInt8(t%256);else{if(!(t<4294967296))throw(0,i.newError)("Lists of size "+t+" are not supported");this._ch.writeUInt8(214),this._ch.writeUInt8((t/16777216>>0)%256),this._ch.writeUInt8((t/65536>>0)%256),this._ch.writeUInt8((t/256>>0)%256),this._ch.writeUInt8(t%256)}},t.prototype.packBytes=function(t){if(!this._byteArraysSupported)throw(0,i.newError)("Byte arrays are not supported by the database this driver is connected to");this.packBytesHeader(t.length);for(var e=0;e>0)%256),this._ch.writeUInt8(t%256);else{if(!(t<4294967296))throw(0,i.newError)("Byte arrays of size "+t+" are not supported");this._ch.writeUInt8(206),this._ch.writeUInt8((t/16777216>>0)%256),this._ch.writeUInt8((t/65536>>0)%256),this._ch.writeUInt8((t/256>>0)%256),this._ch.writeUInt8(t%256)}},t.prototype.packMapHeader=function(t){if(t<16)this._ch.writeUInt8(160|t);else if(t<256)this._ch.writeUInt8(216),this._ch.writeUInt8(t);else if(t<65536)this._ch.writeUInt8(217),this._ch.writeUInt8(t/256>>0),this._ch.writeUInt8(t%256);else{if(!(t<4294967296))throw(0,i.newError)("Maps of size "+t+" are not supported");this._ch.writeUInt8(218),this._ch.writeUInt8((t/16777216>>0)%256),this._ch.writeUInt8((t/65536>>0)%256),this._ch.writeUInt8((t/256>>0)%256),this._ch.writeUInt8(t%256)}},t.prototype.packStructHeader=function(t,e){if(t<16)this._ch.writeUInt8(176|t),this._ch.writeUInt8(e);else if(t<256)this._ch.writeUInt8(220),this._ch.writeUInt8(t),this._ch.writeUInt8(e);else{if(!(t<65536))throw(0,i.newError)("Structures of size "+t+" are not supported");this._ch.writeUInt8(221),this._ch.writeUInt8(t/256>>0),this._ch.writeUInt8(t%256)}},t.prototype.disableByteArrays=function(){this._byteArraysSupported=!1},t.prototype._nonPackableValue=function(t){return function(){throw(0,i.newError)(t,g)}},t}();e.Packer=A;var C=function(){function t(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1),this._disableLosslessIntegers=t,this._useBigInt=e}return t.prototype.unpack=function(t){var e=t.readUInt8(),n=240&e,r=15&e;if(192===e)return null;var o=this._unpackBoolean(e);if(null!==o)return o;var g=this._unpackNumberOrInteger(e,t);if(null!==g){if((0,i.isInt)(g)){if(this._useBigInt)return g.toBigInt();if(this._disableLosslessIntegers)return g.toNumberOrInfinity()}return g}var s=this._unpackString(e,n,r,t);if(null!==s)return s;var A=this._unpackList(e,n,r,t);if(null!==A)return A;var C=this._unpackByteArray(e,t);if(null!==C)return C;var I=this._unpackMap(e,n,r,t);if(null!==I)return I;var a=this._unpackStruct(e,n,r,t);if(null!==a)return a;throw(0,i.newError)("Unknown packed value with marker "+e.toString(16))},t.prototype.unpackInteger=function(t){var e=t.readUInt8(),n=this._unpackInteger(e,t);if(null==n)throw(0,i.newError)("Unable to unpack integer value with marker "+e.toString(16));return n},t.prototype._unpackBoolean=function(t){return 195===t||194!==t&&null},t.prototype._unpackNumberOrInteger=function(t,e){return 193===t?e.readFloat64():this._unpackInteger(t,e)},t.prototype._unpackInteger=function(t,e){if(t>=0&&t<128)return(0,i.int)(t);if(t>=240&&t<256)return(0,i.int)(t-256);if(200===t)return(0,i.int)(e.readInt8());if(201===t)return(0,i.int)(e.readInt16());if(202===t){var n=e.readInt32();return(0,i.int)(n)}if(203===t){var r=e.readInt32(),o=e.readInt32();return new i.Integer(o,r)}return null},t.prototype._unpackString=function(t,e,n,i){return 128===e?r.utf8.decode(i,n):208===t?r.utf8.decode(i,i.readUInt8()):209===t?r.utf8.decode(i,i.readUInt16()):210===t?r.utf8.decode(i,i.readUInt32()):null},t.prototype._unpackList=function(t,e,n,r){return 144===e?this._unpackListWithSize(n,r):212===t?this._unpackListWithSize(r.readUInt8(),r):213===t?this._unpackListWithSize(r.readUInt16(),r):214===t?this._unpackListWithSize(r.readUInt32(),r):null},t.prototype._unpackListWithSize=function(t,e){for(var n=[],r=0;r0?(a=r[I-1])instanceof i.UnboundRelationship&&(r[I-1]=a=a.bind(s.identity,C.identity)):(a=r[-I-1])instanceof i.UnboundRelationship&&(r[-I-1]=a=a.bind(C.identity,s.identity)),g.push(new i.PathSegment(s,a,C)),s=C}return new i.Path(n[0],n[n.length-1],g)},t.prototype._unpackUnknownStruct=function(t,e,n){for(var r=new s(t,[]),i=0;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.epochSecondAndNanoToLocalDateTime=e.nanoOfDayToLocalTime=e.epochDayToDate=void 0;var r=n(758),i=r.internal.temporalUtil,o=i.DAYS_0000_TO_1970,g=i.DAYS_PER_400_YEAR_CYCLE,s=i.NANOS_PER_HOUR,A=i.NANOS_PER_MINUTE,C=i.NANOS_PER_SECOND,I=i.SECONDS_PER_DAY,a=i.floorDiv,u=i.floorMod;function c(t){var e=(t=(0,r.int)(t)).add(o).subtract(60),n=(0,r.int)(0);if(e.lessThan(0)){var i=e.add(1).div(g).subtract(1);n=i.multiply(400),e=e.add(i.multiply(-g))}var s=e.multiply(400).add(591).div(g),A=e.subtract(s.multiply(365).add(s.div(4)).subtract(s.div(100)).add(s.div(400)));A.lessThan(0)&&(s=s.subtract(1),A=e.subtract(s.multiply(365).add(s.div(4)).subtract(s.div(100)).add(s.div(400)))),s=s.add(n);var C=A,I=C.multiply(5).add(2).div(153),a=I.add(2).modulo(12).add(1),u=C.subtract(I.multiply(306).add(5).div(10)).add(1);return s=s.add(I.div(10)),new r.Date(s,a,u)}function l(t){var e=(t=(0,r.int)(t)).div(s),n=(t=t.subtract(e.multiply(s))).div(A),i=(t=t.subtract(n.multiply(A))).div(C),o=t.subtract(i.multiply(C));return new r.LocalTime(e,n,i,o)}e.epochDayToDate=c,e.nanoOfDayToLocalTime=l,e.epochSecondAndNanoToLocalDateTime=function(t,e){var n=a(t,I),i=u(t,I).multiply(C).add(e),o=c(n),g=l(i);return new r.LocalDateTime(o.year,o.month,o.day,g.hour,g.minute,g.second,g.nanosecond)}},2043:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},g=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_MAX_SIZE=e.DEFAULT_ACQUISITION_TIMEOUT=e.PoolConfig=e.Pool=void 0;var s=o(n(1269));e.PoolConfig=s.default,Object.defineProperty(e,"DEFAULT_ACQUISITION_TIMEOUT",{enumerable:!0,get:function(){return s.DEFAULT_ACQUISITION_TIMEOUT}}),Object.defineProperty(e,"DEFAULT_MAX_SIZE",{enumerable:!0,get:function(){return s.DEFAULT_MAX_SIZE}});var A=g(n(1971));e.Pool=A.default,e.default=A.default},1269:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_ACQUISITION_TIMEOUT=e.DEFAULT_MAX_SIZE=void 0;var n=100;e.DEFAULT_MAX_SIZE=n;var r=6e4;e.DEFAULT_ACQUISITION_TIMEOUT=r;var i=function(){function t(t,e){this.maxSize=o(t,n),this.acquisitionTimeout=o(e,r)}return t.defaultConfig=function(){return new t(n,r)},t.fromDriverConfig=function(e){return new t(g(e.maxConnectionPoolSize)?e.maxConnectionPoolSize:n,g(e.connectionAcquisitionTimeout)?e.connectionAcquisitionTimeout:r)},t}();function o(t,e){return 0===t||t?t:e}function g(t){return 0===t||t}e.default=i},1971:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function g(t){try{A(r.next(t))}catch(t){o(t)}}function s(t){try{A(r.throw(t))}catch(t){o(t)}}function A(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(g,s)}A((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,i,o,g={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,r=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!((i=(i=g.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){g=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&this.activeResourceCount(t)+this._pendingCreates[e]>=this._maxSize)return[2,null];this._pendingCreates[e]=this._pendingCreates[e]+1,i.label=6;case 6:return i.trys.push([6,,8,9]),[4,this._create(t,(function(t,e){return A._release(r,t,e)}))];case 7:return g=i.sent(),I(e,this._activeResourceCounts),this._log.isDebugEnabled()&&this._log.debug(g+" created for the pool "+e),[3,9];case 8:return this._pendingCreates[e]=this._pendingCreates[e]-1,[7];case 9:return[2,g]}}))}))},t.prototype._release=function(t,e,n){return r(this,void 0,void 0,(function(){var r,o,g=this;return i(this,(function(i){switch(i.label){case 0:return r=e.asKey(),(o=this._pools[r])&&t&&t.isActive()?this._validate(n)?[3,2]:(this._log.isDebugEnabled()&&this._log.debug(n+" destroyed and can't be released to the pool "+r+" because it is not functional"),[4,this._destroy(n)]):[3,4];case 1:return i.sent(),[3,3];case 2:this._installIdleObserver&&this._installIdleObserver(n,{onError:function(t){g._log.debug("Idle connection "+n+" destroyed because of error: "+t);var e=g._pools[r];e&&(g._pools[r]=e.filter((function(t){return t!==n}))),g._destroy(n).catch((function(){}))}}),o.push(n),this._log.isDebugEnabled()&&this._log.debug(n+" released to the pool "+r),i.label=3;case 3:return[3,6];case 4:return this._log.isDebugEnabled()&&this._log.debug(n+" destroyed and can't be released to the pool "+r+" because pool has been purged"),[4,this._destroy(n)];case 5:i.sent(),i.label=6;case 6:return function(t,e){var n=(e[t]||0)-1;n>0?e[t]=n:delete e[t]}(r,this._activeResourceCounts),this._processPendingAcquireRequests(e),[2]}}))}))},t.prototype._purgeKey=function(t){return r(this,void 0,void 0,(function(){var e,n,r,o;return i(this,(function(i){switch(i.label){case 0:for(e=this._pools[t]||[],n=this._poolState[t]||new u,r=[];e.length;)o=e.pop(),this._removeIdleObserver&&this._removeIdleObserver(o),r.push(this._destroy(o));return n.close(),delete this._pools[t],delete this._poolState[t],[4,Promise.all(r)];case 1:return i.sent(),[2]}}))}))},t.prototype._processPendingAcquireRequests=function(t){var e=this,n=t.asKey(),r=this._acquireRequests[n],i=this._poolState[n];if(r){var o=r.shift();o?this._acquire(t).catch((function(t){return o.reject(t),null})).then((function(n){n&&(o.isCompleted()?e._release(i,t,n):o.resolve(n))})):delete this._acquireRequests[n]}},t}();function I(t,e){var n=e[t]||0;e[t]=n+1}var a=function(){function t(t,e,n,r,i){this._key=t,this._resolve=e,this._reject=n,this._timeoutId=r,this._log=i,this._completed=!1}return t.prototype.isCompleted=function(){return this._completed},t.prototype.resolve=function(t){this._completed||(this._completed=!0,clearTimeout(this._timeoutId),this._log.isDebugEnabled()&&this._log.debug(t+" acquired from the pool "+this._key),this._resolve(t))},t.prototype.reject=function(t){this._completed||(this._completed=!0,clearTimeout(this._timeoutId),this._reject(t))},t}(),u=function(){function t(){this._active=!0}return t.prototype.isActive=function(){return this._active},t.prototype.close=function(){this._active=!1},t}();e.default=C},4066:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RoutingTable=e.Rediscovery=void 0;var i=r(n(8862));e.Rediscovery=i.default;var o=r(n(1852));e.RoutingTable=o.default,e.default=i.default},8862:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(1852)),o=n(7778),g=n(758),s=g.error.SERVICE_UNAVAILABLE,A=function(){function t(t){this._routingContext=t}return t.prototype.lookupRoutingTableOnRouter=function(t,e,n,r){var o=this;return t._acquireConnection((function(g){return o._requestRawRoutingTable(g,t,e,n,r).then((function(t){return t.isNull?null:i.default.fromRawRoutingTable(e,n,t)}))}))},t.prototype._requestRawRoutingTable=function(t,e,n,r,i){var A=this;return new Promise((function(C,I){t.protocol().requestRoutingInformation({routingContext:A._routingContext,databaseName:n,impersonatedUser:i,sessionContext:{bookmark:e._lastBookmark,mode:e._mode,database:e._database,afterComplete:e._onComplete},onCompleted:C,onError:function(t){"Neo.ClientError.Database.DatabaseNotFound"===t.code?I(t):"Neo.ClientError.Procedure.ProcedureNotFound"===t.code?I((0,g.newError)("Server at "+r.asHostPort()+" can't perform routing. Make sure you are connecting to a causal cluster",s)):C(o.RawRoutingTable.ofNull())}})}))},t}();e.default=A},1852:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),g=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)g.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return g},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={basic:function(t,e,n){return n?{scheme:"basic",principal:t,credentials:e,realm:n}:{scheme:"basic",principal:t,credentials:e}},kerberos:function(t){return{scheme:"kerberos",principal:"",credentials:t}},bearer:function(t){return{scheme:"bearer",credentials:t}},custom:function(t,e,n,r,i){return i?{scheme:r,principal:t,credentials:e,realm:n,parameters:i}:{scheme:r,principal:t,credentials:e,realm:n}}}},3915:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.prototype.acquireConnection=function(t){throw Error("Not implemented")},t.prototype.supportsMultiDb=function(){throw Error("Not implemented")},t.prototype.supportsTransactionConfig=function(){throw Error("Not implemented")},t.prototype.supportsUserImpersonation=function(){throw Error("Not implemented")},t.prototype.close=function(){throw Error("Not implemented")},t}();e.default=n},5287:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.id="",this.databaseId=""}return t.prototype.isOpen=function(){return!1},t.prototype.protocol=function(){throw Error("Not implemented")},t.prototype.connect=function(t,e){throw Error("Not implemented")},t.prototype.write=function(t,e,n){throw Error("Not implemented")},t.prototype.resetAndFlush=function(){throw Error("Not implemented")},t.prototype.close=function(){throw Error("Not implemented")},t.prototype._release=function(){return Promise.resolve()},t}();e.default=n},5278:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WRITE=e.READ=e.Driver=void 0;var i=n(9763),o=n(2783),g=r(n(1406)),s=n(2206),A=n(1205),C=r(n(4777)),I=n(7400),a=s.ACCESS_MODE_READ;e.READ=a;var u=s.ACCESS_MODE_WRITE;e.WRITE=u;var c=0,l=function(){function t(t,e,n,r){void 0===e&&(e={}),void 0===r&&(r=function(t){return new C.default(t)}),function(t){t.maxConnectionLifetime=h(t.maxConnectionLifetime,36e5),t.maxConnectionPoolSize=h(t.maxConnectionPoolSize,s.DEFAULT_POOL_MAX_SIZE),t.connectionAcquisitionTimeout=h(t.connectionAcquisitionTimeout,s.DEFAULT_POOL_ACQUISITION_TIMEOUT),t.fetchSize=d(t.fetchSize,1e3)}(e),function(t){var e=t.resolver;if(e&&"function"!=typeof e)throw new TypeError("Configured resolver should be a function. Got: "+e)}(e),this._id=c++,this._meta=t,this._config=e,this._log=A.Logger.create(e),this._createConnectionProvider=n,this._createSession=r,this._connectionProvider=null,this._afterConstruction()}return t.prototype.verifyConnectivity=function(t){var e=(void 0===t?{}:t).database,n=void 0===e?"":e,r=this._getOrCreateConnectionProvider();return new o.ConnectivityVerifier(r).verify({database:n})},t.prototype.supportsMultiDb=function(){return this._getOrCreateConnectionProvider().supportsMultiDb()},t.prototype.supportsTransactionConfig=function(){return this._getOrCreateConnectionProvider().supportsTransactionConfig()},t.prototype.supportsUserImpersonation=function(){return this._getOrCreateConnectionProvider().supportsUserImpersonation()},t.prototype._supportsRouting=function(){return this._meta.routing},t.prototype._isEncrypted=function(){return this._config.encrypted===I.ENCRYPTION_ON},t.prototype._getTrust=function(){return this._config.trust},t.prototype.session=function(t){var e=void 0===t?{}:t,n=e.defaultAccessMode,r=void 0===n?u:n,i=e.bookmarks,o=e.database,g=void 0===o?"":o,s=e.impersonatedUser,A=e.fetchSize;return this._newSession({defaultAccessMode:r,bookmarkOrBookmarks:i,database:g,reactive:!1,impersonatedUser:s,fetchSize:d(A,this._config.fetchSize)})},t.prototype.close=function(){return this._log.info("Driver "+this._id+" closing"),this._connectionProvider?this._connectionProvider.close():Promise.resolve()},t.prototype._afterConstruction=function(){this._log.info(this._meta.typename+" driver "+this._id+" created for server address "+this._meta.address)},t.prototype._newSession=function(t){var e=t.defaultAccessMode,n=t.bookmarkOrBookmarks,r=t.database,o=t.reactive,g=t.impersonatedUser,s=t.fetchSize,A=C.default._validateSessionMode(e),I=this._getOrCreateConnectionProvider(),a=n?new i.Bookmark(n):i.Bookmark.empty();return this._createSession({mode:A,database:r||"",connectionProvider:I,bookmark:a,config:this._config,reactive:o,impersonatedUser:g,fetchSize:s})},t.prototype._getOrCreateConnectionProvider=function(){var t;return this._connectionProvider||(this._connectionProvider=this._createConnectionProvider(this._id,this._config,this._log,(t=this._config,new g.default(t.resolver)))),this._connectionProvider},t}();function h(t,e){var n=parseInt(t,10);return n>0||0===n?n:n<0?Number.MAX_SAFE_INTEGER:e}function d(t,e){var n=parseInt(t,10);if(n>0||n===s.FETCH_ALL)return n;if(0===n||n<0)throw new Error("The fetch size can only be a positive value or "+s.FETCH_ALL+" for ALL. However fetchSize = "+n);return e}e.Driver=l,e.default=l},4949:function(t,e){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.PROTOCOL_ERROR=e.SESSION_EXPIRED=e.SERVICE_UNAVAILABLE=e.Neo4jError=e.newError=void 0,e.SERVICE_UNAVAILABLE="ServiceUnavailable",e.SESSION_EXPIRED="SessionExpired",e.PROTOCOL_ERROR="ProtocolError";var i=function(t){function e(n,r){var i=t.call(this,n)||this;return i.constructor=e,i.__proto__=e.prototype,i.code=r,i.name="Neo4jError",i}return r(e,t),e}(Error);e.Neo4jError=i,e.newError=function(t,e){return new i(t,null!=e?e:"N/A")}},8156:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isPathSegment=e.PathSegment=e.isPath=e.Path=e.isUnboundRelationship=e.UnboundRelationship=e.isRelationship=e.Relationship=e.isNode=e.Node=void 0;var r=n(2347),i={value:!0,enumerable:!1,configurable:!1,writable:!1},o="__isNode__",g="__isRelationship__",s="__isUnboundRelationship__",A="__isPath__",C="__isPathSegment__";function I(t,e){return!0===(t&&t[e])}var a=function(){function t(t,e,n){this.identity=t,this.labels=e,this.properties=n}return t.prototype.toString=function(){for(var t="("+this.identity,e=0;e0){for(t+=" {",e=0;e0&&(t+=","),t+=n[e]+":"+(0,r.stringify)(this.properties[n[e]]);t+="}"}return t+")"},t}();e.Node=a,Object.defineProperty(a.prototype,o,i),e.isNode=function(t){return I(t,o)};var u=function(){function t(t,e,n,r,i){this.identity=t,this.start=e,this.end=n,this.type=r,this.properties=i}return t.prototype.toString=function(){var t="("+this.start+")-[:"+this.type,e=Object.keys(this.properties);if(e.length>0){t+=" {";for(var n=0;n0&&(t+=","),t+=e[n]+":"+(0,r.stringify)(this.properties[e[n]]);t+="}"}return t+"]->("+this.end+")"},t}();e.Relationship=u,Object.defineProperty(u.prototype,g,i),e.isRelationship=function(t){return I(t,g)};var c=function(){function t(t,e,n){this.identity=t,this.type=e,this.properties=n}return t.prototype.bind=function(t,e){return new u(this.identity,t,e,this.type,this.properties)},t.prototype.toString=function(){var t="-[:"+this.type,e=Object.keys(this.properties);if(e.length>0){t+=" {";for(var n=0;n0&&(t+=","),t+=e[n]+":"+(0,r.stringify)(this.properties[e[n]]);t+="}"}return t+"]->"},t}();e.UnboundRelationship=c,Object.defineProperty(c.prototype,s,i),e.isUnboundRelationship=function(t){return I(t,s)};var l=function(t,e,n){this.start=t,this.relationship=e,this.end=n};e.PathSegment=l,Object.defineProperty(l.prototype,C,i),e.isPathSegment=function(t){return I(t,C)};var h=function(t,e,n){this.start=t,this.end=e,this.segments=n,this.length=n.length};e.Path=h,Object.defineProperty(h.prototype,A,i),e.isPath=function(t){return I(t,A)}},758:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},g=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.types=e.Driver=e.Session=e.Transaction=e.Connection=e.ConnectionProvider=e.Result=e.Stats=e.QueryStatistics=e.ProfiledPlan=e.Plan=e.Notification=e.ServerInfo=e.queryType=e.ResultSummary=e.Record=e.isPathSegment=e.PathSegment=e.isPath=e.Path=e.isUnboundRelationship=e.UnboundRelationship=e.isRelationship=e.Relationship=e.isNode=e.Node=e.Time=e.LocalTime=e.LocalDateTime=e.isTime=e.isLocalTime=e.isLocalDateTime=e.isDuration=e.isDateTime=e.isDate=e.Duration=e.DateTime=e.Date=e.Point=e.isPoint=e.internal=e.toString=e.toNumber=e.inSafeRange=e.isInt=e.int=e.Integer=e.error=e.Neo4jError=e.newError=void 0,e.auth=e.json=e.driver=void 0;var s=n(4949);Object.defineProperty(e,"newError",{enumerable:!0,get:function(){return s.newError}}),Object.defineProperty(e,"Neo4jError",{enumerable:!0,get:function(){return s.Neo4jError}});var A=o(n(6720));e.Integer=A.default,Object.defineProperty(e,"int",{enumerable:!0,get:function(){return A.int}}),Object.defineProperty(e,"isInt",{enumerable:!0,get:function(){return A.isInt}}),Object.defineProperty(e,"inSafeRange",{enumerable:!0,get:function(){return A.inSafeRange}}),Object.defineProperty(e,"toNumber",{enumerable:!0,get:function(){return A.toNumber}}),Object.defineProperty(e,"toString",{enumerable:!0,get:function(){return A.toString}});var C=n(8718);Object.defineProperty(e,"Date",{enumerable:!0,get:function(){return C.Date}}),Object.defineProperty(e,"DateTime",{enumerable:!0,get:function(){return C.DateTime}}),Object.defineProperty(e,"Duration",{enumerable:!0,get:function(){return C.Duration}}),Object.defineProperty(e,"isDate",{enumerable:!0,get:function(){return C.isDate}}),Object.defineProperty(e,"isDateTime",{enumerable:!0,get:function(){return C.isDateTime}}),Object.defineProperty(e,"isDuration",{enumerable:!0,get:function(){return C.isDuration}}),Object.defineProperty(e,"isLocalDateTime",{enumerable:!0,get:function(){return C.isLocalDateTime}}),Object.defineProperty(e,"isLocalTime",{enumerable:!0,get:function(){return C.isLocalTime}}),Object.defineProperty(e,"isTime",{enumerable:!0,get:function(){return C.isTime}}),Object.defineProperty(e,"LocalDateTime",{enumerable:!0,get:function(){return C.LocalDateTime}}),Object.defineProperty(e,"LocalTime",{enumerable:!0,get:function(){return C.LocalTime}}),Object.defineProperty(e,"Time",{enumerable:!0,get:function(){return C.Time}});var I=n(8156);Object.defineProperty(e,"Node",{enumerable:!0,get:function(){return I.Node}}),Object.defineProperty(e,"isNode",{enumerable:!0,get:function(){return I.isNode}}),Object.defineProperty(e,"Relationship",{enumerable:!0,get:function(){return I.Relationship}}),Object.defineProperty(e,"isRelationship",{enumerable:!0,get:function(){return I.isRelationship}}),Object.defineProperty(e,"UnboundRelationship",{enumerable:!0,get:function(){return I.UnboundRelationship}}),Object.defineProperty(e,"isUnboundRelationship",{enumerable:!0,get:function(){return I.isUnboundRelationship}}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return I.Path}}),Object.defineProperty(e,"isPath",{enumerable:!0,get:function(){return I.isPath}}),Object.defineProperty(e,"PathSegment",{enumerable:!0,get:function(){return I.PathSegment}}),Object.defineProperty(e,"isPathSegment",{enumerable:!0,get:function(){return I.isPathSegment}});var a=g(n(1104));e.Record=a.default;var u=n(8729);Object.defineProperty(e,"isPoint",{enumerable:!0,get:function(){return u.isPoint}}),Object.defineProperty(e,"Point",{enumerable:!0,get:function(){return u.Point}});var c=o(n(260));e.ResultSummary=c.default,Object.defineProperty(e,"queryType",{enumerable:!0,get:function(){return c.queryType}}),Object.defineProperty(e,"ServerInfo",{enumerable:!0,get:function(){return c.ServerInfo}}),Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return c.Notification}}),Object.defineProperty(e,"Plan",{enumerable:!0,get:function(){return c.Plan}}),Object.defineProperty(e,"ProfiledPlan",{enumerable:!0,get:function(){return c.ProfiledPlan}}),Object.defineProperty(e,"QueryStatistics",{enumerable:!0,get:function(){return c.QueryStatistics}}),Object.defineProperty(e,"Stats",{enumerable:!0,get:function(){return c.Stats}});var l=g(n(9675));e.Result=l.default;var h=g(n(3915));e.ConnectionProvider=h.default;var d=g(n(5287));e.Connection=d.default;var f=g(n(7561));e.Transaction=f.default;var p=g(n(4777));e.Session=p.default;var v=o(n(5278)),y=v;e.Driver=v.default,e.driver=y;var b=g(n(1251));e.auth=b.default;var m=o(n(5833));e.types=m;var w=o(n(2347));e.json=w;var _=o(n(6457));e.internal=_;var x={SERVICE_UNAVAILABLE:s.SERVICE_UNAVAILABLE,SESSION_EXPIRED:s.SESSION_EXPIRED,PROTOCOL_ERROR:s.PROTOCOL_ERROR};e.error=x;var E={newError:s.newError,Neo4jError:s.Neo4jError,error:x,Integer:A.default,int:A.int,isInt:A.isInt,inSafeRange:A.inSafeRange,toNumber:A.toNumber,toString:A.toString,internal:_,isPoint:u.isPoint,Point:u.Point,Date:C.Date,DateTime:C.DateTime,Duration:C.Duration,isDate:C.isDate,isDateTime:C.isDateTime,isDuration:C.isDuration,isLocalDateTime:C.isLocalDateTime,isLocalTime:C.isLocalTime,isTime:C.isTime,LocalDateTime:C.LocalDateTime,LocalTime:C.LocalTime,Time:C.Time,Node:I.Node,isNode:I.isNode,Relationship:I.Relationship,isRelationship:I.isRelationship,UnboundRelationship:I.UnboundRelationship,isUnboundRelationship:I.isUnboundRelationship,Path:I.Path,isPath:I.isPath,PathSegment:I.PathSegment,isPathSegment:I.isPathSegment,Record:a.default,ResultSummary:c.default,queryType:c.queryType,ServerInfo:c.ServerInfo,Notification:c.Notification,Plan:c.Plan,ProfiledPlan:c.ProfiledPlan,QueryStatistics:c.QueryStatistics,Stats:c.Stats,Result:l.default,Transaction:f.default,Session:p.default,Driver:v.default,Connection:d.default,types:m,driver:y,json:w,auth:b.default};e.default=E},6720:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toString=e.toNumber=e.inSafeRange=e.isInt=e.int=void 0;var r=n(4949),i=new Map,o=function(){function t(t,e){this.low=t||0,this.high=e||0}return t.prototype.inSafeRange=function(){return this.greaterThanOrEqual(t.MIN_SAFE_VALUE)&&this.lessThanOrEqual(t.MAX_SAFE_VALUE)},t.prototype.toInt=function(){return this.low},t.prototype.toNumber=function(){return this.high*s+(this.low>>>0)},t.prototype.toBigInt=function(){if(this.isZero())return BigInt(0);if(this.isPositive())return BigInt(this.high>>>0)*BigInt(s)+BigInt(this.low>>>0);var t=this.negate();return BigInt(-1)*(BigInt(t.high>>>0)*BigInt(s)+BigInt(t.low>>>0))},t.prototype.toNumberOrInfinity=function(){return this.lessThan(t.MIN_SAFE_VALUE)?Number.NEGATIVE_INFINITY:this.greaterThan(t.MAX_SAFE_VALUE)?Number.POSITIVE_INFINITY:this.toNumber()},t.prototype.toString=function(e){if((e=e||10)<2||e>36)throw RangeError("radix out of range: "+e);if(this.isZero())return"0";var n;if(this.isNegative()){if(this.equals(t.MIN_VALUE)){var r=t.fromNumber(e),i=this.div(r);return n=i.multiply(r).subtract(this),i.toString(e)+n.toInt().toString(e)}return"-"+this.negate().toString(e)}var o=t.fromNumber(Math.pow(e,6));n=this;for(var g="";;){var s=n.div(o),A=(n.subtract(s.multiply(o)).toInt()>>>0).toString(e);if((n=s).isZero())return A+g;for(;A.length<6;)A="0"+A;g=""+A+g}},t.prototype.getHighBits=function(){return this.high},t.prototype.getLowBits=function(){return this.low},t.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.equals(t.MIN_VALUE)?64:this.negate().getNumBitsAbs();for(var e=0!==this.high?this.high:this.low,n=31;n>0&&0==(e&1<=0},t.prototype.isOdd=function(){return 1==(1&this.low)},t.prototype.isEven=function(){return 0==(1&this.low)},t.prototype.equals=function(e){var n=t.fromValue(e);return this.high===n.high&&this.low===n.low},t.prototype.notEquals=function(t){return!this.equals(t)},t.prototype.lessThan=function(t){return this.compare(t)<0},t.prototype.lessThanOrEqual=function(t){return this.compare(t)<=0},t.prototype.greaterThan=function(t){return this.compare(t)>0},t.prototype.greaterThanOrEqual=function(t){return this.compare(t)>=0},t.prototype.compare=function(e){var n=t.fromValue(e);if(this.equals(n))return 0;var r=this.isNegative(),i=n.isNegative();return r&&!i?-1:!r&&i?1:this.subtract(n).isNegative()?-1:1},t.prototype.negate=function(){return this.equals(t.MIN_VALUE)?t.MIN_VALUE:this.not().add(t.ONE)},t.prototype.add=function(e){var n=t.fromValue(e),r=this.high>>>16,i=65535&this.high,o=this.low>>>16,g=65535&this.low,s=n.high>>>16,A=65535&n.high,C=n.low>>>16,I=0,a=0,u=0,c=0;return u+=(c+=g+(65535&n.low))>>>16,c&=65535,a+=(u+=o+C)>>>16,u&=65535,I+=(a+=i+A)>>>16,a&=65535,I+=r+s,I&=65535,t.fromBits(u<<16|c,I<<16|a)},t.prototype.subtract=function(e){var n=t.fromValue(e);return this.add(n.negate())},t.prototype.multiply=function(e){if(this.isZero())return t.ZERO;var n=t.fromValue(e);if(n.isZero())return t.ZERO;if(this.equals(t.MIN_VALUE))return n.isOdd()?t.MIN_VALUE:t.ZERO;if(n.equals(t.MIN_VALUE))return this.isOdd()?t.MIN_VALUE:t.ZERO;if(this.isNegative())return n.isNegative()?this.negate().multiply(n.negate()):this.negate().multiply(n).negate();if(n.isNegative())return this.multiply(n.negate()).negate();if(this.lessThan(C)&&n.lessThan(C))return t.fromNumber(this.toNumber()*n.toNumber());var r=this.high>>>16,i=65535&this.high,o=this.low>>>16,g=65535&this.low,s=n.high>>>16,A=65535&n.high,I=n.low>>>16,a=65535&n.low,u=0,c=0,l=0,h=0;return l+=(h+=g*a)>>>16,h&=65535,c+=(l+=o*a)>>>16,l&=65535,c+=(l+=g*I)>>>16,l&=65535,u+=(c+=i*a)>>>16,c&=65535,u+=(c+=o*I)>>>16,c&=65535,u+=(c+=g*A)>>>16,c&=65535,u+=r*a+i*I+o*A+g*s,u&=65535,t.fromBits(l<<16|h,u<<16|c)},t.prototype.div=function(e){var n,i,o,g=t.fromValue(e);if(g.isZero())throw(0,r.newError)("division by zero");if(this.isZero())return t.ZERO;if(this.equals(t.MIN_VALUE))return g.equals(t.ONE)||g.equals(t.NEG_ONE)?t.MIN_VALUE:g.equals(t.MIN_VALUE)?t.ONE:(n=this.shiftRight(1).div(g).shiftLeft(1)).equals(t.ZERO)?g.isNegative()?t.ONE:t.NEG_ONE:(i=this.subtract(g.multiply(n)),o=n.add(i.div(g)));if(g.equals(t.MIN_VALUE))return t.ZERO;if(this.isNegative())return g.isNegative()?this.negate().div(g.negate()):this.negate().div(g).negate();if(g.isNegative())return this.div(g.negate()).negate();for(o=t.ZERO,i=this;i.greaterThanOrEqual(g);){n=Math.max(1,Math.floor(i.toNumber()/g.toNumber()));for(var s=Math.ceil(Math.log(n)/Math.LN2),A=s<=48?1:Math.pow(2,s-48),C=t.fromNumber(n),I=C.multiply(g);I.isNegative()||I.greaterThan(i);)n-=A,I=(C=t.fromNumber(n)).multiply(g);C.isZero()&&(C=t.ONE),o=o.add(C),i=i.subtract(I)}return o},t.prototype.modulo=function(e){var n=t.fromValue(e);return this.subtract(this.div(n).multiply(n))},t.prototype.not=function(){return t.fromBits(~this.low,~this.high)},t.prototype.and=function(e){var n=t.fromValue(e);return t.fromBits(this.low&n.low,this.high&n.high)},t.prototype.or=function(e){var n=t.fromValue(e);return t.fromBits(this.low|n.low,this.high|n.high)},t.prototype.xor=function(e){var n=t.fromValue(e);return t.fromBits(this.low^n.low,this.high^n.high)},t.prototype.shiftLeft=function(e){var n=t.toNumber(e);return 0==(n&=63)?t.ZERO:n<32?t.fromBits(this.low<>>32-n):t.fromBits(0,this.low<>>n|this.high<<32-n,this.high>>n):t.fromBits(this.high>>n-32,this.high>=0?0:-1)},t.isInteger=function(t){return!0===(t&&t.__isInteger__)},t.fromInt=function(e){var n,r;return(e|=0)>=-128&&e<128&&(r=i.get(e))?r:(n=new t(e,e<0?-1:0),e>=-128&&e<128&&i.set(e,n),n)},t.fromBits=function(e,n){return new t(e,n)},t.fromNumber=function(e){return isNaN(e)||!isFinite(e)?t.ZERO:e<=-A?t.MIN_VALUE:e+1>=A?t.MAX_VALUE:e<0?t.fromNumber(-e).negate():new t(e%s|0,e/s|0)},t.fromString=function(e,n,i){var o,s=(void 0===i?{}:i).strictStringValidation;if(0===e.length)throw(0,r.newError)("number format error: empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t.ZERO;if((n=n||10)<2||n>36)throw(0,r.newError)("radix out of range: "+n);if((o=e.indexOf("-"))>0)throw(0,r.newError)('number format error: interior "-" character: '+e);if(0===o)return t.fromString(e.substring(1),n).negate();for(var A=t.fromNumber(Math.pow(n,8)),C=t.ZERO,I=0;I{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectivityVerifier=void 0;var r=n(1474),i=n(2206),o=n(4949),g=function(){function t(t){this._connectionProvider=t}return t.prototype.verify=function(t){var e=(void 0===t?{}:t).database,n=void 0===e?"":e;return function(t,e){var n=new r.ConnectionHolder({mode:i.ACCESS_MODE_READ,database:e,connectionProvider:t});return n.initializeConnection(),n.getConnection().then((function(t){if(!t)throw(0,o.newError)("Unexpected error acquiring transaction");return n.close().then((function(){return t.server}))})).catch((function(t){return n.close().catch((function(t){})).then((function(){return Promise.reject(t)}))}))}(this._connectionProvider,n)},t}();e.ConnectivityVerifier=g},2206:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BOLT_PROTOCOL_V4_4=e.BOLT_PROTOCOL_V4_3=e.BOLT_PROTOCOL_V4_2=e.BOLT_PROTOCOL_V4_1=e.BOLT_PROTOCOL_V4_0=e.BOLT_PROTOCOL_V3=e.BOLT_PROTOCOL_V2=e.BOLT_PROTOCOL_V1=e.DEFAULT_POOL_MAX_SIZE=e.DEFAULT_POOL_ACQUISITION_TIMEOUT=e.ACCESS_MODE_WRITE=e.ACCESS_MODE_READ=e.FETCH_ALL=void 0,e.FETCH_ALL=-1,e.DEFAULT_POOL_ACQUISITION_TIMEOUT=6e4,e.DEFAULT_POOL_MAX_SIZE=100,e.ACCESS_MODE_READ="READ",e.ACCESS_MODE_WRITE="WRITE",e.BOLT_PROTOCOL_V1=1,e.BOLT_PROTOCOL_V2=2,e.BOLT_PROTOCOL_V3=3,e.BOLT_PROTOCOL_V4_0=4,e.BOLT_PROTOCOL_V4_1=4.1,e.BOLT_PROTOCOL_V4_2=4.2,e.BOLT_PROTOCOL_V4_3=4.3,e.BOLT_PROTOCOL_V4_4=4.4},6457:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.objectUtil=e.retryStrategy=e.resolver=e.serverAddress=e.urlUtil=e.logger=e.connectivityVerifier=e.transactionExecutor=e.txConfig=e.connectionHolder=e.constants=e.bookmark=e.observer=e.temporalUtil=e.util=void 0;var g=o(n(7400));e.util=g;var s=o(n(3355));e.temporalUtil=s;var A=o(n(2130));e.observer=A;var C=o(n(9763));e.bookmark=C;var I=o(n(2206));e.constants=I;var a=o(n(1474));e.connectionHolder=a;var u=o(n(5838));e.txConfig=u;var c=o(n(1475));e.transactionExecutor=c;var l=o(n(2783));e.connectivityVerifier=l;var h=o(n(1205));e.logger=h;var d=o(n(4434));e.urlUtil=d;var f=o(n(4));e.serverAddress=f;var p=o(n(5447));e.resolver=p;var v=o(n(9297));e.retryStrategy=v;var y=o(n(2775));e.objectUtil=y},1205:function(t,e,n){"use strict";var r,i,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Logger=void 0;var g=n(4949),s="error",A="warn",C="info",I="debug",a=C,u=((i={})[s]=0,i[A]=1,i[C]=2,i[I]=3,i),c=function(){function t(t,e){this._level=t,this._loggerFunction=e}return t.create=function(e){if(e&&e.logging){var n=e.logging,r=function(t){if(t&&t.level){var e=t.level,n=u[e];if(!n&&0!==n)throw(0,g.newError)("Illegal logging level: "+e+". Supported levels are: "+Object.keys(u));return e}return a}(n),i=function(t){if(t&&t.logger){var e=t.logger;if(e&&"function"==typeof e)return e}throw(0,g.newError)("Illegal logger function: "+t.logger)}(n);return new t(r,i)}return this.noOp()},t.noOp=function(){return l},t.prototype.isErrorEnabled=function(){return h(this._level,s)},t.prototype.error=function(t){this.isErrorEnabled()&&this._loggerFunction(s,t)},t.prototype.isWarnEnabled=function(){return h(this._level,A)},t.prototype.warn=function(t){this.isWarnEnabled()&&this._loggerFunction(A,t)},t.prototype.isInfoEnabled=function(){return h(this._level,C)},t.prototype.info=function(t){this.isInfoEnabled()&&this._loggerFunction(C,t)},t.prototype.isDebugEnabled=function(){return h(this._level,I)},t.prototype.debug=function(t){this.isDebugEnabled()&&this._loggerFunction(I,t)},t}();e.Logger=c;var l=new(function(t){function e(){return t.call(this,C,(function(t,e){}))||this}return o(e,t),e.prototype.isErrorEnabled=function(){return!1},e.prototype.error=function(t){},e.prototype.isWarnEnabled=function(){return!1},e.prototype.warn=function(t){},e.prototype.isInfoEnabled=function(){return!1},e.prototype.info=function(t){},e.prototype.isDebugEnabled=function(){return!1},e.prototype.debug=function(t){},e}(c));function h(t,e){return u[t]>=u[e]}},2775:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBrokenObjectReason=e.isBrokenObject=e.createBrokenObject=void 0;var n="__isBrokenObject__",r="__reason__";e.createBrokenObject=function(t,e){void 0===e&&(e={});var i=function(){throw t};return new Proxy(e,{get:function(e,o){return o===n||(o===r?t:void("toJSON"!==o&&i()))},set:i,apply:i,construct:i,defineProperty:i,deleteProperty:i,getOwnPropertyDescriptor:i,getPrototypeOf:i,has:i,isExtensible:i,ownKeys:i,preventExtensions:i,setPrototypeOf:i})},e.isBrokenObject=function(t){return null!==t&&"object"==typeof t&&!0===t[n]},e.getBrokenObjectReason=function(t){return t[r]}},2130:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FailedObserver=e.CompletedObserver=void 0;var n=function(){function t(){}return t.prototype.subscribe=function(t){i(t,t.onKeys,[]),i(t,t.onCompleted,{})},t.prototype.cancel=function(){},t.prototype.prepareToHandleSingleResponse=function(){},t.prototype.markCompleted=function(){},t.prototype.onError=function(t){throw Error("CompletedObserver not supposed to call onError")},t}();e.CompletedObserver=n;var r=function(){function t(t){var e=t.error,n=t.onError;this._error=e,this._beforeError=n,this._observers=[],this.onError(e)}return t.prototype.subscribe=function(t){i(t,t.onError,this._error),this._observers.push(t)},t.prototype.onError=function(t){var e=this;Promise.resolve(i(this,this._beforeError,t)).then((function(){return e._observers.forEach((function(e){return i(e,e.onError,t)}))}))},t.prototype.cancel=function(){},t.prototype.prepareToHandleSingleResponse=function(){},t.prototype.markCompleted=function(){},t}();function i(t,e,n){e&&e.bind(t)(n)}e.FailedObserver=r},7517:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.prototype.resolve=function(){throw new Error("Abstract function")},t.prototype._resolveToItself=function(t){return Promise.resolve([t])},t}();e.default=n},1406:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4);function i(t){return Promise.resolve([t])}var o=function(){function t(t){this._resolverFunction=t||i}return t.prototype.resolve=function(t){var e=this;return new Promise((function(n){return n(e._resolverFunction(t.asHostPort()))})).then((function(t){if(!Array.isArray(t))throw new TypeError("Configured resolver function should either return an array of addresses or a Promise resolved with an array of addresses.Each address is ':'. Got: "+t);return t.map((function(t){return r.ServerAddress.fromUrl(t)}))}))},t}();e.default=o},5447:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ConfiguredCustomResolver=e.BaseHostNameResolver=void 0;var i=r(n(7517));e.BaseHostNameResolver=i.default;var o=r(n(1406));e.ConfiguredCustomResolver=o.default},9297:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.canRetryOn=void 0;var r=n(4949);e.canRetryOn=function(t){return t&&t instanceof r.Neo4jError&&t.code&&(t.code===r.SERVICE_UNAVAILABLE||t.code===r.SESSION_EXPIRED||"Neo.ClientError.Security.AuthorizationExpired"===t.code||(e=t.code).indexOf("TransientError")>=0&&"Neo.TransientError.Transaction.Terminated"!==e&&"Neo.TransientError.Transaction.LockClientStopped"!==e);var e}},4:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.ServerAddress=void 0;var g=n(7400),s=o(n(4434)),A=function(){function t(t,e,n,r){this._host=(0,g.assertString)(t,"host"),this._resolved=e?(0,g.assertString)(e,"resolved"):null,this._port=(0,g.assertNumber)(n,"port"),this._hostPort=r,this._stringValue=e?r+"("+e+")":""+r}return t.prototype.host=function(){return this._host},t.prototype.resolvedHost=function(){return this._resolved?this._resolved:this._host},t.prototype.port=function(){return this._port},t.prototype.resolveWith=function(e){return new t(this._host,e,this._port,this._hostPort)},t.prototype.asHostPort=function(){return this._hostPort},t.prototype.asKey=function(){return this._hostPort},t.prototype.toString=function(){return this._stringValue},t.fromUrl=function(e){var n=s.parseDatabaseUrl(e);return new t(n.host,null,n.port,n.hostAndPort)},t}();e.ServerAddress=A},3355:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.floorMod=e.floorDiv=e.assertValidZoneId=e.assertValidNanosecond=e.assertValidSecond=e.assertValidMinute=e.assertValidHour=e.assertValidDay=e.assertValidMonth=e.assertValidYear=e.timeZoneOffsetInSeconds=e.totalNanoseconds=e.newDate=e.toStandardDate=e.isoStringToStandardDate=e.dateToIsoString=e.timeZoneOffsetToIsoString=e.timeToIsoString=e.durationToIsoString=e.dateToEpochDay=e.localDateTimeToEpochSecond=e.localTimeToNanoOfDay=e.normalizeNanosecondsForDuration=e.normalizeSecondsForDuration=e.SECONDS_PER_DAY=e.DAYS_PER_400_YEAR_CYCLE=e.DAYS_0000_TO_1970=e.NANOS_PER_HOUR=e.NANOS_PER_MINUTE=e.NANOS_PER_MILLISECOND=e.NANOS_PER_SECOND=e.SECONDS_PER_HOUR=e.SECONDS_PER_MINUTE=e.MINUTES_PER_HOUR=e.NANOSECOND_OF_SECOND_RANGE=e.SECOND_OF_MINUTE_RANGE=e.MINUTE_OF_HOUR_RANGE=e.HOUR_OF_DAY_RANGE=e.DAY_OF_MONTH_RANGE=e.MONTH_OF_YEAR_RANGE=e.YEAR_RANGE=void 0;var g=o(n(6720)),s=n(4949),A=n(7400),C=function(){function t(t,e){this._minNumber=t,this._maxNumber=e,this._minInteger=(0,g.int)(t),this._maxInteger=(0,g.int)(e)}return t.prototype.contains=function(t){if((0,g.isInt)(t)&&t instanceof g.default)return t.greaterThanOrEqual(this._minInteger)&&t.lessThanOrEqual(this._maxInteger);if("bigint"==typeof t){var e=(0,g.int)(t);return e.greaterThanOrEqual(this._minInteger)&&e.lessThanOrEqual(this._maxInteger)}return t>=this._minNumber&&t<=this._maxNumber},t.prototype.toString=function(){return"["+this._minNumber+", "+this._maxNumber+"]"},t}();function I(t,n,r){t=(0,g.int)(t),n=(0,g.int)(n),r=(0,g.int)(r);var i=t.multiply(365);return i=(i=(i=t.greaterThanOrEqual(0)?i.add(t.add(3).div(4).subtract(t.add(99).div(100)).add(t.add(399).div(400))):i.subtract(t.div(-4).subtract(t.div(-100)).add(t.div(-400)))).add(n.multiply(367).subtract(362).div(12))).add(r.subtract(1)),n.greaterThan(2)&&(i=i.subtract(1),function(t){return!(!(t=(0,g.int)(t)).modulo(4).equals(0)||t.modulo(100).equals(0)&&!t.modulo(400).equals(0))}(t)||(i=i.subtract(1))),i.subtract(e.DAYS_0000_TO_1970)}function a(t,e,n){if((0,A.assertNumberOrInteger)(t,n),!e.contains(t))throw(0,s.newError)(n+" is expected to be in range "+e+" but was: "+t);return t}function u(t,e){t=(0,g.int)(t),e=(0,g.int)(e);var n=t.div(e);return t.isPositive()!==e.isPositive()&&n.multiply(e).notEquals(t)&&(n=n.subtract(1)),n}function c(t,e){return t=(0,g.int)(t),e=(0,g.int)(e),t.subtract(u(t,e).multiply(e))}function l(t){return(t=(0,g.int)(t)).equals(0)?"":"."+h(t,9)}function h(t,e,n){var r=(t=(0,g.int)(t)).isNegative();r&&(t=t.negate());var i=t.toString();if(e)for(;i.length=t.getUTCSeconds()?t.getSeconds()-t.getUTCSeconds():t.getSeconds()-t.getUTCSeconds()+60,r=t.getTimezoneOffset();return 0===r?0+n:-1*r*e.SECONDS_PER_MINUTE+n},e.assertValidYear=function(t){return a(t,e.YEAR_RANGE,"Year")},e.assertValidMonth=function(t){return a(t,e.MONTH_OF_YEAR_RANGE,"Month")},e.assertValidDay=function(t){return a(t,e.DAY_OF_MONTH_RANGE,"Day")},e.assertValidHour=function(t){return a(t,e.HOUR_OF_DAY_RANGE,"Hour")},e.assertValidMinute=function(t){return a(t,e.MINUTE_OF_HOUR_RANGE,"Minute")},e.assertValidSecond=function(t){return a(t,e.SECOND_OF_MINUTE_RANGE,"Second")},e.assertValidNanosecond=function(t){return a(t,e.NANOSECOND_OF_SECOND_RANGE,"Nanosecond")},e.assertValidZoneId=function(t,e){try{Intl.DateTimeFormat(void 0,{timeZone:e})}catch(n){throw(0,s.newError)(t+' is expected to be a valid ZoneId but was: "'+e+'"')}},e.floorDiv=u,e.floorMod=c},1475:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TransactionExecutor=void 0;var r=n(4949),i=n(9297),o=function(){function t(t,e,n,r){this._maxRetryTimeMs=g(t,3e4),this._initialRetryDelayMs=g(e,1e3),this._multiplier=g(n,2),this._jitterFactor=g(r,.2),this._inFlightTimeoutIds=[],this._verifyAfterConstruction()}return t.prototype.execute=function(t,e){var n=this;return new Promise((function(r,i){n._executeTransactionInsidePromise(t,e,r,i)})).catch((function(r){var i=Date.now(),o=n._initialRetryDelayMs;return n._retryTransactionPromise(t,e,r,i,o)}))},t.prototype.close=function(){this._inFlightTimeoutIds.forEach((function(t){return clearTimeout(t)})),this._inFlightTimeoutIds=[]},t.prototype._retryTransactionPromise=function(t,e,n,r,o){var g=this;return Date.now()-r>this._maxRetryTimeMs||!(0,i.canRetryOn)(n)?Promise.reject(n):new Promise((function(n,r){var i=g._computeDelayWithJitter(o),s=setTimeout((function(){g._inFlightTimeoutIds=g._inFlightTimeoutIds.filter((function(t){return t!==s})),g._executeTransactionInsidePromise(t,e,n,r)}),i);g._inFlightTimeoutIds.push(s)})).catch((function(n){var i=o*g._multiplier;return g._retryTransactionPromise(t,e,n,r,i)}))},t.prototype._executeTransactionInsidePromise=function(t,e,n,r){var i,o=this;try{i=t()}catch(t){return void r(t)}this._safeExecuteTransactionWork(i,e).then((function(t){return o._handleTransactionWorkSuccess(t,i,n,r)})).catch((function(t){return o._handleTransactionWorkFailure(t,i,r)}))},t.prototype._safeExecuteTransactionWork=function(t,e){try{var n=e(t);return Promise.resolve(n)}catch(t){return Promise.reject(t)}},t.prototype._handleTransactionWorkSuccess=function(t,e,n,r){e.isOpen()?e.commit().then((function(){n(t)})).catch((function(t){r(t)})):n(t)},t.prototype._handleTransactionWorkFailure=function(t,e,n){e.isOpen()?e.rollback().catch((function(t){})).then((function(){return n(t)})):n(t)},t.prototype._computeDelayWithJitter=function(t){var e=t*this._jitterFactor,n=t-e,r=t+e;return Math.random()*(r-n)+n},t.prototype._verifyAfterConstruction=function(){if(this._maxRetryTimeMs<0)throw(0,r.newError)("Max retry time should be >= 0: "+this._maxRetryTimeMs);if(this._initialRetryDelayMs<0)throw(0,r.newError)("Initial retry delay should >= 0: "+this._initialRetryDelayMs);if(this._multiplier<1)throw(0,r.newError)("Multiplier should be >= 1.0: "+this._multiplier);if(this._jitterFactor<0||this._jitterFactor>1)throw(0,r.newError)("Jitter factor should be in [0.0, 1.0]: "+this._jitterFactor)},t}();function g(t,e){return t||0===t?t:e}e.TransactionExecutor=o},5838:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.TxConfig=void 0;var g=o(n(7400)),s=n(4949),A=n(6720),C=function(){function t(t){!function(t){t&&g.assertObject(t,"Transaction config")}(t),this.timeout=function(t){if(g.isObject(t)&&(t.timeout||0===t.timeout)){g.assertNumberOrInteger(t.timeout,"Transaction timeout");var e=(0,A.int)(t.timeout);if(e.isZero())throw(0,s.newError)("Transaction timeout should not be zero");if(e.isNegative())throw(0,s.newError)("Transaction timeout should not be negative");return e}return null}(t),this.metadata=function(t){if(g.isObject(t)&&t.metadata){var e=t.metadata;if(g.assertObject(e,"config.metadata"),0!==Object.keys(e).length)return e}return null}(t)}return t.empty=function(){return I},t.prototype.isEmpty=function(){return Object.values(this).every((function(t){return null==t}))},t}();e.TxConfig=C;var I=new C({})},4434:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)g.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return g};Object.defineProperty(e,"__esModule",{value:!0}),e.Url=e.formatIPv6Address=e.formatIPv4Address=e.defaultPortForScheme=e.parseDatabaseUrl=void 0;var o=n(7400),g=function(t,e,n,r,i){this.scheme=t,this.host=e,this.port=n,this.hostAndPort=r,this.query=i};function s(t,e,n){if(!(t=(t||"").trim()))throw new Error("Illegal empty "+e+" in URL query '"+n+"'");return t}function A(t){var e="["===t.charAt(0),n="]"===t.charAt(t.length-1);if(e||n){if(e&&n)return t;throw new Error("Illegal IPv6 address "+t)}return"["+t+"]"}function C(t){return"http"===t?7474:"https"===t?7473:7687}e.Url=g,e.parseDatabaseUrl=function(t){(0,o.assertString)(t,"URL");var e=function(t){return-1===(t=t.trim()).indexOf("://")?{schemeMissing:!0,url:"none://"+t}:{schemeMissing:!1,url:t}}(t),n=function(t){function e(t,e){var n=t.indexOf(e);return n>=0?[t.substring(0,n),t[n],t.substring(n+1)]:[t,"",""]}var n,o={};return":"===(n=e(t,":"))[1]&&(o.scheme=decodeURIComponent(n[0]),t=n[2]),"#"===(n=e(t,"#"))[1]&&(o.fragment=decodeURIComponent(n[2]),t=n[0]),"?"===(n=e(t,"?"))[1]&&(o.query=n[2],t=n[0]),t.startsWith("//")?(n=e(t.substr(2),"/"),(o=r(r({},o),function(t){var n,r,o,g,s={};"@"===(r=t,o="@",g=r.lastIndexOf(o),n=g>=0?[r.substring(0,g),r[g],r.substring(g+1)]:["","",r])[1]&&(s.userInfo=decodeURIComponent(n[0]),t=n[2]);var A=i(function(t,n,r){var i=e(t,n),o=e(i[2],r);return[o[0],o[2]]}(t,"[","]"),2),C=A[0],I=A[1];return""!==C?(s.host=C,n=e(I,":")):(n=e(t,":"),s.host=n[0]),":"===n[1]&&(s.port=n[2]),s}(n[0]))).path=n[1]+n[2]):o.path=t,o}(e.url),I=e.schemeMissing?null:function(t){return t?(":"===(t=t.trim()).charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t):null}(n.scheme),a=function(t,e){if(!t)throw new Error("Unable to extract host from "+void 0);return t.trim()}(n.host),u=function(t){if(!t)throw new Error("Illegal host "+t);return t.indexOf(":")>=0?A(t):t}(a),c=function(t,e){var n="string"==typeof t?parseInt(t,10):t;return 0===n||n?n:C(e)}(n.port,I),l=u+":"+c,h=function(t,e){var n=t?function(t){return(t=(t||"").trim())&&"?"===t.charAt(0)&&(t=t.substring(1,t.length)),t}(t):null,r={};return n&&n.split("&").forEach((function(t){var n=t.split("=");if(2!==n.length)throw new Error("Invalid parameters: '"+n+"' in URL '"+e+"'.");var i=s(n[0],"key",e),o=s(n[1],"value",e);if(r[i])throw new Error("Duplicated query parameters with key '"+i+"' in URL '"+e+"'");r[i]=o})),r}(n.query||function(t){if("string"!=typeof t)return null;var e=i(t.split("?"),2);return e[0],e[1]}(n.resourceName),t);return new g(I,a,c,l,h)},e.formatIPv4Address=function(t,e){return t+":"+e},e.formatIPv6Address=function(t,e){return A(t)+":"+e},e.defaultPortForScheme=C},7400:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ENCRYPTION_OFF=e.ENCRYPTION_ON=e.validateQueryAndParameters=e.assertValidDate=e.assertNumberOrInteger=e.assertNumber=e.assertString=e.assertObject=e.isString=e.isObject=e.isEmptyObjectOrNull=void 0;var r=n(6720),i=n(2347);function o(t){return"object"==typeof t&&!Array.isArray(t)&&null!==t}function g(t,e){if(!s(t))throw new TypeError(e+" expected to be string but was: "+(0,i.stringify)(t));return t}function s(t){return"[object String]"===Object.prototype.toString.call(t)}e.ENCRYPTION_ON="ENCRYPTION_ON",e.ENCRYPTION_OFF="ENCRYPTION_OFF",e.isEmptyObjectOrNull=function(t){if(null===t)return!0;if(!o(t))return!1;for(var e in t)if(Object.prototype.hasOwnProperty.bind(t,e))return!1;return!0},e.isObject=o,e.validateQueryAndParameters=function(t,e,n){var r="",i=e||{},s=(null==n?void 0:n.skipAsserts)||!1;return"string"==typeof t?r=t:t instanceof String?r=t.toString():"object"==typeof t&&t.text&&(r=t.text,i=t.parameters||{}),s||(function(t){if(g(t,"Cypher query"),0===t.trim().length)throw new TypeError("Cypher query is expected to be a non-empty string.")}(r),function(t){if(!o(t)){var e=t.constructor?" "+t.constructor.name:"";throw new TypeError("Query parameters are expected to either be undefined/null or an object, given:"+e+" "+t)}}(i)),{validatedQuery:r,params:i}},e.assertObject=function(t,e){if(!o(t))throw new TypeError(e+" expected to be an object but was: "+(0,i.stringify)(t));return t},e.assertString=g,e.assertNumber=function(t,e){if("number"!=typeof t)throw new TypeError(e+" expected to be a number but was: "+(0,i.stringify)(t));return t},e.assertNumberOrInteger=function(t,e){if("number"!=typeof t&&"bigint"!=typeof t&&!(0,r.isInt)(t))throw new TypeError(e+" expected to be either a number or an Integer object but was: "+(0,i.stringify)(t));return t},e.assertValidDate=function(t,e){if("[object Date]"!==Object.prototype.toString.call(t))throw new TypeError(e+" expected to be a standard JavaScript Date but was: "+(0,i.stringify)(t));if(Number.isNaN(t.getTime()))throw new TypeError(e+" expected to be valid JavaScript Date but its time was NaN: "+(0,i.stringify)(t));return t},e.isString=s},2347:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=void 0;var r=n(2775);e.stringify=function(t){return JSON.stringify(t,(function(t,e){return(0,r.isBrokenObject)(e)?{__isBrokenObject__:!0,__reason__:(0,r.getBrokenObjectReason)(e)}:"bigint"==typeof e?e+"n":e}))}},1104:function(t,e,n){"use strict";var r=this&&this.__generator||function(t,e){var n,r,i,o,g={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,r=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!((i=(i=g.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){g=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),g=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)g.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return g};Object.defineProperty(e,"__esModule",{value:!0});var g=n(4949),s=function(){function t(t,e,n){this.keys=t,this.length=t.length,this._fields=e,this._fieldLookup=n||function(t){var e={};return t.forEach((function(t,n){e[t]=n})),e}(t)}return t.prototype.forEach=function(t){var e,n;try{for(var r=i(this.entries()),g=r.next();!g.done;g=r.next()){var s=o(g.value,2),A=s[0];t(s[1],A,this)}}catch(t){e={error:t}}finally{try{g&&!g.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.map=function(t){var e,n,r=[];try{for(var g=i(this.entries()),s=g.next();!s.done;s=g.next()){var A=o(s.value,2),C=A[0],I=A[1];r.push(t(I,C,this))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=g.return)&&n.call(g)}finally{if(e)throw e.error}}return r},t.prototype.entries=function(){var t;return r(this,(function(e){switch(e.label){case 0:t=0,e.label=1;case 1:return tthis._fields.length-1||e<0)throw(0,g.newError)("This record has no field with index '"+e+"'. Remember that indexes start at `0`, and make sure your query returns records in the shape you meant it to.");return this._fields[e]},t.prototype.has=function(t){return"number"==typeof t?t>=0&&t0||this.pageCacheHits>0||this.pageCacheHitRatio>0},t}();e.ProfiledPlan=C;e.Stats=function(){this.nodesCreated=0,this.nodesDeleted=0,this.relationshipsCreated=0,this.relationshipsDeleted=0,this.propertiesSet=0,this.labelsAdded=0,this.labelsRemoved=0,this.indexesAdded=0,this.indexesRemoved=0,this.constraintsAdded=0,this.constraintsRemoved=0};var I=function(){function t(t){var e=this;this._stats={nodesCreated:0,nodesDeleted:0,relationshipsCreated:0,relationshipsDeleted:0,propertiesSet:0,labelsAdded:0,labelsRemoved:0,indexesAdded:0,indexesRemoved:0,constraintsAdded:0,constraintsRemoved:0},this._systemUpdates=0,Object.keys(t).forEach((function(n){var r=n.replace(/(-\w)/g,(function(t){return t[1].toUpperCase()}));r in e._stats?e._stats[r]=c(t[n]):"systemUpdates"===r?e._systemUpdates=c(t[n]):"containsSystemUpdates"===r?e._containsSystemUpdates=t[n]:"containsUpdates"===r&&(e._containsUpdates=t[n])})),this._stats=Object.freeze(this._stats)}return t.prototype.containsUpdates=function(){var t=this;return void 0!==this._containsUpdates?this._containsUpdates:Object.keys(this._stats).reduce((function(e,n){return e+t._stats[n]}),0)>0},t.prototype.updates=function(){return this._stats},t.prototype.containsSystemUpdates=function(){return void 0!==this._containsSystemUpdates?this._containsSystemUpdates:this._systemUpdates>0},t.prototype.systemUpdates=function(){return this._systemUpdates},t}();e.QueryStatistics=I;var a=function(){function t(e){this.code=e.code,this.title=e.title,this.description=e.description,this.severity=e.severity,this.position=t._constructPosition(e.position)}return t._constructPosition=function(t){return t?{offset:c(t.offset),line:c(t.line),column:c(t.column)}:{}},t}();e.Notification=a;var u=function(t,e){t&&(this.address=t.address,this.version=t.version,this.agent=t.version),this.protocolVersion=e};function c(t){return t instanceof g.default?t.toInt():"bigint"==typeof t?(0,g.int)(t).toInt():t}function l(t,e,n){return void 0===n&&(n=0),t in e?c(e[t]):n}e.ServerInfo=u,e.queryType={READ_ONLY:"r",READ_WRITE:"rw",WRITE_ONLY:"w",SCHEMA_WRITE:"s"},e.default=s},9675:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(260)),o=n(6457),g=o.connectionHolder.EMPTY_CONNECTION_HOLDER,s=function(t){console.log("Uncaught error when processing result: "+t)},A=function(t){},C=function(){function t(t,e,n,r){var i;this._stack=(i=new Error("")).stack?i.stack.replace(/^Error(\n\r)*/,""):null,this._streamObserverPromise=t,this._p=null,this._query=e,this._parameters=n||{},this._connectionHolder=r||g}return t.prototype.keys=function(){var t=this;return new Promise((function(e,n){t._streamObserverPromise.then((function(t){return t.subscribe({onKeys:function(t){return e(t)},onError:function(t){return n(t)}})})).catch(n)}))},t.prototype.summary=function(){var t=this;return new Promise((function(e,n){t._streamObserverPromise.then((function(r){r.cancel(),r.subscribe({onCompleted:function(r){return t._createSummary(r).then(e,n)},onError:function(t){return n(t)}})})).catch(n)}))},t.prototype._getOrCreatePromise=function(){var t=this;return this._p||(this._p=new Promise((function(e,n){var r=[],i={onNext:function(t){r.push(t)},onCompleted:function(t){e({records:r,summary:t})},onError:function(t){n(t)}};t.subscribe(i)}))),this._p},t.prototype.then=function(t,e){return this._getOrCreatePromise().then(t,e)},t.prototype.catch=function(t){return this._getOrCreatePromise().catch(t)},t.prototype.finally=function(t){return this._getOrCreatePromise().finally(t)},t.prototype.subscribe=function(t){var e=this,n=t.onCompleted||A;t.onCompleted=function(r){e._createSummary(r).then((function(e){return n.call(t,e)}))};var r=t.onError||s;t.onError=function(n){e._connectionHolder.releaseConnection().then((function(){!function(t,e){e&&(t.stack=t.toString()+"\n"+e)}(n,e._stack),r.call(t,n)}))},this._streamObserverPromise.then((function(e){return e.subscribe(t)})).catch((function(e){return t.onError(e)}))},t.prototype._cancel=function(){this._streamObserverPromise.then((function(t){return t.cancel()}))},t.prototype._createSummary=function(t){var e=o.util.validateQueryAndParameters(this._query,this._parameters,{skipAsserts:!0}),n=e.validatedQuery,r=e.params,g=this._connectionHolder;return g.getConnection().then((function(t){return g.releaseConnection().then((function(){return t?t.protocol().version:void 0}))}),(function(t){})).then((function(e){return new i.default(n,r,t,e)}))},t}();Symbol.toStringTag,e.default=C},4777:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function g(t){try{A(r.next(t))}catch(t){o(t)}}function s(t){try{A(r.throw(t))}catch(t){o(t)}}function A(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(g,s)}A((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,i,o,g={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,r=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!((i=(i=g.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){g=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isPoint=e.Point=void 0;var r=n(7400),i="__isPoint__",o=function(){function t(t,e,n,i){this.srid=(0,r.assertNumberOrInteger)(t,"SRID"),this.x=(0,r.assertNumber)(e,"X coordinate"),this.y=(0,r.assertNumber)(n,"Y coordinate"),this.z=null==i?i:(0,r.assertNumber)(i,"Z coordinate"),Object.freeze(this)}return t.prototype.toString=function(){return this.z||0===this.z?"Point{srid="+g(this.srid)+", x="+g(this.x)+", y="+g(this.y)+", z="+g(this.z)+"}":"Point{srid="+g(this.srid)+", x="+g(this.x)+", y="+g(this.y)+"}"},t}();function g(t){return Number.isInteger(t)?t+".0":t.toString()}e.Point=o,Object.defineProperty(o.prototype,i,{value:!0,enumerable:!1,configurable:!1,writable:!1}),e.isPoint=function(t){return!0===(t&&t[i])}},8718:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},g=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),g=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)g.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return g};Object.defineProperty(e,"__esModule",{value:!0}),e.isDateTime=e.DateTime=e.isLocalDateTime=e.LocalDateTime=e.isDate=e.Date=e.isTime=e.Time=e.isLocalTime=e.LocalTime=e.isDuration=e.Duration=void 0;var s=o(n(3355)),A=n(7400),C=n(4949),I=o(n(6720)),a={value:!0,enumerable:!1,configurable:!1,writable:!1},u="__isDuration__",c="__isLocalTime__",l="__isTime__",h="__isDate__",d="__isLocalDateTime__",f="__isDateTime__",p=function(){function t(t,e,n,r){this.months=(0,A.assertNumberOrInteger)(t,"Months"),this.days=(0,A.assertNumberOrInteger)(e,"Days"),(0,A.assertNumberOrInteger)(n,"Seconds"),(0,A.assertNumberOrInteger)(r,"Nanoseconds"),this.seconds=s.normalizeSecondsForDuration(n,r),this.nanoseconds=s.normalizeNanosecondsForDuration(r),Object.freeze(this)}return t.prototype.toString=function(){return s.durationToIsoString(this.months,this.days,this.seconds,this.nanoseconds)},t}();e.Duration=p,Object.defineProperty(p.prototype,u,a),e.isDuration=function(t){return _(t,u)};var v=function(){function t(t,e,n,r){this.hour=s.assertValidHour(t),this.minute=s.assertValidMinute(e),this.second=s.assertValidSecond(n),this.nanosecond=s.assertValidNanosecond(r),Object.freeze(this)}return t.fromStandardDate=function(e,n){E(e,n);var r=s.totalNanoseconds(e,n);return new t(e.getHours(),e.getMinutes(),e.getSeconds(),r instanceof I.default?r.toInt():"bigint"==typeof r?(0,I.int)(r).toInt():r)},t.prototype.toString=function(){return s.timeToIsoString(this.hour,this.minute,this.second,this.nanosecond)},t}();e.LocalTime=v,Object.defineProperty(v.prototype,c,a),e.isLocalTime=function(t){return _(t,c)};var y=function(){function t(t,e,n,r,i){this.hour=s.assertValidHour(t),this.minute=s.assertValidMinute(e),this.second=s.assertValidSecond(n),this.nanosecond=s.assertValidNanosecond(r),this.timeZoneOffsetSeconds=(0,A.assertNumberOrInteger)(i,"Time zone offset in seconds"),Object.freeze(this)}return t.fromStandardDate=function(e,n){return E(e,n),new t(e.getHours(),e.getMinutes(),e.getSeconds(),(0,I.toNumber)(s.totalNanoseconds(e,n)),s.timeZoneOffsetInSeconds(e))},t.prototype.toString=function(){return s.timeToIsoString(this.hour,this.minute,this.second,this.nanosecond)+s.timeZoneOffsetToIsoString(this.timeZoneOffsetSeconds)},t}();e.Time=y,Object.defineProperty(y.prototype,l,a),e.isTime=function(t){return _(t,l)};var b=function(){function t(t,e,n){this.year=s.assertValidYear(t),this.month=s.assertValidMonth(e),this.day=s.assertValidDay(n),Object.freeze(this)}return t.fromStandardDate=function(e){return E(e),new t(e.getFullYear(),e.getMonth()+1,e.getDate())},t.prototype.toString=function(){return s.dateToIsoString(this.year,this.month,this.day)},t}();e.Date=b,Object.defineProperty(b.prototype,h,a),e.isDate=function(t){return _(t,h)};var m=function(){function t(t,e,n,r,i,o,g){this.year=s.assertValidYear(t),this.month=s.assertValidMonth(e),this.day=s.assertValidDay(n),this.hour=s.assertValidHour(r),this.minute=s.assertValidMinute(i),this.second=s.assertValidSecond(o),this.nanosecond=s.assertValidNanosecond(g),Object.freeze(this)}return t.fromStandardDate=function(e,n){return E(e,n),new t(e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),(0,I.toNumber)(s.totalNanoseconds(e,n)))},t.prototype.toString=function(){return x(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond)},t}();e.LocalDateTime=m,Object.defineProperty(m.prototype,d,a),e.isLocalDateTime=function(t){return _(t,d)};var w=function(){function t(t,e,n,r,i,o,I,a,u){this.year=s.assertValidYear(t),this.month=s.assertValidMonth(e),this.day=s.assertValidDay(n),this.hour=s.assertValidHour(r),this.minute=s.assertValidMinute(i),this.second=s.assertValidSecond(o),this.nanosecond=s.assertValidNanosecond(I);var c=g(function(t,e){var n=t||0===t,r=e&&""!==e;if(!n&&!r)throw(0,C.newError)("Unable to create DateTime without either time zone offset or id. Please specify either of them. Given offset: "+t+" and id: "+e);var i=[void 0,void 0];return n&&((0,A.assertNumberOrInteger)(t,"Time zone offset in seconds"),i[0]=t),r&&((0,A.assertString)(e,"Time zone ID"),s.assertValidZoneId("Time zone ID",e),i[1]=e),i}(a,u),2),l=c[0],h=c[1];this.timeZoneOffsetSeconds=l,this.timeZoneId=h||void 0,Object.freeze(this)}return t.fromStandardDate=function(e,n){return E(e,n),new t(e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),(0,I.toNumber)(s.totalNanoseconds(e,n)),s.timeZoneOffsetInSeconds(e),null)},t.prototype.toString=function(){return x(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond)+(this.timeZoneId?"["+this.timeZoneId+"]":s.timeZoneOffsetToIsoString(this.timeZoneOffsetSeconds||0))},t}();function _(t,e){return!0===(t&&t[e])}function x(t,e,n,r,i,o,g){return s.dateToIsoString(t,e,n)+"T"+s.timeToIsoString(r,i,o,g)}function E(t,e){(0,A.assertValidDate)(t,"Standard date"),null!=e&&(0,A.assertNumberOrInteger)(e,"Nanosecond")}e.DateTime=w,Object.defineProperty(w.prototype,f,a),e.isDateTime=function(t){return _(t,f)}},7561:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function g(t){try{A(r.next(t))}catch(t){o(t)}}function s(t){try{A(r.throw(t))}catch(t){o(t)}}function A(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(g,s)}A((r=r.apply(t,e||[])).next())}))},i=this&&this.__generator||function(t,e){var n,r,i,o,g={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;g;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return g.label++,{value:o[1],done:!1};case 5:g.label++,r=o[1],o=[0];continue;case 7:o=g.ops.pop(),g.trys.pop();continue;default:if(!((i=(i=g.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){g=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},6083:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.WRITE=e.READ=e.Driver=void 0;var i=r(n(6690)),o=r(n(9728)),g=r(n(1655)),s=r(n(4993)),A=r(n(3808)),C=n(758),I=r(n(5735));var a=C.internal.constants.FETCH_ALL,u=C.driver.READ,c=C.driver.WRITE;e.WRITE=c,e.READ=u;var l=function(t){(0,g.default)(C,t);var e,n,r=(e=C,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=(0,A.default)(e);if(n){var i=(0,A.default)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,s.default)(this,t)});function C(){return(0,i.default)(this,C),r.apply(this,arguments)}return(0,o.default)(C,[{key:"rxSession",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.defaultAccessMode,n=void 0===e?c:e,r=t.bookmarks,i=t.database,o=void 0===i?"":i,g=t.fetchSize,s=t.impersonatedUser;return new I.default({session:this._newSession({defaultAccessMode:n,bookmarkOrBookmarks:r,database:o,impersonatedUser:s,reactive:!0,fetchSize:h(g,this._config.fetchSize)}),config:this._config})}}]),C}(C.Driver);function h(t,e){var n=parseInt(t,10);if(n>0||n===a)return n;if(0===n||n<0)throw new Error("The fetch size can only be a positive value or ".concat(a," for ALL. However fetchSize = ").concat(n));return e}e.Driver=l;var d=l;e.default=d},7499:(t,e,n)=>{"use strict";var r=n(4836);e.ZP=void 0;var i=n(6083),o=r(n(8289)),g=n(758),s=n(297),A=r(n(5735)),C=r(n(9323)),I=r(n(804)),a=g.internal.util,u=a.ENCRYPTION_ON,c=(a.ENCRYPTION_OFF,a.assertString),l=a.isEmptyObjectOrNull,h=g.internal.serverAddress.ServerAddress,d=g.internal.urlUtil;var f="neo4j-javascript/"+o.default,p={console:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){return{level:t,logger:function(t,e){return console.log("".concat(n.g.Date.now()," ").concat(t.toUpperCase()," ").concat(e))}}}))},v={Node:g.Node,Relationship:g.Relationship,UnboundRelationship:g.UnboundRelationship,PathSegment:g.PathSegment,Path:g.Path,Result:g.Result,ResultSummary:g.ResultSummary,Record:g.Record,Point:g.Point,Date:g.Date,DateTime:g.DateTime,Duration:g.Duration,LocalDateTime:g.LocalDateTime,LocalTime:g.LocalTime,Time:g.Time,Integer:g.Integer},y={READ:i.READ,WRITE:i.WRITE},b={toNumber:g.toNumber,toString:g.toString,inSafeRange:g.inSafeRange},m={isPoint:g.isPoint},w={isDuration:g.isDuration,isLocalTime:g.isLocalTime,isTime:g.isTime,isDate:g.isDate,isLocalDateTime:g.isLocalDateTime,isDateTime:g.isDateTime},_={driver:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};c(t,"Bolt URL");var r,o=d.parseDatabaseUrl(t),g=!1,A=!1;switch(o.scheme){case"bolt":break;case"bolt+s":A=!0,r="TRUST_SYSTEM_CA_SIGNED_CERTIFICATES";break;case"bolt+ssc":A=!0,r="TRUST_ALL_CERTIFICATES";break;case"neo4j":g=!0;break;case"neo4j+s":A=!0,r="TRUST_SYSTEM_CA_SIGNED_CERTIFICATES",g=!0;break;case"neo4j+ssc":A=!0,r="TRUST_ALL_CERTIFICATES",g=!0;break;default:throw new Error("Unknown scheme: ".concat(o.scheme))}if(A){if("encrypted"in n||"trust"in n)throw new Error("Encryption/trust can only be configured either through URL or config, not both");n.encrypted=u,n.trust=r}(e=e||{}).scheme=e.scheme||"none",n.userAgent=n.userAgent||f;var C=h.fromUrl(o.hostAndPort),I={address:C,typename:g?"Routing":"Direct",routing:g};return new i.Driver(I,n,function(){if(g)return function(t,n,r,i){return new s.RoutingConnectionProvider({id:t,config:n,log:r,hostNameResolver:i,authToken:e,address:C,userAgent:n.userAgent,routingContext:o.query})};if(!l(o.query))throw new Error("Parameters are not supported with none routed scheme. Given URL: '".concat(t,"'"));return function(t,n,r){return new s.DirectConnectionProvider({id:t,config:n,log:r,authToken:e,address:C,userAgent:n.userAgent})}}())},int:g.int,isInt:g.isInt,isPoint:g.isPoint,isDuration:g.isDuration,isLocalTime:g.isLocalTime,isTime:g.isTime,isDate:g.isDate,isLocalDateTime:g.isLocalDateTime,isDateTime:g.isDateTime,integer:b,Neo4jError:g.Neo4jError,auth:g.auth,logging:p,types:v,session:y,error:g.error,spatial:m,temporal:w,Driver:i.Driver,Session:g.Session,Transaction:g.Transaction,Result:g.Result,RxSession:A.default,RxTransaction:C.default,RxResult:I.default,ResultSummary:g.ResultSummary,Plan:g.Plan,ProfiledPlan:g.ProfiledPlan,QueryStatistics:g.QueryStatistics,Notification:g.Notification,ServerInfo:g.ServerInfo,Record:g.Record,Node:g.Node,Relationship:g.Relationship,UnboundRelationship:g.UnboundRelationship,Path:g.Path,PathSegment:g.PathSegment,Point:g.Point,Integer:g.Integer,Duration:g.Duration,LocalTime:g.LocalTime,Time:g.Time,Date:g.Date,LocalDateTime:g.LocalDateTime,DateTime:g.DateTime};e.ZP=_},2915:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(6690)),o=r(n(9728)),g=n(758),s=n(4143),A=n(1717),C=(g.internal.logger.Logger,g.internal.retryStrategy.canRetryOn),I=g.error.SERVICE_UNAVAILABLE,a=(g.error.SESSION_EXPIRED,function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.maxRetryTimeout,r=void 0===n?3e4:n,o=e.initialDelay,g=void 0===o?1e3:o,s=e.delayMultiplier,A=void 0===s?2:s,C=e.delayJitter,I=void 0===C?.2:C,a=e.logger,c=void 0===a?null:a;(0,i.default)(this,t),this._maxRetryTimeout=u(r,3e4),this._initialDelay=u(g,1e3),this._delayMultiplier=u(A,2),this._delayJitter=u(I,.2),this._logger=c}return(0,o.default)(t,[{key:"retry",value:function(t){var e=this;return t.pipe((0,A.retryWhen)((function(t){var n=[],r=Date.now(),i=1,o=e._initialDelay;return t.pipe((0,A.flatMap)((function(t){if(!C(t))return(0,s.throwError)(t);if(n.push(t),i>=2&&Date.now()-r>=e._maxRetryTimeout){var a=(0,g.newError)("Failed after retried for ".concat(i," times in ").concat(e._maxRetryTimeout," ms. Make sure that your database is online and retry again."),I);return a.seenErrors=n,(0,s.throwError)(a)}var u=e._computeNextDelay(o);return o*=e._delayMultiplier,i++,e._logger&&e._logger.warn("Transaction failed and will be retried in ".concat(u)),(0,s.of)(1).pipe((0,A.delay)(u))})))})))}},{key:"_computeNextDelay",value:function(t){var e=t*this._delayJitter;return t-e+2*e*Math.random()}}]),t}());function u(t,e){return t||0===t?t:e}e.default=a},804:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(6690)),o=r(n(9728)),g=n(758),s=n(4143),A=n(1717),C=function(){function t(e){(0,i.default)(this,t);var n=e.pipe((0,A.publishReplay)(1),(0,A.refCount)());this._result=n,this._keys=n.pipe((0,A.flatMap)((function(t){return(0,s.from)(t.keys())})),(0,A.publishReplay)(1),(0,A.refCount)()),this._records=new s.Subject,this._summary=new s.ReplaySubject,this._state=0}return(0,o.default)(t,[{key:"keys",value:function(){return this._keys}},{key:"records",value:function(){var t=this;return this._result.pipe((0,A.flatMap)((function(e){return new s.Observable((function(n){return t._startStreaming({result:e,recordsObserver:n})}))})))}},{key:"consume",value:function(){var t=this;return this._result.pipe((0,A.flatMap)((function(e){return new s.Observable((function(n){return t._startStreaming({result:e,summaryObserver:n})}))})))}},{key:"_startStreaming",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.result,r=e.recordsObserver,i=void 0===r?null:r,o=e.summaryObserver,s=void 0===o?null:o,A=[];return s&&A.push(this._summary.subscribe(s)),this._state<1?(this._state=1,i&&A.push(this._records.subscribe(i)),A.push({unsubscribe:function(){n._cancel&&n._cancel()}}),0===this._records.observers.length&&n._cancel(),n.subscribe({onNext:function(e){t._records.next(e)},onCompleted:function(e){t._records.complete(),t._summary.next(e),t._summary.complete(),t._state=2},onError:function(e){t._records.error(e),t._summary.error(e),t._state=2}})):i&&i.error((0,g.newError)("Streaming has already started/consumed with a previous records or summary subscription.")),function(){A.forEach((function(t){return t.unsubscribe()}))}}}]),t}();e.default=C},5735:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(6690)),o=r(n(9728)),g=n(4143),s=n(1717),A=r(n(804)),C=n(758),I=r(n(9323)),a=r(n(2915)),u=C.internal.constants,c=u.ACCESS_MODE_READ,l=u.ACCESS_MODE_WRITE,h=C.internal.txConfig.TxConfig,d=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.session,r=e.config;(0,i.default)(this,t),this._session=n,this._retryLogic=function(t){var e=t&&t.maxTransactionRetryTime?t.maxTransactionRetryTime:null;return new a.default({maxRetryTimeout:e})}(r)}return(0,o.default)(t,[{key:"run",value:function(t,e,n){var r=this;return new A.default(new g.Observable((function(i){try{i.next(r._session.run(t,e,n)),i.complete()}catch(t){i.error(t)}return function(){}})))}},{key:"beginTransaction",value:function(t){return this._beginTransaction(this._session._mode,t)}},{key:"readTransaction",value:function(t,e){return this._runTransaction(c,t,e)}},{key:"writeTransaction",value:function(t,e){return this._runTransaction(l,t,e)}},{key:"close",value:function(){var t=this;return new g.Observable((function(e){t._session.close().then((function(){e.complete()})).catch((function(t){return e.error(t)}))}))}},{key:"lastBookmark",value:function(){return this._session.lastBookmark()}},{key:"_beginTransaction",value:function(t,e){var n=this,r=h.empty();return e&&(r=new h(e)),new g.Observable((function(e){try{e.next(new I.default(n._session._beginTransaction(t,r))),e.complete()}catch(t){e.error(t)}return function(){}}))}},{key:"_runTransaction",value:function(t,e,n){return h.empty(),n&&new h(n),this._retryLogic.retry(this._beginTransaction(t,n).pipe((0,s.flatMap)((function(t){return(0,g.defer)((function(){try{return e(t)}catch(t){return(0,g.throwError)(t)}})).pipe((0,s.catchError)((function(e){return t.rollback().pipe((0,s.concat)((0,g.throwError)(e)))})),(0,s.concat)(t.commit()))}))))}}]),t}();e.default=d},9323:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(6690)),o=r(n(9728)),g=n(4143),s=r(n(804)),A=(r(n(758)),function(){function t(e){(0,i.default)(this,t),this._txc=e}return(0,o.default)(t,[{key:"run",value:function(t,e){var n=this;return new s.default(new g.Observable((function(r){try{r.next(n._txc.run(t,e)),r.complete()}catch(t){r.error(t)}return function(){}})))}},{key:"commit",value:function(){var t=this;return new g.Observable((function(e){t._txc.commit().then((function(){e.complete()})).catch((function(t){return e.error(t)}))}))}},{key:"rollback",value:function(){var t=this;return new g.Observable((function(e){t._txc.rollback().then((function(){e.complete()})).catch((function(t){return e.error(t)}))}))}},{key:"close",value:function(){var t=this;return new g.Observable((function(e){t._txc.close().then((function(){e.complete()})).catch((function(t){return e.error(t)}))}))}}]),t}());e.default=A},8289:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default="4.4.10"},4143:(t,e,n)=>{"use strict";n.r(e),n.d(e,{ArgumentOutOfRangeError:()=>S.W,AsyncSubject:()=>I.c,BehaviorSubject:()=>A.X,ConnectableObservable:()=>i.c,EMPTY:()=>Q.E,EmptyError:()=>P.K,GroupedObservable:()=>o.T,NEVER:()=>at,Notification:()=>x.P,NotificationKind:()=>x.W,ObjectUnsubscribedError:()=>N.N,Observable:()=>r.y,ReplaySubject:()=>C.t,Scheduler:()=>m.b,Subject:()=>s.xQ,Subscriber:()=>_.L,Subscription:()=>w.w,TimeoutError:()=>D.W,UnsubscriptionError:()=>R.B,VirtualAction:()=>b,VirtualTimeScheduler:()=>y,animationFrame:()=>v,animationFrameScheduler:()=>p,asap:()=>a.e,asapScheduler:()=>a.E,async:()=>u.P,asyncScheduler:()=>u.z,bindCallback:()=>F,bindNodeCallback:()=>U,combineLatest:()=>Y.aj,concat:()=>H.z,config:()=>Tt.v,defer:()=>K.P,empty:()=>Q.c,forkJoin:()=>J,from:()=>q.D,fromEvent:()=>et,fromEventPattern:()=>rt,generate:()=>it,identity:()=>k.y,iif:()=>gt,interval:()=>At,isObservable:()=>T,merge:()=>It.T,never:()=>ut,noop:()=>O.Z,observable:()=>g.L,of:()=>ct.of,onErrorResumeNext:()=>lt,pairs:()=>ht,partition:()=>yt,pipe:()=>E.z,queue:()=>c.c,queueScheduler:()=>c.N,race:()=>bt.S3,range:()=>mt,scheduled:()=>kt.x,throwError:()=>_t._,timer:()=>xt.H,using:()=>Et,zip:()=>Ot.$R});var r=n(2772),i=n(3140),o=n(1120),g=n(5050),s=n(211),A=n(9233),C=n(2630),I=n(364),a=n(6650),u=n(964),c=n(2546),l=n(655),h=n(6114),d=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return l.ZT(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(h.o),f=n(8399),p=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l.ZT(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++re.index?1:-1:t.delay>e.delay?1:-1},e}(h.o),m=n(8725),w=n(8760),_=n(979),x=n(2632),E=n(2561),O=n(3306),k=n(3608);function T(t){return!!t&&(t instanceof r.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var S=n(6565),P=n(6929),N=n(1016),R=n(8782),D=n(1462),M=n(5709),j=n(3642),B=n(9026),L=n(7507);function F(t,e,n){if(e){if(!(0,L.K)(e))return function(){for(var r=[],i=0;i1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}function nt(t,e,n,r,i){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var g=t;t.addEventListener(e,n,i),o=function(){return g.removeEventListener(e,n,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var s=t;t.on(e,n),o=function(){return s.off(e,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var A=t;t.addListener(e,n),o=function(){return A.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var C=0,I=t.length;C=e){r.complete();break}if(r.next(o++),r.closed)break}}))}function wt(t){var e=t.start,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}var _t=n(4944),xt=n(9604);function Et(t,e){return new r.y((function(n){var r,i;try{r=t()}catch(t){return void n.error(t)}try{i=e(r)}catch(t){return void n.error(t)}var o=(i?(0,q.D)(i):Q.E).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}}))}var Ot=n(5080),kt=n(8107),Tt=n(150)},364:(t,e,n)=>{"use strict";n.d(e,{c:()=>g});var r=n(655),i=n(211),o=n(8760),g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return r.ZT(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.w.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.w.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.xQ)},9233:(t,e,n)=>{"use strict";n.d(e,{X:()=>g});var r=n(655),i=n(211),o=n(1016),g=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.ZT(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.N;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.xQ)},2632:(t,e,n)=>{"use strict";n.d(e,{P:()=>s,W:()=>r});var r,i=n(5631),o=n(8170),g=n(4944);r||(r={});var s=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return(0,o.of)(this.value);case"E":return(0,g._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},2772:(t,e,n)=>{"use strict";n.d(e,{y:()=>I});var r=n(3642),i=n(979),o=n(3142),g=n(2174),s=n(5050),A=n(2561),C=n(150),I=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,s=function(t,e,n){if(t){if(t instanceof i.L)return t;if(t[o.b])return t[o.b]()}return t||e||n?new i.L(t,e,n):new i.L(g.c)}(t,e,n);if(r?s.add(r.call(s,this.source)):s.add(this.source||C.v.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),C.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){C.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),(0,r._)(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=a(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[s.L]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e{"use strict";n.d(e,{c:()=>o});var r=n(150),i=n(1644),o={closed:!0,next:function(t){},error:function(t){if(r.v.useDeprecatedSynchronousErrorHandling)throw t;(0,i.z)(t)},complete:function(){}}},2039:(t,e,n)=>{"use strict";n.d(e,{L:()=>i});var r=n(655),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.ZT(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(979).L)},2630:(t,e,n)=>{"use strict";n.d(e,{t:()=>I});var r=n(655),i=n(211),o=n(2546),g=n(8760),s=n(9276),A=n(1016),C=n(8253),I=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.ZT(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new a(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new A.N;if(this.isStopped||this.hasError?e=g.w.EMPTY:(this.observers.push(t),e=new C.W(this,t)),i&&t.add(t=new s.ht(t,i)),n)for(var I=0;Ie&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.xQ),a=function(){return function(t,e){this.time=t,this.value=e}}()},8725:(t,e,n)=>{"use strict";n.d(e,{b:()=>r});var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}()},211:(t,e,n)=>{"use strict";n.d(e,{Yc:()=>I,xQ:()=>a});var r=n(655),i=n(2772),o=n(979),g=n(8760),s=n(1016),A=n(8253),C=n(3142),I=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.ZT(e,t),e}(o.L),a=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.ZT(e,t),e.prototype[C.b]=function(){return new I(this)},e.prototype.lift=function(t){var e=new u(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s.N;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i{"use strict";n.d(e,{W:()=>i});var r=n(655),i=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.ZT(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n(8760).w)},979:(t,e,n)=>{"use strict";n.d(e,{L:()=>I});var r=n(655),i=n(4156),o=n(2174),g=n(8760),s=n(3142),A=n(150),C=n(1644),I=function(t){function e(n,r,i){var g=t.call(this)||this;switch(g.syncErrorValue=null,g.syncErrorThrown=!1,g.syncErrorThrowable=!1,g.isStopped=!1,arguments.length){case 0:g.destination=o.c;break;case 1:if(!n){g.destination=o.c;break}if("object"==typeof n){n instanceof e?(g.syncErrorThrowable=n.syncErrorThrowable,g.destination=n,n.add(g)):(g.syncErrorThrowable=!0,g.destination=new a(g,n));break}default:g.syncErrorThrowable=!0,g.destination=new a(g,n,r,i)}return g}return r.ZT(e,t),e.prototype[s.b]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(g.w),a=function(t){function e(e,n,r,g){var s,A=t.call(this)||this;A._parentSubscriber=e;var C=A;return(0,i.m)(n)?s=n:n&&(s=n.next,r=n.error,g=n.complete,n!==o.c&&(C=Object.create(n),(0,i.m)(C.unsubscribe)&&A.add(C.unsubscribe.bind(C)),C.unsubscribe=A.unsubscribe.bind(A))),A._context=C,A._next=s,A._error=r,A._complete=g,A}return r.ZT(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;A.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=A.v.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,C.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,C.z)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};A.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),A.v.useDeprecatedSynchronousErrorHandling)throw t;(0,C.z)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!A.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return A.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):((0,C.z)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(I)},8760:(t,e,n)=>{"use strict";n.d(e,{w:()=>s});var r=n(9026),i=n(2009),o=n(4156),g=n(8782),s=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this,s=n._parentOrParents,C=n._ctorUnsubscribe,I=n._unsubscribe,a=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,s instanceof t)s.remove(this);else if(null!==s)for(var u=0;u{"use strict";n.d(e,{v:()=>i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack,r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},7604:(t,e,n)=>{"use strict";n.d(e,{Ds:()=>A,IY:()=>s,ft:()=>C});var r=n(655),i=n(979),o=n(2772),g=n(7843),s=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return r.ZT(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(i.L),A=(i.L,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.ZT(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.L));function C(t,e){if(!e.closed){if(t instanceof o.y)return t.subscribe(e);var n;try{n=(0,g.s)(t)(e)}catch(t){e.error(t)}return n}}i.L},3140:(t,e,n)=>{"use strict";n.d(e,{N:()=>I,c:()=>C});var r=n(655),i=n(211),o=n(2772),g=n(979),s=n(8760),A=n(3018),C=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.ZT(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.w).add(this.source.subscribe(new a(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.w.EMPTY)),t},e.prototype.refCount=function(){return(0,A.x)()(this)},e}(o.y),I=function(){var t=C.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),a=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.ZT(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.Yc);g.L},5142:(t,e,n)=>{"use strict";n.d(e,{Ms:()=>a,aj:()=>I});var r=n(655),i=n(7507),o=n(9026),g=n(2039),s=n(2080),A=n(3375),C={};function I(){for(var t=[],e=0;e{"use strict";n.d(e,{z:()=>o});var r=n(8170),i=n(2257);function o(){for(var t=[],e=0;e{"use strict";n.d(e,{P:()=>g});var r=n(2772),i=n(5760),o=n(5631);function g(t){return new r.y((function(e){var n;try{n=t()}catch(t){return void e.error(t)}return(n?(0,i.D)(n):(0,o.c)()).subscribe(e)}))}},5631:(t,e,n)=>{"use strict";n.d(e,{E:()=>i,c:()=>o});var r=n(2772),i=new r.y((function(t){return t.complete()}));function o(t){return t?function(t){return new r.y((function(e){return t.schedule((function(){return e.complete()}))}))}(t):i}},5760:(t,e,n)=>{"use strict";n.d(e,{D:()=>g});var r=n(2772),i=n(7843),o=n(8107);function g(t,e){return e?(0,o.x)(t,e):t instanceof r.y?t:new r.y((0,i.s)(t))}},3375:(t,e,n)=>{"use strict";n.d(e,{n:()=>g});var r=n(2772),i=n(6900),o=n(3109);function g(t,e){return e?(0,o.r)(t,e):new r.y((0,i.V)(t))}},4370:(t,e,n)=>{"use strict";n.d(e,{T:()=>s});var r=n(2772),i=n(7507),o=n(2556),g=n(3375);function s(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof A&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.y?t[0]:(0,o.J)(n)((0,g.n)(t,s))}},8170:(t,e,n)=>{"use strict";n.d(e,{of:()=>g});var r=n(7507),i=n(3375),o=n(3109);function g(){for(var t=[],e=0;e{"use strict";n.d(e,{S3:()=>A});var r=n(655),i=n(9026),o=n(3375),g=n(2039),s=n(2080);function A(){for(var t=[],e=0;e{"use strict";n.d(e,{_:()=>i});var r=n(2772);function i(t,e){return e?new r.y((function(n){return e.schedule(o,0,{error:t,subscriber:n})})):new r.y((function(e){return e.error(t)}))}function o(t){var e=t.error;t.subscriber.error(e)}},9604:(t,e,n)=>{"use strict";n.d(e,{H:()=>s});var r=n(2772),i=n(964),o=n(5812),g=n(7507);function s(t,e,n){void 0===t&&(t=0);var s=-1;return(0,o.k)(e)?s=Number(e)<1?1:Number(e):(0,g.K)(e)&&(n=e),(0,g.K)(n)||(n=i.P),new r.y((function(e){var r=(0,o.k)(t)?t:+t-n.now();return n.schedule(A,r,{index:0,period:s,subscriber:e})}))}function A(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},5080:(t,e,n)=>{"use strict";n.d(e,{$R:()=>C,mx:()=>I});var r=n(655),i=n(3375),o=n(9026),g=n(979),s=n(999),A=n(7604);function C(){for(var t=[],e=0;ethis.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),l=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r.ZT(e,t),e.prototype[s.hZ]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return(0,A.ft)(this.observable,new A.IY(this))},e}(A.Ds)},2257:(t,e,n)=>{"use strict";n.d(e,{u:()=>i});var r=n(2556);function i(){return(0,r.J)(1)}},6008:(t,e,n)=>{"use strict";n.d(e,{h:()=>o});var r=n(655),i=n(979);function o(t,e){return function(n){return n.lift(new g(t,e))}}var g=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.ZT(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.L)},1120:(t,e,n)=>{"use strict";n.d(e,{T:()=>u,v:()=>A});var r=n(655),i=n(979),o=n(8760),g=n(2772),s=n(211);function A(t,e,n,r){return function(i){return i.lift(new C(t,e,n,r))}}var C=function(){function t(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}return t.prototype.call=function(t,e){return e.subscribe(new I(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),I=function(t){function e(e,n,r,i,o){var g=t.call(this,e)||this;return g.keySelector=n,g.elementSelector=r,g.durationSelector=i,g.subjectSelector=o,g.groups=null,g.attemptedToUnsubscribe=!1,g.count=0,g}return r.ZT(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new s.xQ,n.set(e,i);var o=new u(e,i,this);if(this.destination.next(o),this.durationSelector){var g=void 0;try{g=this.durationSelector(new u(e,i))}catch(t){return void this.error(t)}this.add(g.subscribe(new a(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach((function(e,n){e.error(t)})),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach((function(t,e){t.complete()})),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(i.L),a=function(t){function e(e,n,r){var i=t.call(this,n)||this;return i.key=e,i.group=n,i.parent=r,i}return r.ZT(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(i.L),u=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return r.ZT(e,t),e.prototype._subscribe=function(t){var e=new o.w,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new c(n)),e.add(r.subscribe(t)),e},e}(g.y),c=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return r.ZT(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(o.w)},5709:(t,e,n)=>{"use strict";n.d(e,{U:()=>o});var r=n(655),i=n(979);function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new g(t,e))}}var g=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.ZT(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.L)},2556:(t,e,n)=>{"use strict";n.d(e,{J:()=>o});var r=n(7746),i=n(3608);function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),(0,r.zg)(i.y,t)}},7746:(t,e,n)=>{"use strict";n.d(e,{VS:()=>I,zg:()=>s});var r=n(655),i=n(5709),o=n(5760),g=n(7604);function s(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(s((function(n,r){return(0,o.D)(t(n,r)).pipe((0,i.U)((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new A(t,n))})}var A=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new C(t,this.project,this.concurrent))},t}(),C=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.ZT(e,t),e.prototype._next=function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(g.Ds),I=s},9276:(t,e,n)=>{"use strict";n.d(e,{QV:()=>g,ht:()=>A});var r=n(655),i=n(979),o=n(2632);function g(t,e){return void 0===e&&(e=0),function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new A(t,this.scheduler,this.delay))},t}(),A=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return r.ZT(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new C(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.P.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.P.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(o.P.createComplete()),this.unsubscribe()},e}(i.L),C=function(){return function(t,e){this.notification=t,this.destination=e}}()},3018:(t,e,n)=>{"use strict";n.d(e,{x:()=>o});var r=n(655),i=n(979);function o(){return function(t){return t.lift(new g(t))}}var g=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new s(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.ZT(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(i.L)},3109:(t,e,n)=>{"use strict";n.d(e,{r:()=>o});var r=n(2772),i=n(8760);function o(t,e){return new r.y((function(n){var r=new i.w,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},8107:(t,e,n)=>{"use strict";n.d(e,{x:()=>I});var r=n(2772),i=n(8760),o=n(5050),g=n(3109),s=n(999),A=n(336),C=n(9217);function I(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.L]}(t))return function(t,e){return new r.y((function(n){var r=new i.w;return r.add(e.schedule((function(){var i=t[o.L]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if((0,A.t)(t))return function(t,e){return new r.y((function(n){var r=new i.w;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if((0,C.z)(t))return(0,g.r)(t,e);if(function(t){return t&&"function"==typeof t[s.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.y((function(n){var r,o=new i.w;return o.add((function(){r&&"function"==typeof r.return&&r.return()})),o.add(e.schedule((function(){r=t[s.hZ](),o.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),o}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}},6114:(t,e,n)=>{"use strict";n.d(e,{o:()=>i});var r=n(655),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.ZT(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.ZT(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(8760).w))},8399:(t,e,n)=>{"use strict";n.d(e,{v:()=>o});var r=n(655),i=n(8725),o=function(t){function e(n,r){void 0===r&&(r=i.b.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.ZT(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i.b)},6650:(t,e,n)=>{"use strict";n.d(e,{e:()=>I,E:()=>C});var r=n(655),i=1,o=function(){return Promise.resolve()}(),g={};function s(t){return t in g&&(delete g[t],!0)}var A=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.ZT(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=(A=e.flush.bind(e,null),C=i++,g[C]=!0,o.then((function(){return s(C)&&A()})),C)));var A,C},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(s(n),e.scheduled=void 0)},e}(n(6114).o),C=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.ZT(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r{"use strict";n.d(e,{P:()=>o,z:()=>i});var r=n(6114),i=new(n(8399).v)(r.o),o=i},2546:(t,e,n)=>{"use strict";n.d(e,{c:()=>g,N:()=>o});var r=n(655),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.ZT(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(n(6114).o),o=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.ZT(e,t),e}(n(8399).v))(i),g=o},999:(t,e,n)=>{"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,{hZ:()=>i});var i=r()},5050:(t,e,n)=>{"use strict";n.d(e,{L:()=>r});var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},3142:(t,e,n)=>{"use strict";n.d(e,{b:()=>r});var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},6565:(t,e,n)=>{"use strict";n.d(e,{W:()=>r});var r=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},6929:(t,e,n)=>{"use strict";n.d(e,{K:()=>r});var r=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}()},1016:(t,e,n)=>{"use strict";n.d(e,{N:()=>r});var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},1462:(t,e,n)=>{"use strict";n.d(e,{W:()=>r});var r=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}()},8782:(t,e,n)=>{"use strict";n.d(e,{B:()=>r});var r=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}()},3642:(t,e,n)=>{"use strict";n.d(e,{_:()=>i});var r=n(979);function i(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r.L?i:null}return!0}},1644:(t,e,n)=>{"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,{z:()=>r})},3608:(t,e,n)=>{"use strict";function r(t){return t}n.d(e,{y:()=>r})},9026:(t,e,n)=>{"use strict";n.d(e,{k:()=>r});var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},9217:(t,e,n)=>{"use strict";n.d(e,{z:()=>r});var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},4156:(t,e,n)=>{"use strict";function r(t){return"function"==typeof t}n.d(e,{m:()=>r})},5812:(t,e,n)=>{"use strict";n.d(e,{k:()=>i});var r=n(9026);function i(t){return!(0,r.k)(t)&&t-parseFloat(t)+1>=0}},2009:(t,e,n)=>{"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,{K:()=>r})},336:(t,e,n)=>{"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{t:()=>r})},7507:(t,e,n)=>{"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,{K:()=>r})},3306:(t,e,n)=>{"use strict";function r(){}n.d(e,{Z:()=>r})},8463:(t,e,n)=>{"use strict";function r(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}n.d(e,{f:()=>r})},2561:(t,e,n)=>{"use strict";n.d(e,{U:()=>o,z:()=>i});var r=n(3608);function i(){for(var t=[],e=0;e{"use strict";n.d(e,{s:()=>I});var r=n(6900),i=n(1644),o=n(999),g=n(5050),s=n(9217),A=n(336),C=n(2009),I=function(t){if(t&&"function"==typeof t[g.L])return I=t,function(t){var e=I[g.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,s.z)(t))return(0,r.V)(t);if((0,A.t)(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.z),t};if(t&&"function"==typeof t[o.hZ])return e=t,function(t){for(var n=e[o.hZ]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,I,a=(0,C.K)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+a+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},6900:(t,e,n)=>{"use strict";n.d(e,{V:()=>r});var r=function(t){return function(e){for(var n=0,r=t.length;n{"use strict";n.d(e,{D:()=>s});var r=n(655),i=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.ZT(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n(979).L),o=n(7843),g=n(2772);function s(t,e,n,r,s){if(void 0===s&&(s=new i(t,n,r)),!s.closed)return e instanceof g.y?e.subscribe(s):(0,o.s)(e)(s)}},1717:(t,e,n)=>{"use strict";n.r(e),n.d(e,{audit:()=>o,auditTime:()=>I,buffer:()=>a,bufferCount:()=>h,bufferTime:()=>y,bufferToggle:()=>S,bufferWhen:()=>R,catchError:()=>j,combineAll:()=>z,combineLatest:()=>V,concat:()=>W,concatAll:()=>Y.u,concatMap:()=>K,concatMapTo:()=>Q,count:()=>X,debounce:()=>$,debounceTime:()=>nt,defaultIfEmpty:()=>gt,delay:()=>at,delayWhen:()=>dt,dematerialize:()=>bt,distinct:()=>_t,distinctUntilChanged:()=>Ot,distinctUntilKeyChanged:()=>St,elementAt:()=>Ut,endWith:()=>Gt,every:()=>Wt,exhaust:()=>Kt,exhaustMap:()=>Jt,expand:()=>ee,filter:()=>Nt.h,finalize:()=>ie,find:()=>se,findIndex:()=>Ie,first:()=>ue,flatMap:()=>H.VS,groupBy:()=>ce.v,ignoreElements:()=>le,isEmpty:()=>fe,last:()=>we,map:()=>qt.U,mapTo:()=>_e,materialize:()=>Oe,max:()=>Me,merge:()=>Be,mergeAll:()=>Le.J,mergeMap:()=>H.zg,mergeMapTo:()=>Fe,mergeScan:()=>ze,min:()=>Ve,multicast:()=>We,observeOn:()=>He.QV,onErrorResumeNext:()=>Ke,pairwise:()=>qe,partition:()=>en,pluck:()=>nn,publish:()=>on,publishBehavior:()=>sn,publishLast:()=>Cn,publishReplay:()=>an,race:()=>cn,reduce:()=>De,refCount:()=>En.x,repeat:()=>ln,repeatWhen:()=>fn,retry:()=>yn,retryWhen:()=>wn,sample:()=>On,sampleTime:()=>Sn,scan:()=>Se,sequenceEqual:()=>Dn,share:()=>Fn,shareReplay:()=>zn,single:()=>Zn,skip:()=>Gn,skipLast:()=>Hn,skipUntil:()=>Xn,skipWhile:()=>$n,startWith:()=>nr,subscribeOn:()=>gr,switchAll:()=>ar,switchMap:()=>Ar,switchMapTo:()=>ur,take:()=>Ft,takeLast:()=>ye,takeUntil:()=>cr,takeWhile:()=>dr,tap:()=>br,throttle:()=>xr,throttleTime:()=>kr,throwIfEmpty:()=>Dt,timeInterval:()=>Rr,timeout:()=>zr,timeoutWith:()=>jr,timestamp:()=>Zr,toArray:()=>Gr,window:()=>Wr,windowCount:()=>Kr,windowTime:()=>qr,windowToggle:()=>ii,windowWhen:()=>si,withLatestFrom:()=>Ii,zip:()=>li,zipAll:()=>hi});var r=n(655),i=n(7604);function o(t){return function(e){return e.lift(new g(t))}}var g=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.durationSelector))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.ZT(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(t){return this.destination.error(t)}var n=(0,i.ft)(e,new i.IY(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this,e=t.value,n=t.hasValue,r=t.throttled;r&&(this.remove(r),this.throttled=void 0,r.unsubscribe()),n&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(i.Ds),A=n(964),C=n(9604);function I(t,e){return void 0===e&&(e=A.P),o((function(){return(0,C.H)(t,e)}))}function a(t){return function(e){return e.lift(new u(t))}}var u=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.closingNotifier))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add((0,i.ft)(n,new i.IY(r))),r}return r.ZT(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(i.Ds),l=n(979);function h(t,e){return void 0===e&&(e=null),function(n){return n.lift(new d(t,e))}}var d=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?p:f}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}return r.ZT(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(l.L),p=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r.ZT(e,t),e.prototype._next=function(t){var e=this,n=e.bufferSize,r=e.startBufferEvery,i=e.buffers,o=e.count;this.count++,o%r==0&&i.push([]);for(var g=i.length;g--;){var s=i[g];s.push(t),s.length===n&&(i.splice(g,1),this.destination.next(s))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)},e}(l.L),v=n(7507);function y(t){var e=arguments.length,n=A.P;(0,v.K)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new b(t,r,i,n))}}var b=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new w(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),m=function(){return function(){this.buffer=[]}}(),w=function(t){function e(e,n,r,i,o){var g=t.call(this,e)||this;g.bufferTimeSpan=n,g.bufferCreationInterval=r,g.maxBufferSize=i,g.scheduler=o,g.contexts=[];var s=g.openContext();if(g.timespanOnly=null==r||r<0,g.timespanOnly){var A={subscriber:g,context:s,bufferTimeSpan:n};g.add(s.closeAction=o.schedule(_,n,A))}else{var C={subscriber:g,context:s},I={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:g,scheduler:o};g.add(s.closeAction=o.schedule(E,n,C)),g.add(o.schedule(x,r,I))}return g}return r.ZT(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(_,n,r))}},e.prototype.openContext=function(){var t=new m;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(l.L);function _(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function x(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(E,n,{subscriber:r,context:o})),this.schedule(t,e))}function E(t){var e=t.subscriber,n=t.context;e.closeContext(n)}var O=n(8760),k=n(2080),T=n(2039);function S(t,e){return function(n){return n.lift(new P(t,e))}}var P=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new N(t,this.openings,this.closingSelector))},t}(),N=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.closingSelector=r,i.contexts=[],i.add((0,k.D)(i,n)),i}return r.ZT(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,r=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(r),r.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new O.w,r={buffer:[],subscription:n};e.push(r);var i=(0,k.D)(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},e}(T.L);function R(t){return function(e){return e.lift(new D(t))}}var D=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new M(t,this.closingSelector))},t}(),M=function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.ZT(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{e=(0,this.closingSelector)()}catch(t){return this.error(t)}t=new O.w,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add((0,i.ft)(e,new i.IY(this))),this.subscribing=!1},e}(i.Ds);function j(t){return function(e){var n=new B(t),r=e.lift(n);return n.caught=r}}var B=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new L(t,this.selector,this.caught))},t}(),L=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return r.ZT(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new i.IY(this);this.add(r);var o=(0,i.ft)(n,r);o!==r&&this.add(o)}},e}(i.Ds),F=n(5142);function z(t){return function(e){return e.lift(new F.Ms(t))}}var Z=n(9026),U=n(5760);function V(){for(var t=[],e=0;e0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new lt(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(It.P.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(It.P.createComplete()),this.unsubscribe()},e}(l.L),lt=function(){return function(t,e){this.time=t,this.notification=e}}(),ht=n(2772);function dt(t,e){return e?function(n){return new vt(n,e).lift(new ft(t))}:function(e){return e.lift(new ft(t))}}var ft=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new pt(t,this.delayDurationSelector))},t}(),pt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return r.ZT(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=(0,k.D)(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(T.L),vt=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}return r.ZT(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new yt(t,this.source))},e}(ht.y),yt=function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return r.ZT(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(l.L);function bt(){return function(t){return t.lift(new mt)}}var mt=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new wt(t))},t}(),wt=function(t){function e(e){return t.call(this,e)||this}return r.ZT(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(l.L);function _t(t,e){return function(n){return n.lift(new xt(t,e))}}var xt=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new Et(t,this.keySelector,this.flushes))},t}(),Et=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=n,o.values=new Set,r&&o.add((0,i.ft)(r,new i.IY(o))),o}return r.ZT(e,t),e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(i.Ds);function Ot(t,e){return function(n){return n.lift(new kt(t,e))}}var kt=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Tt(t,this.compare,this.keySelector))},t}(),Tt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.ZT(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(l.L);function St(t,e){return Ot((function(n,r){return e?e(n[t],r[t]):n[t]===r[t]}))}var Pt=n(6565),Nt=n(6008),Rt=n(6929);function Dt(t){return void 0===t&&(t=Bt),function(e){return e.lift(new Mt(t))}}var Mt=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new jt(t,this.errorFactory))},t}(),jt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.errorFactory=n,r.hasValue=!1,r}return r.ZT(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(l.L);function Bt(){return new Rt.K}var Lt=n(5631);function Ft(t){return function(e){return 0===t?(0,Lt.c)():e.lift(new zt(t))}}var zt=function(){function t(t){if(this.total=t,this.total<0)throw new Pt.W}return t.prototype.call=function(t,e){return e.subscribe(new Zt(t,this.total))},t}(),Zt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.ZT(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(l.L);function Ut(t,e){if(t<0)throw new Pt.W;var n=arguments.length>=2;return function(r){return r.pipe((0,Nt.h)((function(e,n){return n===t})),Ft(1),n?gt(e):Dt((function(){return new Pt.W})))}}var Vt=n(8170);function Gt(){for(var t=[],e=0;e0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(i.Ds);function ie(t){return function(e){return e.lift(new oe(t))}}var oe=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new ge(t,this.callback))},t}(),ge=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new O.w(n)),r}return r.ZT(e,t),e}(l.L);function se(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new Ae(t,n,!1,e))}}var Ae=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new Ce(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),Ce=function(t){function e(e,n,r,i,o){var g=t.call(this,e)||this;return g.predicate=n,g.source=r,g.yieldIndex=i,g.thisArg=o,g.index=0,g}return r.ZT(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(l.L);function Ie(t,e){return function(n){return n.lift(new Ae(t,n,!0,e))}}var ae=n(3608);function ue(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?(0,Nt.h)((function(e,n){return t(e,n,r)})):ae.y,Ft(1),n?gt(e):Dt((function(){return new Rt.K})))}}var ce=n(1120);function le(){return function(t){return t.lift(new he)}}var he=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new de(t))},t}(),de=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.ZT(e,t),e.prototype._next=function(t){},e}(l.L);function fe(){return function(t){return t.lift(new pe)}}var pe=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ve(t))},t}(),ve=function(t){function e(e){return t.call(this,e)||this}return r.ZT(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(l.L);function ye(t){return function(e){return 0===t?(0,Lt.c)():e.lift(new be(t))}}var be=function(){function t(t){if(this.total=t,this.total<0)throw new Pt.W}return t.prototype.call=function(t,e){return e.subscribe(new me(t,this.total))},t}(),me=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.ZT(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2;return function(r){return r.pipe(t?(0,Nt.h)((function(e,n){return t(e,n,r)})):ae.y,ye(1),n?gt(e):Dt((function(){return new Rt.K})))}}function _e(t){return function(e){return e.lift(new xe(t))}}var xe=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new Ee(t,this.value))},t}(),Ee=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.ZT(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(l.L);function Oe(){return function(t){return t.lift(new ke)}}var ke=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Te(t))},t}(),Te=function(t){function e(e){return t.call(this,e)||this}return r.ZT(e,t),e.prototype._next=function(t){this.destination.next(It.P.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(It.P.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(It.P.createComplete()),t.complete()},e}(l.L);function Se(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Pe(t,e,n))}}var Pe=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Ne(t,this.accumulator,this.seed,this.hasSeed))},t}(),Ne=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.ZT(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(l.L),Re=n(2561);function De(t,e){return arguments.length>=2?function(n){return(0,Re.z)(Se(t,e),ye(1),gt(e))(n)}:function(e){return(0,Re.z)(Se((function(e,n,r){return t(e,n,r+1)})),ye(1))(e)}}function Me(t){return De("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}var je=n(4370);function Be(){for(var t=[],e=0;e0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(i.Ds);function Ve(t){return De("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(l.L);function fn(t){return function(e){return e.lift(new pn(t))}}var pn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new vn(t,this.notifier,e))},t}(),vn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r.ZT(e,t),e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new rn.xQ;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=(0,i.ft)(e,new i.IY(this))},e}(i.Ds);function yn(t){return void 0===t&&(t=-1),function(e){return e.lift(new bn(t,e))}}var bn=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new mn(t,this.count,this.source))},t}(),mn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.ZT(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(l.L);function wn(t){return function(e){return e.lift(new _n(t,e))}}var _n=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new xn(t,this.notifier,this.source))},t}(),xn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}return r.ZT(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,o=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new rn.xQ;try{r=(0,this.notifier)(n)}catch(e){return t.prototype.error.call(this,e)}o=(0,i.ft)(r,new i.IY(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=o,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(i.Ds),En=n(3018);function On(t){return function(e){return e.lift(new kn(t))}}var kn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Tn(t),r=e.subscribe(n);return r.add((0,i.ft)(this.notifier,new i.IY(n))),r},t}(),Tn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return r.ZT(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(i.Ds);function Sn(t,e){return void 0===e&&(e=A.P),function(n){return n.lift(new Pn(t,e))}}var Pn=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Nn(t,this.period,this.scheduler))},t}(),Nn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(Rn,n,{subscriber:i,period:n})),i}return r.ZT(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(l.L);function Rn(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function Dn(t,e){return function(n){return n.lift(new Mn(t,e))}}var Mn=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new jn(t,this.compareTo,this.comparator))},t}(),jn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new Bn(e,i))),i}return r.ZT(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this,e=t._a,n=t._b,r=t.comparator;e.length>0&&n.length>0;){var i=e.shift(),o=n.shift(),g=!1;try{g=r?r(i,o):i===o}catch(t){this.destination.error(t)}g||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(l.L),Bn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return r.ZT(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(l.L);function Ln(){return new rn.xQ}function Fn(){return function(t){return(0,En.x)()(We(Ln)(t))}}function zn(t,e,n){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,r=t.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=t.windowTime,g=void 0===o?Number.POSITIVE_INFINITY:o,s=t.refCount,A=t.scheduler,C=0,I=!1,a=!1;return function(t){var r;C++,!e||I?(I=!1,e=new In.t(i,g,A),r=e.subscribe(this),n=t.subscribe({next:function(t){e.next(t)},error:function(t){I=!0,e.error(t)},complete:function(){a=!0,n=void 0,e.complete()}}),a&&(n=void 0)):r=e.subscribe(this),this.add((function(){C--,r.unsubscribe(),r=void 0,n&&!a&&s&&0===C&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(r))}}function Zn(t){return function(e){return e.lift(new Un(t,e))}}var Un=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Vn(t,this.predicate,this.source))},t}(),Vn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r.ZT(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new Rt.K)},e}(l.L);function Gn(t){return function(e){return e.lift(new Wn(t))}}var Wn=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new Yn(t,this.total))},t}(),Yn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.ZT(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(l.L);function Hn(t){return function(e){return e.lift(new Kn(t))}}var Kn=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new Pt.W}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new l.L(t)):e.subscribe(new Qn(t,this._skipCount))},t}(),Qn=function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r.ZT(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,g=0;g=0&&s%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var A=new rn.xQ;i.push(A),n.next(A)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(l.L);function qr(t){var e=A.P,n=null,r=Number.POSITIVE_INFINITY;return(0,v.K)(arguments[3])&&(e=arguments[3]),(0,v.K)(arguments[2])?e=arguments[2]:(0,ir.k)(arguments[2])&&(r=Number(arguments[2])),(0,v.K)(arguments[1])?e=arguments[1]:(0,ir.k)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new Jr(t,n,r,e))}}var Jr=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new ti(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),$r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return r.ZT(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(rn.xQ),ti=function(t){function e(e,n,r,i,o){var g=t.call(this,e)||this;g.destination=e,g.windowTimeSpan=n,g.windowCreationInterval=r,g.maxWindowSize=i,g.scheduler=o,g.windows=[];var s=g.openWindow();if(null!==r&&r>=0){var A={subscriber:g,window:s,context:null},C={windowTimeSpan:n,windowCreationInterval:r,subscriber:g,scheduler:o};g.add(o.schedule(ri,n,A)),g.add(o.schedule(ni,r,C))}else{var I={subscriber:g,window:s,windowTimeSpan:n};g.add(o.schedule(ei,n,I))}return g}return r.ZT(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new $r;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(l.L);function ei(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function ni(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),g=this,s={action:g,subscription:null},A={subscriber:n,window:o,context:s};s.subscription=r.schedule(ri,e,A),g.add(s.subscription),g.schedule(t,i)}function ri(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}function ii(t,e){return function(n){return n.lift(new oi(t,e))}}var oi=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new gi(t,this.openings,this.closingSelector))},t}(),gi=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=(0,k.D)(i,n,n)),i}return r.ZT(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(T.L),ci=n(5080);function li(){for(var t=[],e=0;e{var r=n(8764),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function g(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=g),g.prototype=Object.create(i.prototype),o(i,g),g.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},g.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},g.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},g.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},2553:(t,e,n)=>{"use strict";var r=n(9509).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=A,this.end=C,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=I,this.end=a,e=3;break;default:return this.write=u,void(this.end=c)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function g(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function A(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function C(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function I(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function a(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function u(t){return t.toString(this.encoding)}function c(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(i>0&&(t.lastNeed=i-1),i):--r=0?(i>0&&(t.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},655:(t,e,n)=>{"use strict";n.d(e,{ZT:()=>i});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},8309:(t,e,n)=>{t.exports=n(3363)},9022:(t,e,n)=>{t.exports=n(8065)},86:(t,e,n)=>{t.exports=n(6279)},7606:(t,e,n)=>{t.exports=n(1798)},4282:(t,e,n)=>{t.exports=n(2527)},2018:(t,e,n)=>{t.exports=n(6209)},8222:(t,e,n)=>{t.exports=n(3059)},6226:(t,e,n)=>{t.exports=n(7460)},7198:(t,e,n)=>{t.exports=n(7989)},3733:(t,e,n)=>{t.exports=n(2547)},8886:(t,e,n)=>{t.exports=n(2010)},9030:(t,e,n)=>{t.exports=n(3726)},7445:(t,e,n)=>{t.exports=n(3685)},2472:(t,e,n)=>{t.exports=n(6600)},8994:(t,e,n)=>{t.exports=n(9759)},24:(t,e,n)=>{t.exports=n(1384)},6115:t=>{t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},6690:t=>{t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},9728:(t,e,n)=>{var r=n(4062);function i(t,e){for(var n=0;n{function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},1655:(t,e,n)=>{var r=n(6015);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},4836:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},4993:(t,e,n)=>{var r=n(8698).default,i=n(6115);t.exports=function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},6015:t=>{function e(n,r){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},5036:(t,e,n)=>{var r=n(8698).default;t.exports=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},4062:(t,e,n)=>{var r=n(8698).default,i=n(5036);t.exports=function(t){var e=i(t,"string");return"symbol"===r(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},8698:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{EventController:()=>Zj,NEOVIS_ADVANCED_CONFIG:()=>Hj,NEOVIS_DEFAULT_CONFIG:()=>Yj,NeoVis:()=>bB,NeoVisEvents:()=>zj,default:()=>DB,migrateFromOldConfig:()=>RB,objectToTitleHtml:()=>tB,objectToTitleString:()=>eB});var t=n(7445),e=n(2472),i=n(8994);function o(t){return o="function"==typeof e&&"symbol"==typeof i?function(t){return typeof t}:function(t){return t&&"function"==typeof e&&t.constructor===e&&t!==e.prototype?"symbol":typeof t},o(t)}var g=n(24);function s(e,n,r){return(n=function(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var n=t[g];if(void 0!==n){var r=n.call(t,"string");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===o(e)?e:String(e)}(n))in e?t(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function A(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function C(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,A(t,e,"set"),n),n}function I(t,e){return function(t,e){return e.get?e.get.call(t):e.value}(t,A(t,e,"get"))}var a=n(8309),u=n.n(a),c=n(8222),l=n.n(c),h=n(7606),d=n.n(h),f=n(6226),p=n.n(f),v=n(7198),y=n.n(v),b=n(4282),m=n.n(b),w=n(9022),_=n.n(w),x=n(2018),E=n.n(x),O=n(8886),k=n.n(O),T=n(9030),S=n.n(T),P=n(86),N=n.n(P),R=n(7499),D=n(758),M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function j(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var B={},L={get exports(){return B},set exports(t){B=t}},F=function(t){return t&&t.Math==Math&&t},z=F("object"==typeof globalThis&&globalThis)||F("object"==typeof window&&window)||F("object"==typeof self&&self)||F("object"==typeof M&&M)||function(){return this}()||Function("return this")(),Z=function(t){try{return!!t()}catch(t){return!0}},U=!Z((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),V=U,G=Function.prototype,W=G.apply,Y=G.call,H="object"==typeof Reflect&&Reflect.apply||(V?Y.bind(W):function(){return Y.apply(W,arguments)}),K=U,Q=Function.prototype,X=Q.call,q=K&&Q.bind.bind(X,X),J=K?q:function(t){return function(){return X.apply(t,arguments)}},$=J,tt=$({}.toString),et=$("".slice),nt=function(t){return et(tt(t),8,-1)},rt=nt,it=J,ot=function(t){if("Function"===rt(t))return it(t)},gt="object"==typeof document&&document.all,st={all:gt,IS_HTMLDDA:void 0===gt&&void 0!==gt},At=st.all,Ct=st.IS_HTMLDDA?function(t){return"function"==typeof t||t===At}:function(t){return"function"==typeof t},It={},at=!Z((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ut=U,ct=Function.prototype.call,lt=ut?ct.bind(ct):function(){return ct.apply(ct,arguments)},ht={},dt={}.propertyIsEnumerable,ft=Object.getOwnPropertyDescriptor,pt=ft&&!dt.call({1:2},1);ht.f=pt?function(t){var e=ft(this,t);return!!e&&e.enumerable}:dt;var vt,yt,bt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},mt=Z,wt=nt,_t=Object,xt=J("".split),Et=mt((function(){return!_t("z").propertyIsEnumerable(0)}))?function(t){return"String"==wt(t)?xt(t,""):_t(t)}:_t,Ot=function(t){return null==t},kt=Ot,Tt=TypeError,St=function(t){if(kt(t))throw Tt("Can't call method on "+t);return t},Pt=Et,Nt=St,Rt=function(t){return Pt(Nt(t))},Dt=Ct,Mt=st.all,jt=st.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Dt(t)||t===Mt}:function(t){return"object"==typeof t?null!==t:Dt(t)},Bt={},Lt=Bt,Ft=z,zt=Ct,Zt=function(t){return zt(t)?t:void 0},Ut=function(t,e){return arguments.length<2?Zt(Lt[t])||Zt(Ft[t]):Lt[t]&&Lt[t][e]||Ft[t]&&Ft[t][e]},Vt=J({}.isPrototypeOf),Gt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Wt=z,Yt=Gt,Ht=Wt.process,Kt=Wt.Deno,Qt=Ht&&Ht.versions||Kt&&Kt.version,Xt=Qt&&Qt.v8;Xt&&(yt=(vt=Xt.split("."))[0]>0&&vt[0]<4?1:+(vt[0]+vt[1])),!yt&&Yt&&(!(vt=Yt.match(/Edge\/(\d+)/))||vt[1]>=74)&&(vt=Yt.match(/Chrome\/(\d+)/))&&(yt=+vt[1]);var qt=yt,Jt=qt,$t=Z,te=!!Object.getOwnPropertySymbols&&!$t((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Jt&&Jt<41})),ee=te&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ne=Ut,re=Ct,ie=Vt,oe=Object,ge=ee?function(t){return"symbol"==typeof t}:function(t){var e=ne("Symbol");return re(e)&&ie(e.prototype,oe(t))},se=String,Ae=function(t){try{return se(t)}catch(t){return"Object"}},Ce=Ct,Ie=Ae,ae=TypeError,ue=function(t){if(Ce(t))return t;throw ae(Ie(t)+" is not a function")},ce=ue,le=Ot,he=function(t,e){var n=t[e];return le(n)?void 0:ce(n)},de=lt,fe=Ct,pe=jt,ve=TypeError,ye={},be={get exports(){return ye},set exports(t){ye=t}},me=z,we=Object.defineProperty,_e="__core-js_shared__",xe=z[_e]||function(t,e){try{we(me,t,{value:e,configurable:!0,writable:!0})}catch(n){me[t]=e}return e}(_e,{}),Ee=xe;(be.exports=function(t,e){return Ee[t]||(Ee[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Oe=St,ke=Object,Te=function(t){return ke(Oe(t))},Se=Te,Pe=J({}.hasOwnProperty),Ne=Object.hasOwn||function(t,e){return Pe(Se(t),e)},Re=J,De=0,Me=Math.random(),je=Re(1..toString),Be=function(t){return"Symbol("+(void 0===t?"":t)+")_"+je(++De+Me,36)},Le=ye,Fe=Ne,ze=Be,Ze=te,Ue=ee,Ve=z.Symbol,Ge=Le("wks"),We=Ue?Ve.for||Ve:Ve&&Ve.withoutSetter||ze,Ye=function(t){return Fe(Ge,t)||(Ge[t]=Ze&&Fe(Ve,t)?Ve[t]:We("Symbol."+t)),Ge[t]},He=lt,Ke=jt,Qe=ge,Xe=he,qe=TypeError,Je=Ye("toPrimitive"),$e=function(t,e){if(!Ke(t)||Qe(t))return t;var n,r=Xe(t,Je);if(r){if(void 0===e&&(e="default"),n=He(r,t,e),!Ke(n)||Qe(n))return n;throw qe("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&fe(n=t.toString)&&!pe(r=de(n,t)))return r;if(fe(n=t.valueOf)&&!pe(r=de(n,t)))return r;if("string"!==e&&fe(n=t.toString)&&!pe(r=de(n,t)))return r;throw ve("Can't convert object to primitive value")}(t,e)},tn=ge,en=function(t){var e=$e(t,"string");return tn(e)?e:e+""},nn=jt,rn=z.document,on=nn(rn)&&nn(rn.createElement),gn=function(t){return on?rn.createElement(t):{}},sn=gn,An=!at&&!Z((function(){return 7!=Object.defineProperty(sn("div"),"a",{get:function(){return 7}}).a})),Cn=at,In=lt,an=ht,un=bt,cn=Rt,ln=en,hn=Ne,dn=An,fn=Object.getOwnPropertyDescriptor;It.f=Cn?fn:function(t,e){if(t=cn(t),e=ln(e),dn)try{return fn(t,e)}catch(t){}if(hn(t,e))return un(!In(an.f,t,e),t[e])};var pn=Z,vn=Ct,yn=/#|\.prototype\./,bn=function(t,e){var n=wn[mn(t)];return n==xn||n!=_n&&(vn(e)?pn(e):!!e)},mn=bn.normalize=function(t){return String(t).replace(yn,".").toLowerCase()},wn=bn.data={},_n=bn.NATIVE="N",xn=bn.POLYFILL="P",En=bn,On=ue,kn=U,Tn=ot(ot.bind),Sn=function(t,e){return On(t),void 0===e?t:kn?Tn(t,e):function(){return t.apply(e,arguments)}},Pn={},Nn=at&&Z((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Rn=jt,Dn=String,Mn=TypeError,jn=function(t){if(Rn(t))return t;throw Mn(Dn(t)+" is not an object")},Bn=at,Ln=An,Fn=Nn,zn=jn,Zn=en,Un=TypeError,Vn=Object.defineProperty,Gn=Object.getOwnPropertyDescriptor,Wn="enumerable",Yn="configurable",Hn="writable";Pn.f=Bn?Fn?function(t,e,n){if(zn(t),e=Zn(e),zn(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Hn in n&&!n[Hn]){var r=Gn(t,e);r&&r[Hn]&&(t[e]=n.value,n={configurable:Yn in n?n[Yn]:r[Yn],enumerable:Wn in n?n[Wn]:r[Wn],writable:!1})}return Vn(t,e,n)}:Vn:function(t,e,n){if(zn(t),e=Zn(e),zn(n),Ln)try{return Vn(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Un("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Kn=Pn,Qn=bt,Xn=at?function(t,e,n){return Kn.f(t,e,Qn(1,n))}:function(t,e,n){return t[e]=n,t},qn=z,Jn=H,$n=ot,tr=Ct,er=It.f,nr=En,rr=Bt,ir=Sn,or=Xn,gr=Ne,sr=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return Jn(t,this,arguments)};return e.prototype=t.prototype,e},Ar=function(t,e){var n,r,i,o,g,s,A,C,I,a=t.target,u=t.global,c=t.stat,l=t.proto,h=u?qn:c?qn[a]:(qn[a]||{}).prototype,d=u?rr:rr[a]||or(rr,a,{})[a],f=d.prototype;for(o in e)r=!(n=nr(u?o:a+(c?".":"#")+o,t.forced))&&h&&gr(h,o),s=d[o],r&&(A=t.dontCallGetSet?(I=er(h,o))&&I.value:h[o]),g=r&&A?A:e[o],r&&typeof s==typeof g||(C=t.bind&&r?ir(g,qn):t.wrap&&r?sr(g):l&&tr(g)?$n(g):g,(t.sham||g&&g.sham||s&&s.sham)&&or(C,"sham",!0),or(d,o,C),l&&(gr(rr,i=a+"Prototype")||or(rr,i,{}),or(rr[i],o,g),t.real&&f&&(n||!f[o])&&or(f,o,g)))},Cr=Math.ceil,Ir=Math.floor,ar=Math.trunc||function(t){var e=+t;return(e>0?Ir:Cr)(e)},ur=function(t){var e=+t;return e!=e||0===e?0:ar(e)},cr=ur,lr=Math.max,hr=Math.min,dr=function(t,e){var n=cr(t);return n<0?lr(n+e,0):hr(n,e)},fr=ur,pr=Math.min,vr=function(t){return(e=t.length)>0?pr(fr(e),9007199254740991):0;var e},yr=Rt,br=dr,mr=vr,wr=function(t){return function(e,n,r){var i,o=yr(e),g=mr(o),s=br(r,g);if(t&&n!=n){for(;g>s;)if((i=o[s++])!=i)return!0}else for(;g>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},_r={includes:wr(!0),indexOf:wr(!1)},xr={},Er=Ne,Or=Rt,kr=_r.indexOf,Tr=xr,Sr=J([].push),Pr=function(t,e){var n,r=Or(t),i=0,o=[];for(n in r)!Er(Tr,n)&&Er(r,n)&&Sr(o,n);for(;e.length>i;)Er(r,n=e[i++])&&(~kr(o,n)||Sr(o,n));return o},Nr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Rr=Pr,Dr=Nr,Mr=Object.keys||function(t){return Rr(t,Dr)},jr={};jr.f=Object.getOwnPropertySymbols;var Br=at,Lr=J,Fr=lt,zr=Z,Zr=Mr,Ur=jr,Vr=ht,Gr=Te,Wr=Et,Yr=Object.assign,Hr=Object.defineProperty,Kr=Lr([].concat),Qr=!Yr||zr((function(){if(Br&&1!==Yr({b:1},Yr(Hr({},"a",{enumerable:!0,get:function(){Hr(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Yr({},t)[n]||Zr(Yr({},e)).join("")!=r}))?function(t,e){for(var n=Gr(t),r=arguments.length,i=1,o=Ur.f,g=Vr.f;r>i;)for(var s,A=Wr(arguments[i++]),C=o?Kr(Zr(A),o(A)):Zr(A),I=C.length,a=0;I>a;)s=C[a++],Br&&!Fr(g,A,s)||(n[s]=A[s]);return n}:Yr,Xr=Qr;Ar({target:"Object",stat:!0,arity:2,forced:Object.assign!==Xr},{assign:Xr});var qr=Bt.Object.assign;!function(t){t.exports=qr}(L);var Jr=j(B),$r={},ti={get exports(){return $r},set exports(t){$r=t}},ei=J([].slice),ni=J,ri=ue,ii=jt,oi=Ne,gi=ei,si=U,Ai=Function,Ci=ni([].concat),Ii=ni([].join),ai={},ui=si?Ai.bind:function(t){var e=ri(this),n=e.prototype,r=gi(arguments,1),i=function(){var n=Ci(r,gi(arguments));return this instanceof i?function(t,e,n){if(!oi(ai,e)){for(var r=[],i=0;i=.1;)(l=+o[a++%g])>I&&(l=I),c=Math.sqrt(l*l/(1+C*C)),e+=c=s<0?-c:c,n+=C*c,!0===u?t.lineTo(e,n):t.moveTo(e,n),I-=l,u=!u}var Oi={circle:mi,dashedLine:Ei,database:xi,diamond:function(t,e,n,r){t.beginPath(),t.lineTo(e,n+r),t.lineTo(e+r,n),t.lineTo(e,n-r),t.lineTo(e-r,n),t.closePath()},ellipse:_i,ellipse_vis:_i,hexagon:function(t,e,n,r){t.beginPath();var i=2*Math.PI/6;t.moveTo(e+r,n);for(var o=1;o<6;o++)t.lineTo(e+r*Math.cos(i*o),n+r*Math.sin(i*o));t.closePath()},roundRect:wi,square:function(t,e,n,r){t.beginPath(),t.rect(e-r,n-r,2*r,2*r),t.closePath()},star:function(t,e,n,r){t.beginPath(),n+=.1*(r*=.82);for(var i=0;i<10;i++){var o=i%2==0?1.3*r:.5*r;t.lineTo(e+o*Math.sin(2*i*Math.PI/10),n-o*Math.cos(2*i*Math.PI/10))}t.closePath()},triangle:function(t,e,n,r){t.beginPath(),n+=.275*(r*=1.15);var i=2*r,o=i/2,g=Math.sqrt(3)/6*i,s=Math.sqrt(i*i-o*o);t.moveTo(e,n-(s-g)),t.lineTo(e+o,n+g),t.lineTo(e-o,n+g),t.lineTo(e,n-(s-g)),t.closePath()},triangleDown:function(t,e,n,r){t.beginPath(),n-=.275*(r*=1.15);var i=2*r,o=i/2,g=Math.sqrt(3)/6*i,s=Math.sqrt(i*i-o*o);t.moveTo(e,n+(s-g)),t.lineTo(e+o,n-g),t.lineTo(e-o,n-g),t.lineTo(e,n+(s-g)),t.closePath()}};function ki(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}ki(".vis-overlay {\n position: absolute;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n\n /* Must be displayed above for example selected Timeline items */\n z-index: 10;\n}\n\n.vis-active {\n box-shadow: 0 0 10px #86d5f8;\n}\n"),ki('/* override some bootstrap styles screwing up the timelines css */\n\n.vis [class*="span"] {\n min-height: 0;\n width: auto;\n}\n'),ki("div.vis-color-picker {\n position: absolute;\n top: 0px;\n left: 30px;\n margin-top: -140px;\n margin-left: 30px;\n width: 310px;\n height: 444px;\n z-index: 1;\n padding: 10px;\n border-radius: 15px;\n background-color: #ffffff;\n display: none;\n box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 10px 0px;\n}\n\ndiv.vis-color-picker div.vis-arrow {\n position: absolute;\n top: 147px;\n left: 5px;\n}\n\ndiv.vis-color-picker div.vis-arrow::after,\ndiv.vis-color-picker div.vis-arrow::before {\n right: 100%;\n top: 50%;\n border: solid transparent;\n content: \" \";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\ndiv.vis-color-picker div.vis-arrow:after {\n border-color: rgba(255, 255, 255, 0);\n border-right-color: #ffffff;\n border-width: 30px;\n margin-top: -30px;\n}\n\ndiv.vis-color-picker div.vis-color {\n position: absolute;\n width: 289px;\n height: 289px;\n cursor: pointer;\n}\n\ndiv.vis-color-picker div.vis-brightness {\n position: absolute;\n top: 313px;\n}\n\ndiv.vis-color-picker div.vis-opacity {\n position: absolute;\n top: 350px;\n}\n\ndiv.vis-color-picker div.vis-selector {\n position: absolute;\n top: 137px;\n left: 137px;\n width: 15px;\n height: 15px;\n border-radius: 15px;\n border: 1px solid #ffffff;\n background: #4c4c4c; /* Old browsers */\n background: -moz-linear-gradient(\n top,\n #4c4c4c 0%,\n #595959 12%,\n #666666 25%,\n #474747 39%,\n #2c2c2c 50%,\n #000000 51%,\n #111111 60%,\n #2b2b2b 76%,\n #1c1c1c 91%,\n #131313 100%\n ); /* FF3.6+ */\n background: -webkit-gradient(\n linear,\n left top,\n left bottom,\n color-stop(0%, #4c4c4c),\n color-stop(12%, #595959),\n color-stop(25%, #666666),\n color-stop(39%, #474747),\n color-stop(50%, #2c2c2c),\n color-stop(51%, #000000),\n color-stop(60%, #111111),\n color-stop(76%, #2b2b2b),\n color-stop(91%, #1c1c1c),\n color-stop(100%, #131313)\n ); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(\n top,\n #4c4c4c 0%,\n #595959 12%,\n #666666 25%,\n #474747 39%,\n #2c2c2c 50%,\n #000000 51%,\n #111111 60%,\n #2b2b2b 76%,\n #1c1c1c 91%,\n #131313 100%\n ); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(\n top,\n #4c4c4c 0%,\n #595959 12%,\n #666666 25%,\n #474747 39%,\n #2c2c2c 50%,\n #000000 51%,\n #111111 60%,\n #2b2b2b 76%,\n #1c1c1c 91%,\n #131313 100%\n ); /* Opera 11.10+ */\n background: -ms-linear-gradient(\n top,\n #4c4c4c 0%,\n #595959 12%,\n #666666 25%,\n #474747 39%,\n #2c2c2c 50%,\n #000000 51%,\n #111111 60%,\n #2b2b2b 76%,\n #1c1c1c 91%,\n #131313 100%\n ); /* IE10+ */\n background: linear-gradient(\n to bottom,\n #4c4c4c 0%,\n #595959 12%,\n #666666 25%,\n #474747 39%,\n #2c2c2c 50%,\n #000000 51%,\n #111111 60%,\n #2b2b2b 76%,\n #1c1c1c 91%,\n #131313 100%\n ); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#131313',GradientType=0 ); /* IE6-9 */\n}\n\ndiv.vis-color-picker div.vis-new-color {\n position: absolute;\n width: 140px;\n height: 20px;\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-radius: 5px;\n top: 380px;\n left: 159px;\n text-align: right;\n padding-right: 2px;\n font-size: 10px;\n color: rgba(0, 0, 0, 0.4);\n vertical-align: middle;\n line-height: 20px;\n}\n\ndiv.vis-color-picker div.vis-initial-color {\n position: absolute;\n width: 140px;\n height: 20px;\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-radius: 5px;\n top: 380px;\n left: 10px;\n text-align: left;\n padding-left: 2px;\n font-size: 10px;\n color: rgba(0, 0, 0, 0.4);\n vertical-align: middle;\n line-height: 20px;\n}\n\ndiv.vis-color-picker div.vis-label {\n position: absolute;\n width: 300px;\n left: 10px;\n}\n\ndiv.vis-color-picker div.vis-label.vis-brightness {\n top: 300px;\n}\n\ndiv.vis-color-picker div.vis-label.vis-opacity {\n top: 338px;\n}\n\ndiv.vis-color-picker div.vis-button {\n position: absolute;\n width: 68px;\n height: 25px;\n border-radius: 10px;\n vertical-align: middle;\n text-align: center;\n line-height: 25px;\n top: 410px;\n border: 2px solid #d9d9d9;\n background-color: #f7f7f7;\n cursor: pointer;\n}\n\ndiv.vis-color-picker div.vis-button.vis-cancel {\n /*border:2px solid #ff4e33;*/\n /*background-color: #ff7761;*/\n left: 5px;\n}\ndiv.vis-color-picker div.vis-button.vis-load {\n /*border:2px solid #a153e6;*/\n /*background-color: #cb8dff;*/\n left: 82px;\n}\ndiv.vis-color-picker div.vis-button.vis-apply {\n /*border:2px solid #4588e6;*/\n /*background-color: #82b6ff;*/\n left: 159px;\n}\ndiv.vis-color-picker div.vis-button.vis-save {\n /*border:2px solid #45e655;*/\n /*background-color: #6dff7c;*/\n left: 236px;\n}\n\ndiv.vis-color-picker input.vis-range {\n width: 290px;\n height: 20px;\n}\n\n/* TODO: is this redundant?\ndiv.vis-color-picker input.vis-range-brightness {\n width: 289px !important;\n}\n\n\ndiv.vis-color-picker input.vis-saturation-range {\n width: 289px !important;\n}*/\n"),ki("div.vis-configuration {\n position: relative;\n display: block;\n float: left;\n font-size: 12px;\n}\n\ndiv.vis-configuration-wrapper {\n display: block;\n width: 700px;\n}\n\ndiv.vis-configuration-wrapper::after {\n clear: both;\n content: \"\";\n display: block;\n}\n\ndiv.vis-configuration.vis-config-option-container {\n display: block;\n width: 495px;\n background-color: #ffffff;\n border: 2px solid #f7f8fa;\n border-radius: 4px;\n margin-top: 20px;\n left: 10px;\n padding-left: 5px;\n}\n\ndiv.vis-configuration.vis-config-button {\n display: block;\n width: 495px;\n height: 25px;\n vertical-align: middle;\n line-height: 25px;\n background-color: #f7f8fa;\n border: 2px solid #ceced0;\n border-radius: 4px;\n margin-top: 20px;\n left: 10px;\n padding-left: 5px;\n cursor: pointer;\n margin-bottom: 30px;\n}\n\ndiv.vis-configuration.vis-config-button.hover {\n background-color: #4588e6;\n border: 2px solid #214373;\n color: #ffffff;\n}\n\ndiv.vis-configuration.vis-config-item {\n display: block;\n float: left;\n width: 495px;\n height: 25px;\n vertical-align: middle;\n line-height: 25px;\n}\n\ndiv.vis-configuration.vis-config-item.vis-config-s2 {\n left: 10px;\n background-color: #f7f8fa;\n padding-left: 5px;\n border-radius: 3px;\n}\ndiv.vis-configuration.vis-config-item.vis-config-s3 {\n left: 20px;\n background-color: #e4e9f0;\n padding-left: 5px;\n border-radius: 3px;\n}\ndiv.vis-configuration.vis-config-item.vis-config-s4 {\n left: 30px;\n background-color: #cfd8e6;\n padding-left: 5px;\n border-radius: 3px;\n}\n\ndiv.vis-configuration.vis-config-header {\n font-size: 18px;\n font-weight: bold;\n}\n\ndiv.vis-configuration.vis-config-label {\n width: 120px;\n height: 25px;\n line-height: 25px;\n}\n\ndiv.vis-configuration.vis-config-label.vis-config-s3 {\n width: 110px;\n}\ndiv.vis-configuration.vis-config-label.vis-config-s4 {\n width: 100px;\n}\n\ndiv.vis-configuration.vis-config-colorBlock {\n top: 1px;\n width: 30px;\n height: 19px;\n border: 1px solid #444444;\n border-radius: 2px;\n padding: 0px;\n margin: 0px;\n cursor: pointer;\n}\n\ninput.vis-configuration.vis-config-checkbox {\n left: -5px;\n}\n\ninput.vis-configuration.vis-config-rangeinput {\n position: relative;\n top: -5px;\n width: 60px;\n /*height:13px;*/\n padding: 1px;\n margin: 0;\n pointer-events: none;\n}\n\ninput.vis-configuration.vis-config-range {\n /*removes default webkit styles*/\n -webkit-appearance: none;\n\n /*fix for FF unable to apply focus style bug */\n border: 0px solid white;\n background-color: rgba(0, 0, 0, 0);\n\n /*required for proper track sizing in FF*/\n width: 300px;\n height: 20px;\n}\ninput.vis-configuration.vis-config-range::-webkit-slider-runnable-track {\n width: 300px;\n height: 5px;\n background: #dedede; /* Old browsers */\n background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(\n linear,\n left top,\n left bottom,\n color-stop(0%, #dedede),\n color-stop(99%, #c8c8c8)\n ); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(\n top,\n #dedede 0%,\n #c8c8c8 99%\n ); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(\n top,\n #dedede 0%,\n #c8c8c8 99%\n ); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n\n border: 1px solid #999999;\n box-shadow: #aaaaaa 0px 0px 3px 0px;\n border-radius: 3px;\n}\ninput.vis-configuration.vis-config-range::-webkit-slider-thumb {\n -webkit-appearance: none;\n border: 1px solid #14334b;\n height: 17px;\n width: 17px;\n border-radius: 50%;\n background: #3876c2; /* Old browsers */\n background: -moz-linear-gradient(top, #3876c2 0%, #385380 100%); /* FF3.6+ */\n background: -webkit-gradient(\n linear,\n left top,\n left bottom,\n color-stop(0%, #3876c2),\n color-stop(100%, #385380)\n ); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(\n top,\n #3876c2 0%,\n #385380 100%\n ); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(\n top,\n #3876c2 0%,\n #385380 100%\n ); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #3876c2 0%, #385380 100%); /* IE10+ */\n background: linear-gradient(to bottom, #3876c2 0%, #385380 100%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3876c2', endColorstr='#385380',GradientType=0 ); /* IE6-9 */\n box-shadow: #111927 0px 0px 1px 0px;\n margin-top: -7px;\n}\ninput.vis-configuration.vis-config-range:focus {\n outline: none;\n}\ninput.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track {\n background: #9d9d9d; /* Old browsers */\n background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(\n linear,\n left top,\n left bottom,\n color-stop(0%, #9d9d9d),\n color-stop(99%, #c8c8c8)\n ); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(\n top,\n #9d9d9d 0%,\n #c8c8c8 99%\n ); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(\n top,\n #9d9d9d 0%,\n #c8c8c8 99%\n ); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #9d9d9d 0%, #c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9d9d9d', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n}\n\ninput.vis-configuration.vis-config-range::-moz-range-track {\n width: 300px;\n height: 10px;\n background: #dedede; /* Old browsers */\n background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(\n linear,\n left top,\n left bottom,\n color-stop(0%, #dedede),\n color-stop(99%, #c8c8c8)\n ); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(\n top,\n #dedede 0%,\n #c8c8c8 99%\n ); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(\n top,\n #dedede 0%,\n #c8c8c8 99%\n ); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n\n border: 1px solid #999999;\n box-shadow: #aaaaaa 0px 0px 3px 0px;\n border-radius: 3px;\n}\ninput.vis-configuration.vis-config-range::-moz-range-thumb {\n border: none;\n height: 16px;\n width: 16px;\n\n border-radius: 50%;\n background: #385380;\n}\n\n/*hide the outline behind the border*/\ninput.vis-configuration.vis-config-range:-moz-focusring {\n outline: 1px solid white;\n outline-offset: -1px;\n}\n\ninput.vis-configuration.vis-config-range::-ms-track {\n width: 300px;\n height: 5px;\n\n /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */\n background: transparent;\n\n /*leave room for the larger thumb to overflow with a transparent border */\n border-color: transparent;\n border-width: 6px 0;\n\n /*remove default tick marks*/\n color: transparent;\n}\ninput.vis-configuration.vis-config-range::-ms-fill-lower {\n background: #777;\n border-radius: 10px;\n}\ninput.vis-configuration.vis-config-range::-ms-fill-upper {\n background: #ddd;\n border-radius: 10px;\n}\ninput.vis-configuration.vis-config-range::-ms-thumb {\n border: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #385380;\n}\ninput.vis-configuration.vis-config-range:focus::-ms-fill-lower {\n background: #888;\n}\ninput.vis-configuration.vis-config-range:focus::-ms-fill-upper {\n background: #ccc;\n}\n\n.vis-configuration-popup {\n position: absolute;\n background: rgba(57, 76, 89, 0.85);\n border: 2px solid #f2faff;\n line-height: 30px;\n height: 30px;\n width: 150px;\n text-align: center;\n color: #ffffff;\n font-size: 14px;\n border-radius: 4px;\n -webkit-transition: opacity 0.3s ease-in-out;\n -moz-transition: opacity 0.3s ease-in-out;\n transition: opacity 0.3s ease-in-out;\n}\n.vis-configuration-popup:after,\n.vis-configuration-popup:before {\n left: 100%;\n top: 50%;\n border: solid transparent;\n content: \" \";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.vis-configuration-popup:after {\n border-color: rgba(136, 183, 213, 0);\n border-left-color: rgba(57, 76, 89, 0.85);\n border-width: 8px;\n margin-top: -8px;\n}\n.vis-configuration-popup:before {\n border-color: rgba(194, 225, 245, 0);\n border-left-color: #f2faff;\n border-width: 12px;\n margin-top: -12px;\n}\n"),ki("div.vis-tooltip {\n position: absolute;\n visibility: hidden;\n padding: 5px;\n white-space: nowrap;\n\n font-family: verdana;\n font-size: 14px;\n color: #000000;\n background-color: #f5f4ed;\n\n -moz-border-radius: 3px;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n border: 1px solid #808074;\n\n box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);\n pointer-events: none;\n\n z-index: 5;\n}\n");var Ti={};!function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}t.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 n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),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 n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i=s?t?"":void 0:(r=$i(o,g))<55296||r>56319||g+1===s||(i=$i(o,g+1))<56320||i>57343?t?Ji(o,g):r:t?to(o,g,g+2):i-56320+(r-55296<<10)+65536}},no={codeAt:eo(!1),charAt:eo(!0)},ro=Ct,io=z.WeakMap,oo=ro(io)&&/native code/.test(String(io)),go=Be,so=ye("keys"),Ao=function(t){return so[t]||(so[t]=go(t))},Co=oo,Io=z,ao=jt,uo=Xn,co=Ne,lo=xe,ho=Ao,fo=xr,po="Object already initialized",vo=Io.TypeError,yo=Io.WeakMap;if(Co||lo.state){var bo=lo.state||(lo.state=new yo);bo.get=bo.get,bo.has=bo.has,bo.set=bo.set,Di=function(t,e){if(bo.has(t))throw vo(po);return e.facade=t,bo.set(t,e),e},Mi=function(t){return bo.get(t)||{}},ji=function(t){return bo.has(t)}}else{var mo=ho("state");fo[mo]=!0,Di=function(t,e){if(co(t,mo))throw vo(po);return e.facade=t,uo(t,mo,e),e},Mi=function(t){return co(t,mo)?t[mo]:{}},ji=function(t){return co(t,mo)}}var wo={set:Di,get:Mi,has:ji,enforce:function(t){return ji(t)?Mi(t):Di(t,{})},getterFor:function(t){return function(e){var n;if(!ao(e)||(n=Mi(e)).type!==t)throw vo("Incompatible receiver, "+t+" required");return n}}},_o=at,xo=Ne,Eo=Function.prototype,Oo=_o&&Object.getOwnPropertyDescriptor,ko=xo(Eo,"name"),To={EXISTS:ko,PROPER:ko&&"something"===function(){}.name,CONFIGURABLE:ko&&(!_o||_o&&Oo(Eo,"name").configurable)},So={},Po=at,No=Nn,Ro=Pn,Do=jn,Mo=Rt,jo=Mr;So.f=Po&&!No?Object.defineProperties:function(t,e){Do(t);for(var n,r=Mo(e),i=jo(e),o=i.length,g=0;o>g;)Ro.f(t,n=i[g++],r[n]);return t};var Bo,Lo=Ut("document","documentElement"),Fo=jn,zo=So,Zo=Nr,Uo=xr,Vo=Lo,Go=gn,Wo="prototype",Yo="script",Ho=Ao("IE_PROTO"),Ko=function(){},Qo=function(t){return"<"+Yo+">"+t+""},Xo=function(t){t.write(Qo("")),t.close();var e=t.parentWindow.Object;return t=null,e},qo=function(){try{Bo=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;qo="undefined"!=typeof document?document.domain&&Bo?Xo(Bo):(e=Go("iframe"),n="java"+Yo+":",e.style.display="none",Vo.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Qo("document.F=Object")),t.close(),t.F):Xo(Bo);for(var r=Zo.length;r--;)delete qo[Wo][Zo[r]];return qo()};Uo[Ho]=!0;var Jo,$o,tg,eg=Object.create||function(t,e){var n;return null!==t?(Ko[Wo]=Fo(t),n=new Ko,Ko[Wo]=null,n[Ho]=t):n=qo(),void 0===e?n:zo.f(n,e)},ng=!Z((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),rg=Ne,ig=Ct,og=Te,gg=ng,sg=Ao("IE_PROTO"),Ag=Object,Cg=Ag.prototype,Ig=gg?Ag.getPrototypeOf:function(t){var e=og(t);if(rg(e,sg))return e[sg];var n=e.constructor;return ig(n)&&e instanceof n?n.prototype:e instanceof Ag?Cg:null},ag=Xn,ug=function(t,e,n,r){return r&&r.enumerable?t[e]=n:ag(t,e,n),t},cg=Z,lg=Ct,hg=jt,dg=eg,fg=Ig,pg=ug,vg=Ye("iterator"),yg=!1;[].keys&&("next"in(tg=[].keys())?($o=fg(fg(tg)))!==Object.prototype&&(Jo=$o):yg=!0);var bg=!hg(Jo)||cg((function(){var t={};return Jo[vg].call(t)!==t}));lg((Jo=bg?{}:dg(Jo))[vg])||pg(Jo,vg,(function(){return this}));var mg={IteratorPrototype:Jo,BUGGY_SAFARI_ITERATORS:yg},wg=Gi,_g=Bi?{}.toString:function(){return"[object "+wg(this)+"]"},xg=Bi,Eg=Pn.f,Og=Xn,kg=Ne,Tg=_g,Sg=Ye("toStringTag"),Pg=function(t,e,n,r){if(t){var i=n?t:t.prototype;kg(i,Sg)||Eg(i,Sg,{configurable:!0,value:e}),r&&!xg&&Og(i,"toString",Tg)}},Ng={},Rg=mg.IteratorPrototype,Dg=eg,Mg=bt,jg=Pg,Bg=Ng,Lg=function(){return this},Fg=J,zg=ue,Zg=Ct,Ug=String,Vg=TypeError,Gg=jn,Wg=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=function(t,e,n){try{return Fg(zg(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Gg(n),function(t){if("object"==typeof t||Zg(t))return t;throw Vg("Can't set "+Ug(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Yg=Ar,Hg=lt,Kg=Ig,Qg=Pg,Xg=ug,qg=Ng,Jg=To.PROPER,$g=mg.BUGGY_SAFARI_ITERATORS,ts=Ye("iterator"),es="keys",ns="values",rs="entries",is=function(){return this},os=function(t,e,n,r,i,o,g){!function(t,e,n,r){var i=e+" Iterator";t.prototype=Dg(Rg,{next:Mg(+!r,n)}),jg(t,i,!1,!0),Bg[i]=Lg}(n,e,r);var s,A,C,I=function(t){if(t===i&&h)return h;if(!$g&&t in c)return c[t];switch(t){case es:case ns:case rs:return function(){return new n(this,t)}}return function(){return new n(this)}},a=e+" Iterator",u=!1,c=t.prototype,l=c[ts]||c["@@iterator"]||i&&c[i],h=!$g&&l||I(i),d="Array"==e&&c.entries||l;if(d&&(s=Kg(d.call(new t)))!==Object.prototype&&s.next&&(Qg(s,a,!0,!0),qg[a]=is),Jg&&i==ns&&l&&l.name!==ns&&(u=!0,h=function(){return Hg(l,this)}),i)if(A={values:I(ns),keys:o?h:I(es),entries:I(rs)},g)for(C in A)($g||u||!(C in c))&&Xg(c,C,A[C]);else Yg({target:e,proto:!0,forced:$g||u},A);return g&&c[ts]!==h&&Xg(c,ts,h,{name:i}),qg[e]=h,A},gs=function(t,e){return{value:t,done:e}},ss=no.charAt,As=Hi,Cs=wo,Is=os,as=gs,us="String Iterator",cs=Cs.set,ls=Cs.getterFor(us);Is(String,"String",(function(t){cs(this,{type:us,string:As(t),index:0})}),(function(){var t,e=ls(this),n=e.string,r=e.index;return r>=n.length?as(void 0,!0):(t=ss(n,r),e.index+=t.length,as(t,!1))}));var hs=lt,ds=jn,fs=he,ps=function(t,e,n){var r,i;ds(t);try{if(!(r=fs(t,"return"))){if("throw"===e)throw n;return n}r=hs(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return ds(r),n},vs=jn,ys=ps,bs=Ng,ms=Ye("iterator"),ws=Array.prototype,_s=function(t){return void 0!==t&&(bs.Array===t||ws[ms]===t)},xs=Ct,Es=xe,Os=J(Function.toString);xs(Es.inspectSource)||(Es.inspectSource=function(t){return Os(t)});var ks=Es.inspectSource,Ts=J,Ss=Z,Ps=Ct,Ns=Gi,Rs=ks,Ds=function(){},Ms=[],js=Ut("Reflect","construct"),Bs=/^\s*(?:class|function)\b/,Ls=Ts(Bs.exec),Fs=!Bs.exec(Ds),zs=function(t){if(!Ps(t))return!1;try{return js(Ds,Ms,t),!0}catch(t){return!1}},Zs=function(t){if(!Ps(t))return!1;switch(Ns(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Fs||!!Ls(Bs,Rs(t))}catch(t){return!0}};Zs.sham=!0;var Us=!js||Ss((function(){var t;return zs(zs.call)||!zs(Object)||!zs((function(){t=!0}))||t}))?Zs:zs,Vs=en,Gs=Pn,Ws=bt,Ys=function(t,e,n){var r=Vs(e);r in t?Gs.f(t,r,Ws(0,n)):t[r]=n},Hs=Gi,Ks=he,Qs=Ot,Xs=Ng,qs=Ye("iterator"),Js=function(t){if(!Qs(t))return Ks(t,qs)||Ks(t,"@@iterator")||Xs[Hs(t)]},$s=lt,tA=ue,eA=jn,nA=Ae,rA=Js,iA=TypeError,oA=function(t,e){var n=arguments.length<2?rA(t):e;if(tA(n))return eA($s(n,t));throw iA(nA(t)+" is not iterable")},gA=Sn,sA=lt,AA=Te,CA=function(t,e,n,r){try{return r?e(vs(n)[0],n[1]):e(n)}catch(e){ys(t,"throw",e)}},IA=_s,aA=Us,uA=vr,cA=Ys,lA=oA,hA=Js,dA=Array,fA=Ye("iterator"),pA=!1;try{var vA=0,yA={next:function(){return{done:!!vA++}},return:function(){pA=!0}};yA[fA]=function(){return this},Array.from(yA,(function(){throw 2}))}catch(t){}var bA=function(t,e){if(!e&&!pA)return!1;var n=!1;try{var r={};r[fA]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n};Ar({target:"Array",stat:!0,forced:!bA((function(t){Array.from(t)}))},{from:function(t){var e=AA(t),n=aA(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=gA(i,r>2?arguments[2]:void 0));var g,s,A,C,I,a,u=hA(e),c=0;if(!u||this===dA&&IA(u))for(g=uA(e),s=n?new this(g):dA(g);g>c;c++)a=o?i(e[c],c):e[c],cA(s,c,a);else for(I=(C=lA(e,u)).next,s=n?new this:[];!(A=sA(I,C)).done;c++)a=o?CA(C,i,[A.value,c],!0):A.value,cA(s,c,a);return s.length=c,s}});var mA=Bt.Array.from;!function(t){t.exports=mA}(Ni);var wA=j(Pi),_A={},xA={get exports(){return _A},set exports(t){_A=t}},EA={},OA={get exports(){return EA},set exports(t){EA=t}},kA=Rt,TA=Ng,SA=wo;Pn.f;var PA=os,NA=gs,RA="Array Iterator",DA=SA.set,MA=SA.getterFor(RA);PA(Array,"Array",(function(t,e){DA(this,{type:RA,target:kA(t),index:0,kind:e})}),(function(){var t=MA(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,NA(void 0,!0)):NA("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),TA.Arguments=TA.Array;var jA=Js,BA=z,LA=Gi,FA=Xn,zA=Ng,ZA=Ye("toStringTag");for(var UA 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 VA=BA[UA],GA=VA&&VA.prototype;GA&&LA(GA)!==ZA&&FA(GA,ZA,UA),zA[UA]=zA.Array}var WA=jA;!function(t){t.exports=WA}(OA),function(t){t.exports=EA}(xA);var YA=j(_A),HA={},KA={get exports(){return HA},set exports(t){HA=t}},QA={},XA=Pr,qA=Nr.concat("length","prototype");QA.f=Object.getOwnPropertyNames||function(t){return XA(t,qA)};var JA={},$A=dr,tC=vr,eC=Ys,nC=Array,rC=Math.max,iC=function(t,e,n){for(var r=tC(t),i=$A(e,r),o=$A(void 0===n?r:n,r),g=nC(rC(o-i,0)),s=0;ip;p++)if((s||p in h)&&(c=d(u=h[p],p,l),t))if(e)y[p]=c;else if(c)switch(t){case 3:return!0;case 5:return u;case 6:return p;case 2:BC(y,u)}else switch(t){case 4:return!1;case 7:BC(y,u)}return o?-1:r||i?i:y}},FC={forEach:LC(0),map:LC(1),filter:LC(2),some:LC(3),every:LC(4),find:LC(5),findIndex:LC(6),filterReject:LC(7)},zC=Ar,ZC=z,UC=lt,VC=J,GC=at,WC=te,YC=Z,HC=Ne,KC=Vt,QC=jn,XC=Rt,qC=en,JC=Hi,$C=bt,tI=eg,eI=Mr,nI=QA,rI=JA,iI=jr,oI=It,gI=Pn,sI=So,AI=ht,CI=ug,II=aC,aI=ye,uI=xr,cI=Be,lI=Ye,hI=uC,dI=pC,fI=wC,pI=Pg,vI=wo,yI=FC.forEach,bI=Ao("hidden"),mI="Symbol",wI="prototype",_I=vI.set,xI=vI.getterFor(mI),EI=Object[wI],OI=ZC.Symbol,kI=OI&&OI[wI],TI=ZC.TypeError,SI=ZC.QObject,PI=oI.f,NI=gI.f,RI=rI.f,DI=AI.f,MI=VC([].push),jI=aI("symbols"),BI=aI("op-symbols"),LI=aI("wks"),FI=!SI||!SI[wI]||!SI[wI].findChild,zI=GC&&YC((function(){return 7!=tI(NI({},"a",{get:function(){return NI(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=PI(EI,e);r&&delete EI[e],NI(t,e,n),r&&t!==EI&&NI(EI,e,r)}:NI,ZI=function(t,e){var n=jI[t]=tI(kI);return _I(n,{type:mI,tag:t,description:e}),GC||(n.description=e),n},UI=function(t,e,n){t===EI&&UI(BI,e,n),QC(t);var r=qC(e);return QC(n),HC(jI,r)?(n.enumerable?(HC(t,bI)&&t[bI][r]&&(t[bI][r]=!1),n=tI(n,{enumerable:$C(0,!1)})):(HC(t,bI)||NI(t,bI,$C(1,{})),t[bI][r]=!0),zI(t,r,n)):NI(t,r,n)},VI=function(t,e){QC(t);var n=XC(e),r=eI(n).concat(HI(n));return yI(r,(function(e){GC&&!UC(GI,n,e)||UI(t,e,n[e])})),t},GI=function(t){var e=qC(t),n=UC(DI,this,e);return!(this===EI&&HC(jI,e)&&!HC(BI,e))&&(!(n||!HC(this,e)||!HC(jI,e)||HC(this,bI)&&this[bI][e])||n)},WI=function(t,e){var n=XC(t),r=qC(e);if(n!==EI||!HC(jI,r)||HC(BI,r)){var i=PI(n,r);return!i||!HC(jI,r)||HC(n,bI)&&n[bI][r]||(i.enumerable=!0),i}},YI=function(t){var e=RI(XC(t)),n=[];return yI(e,(function(t){HC(jI,t)||HC(uI,t)||MI(n,t)})),n},HI=function(t){var e=t===EI,n=RI(e?BI:XC(t)),r=[];return yI(n,(function(t){!HC(jI,t)||e&&!HC(EI,t)||MI(r,jI[t])})),r};WC||(CI(kI=(OI=function(){if(KC(kI,this))throw TI("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?JC(arguments[0]):void 0,e=cI(t),n=function(t){this===EI&&UC(n,BI,t),HC(this,bI)&&HC(this[bI],e)&&(this[bI][e]=!1),zI(this,e,$C(1,t))};return GC&&FI&&zI(EI,e,{configurable:!0,set:n}),ZI(e,t)})[wI],"toString",(function(){return xI(this).tag})),CI(OI,"withoutSetter",(function(t){return ZI(cI(t),t)})),AI.f=GI,gI.f=UI,sI.f=VI,oI.f=WI,nI.f=rI.f=YI,iI.f=HI,hI.f=function(t){return ZI(lI(t),t)},GC&&II(kI,"description",{configurable:!0,get:function(){return xI(this).description}})),zC({global:!0,constructor:!0,wrap:!0,forced:!WC,sham:!WC},{Symbol:OI}),yI(eI(LI),(function(t){dI(t)})),zC({target:mI,stat:!0,forced:!WC},{useSetter:function(){FI=!0},useSimple:function(){FI=!1}}),zC({target:"Object",stat:!0,forced:!WC,sham:!GC},{create:function(t,e){return void 0===e?tI(t):VI(tI(t),e)},defineProperty:UI,defineProperties:VI,getOwnPropertyDescriptor:WI}),zC({target:"Object",stat:!0,forced:!WC},{getOwnPropertyNames:YI}),fI(),pI(OI,mI),uI[bI]=!0;var KI=te&&!!Symbol.for&&!!Symbol.keyFor,QI=Ar,XI=Ut,qI=Ne,JI=Hi,$I=ye,ta=KI,ea=$I("string-to-symbol-registry"),na=$I("symbol-to-string-registry");QI({target:"Symbol",stat:!0,forced:!ta},{for:function(t){var e=JI(t);if(qI(ea,e))return ea[e];var n=XI("Symbol")(e);return ea[e]=n,na[n]=e,n}});var ra=Ar,ia=Ne,oa=ge,ga=Ae,sa=KI,Aa=ye("symbol-to-string-registry");ra({target:"Symbol",stat:!0,forced:!sa},{keyFor:function(t){if(!oa(t))throw TypeError(ga(t)+" is not a symbol");if(ia(Aa,t))return Aa[t]}});var Ca=xC,Ia=Ct,aa=nt,ua=Hi,ca=J([].push),la=Ar,ha=Ut,da=H,fa=lt,pa=J,va=Z,ya=Ct,ba=ge,ma=ei,wa=te,_a=String,xa=ha("JSON","stringify"),Ea=pa(/./.exec),Oa=pa("".charAt),ka=pa("".charCodeAt),Ta=pa("".replace),Sa=pa(1..toString),Pa=/[\uD800-\uDFFF]/g,Na=/^[\uD800-\uDBFF]$/,Ra=/^[\uDC00-\uDFFF]$/,Da=!wa||va((function(){var t=ha("Symbol")();return"[null]"!=xa([t])||"{}"!=xa({a:t})||"{}"!=xa(Object(t))})),Ma=va((function(){return'"\\udf06\\ud834"'!==xa("\udf06\ud834")||'"\\udead"'!==xa("\udead")})),ja=function(t,e){var n=ma(arguments),r=function(t){if(Ia(t))return t;if(Ca(t)){for(var e=t.length,n=[],r=0;rs;)void 0!==(n=i(r,e=o[s++]))&&uu(g,e,n);return g}});var cu=Bt.Object.getOwnPropertyDescriptors;!function(t){t.exports=cu}(nu);var lu=j(eu),hu={},du={get exports(){return hu},set exports(t){hu=t}},fu={},pu={get exports(){return fu},set exports(t){fu=t}},vu=Ar,yu=at,bu=So.f;vu({target:"Object",stat:!0,forced:Object.defineProperties!==bu,sham:!yu},{defineProperties:bu});var mu=Bt.Object,wu=pu.exports=function(t,e){return mu.defineProperties(t,e)};mu.defineProperties.sham&&(wu.sham=!0);var _u=fu;!function(t){t.exports=_u}(du);var xu=j(hu),Eu={},Ou={get exports(){return Eu},set exports(t){Eu=t}},ku={},Tu={get exports(){return ku},set exports(t){ku=t}},Su=Ar,Pu=at,Nu=Pn.f;Su({target:"Object",stat:!0,forced:Object.defineProperty!==Nu,sham:!Pu},{defineProperty:Nu});var Ru=Bt.Object,Du=Tu.exports=function(t,e,n){return Ru.defineProperty(t,e,n)};Ru.defineProperty.sham&&(Du.sham=!0);var Mu=ku;!function(t){t.exports=Mu}(Ou);var ju=j(Eu);function Bu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Lu={},Fu={get exports(){return Lu},set exports(t){Lu=t}},zu={},Zu=Mu;!function(t){t.exports=Zu}({get exports(){return zu},set exports(t){zu=t}}),function(t){t.exports=zu}(Fu);var Uu=j(Lu),Vu={},Gu={get exports(){return Vu},set exports(t){Vu=t}},Wu={},Yu={get exports(){return Wu},set exports(t){Wu=t}},Hu=TypeError,Ku=function(t){if(t>9007199254740991)throw Hu("Maximum allowed index exceeded");return t},Qu=Z,Xu=qt,qu=Ye("species"),Ju=function(t){return Xu>=51||!Qu((function(){var e=[];return(e.constructor={})[qu]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},$u=Ar,tc=Z,ec=xC,nc=jt,rc=Te,ic=vr,oc=Ku,gc=Ys,sc=PC,Ac=Ju,Cc=qt,Ic=Ye("isConcatSpreadable"),ac=Cc>=51||!tc((function(){var t=[];return t[Ic]=!1,t.concat()[0]!==t})),uc=function(t){if(!nc(t))return!1;var e=t[Ic];return void 0!==e?!!e:ec(t)};$u({target:"Array",proto:!0,arity:1,forced:!ac||!Ac("concat")},{concat:function(t){var e,n,r,i,o,g=rc(this),s=sc(g,0),A=0;for(e=-1,r=arguments.length;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?arguments[1]:void 0)}});var uh=hi("Array").map,ch=Vt,lh=uh,hh=Array.prototype,dh=function(t){var e=t.map;return t===hh||ch(hh,t)&&e===hh.map?lh:e};!function(t){t.exports=dh}(Ih);var fh=j(Ch),ph={},vh={get exports(){return ph},set exports(t){ph=t}},yh=Te,bh=Mr;Ar({target:"Object",stat:!0,forced:Z((function(){bh(1)}))},{keys:function(t){return bh(yh(t))}});var mh=Bt.Object.keys;!function(t){t.exports=mh}(vh);var wh=j(ph),_h={},xh={get exports(){return _h},set exports(t){_h=t}},Eh=Ar,Oh=Date,kh=J(Oh.prototype.getTime);Eh({target:"Date",stat:!0},{now:function(){return kh(new Oh)}});var Th=Bt.Date.now;!function(t){t.exports=Th}(xh);var Sh=j(_h),Ph={},Nh={get exports(){return Ph},set exports(t){Ph=t}},Rh=Z,Dh=function(t,e){var n=[][t];return!!n&&Rh((function(){n.call(null,e||function(){return 1},1)}))},Mh=FC.forEach,jh=Dh("forEach")?[].forEach:function(t){return Mh(this,t,arguments.length>1?arguments[1]:void 0)};Ar({target:"Array",proto:!0,forced:[].forEach!=jh},{forEach:jh});var Bh=hi("Array").forEach,Lh=Gi,Fh=Ne,zh=Vt,Zh=Bh,Uh=Array.prototype,Vh={DOMTokenList:!0,NodeList:!0},Gh=function(t){var e=t.forEach;return t===Uh||zh(Uh,t)&&e===Uh.forEach||Fh(Vh,Lh(t))?Zh:e};!function(t){t.exports=Gh}(Nh);var Wh=j(Ph),Yh={},Hh={get exports(){return Yh},set exports(t){Yh=t}},Kh=Ar,Qh=xC,Xh=J([].reverse),qh=[1,2];Kh({target:"Array",proto:!0,forced:String(qh)===String(qh.reverse())},{reverse:function(){return Qh(this)&&(this.length=this.length),Xh(this)}});var Jh=hi("Array").reverse,$h=Vt,td=Jh,ed=Array.prototype,nd=function(t){var e=t.reverse;return t===ed||$h(ed,t)&&e===ed.reverse?td:e};!function(t){t.exports=nd}(Hh);var rd=j(Yh),id={},od={get exports(){return id},set exports(t){id=t}},gd=at,sd=xC,Ad=TypeError,Cd=Object.getOwnPropertyDescriptor,Id=gd&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),ad=Ae,ud=TypeError,cd=function(t,e){if(!delete t[e])throw ud("Cannot delete property "+ad(e)+" of "+ad(t))},ld=Ar,hd=Te,dd=dr,fd=ur,pd=vr,vd=Id?function(t,e){if(sd(t)&&!Cd(t,"length").writable)throw Ad("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},yd=Ku,bd=PC,md=Ys,wd=cd,_d=Ju("splice"),xd=Math.max,Ed=Math.min;ld({target:"Array",proto:!0,forced:!_d},{splice:function(t,e){var n,r,i,o,g,s,A=hd(this),C=pd(A),I=dd(t,C),a=arguments.length;for(0===a?n=r=0:1===a?(n=0,r=C-I):(n=a-2,r=Ed(xd(fd(e),0),C-I)),yd(C+n-r),i=bd(A,r),o=0;oC-r+n;o--)wd(A,o-1)}else if(n>r)for(o=C-r;o>I;o--)s=o+n-1,(g=o+r-1)in A?A[s]=A[g]:wd(A,s);for(o=0;o1?arguments[1]:void 0)}});var jd=hi("Array").includes,Bd=jt,Ld=nt,Fd=Ye("match"),zd=TypeError,Zd=Ye("match"),Ud=Ar,Vd=function(t){if(function(t){var e;return Bd(t)&&(void 0!==(e=t[Fd])?!!e:"RegExp"==Ld(t))}(t))throw zd("The method doesn't accept regular expressions");return t},Gd=St,Wd=Hi,Yd=J("".indexOf);Ud({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Zd]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~Yd(Wd(Gd(this)),Wd(Vd(t)),arguments.length>1?arguments[1]:void 0)}});var Hd=hi("String").includes,Kd=Vt,Qd=jd,Xd=Hd,qd=Array.prototype,Jd=String.prototype,$d=function(t){var e=t.includes;return t===qd||Kd(qd,t)&&e===qd.includes?Qd:"string"==typeof t||t===Jd||Kd(Jd,t)&&e===Jd.includes?Xd:e};!function(t){t.exports=$d}(Dd);var tf=j(Rd),ef={},nf={get exports(){return ef},set exports(t){ef=t}},rf=Te,of=Ig,gf=ng;Ar({target:"Object",stat:!0,forced:Z((function(){of(1)})),sham:!gf},{getPrototypeOf:function(t){return of(rf(t))}});var sf=Bt.Object.getPrototypeOf;!function(t){t.exports=sf}(nf);var Af=j(ef),Cf={},If={get exports(){return Cf},set exports(t){Cf=t}},af=FC.filter;Ar({target:"Array",proto:!0,forced:!Ju("filter")},{filter:function(t){return af(this,t,arguments.length>1?arguments[1]:void 0)}});var uf=hi("Array").filter,cf=Vt,lf=uf,hf=Array.prototype,df=function(t){var e=t.filter;return t===hf||cf(hf,t)&&e===hf.filter?lf:e};!function(t){t.exports=df}(If);var ff=j(Cf),pf={},vf={get exports(){return pf},set exports(t){pf=t}},yf=at,bf=J,mf=Mr,wf=Rt,_f=bf(ht.f),xf=bf([].push),Ef=function(t){return function(e){for(var n,r=wf(e),i=mf(r),o=i.length,g=0,s=[];o>g;)n=i[g++],yf&&!_f(r,n)||xf(s,t?[n,r[n]]:r[n]);return s}},Of=(Ef(!0),Ef(!1));Ar({target:"Object",stat:!0},{values:function(t){return Of(t)}});var kf=Bt.Object.values;!function(t){t.exports=kf}(vf);var Tf={},Sf={get exports(){return Tf},set exports(t){Tf=t}},Pf="\t\n\v\f\r                 \u2028\u2029\ufeff",Nf=St,Rf=Hi,Df=Pf,Mf=J("".replace),jf=RegExp("^["+Df+"]+"),Bf=RegExp("(^|[^"+Df+"])["+Df+"]+$"),Lf=function(t){return function(e){var n=Rf(Nf(e));return 1&t&&(n=Mf(n,jf,"")),2&t&&(n=Mf(n,Bf,"$1")),n}},Ff={start:Lf(1),end:Lf(2),trim:Lf(3)},zf=z,Zf=Z,Uf=J,Vf=Hi,Gf=Ff.trim,Wf=Pf,Yf=zf.parseInt,Hf=zf.Symbol,Kf=Hf&&Hf.iterator,Qf=/^[+-]?0x/i,Xf=Uf(Qf.exec),qf=8!==Yf(Wf+"08")||22!==Yf(Wf+"0x16")||Kf&&!Zf((function(){Yf(Object(Kf))}))?function(t,e){var n=Gf(Vf(t));return Yf(n,e>>>0||(Xf(Qf,n)?16:10))}:Yf;Ar({global:!0,forced:parseInt!=qf},{parseInt:qf});var Jf=Bt.parseInt;!function(t){t.exports=Jf}(Sf);var $f=j(Tf),tp={},ep={get exports(){return tp},set exports(t){tp=t}},np=Ar,rp=_r.indexOf,ip=Dh,op=ot([].indexOf),gp=!!op&&1/op([1],1,-0)<0;np({target:"Array",proto:!0,forced:gp||!ip("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return gp?op(this,t,e)||0:rp(this,t,e)}});var sp=hi("Array").indexOf,Ap=Vt,Cp=sp,Ip=Array.prototype,ap=function(t){var e=t.indexOf;return t===Ip||Ap(Ip,t)&&e===Ip.indexOf?Cp:e};!function(t){t.exports=ap}(ep);var up,cp=j(tp),lp={},hp={get exports(){return lp},set exports(t){lp=t}},dp=To.PROPER,fp=Pf,pp=Ff.trim;Ar({target:"String",proto:!0,forced:(up="trim",Z((function(){return!!fp[up]()||"​…᠎"!=="​…᠎"[up]()||dp&&fp[up].name!==up})))},{trim:function(){return pp(this)}});var vp=hi("String").trim,yp=Vt,bp=vp,mp=String.prototype,wp=function(t){var e=t.trim;return"string"==typeof t||t===mp||yp(mp,t)&&e===mp.trim?bp:e};!function(t){t.exports=wp}(hp);var _p={},xp={get exports(){return _p},set exports(t){_p=t}};Ar({target:"Object",stat:!0,sham:!at},{create:eg});var Ep=Bt.Object,Op=function(t,e){return Ep.create(t,e)};!function(t){t.exports=Op}(xp);var kp=j(_p),Tp={},Sp={get exports(){return Tp},set exports(t){Tp=t}},Pp=Bt,Np=H;Pp.JSON||(Pp.JSON={stringify:JSON.stringify});var Rp=function(t,e,n){return Np(Pp.JSON.stringify,null,arguments)};!function(t){t.exports=Rp}(Sp);var Dp=j(Tp),Mp={},jp={get exports(){return Mp},set exports(t){Mp=t}},Bp="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Lp=TypeError,Fp=function(t,e){if(tn,g=Up(r)?r:Hp(r),s=o?Wp(arguments,n):[],A=o?function(){Zp(g,this,s)}:g;return e?t(A,i):t(A)}:t},Xp=Ar,qp=z,Jp=Qp(qp.setInterval,!0);Xp({global:!0,bind:!0,forced:qp.setInterval!==Jp},{setInterval:Jp});var $p=Ar,tv=z,ev=Qp(tv.setTimeout,!0);$p({global:!0,bind:!0,forced:tv.setTimeout!==ev},{setTimeout:ev});var nv=Bt.setTimeout;!function(t){t.exports=nv}(jp);var rv=j(Mp),iv={},ov={get exports(){return iv},set exports(t){iv=t}},gv=Te,sv=dr,Av=vr;Ar({target:"Array",proto:!0},{fill:function(t){for(var e=gv(this),n=Av(e),r=arguments.length,i=sv(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,g=void 0===o?n:sv(o,n);g>i;)e[i++]=t;return e}});var Cv=hi("Array").fill,Iv=Vt,av=Cv,uv=Array.prototype,cv=function(t){var e=t.fill;return t===uv||Iv(uv,t)&&e===uv.fill?av:e};!function(t){t.exports=cv}(ov);var lv=j(iv);function hv(){return hv=Object.assign||function(t){for(var e=1;e-1}var ry=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===kv&&(t=this.compute()),Ov&&this.manager.element.style&&Dv[t]&&(this.manager.element.style[Ev]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return ty(this.manager.recognizers,(function(e){ey(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(ny(t,Pv))return Pv;var e=ny(t,Nv),n=ny(t,Rv);return e&&n?Pv:e||n?e?Nv:Rv:ny(t,Sv)?Sv:Tv}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=ny(r,Pv)&&!Dv[Pv],o=ny(r,Rv)&&!Dv[Rv],g=ny(r,Nv)&&!Dv[Nv];if(i){var s=1===t.pointers.length,A=t.distance<2,C=t.deltaTime<250;if(s&&A&&C)return}if(!g||!o)return i||o&&n&Qv||g&&n&Xv?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function iy(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function oy(t){var e=t.length;if(1===e)return{x:mv(t[0].clientX),y:mv(t[0].clientY)};for(var n=0,r=0,i=0;i=wv(e)?t<0?Wv:Yv:e<0?Hv:Kv}function Iy(t,e,n){return{x:e/t||0,y:n/t||0}}function ay(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&Zv&&r-i==0,g=e&(Uv|Vv)&&r-i==0;n.isFirst=!!o,n.isFinal=!!g,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=gy(e)),i>1&&!n.firstMultiple?n.firstMultiple=gy(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,g=n.firstMultiple,s=g?g.center:o.center,A=e.center=oy(r);e.timeStamp=_v(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Ay(s,A),e.distance=sy(s,A),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==Zv&&o.eventType!==Uv||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=Cy(e.deltaX,e.deltaY);var C,I,a=Iy(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=a.x,e.overallVelocityY=a.y,e.overallVelocity=wv(a.x)>wv(a.y)?a.x:a.y,e.scale=g?(C=g.pointers,sy((I=r)[0],I[1],$v)/sy(C[0],C[1],$v)):1,e.rotation=g?function(t,e){return Ay(e[1],e[0],$v)+Ay(t[1],t[0],$v)}(g.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,g=t.lastInterval||e,s=e.timeStamp-g.timeStamp;if(e.eventType!==Vv&&(s>zv||void 0===g.velocity)){var A=e.deltaX-g.deltaX,C=e.deltaY-g.deltaY,I=Iy(s,A,C);r=I.x,i=I.y,n=wv(I.x)>wv(I.y)?I.x:I.y,o=Cy(A,C),t.lastInterval=e}else n=g.velocity,r=g.velocityX,i=g.velocityY,o=g.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var u,c=t.element,l=e.srcEvent;iy(u=l.composedPath?l.composedPath()[0]:l.path?l.path[0]:l.target,c)&&(c=u),e.target=c}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function uy(t){return t.trim().split(/\s+/g)}function cy(t,e,n){ty(uy(e),(function(e){t.addEventListener(e,n,!1)}))}function ly(t,e,n){ty(uy(e),(function(e){t.removeEventListener(e,n,!1)}))}function hy(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var dy=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){ey(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&cy(this.element,this.evEl,this.domHandler),this.evTarget&&cy(this.target,this.evTarget,this.domHandler),this.evWin&&cy(hy(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&ly(this.element,this.evEl,this.domHandler),this.evTarget&&ly(this.target,this.evTarget,this.domHandler),this.evWin&&ly(hy(this.element),this.evWin,this.domHandler)},t}();function fy(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;rn[e]})):r.sort()),r}var xy={touchstart:Zv,touchmove:2,touchend:Uv,touchcancel:Vv},Ey=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).targetIds={},n}return dv(e,t),e.prototype.handler=function(t){var e=xy[t.type],n=Oy.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Lv,srcEvent:t})},e}(dy);function Oy(t,e){var n,r,i=wy(t.touches),o=this.targetIds;if(e&(2|Zv)&&1===i.length)return o[i[0].identifier]=!0,[i,i];var g=wy(t.changedTouches),s=[],A=this.target;if(r=i.filter((function(t){return iy(t.target,A)})),e===Zv)for(n=0;n-1&&r.splice(t,1)}),Sy)}}function Ny(t,e){t&Zv?(this.primaryTouch=e.changedPointers[0].identifier,Py.call(this,e)):t&(Uv|Vv)&&Py.call(this,e)}function Ry(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r-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,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+Fy(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+Fy(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=jy},e.canEmit=function(){for(var t=0;te.threshold&&i&e.direction},n.attrTest=function(t){return Uy.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},n.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=Vy(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(Uy),Wy=function(t){function e(e){return void 0===e&&(e={}),t.call(this,hv({event:"swipe",threshold:10,velocity:.3,direction:Qv|Xv,pointers:1},e))||this}dv(e,t);var n=e.prototype;return n.getTouchAction=function(){return Gy.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,r=this.options.direction;return r&(Qv|Xv)?n=e.overallVelocity:r&Qv?n=e.overallVelocityX:r&Xv&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&wv(n)>this.options.velocity&&e.eventType&Uv},n.emit=function(t){var e=Vy(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(Uy),Yy=function(t){function e(e){return void 0===e&&(e={}),t.call(this,hv({event:"pinch",threshold:0,pointers:2},e))||this}dv(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Pv]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},n.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},e}(Uy),Hy=function(t){function e(e){return void 0===e&&(e={}),t.call(this,hv({event:"rotate",threshold:0,pointers:2},e))||this}dv(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Pv]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(Uy),Ky=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,hv({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}dv(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Tv]},n.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distancen.time;if(this._input=t,!i||!r||t.eventType&(Uv|Vv)&&!o)this.reset();else if(t.eventType&Zv)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.time);else if(t.eventType&Uv)return 8;return jy},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){8===this.state&&(t&&t.eventType&Uv?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=_v(),this.manager.emit(this.options.event,this._input)))},e}(zy),Qy={domEvents:!1,touchAction:kv,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Xy=[[Hy,{enable:!1}],[Yy,{enable:!1},["rotate"]],[Wy,{direction:Qv}],[Gy,{direction:Qv},["swipe"]],[Zy],[Zy,{event:"doubletap",taps:2},["tap"]],[Ky]];function qy(t,e){var n,r=t.element;r.style&&(ty(t.options.cssProps,(function(i,o){n=xv(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}var Jy=function(){function t(t,e){var n=this;this.options=vv({},Qy,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new(this.options.inputClass||(jv?my:Bv?Ey:Mv?Dy:Ty))(this,ay),this.touchAction=new ry(this,this.options.touchAction),qy(this,!0),ty(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 vv(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 n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(e.curRecognizer=null,i=null);for(var o=0;o\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,r,n),t.apply(this,arguments)}}var rb=nb((function(t,e,n){for(var r=Object.keys(e),i=0;i=t.length?{done:!0}:{done:!1,value:t[r++]}},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,g=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return g=t.done,t},e:function(t){s=!0,o=t},f:function(){try{g||null==n.return||n.return()}finally{if(s)throw o}}}}function Ib(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2)return cb.apply(void 0,th(r=[ub(e[0],e[1])]).call(r,Gl(nh(e).call(e,2))));var i,o=e[0],g=e[1],s=Cb(gh(g));try{for(s.s();!(i=s.n()).done;){var A=i.value;Object.prototype.propertyIsEnumerable.call(g,A)&&(g[A]===ab?delete o[A]:null===o[A]||null===g[A]||"object"!==Hc(o[A])||"object"!==Hc(g[A])||Ah(o[A])||Ah(g[A])?o[A]=lb(g[A]):o[A]=cb(o[A],g[A]))}}catch(t){s.e(t)}finally{s.f()}return o}function lb(t){return Ah(t)?fh(t).call(t,(function(t){return lb(t)})):"object"===Hc(t)&&null!==t?cb({},t):t}function hb(t){for(var e=0,n=wh(t);e>>0,t=(i*=t)>>>0,t+=4294967296*(i-=t)}return 2.3283064365386963e-10*(t>>>0)}}(),e=t(" "),n=t(" "),r=t(" "),i=0;i2&&void 0!==arguments[2]&&arguments[2];for(var r in t)if(void 0!==e[r])if(null===e[r]||"object"!==Hc(e[r]))Eb(t,e,r,n);else{var i=t[r],o=e[r];xb(i)&&xb(o)&&Ob(i,o,n)}}function kb(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Ah(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0;i3&&void 0!==arguments[3]&&arguments[3];if(Ah(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&!tf(t).call(t,i))if(n[i]&&n[i].constructor===Object)void 0===e[i]&&(e[i]={}),e[i].constructor===Object?Sb(e[i],n[i]):Eb(e,n,i,r);else if(Ah(n[i])){e[i]=[];for(var o=0;o2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)||!0===n)if("object"===Hc(e[i])&&null!==e[i]&&Af(e[i])===Object.prototype)void 0===t[i]?t[i]=Sb({},e[i],n):"object"===Hc(t[i])&&null!==t[i]&&Af(t[i])===Object.prototype?Sb(t[i],e[i],n):Eb(t,e,i,r);else if(Ah(e[i])){var o;t[i]=nh(o=e[i]).call(o)}else Eb(t,e,i,r);return t}function Pb(t,e){var n;return th(n=[]).call(n,Gl(t),[e])}function Nb(t){return t.getBoundingClientRect().top}function Rb(t,e){if(Ah(t))for(var n=t.length,r=0;r3&&void 0!==arguments[3]?arguments[3]:{},i=function(t){return null!=t},o=function(t){return null!==t&&"object"===Hc(t)};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(e))throw new Error("Parameter options must be an object");if(!i(n))throw new Error("Parameter option must have a value");if(!o(r))throw new Error("Parameter globalOptions must be an object");var g=e[n],s=o(r)&&!function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(r)?r[n]:void 0,A=s?s.enabled:void 0;if(void 0!==g){if("boolean"==typeof g)return o(t[n])||(t[n]={}),void(t[n].enabled=g);if(null===g&&!o(t[n])){if(!i(s))return;t[n]=kp(s)}if(o(g)){var C=!0;void 0!==g.enabled?C=g.enabled:void 0!==A&&(C=s.enabled),function(t,e,n){o(t[n])||(t[n]={});var r=e[n],i=t[n];for(var g in r)Object.prototype.hasOwnProperty.call(r,g)&&(i[g]=r[g])}(t,e,n),t[n].enabled=C}}}var Wb={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function Yb(t,e){var n;Ah(e)||(e=[e]);var r,i=Cb(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(o){n=o[e[0]];for(var g=1;g0&&void 0!==arguments[0]?arguments[0]:1;Bu(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return nl(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return Hb[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var n,r=this._isColorString(t);if(void 0!==r&&(t=r),!0===_b(t)){if(!0===Ub(t)){var i=t.substr(4).substr(0,t.length-5).split(",");n={r:i[0],g:i[1],b:i[2],a:1}}else if(!0===function(t){return mb.test(t)}(t)){var o=t.substr(5).substr(0,t.length-6).split(",");n={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===Zb(t)){var g=Db(t);n={r:g.r,g:g.g,b:g.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var s=void 0!==t.a?t.a:"1.0";n={r:t.r,g:t.g,b:t.b,a:s}}if(void 0===n)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Dp(t));this._setColor(n,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=Jr({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",rv((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=Jr({},t)),this.color=t;var e=Lb(t.r,t.g,t.b),n=2*Math.PI,r=this.r*e.s,i=this.centerCoordinates.x+r*Math.sin(n*e.h),o=this.centerCoordinates.y+r*Math.cos(n*e.h);this.colorPickerSelector.style.left=i-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=o-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=Lb(this.color.r,this.color.g,this.color.b);e.v=t/100;var n=Fb(e.h,e.s,e.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=Lb(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var r=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,r,i),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-e.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),lv(n).call(n),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,n,r;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var i=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var g=this;this.opacityRange.onchange=function(){g._setOpacity(this.value)},this.opacityRange.oninput=function(){g._setOpacity(this.value)},this.brightnessRange.onchange=function(){g._setBrightness(this.value)},this.brightnessRange.oninput=function(){g._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=bi(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=bi(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=bi(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=bi(r=this._loadLast).call(r,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new fb(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",(function(e){e.isFirst&&t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,n,r,i,o=this.colorPickerCanvas.clientWidth,g=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,o,g),this.centerCoordinates={x:.5*o,y:.5*g},this.r=.49*o;var s,A=2*Math.PI/360,C=1/this.r;for(r=0;r<360;r++)for(i=0;i3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};Bu(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Jr(this.options,this.defaultOptions),this.configureOptions=r,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Kb(i),this.wrapper=void 0}return nl(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(Ah(t))this.options.filter=t.join();else if("object"===Hc(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==ff(t)&&(this.options.filter=ff(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===ff(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=ff(this.options),e=0,n=!1;for(var r in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,r)&&(this.allowCreation=!1,n=!1,"function"==typeof t?n=(n=t(r,[]))||this._handleObject(this.configureOptions[r],[r],!0):!0!==t&&-1===cp(t).call(t,r)||(n=!0),!1!==n&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(r),this._handleObject(this.configureOptions[r],[r])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t1?n-1:0),i=1;i2&&void 0!==arguments[2]&&arguments[2],r=document.createElement("div");if(r.className="vis-configuration vis-config-label vis-config-s"+e.length,!0===n){for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(Qb("i","b",t))}else r.innerText=t+":";return r}},{key:"_makeDropdown",value:function(t,e,n){var r=document.createElement("select");r.className="vis-configuration vis-config-select";var i=0;void 0!==e&&-1!==cp(t).call(t,e)&&(i=cp(t).call(t,e));for(var o=0;oo&&1!==o&&(s.max=Math.ceil(e*I),C=s.max,A="range increased"),s.value=e}else s.value=r;var a=document.createElement("input");a.className="vis-configuration vis-config-rangeinput",a.value=s.value;var u=this;s.onchange=function(){a.value=this.value,u._update(Number(this.value),n)},s.oninput=function(){a.value=this.value};var c=this._makeLabel(n[n.length-1],n),l=this._makeItem(n,c,s,a);""!==A&&this.popupHistory[l]!==C&&(this.popupHistory[l]=C,this._setupPopup(A,l))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var n=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1,i=ff(this.options),o=!1;for(var g in t)if(Object.prototype.hasOwnProperty.call(t,g)){r=!0;var s=t[g],A=Pb(e,g);if("function"==typeof i&&!1===(r=i(g,e))&&!Ah(s)&&"string"!=typeof s&&"boolean"!=typeof s&&s instanceof Object&&(this.allowCreation=!1,r=this._handleObject(s,A,!0),this.allowCreation=!1===n),!1!==r){o=!0;var C=this._getValue(A);if(Ah(s))this._handleArray(s,C,A);else if("string"==typeof s)this._makeTextInput(s,C,A);else if("boolean"==typeof s)this._makeCheckbox(s,C,A);else if(s instanceof Object){if(!this.hideOption(e,g,this.moduleOptions))if(void 0!==s.enabled){var I=Pb(A,"enabled"),a=this._getValue(I);if(!0===a){var u=this._makeLabel(g,A,!0);this._makeItem(A,u),o=this._handleObject(s,A)||o}else this._makeCheckbox(s,a,A)}else{var c=this._makeLabel(g,A,!0);this._makeItem(A,c),o=this._handleObject(s,A)||o}}else console.error("dont know how to handle",s,g,A)}}return o}},{key:"_handleArray",value:function(t,e,n){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,n),t[1]!==e&&this.changedOptions.push({path:n,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:Number(e)}))}},{key:"_update",value:function(t,e){var n=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;t="false"!==(t="true"===t||t)&&t;for(var i=0;ii-this.padding&&(s=!0),o=s?this.x-n:this.x,g=A?this.y-e:this.y}else(g=this.y-e)+e+this.padding>r&&(g=r-e-this.padding),gi&&(o=i-n-this.padding),og.distance?" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(g.path,g.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):". Did you mean one of these: "+t.print(wh(n))+t.printLocation(r,e),console.error('%cUnknown option detected: "'+e+'"'+i,tm),$b=!0}},{key:"findInOptions",value:function(e,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],g=1e9,s="",A=[],C=e.toLowerCase(),I=void 0;for(var a in n){var u=void 0;if(void 0!==n[a].__type__&&!0===o){var c=t.findInOptions(e,n[a],Pb(r,a));g>c.distance&&(s=c.closestMatch,A=c.path,g=c.distance,I=c.indexMatch)}else{var l;-1!==cp(l=a.toLowerCase()).call(l,C)&&(I=a),g>(u=t.levenshteinDistance(e,a))&&(s=a,A=nh(i=r).call(i),g=u)}}return{closestMatch:s,path:A,distance:g,indexMatch:I}}},{key:"printLocation",value:function(t,e){for(var n="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",r=0;r":!0,"--":!0},um="",cm=0,lm="",hm="",dm=Im.NULL;function fm(){cm++,lm=um.charAt(cm)}function pm(){return um.charAt(cm+1)}function vm(t){var e=t.charCodeAt(0);return e<47?35===e||46===e:e<59?e>47:e<91?e>64:e<96?95===e:e<123&&e>96}function ym(t,e){if(t||(t={}),e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function bm(t,e,n){for(var r=e.split("."),i=t;r.length;){var o=r.shift();r.length?(i[o]||(i[o]={}),i=i[o]):i[o]=n}}function mm(t,e){for(var n,r,i=null,o=[t],g=t;g.parent;)o.push(g.parent),g=g.parent;if(g.nodes)for(n=0,r=g.nodes.length;n=0;n--){var s,A=o[n];A.nodes||(A.nodes=[]),-1===cp(s=A.nodes).call(s,i)&&A.nodes.push(i)}e.attr&&(i.attr=ym(i.attr,e.attr))}function wm(t,e){if(t.edges||(t.edges=[]),t.edges.push(e),t.edge){var n=ym({},t.edge);e.attr=ym(n,e.attr)}}function _m(t,e,n,r,i){var o={from:e,to:n,type:r};return t.edge&&(o.attr=ym({},t.edge)),o.attr=ym(o.attr||{},i),null!=i&&i.hasOwnProperty("arrows")&&null!=i.arrows&&(o.arrows={to:{enabled:!0,type:i.arrows.type}},i.arrows=null),o}function xm(){for(dm=Im.NULL,hm="";" "===lm||"\t"===lm||"\n"===lm||"\r"===lm;)fm();do{var t=!1;if("#"===lm){for(var e=cm-1;" "===um.charAt(e)||"\t"===um.charAt(e);)e--;if("\n"===um.charAt(e)||""===um.charAt(e)){for(;""!=lm&&"\n"!=lm;)fm();t=!0}}if("/"===lm&&"/"===pm()){for(;""!=lm&&"\n"!=lm;)fm();t=!0}if("/"===lm&&"*"===pm()){for(;""!=lm;){if("*"===lm&&"/"===pm()){fm(),fm();break}fm()}t=!0}for(;" "===lm||"\t"===lm||"\n"===lm||"\r"===lm;)fm()}while(t);if(""!==lm){var n=lm+pm();if(am[n])return dm=Im.DELIMITER,hm=n,fm(),void fm();if(am[lm])return dm=Im.DELIMITER,hm=lm,void fm();if(vm(lm)||"-"===lm){for(hm+=lm,fm();vm(lm);)hm+=lm,fm();return"false"===hm?hm=!1:"true"===hm?hm=!0:isNaN(Number(hm))||(hm=Number(hm)),void(dm=Im.IDENTIFIER)}if('"'===lm){for(fm();""!=lm&&('"'!=lm||'"'===lm&&'"'===pm());)'"'===lm?(hm+=lm,fm()):"\\"===lm&&"n"===pm()?(hm+="\n",fm()):hm+=lm,fm();if('"'!=lm)throw Pm('End of string " expected');return fm(),void(dm=Im.IDENTIFIER)}for(dm=Im.UNKNOWN;""!=lm;)hm+=lm,fm();throw new SyntaxError('Syntax error in part "'+Nm(hm,30)+'"')}dm=Im.DELIMITER}function Em(t){for(;""!==hm&&"}"!=hm;)Om(t),";"===hm&&xm()}function Om(t){var e=km(t);if(e)Tm(t,e);else{var n=function(t){return"node"===hm?(xm(),t.node=Sm(),"node"):"edge"===hm?(xm(),t.edge=Sm(),"edge"):"graph"===hm?(xm(),t.graph=Sm(),"graph"):null}(t);if(!n){if(dm!=Im.IDENTIFIER)throw Pm("Identifier expected");var r=hm;if(xm(),"="===hm){if(xm(),dm!=Im.IDENTIFIER)throw Pm("Identifier expected");t[r]=hm,xm()}else!function(t,e){var n={id:e},r=Sm();r&&(n.attr=r),mm(t,n),Tm(t,e)}(t,r)}}}function km(t){var e=null;if("subgraph"===hm&&((e={}).type="subgraph",xm(),dm===Im.IDENTIFIER&&(e.id=hm,xm())),"{"===hm){if(xm(),e||(e={}),e.parent=t,e.node=t.node,e.edge=t.edge,e.graph=t.graph,Em(e),"}"!=hm)throw Pm("Angle bracket } expected");xm(),delete e.node,delete e.edge,delete e.graph,delete e.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(e)}return e}function Tm(t,e){for(;"->"===hm||"--"===hm;){var n,r=hm;xm();var i=km(t);if(i)n=i;else{if(dm!=Im.IDENTIFIER)throw Pm("Identifier or subgraph expected");mm(t,{id:n=hm}),xm()}wm(t,_m(t,e,n,r,Sm())),e=n}}function Sm(){for(var t,e,n=null,r={dashed:!0,solid:!1,dotted:[1,5]},i={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},o=new Array,g=new Array;"["===hm;){for(xm(),n={};""!==hm&&"]"!=hm;){if(dm!=Im.IDENTIFIER)throw Pm("Attribute name expected");var s=hm;if(xm(),"="!=hm)throw Pm("Equal sign = expected");if(xm(),dm!=Im.IDENTIFIER)throw Pm("Attribute value expected");var A=hm;"style"===s&&(A=r[A]),"arrowhead"===s&&(s="arrows",A={to:{enabled:!0,type:i[A]}}),"arrowtail"===s&&(s="arrows",A={from:{enabled:!0,type:i[A]}}),o.push({attr:n,name:s,value:A}),g.push(s),xm(),","==hm&&xm()}if("]"!=hm)throw Pm("Bracket ] expected");xm()}if(tf(g).call(g,"dir")){var C={arrows:{}};for(t=0;t"===t.type&&(e.arrows="to"),e};Wh(i=n.edges).call(i,(function(t){var e,n,i,g,s,A,C;e=t.from instanceof Object?t.from.nodes:{id:t.from},n=t.to instanceof Object?t.to.nodes:{id:t.to},t.from instanceof Object&&t.from.edges&&Wh(i=t.from.edges).call(i,(function(t){var e=o(t);r.edges.push(e)})),s=n,A=function(e,n){var i=_m(r,e.id,n.id,t.type,t.attr),g=o(i);r.edges.push(g)},Ah(g=e)?Wh(g).call(g,(function(t){Ah(s)?Wh(s).call(s,(function(e){A(t,e)})):A(t,s)})):Ah(s)?Wh(s).call(s,(function(t){A(g,t)})):A(g,s),t.to instanceof Object&&t.to.edges&&Wh(C=t.to.edges).call(C,(function(t){var e=o(t);r.edges.push(e)}))}))}return n.attr&&(r.options=n.attr),r}var jm=Object.freeze({__proto__:null,cn:{addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},cs:{addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",addEdge:"Přidat hranu",addNode:"Přidat vrchol",back:"Zpět",close:"Zavřít",createEdgeError:"Nelze připojit hranu ke shluku.",del:"Smazat výběr",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",editNode:"Upravit vrchol"},de:{addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzufügen",addNode:"Knoten hinzufügen",back:"Zurück",close:"Schließen",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",del:"Lösche Auswahl",deleteClusterError:"Cluster können nicht gelöscht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster können nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},en:{addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},es:{addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",addEdge:"Añadir arista",addNode:"Añadir nodo",back:"Atrás",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selección",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},fr:{addDescription:"Cliquez dans un endroit vide pour placer un nœud.",addEdge:"Ajouter un lien",addNode:"Ajouter un nœud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de créer un lien vers un cluster.",del:"Effacer la sélection",deleteClusterError:"Les clusters ne peuvent pas être effacés.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",edit:"Éditer",editClusterError:"Les clusters ne peuvent pas être édités.",editEdge:"Éditer le lien",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",editNode:"Éditer le nœud"},it:{addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},nl:{addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},pt:{addDescription:"Clique em um espaço em branco para adicionar um novo nó",addEdge:"Adicionar aresta",addNode:"Adicionar nó",back:"Voltar",close:"Fechar",createEdgeError:"Não foi possível linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters não puderam ser removidos.",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",edit:"Editar",editClusterError:"Clusters não puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",editNode:"Editar nó"},ru:{addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},uk:{addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"}}),Bm=function(){function t(){Bu(this,t),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return nl(t,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var t=this.image.width,e=this.image.height;this.width=t,this.height=e;var n=Math.floor(e/2),r=Math.floor(e/4),i=Math.floor(e/8),o=Math.floor(e/16),g=Math.floor(t/2),s=Math.floor(t/4),A=Math.floor(t/8),C=Math.floor(t/16);this.canvas.width=3*s,this.canvas.height=n,this.coordinates=[[0,0,g,n],[g,0,s,r],[g,r,A,i],[5*A,r,C,o]],this._fillMipMap()}}},{key:"initialized",value:function(){return void 0!==this.coordinates}},{key:"_fillMipMap",value:function(){var t=this.canvas.getContext("2d"),e=this.coordinates[0];t.drawImage(this.image,e[0],e[1],e[2],e[3]);for(var n=1;n2){e*=.5;for(var g=0;e>2&&g=this.NUM_ITERATIONS&&(g=this.NUM_ITERATIONS-1);var s=this.coordinates[g];t.drawImage(this.canvas,s[0],s[1],s[2],s[3],n,r,i,o)}else t.drawImage(this.image,n,r,i,o)}}]),t}(),Lm=function(){function t(e){Bu(this,t),this.images={},this.imageBroken={},this.callback=e}return nl(t,[{key:"_tryloadBrokenUrl",value:function(t,e,n){void 0!==t&&void 0!==n&&(void 0!==e?(n.image.onerror=function(){console.error("Could not load brokenImage:",e)},n.image.src=e):console.warn("No broken url image defined"))}},{key:"_redrawWithImage",value:function(t){this.callback&&this.callback(t)}},{key:"load",value:function(t,e){var n=this,r=this.images[t];if(r)return r;var i=new Bm;return this.images[t]=i,i.image.onload=function(){n._fixImageCoordinates(i.image),i.init(),n._redrawWithImage(i)},i.image.onerror=function(){console.error("Could not load image:",t),n._tryloadBrokenUrl(t,e,i)},i.image.src=t,i}},{key:"_fixImageCoordinates",value:function(t){0===t.width&&(document.body.appendChild(t),t.width=t.offsetWidth,t.height=t.offsetHeight,document.body.removeChild(t))}}]),t}(),Fm={},zm={get exports(){return Fm},set exports(t){Fm=t}},Zm={},Um={get exports(){return Zm},set exports(t){Zm=t}},Vm=Z((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Gm=Z,Wm=jt,Ym=nt,Hm=Vm,Km=Object.isExtensible,Qm=Gm((function(){Km(1)}))||Hm?function(t){return!!Wm(t)&&(!Hm||"ArrayBuffer"!=Ym(t))&&(!Km||Km(t))}:Km,Xm=!Z((function(){return Object.isExtensible(Object.preventExtensions({}))})),qm=Ar,Jm=J,$m=xr,tw=jt,ew=Ne,nw=Pn.f,rw=QA,iw=JA,ow=Qm,gw=Xm,sw=!1,Aw=Be("meta"),Cw=0,Iw=function(t){nw(t,Aw,{value:{objectID:"O"+Cw++,weakData:{}}})},aw=Um.exports={enable:function(){aw.enable=function(){},sw=!0;var t=rw.f,e=Jm([].splice),n={};n[Aw]=1,t(n).length&&(rw.f=function(n){for(var r=t(n),i=0,o=r.length;io;o++)if((s=f(t[o]))&&pw(_w,s))return s;return new ww(!1)}r=vw(t,i)}for(A=u?t.next:r.next;!(C=cw(A,r)).done;){try{s=f(C.value)}catch(t){bw(r,"throw",t)}if("object"==typeof s&&s&&pw(_w,s))return s}return new ww(!1)},Ew=Vt,Ow=TypeError,kw=function(t,e){if(Ew(e,t))return t;throw Ow("Incorrect invocation")},Tw=Ar,Sw=z,Pw=Zm,Nw=Z,Rw=Xn,Dw=xw,Mw=kw,jw=Ct,Bw=jt,Lw=Pg,Fw=Pn.f,zw=FC.forEach,Zw=at,Uw=wo.set,Vw=wo.getterFor,Gw=function(t,e,n){var r,i=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),g=i?"set":"add",s=Sw[t],A=s&&s.prototype,C={};if(Zw&&jw(s)&&(o||A.forEach&&!Nw((function(){(new s).entries().next()})))){var I=(r=e((function(e,n){Uw(Mw(e,I),{type:t,collection:new s}),null!=n&&Dw(n,e[g],{that:e,AS_ENTRIES:i})}))).prototype,a=Vw(t);zw(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in A)||o&&"clear"==t||Rw(I,t,(function(n,r){var i=a(this).collection;if(!e&&o&&!Bw(n))return"get"==t&&void 0;var g=i[t](0===n?0:n,r);return e?this:g}))})),o||Fw(I,"size",{configurable:!0,get:function(){return a(this).collection.size}})}else r=n.getConstructor(e,t,i,g),Pw.enable();return Lw(r,t,!1,!0),C[t]=r,Tw({global:!0,forced:!0},C),o||n.setStrong(r,t,i),r},Ww=ug,Yw=function(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:Ww(t,r,e[r],n);return t},Hw=Ut,Kw=aC,Qw=at,Xw=Ye("species"),qw=function(t){var e=Hw(t);Qw&&e&&!e[Xw]&&Kw(e,Xw,{configurable:!0,get:function(){return this}})},Jw=eg,$w=aC,t_=Yw,e_=Sn,n_=kw,r_=Ot,i_=xw,o_=os,g_=gs,s_=qw,A_=at,C_=Zm.fastKey,I_=wo.set,a_=wo.getterFor,u_={getConstructor:function(t,e,n,r){var i=t((function(t,i){n_(t,o),I_(t,{type:e,index:Jw(null),first:void 0,last:void 0,size:0}),A_||(t.size=0),r_(i)||i_(i,t[r],{that:t,AS_ENTRIES:n})})),o=i.prototype,g=a_(e),s=function(t,e,n){var r,i,o=g(t),s=A(t,e);return s?s.value=n:(o.last=s={index:i=C_(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),A_?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},A=function(t,e){var n,r=g(t),i=C_(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return t_(o,{clear:function(){for(var t=g(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,A_?t.size=0:this.size=0},delete:function(t){var e=this,n=g(e),r=A(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),A_?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=g(this),r=e_(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!A(this,t)}}),t_(o,n?{get:function(t){var e=A(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),A_&&$w(o,"size",{configurable:!0,get:function(){return g(this).size}}),i},setStrong:function(t,e,n){var r=e+" Iterator",i=a_(e),o=a_(r);o_(t,e,(function(t,e){I_(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?g_("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,g_(void 0,!0))}),n?"entries":"values",!n,!0),s_(e)}};Gw("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),u_);var c_=Bt.Map;!function(t){t.exports=c_}(zm);var l_=j(Fm),h_=function(){function t(){Bu(this,t),this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},Jr(this.options,this.defaultOptions)}return nl(t,[{key:"setOptions",value:function(t){var e=["useDefaultGroups"];if(void 0!==t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&-1===cp(e).call(e,n)){var r=t[n];this.add(n,r)}}},{key:"clear",value:function(){this._groups=new l_,this._groupNames=[]}},{key:"get",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this._groups.get(t);if(void 0===n&&e)if(!1===this.options.useDefaultGroups&&this._groupNames.length>0){var r=this._groupIndex%this._groupNames.length;++this._groupIndex,(n={}).color=this._groups.get(this._groupNames[r]),this._groups.set(t,n)}else{var i=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,(n={}).color=this._defaultGroups[i],this._groups.set(t,n)}return n}},{key:"add",value:function(t,e){return this._groups.has(t)||this._groupNames.push(t),this._groups.set(t,e),e}}]),t}(),d_={},f_={get exports(){return d_},set exports(t){d_=t}};Ar({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var p_=Bt.Number.isNaN;!function(t){t.exports=p_}(f_);var v_=j(d_),y_={},b_={get exports(){return y_},set exports(t){y_=t}},m_=z.isFinite;Ar({target:"Number",stat:!0},{isFinite:Number.isFinite||function(t){return"number"==typeof t&&m_(t)}});var w_=Bt.Number.isFinite;!function(t){t.exports=w_}(b_);var __=j(y_),x_={},E_={get exports(){return x_},set exports(t){x_=t}},O_=FC.some;Ar({target:"Array",proto:!0,forced:!Dh("some")},{some:function(t){return O_(this,t,arguments.length>1?arguments[1]:void 0)}});var k_=hi("Array").some,T_=Vt,S_=k_,P_=Array.prototype,N_=function(t){var e=t.some;return t===P_||T_(P_,t)&&e===P_.some?S_:e};!function(t){t.exports=N_}(E_);var R_=j(x_);function D_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var M_={},j_={get exports(){return M_},set exports(t){M_=t}},B_={},L_=Op;!function(t){t.exports=L_}({get exports(){return B_},set exports(t){B_=t}}),function(t){t.exports=B_}(j_);var F_=j(M_),z_={},Z_={get exports(){return z_},set exports(t){z_=t}},U_={},V_={get exports(){return U_},set exports(t){U_=t}};Ar({target:"Object",stat:!0},{setPrototypeOf:Wg});var G_=Bt.Object.setPrototypeOf;!function(t){t.exports=G_}(V_),function(t){t.exports=U_}(Z_);var W_=j(z_),Y_={},H_={get exports(){return Y_},set exports(t){Y_=t}},K_={},Q_=yi;!function(t){t.exports=Q_}({get exports(){return K_},set exports(t){K_=t}}),function(t){t.exports=K_}(H_);var X_=j(Y_);function q_(t,e){var n;return q_=W_?X_(n=W_).call(n):function(t,e){return t.__proto__=e,t},q_(t,e)}function J_(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=F_(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Uu(t,"prototype",{writable:!1}),e&&q_(t,e)}function $_(t,e){if(e&&("object"===Hc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return D_(t)}var tx={},ex={get exports(){return tx},set exports(t){tx=t}},nx={},rx=sf;!function(t){t.exports=rx}({get exports(){return nx},set exports(t){nx=t}}),function(t){t.exports=nx}(ex);var ix=j(tx);function ox(t){var e;return ox=W_?X_(e=ix).call(e):function(t){return t.__proto__||ix(t)},ox(t)}var gx={},sx={get exports(){return gx},set exports(t){gx=t}},Ax={};!function(t){var e=Vu,n=zc;function r(i){return t.exports=r="function"==typeof e&&"symbol"==typeof n?function(t){return typeof t}:function(t){return t&&"function"==typeof e&&t.constructor===e&&t!==e.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(i)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}({get exports(){return Ax},set exports(t){Ax=t}});var Cx={},Ix={get exports(){return Cx},set exports(t){Cx=t}},ax={},ux=Gh;!function(t){t.exports=ux}({get exports(){return ax},set exports(t){ax=t}}),function(t){t.exports=ax}(Ix);var cx={},lx={get exports(){return cx},set exports(t){cx=t}},hx={},dx={get exports(){return hx},set exports(t){hx=t}},fx=Ne,px=Au,vx=It,yx=Pn,bx=jt,mx=Xn,wx=Error,_x=J("".replace),xx=String(wx("zxcasd").stack),Ex=/\n\s*at [^:]*:[^\n]*/,Ox=Ex.test(xx),kx=bt,Tx=!Z((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",kx(1,7)),7!==t.stack)})),Sx=Xn,Px=Tx,Nx=Error.captureStackTrace,Rx=Hi,Dx=Ar,Mx=Vt,jx=Ig,Bx=Wg,Lx=eg,Fx=Xn,zx=bt,Zx=function(t,e,n,r){Px&&(Nx?Nx(t,e):Sx(t,"stack",function(t,e){if(Ox&&"string"==typeof t&&!wx.prepareStackTrace)for(;e--;)t=_x(t,Ex,"");return t}(n,r)))},Ux=xw,Vx=Ye("toStringTag"),Gx=Error,Wx=[].push,Yx=function(t,e){var n,r,i,o=Mx(Hx,this);Bx?n=Bx(Gx(),o?jx(this):Hx):(n=o?this:Lx(Hx),Fx(n,Vx,"Error")),void 0!==e&&Fx(n,"message",function(t,e){return void 0===t?arguments.length<2?"":e:Rx(t)}(e)),Zx(n,Yx,n.stack,1),arguments.length>2&&(r=n,bx(i=arguments[2])&&"cause"in i&&mx(r,"cause",i.cause));var g=[];return Ux(t,Wx,{that:g}),Fx(n,"errors",g),n};Bx?Bx(Yx,Gx):function(t,e,n){for(var r=px(e),i=yx.f,o=vx.f,g=0;g=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var g=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(g&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),w}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:B(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),w}},u}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}(sx);var _T=gx(),xT=_T;try{regeneratorRuntime=_T}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=_T:Function("r","regeneratorRuntime = r")(_T)}var ET={},OT={get exports(){return ET},set exports(t){ET=t}},kT=ue,TT=Te,ST=Et,PT=vr,NT=TypeError,RT=function(t){return function(e,n,r,i){kT(n);var o=TT(e),g=ST(o),s=PT(o),A=t?s-1:0,C=t?-1:1;if(r<2)for(;;){if(A in g){i=g[A],A+=C;break}if(A+=C,t?A<0:s<=A)throw NT("Reduce of empty array with no initial value")}for(;t?A>=0:s>A;A+=C)A in g&&(i=n(i,g[A],A,o));return i}},DT=[RT(!1),RT(!0)][0];Ar({target:"Array",proto:!0,forced:!Jx&&qt>79&&qt<83||!Dh("reduce")},{reduce:function(t){var e=arguments.length;return DT(this,t,e,e>1?arguments[1]:void 0)}});var MT=hi("Array").reduce,jT=Vt,BT=MT,LT=Array.prototype,FT=function(t){var e=t.reduce;return t===LT||jT(LT,t)&&e===LT.reduce?BT:e};!function(t){t.exports=FT}(OT);var zT=j(ET),ZT={},UT={get exports(){return ZT},set exports(t){ZT=t}},VT=xC,GT=vr,WT=Ku,YT=Sn,HT=function(t,e,n,r,i,o,g,s){for(var A,C,I=i,a=0,u=!!g&&YT(g,s);a0&&VT(A)?(C=GT(A),I=HT(t,e,A,C,I,o-1)-1):(WT(I+1),t[I]=A),I++),a++;return I},KT=HT,QT=ue,XT=Te,qT=vr,JT=PC;Ar({target:"Array",proto:!0},{flatMap:function(t){var e,n=XT(this),r=qT(n);return QT(t),(e=JT(n,0)).length=KT(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var $T=hi("Array").flatMap,tS=Vt,eS=$T,nS=Array.prototype,rS=function(t){var e=t.flatMap;return t===nS||tS(nS,t)&&e===nS.flatMap?eS:e};!function(t){t.exports=rS}(UT);var iS={},oS={get exports(){return iS},set exports(t){iS=t}};Gw("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),u_);var gS=Bt.Set;!function(t){t.exports=gS}(oS);var sS=j(iS),AS={};!function(t){t.exports=Gc}({get exports(){return AS},set exports(t){AS=t}});var CS=j(AS),IS={},aS={get exports(){return IS},set exports(t){IS=t}},uS={},cS=oA;!function(t){t.exports=cS}({get exports(){return uS},set exports(t){uS=t}}),function(t){t.exports=uS}(aS);var lS=j(IS),hS={},dS={get exports(){return hS},set exports(t){hS=t}},fS=iC,pS=Math.floor,vS=function(t,e){var n=t.length,r=pS(n/2);return n<8?yS(t,e):bS(t,vS(fS(t,0,r),e),vS(fS(t,r),e),e)},yS=function(t,e){for(var n,r,i=t.length,o=1;o0;)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},bS=function(t,e,n,r){for(var i=e.length,o=n.length,g=0,s=0;g3)){if(FS)return!0;if(ZS)return ZS<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)US.push({k:e+r,v:n})}for(US.sort((function(t,e){return e.v-t.v})),r=0;rDS(n)?1:-1}}(t)),n=NS(i),r=0;r=t.length?{done:!0}:{done:!1,value:t[r++]}},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,g=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return g=t.done,t},e:function(t){s=!0,o=t},f:function(){try{g||null==n.return||n.return()}finally{if(s)throw o}}}}function AN(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nthis.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=rv((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;Wh(t=Nd(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(e,n){var r=new t(n);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=function(){r.flush()};var i=[{name:"flush",original:void 0}];if(n&&n.replace)for(var o=0;oi&&(i=A,r=s)}return r}},{key:"min",value:function(t){var e=lS(this._pairs),n=e.next();if(n.done)return null;for(var r=n.value[1],i=t(n.value[1],n.value[0]);!(n=e.next()).done;){var o=Vl(n.value,2),g=o[0],s=o[1],A=t(s,g);A1?n-1:0),i=1;ii?1:ri)&&(r=g,i=s)}}catch(t){o.e(t)}finally{o.f()}return r||null}},{key:"min",value:function(t){var e,n,r=null,i=null,o=sN(mP(e=this._data).call(e));try{for(o.s();!(n=o.n()).done;){var g=n.value,s=g[t];"number"==typeof s&&(null==i||se.x&&t.tope.y}function FN(t){return"string"==typeof t&&""!==t}function zN(t,e,n,r){var i=r.x,o=r.y;if("function"==typeof r.distanceToBorder){var g=r.distanceToBorder(t,e),s=Math.sin(e)*g,A=Math.cos(e)*g;A===g?(i+=g,o=r.y):s===g?(i=r.x,o-=g):(i+=A,o-=s)}else r.shape.width>r.shape.height?(i=r.x+.5*r.shape.width,o=r.y-n):(i=r.x+n,o=r.y-.5*r.shape.height);return{x:i,y:o}}var ZN=function(){function t(e){Bu(this,t),this.measureText=e,this.current=0,this.width=0,this.height=0,this.lines=[]}return nl(t,[{key:"_add",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";void 0===this.lines[t]&&(this.lines[t]={width:0,height:0,blocks:[]});var r=e;void 0!==e&&""!==e||(r=" ");var i=this.measureText(r,n),o=Jr({},mP(i));o.text=e,o.width=i.width,o.mod=n,void 0!==e&&""!==e||(o.width=0),this.lines[t].blocks.push(o),this.lines[t].width+=o.width}},{key:"curWidth",value:function(){var t=this.lines[this.current];return void 0===t?0:t.width}},{key:"append",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,t,e)}},{key:"newLine",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,t,e),this.current++}},{key:"determineLineHeights",value:function(){for(var t=0;tt&&(t=r.width),e+=r.height}this.width=t,this.height=e}},{key:"removeEmptyBlocks",value:function(){for(var t=[],e=0;e"://,""://,""://,"":/<\/b>/,"":/<\/i>/,"":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},VN=function(){function t(e){Bu(this,t),this.text=e,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return nl(t,[{key:"mod",value:function(){return 0===this.modStack.length?"normal":this.modStack[0]}},{key:"modName",value:function(){return 0===this.modStack.length?"normal":"mono"===this.modStack[0]?"mono":this.bold&&this.ital?"boldital":this.bold?"bold":this.ital?"ital":void 0}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(t){" "===t&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1)," "!=t&&(this.buffer+=t)}},{key:"parseWS",value:function(t){return!!/[ \t]/.test(t)&&(this.mono?this.add(t):this.spacing=!0,!0)}},{key:"setTag",value:function(t){this.emitBlock(),this[t]=!0,this.modStack.unshift(t)}},{key:"unsetTag",value:function(t){this.emitBlock(),this[t]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(t,e){return!(this.mono||this[t]||!this.match(e)||(this.setTag(t),0))}},{key:"match",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Vl(this.prepareRegExp(t),2),r=n[0],i=n[1],o=r.test(this.text.substr(this.position,i));return o&&e&&(this.position+=i-1),o}},{key:"parseEndTag",value:function(t,e,n){var r=this.mod()===t;return!(!(r="mono"===t?r&&this.mono:r&&!this.mono)||!this.match(e)||(void 0!==n?(this.position===this.text.length-1||this.match(n,!1))&&this.unsetTag(t):this.unsetTag(t),0))}},{key:"replace",value:function(t,e){return!!this.match(t)&&(this.add(e),this.position+=length-1,!0)}},{key:"prepareRegExp",value:function(t){var e,n;if(t instanceof RegExp)n=t,e=1;else{var r=UN[t];n=void 0!==r?r:new RegExp(t),e=t.length}return[n,e]}}]),t}(),GN=function(){function t(e,n,r,i){var o=this;Bu(this,t),this.ctx=e,this.parent=n,this.selected=r,this.hover=i,this.lines=new ZN((function(t,n){if(void 0===t)return 0;var g=o.parent.getFormattingValues(e,r,i,n),s=0;return""!==t&&(s=o.ctx.measureText(t).width),{width:s,values:g}}))}return nl(t,[{key:"process",value:function(t){if(!FN(t))return this.lines.finalize();var e=this.parent.fontOptions;t=(t=t.replace(/\r\n/g,"\n")).replace(/\r/g,"\n");var n=String(t).split("\n"),r=n.length;if(e.multi)for(var i=0;i0)for(var g=0;g0)for(var u=0;u")||e.parseStartTag("ital","")||e.parseStartTag("mono","")||e.parseEndTag("bold","")||e.parseEndTag("ital","")||e.parseEndTag("mono",""))||n(r)||e.add(r),e.position++}return e.emitBlock(),e.blocks}},{key:"splitMarkdownBlocks",value:function(t){for(var e=this,n=new VN(t),r=!0,i=function(t){return!!/\\/.test(t)&&(n.positionthis.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(t){for(var e="",n=0;n1&&void 0!==arguments[1]?arguments[1]:"normal",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.parent.getFormattingValues(this.ctx,this.selected,this.hover,e);for(var r=(t=(t=t.replace(/^( +)/g,"$1\r")).replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r")).split("\r");r.length>0;){var i=this.getLongestFit(r);if(0===i){var o=r[0],g=this.getLongestFitWord(o);this.lines.newLine(nh(o).call(o,0,g),e),r[0]=nh(o).call(o,g)}else{var s=i;" "===r[i-1]?i--:" "===r[s]&&s++;var A=nh(r).call(r,0,i).join("");i==r.length&&n?this.lines.append(A,e):this.lines.newLine(A,e),r=nh(r).call(r,s)}}}}]),t}(),WN=["bold","ital","boldital","mono"],YN=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Bu(this,t),this.body=e,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(n),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=r}return nl(t,[{key:"setOptions",value:function(t){if(this.elementOptions=t,this.initFontOptions(t.font),FN(t.label)?this.labelDirty=!0:t.label=void 0,void 0!==t.font&&null!==t.font)if("string"==typeof t.font)this.baseSize=this.fontOptions.size;else if("object"===Hc(t.font)){var e=t.font.size;void 0!==e&&(this.baseSize=e)}}},{key:"initFontOptions",value:function(e){var n=this;Rb(WN,(function(t){n.fontOptions[t]={}})),t.parseFontString(this.fontOptions,e)?this.fontOptions.vadjust=0:Rb(e,(function(t,e){null!=t&&"object"!==Hc(t)&&(n.fontOptions[e]=t)}))}},{key:"constrain",value:function(t){var e={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},n=Yb(t,"widthConstraint");if("number"==typeof n)e.maxWdt=Number(n),e.minWdt=Number(n);else if("object"===Hc(n)){var r=Yb(t,["widthConstraint","maximum"]);"number"==typeof r&&(e.maxWdt=Number(r));var i=Yb(t,["widthConstraint","minimum"]);"number"==typeof i&&(e.minWdt=Number(i))}var o=Yb(t,"heightConstraint");if("number"==typeof o)e.minHgt=Number(o);else if("object"===Hc(o)){var g=Yb(t,["heightConstraint","minimum"]);"number"==typeof g&&(e.minHgt=Number(g));var s=Yb(t,["heightConstraint","valign"]);"string"==typeof s&&("top"!==s&&"bottom"!==s||(e.valign=s))}return e}},{key:"update",value:function(t,e){this.setOptions(t,!0),this.propagateFonts(e),Sb(this.fontOptions,this.constrain(e)),this.fontOptions.chooser=BN("label",e)}},{key:"adjustSizes",value:function(t){var e=t?t.right+t.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=e,this.fontOptions.minWdt-=e);var n=t?t.top+t.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=n)}},{key:"addFontOptionsToPile",value:function(t,e){for(var n=0;n5&&void 0!==arguments[5]?arguments[5]:"middle";if(void 0!==this.elementOptions.label){var g=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&g=this.elementOptions.scaling.label.maxVisible&&(g=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(t,r,i,e,n,o),this._drawBackground(t),this._drawText(t,e,this.size.yLine,o,g))}}},{key:"_drawBackground",value:function(t){if(void 0!==this.fontOptions.background&&"none"!==this.fontOptions.background){t.fillStyle=this.fontOptions.background;var e=this.getSize();t.fillRect(e.left,e.top,e.width,e.height)}}},{key:"_drawText",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"middle",i=arguments.length>4?arguments[4]:void 0,o=Vl(this._setAlignment(t,e,n,r),2);e=o[0],n=o[1],t.textAlign="left",e-=this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&("top"===this.fontOptions.valign&&(n-=(this.size.height-this.size.labelHeight)/2),"bottom"===this.fontOptions.valign&&(n+=(this.size.height-this.size.labelHeight)/2));for(var g=0;g0&&(t.lineWidth=I.strokeWidth,t.strokeStyle=c,t.lineJoin="round"),t.fillStyle=u,I.strokeWidth>0&&t.strokeText(I.text,e+A,n+I.vadjust),t.fillText(I.text,e+A,n+I.vadjust),A+=I.width}n+=s.height}}}},{key:"_setAlignment",value:function(t,e,n,r){return this.isEdgeLabel&&"horizontal"!==this.fontOptions.align&&!1===this.pointToSelf?(e=0,n=0,"top"===this.fontOptions.align?(t.textBaseline="alphabetic",n-=4):"bottom"===this.fontOptions.align?(t.textBaseline="hanging",n+=4):t.textBaseline="middle"):t.textBaseline=r,[e,n]}},{key:"_getColor",value:function(t,e,n){var r=t||"#000000",i=n||"#ffffff";if(e<=this.elementOptions.scaling.label.drawThreshold){var o=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-e)));r=Mb(r,o),i=Mb(i,o)}return[r,i]}},{key:"getTextSize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this._processLabel(t,e,n),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var t=this.size.left,e=this.size.top-1;if(this.isEdgeLabel){var n=.5*-this.size.width;switch(this.fontOptions.align){case"middle":t=n,e=.5*-this.size.height;break;case"top":t=n,e=-(this.size.height+2);break;case"bottom":t=n,e=2}}return{left:t,top:e,width:this.size.width,height:this.size.height}}},{key:"calculateLabelSize",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";this._processLabel(t,e,n),this.size.left=r-.5*this.size.width,this.size.top=i-.5*this.size.height,this.size.yLine=i+.5*(1-this.lineCount)*this.fontOptions.size,"hanging"===o&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(t,e,n,r){var i=function(t,e,n){return"normal"===e?"mod"===n?"":t[n]:void 0!==t[e][n]?t[e][n]:t[n]},o={color:i(this.fontOptions,r,"color"),size:i(this.fontOptions,r,"size"),face:i(this.fontOptions,r,"face"),mod:i(this.fontOptions,r,"mod"),vadjust:i(this.fontOptions,r,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(e||n)&&("normal"===r&&!0===this.fontOptions.chooser&&this.elementOptions.labelHighlightBold?o.mod="bold":"function"==typeof this.fontOptions.chooser&&this.fontOptions.chooser(o,this.elementOptions.id,e,n));var g="";return void 0!==o.mod&&""!==o.mod&&(g+=o.mod+" "),g+=o.size+"px "+o.face,t.font=g.replace(/"/g,""),o.font=t.font,o.height=o.size,o}},{key:"differentState",value:function(t,e){return t!==this.selectedState||e!==this.hoverState}},{key:"_processLabelText",value:function(t,e,n,r){return new GN(t,this,e,n).process(r)}},{key:"_processLabel",value:function(t,e,n){if(!1!==this.labelDirty||this.differentState(e,n)){var r=this._processLabelText(t,e,n,this.elementOptions.label);this.fontOptions.minWdt>0&&r.width0&&r.height0&&(this.enableBorderDashes(t,e),t.stroke(),this.disableBorderDashes(t,e)),t.restore()}},{key:"performFill",value:function(t,e){t.save(),t.fillStyle=e.color,this.enableShadow(t,e),lv(t).call(t),this.disableShadow(t,e),t.restore(),this.performStroke(t,e)}},{key:"_addBoundingBoxMargin",value:function(t){this.boundingBox.left-=t,this.boundingBox.top-=t,this.boundingBox.bottom+=t,this.boundingBox.right+=t}},{key:"_updateBoundingBox",value:function(t,e,n,r,i){void 0!==n&&this.resize(n,r,i),this.left=t-this.width/2,this.top=e-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(t,e,n,r,i){this._updateBoundingBox(t,e,n,r,i)}},{key:"getDimensionsFromLabel",value:function(t,e,n){this.textSize=this.labelModule.getTextSize(t,e,n);var r=this.textSize.width,i=this.textSize.height;return 0===r&&(r=14,i=14),{width:r,height:i}}}]),t}();var KN=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){var o;return Bu(this,i),(o=r.call(this,t,e,n))._setMargins(n),o}return nl(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,n)){var r=this.getDimensionsFromLabel(t,e,n);this.width=r.width+this.margin.right+this.margin.left,this.height=r.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(t,e,n,r,i,o){this.resize(t,r,i),this.left=e-this.width/2,this.top=n-this.height/2,this.initContextForDraw(t,o),wi(t,this.left,this.top,this.width,this.height,o.borderRadius),this.performFill(t,o),this.updateBoundingBox(e,n,t,r,i),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,r,i)}},{key:"updateBoundingBox",value:function(t,e,n,r,i){this._updateBoundingBox(t,e,n,r,i);var o=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(o)}},{key:"distanceToBorder",value:function(t,e){t&&this.resize(t);var n=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(e)),Math.abs(this.height/2/Math.sin(e)))+n}}]),i}(HN);var QN=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){var o;return Bu(this,i),(o=r.call(this,t,e,n)).labelOffset=0,o.selected=!1,o}return nl(i,[{key:"setOptions",value:function(t,e,n){this.options=t,void 0===e&&void 0===n||this.setImages(e,n)}},{key:"setImages",value:function(t,e){e&&this.selected?(this.imageObj=e,this.imageObjAlt=t):(this.imageObj=t,this.imageObjAlt=e)}},{key:"switchImages",value:function(t){var e=t&&!this.selected||!t&&this.selected;if(this.selected=t,void 0!==this.imageObjAlt&&e){var n=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=n}}},{key:"_getImagePadding",value:function(){var t={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var e=this.options.imagePadding;"object"==Hc(e)?(t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left):(t.top=e,t.right=e,t.bottom=e,t.left=e)}return t}},{key:"_resizeImage",value:function(){var t,e;if(!1===this.options.shapeProperties.useImageSize){var n=1,r=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?n=this.imageObj.width/this.imageObj.height:r=this.imageObj.height/this.imageObj.width),t=2*this.options.size*n,e=2*this.options.size*r}else{var i=this._getImagePadding();t=this.imageObj.width+i.left+i.right,e=this.imageObj.height+i.top+i.bottom}this.width=t,this.height=e,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(t,e,n,r){this.initContextForDraw(t,r),mi(t,e,n,r.size),this.performFill(t,r)}},{key:"_drawImageAtPosition",value:function(t,e){if(0!=this.imageObj.width){t.globalAlpha=void 0!==e.opacity?e.opacity:1,this.enableShadow(t,e);var n=1;!0===this.options.shapeProperties.interpolation&&(n=this.imageObj.width/this.width/this.body.view.scale);var r=this._getImagePadding(),i=this.left+r.left,o=this.top+r.top,g=this.width-r.left-r.right,s=this.height-r.top-r.bottom;this.imageObj.drawImageAtPosition(t,n,i,o,g,s),this.disableShadow(t,e)}}},{key:"_drawImageLabel",value:function(t,e,n,r,i){var o=0;if(void 0!==this.height){o=.5*this.height;var g=this.labelModule.getTextSize(t,r,i);g.lineCount>=1&&(o+=g.height/2)}var s=n+o;this.options.label&&(this.labelOffset=o),this.labelModule.draw(t,e,s,r,i,"hanging")}}]),i}(HN);var XN=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){var o;return Bu(this,i),(o=r.call(this,t,e,n))._setMargins(n),o}return nl(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,n)){var r=this.getDimensionsFromLabel(t,e,n),i=Math.max(r.width+this.margin.right+this.margin.left,r.height+this.margin.top+this.margin.bottom);this.options.size=i/2,this.width=i,this.height=i,this.radius=this.width/2}}},{key:"draw",value:function(t,e,n,r,i,o){this.resize(t,r,i),this.left=e-this.width/2,this.top=n-this.height/2,this._drawRawCircle(t,e,n,o),this.updateBoundingBox(e,n),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,n,r,i)}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size}},{key:"distanceToBorder",value:function(t){return t&&this.resize(t),.5*this.width}}]),i}(QN);var qN=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n,o,g){var s;return Bu(this,i),(s=r.call(this,t,e,n)).setImages(o,g),s}return nl(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height){var r=2*this.options.size;return this.width=r,this.height=r,void(this.radius=.5*this.width)}this.needsRefresh(e,n)&&this._resizeImage()}},{key:"draw",value:function(t,e,n,r,i,o){this.switchImages(r),this.resize();var g=e,s=n;"top-left"===this.options.shapeProperties.coordinateOrigin?(this.left=e,this.top=n,g+=this.width/2,s+=this.height/2):(this.left=e-this.width/2,this.top=n-this.height/2),this._drawRawCircle(t,g,s,o),t.save(),t.clip(),this._drawImageAtPosition(t,o),t.restore(),this._drawImageLabel(t,g,s,r,i),this.updateBoundingBox(e,n)}},{key:"updateBoundingBox",value:function(t,e){"top-left"===this.options.shapeProperties.coordinateOrigin?(this.boundingBox.top=e,this.boundingBox.left=t,this.boundingBox.right=t+2*this.options.size,this.boundingBox.bottom=e+2*this.options.size):(this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(t){return t&&this.resize(t),.5*this.width}}]),i}(QN);var JN=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){return Bu(this,i),r.call(this,t,e,n)}return nl(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{size:this.options.size};if(this.needsRefresh(e,n)){var i,o;this.labelModule.getTextSize(t,e,n);var g=2*r.size;this.width=null!==(i=this.customSizeWidth)&&void 0!==i?i:g,this.height=null!==(o=this.customSizeHeight)&&void 0!==o?o:g,this.radius=.5*this.width}}},{key:"_drawShape",value:function(t,e,n,r,i,o,g,s){var A,C=this;return this.resize(t,o,g,s),this.left=r-this.width/2,this.top=i-this.height/2,this.initContextForDraw(t,s),(A=e,Object.prototype.hasOwnProperty.call(Oi,A)?Oi[A]:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),i}(HN);function $N(t,e){var n=wh(t);if(Za){var r=Za(t);e&&(r=ff(r).call(r,(function(e){return tu(t,e).enumerable}))),n.push.apply(n,r)}return n}function tR(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,n)){var r=this.getDimensionsFromLabel(t,e,n);this.height=2*r.height,this.width=r.width+r.height,this.radius=.5*this.width}}},{key:"draw",value:function(t,e,n,r,i,o){this.resize(t,r,i),this.left=e-.5*this.width,this.top=n-.5*this.height,this.initContextForDraw(t,o),_i(t,this.left,this.top,this.width,this.height),this.performFill(t,o),this.updateBoundingBox(e,n,t,r,i),this.labelModule.draw(t,e,n,r,i)}},{key:"distanceToBorder",value:function(t,e){t&&this.resize(t);var n=.5*this.width,r=.5*this.height,i=Math.sin(e)*n,o=Math.cos(e)*r;return n*r/Math.sqrt(i*i+o*o)}}]),i}(HN);var gR=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){var o;return Bu(this,i),(o=r.call(this,t,e,n))._setMargins(n),o}return nl(i,[{key:"resize",value:function(t,e,n){this.needsRefresh(e,n)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(t,e,n,r,i,o){var g=this;return this.resize(t,r,i),this.options.icon.size=this.options.icon.size||50,this.left=e-this.width/2,this.top=n-this.height/2,this._icon(t,e,n,r,i,o),{drawExternalLabel:function(){void 0!==g.options.label&&g.labelModule.draw(t,g.left+g.iconSize.width/2+g.margin.left,n+g.height/2+5,r),g.updateBoundingBox(e,n)}}}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-.5*this.options.icon.size,this.boundingBox.left=t-.5*this.options.icon.size,this.boundingBox.right=t+.5*this.options.icon.size,this.boundingBox.bottom=e+.5*this.options.icon.size,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+5))}},{key:"_icon",value:function(t,e,n,r,i,o){var g=Number(this.options.icon.size);void 0!==this.options.icon.code?(t.font=[null!=this.options.icon.weight?this.options.icon.weight:r?"bold":"",(null!=this.options.icon.weight&&r?5:0)+g+"px",this.options.icon.face].join(" "),t.fillStyle=this.options.icon.color||"black",t.textAlign="center",t.textBaseline="middle",this.enableShadow(t,o),t.fillText(this.options.icon.code,e,n),this.disableShadow(t,o)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(HN);var sR=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n,o,g){var s;return Bu(this,i),(s=r.call(this,t,e,n)).setImages(o,g),s}return nl(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height){var r=2*this.options.size;return this.width=r,void(this.height=r)}this.needsRefresh(e,n)&&this._resizeImage()}},{key:"draw",value:function(t,e,n,r,i,o){t.save(),this.switchImages(r),this.resize();var g=e,s=n;if("top-left"===this.options.shapeProperties.coordinateOrigin?(this.left=e,this.top=n,g+=this.width/2,s+=this.height/2):(this.left=e-this.width/2,this.top=n-this.height/2),!0===this.options.shapeProperties.useBorderWithImage){var A=this.options.borderWidth,C=this.options.borderWidthSelected||2*this.options.borderWidth,I=(r?C:A)/this.body.view.scale;t.lineWidth=Math.min(this.width,I),t.beginPath();var a=r?this.options.color.highlight.border:i?this.options.color.hover.border:this.options.color.border,u=r?this.options.color.highlight.background:i?this.options.color.hover.background:this.options.color.background;void 0!==o.opacity&&(a=Mb(a,o.opacity),u=Mb(u,o.opacity)),t.strokeStyle=a,t.fillStyle=u,t.rect(this.left-.5*t.lineWidth,this.top-.5*t.lineWidth,this.width+t.lineWidth,this.height+t.lineWidth),lv(t).call(t),this.performStroke(t,o),t.closePath()}this._drawImageAtPosition(t,o),this._drawImageLabel(t,g,s,r,i),this.updateBoundingBox(e,n),t.restore()}},{key:"updateBoundingBox",value:function(t,e){this.resize(),"top-left"===this.options.shapeProperties.coordinateOrigin?(this.left=t,this.top=e):(this.left=t-this.width/2,this.top=e-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(QN);var AR=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){return Bu(this,i),r.call(this,t,e,n)}return nl(i,[{key:"draw",value:function(t,e,n,r,i,o){return this._drawShape(t,"square",2,e,n,r,i,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(JN);var CR=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){return Bu(this,i),r.call(this,t,e,n)}return nl(i,[{key:"draw",value:function(t,e,n,r,i,o){return this._drawShape(t,"hexagon",4,e,n,r,i,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(JN);var IR=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){return Bu(this,i),r.call(this,t,e,n)}return nl(i,[{key:"draw",value:function(t,e,n,r,i,o){return this._drawShape(t,"star",4,e,n,r,i,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(JN);var aR=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){var o;return Bu(this,i),(o=r.call(this,t,e,n))._setMargins(n),o}return nl(i,[{key:"resize",value:function(t,e,n){this.needsRefresh(e,n)&&(this.textSize=this.labelModule.getTextSize(t,e,n),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(t,e,n,r,i,o){this.resize(t,r,i),this.left=e-this.width/2,this.top=n-this.height/2,this.enableShadow(t,o),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,r,i),this.disableShadow(t,o),this.updateBoundingBox(e,n,t,r,i)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(HN);var uR=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){return Bu(this,i),r.call(this,t,e,n)}return nl(i,[{key:"draw",value:function(t,e,n,r,i,o){return this._drawShape(t,"triangle",3,e,n,r,i,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(JN);var cR=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){return Bu(this,i),r.call(this,t,e,n)}return nl(i,[{key:"draw",value:function(t,e,n,r,i,o){return this._drawShape(t,"triangleDown",3,e,n,r,i,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(JN);function lR(t,e){var n=wh(t);if(Za){var r=Za(t);e&&(r=ff(r).call(r,(function(e){return tu(t,e).enumerable}))),n.push.apply(n,r)}return n}function hR(t){for(var e=1;et.left&&this.shape.topt.top}},{key:"isBoundingBoxOverlappingWith",value:function(t){return this.shape.boundingBox.leftt.left&&this.shape.boundingBox.topt.top}}],[{key:"checkOpacity",value:function(t){return 0<=t&&t<=1}},{key:"checkCoordinateOrigin",value:function(t){return void 0===t||"center"===t||"top-left"===t}},{key:"updateGroupOptions",value:function(e,n,r){var i;if(void 0!==r){var o=e.group;if(void 0!==n&&void 0!==n.group&&o!==n.group)throw new Error("updateGroupOptions: group values in options don't match.");if("number"==typeof o||"string"==typeof o&&""!=o){var g=r.get(o);void 0!==g.opacity&&void 0===n.opacity&&(t.checkOpacity(g.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+g.opacity),g.opacity=void 0));var s=ff(i=jN(n)).call(i,(function(t){return null!=n[t]}));s.push("font"),Tb(s,e,g),e.color=Bb(e.color)}}}},{key:"parseOptions",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0;if(Tb(["color","fixed","shadow"],e,n,r),t.checkMass(n),void 0!==e.opacity&&(t.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),void 0!==n.opacity&&(t.checkOpacity(n.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+n.opacity),n.opacity=void 0)),n.shapeProperties&&!t.checkCoordinateOrigin(n.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+n.shapeProperties.coordinateOrigin),Gb(e,n,"shadow",i),void 0!==n.color&&null!==n.color){var g=Bb(n.color);Ob(e.color,g)}else!0===r&&null===n.color&&(e.color=Vb(i.color));void 0!==n.fixed&&null!==n.fixed&&("boolean"==typeof n.fixed?(e.fixed.x=n.fixed,e.fixed.y=n.fixed):(void 0!==n.fixed.x&&"boolean"==typeof n.fixed.x&&(e.fixed.x=n.fixed.x),void 0!==n.fixed.y&&"boolean"==typeof n.fixed.y&&(e.fixed.y=n.fixed.y))),!0===r&&null===n.font&&(e.font=Vb(i.font)),t.updateGroupOptions(e,n,o),void 0!==n.scaling&&Gb(e.scaling,n.scaling,"label",i.scaling)}},{key:"checkMass",value:function(t,e){if(void 0!==t.mass&&t.mass<=0){var n="";void 0!==e&&(n=" in node id: "+e),console.error("%cNegative or zero mass disallowed"+n+", setting mass to 1.",gm),t.mass=1}}}]),t}();function fR(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+t.opacity):this.options.opacity=t.opacity),void 0!==t.shape)for(var e in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,e)&&this.body.nodes[e].updateShape();if(void 0!==t.font||void 0!==t.widthConstraint||void 0!==t.heightConstraint)for(var n=0,r=wh(this.body.nodes);n1&&void 0!==arguments[1]&&arguments[1],n=this.body.data.nodes;if(lN("id",t))this.body.data.nodes=t;else if(Ah(t))this.body.data.nodes=new cN,this.body.data.nodes.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.body.data.nodes=new cN}if(n&&Rb(this.nodesListeners,(function(t,e){n.off(e,t)})),this.body.nodes={},this.body.data.nodes){var r=this;Rb(this.nodesListeners,(function(t,e){r.body.data.nodes.on(e,t)}));var i=this.body.data.nodes.getIds();this.add(i,!0)}!1===e&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:dR)(t,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Rb(this.body.nodes,(function(n,r){var i=t.body.data.nodes.get(r);void 0!==i&&(!0===e&&n.setOptions({x:null,y:null}),n.setOptions({fixed:!1}),n.setOptions(i))}))}},{key:"getPositions",value:function(t){var e={};if(void 0!==t){if(!0===Ah(t)){for(var n=0;n=t.length?{done:!0}:{done:!1,value:t[r++]}},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,g=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return g=t.done,t},e:function(t){s=!0,o=t},f:function(){try{g||null==n.return||n.return()}finally{if(s)throw o}}}}(n.get());try{for(r.s();!(t=r.n()).done;){var i=t.value,o=i.id,g=this.body.nodes[o],s=Math.round(g.x),A=Math.round(g.y);i.x===s&&i.y===A||e.push({id:o,x:s,y:A})}}catch(t){r.e(t)}finally{r.f()}n.update(e)}},{key:"getBoundingBox",value:function(t){if(void 0!==this.body.nodes[t])return this.body.nodes[t].shape.boundingBox}},{key:"getConnectedNodes",value:function(t,e){var n=[];if(void 0!==this.body.nodes[t])for(var r=this.body.nodes[t],i={},o=0;o0?(r=n/s)*r:n;return s===1/0?1/0:s*UR(i)}});var VR=Bt.Math.hypot;!function(t){t.exports=VR}(LR);var GR=j(BR);function WR(t){var e=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ox(t);if(e){var i=ox(this).constructor;n=qP(r,arguments,i)}else n=r.apply(this,arguments);return $_(this,n)}}var YR=function(){function t(){Bu(this,t)}return nl(t,null,[{key:"transform",value:function(t,e){Ah(t)||(t=[t]);for(var n=e.point.x,r=e.point.y,i=e.angle,o=e.length,g=0;g4&&void 0!==arguments[4]?arguments[4]:this.getViaNode();t.strokeStyle=this.getColor(t,e),t.lineWidth=e.width,!1!==e.dashes?this._drawDashedLine(t,e,i):this._drawLine(t,e,i)}},{key:"_drawLine",value:function(t,e,n,r,i){if(this.from!=this.to)this._line(t,e,n,r,i);else{var o=Vl(this._getCircleData(t),3),g=o[0],s=o[1],A=o[2];this._circle(t,e,g,s,A)}}},{key:"_drawDashedLine",value:function(t,e,n,r,i){t.lineCap="round";var o=Ah(e.dashes)?e.dashes:[5,5];if(void 0!==t.setLineDash){if(t.save(),t.setLineDash(o),t.lineDashOffset=0,this.from!=this.to)this._line(t,e,n);else{var g=Vl(this._getCircleData(t),3),s=g[0],A=g[1],C=g[2];this._circle(t,e,s,A,C)}t.setLineDash([0]),t.lineDashOffset=0,t.restore()}else{if(this.from!=this.to)Ei(t,this.from.x,this.from.y,this.to.x,this.to.y,o);else{var I=Vl(this._getCircleData(t),3),a=I[0],u=I[1],c=I[2];this._circle(t,e,a,u,c)}this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}}},{key:"findBorderPosition",value:function(t,e,n){return this.from!=this.to?this._findBorderPosition(t,e,n):this._findBorderPositionCircle(t,e,n)}},{key:"findBorderPositions",value:function(t){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,t),to:this._findBorderPosition(this.to,t)};var e,n=Vl(nh(e=this._getCircleData(t)).call(e,0,2),2),r=n[0],i=n[1];return{from:this._findBorderPositionCircle(this.from,t,{x:r,y:i,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,t,{x:r,y:i,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(t){var e=this.options.selfReference.size;void 0!==t&&void 0===this.from.shape.width&&this.from.shape.resize(t);var n=zN(t,this.options.selfReference.angle,e,this.from);return[n.x,n.y,e]}},{key:"_pointOnCircle",value:function(t,e,n,r){var i=2*r*Math.PI;return{x:t+n*Math.cos(i),y:e-n*Math.sin(i)}}},{key:"_findBorderPositionCircle",value:function(t,e,n){var r,i=n.x,o=n.y,g=n.low,s=n.high,A=n.direction,C=this.options.selfReference.size,I=.5*(g+s),a=0;!0===this.options.arrowStrikethrough&&(-1===A?a=this.options.endPointOffset.from:1===A&&(a=this.options.endPointOffset.to));var u=0;do{I=.5*(g+s),r=this._pointOnCircle(i,o,C,I);var c=Math.atan2(t.y-r.y,t.x-r.x),l=t.distanceToBorder(e,c)+a-Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2));if(Math.abs(l)<.05)break;l>0?A>0?g=I:s=I:A>0?s=I:g=I,++u}while(g<=s&&u<10);return sD(sD({},r),{},{t:I})}},{key:"getLineWidth",value:function(t,e){return!0===t?Math.max(this.selectionWidth,.3/this._body.view.scale):!0===e?Math.max(this.hoverWidth,.3/this._body.view.scale):Math.max(this.options.width,.3/this._body.view.scale)}},{key:"getColor",value:function(t,e){if(!1!==e.inheritsColor){if("both"===e.inheritsColor&&this.from.id!==this.to.id){var n=t.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y),r=this.from.options.color.highlight.border,i=this.to.options.color.highlight.border;return!1===this.from.selected&&!1===this.to.selected?(r=Mb(this.from.options.color.border,e.opacity),i=Mb(this.to.options.color.border,e.opacity)):!0===this.from.selected&&!1===this.to.selected?i=this.to.options.color.border:!1===this.from.selected&&!0===this.to.selected&&(r=this.from.options.color.border),n.addColorStop(0,r),n.addColorStop(1,i),n}return"to"===e.inheritsColor?Mb(this.to.options.color.border,e.opacity):Mb(this.from.options.color.border,e.opacity)}return Mb(e.color,e.opacity)}},{key:"_circle",value:function(t,e,n,r,i){this.enableShadow(t,e);var o=0,g=2*Math.PI;if(!this.options.selfReference.renderBehindTheNode){var s=this.options.selfReference.angle,A=this.options.selfReference.angle+Math.PI,C=this._findBorderPositionCircle(this.from,t,{x:n,y:r,low:s,high:A,direction:-1}),I=this._findBorderPositionCircle(this.from,t,{x:n,y:r,low:s,high:A,direction:1});o=Math.atan2(C.y-r,C.x-n),g=Math.atan2(I.y-r,I.x-n)}t.beginPath(),t.arc(n,r,i,o,g,!1),t.stroke(),this.disableShadow(t,e)}},{key:"getDistanceToEdge",value:function(t,e,n,r,i,o){if(this.from!=this.to)return this._getDistanceToEdge(t,e,n,r,i,o);var g=Vl(this._getCircleData(void 0),3),s=g[0],A=g[1],C=g[2],I=s-i,a=A-o;return Math.abs(Math.sqrt(I*I+a*a)-C)}},{key:"_getDistanceToLine",value:function(t,e,n,r,i,o){var g=n-t,s=r-e,A=((i-t)*g+(o-e)*s)/(g*g+s*s);A>1?A=1:A<0&&(A=0);var C=t+A*g-i,I=e+A*s-o;return Math.sqrt(C*C+I*I)}},{key:"getArrowData",value:function(t,e,n,r,i,o){var g,s,A,C,I,a,u,c=o.width;"from"===e?(A=this.from,C=this.to,I=o.fromArrowScale<0,a=Math.abs(o.fromArrowScale),u=o.fromArrowType):"to"===e?(A=this.to,C=this.from,I=o.toArrowScale<0,a=Math.abs(o.toArrowScale),u=o.toArrowType):(A=this.to,C=this.from,I=o.middleArrowScale<0,a=Math.abs(o.middleArrowScale),u=o.middleArrowType);var l=15*a+3*c;if(A!=C){var h=l/GR(A.x-C.x,A.y-C.y);if("middle"!==e)if(!0===this.options.smooth.enabled){var d=this._findBorderPosition(A,t,{via:n}),f=this.getPoint(d.t+h*("from"===e?1:-1),n);g=Math.atan2(d.y-f.y,d.x-f.x),s=d}else g=Math.atan2(A.y-C.y,A.x-C.x),s=this._findBorderPosition(A,t);else{var p=(I?-h:h)/2,v=this.getPoint(.5+p,n),y=this.getPoint(.5-p,n);g=Math.atan2(v.y-y.y,v.x-y.x),s=this.getPoint(.5,n)}}else{var b=Vl(this._getCircleData(t),3),m=b[0],w=b[1],_=b[2];if("from"===e){var x=this.options.selfReference.angle,E=this.options.selfReference.angle+Math.PI,O=this._findBorderPositionCircle(this.from,t,{x:m,y:w,low:x,high:E,direction:-1});g=-2*O.t*Math.PI+1.5*Math.PI+.1*Math.PI,s=O}else if("to"===e){var k=this.options.selfReference.angle,T=this.options.selfReference.angle+Math.PI,S=this._findBorderPositionCircle(this.from,t,{x:m,y:w,low:k,high:T,direction:1});g=-2*S.t*Math.PI+1.5*Math.PI-1.1*Math.PI,s=S}else{var P=this.options.selfReference.angle/(2*Math.PI);s=this._pointOnCircle(m,w,_,P),g=-2*P*Math.PI+1.5*Math.PI+.1*Math.PI}}return{point:s,core:{x:s.x-.9*l*Math.cos(g),y:s.y-.9*l*Math.sin(g)},angle:g,length:l,type:u}}},{key:"drawArrowHead",value:function(t,e,n,r,i){t.strokeStyle=this.getColor(t,e),t.fillStyle=t.strokeStyle,t.lineWidth=e.width,oD.draw(t,i)&&(this.enableShadow(t,e),lv(t).call(t),this.disableShadow(t,e))}},{key:"enableShadow",value:function(t,e){!0===e.shadow&&(t.shadowColor=e.shadowColor,t.shadowBlur=e.shadowSize,t.shadowOffsetX=e.shadowX,t.shadowOffsetY=e.shadowY)}},{key:"disableShadow",value:function(t,e){!0===e.shadow&&(t.shadowColor="rgba(0,0,0,0)",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}},{key:"drawBackground",value:function(t,e){if(!1!==e.background){var n={strokeStyle:t.strokeStyle,lineWidth:t.lineWidth,dashes:t.dashes};t.strokeStyle=e.backgroundColor,t.lineWidth=e.backgroundSize,this.setStrokeDashed(t,e.backgroundDashes),t.stroke(),t.strokeStyle=n.strokeStyle,t.lineWidth=n.lineWidth,t.dashes=n.dashes,this.setStrokeDashed(t,e.dashes)}}},{key:"setStrokeDashed",value:function(t,e){if(!1!==e)if(void 0!==t.setLineDash){var n=Ah(e)?e:[5,5];t.setLineDash(n)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else void 0!==t.setLineDash?t.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}]),t}();function CD(t,e){var n=wh(t);if(Za){var r=Za(t);e&&(r=ff(r).call(r,(function(e){return tu(t,e).enumerable}))),n.push.apply(n,r)}return n}function ID(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:this._getViaCoordinates(),o=!1,g=1,s=0,A=this.to,C=this.options.endPointOffset?this.options.endPointOffset.to:0;t.id===this.from.id&&(A=this.from,o=!0,C=this.options.endPointOffset?this.options.endPointOffset.from:0),!1===this.options.arrowStrikethrough&&(C=0);var I=0;do{r=.5*(s+g),n=this.getPoint(r,i);var a=Math.atan2(A.y-n.y,A.x-n.x),u=A.distanceToBorder(e,a)+C-Math.sqrt(Math.pow(n.x-A.x,2)+Math.pow(n.y-A.y,2));if(Math.abs(u)<.2)break;u<0?!1===o?s=r:g=r:!1===o?g=r:s=r,++I}while(s<=g&&I<10);return ID(ID({},n),{},{t:r})}},{key:"_getDistanceToBezierEdge",value:function(t,e,n,r,i,o,g){var s,A,C,I,a,u=1e9,c=t,l=e;for(A=1;A<10;A++)C=.1*A,I=Math.pow(1-C,2)*t+2*C*(1-C)*g.x+Math.pow(C,2)*n,a=Math.pow(1-C,2)*e+2*C*(1-C)*g.y+Math.pow(C,2)*r,A>0&&(u=(s=this._getDistanceToLine(c,l,I,a,i,o))1&&void 0!==arguments[1]?arguments[1]:this.via;if(this.from===this.to){var n=Vl(this._getCircleData(),3),r=n[0],i=n[1],o=n[2],g=2*Math.PI*(1-t);return{x:r+o*Math.sin(g),y:i+o-o*(1-Math.cos(g))}}return{x:Math.pow(1-t,2)*this.fromPoint.x+2*t*(1-t)*e.x+Math.pow(t,2)*this.toPoint.x,y:Math.pow(1-t,2)*this.fromPoint.y+2*t*(1-t)*e.y+Math.pow(t,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(t,e){return this._findBorderPositionBezier(t,e,this.via)}},{key:"_getDistanceToEdge",value:function(t,e,n,r,i,o){return this._getDistanceToBezierEdge(t,e,n,r,i,o,this.via)}}]),i}(aD);var cD=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){return Bu(this,i),r.call(this,t,e,n)}return nl(i,[{key:"_line",value:function(t,e,n){this._bezierCurve(t,e,n)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var t,e,n=this.options.smooth.roundness,r=this.options.smooth.type,i=Math.abs(this.from.x-this.to.x),o=Math.abs(this.from.y-this.to.y);if("discrete"===r||"diagonalCross"===r){var g,s;g=s=i<=o?n*o:n*i,this.from.x>this.to.x&&(g=-g),this.from.y>=this.to.y&&(s=-s);var A=this.from.x+g,C=this.from.y+s;return"discrete"===r&&(i<=o?A=ithis.to.x&&(t=-t),this.from.y>=this.to.y&&(e=-e);var y=this.from.x+t,b=this.from.y+e;return i<=o?y=this.from.x<=this.to.x?this.to.xy?this.to.x:y:b=this.from.y>=this.to.y?this.to.y>b?this.to.y:b:this.to.y2&&void 0!==arguments[2]?arguments[2]:{};return this._findBorderPositionBezier(t,e,n.via)}},{key:"_getDistanceToEdge",value:function(t,e,n,r,i,o){var g=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(t,e,n,r,i,o,g)}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),n=t;return{x:Math.pow(1-n,2)*this.fromPoint.x+2*n*(1-n)*e.x+Math.pow(n,2)*this.toPoint.x,y:Math.pow(1-n,2)*this.fromPoint.y+2*n*(1-n)*e.y+Math.pow(n,2)*this.toPoint.y}}}]),i}(aD);var lD=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){return Bu(this,i),r.call(this,t,e,n)}return nl(i,[{key:"_getDistanceToBezierEdge2",value:function(t,e,n,r,i,o,g,s){for(var A=1e9,C=t,I=e,a=[0,0,0,0],u=1;u<10;u++){var c=.1*u;a[0]=Math.pow(1-c,3),a[1]=3*c*Math.pow(1-c,2),a[2]=3*Math.pow(c,2)*(1-c),a[3]=Math.pow(c,3);var l=a[0]*t+a[1]*g.x+a[2]*s.x+a[3]*n,h=a[0]*e+a[1]*g.y+a[2]*s.y+a[3]*r;if(u>0){var d=this._getDistanceToLine(C,I,l,h,i,o);A=dMath.abs(o)||!0===this.options.smooth.forceDirection||"horizontal"===this.options.smooth.forceDirection)&&"vertical"!==this.options.smooth.forceDirection?(e=this.from.y,r=this.to.y,t=this.from.x-g*i,n=this.to.x+g*i):(e=this.from.y-g*o,r=this.to.y+g*o,t=this.from.x,n=this.to.x),[{x:t,y:e},{x:n,y:r}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(t,e){return this._findBorderPositionBezier(t,e)}},{key:"_getDistanceToEdge",value:function(t,e,n,r,i,o){var g=Vl(arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates(),2),s=g[0],A=g[1];return this._getDistanceToBezierEdge2(t,e,n,r,i,o,s,A)}},{key:"getPoint",value:function(t){var e=Vl(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),2),n=e[0],r=e[1],i=t,o=[Math.pow(1-i,3),3*i*Math.pow(1-i,2),3*Math.pow(i,2)*(1-i),Math.pow(i,3)];return{x:o[0]*this.fromPoint.x+o[1]*n.x+o[2]*r.x+o[3]*this.toPoint.x,y:o[0]*this.fromPoint.y+o[1]*n.y+o[2]*r.y+o[3]*this.toPoint.y}}}]),i}(lD);var dD=function(t){J_(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!qP)return!1;if(qP.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qP(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=ox(e);if(n){var i=ox(this).constructor;t=qP(r,arguments,i)}else t=r.apply(this,arguments);return $_(this,t)});function i(t,e,n){return Bu(this,i),r.call(this,t,e,n)}return nl(i,[{key:"_line",value:function(t,e){t.beginPath(),t.moveTo(this.fromPoint.x,this.fromPoint.y),t.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(t){return{x:(1-t)*this.fromPoint.x+t*this.toPoint.x,y:(1-t)*this.fromPoint.y+t*this.toPoint.y}}},{key:"_findBorderPosition",value:function(t,e){var n=this.to,r=this.from;t.id===this.from.id&&(n=this.from,r=this.to);var i=Math.atan2(n.y-r.y,n.x-r.x),o=n.x-r.x,g=n.y-r.y,s=Math.sqrt(o*o+g*g),A=(s-t.distanceToBorder(e,i))/s;return{x:(1-A)*r.x+A*n.x,y:(1-A)*r.y+A*n.y,t:0}}},{key:"_getDistanceToEdge",value:function(t,e,n,r,i,o){return this._getDistanceToLine(t,e,n,r,i,o)}}]),i}(AD),fD=function(){function t(e,n,r,i,o){if(Bu(this,t),void 0===n)throw new Error("No body provided");this.options=Vb(i),this.globalOptions=i,this.defaultOptions=o,this.body=n,this.imagelist=r,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new YN(this.body,this.options,!0),this.setOptions(e)}return nl(t,[{key:"setOptions",value:function(e){if(e){var n=void 0!==e.physics&&this.options.physics!==e.physics||void 0!==e.hidden&&(this.options.hidden||!1)!==(e.hidden||!1)||void 0!==e.from&&this.options.from!==e.from||void 0!==e.to&&this.options.to!==e.to;t.parseOptions(this.options,e,!0,this.globalOptions),void 0!==e.id&&(this.id=e.id),void 0!==e.from&&(this.fromId=e.from),void 0!==e.to&&(this.toId=e.to),void 0!==e.title&&(this.title=e.title),void 0!==e.value&&(e.value=kN(e.value));var r=[e,this.options,this.defaultOptions];return this.chooser=BN("edge",r),this.updateLabelModule(e),n=this.updateEdgeType()||n,this._setInteractionWidths(),this.connect(),n}}},{key:"getFormattingValues",value:function(){var t=!0===this.options.arrows.to||!0===this.options.arrows.to.enabled,e=!0===this.options.arrows.from||!0===this.options.arrows.from.enabled,n=!0===this.options.arrows.middle||!0===this.options.arrows.middle.enabled,r=this.options.color.inherit,i={toArrow:t,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:n,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:e,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:r?void 0:this.options.color.color,inheritsColor:r,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(!0===this.chooser){if(this.selected){var o=this.options.selectionWidth;"function"==typeof o?i.width=o(i.width):"number"==typeof o&&(i.width+=o),i.width=Math.max(i.width,.3/this.body.view.scale),i.color=this.options.color.highlight,i.shadow=this.options.shadow.enabled}else if(this.hover){var g=this.options.hoverWidth;"function"==typeof g?i.width=g(i.width):"number"==typeof g&&(i.width+=g),i.width=Math.max(i.width,.3/this.body.view.scale),i.color=this.options.color.hover,i.shadow=this.options.shadow.enabled}}else"function"==typeof this.chooser&&(this.chooser(i,this.options.id,this.selected,this.hover),void 0!==i.color&&(i.inheritsColor=!1),!1===i.shadow&&(i.shadowColor===this.options.shadow.color&&i.shadowSize===this.options.shadow.size&&i.shadowX===this.options.shadow.x&&i.shadowY===this.options.shadow.y||(i.shadow=!0)));else i.shadow=this.options.shadow.enabled,i.width=Math.max(i.width,.3/this.body.view.scale);return i}},{key:"updateLabelModule",value:function(t){var e=[t,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,e),void 0!==this.labelModule.baseSize&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var t=this.options.smooth,e=!1,n=!0;return void 0!==this.edgeType&&((this.edgeType instanceof uD&&!0===t.enabled&&"dynamic"===t.type||this.edgeType instanceof hD&&!0===t.enabled&&"cubicBezier"===t.type||this.edgeType instanceof cD&&!0===t.enabled&&"dynamic"!==t.type&&"cubicBezier"!==t.type||this.edgeType instanceof dD&&!1===t.type.enabled)&&(n=!1),!0===n&&(e=this.cleanup())),!0===n?!0===t.enabled?"dynamic"===t.type?(e=!0,this.edgeType=new uD(this.options,this.body,this.labelModule)):"cubicBezier"===t.type?this.edgeType=new hD(this.options,this.body,this.labelModule):this.edgeType=new cD(this.options,this.body,this.labelModule):this.edgeType=new dD(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),e}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=void 0!==this.from&&void 0!==this.to,!0===this.connected?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(t,e,n){if(void 0!==this.options.value){var r=this.options.scaling.customScalingFunction(t,e,n,this.options.value),i=this.options.scaling.max-this.options.scaling.min;if(!0===this.options.scaling.label.enabled){var o=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+r*o}this.options.width=this.options.scaling.min+r*i}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){"function"==typeof this.options.hoverWidth?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,"function"==typeof this.options.selectionWidth?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:"draw",value:function(t){var e=this.getFormattingValues();if(!e.hidden){var n=this.edgeType.getViaNode();this.edgeType.drawLine(t,e,this.selected,this.hover,n),this.drawLabel(t,n)}}},{key:"drawArrows",value:function(t){var e=this.getFormattingValues();if(!e.hidden){var n=this.edgeType.getViaNode(),r={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,e.fromArrow&&(r.from=this.edgeType.getArrowData(t,"from",n,this.selected,this.hover,e),!1===e.arrowStrikethrough&&(this.edgeType.fromPoint=r.from.core),e.fromArrowSrc&&(r.from.image=this.imagelist.load(e.fromArrowSrc)),e.fromArrowImageWidth&&(r.from.imageWidth=e.fromArrowImageWidth),e.fromArrowImageHeight&&(r.from.imageHeight=e.fromArrowImageHeight)),e.toArrow&&(r.to=this.edgeType.getArrowData(t,"to",n,this.selected,this.hover,e),!1===e.arrowStrikethrough&&(this.edgeType.toPoint=r.to.core),e.toArrowSrc&&(r.to.image=this.imagelist.load(e.toArrowSrc)),e.toArrowImageWidth&&(r.to.imageWidth=e.toArrowImageWidth),e.toArrowImageHeight&&(r.to.imageHeight=e.toArrowImageHeight)),e.middleArrow&&(r.middle=this.edgeType.getArrowData(t,"middle",n,this.selected,this.hover,e),e.middleArrowSrc&&(r.middle.image=this.imagelist.load(e.middleArrowSrc)),e.middleArrowImageWidth&&(r.middle.imageWidth=e.middleArrowImageWidth),e.middleArrowImageHeight&&(r.middle.imageHeight=e.middleArrowImageHeight)),e.fromArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,r.from),e.middleArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,r.middle),e.toArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,r.to)}}},{key:"drawLabel",value:function(t,e){if(void 0!==this.options.label){var n,r=this.from,i=this.to;if(this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(t,this.selected,this.hover),r.id!=i.id){this.labelModule.pointToSelf=!1,n=this.edgeType.getPoint(.5,e),t.save();var o=this._getRotation(t);0!=o.angle&&(t.translate(o.x,o.y),t.rotate(o.angle)),this.labelModule.draw(t,n.x,n.y,this.selected,this.hover),t.restore()}else{this.labelModule.pointToSelf=!0;var g=zN(t,this.options.selfReference.angle,this.options.selfReference.size,r);n=this._pointOnCircle(g.x,g.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(t,n.x,n.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(t){var e=[];if(this.labelModule.visible()){var n=this._getRotation();LN(this.labelModule.getSize(),t,n)&&e.push({edgeId:this.id,labelId:0})}var r={left:t.x,top:t.y};return this.isOverlappingWith(r)&&e.push({edgeId:this.id}),e}},{key:"isOverlappingWith",value:function(t){if(this.connected){var e=this.from.x,n=this.from.y,r=this.to.x,i=this.to.y,o=t.left,g=t.top;return this.edgeType.getDistanceToEdge(e,n,r,i,o,g)<10}return!1}},{key:"_getRotation",value:function(t){var e=this.edgeType.getViaNode(),n=this.edgeType.getPoint(.5,e);void 0!==t&&this.labelModule.calculateLabelSize(t,this.selected,this.hover,n.x,n.y);var r={x:n.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible())return r;if("horizontal"===this.options.font.align)return r;var i=this.from.y-this.to.y,o=this.from.x-this.to.x,g=Math.atan2(i,o);return(g<-1&&o<0||g>0&&o<0)&&(g+=Math.PI),r.angle=g,r}},{key:"_pointOnCircle",value:function(t,e,n,r){return{x:t+n*Math.cos(r),y:e-n*Math.sin(r)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return void 0!==this.body.nodes[this.fromId]&&void 0!==this.body.nodes[this.toId]}}],[{key:"parseOptions",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(kb(["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"],t,e,n),void 0!==e.endPointOffset&&void 0!==e.endPointOffset.from&&(__(e.endPointOffset.from)?t.endPointOffset.from=e.endPointOffset.from:(t.endPointOffset.from=void 0!==r.endPointOffset.from?r.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),void 0!==e.endPointOffset&&void 0!==e.endPointOffset.to&&(__(e.endPointOffset.to)?t.endPointOffset.to=e.endPointOffset.to:(t.endPointOffset.to=void 0!==r.endPointOffset.to?r.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),FN(e.label)?t.label=e.label:FN(t.label)||(t.label=void 0),Gb(t,e,"smooth",r),Gb(t,e,"shadow",r),Gb(t,e,"background",r),void 0!==e.dashes&&null!==e.dashes?t.dashes=e.dashes:!0===n&&null===e.dashes&&(t.dashes=kp(r.dashes)),void 0!==e.scaling&&null!==e.scaling?(void 0!==e.scaling.min&&(t.scaling.min=e.scaling.min),void 0!==e.scaling.max&&(t.scaling.max=e.scaling.max),Gb(t.scaling,e.scaling,"label",r.scaling)):!0===n&&null===e.scaling&&(t.scaling=kp(r.scaling)),void 0!==e.arrows&&null!==e.arrows)if("string"==typeof e.arrows){var o=e.arrows.toLowerCase();t.arrows.to.enabled=-1!=cp(o).call(o,"to"),t.arrows.middle.enabled=-1!=cp(o).call(o,"middle"),t.arrows.from.enabled=-1!=cp(o).call(o,"from")}else{if("object"!==Hc(e.arrows))throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+Dp(e.arrows));Gb(t.arrows,e.arrows,"to",r.arrows),Gb(t.arrows,e.arrows,"middle",r.arrows),Gb(t.arrows,e.arrows,"from",r.arrows)}else!0===n&&null===e.arrows&&(t.arrows=kp(r.arrows));if(void 0!==e.color&&null!==e.color){var g=_b(e.color)?{color:e.color,highlight:e.color,hover:e.color,inherit:!1,opacity:1}:e.color,s=t.color;if(i)Sb(s,r.color,!1,n);else for(var A in s)Object.prototype.hasOwnProperty.call(s,A)&&delete s[A];if(_b(s))s.color=s,s.highlight=s,s.hover=s,s.inherit=!1,void 0===g.opacity&&(s.opacity=1);else{var C=!1;void 0!==g.color&&(s.color=g.color,C=!0),void 0!==g.highlight&&(s.highlight=g.highlight,C=!0),void 0!==g.hover&&(s.hover=g.hover,C=!0),void 0!==g.inherit&&(s.inherit=g.inherit),void 0!==g.opacity&&(s.opacity=Math.min(1,Math.max(0,g.opacity))),!0===C?s.inherit=!1:void 0===s.inherit&&(s.inherit="from")}}else!0===n&&null===e.color&&(t.color=Vb(r.color));!0===n&&null===e.font&&(t.font=Vb(r.font)),Object.prototype.hasOwnProperty.call(e,"selfReferenceSize")&&(console.warn("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),t.selfReference.size=e.selfReferenceSize)}}]),t}(),pD=function(){function t(e,n,r){var i,o=this;Bu(this,t),this.body=e,this.images=n,this.groups=r,this.body.functions.createEdge=bi(i=this.create).call(i,this),this.edgesListeners={add:function(t,e){o.add(e.items)},update:function(t,e){o.update(e.items)},remove:function(t,e){o.remove(e.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(t,e,n,r){if(e===t)return.5;var i=1/(e-t);return Math.max(0,(r-t)*i)}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},Sb(this.options,this.defaultOptions),this.bindEventListeners()}return nl(t,[{key:"bindEventListeners",value:function(){var t,e,n=this;this.body.emitter.on("_forceDisableDynamicCurves",(function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];"dynamic"===t&&(t="continuous");var r=!1;for(var i in n.body.edges)if(Object.prototype.hasOwnProperty.call(n.body.edges,i)){var o=n.body.edges[i],g=n.body.data.edges.get(i);if(null!=g){var s=g.smooth;void 0!==s&&!0===s.enabled&&"dynamic"===s.type&&(void 0===t?o.setOptions({smooth:!1}):o.setOptions({smooth:{type:t}}),r=!0)}}!0===e&&!0===r&&n.body.emitter.emit("_dataChanged")})),this.body.emitter.on("_dataUpdated",(function(){n.reconnectEdges()})),this.body.emitter.on("refreshEdges",bi(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",bi(e=this.refresh).call(e,this)),this.body.emitter.on("destroy",(function(){Rb(n.edgesListeners,(function(t,e){n.body.data.edges&&n.body.data.edges.off(e,t)})),delete n.body.functions.createEdge,delete n.edgesListeners.add,delete n.edgesListeners.update,delete n.edgesListeners.remove,delete n.edgesListeners}))}},{key:"setOptions",value:function(t){if(void 0!==t){fD.parseOptions(this.options,t,!0,this.defaultOptions,!0);var e=!1;if(void 0!==t.smooth)for(var n in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,n)&&(e=this.body.edges[n].updateEdgeType()||e);if(void 0!==t.font)for(var r in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,r)&&this.body.edges[r].updateLabelModule();void 0===t.hidden&&void 0===t.physics&&!0!==e||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.body.data.edges;if(lN("id",t))this.body.data.edges=t;else if(Ah(t))this.body.data.edges=new cN,this.body.data.edges.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.body.data.edges=new cN}if(r&&Rb(this.edgesListeners,(function(t,e){r.off(e,t)})),this.body.edges={},this.body.data.edges){Rb(this.edgesListeners,(function(t,n){e.body.data.edges.on(n,t)}));var i=this.body.data.edges.getIds();this.add(i,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),!1===n&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.body.edges,r=this.body.data.edges,i=0;i1&&void 0!==arguments[1])||arguments[1];if(0!==t.length){var n=this.body.edges;Rb(t,(function(t){var e=n[t];void 0!==e&&e.remove()})),e&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var t=this;Rb(this.body.edges,(function(e,n){var r=t.body.data.edges.get(n);void 0!==r&&e.setOptions(r)}))}},{key:"create",value:function(t){return new fD(t,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var t,e=this.body.nodes,n=this.body.edges;for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(e[t].edges=[]);for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)){var r=n[t];r.from=null,r.to=null,r.connect()}}},{key:"getConnectedNodes",value:function(t){var e=[];if(void 0!==this.body.edges[t]){var n=this.body.edges[t];void 0!==n.fromId&&e.push(n.fromId),void 0!==n.toId&&e.push(n.toId)}return e}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var t=this,e=[];Rb(this.body.edges,(function(n,r){var i=t.body.nodes[n.toId],o=t.body.nodes[n.fromId];void 0!==i&&!0===i.isCluster||void 0!==o&&!0===o.isCluster||void 0!==i&&void 0!==o||e.push(r)})),this.remove(e,!1)}},{key:"_addMissingEdges",value:function(){var t=this.body.data.edges;if(null!=t){var e=this.body.edges,n=[];Wh(t).call(t,(function(t,r){void 0===e[r]&&n.push(r)})),this.add(n,!0)}}}]),t}(),vD=function(){function t(e,n,r){Bu(this,t),this.body=e,this.physicsBody=n,this.barnesHutTree,this.setOptions(r),this._rng=db("BARNES HUT SOLVER")}return nl(t,[{key:"setOptions",value:function(t){this.options=t,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"solve",value:function(){if(0!==this.options.gravitationalConstant&&this.physicsBody.physicsNodeIndices.length>0){var t,e=this.body.nodes,n=this.physicsBody.physicsNodeIndices,r=n.length,i=this._formBarnesHutTree(e,n);this.barnesHutTree=i;for(var o=0;o0&&this._getForceContributions(i.root,t)}}},{key:"_getForceContributions",value:function(t,e){this._getForceContribution(t.children.NW,e),this._getForceContribution(t.children.NE,e),this._getForceContribution(t.children.SW,e),this._getForceContribution(t.children.SE,e)}},{key:"_getForceContribution",value:function(t,e){if(t.childrenCount>0){var n=t.centerOfMass.x-e.x,r=t.centerOfMass.y-e.y,i=Math.sqrt(n*n+r*r);i*t.calcSize>this.thetaInversed?this._calculateForces(i,n,r,e,t):4===t.childrenCount?this._getForceContributions(t,e):t.children.data.id!=e.id&&this._calculateForces(i,n,r,e,t)}}},{key:"_calculateForces",value:function(t,e,n,r,i){0===t&&(e=t=.1),this.overlapAvoidanceFactor<1&&r.shape.radius&&(t=Math.max(.1+this.overlapAvoidanceFactor*r.shape.radius,t-r.shape.radius));var o=this.options.gravitationalConstant*i.mass*r.options.mass/Math.pow(t,3),g=e*o,s=n*o;this.physicsBody.forces[r.id].x+=g,this.physicsBody.forces[r.id].y+=s}},{key:"_formBarnesHutTree",value:function(t,e){for(var n,r=e.length,i=t[e[0]].x,o=t[e[0]].y,g=t[e[0]].x,s=t[e[0]].y,A=1;A0&&(Ig&&(g=I),as&&(s=a))}var u=Math.abs(g-i)-Math.abs(s-o);u>0?(o-=.5*u,s+=.5*u):(i+=.5*u,g-=.5*u);var c=Math.max(1e-5,Math.abs(g-i)),l=.5*c,h=.5*(i+g),d=.5*(o+s),f={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:h-l,maxX:h+l,minY:d-l,maxY:d+l},size:c,calcSize:1/c,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(f.root);for(var p=0;p0&&this._placeInTree(f.root,n);return f}},{key:"_updateBranchMass",value:function(t,e){var n=t.centerOfMass,r=t.mass+e.options.mass,i=1/r;n.x=n.x*t.mass+e.x*e.options.mass,n.x*=i,n.y=n.y*t.mass+e.y*e.options.mass,n.y*=i,t.mass=r;var o=Math.max(Math.max(e.height,e.radius),e.width);t.maxWidth=t.maxWidthe.x?i.maxY>e.y?"NW":"SW":i.maxY>e.y?"NE":"SE",this._placeInRegion(t,e,r)}},{key:"_placeInRegion",value:function(t,e,n){var r=t.children[n];switch(r.childrenCount){case 0:r.children.data=e,r.childrenCount=1,this._updateBranchMass(r,e);break;case 1:r.children.data.x===e.x&&r.children.data.y===e.y?(e.x+=this._rng(),e.y+=this._rng()):(this._splitBranch(r),this._placeInTree(r,e));break;case 4:this._placeInTree(r,e)}}},{key:"_splitBranch",value:function(t){var e=null;1===t.childrenCount&&(e=t.children.data,t.mass=0,t.centerOfMass.x=0,t.centerOfMass.y=0),t.childrenCount=4,t.children.data=null,this._insertRegion(t,"NW"),this._insertRegion(t,"NE"),this._insertRegion(t,"SW"),this._insertRegion(t,"SE"),null!=e&&this._placeInTree(t,e)}},{key:"_insertRegion",value:function(t,e){var n,r,i,o,g=.5*t.size;switch(e){case"NW":n=t.range.minX,r=t.range.minX+g,i=t.range.minY,o=t.range.minY+g;break;case"NE":n=t.range.minX+g,r=t.range.maxX,i=t.range.minY,o=t.range.minY+g;break;case"SW":n=t.range.minX,r=t.range.minX+g,i=t.range.minY+g,o=t.range.maxY;break;case"SE":n=t.range.minX+g,r=t.range.maxX,i=t.range.minY+g,o=t.range.maxY}t.children[e]={centerOfMass:{x:0,y:0},mass:0,range:{minX:n,maxX:r,minY:i,maxY:o},size:.5*t.size,calcSize:2*t.calcSize,children:{data:null},maxWidth:0,level:t.level+1,childrenCount:0}}},{key:"_debug",value:function(t,e){void 0!==this.barnesHutTree&&(t.lineWidth=1,this._drawBranch(this.barnesHutTree.root,t,e))}},{key:"_drawBranch",value:function(t,e,n){void 0===n&&(n="#FF0000"),4===t.childrenCount&&(this._drawBranch(t.children.NW,e),this._drawBranch(t.children.NE,e),this._drawBranch(t.children.SE,e),this._drawBranch(t.children.SW,e)),e.strokeStyle=n,e.beginPath(),e.moveTo(t.range.minX,t.range.minY),e.lineTo(t.range.maxX,t.range.minY),e.stroke(),e.beginPath(),e.moveTo(t.range.maxX,t.range.minY),e.lineTo(t.range.maxX,t.range.maxY),e.stroke(),e.beginPath(),e.moveTo(t.range.maxX,t.range.maxY),e.lineTo(t.range.minX,t.range.maxY),e.stroke(),e.beginPath(),e.moveTo(t.range.minX,t.range.maxY),e.lineTo(t.range.minX,t.range.minY),e.stroke()}}]),t}(),yD=function(){function t(e,n,r){Bu(this,t),this._rng=db("REPULSION SOLVER"),this.body=e,this.physicsBody=n,this.setOptions(r)}return nl(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,e,n,r,i,o,g,s,A=this.body.nodes,C=this.physicsBody.physicsNodeIndices,I=this.physicsBody.forces,a=this.options.nodeDistance,u=-2/3/a,c=0;c0){var o=i.edges.length+1,g=this.options.centralGravity*o*i.options.mass;r[i.id].x=e*g,r[i.id].y=n*g}}}]),i}(_D),OD=function(){function t(e){Bu(this,t),this.body=e,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},Jr(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return nl(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("initPhysics",(function(){t.initPhysics()})),this.body.emitter.on("_layoutFailed",(function(){t.layoutFailed=!0})),this.body.emitter.on("resetPhysics",(function(){t.stopSimulation(),t.ready=!1})),this.body.emitter.on("disablePhysics",(function(){t.physicsEnabled=!1,t.stopSimulation()})),this.body.emitter.on("restorePhysics",(function(){t.setOptions(t.options),!0===t.ready&&t.startSimulation()})),this.body.emitter.on("startSimulation",(function(){!0===t.ready&&t.startSimulation()})),this.body.emitter.on("stopSimulation",(function(){t.stopSimulation()})),this.body.emitter.on("destroy",(function(){t.stopSimulation(!1),t.body.emitter.off()})),this.body.emitter.on("_dataChanged",(function(){t.updatePhysicsData()}))}},{key:"setOptions",value:function(t){if(void 0!==t)if(!1===t)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(!0===t)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,Tb(["stabilization"],this.options,t),Gb(this.options,t,"stabilization"),void 0===t.enabled&&(this.options.enabled=!0),!1===this.options.enabled&&(this.physicsEnabled=!1,this.stopSimulation());var e=this.options.wind;e&&(("number"!=typeof e.x||v_(e.x))&&(e.x=0),("number"!=typeof e.y||v_(e.y))&&(e.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var t;"forceAtlas2Based"===this.options.solver?(t=this.options.forceAtlas2Based,this.nodesSolver=new xD(this.body,this.physicsBody,t),this.edgesSolver=new mD(this.body,this.physicsBody,t),this.gravitySolver=new ED(this.body,this.physicsBody,t)):"repulsion"===this.options.solver?(t=this.options.repulsion,this.nodesSolver=new yD(this.body,this.physicsBody,t),this.edgesSolver=new mD(this.body,this.physicsBody,t),this.gravitySolver=new _D(this.body,this.physicsBody,t)):"hierarchicalRepulsion"===this.options.solver?(t=this.options.hierarchicalRepulsion,this.nodesSolver=new bD(this.body,this.physicsBody,t),this.edgesSolver=new wD(this.body,this.physicsBody,t),this.gravitySolver=new _D(this.body,this.physicsBody,t)):(t=this.options.barnesHut,this.nodesSolver=new vD(this.body,this.physicsBody,t),this.edgesSolver=new mD(this.body,this.physicsBody,t),this.gravitySolver=new _D(this.body,this.physicsBody,t)),this.modelOptions=t}},{key:"initPhysics",value:function(){!0===this.physicsEnabled&&!0===this.options.enabled?!0===this.options.stabilization.enabled?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){var t;!0===this.physicsEnabled&&!0===this.options.enabled?(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),void 0===this.viewFunction&&(this.viewFunction=bi(t=this.simulationStep).call(t,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))):this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.stabilized=!0,!0===t&&this._emitStabilized(),void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,!0===t&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var t=Sh();this.physicsTick(),(Sh()-t<.4*this.simulationInterval||!0===this.runDoubleSpeed)&&!1===this.stabilized&&(this.physicsTick(),this.runDoubleSpeed=!0),!0===this.stabilized&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||!0===this.startedStabilization)&&rv((function(){t.body.emitter.emit("stabilized",{iterations:e}),t.startedStabilization=!1,t.stabilizationIterations=0}),0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){!0===this._evaluateStepQuality()?this.timestep=1.2*this.timestep:this.timestep/1.2.3))return!1;return!0}},{key:"moveNodes",value:function(){for(var t=this.physicsBody.physicsNodeIndices,e=0,n=0,r=0;rr&&(t=t>0?r:-r),t}},{key:"_performStep",value:function(t){var e=this.body.nodes[t],n=this.physicsBody.forces[t];this.options.wind&&(n.x+=this.options.wind.x,n.y+=this.options.wind.y);var r=this.physicsBody.velocities[t];return this.previousStates[t]={x:e.x,y:e.y,vx:r.x,vy:r.y},!1===e.options.fixed.x?(r.x=this.calculateComponentVelocity(r.x,n.x,e.options.mass),e.x+=r.x*this.timestep):(n.x=0,r.x=0),!1===e.options.fixed.y?(r.y=this.calculateComponentVelocity(r.y,n.y,e.options.mass),e.y+=r.y*this.timestep):(n.y=0,r.y=0),Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2))}},{key:"_freezeNodes",value:function(){var t=this.body.nodes;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&t[e].x&&t[e].y){var n=t[e].options.fixed;this.freezeCache[e]={x:n.x,y:n.y},n.x=!0,n.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var t=this.body.nodes;for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&void 0!==this.freezeCache[e]&&(t[e].options.fixed.x=this.freezeCache[e].x,t[e].options.fixed.y=this.freezeCache[e].y);this.freezeCache={}}},{key:"stabilize",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.stabilization.iterations;"number"!=typeof e&&(e=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",e)),0!==this.physicsBody.physicsNodeIndices.length?(this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=e,!0===this.options.stabilization.onlyDynamicEdges&&this._freezeNodes(),this.stabilizationIterations=0,rv((function(){return t._stabilizationBatch()}),0)):this.ready=!0}},{key:"_startStabilizing",value:function(){return!0!==this.startedStabilization&&(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var t=this,e=function(){return!1===t.stabilized&&t.stabilizationIterations1&&void 0!==arguments[1]?arguments[1]:[],r=1e9,i=-1e9,o=1e9,g=-1e9;if(n.length>0)for(var s=0;s(e=t[n[s]]).shape.boundingBox.left&&(o=e.shape.boundingBox.left),ge.shape.boundingBox.top&&(r=e.shape.boundingBox.top),i1&&void 0!==arguments[1]?arguments[1]:[],r=1e9,i=-1e9,o=1e9,g=-1e9;if(n.length>0)for(var s=0;s(e=t[n[s]]).x&&(o=e.x),ge.y&&(r=e.y),i=t&&n.push(i.id)}for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0===e.joinCondition)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");e=this._checkOptions(e);var r={},i={};Rb(this.body.nodes,(function(n,o){n.options&&!0===e.joinCondition(n.options)&&(r[o]=n,Rb(n.edges,(function(e){void 0===t.clusteredEdges[e.id]&&(i[e.id]=e)})))})),this._cluster(r,i,e,n)}},{key:"clusterByEdgeCount",value:function(t,e){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e=this._checkOptions(e);for(var i,o,g,s=[],A={},C=function(){var r={},C={},a=n.body.nodeIndices[I],u=n.body.nodes[a];if(void 0===A[a]){g=0,o=[];for(var c=0;c0&&wh(C).length>0&&!0===h){var p=function(){for(var t=0;t1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(1,t,e)}},{key:"clusterBridges",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(2,t,e)}},{key:"clusterByConnection",value:function(t,e){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error("No nodeId supplied to clusterByConnection!");if(void 0===this.body.nodes[t])throw new Error("The nodeId given to clusterByConnection does not exist!");var i=this.body.nodes[t];void 0===(e=this._checkOptions(e,i)).clusterNodeProperties.x&&(e.clusterNodeProperties.x=i.x),void 0===e.clusterNodeProperties.y&&(e.clusterNodeProperties.y=i.y),void 0===e.clusterNodeProperties.fixed&&(e.clusterNodeProperties.fixed={},e.clusterNodeProperties.fixed.x=i.options.fixed.x,e.clusterNodeProperties.fixed.y=i.options.fixed.y);var o={},g={},s=i.id,A=kD.cloneOptions(i);o[s]=i;for(var C=0;C-1&&(g[f.id]=f)}this._cluster(o,g,e,r)}},{key:"_createClusterEdges",value:function(t,e,n,r){for(var i,o,g,s,A,C,I=wh(t),a=[],u=0;u0&&void 0!==arguments[0]?arguments[0]:{};return void 0===t.clusterEdgeProperties&&(t.clusterEdgeProperties={}),void 0===t.clusterNodeProperties&&(t.clusterNodeProperties={}),t}},{key:"_cluster",value:function(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&void 0!==this.clusteredNodes[o]&&i.push(o);for(var g=0;gi?e.x:i,o=e.yg?e.y:g;return{x:.5*(r+i),y:.5*(o+g)}}},{key:"openCluster",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error("No clusterNodeId supplied to openCluster.");var r=this.body.nodes[t];if(void 0===r)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(!0!==r.isCluster||void 0===r.containedNodes||void 0===r.containedEdges)throw new Error("The node:"+t+" is not a valid cluster.");var i=this.findNode(t),o=cp(i).call(i,t)-1;if(o>=0){var g=i[o];return this.body.nodes[g]._openChildCluster(t),delete this.body.nodes[t],void(!0===n&&this.body.emitter.emit("_dataChanged"))}var s=r.containedNodes,A=r.containedEdges;if(void 0!==e&&void 0!==e.releaseFunction&&"function"==typeof e.releaseFunction){var C={},I={x:r.x,y:r.y};for(var a in s)if(Object.prototype.hasOwnProperty.call(s,a)){var u=this.body.nodes[a];C[a]={x:u.x,y:u.y}}var c=e.releaseFunction(I,C);for(var l in s)if(Object.prototype.hasOwnProperty.call(s,l)){var h=this.body.nodes[l];void 0!==c[l]&&(h.x=void 0===c[l].x?r.x:c[l].x,h.y=void 0===c[l].y?r.y:c[l].y)}}else Rb(s,(function(t){!1===t.options.fixed.x&&(t.x=r.x),!1===t.options.fixed.y&&(t.y=r.y)}));for(var d in s)if(Object.prototype.hasOwnProperty.call(s,d)){var f=this.body.nodes[d];f.vx=r.vx,f.vy=r.vy,f.setOptions({physics:!0}),delete this.clusteredNodes[d]}for(var p=[],v=0;v0&&i<100;){var o=e.pop();if(void 0!==o){var g=this.body.edges[o];if(void 0!==g){i++;var s=g.clusteringEdgeReplacingIds;if(void 0===s)r.push(o);else for(var A=0;Ar&&(r=o.edges.length),t+=o.edges.length,e+=Math.pow(o.edges.length,2),n+=1}t/=n;var g=(e/=n)-Math.pow(t,2),s=Math.sqrt(g),A=Math.floor(t+2*s);return A>r&&(A=r),A}},{key:"_createClusteredEdge",value:function(t,e,n,r,i){var o=kD.cloneOptions(n,"edge");Sb(o,r),o.from=t,o.to=e,o.id="clusterEdge:"+iN(),void 0!==i&&Sb(o,i);var g=this.body.functions.createEdge(o);return g.clusteringEdgeReplacingIds=[n.id],g.connect(),this.body.edges[g.id]=g,g}},{key:"_clusterEdges",value:function(t,e,n,r){if(e instanceof fD){var i=e,o={};o[i.id]=i,e=o}if(t instanceof dR){var g=t,s={};s[g.id]=g,t=s}if(null==n)throw new Error("_clusterEdges: parameter clusterNode required");for(var A in void 0===r&&(r=n.clusterEdgeProperties),this._createClusterEdges(t,e,n,r),e)if(Object.prototype.hasOwnProperty.call(e,A)&&void 0!==this.body.edges[A]){var C=this.body.edges[A];this._backupEdgeOptions(C),C.setOptions({physics:!1})}for(var I in t)Object.prototype.hasOwnProperty.call(t,I)&&(this.clusteredNodes[I]={clusterId:n.id,node:this.body.nodes[I]},this.body.nodes[I].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(t){if(void 0!==t){var e=this.clusteredNodes[t];if(void 0!==e){var n=e.clusterId;if(void 0!==n)return this.body.nodes[n]}}}},{key:"_filter",value:function(t,e){var n=[];return Rb(t,(function(t){e(t)&&n.push(t)})),n}},{key:"_updateState",value:function(){var t,e=this,n=[],r={},i=function(t){Rb(e.body.nodes,(function(e){!0===e.isCluster&&t(e)}))};for(t in this.clusteredNodes)Object.prototype.hasOwnProperty.call(this.clusteredNodes,t)&&void 0===this.body.nodes[t]&&n.push(t);i((function(t){for(var e=0;e0}t.endPointsValid()&&i||(r[n]=n)})),i((function(t){Rb(r,(function(n){delete t.containedEdges[n],Rb(t.edges,(function(i,o){i.id!==n?i.clusteringEdgeReplacingIds=e._filter(i.clusteringEdgeReplacingIds,(function(t){return!r[t]})):t.edges[o]=null})),t.edges=e._filter(t.edges,(function(t){return null!==t}))}))})),Rb(r,(function(t){delete e.clusteredEdges[t]})),Rb(r,(function(t){delete e.body.edges[t]})),Rb(wh(this.body.edges),(function(t){var n=e.body.edges[t],r=e._isClusteredNode(n.fromId)||e._isClusteredNode(n.toId);if(r!==e._isClusteredEdge(n.id))if(r){var i=e._getClusterNodeForNode(n.fromId);void 0!==i&&e._clusterEdges(e.body.nodes[n.fromId],n,i);var o=e._getClusterNodeForNode(n.toId);void 0!==o&&e._clusterEdges(e.body.nodes[n.toId],n,o)}else delete e._clusterEdges[t],e._restoreEdge(n)}));for(var g=!1,s=!0,A=function(){var t=[];i((function(e){var n=wh(e.containedNodes).length,r=!0===e.options.allowSingleNodeCluster;(r&&n<1||!r&&n<2)&&t.push(e.id)}));for(var n=0;n0,g=g||s};s;)A();g&&this._updateState()}},{key:"_isClusteredNode",value:function(t){return void 0!==this.clusteredNodes[t]}},{key:"_isClusteredEdge",value:function(t){return void 0!==this.clusteredEdges[t]}}]),t}(),PD=function(){function t(e,n){var r;Bu(this,t),void 0!==window&&(r=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),window.requestAnimationFrame=void 0===r?function(t){t()}:r,this.body=e,this.canvas=n,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},Jr(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return nl(t,[{key:"bindEventListeners",value:function(){var t,e=this;this.body.emitter.on("dragStart",(function(){e.dragging=!0})),this.body.emitter.on("dragEnd",(function(){e.dragging=!1})),this.body.emitter.on("zoom",(function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=rv((function(){var t;e.zooming=!1,bi(t=e._requestRedraw).call(t,e)()}),250)})),this.body.emitter.on("_resizeNodes",(function(){e._resizeNodes()})),this.body.emitter.on("_redraw",(function(){!1===e.renderingActive&&e._redraw()})),this.body.emitter.on("_blockRedraw",(function(){e.allowRedraw=!1})),this.body.emitter.on("_allowRedraw",(function(){e.allowRedraw=!0,e.redrawRequested=!1})),this.body.emitter.on("_requestRedraw",bi(t=this._requestRedraw).call(t,this)),this.body.emitter.on("_startRendering",(function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()})),this.body.emitter.on("_stopRendering",(function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0})),this.body.emitter.on("destroy",(function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,!0===e.requiresTimeout?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()}))}},{key:"setOptions",value:function(t){void 0!==t&&kb(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"],this.options,t)}},{key:"_requestNextFrame",value:function(t,e){if("undefined"!=typeof window){var n,r=window;return!0===this.requiresTimeout?n=rv(t,e):r.requestAnimationFrame&&(n=r.requestAnimationFrame(t)),n}}},{key:"_startRendering",value:function(){var t;!0===this.renderingActive&&void 0===this.renderTimer&&(this.renderTimer=this._requestNextFrame(bi(t=this._renderStep).call(t,this),this.simulationInterval))}},{key:"_renderStep",value:function(){!0===this.renderingActive&&(this.renderTimer=void 0,!0===this.requiresTimeout&&this._startRendering(),this._redraw(),!1===this.requiresTimeout&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var t=this;!0!==this.redrawRequested&&!1===this.renderingActive&&!0===this.allowRedraw&&(this.redrawRequested=!0,this._requestNextFrame((function(){t._redraw(!1)}),0))}},{key:"_redraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!0===this.allowRedraw){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;var e={drawExternalLabels:null};0!==this.canvas.frame.canvas.width&&0!==this.canvas.frame.canvas.height||this.canvas.setSize(),this.canvas.setTransform();var n=this.canvas.getContext(),r=this.canvas.frame.canvas.clientWidth,i=this.canvas.frame.canvas.clientHeight;if(n.clearRect(0,0,r,i),0===this.canvas.frame.clientWidth)return;if(n.save(),n.translate(this.body.view.translation.x,this.body.view.translation.y),n.scale(this.body.view.scale,this.body.view.scale),n.beginPath(),this.body.emitter.emit("beforeDrawing",n),n.closePath(),!1===t&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&(!1===this.zooming||!0===this.zooming&&!1===this.options.hideEdgesOnZoom)&&this._drawEdges(n),!1===this.dragging||!0===this.dragging&&!1===this.options.hideNodesOnDrag){var o=this._drawNodes(n,t).drawExternalLabels;e.drawExternalLabels=o}!1===t&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&(!1===this.zooming||!0===this.zooming&&!1===this.options.hideEdgesOnZoom)&&this._drawArrows(n),null!=e.drawExternalLabels&&e.drawExternalLabels(),!1===t&&this._drawSelectionBox(n),n.beginPath(),this.body.emitter.emit("afterDrawing",n),n.closePath(),n.restore(),!0===t&&n.clearRect(0,0,r,i)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var t=this.canvas.getContext();t.save(),t.translate(this.body.view.translation.x,this.body.view.translation.y),t.scale(this.body.view.scale,this.body.view.scale);var e,n=this.body.nodes;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&((e=n[r]).resize(t),e.updateBoundingBox(t,e.selected));t.restore()}},{key:"_drawNodes",value:function(t){for(var e,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.body.nodes,o=this.body.nodeIndices,g=[],s=[],A=this.canvas.DOMtoCanvas({x:-20,y:-20}),C=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+20,y:this.canvas.frame.canvas.clientHeight+20}),I={top:A.y,left:A.x,bottom:C.y,right:C.x},a=[],u=0;u0&&void 0!==arguments[0]?arguments[0]:this.pixelRatio;!0===this.initialized&&(this.cameraState.previousWidth=this.frame.canvas.width/t,this.cameraState.previousHeight=this.frame.canvas.height/t,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/t,y:.5*this.frame.canvas.height/t}))}},{key:"_setCameraState",value:function(){if(void 0!==this.cameraState.scale&&0!==this.frame.canvas.clientWidth&&0!==this.frame.canvas.clientHeight&&0!==this.pixelRatio&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){var t=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,e=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,n=this.cameraState.scale;1!=t&&1!=e?n=.5*this.cameraState.scale*(t+e):1!=t?n=this.cameraState.scale*t:1!=e&&(n=this.cameraState.scale*e),this.body.view.scale=n;var r=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),i={x:r.x-this.cameraState.position.x,y:r.y-this.cameraState.position.y};this.body.view.translation.x+=i.x*this.body.view.scale,this.body.view.translation.y+=i.y*this.body.view.scale}}},{key:"_prepareValue",value:function(t){if("number"==typeof t)return t+"px";if("string"==typeof t){if(-1!==cp(t).call(t,"%")||-1!==cp(t).call(t,"px"))return t;if(-1===cp(t).call(t,"%"))return t+"px"}throw new Error("Could not use the value supplied for width or height:"+t)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=0,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(t)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var t=this;void 0!==this.hammer&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new im(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:im.DIRECTION_ALL}),MD(this.hammer,(function(e){t.body.eventListeners.onTouch(e)})),this.hammer.on("tap",(function(e){t.body.eventListeners.onTap(e)})),this.hammer.on("doubletap",(function(e){t.body.eventListeners.onDoubleTap(e)})),this.hammer.on("press",(function(e){t.body.eventListeners.onHold(e)})),this.hammer.on("panstart",(function(e){t.body.eventListeners.onDragStart(e)})),this.hammer.on("panmove",(function(e){t.body.eventListeners.onDrag(e)})),this.hammer.on("panend",(function(e){t.body.eventListeners.onDragEnd(e)})),this.hammer.on("pinch",(function(e){t.body.eventListeners.onPinch(e)})),this.frame.canvas.addEventListener("wheel",(function(e){t.body.eventListeners.onMouseWheel(e)})),this.frame.canvas.addEventListener("mousemove",(function(e){t.body.eventListeners.onMouseMove(e)})),this.frame.canvas.addEventListener("contextmenu",(function(e){t.body.eventListeners.onContext(e)})),this.hammerFrame=new im(this.frame),jD(this.hammerFrame,(function(e){t.body.eventListeners.onRelease(e)}))}},{key:"setSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.width,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.height;t=this._prepareValue(t),e=this._prepareValue(e);var n=!1,r=this.frame.canvas.width,i=this.frame.canvas.height,o=this.pixelRatio;if(this._setPixelRatio(),t!=this.options.width||e!=this.options.height||this.frame.style.width!=t||this.frame.style.height!=e)this._getCameraState(o),this.frame.style.width=t,this.frame.style.height=e,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=t,this.options.height=e,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},n=!0;else{var g=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),s=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);this.frame.canvas.width===g&&this.frame.canvas.height===s||this._getCameraState(o),this.frame.canvas.width!==g&&(this.frame.canvas.width=g,n=!0),this.frame.canvas.height!==s&&(this.frame.canvas.height=s,n=!0)}return!0===n&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(r/this.pixelRatio),oldHeight:Math.round(i/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,n}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var t=this.getContext();if(void 0===t)throw new Error("Could not get canvax context");var e=1;return"undefined"!=typeof window&&(e=window.devicePixelRatio||1),e/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var t=this.getContext();if(void 0===t)throw new Error("Could not get canvax context");t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(t){return{x:this._XconvertCanvasToDOM(t.x),y:this._YconvertCanvasToDOM(t.y)}}},{key:"DOMtoCanvas",value:function(t){return{x:this._XconvertDOMtoCanvas(t.x),y:this._YconvertDOMtoCanvas(t.y)}}}]),t}(),LD=function(){function t(e,n){var r,i,o=this;Bu(this,t),this.body=e,this.canvas=n,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",bi(r=this.fit).call(r,this)),this.body.emitter.on("animationFinished",(function(){o.body.emitter.emit("_stopRendering")})),this.body.emitter.on("unlockNode",bi(i=this.releaseNode).call(i,this))}return nl(t,[{key:"setOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t}},{key:"fit",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=function(t,e){var n=Jr({nodes:e,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},null!=t?t:{});if(!Ah(n.nodes))throw new TypeError("Nodes has to be an array of ids.");if(0===n.nodes.length&&(n.nodes=e),!("number"==typeof n.minZoomLevel&&n.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!("number"==typeof n.maxZoomLevel&&n.minZoomLevel<=n.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return n}(t,this.body.nodeIndices);var n,r,i=this.canvas.frame.canvas.clientWidth,o=this.canvas.frame.canvas.clientHeight;if(0===i||0===o)r=1,n=kD.getRange(this.body.nodes,t.nodes);else if(!0===e){var g=0;for(var s in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,s)&&!0===this.body.nodes[s].predefinedPosition&&(g+=1);if(g>.5*this.body.nodeIndices.length)return void this.fit(t,!1);n=kD.getRange(this.body.nodes,t.nodes),r=12.662/(this.body.nodeIndices.length+7.4147)+.0964822,r*=Math.min(i/600,o/600)}else{this.body.emitter.emit("_resizeNodes"),n=kD.getRange(this.body.nodes,t.nodes);var A=i/(1.1*Math.abs(n.maxX-n.minX)),C=o/(1.1*Math.abs(n.maxY-n.minY));r=A<=C?A:C}r>t.maxZoomLevel?r=t.maxZoomLevel:r1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==this.body.nodes[t]){var n={x:this.body.nodes[t].x,y:this.body.nodes[t].y};e.position=n,e.lockedOnNode=t,this.moveTo(e)}else console.error("Node: "+t+" cannot be found.")}},{key:"moveTo",value:function(t){if(void 0!==t){if(null!=t.offset){if(null!=t.offset.x){if(t.offset.x=+t.offset.x,!__(t.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else t.offset.x=0;if(null!=t.offset.y){if(t.offset.y=+t.offset.y,!__(t.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else t.offset.x=0}else t.offset={x:0,y:0};if(null!=t.position){if(null!=t.position.x){if(t.position.x=+t.position.x,!__(t.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else t.position.x=0;if(null!=t.position.y){if(t.position.y=+t.position.y,!__(t.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else t.position.x=0}else t.position=this.getViewPosition();if(null!=t.scale){if(t.scale=+t.scale,!(t.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else t.scale=this.body.view.scale;void 0===t.animation&&(t.animation={duration:0}),!1===t.animation&&(t.animation={duration:0}),!0===t.animation&&(t.animation={}),void 0===t.animation.duration&&(t.animation.duration=1e3),void 0===t.animation.easingFunction&&(t.animation.easingFunction="easeInOutQuad"),this.animateView(t)}else t={}}},{key:"animateView",value:function(t){if(void 0!==t){this.animationEasingFunction=t.animation.easingFunction,this.releaseNode(),!0===t.locked&&(this.lockedOnNodeId=t.lockedOnNode,this.lockedOnNodeOffset=t.offset),0!=this.easingTime&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=t.scale,this.body.view.scale=this.targetScale;var e,n,r=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i=r.x-t.position.x,o=r.y-t.position.y;this.targetTranslation={x:this.sourceTranslation.x+i*this.targetScale+t.offset.x,y:this.sourceTranslation.y+o*this.targetScale+t.offset.y},0===t.animation.duration?null!=this.lockedOnNodeId?(this.viewFunction=bi(e=this._lockedRedraw).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction)):(this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw")):(this.animationSpeed=1/(60*t.animation.duration*.001)||1/60,this.animationEasingFunction=t.animation.easingFunction,this.viewFunction=bi(n=this._transitionRedraw).call(n,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))}}},{key:"_lockedRedraw",value:function(){var t=this.body.nodes[this.lockedOnNodeId].x,e=this.body.nodes[this.lockedOnNodeId].y,n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),r=n.x-t,i=n.y-e,o=this.body.view.translation,g={x:o.x+r*this.body.view.scale+this.lockedOnNodeOffset.x,y:o.y+i*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=g}},{key:"releaseNode",value:function(){void 0!==this.lockedOnNodeId&&void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.easingTime+=this.animationSpeed,this.easingTime=!0===t?1:this.easingTime;var e,n=Wb[this.animationEasingFunction](this.easingTime);(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*n,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*n,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*n},this.easingTime>=1)&&(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,null!=this.lockedOnNodeId&&(this.viewFunction=bi(e=this._lockedRedraw).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction)),this.body.emitter.emit("animationFinished"))}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),t}();function FD(t){var e,n=t&&t.preventDefault||!1,r=t&&t.container||window,i={},o={keydown:{},keyup:{}},g={};for(e=97;e<=122;e++)g[String.fromCharCode(e)]={code:e-97+65,shift:!1};for(e=65;e<=90;e++)g[String.fromCharCode(e)]={code:e,shift:!0};for(e=0;e<=9;e++)g[""+e]={code:48+e,shift:!1};for(e=1;e<=12;e++)g["F"+e]={code:111+e,shift:!1};for(e=0;e<=9;e++)g["num"+e]={code:96+e,shift:!1};g["num*"]={code:106,shift:!1},g["num+"]={code:107,shift:!1},g["num-"]={code:109,shift:!1},g["num/"]={code:111,shift:!1},g["num."]={code:110,shift:!1},g.left={code:37,shift:!1},g.up={code:38,shift:!1},g.right={code:39,shift:!1},g.down={code:40,shift:!1},g.space={code:32,shift:!1},g.enter={code:13,shift:!1},g.shift={code:16,shift:void 0},g.esc={code:27,shift:!1},g.backspace={code:8,shift:!1},g.tab={code:9,shift:!1},g.ctrl={code:17,shift:!1},g.alt={code:18,shift:!1},g.delete={code:46,shift:!1},g.pageup={code:33,shift:!1},g.pagedown={code:34,shift:!1},g["="]={code:187,shift:!1},g["-"]={code:189,shift:!1},g["]"]={code:221,shift:!1},g["["]={code:219,shift:!1};var s=function(t){C(t,"keydown")},A=function(t){C(t,"keyup")},C=function(t,e){if(void 0!==o[e][t.keyCode]){for(var r=o[e][t.keyCode],i=0;i700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=(new Date).valueOf())}},{key:"_stopMovement",value:function(){for(var t in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,t)&&(this.body.emitter.off("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var t=this.body.view.scale,e=this.body.view.scale*(1+this.options.keyboard.speed.zoom),n=this.body.view.translation,r=e/t,i=(1-r)*this.canvas.canvasViewCenter.x+n.x*r,o=(1-r)*this.canvas.canvasViewCenter.y+n.y*r;this.body.view.scale=e,this.body.view.translation={x:i,y:o},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var t=this.body.view.scale,e=this.body.view.scale/(1+this.options.keyboard.speed.zoom),n=this.body.view.translation,r=e/t,i=(1-r)*this.canvas.canvasViewCenter.x+n.x*r,o=(1-r)*this.canvas.canvasViewCenter.y+n.y*r;this.body.view.scale=e,this.body.view.translation={x:i,y:o},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var t,e,n,r,i,o,g,s,A,C,I,a,u,c,l,h,d,f,p,v,y,b,m,w,_=this;void 0!==this.keycharm&&this.keycharm.destroy(),!0===this.options.keyboard.enabled&&(!0===this.options.keyboard.bindToWindow?this.keycharm=FD({container:window,preventDefault:!0}):this.keycharm=FD({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),!0===this.activated&&(bi(t=this.keycharm).call(t,"up",(function(){_.bindToRedraw("_moveUp")}),"keydown"),bi(e=this.keycharm).call(e,"down",(function(){_.bindToRedraw("_moveDown")}),"keydown"),bi(n=this.keycharm).call(n,"left",(function(){_.bindToRedraw("_moveLeft")}),"keydown"),bi(r=this.keycharm).call(r,"right",(function(){_.bindToRedraw("_moveRight")}),"keydown"),bi(i=this.keycharm).call(i,"=",(function(){_.bindToRedraw("_zoomIn")}),"keydown"),bi(o=this.keycharm).call(o,"num+",(function(){_.bindToRedraw("_zoomIn")}),"keydown"),bi(g=this.keycharm).call(g,"num-",(function(){_.bindToRedraw("_zoomOut")}),"keydown"),bi(s=this.keycharm).call(s,"-",(function(){_.bindToRedraw("_zoomOut")}),"keydown"),bi(A=this.keycharm).call(A,"[",(function(){_.bindToRedraw("_zoomOut")}),"keydown"),bi(C=this.keycharm).call(C,"]",(function(){_.bindToRedraw("_zoomIn")}),"keydown"),bi(I=this.keycharm).call(I,"pageup",(function(){_.bindToRedraw("_zoomIn")}),"keydown"),bi(a=this.keycharm).call(a,"pagedown",(function(){_.bindToRedraw("_zoomOut")}),"keydown"),bi(u=this.keycharm).call(u,"up",(function(){_.unbindFromRedraw("_moveUp")}),"keyup"),bi(c=this.keycharm).call(c,"down",(function(){_.unbindFromRedraw("_moveDown")}),"keyup"),bi(l=this.keycharm).call(l,"left",(function(){_.unbindFromRedraw("_moveLeft")}),"keyup"),bi(h=this.keycharm).call(h,"right",(function(){_.unbindFromRedraw("_moveRight")}),"keyup"),bi(d=this.keycharm).call(d,"=",(function(){_.unbindFromRedraw("_zoomIn")}),"keyup"),bi(f=this.keycharm).call(f,"num+",(function(){_.unbindFromRedraw("_zoomIn")}),"keyup"),bi(p=this.keycharm).call(p,"num-",(function(){_.unbindFromRedraw("_zoomOut")}),"keyup"),bi(v=this.keycharm).call(v,"-",(function(){_.unbindFromRedraw("_zoomOut")}),"keyup"),bi(y=this.keycharm).call(y,"[",(function(){_.unbindFromRedraw("_zoomOut")}),"keyup"),bi(b=this.keycharm).call(b,"]",(function(){_.unbindFromRedraw("_zoomIn")}),"keyup"),bi(m=this.keycharm).call(m,"pageup",(function(){_.unbindFromRedraw("_zoomIn")}),"keyup"),bi(w=this.keycharm).call(w,"pagedown",(function(){_.unbindFromRedraw("_zoomOut")}),"keyup")))}}]),t}();function ZD(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n50&&(this.drag.pointer=this.getPointer(t.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=(new Date).valueOf())}},{key:"onTap",value:function(t){var e=this.getPointer(t.center),n=this.selectionHandler.options.multiselect&&(t.changedPointers[0].ctrlKey||t.changedPointers[0].metaKey);this.checkSelectionChanges(e,n),this.selectionHandler.commitAndEmit(e,t),this.selectionHandler.generateClickEvent("click",t,e)}},{key:"onDoubleTap",value:function(t){var e=this.getPointer(t.center);this.selectionHandler.generateClickEvent("doubleClick",t,e)}},{key:"onHold",value:function(t){var e=this.getPointer(t.center),n=this.selectionHandler.options.multiselect;this.checkSelectionChanges(e,n),this.selectionHandler.commitAndEmit(e,t),this.selectionHandler.generateClickEvent("click",t,e),this.selectionHandler.generateClickEvent("hold",t,e)}},{key:"onRelease",value:function(t){if((new Date).valueOf()-this.touchTime>10){var e=this.getPointer(t.center);this.selectionHandler.generateClickEvent("release",t,e),this.touchTime=(new Date).valueOf()}}},{key:"onContext",value:function(t){var e=this.getPointer({x:t.clientX,y:t.clientY});this.selectionHandler.generateClickEvent("oncontext",t,e)}},{key:"checkSelectionChanges",value:function(t){!0===(arguments.length>1&&void 0!==arguments[1]&&arguments[1])?this.selectionHandler.selectAdditionalOnPoint(t):this.selectionHandler.selectOnPoint(t)}},{key:"_determineDifference",value:function(t,e){var n=function(t,e){for(var n=[],r=0;r=t.length?{done:!0}:{done:!1,value:t[r++]}},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,g=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return g=t.done,t},e:function(t){s=!0,o=t},f:function(){try{g||null==n.return||n.return()}finally{if(s)throw o}}}}(this.selectionHandler.getSelectedNodes());try{for(i.s();!(r=i.n()).done;){var o=r.value,g={id:o.id,node:o,x:o.x,y:o.y,xFixed:o.options.fixed.x,yFixed:o.options.fixed.y};o.options.fixed.x=!0,o.options.fixed.y=!0,this.drag.selection.push(g)}}catch(t){i.e(t)}finally{i.f()}}else this.selectionHandler.generateClickEvent("dragStart",t,this.drag.pointer,void 0,!0)}}},{key:"onDrag",value:function(t){var e=this;if(!0!==this.drag.pinched){this.body.emitter.emit("unlockNode");var n=this.getPointer(t.center),r=this.drag.selection;if(r&&r.length&&!0===this.options.dragNodes){this.selectionHandler.generateClickEvent("dragging",t,n);var i=n.x-this.drag.pointer.x,o=n.y-this.drag.pointer.y;Wh(r).call(r,(function(t){var n=t.node;!1===t.xFixed&&(n.x=e.canvas._XconvertDOMtoCanvas(e.canvas._XconvertCanvasToDOM(t.x)+i)),!1===t.yFixed&&(n.y=e.canvas._YconvertDOMtoCanvas(e.canvas._YconvertCanvasToDOM(t.y)+o))})),this.body.emitter.emit("startSimulation")}else{if(t.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",t,n,void 0,!0),void 0===this.drag.pointer)return void this.onDragStart(t);this.body.selectionBox.position.end={x:this.canvas._XconvertDOMtoCanvas(n.x),y:this.canvas._YconvertDOMtoCanvas(n.y)},this.body.emitter.emit("_requestRedraw")}if(!0===this.options.dragView&&!t.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",t,n,void 0,!0),void 0===this.drag.pointer)return void this.onDragStart(t);var g=n.x-this.drag.pointer.x,s=n.y-this.drag.pointer.y;this.body.view.translation={x:this.drag.translation.x+g,y:this.drag.translation.y+s},this.body.emitter.emit("_requestRedraw")}}}}},{key:"onDragEnd",value:function(t){var e=this;if(this.drag.dragging=!1,this.body.selectionBox.show){var n;this.body.selectionBox.show=!1;var r=this.body.selectionBox.position,i={minX:Math.min(r.start.x,r.end.x),minY:Math.min(r.start.y,r.end.y),maxX:Math.max(r.start.x,r.end.x),maxY:Math.max(r.start.y,r.end.y)},o=ff(n=this.body.nodeIndices).call(n,(function(t){var n=e.body.nodes[t];return n.x>=i.minX&&n.x<=i.maxX&&n.y>=i.minY&&n.y<=i.maxY}));Wh(o).call(o,(function(t){return e.selectionHandler.selectObject(e.body.nodes[t])}));var g=this.getPointer(t.center);this.selectionHandler.commitAndEmit(g,t),this.selectionHandler.generateClickEvent("dragEnd",t,this.getPointer(t.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{var s=this.drag.selection;s&&s.length?(Wh(s).call(s,(function(t){t.node.options.fixed.x=t.xFixed,t.node.options.fixed.y=t.yFixed})),this.selectionHandler.generateClickEvent("dragEnd",t,this.getPointer(t.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",t,this.getPointer(t.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}},{key:"onPinch",value:function(t){var e=this.getPointer(t.center);this.drag.pinched=!0,void 0===this.pinch.scale&&(this.pinch.scale=1);var n=this.pinch.scale*t.scale;this.zoom(n,e)}},{key:"zoom",value:function(t,e){if(!0===this.options.zoomView){var n=this.body.view.scale;t<1e-5&&(t=1e-5),t>10&&(t=10);var r=void 0;void 0!==this.drag&&!0===this.drag.dragging&&(r=this.canvas.DOMtoCanvas(this.drag.pointer));var i=this.body.view.translation,o=t/n,g=(1-o)*e.x+i.x*o,s=(1-o)*e.y+i.y*o;if(this.body.view.scale=t,this.body.view.translation={x:g,y:s},null!=r){var A=this.canvas.canvasToDOM(r);this.drag.pointer.x=A.x,this.drag.pointer.y=A.y}this.body.emitter.emit("_requestRedraw"),n0&&(this.popupObj=C[I[I.length-1]],o=!0)}if(void 0===this.popupObj&&!1===o){for(var u,c=this.body.edgeIndices,l=this.body.edges,h=[],d=0;d0&&(this.popupObj=l[h[h.length-1]],g="edge")}void 0!==this.popupObj?this.popupObj.id!==i&&(void 0===this.popup&&(this.popup=new om(this.canvas.frame)),this.popup.popupTargetType=g,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(t.x+3,t.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):void 0!==this.popup&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(t){var e=this.selectionHandler._pointerToPositionObject(t),n=!1;if("node"===this.popup.popupTargetType){if(void 0!==this.body.nodes[this.popup.popupTargetId]&&!0===(n=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(e))){var r=this.selectionHandler.getNodeAt(t);n=void 0!==r&&r.id===this.popup.popupTargetId}}else void 0===this.selectionHandler.getNodeAt(t)&&void 0!==this.body.edges[this.popup.popupTargetId]&&(n=this.body.edges[this.popup.popupTargetId].isOverlappingWith(e));!1===n&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),t}(),VD={},GD={get exports(){return VD},set exports(t){VD=t}},WD=J,YD=Yw,HD=Zm.getWeakData,KD=kw,QD=jn,XD=Ot,qD=jt,JD=xw,$D=Ne,tM=wo.set,eM=wo.getterFor,nM=FC.find,rM=FC.findIndex,iM=WD([].splice),oM=0,gM=function(t){return t.frozen||(t.frozen=new sM)},sM=function(){this.entries=[]},AM=function(t,e){return nM(t.entries,(function(t){return t[0]===e}))};sM.prototype={get:function(t){var e=AM(this,t);if(e)return e[1]},has:function(t){return!!AM(this,t)},set:function(t,e){var n=AM(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=rM(this.entries,(function(e){return e[0]===t}));return~e&&iM(this.entries,e,1),!!~e}};var CM,IM={getConstructor:function(t,e,n,r){var i=t((function(t,i){KD(t,o),tM(t,{type:e,id:oM++,frozen:void 0}),XD(i)||JD(i,t[r],{that:t,AS_ENTRIES:n})})),o=i.prototype,g=eM(e),s=function(t,e,n){var r=g(t),i=HD(QD(e),!0);return!0===i?gM(r).set(e,n):i[r.id]=n,t};return YD(o,{delete:function(t){var e=g(this);if(!qD(t))return!1;var n=HD(t);return!0===n?gM(e).delete(t):n&&$D(n,e.id)&&delete n[e.id]},has:function(t){var e=g(this);if(!qD(t))return!1;var n=HD(t);return!0===n?gM(e).has(t):n&&$D(n,e.id)}}),YD(o,n?{get:function(t){var e=g(this);if(qD(t)){var n=HD(t);return!0===n?gM(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return s(this,t,e)}}:{add:function(t){return s(this,t,!0)}}),i}},aM=Xm,uM=z,cM=J,lM=Yw,hM=Zm,dM=Gw,fM=IM,pM=jt,vM=wo.enforce,yM=Z,bM=oo,mM=Object,wM=Array.isArray,_M=mM.isExtensible,xM=mM.isFrozen,EM=mM.isSealed,OM=mM.freeze,kM=mM.seal,TM={},SM={},PM=!uM.ActiveXObject&&"ActiveXObject"in uM,NM=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},RM=dM("WeakMap",NM,fM),DM=RM.prototype,MM=cM(DM.set);if(bM)if(PM){CM=fM.getConstructor(NM,"WeakMap",!0),hM.enable();var jM=cM(DM.delete),BM=cM(DM.has),LM=cM(DM.get);lM(DM,{delete:function(t){if(pM(t)&&!_M(t)){var e=vM(this);return e.frozen||(e.frozen=new CM),jM(this,t)||e.frozen.delete(t)}return jM(this,t)},has:function(t){if(pM(t)&&!_M(t)){var e=vM(this);return e.frozen||(e.frozen=new CM),BM(this,t)||e.frozen.has(t)}return BM(this,t)},get:function(t){if(pM(t)&&!_M(t)){var e=vM(this);return e.frozen||(e.frozen=new CM),BM(this,t)?LM(this,t):e.frozen.get(t)}return LM(this,t)},set:function(t,e){if(pM(t)&&!_M(t)){var n=vM(this);n.frozen||(n.frozen=new CM),BM(this,t)?MM(this,t,e):n.frozen.set(t,e)}else MM(this,t,e);return this}})}else aM&&yM((function(){var t=OM([]);return MM(new RM,t,1),!xM(t)}))&&lM(DM,{set:function(t,e){var n;return wM(t)&&(xM(t)?n=TM:EM(t)&&(n=SM)),MM(this,t,e),n==TM&&OM(t),n==SM&&kM(t),this}});var FM=Bt.WeakMap;!function(t){t.exports=FM}(GD);var zM,ZM,UM,VM,GM,WM=j(VD);function YM(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function HM(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function KM(t,e){var n=void 0!==Yl&&YA(t)||t["@@iterator"];if(!n){if(Ah(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return QM(t,e);var r=nh(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?wA(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?QM(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},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,g=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return g=t.done,t},e:function(t){s=!0,o=t},f:function(){try{g||null==n.return||n.return()}finally{if(s)throw o}}}}function QM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:function(){};Bu(this,t),UM.set(this,new qM),VM.set(this,new qM),GM.set(this,void 0),HM(this,GM,e,"f")}return nl(t,[{key:"sizeNodes",get:function(){return YM(this,UM,"f").size}},{key:"sizeEdges",get:function(){return YM(this,VM,"f").size}},{key:"getNodes",value:function(){return YM(this,UM,"f").getSelection()}},{key:"getEdges",value:function(){return YM(this,VM,"f").getSelection()}},{key:"addNodes",value:function(){var t;(t=YM(this,UM,"f")).add.apply(t,arguments)}},{key:"addEdges",value:function(){var t;(t=YM(this,VM,"f")).add.apply(t,arguments)}},{key:"deleteNodes",value:function(t){YM(this,UM,"f").delete(t)}},{key:"deleteEdges",value:function(t){YM(this,VM,"f").delete(t)}},{key:"clear",value:function(){YM(this,UM,"f").clear(),YM(this,VM,"f").clear()}},{key:"commit",value:function(){for(var t,e,n={nodes:YM(this,UM,"f").commit(),edges:YM(this,VM,"f").commit()},r=arguments.length,i=new Array(r),o=0;o=t.length?{done:!0}:{done:!1,value:t[r++]}},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,g=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return g=t.done,t},e:function(t){s=!0,o=t},f:function(){try{g||null==n.return||n.return()}finally{if(s)throw o}}}}function tj(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n4&&void 0!==arguments[4]&&arguments[4],o=this._initBaseEvent(e,n);if(!0===i)o.nodes=[],o.edges=[];else{var g=this.getSelection();o.nodes=g.nodes,o.edges=g.edges}void 0!==r&&(o.previousSelection=r),"click"==t&&(o.items=this.getClickedItems(n)),void 0!==e.controlEdge&&(o.controlEdge=e.controlEdge),this.body.emitter.emit(t,o)}},{key:"selectObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.selectConnectedEdges;if(void 0!==t){var n;if(t instanceof dR)!0===e&&(n=this._selectionAccumulator).addEdges.apply(n,Gl(t.edges)),this._selectionAccumulator.addNodes(t);else this._selectionAccumulator.addEdges(t);return!0}return!1}},{key:"deselectObject",value:function(t){!0===t.isSelected()&&(t.selected=!1,this._removeFromSelection(t))}},{key:"_getAllNodesOverlappingWith",value:function(t){for(var e=[],n=this.body.nodes,r=0;r1&&void 0!==arguments[1])||arguments[1],n=this._pointerToPositionObject(t),r=this._getAllNodesOverlappingWith(n);return r.length>0?!0===e?this.body.nodes[r[r.length-1]]:r[r.length-1]:void 0}},{key:"_getEdgesOverlappingWith",value:function(t,e){for(var n=this.body.edges,r=0;r1&&void 0!==arguments[1])||arguments[1],n=this.canvas.DOMtoCanvas(t),r=10,i=null,o=this.body.edges,g=0;g0&&(this.generateClickEvent("deselectEdge",e,t,i),n=!0),r.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",e,t,i),n=!0),r.nodes.added.length>0&&(this.generateClickEvent("selectNode",e,t),n=!0),r.edges.added.length>0&&(this.generateClickEvent("selectEdge",e,t),n=!0),!0===n&&this.generateClickEvent("select",e,t)}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}},{key:"getSelectedNodes",value:function(){return this._selectionAccumulator.getNodes()}},{key:"getSelectedEdges",value:function(){return this._selectionAccumulator.getEdges()}},{key:"getSelectedNodeIds",value:function(){var t;return fh(t=this._selectionAccumulator.getNodes()).call(t,(function(t){return t.id}))}},{key:"getSelectedEdgeIds",value:function(){var t;return fh(t=this._selectionAccumulator.getEdges()).call(t,(function(t){return t.id}))}},{key:"setSelection",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!t.nodes&&!t.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((e.unselectAll||void 0===e.unselectAll)&&this.unselectAll(),t.nodes){var n,r=$M(t.nodes);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=this.body.nodes[i];if(!o)throw new RangeError('Node with id "'+i+'" not found');this.selectObject(o,e.highlightEdges)}}catch(t){r.e(t)}finally{r.f()}}if(t.edges){var g,s=$M(t.edges);try{for(s.s();!(g=s.n()).done;){var A=g.value,C=this.body.edges[A];if(!C)throw new RangeError('Edge with id "'+A+'" not found');this.selectObject(C)}}catch(t){s.e(t)}finally{s.f()}}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}},{key:"selectNodes",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t||void 0===t.length)throw"Selection must be an array with ids";this.setSelection({nodes:t},{highlightEdges:e})}},{key:"selectEdges",value:function(t){if(!t||void 0===t.length)throw"Selection must be an array with ids";this.setSelection({edges:t})}},{key:"updateSelection",value:function(){for(var t in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,t.id)||this._selectionAccumulator.deleteNodes(t);for(var e in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,e.id)||this._selectionAccumulator.deleteEdges(e)}},{key:"getClickedItems",value:function(t){for(var e=this.canvas.DOMtoCanvas(t),n=[],r=this.body.nodeIndices,i=this.body.nodes,o=r.length-1;o>=0;o--){var g=i[r[o]].getItemsOnPoint(e);n.push.apply(n,g)}for(var s=this.body.edgeIndices,A=this.body.edges,C=s.length-1;C>=0;C--){var I=A[s[C]].getItemsOnPoint(e);n.push.apply(n,I)}return n}}]),t}(),nj={},rj={get exports(){return nj},set exports(t){nj=t}},ij={};!function(t){!function(t){t.__esModule=!0,t.sort=function(t,n,r,s){if(!Array.isArray(t))throw new TypeError("Can only sort arrays");n?"function"!=typeof n&&(s=r,r=n,n=i):n=i,r||(r=0),s||(s=t.length);var A=s-r;if(!(A<2)){var I=0;if(A=e;)n|=1&t,t>>=1;return t+n}(A);do{if((I=o(t,r,s,n))u&&(c=u),g(t,r,r+c,r+I,n),I=c}a.pushRun(r,I),a.mergeRuns(),A-=I,r+=I}while(0!==A);a.forceMergeRuns()}}};var e=32,n=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9];function r(t){return t<1e5?t<100?t<10?0:1:t<1e4?t<1e3?2:3:4:t<1e7?t<1e6?5:6:t<1e9?t<1e8?7:8:9}function i(t,e){if(t===e)return 0;if(~~t===t&&~~e===e){if(0===t||0===e)return t=0)return-1;if(t>=0)return 1;t=-t,e=-e}var i=r(t),o=r(e),g=0;return io&&(e*=n[i-o-1],t/=10,g=1),t===e?g:t=0;)i++;return i-e}function g(t,e,n,r,i){for(r===e&&r++;r>>1;i(o,t[A])<0?s=A:g=A+1}var C=r-g;switch(C){case 3:t[g+3]=t[g+2];case 2:t[g+2]=t[g+1];case 1:t[g+1]=t[g];break;default:for(;C>0;)t[g+C]=t[g+C-1],C--}t[g]=o}}function s(t,e,n,r,i,o){var g=0,s=0,A=1;if(o(t,e[n+i])>0){for(s=r-i;A0;)g=A,(A=1+(A<<1))<=0&&(A=s);A>s&&(A=s),g+=i,A+=i}else{for(s=i+1;As&&(A=s);var C=g;g=i-A,A=i-C}for(g++;g>>1);o(t,e[n+I])>0?g=I+1:A=I}return A}function A(t,e,n,r,i,o){var g=0,s=0,A=1;if(o(t,e[n+i])<0){for(s=i+1;As&&(A=s);var C=g;g=i-A,A=i-C}else{for(s=r-i;A=0;)g=A,(A=1+(A<<1))<=0&&(A=s);A>s&&(A=s),g+=i,A+=i}for(g++;g>>1);o(t,e[n+I])<0?A=I:g=I+1}return A}var C=function(){function t(e,n){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.array=null,this.compare=null,this.minGallop=7,this.length=0,this.tmpStorageLength=256,this.stackLength=0,this.runStart=null,this.runLength=null,this.stackSize=0,this.array=e,this.compare=n,this.length=e.length,this.length<512&&(this.tmpStorageLength=this.length>>>1),this.tmp=new Array(this.tmpStorageLength),this.stackLength=this.length<120?5:this.length<1542?10:this.length<119151?19:40,this.runStart=new Array(this.stackLength),this.runLength=new Array(this.stackLength)}return t.prototype.pushRun=function(t,e){this.runStart[this.stackSize]=t,this.runLength[this.stackSize]=e,this.stackSize+=1},t.prototype.mergeRuns=function(){for(;this.stackSize>1;){var t=this.stackSize-2;if(t>=1&&this.runLength[t-1]<=this.runLength[t]+this.runLength[t+1]||t>=2&&this.runLength[t-2]<=this.runLength[t]+this.runLength[t-1])this.runLength[t-1]this.runLength[t+1])break;this.mergeAt(t)}},t.prototype.forceMergeRuns=function(){for(;this.stackSize>1;){var t=this.stackSize-2;t>0&&this.runLength[t-1]=7||h>=7);if(d)break;c<0&&(c=0),c+=2}if(this.minGallop=c,c<1&&(this.minGallop=1),1===e){for(C=0;C=0;C--)o[l+C]=o[c+C];if(0===e){p=!0;break}}if(o[u--]=g[a--],1==--r){p=!0;break}if(0!=(f=r-s(o[I],g,0,r,r-1,i))){for(r-=f,l=1+(u-=f),c=1+(a-=f),C=0;C=7||f>=7);if(p)break;h<0&&(h=0),h+=2}if(this.minGallop=h,h<1&&(this.minGallop=1),1===r){for(l=1+(u-=e),c=1+(I-=e),C=e-1;C>=0;C--)o[l+C]=o[c+C];o[u]=g[a]}else{if(0===r)throw new Error("mergeHigh preconditions were not respected");for(c=u-(r-1),C=0;C=0;C--)o[l+C]=o[c+C];o[u]=g[a]}else for(c=u-(r-1),C=0;C2&&void 0!==arguments[2]?arguments[2]:void 0;this.fake_use(t,e,n),this.abstract()}},{key:"getTreeSize",value:function(t){return this.fake_use(t),this.abstract()}},{key:"sort",value:function(t){this.fake_use(t),this.abstract()}},{key:"fix",value:function(t,e){this.fake_use(t,e),this.abstract()}},{key:"shift",value:function(t,e){this.fake_use(t,e),this.abstract()}}]),t}(),Aj=function(t){J_(n,t);var e=gj(n);function n(t){var r;return Bu(this,n),(r=e.call(this)).layout=t,r}return nl(n,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(t){return t.x}},{key:"setPosition",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==n&&this.layout.hierarchical.addToOrdering(t,n),t.x=e}},{key:"getTreeSize",value:function(t){var e=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:e.min_x,max:e.max_x}}},{key:"sort",value:function(t){nj.sort(t,(function(t,e){return t.x-e.x}))}},{key:"fix",value:function(t,e){t.y=this.layout.options.hierarchical.levelSeparation*e,t.options.fixed.y=!0}},{key:"shift",value:function(t,e){this.layout.body.nodes[t].x+=e}}]),n}(sj),Cj=function(t){J_(n,t);var e=gj(n);function n(t){var r;return Bu(this,n),(r=e.call(this)).layout=t,r}return nl(n,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(t){return t.y}},{key:"setPosition",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==n&&this.layout.hierarchical.addToOrdering(t,n),t.y=e}},{key:"getTreeSize",value:function(t){var e=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:e.min_y,max:e.max_y}}},{key:"sort",value:function(t){nj.sort(t,(function(t,e){return t.y-e.y}))}},{key:"fix",value:function(t,e){t.x=this.layout.options.hierarchical.levelSeparation*e,t.options.fixed.x=!0}},{key:"shift",value:function(t,e){this.layout.body.nodes[t].y+=e}}]),n}(sj),Ij={},aj={get exports(){return Ij},set exports(t){Ij=t}},uj=FC.every;Ar({target:"Array",proto:!0,forced:!Dh("every")},{every:function(t){return uj(this,t,arguments.length>1?arguments[1]:void 0)}});var cj=hi("Array").every,lj=Vt,hj=cj,dj=Array.prototype,fj=function(t){var e=t.every;return t===dj||lj(dj,t)&&e===dj.every?hj:e};!function(t){t.exports=fj}(aj);var pj=j(Ij);function vj(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=e[r])&&(e[r]=e[n]+1)})),e}function bj(t,e,n,r){var i,o,g=kp(null),s=zT(i=Gl(mP(r).call(r))).call(i,(function(t,e){return t+1+e.edges.length}),0),A=n+"Id",C="to"===n?1:-1,I=function(t,e){var n=void 0!==Yl&&YA(t)||t["@@iterator"];if(!n){if(Ah(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return vj(t,e);var r=nh(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?wA(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vj(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},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,g=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return g=t.done,t},e:function(t){s=!0,o=t},f:function(){try{g||null==n.return||n.return()}finally{if(s)throw o}}}}(r);try{var a=function(){var i=Vl(o.value,2),I=i[0],a=i[1];if(!r.has(I)||!t(a))return"continue";g[I]=0;for(var u,c=[a],l=0,h=function(){var t,i;if(!r.has(I))return"continue";var o=g[u.id]+C;if(Wh(t=ff(i=u.edges).call(i,(function(t){return t.connected&&t.to!==t.from&&t[n]!==u&&r.has(t.toId)&&r.has(t.fromId)}))).call(t,(function(t){var r=t[A],i=g[r];(null==i||e(o,i))&&(g[r]=o,c.push(t[n]))})),l>s)return{v:{v:yj(r,g)}};++l};u=c.pop();){var d=h();if("continue"!==d&&"object"===Hc(d))return d.v}};for(I.s();!(o=I.n()).done;){var u=a();if("continue"!==u&&"object"===Hc(u))return u.v}}catch(t){I.e(t)}finally{I.f()}return g}var mj=function(){function t(){Bu(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return nl(t,[{key:"addRelation",value:function(t,e){void 0===this.childrenReference[t]&&(this.childrenReference[t]=[]),this.childrenReference[t].push(e),void 0===this.parentReference[e]&&(this.parentReference[e]=[]),this.parentReference[e].push(t)}},{key:"checkIfTree",value:function(){for(var t in this.parentReference)if(this.parentReference[t].length>1)return void(this.isTree=!1);this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(t,e){void 0!==e&&void 0===this.trees[t.id]&&(this.trees[t.id]=e,this.treeIndex=Math.max(e,this.treeIndex))}},{key:"ensureLevel",value:function(t){void 0===this.levels[t]&&(this.levels[t]=0)}},{key:"getMaxLevel",value:function(t){var e=this,n={};return function t(r){if(void 0!==n[r])return n[r];var i=e.levels[r];if(e.childrenReference[r]){var o=e.childrenReference[r];if(o.length>0)for(var g=0;g0&&(n.levelSeparation*=-1):n.levelSeparation<0&&(n.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(e);if(!0===r)return this.body.emitter.emit("refresh"),Sb(e,this.optionsBackup)}return e}},{key:"_resetRNG",value:function(t){this.initialRandomSeed=t,this._rng=db(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(t){if(!0===this.options.hierarchical.enabled){var e=this.optionsBackup.physics;void 0===t.physics||!0===t.physics?(t.physics={enabled:void 0===e.enabled||e.enabled,solver:"hierarchicalRepulsion"},e.enabled=void 0===e.enabled||e.enabled,e.solver=e.solver||"barnesHut"):"object"===Hc(t.physics)?(e.enabled=void 0===t.physics.enabled||t.physics.enabled,e.solver=t.physics.solver||"barnesHut",t.physics.solver="hierarchicalRepulsion"):!1!==t.physics&&(e.solver="barnesHut",t.physics={solver:"hierarchicalRepulsion"});var n=this.direction.curveType();if(void 0===t.edges)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges={smooth:!1};else if(void 0===t.edges.smooth)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges.smooth=!1;else if("boolean"==typeof t.edges.smooth)this.optionsBackup.edges={smooth:t.edges.smooth},t.edges.smooth={enabled:t.edges.smooth,type:n};else{var r=t.edges.smooth;void 0!==r.type&&"dynamic"!==r.type&&(n=r.type),this.optionsBackup.edges={smooth:{enabled:void 0===r.enabled||r.enabled,type:void 0===r.type?"dynamic":r.type,roundness:void 0===r.roundness?.5:r.roundness,forceDirection:void 0!==r.forceDirection&&r.forceDirection}},t.edges.smooth={enabled:void 0===r.enabled||r.enabled,type:n,roundness:void 0===r.roundness?.5:r.roundness,forceDirection:void 0!==r.forceDirection&&r.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",n)}return t}},{key:"positionInitially",value:function(t){if(!0!==this.options.hierarchical.enabled){this._resetRNG(this.initialRandomSeed);for(var e=t.length+50,n=0;ni){for(var g=t.length;t.length>i&&r<=10;){r+=1;var s=t.length;if(r%3==0?this.body.modules.clustering.clusterBridges(o):this.body.modules.clustering.clusterOutliers(o),s==t.length&&r%3!=0)return this._declusterAll(),this.body.emitter.emit("_layoutFailed"),void console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.")}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*g)})}r>10&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(t,this.body.edgeIndices,!0),this._shiftToCenter();for(var A=0;A0){var t,e,n=!1,r=!1;for(e in this.lastNodeOnLevel={},this.hierarchical=new mj,this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,e)&&(void 0!==(t=this.body.nodes[e]).options.level?(n=!0,this.hierarchical.levels[e]=t.options.level):r=!0);if(!0===r&&!0===n)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(!0===r){var i=this.options.hierarchical.sortMethod;"hubsize"===i?this._determineLevelsByHubsize():"directed"===i?this._determineLevelsDirected():"custom"===i&&this._determineLevelsCustomCallback()}for(var o in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,o)&&this.hierarchical.ensureLevel(o);var g=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(g),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var t=this,e=!1,n={},r=function(e,n){var r=t.hierarchical.trees;for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&r[i]===e&&t.direction.shift(i,n)},i=function e(n,r){if(!r[n.id]&&(r[n.id]=!0,t.hierarchical.childrenReference[n.id])){var i=t.hierarchical.childrenReference[n.id];if(i.length>0)for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:1e9,r=1e9,i=1e9,o=1e9,g=-1e9;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var A=t.body.nodes[s],C=t.hierarchical.levels[A.id],I=t.direction.getPosition(A),a=Vl(t._getSpaceAroundNode(A,e),2),u=a[0],c=a[1];r=Math.min(u,r),i=Math.min(c,i),C<=n&&(o=Math.min(I,o),g=Math.max(I,g))}return[o,g,r,i]},g=function(e,n,r){for(var i=t.hierarchical,o=0;o1)for(var A=0;A2&&void 0!==arguments[2]&&arguments[2],s=t.direction.getPosition(n),A=t.direction.getPosition(r),C=Math.abs(A-s),I=t.options.hierarchical.nodeSpacing;if(C>I){var a={},u={};i(n,a),i(r,u);var c=function(e,n){var r=t.hierarchical.getMaxLevel(e.id),i=t.hierarchical.getMaxLevel(n.id);return Math.min(r,i)}(n,r),l=o(a,c),h=o(u,c),d=l[1],f=h[0],p=h[2];if(Math.abs(d-f)>I){var v=d-f+I;v<-p+I&&(v=-p+I),v<0&&(t._shiftBlock(r.id,v),e=!0,!0===g&&t._centerParent(r))}}},A=function(r,g){for(var s=g.id,A=g.edges,C=t.hierarchical.levels[g.id],I=t.options.hierarchical.levelSeparation*t.options.hierarchical.levelSeparation,a={},u=[],c=0;c0?c=Math.min(u,a-t.options.hierarchical.nodeSpacing):u<0&&(c=-Math.min(-u,I-t.options.hierarchical.nodeSpacing)),0!=c&&(t._shiftBlock(g.id,c),e=!0)}(v),function(n){var r=t.direction.getPosition(g),i=Vl(t._getSpaceAroundNode(g),2),o=i[0],s=i[1],A=n-r,C=r;A>0?C=Math.min(r+(s-t.options.hierarchical.nodeSpacing),n):A<0&&(C=Math.max(r-(o-t.options.hierarchical.nodeSpacing),n)),C!==r&&(t.direction.setPosition(g,C),e=!0)}(v=p(r,A))};!0===this.options.hierarchical.blockShifting&&(function(n){var r=t.hierarchical.getLevels();r=rd(r).call(r);for(var i=0;i<5&&(e=!1,g(s,r,!0),!0===e);i++);}(),function(){for(var e in t.body.nodes)Object.prototype.hasOwnProperty.call(t.body.nodes,e)&&t._centerParent(t.body.nodes[e])}()),!0===this.options.hierarchical.edgeMinimization&&function(n){var r=t.hierarchical.getLevels();r=rd(r).call(r);for(var i=0;i<20;i++){e=!1;for(var o=0;o0&&Math.abs(a)0&&(A=this.direction.getPosition(r[o-1])+s),this.direction.setPosition(g,A,e),this._validatePositionAndContinue(g,e,A),i++}}}}},{key:"_placeBranchNodes",value:function(t,e){var n,r=this.hierarchical.childrenReference[t];if(void 0!==r){for(var i=[],o=0;oe&&void 0===this.positionedNodes[s.id]))return;var C,I=this.options.hierarchical.nodeSpacing;C=0===g?this.direction.getPosition(this.body.nodes[t]):this.direction.getPosition(i[g-1])+I,this.direction.setPosition(s,C,A),this._validatePositionAndContinue(s,A,C)}var a=this._getCenterPosition(i);this.direction.setPosition(this.body.nodes[t],a,e)}}},{key:"_validatePositionAndContinue",value:function(t,e,n){if(this.hierarchical.isTree){if(void 0!==this.lastNodeOnLevel[e]){var r=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[e]]);if(n-rt}),"from",t)}(n),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_generateMap",value:function(){var t=this;this._crawlNetwork((function(e,n){t.hierarchical.levels[n.id]>t.hierarchical.levels[e.id]&&t.hierarchical.addRelation(e.id,n.id)})),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments.length>1?arguments[1]:void 0,r={},i=function n(i,o){if(void 0===r[i.id]){var g;t.hierarchical.setTreeIndex(i,o),r[i.id]=!0;for(var s=t._getActiveEdges(i),A=0;At.length)&&(e=t.length);for(var n=0,r=new Array(e);n1){let n=`${t}:
    `;for(const t of e)n+=`
  • ${t}
  • `;return n+"
"}return`${t}: ${e}
`}function $j(t,e){if("object"==typeof e?.properties)return(0,D.isInt)(e.properties[t])?e.properties[t].toInt():e.properties[t];throw new Error("Neo4j object is not properly constructed")}function tB(t,e){let n="";e||(e=l()(t.properties));for(const r of e){const e=$j(r,t);e&&(n+=Jj(r,e))}const r=document.createElement("div");return r.innerHTML=n,r}function eB(t,e){let n="";e||(e=l()(t.properties));for(const r of e){const e=$j(r,t);e&&(n+=`${r}: ${e}\n`)}return n}var nB=new(k()),rB=new(k()),iB=new(k()),oB=new(k()),gB=new(k()),sB=new(k()),AB=new(k()),CB=new(k()),IB=new(S()),aB=new(S()),uB=new(S()),cB=new(S()),lB=new(S()),hB=new(S()),dB=new(S()),fB=new(S()),pB=new(S()),vB=new(S()),yB=new(S());class bB{get nodes(){return I(this,nB).nodes}get edges(){return I(this,nB).edges}get _config(){return I(this,oB)}get network(){return I(this,rB)}constructor(t){Kj(this,yB),Kj(this,vB),Kj(this,pB),Kj(this,fB),Kj(this,dB),Kj(this,hB),Kj(this,lB),Kj(this,cB),Kj(this,uB),Kj(this,aB),Kj(this,IB),Qj(this,nB,{writable:!0,value:{nodes:new cN,edges:new cN}}),Qj(this,rB,{writable:!0,value:null}),Qj(this,iB,{writable:!0,value:new Zj}),Qj(this,oB,{writable:!0,value:void 0}),Qj(this,gB,{writable:!0,value:void 0}),Qj(this,sB,{writable:!0,value:void 0}),Qj(this,AB,{writable:!0,value:void 0}),Qj(this,CB,{writable:!0,value:void 0}),qj(this,aB,wB).call(this,t),qj(this,IB,mB).call(this,t),qj(this,IB,mB).call(this,Fj)}render(t){let e=0;const n=t||I(this,AB),r=I(this,gB).session(I(this,sB)?{database:I(this,sB)}:void 0),i=[];r.run(n,{limit:30}).subscribe({onNext:t=>{e++,qj(this,IB,mB).call(this,"CLASS NAME"),qj(this,IB,mB).call(this,t?.constructor.name),qj(this,IB,mB).call(this,t);const n=d()(t).call(t,(async t=>{if(qj(this,IB,mB).call(this,"Constructor:"),qj(this,IB,mB).call(this,t?.constructor.name),(0,D.isNode)(t)){const e=await qj(this,vB,PB).call(this,t);try{I(this,nB).nodes.update(e)}catch(t){qj(this,IB,mB).call(this,t,"error")}}else if((0,D.isRelationship)(t)){const e=await qj(this,yB,NB).call(this,t);I(this,nB).edges.update(e)}else if((0,D.isPath)(t)){qj(this,IB,mB).call(this,"PATH"),qj(this,IB,mB).call(this,t);const e=await qj(this,vB,PB).call(this,t.start),n=await qj(this,vB,PB).call(this,t.end);I(this,nB).nodes.update(e),I(this,nB).nodes.update(n);for(const e of t.segments)I(this,nB).nodes.update(await qj(this,vB,PB).call(this,e.start)),I(this,nB).nodes.update(await qj(this,vB,PB).call(this,e.end)),I(this,nB).edges.update(await qj(this,yB,NB).call(this,e.relationship))}else if(u()(t))for(const e of t)if(qj(this,IB,mB).call(this,"Array element constructor:"),qj(this,IB,mB).call(this,e?.constructor.name),(0,D.isNode)(e)){const t=await qj(this,vB,PB).call(this,e);I(this,nB).nodes.update(t)}else if((0,D.isRelationship)(e)){const t=await qj(this,yB,NB).call(this,e);I(this,nB).edges.update(t)}}));i.push(p().all(n))},onCompleted:async()=>{if(await p().all(i),await r.close(),!I(this,rB)){const t=Vj()(Fj.visJs,I(this,oB).visConfig??{}),e=I(this,CB);qj(this,IB,mB).call(this,I(this,nB).nodes),qj(this,IB,mB).call(this,I(this,nB).edges),C(this,rB,new Lj(e,I(this,nB),t))}qj(this,IB,mB).call(this,"completed"),y()((()=>{I(this,rB).stopSimulation()}),1e4),I(this,iB).generateEvent(zj.CompletionEvent,{recordCount:e});const t=this;I(this,rB).on("click",(function(e){if(e.nodes.length>0){const n=this.getNodeAt(e.pointer.DOM);I(t,iB).generateEvent(zj.ClickNodeEvent,{nodeId:n,node:I(t,nB).nodes.get(n)})}else if(e.edges.length>0){const n=this.getEdgeAt(e.pointer.DOM);I(t,iB).generateEvent(zj.ClickEdgeEvent,{edgeId:n,edge:I(t,nB).edges.get(n)})}}))},onError:t=>{qj(this,IB,mB).call(this,t,"error"),I(this,iB).generateEvent(zj.ErrorEvent,{error:t})}})}clearNetwork(){I(this,nB).nodes.clear(),I(this,nB).edges.clear()}registerOnEvent(t,e){I(this,iB).register(t,e)}reinit(t){qj(this,aB,wB).call(this,t),this.render()}reload(){this.clearNetwork(),this.render()}stabilize(){I(this,rB).stopSimulation(),qj(this,IB,mB).call(this,"Calling stopSimulation")}renderWithCypher(t){this.clearNetwork(),C(this,AB,t),this.render()}updateWithCypher(t){this.render(t)}}function mB(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";("log"!==e||I(this,oB).consoleDebug)&&console[e](t)}function wB(t){let e,n;if(t.nonFlat&&t.defaultLabelConfig){if(e=t.defaultLabelConfig,e[Hj])throw new Error("non flat config can't use NEOVIS_ADVANCED_CONFIG, read the doc to see how the config should look");if(n=t.defaultRelationshipsConfig,n[Hj])throw new Error("non flat config can't use NEOVIS_ADVANCED_CONFIG, read the doc to see how the config should look")}else e=t.labels?.[Yj],n=t.relationships?.[Yj];if(e)for(const n of l()(t.labels))t=t.nonFlat?{...t,labels:{...t.labels,[n]:Vj()(e,t.labels?.[n])}}:{...t,labels:{...t.labels,[n]:{...Vj()(e,t.labels?.[n]),[Hj]:Vj()(e[Hj]??{},(t.labels?.[n])[Hj]??{})}}};if(n)for(const e of l()(t.relationships))t=t.nonFlat?{...t,relationships:{...t.relationships,[e]:Vj()(n,t.relationships?.[e])}}:{...t,relationships:{...t.relationships,[e]:{...Vj()(n,t.relationships?.[e]),[Hj]:Vj()(n[Hj]??{},(t.relationships?.[e])[Hj]??{})}}};C(this,oB,t),C(this,gB,t.neo4j instanceof R.ZP.driver?t.neo4j:R.ZP.driver(t.neo4j?.serverUrl??Fj.neo4j.neo4jUri,R.ZP.auth.basic(t.neo4j?.serverUser??Fj.neo4j.neo4jUser,t.neo4j?.serverPassword??Fj.neo4j.neo4jPassword),Vj()(Fj.neo4j.driverConfig,t.neo4j?.driverConfig??{}))),C(this,sB,t.serverDatabase),C(this,AB,t.initialCypher??Fj.neo4j.initialQuery),C(this,CB,document.getElementById(t.containerId)),I(this,oB).groupAsLabel=t.groupAsLabel??Fj.neo4j.groupAsLabel}async function _B(t,e){const n=I(this,gB).session(I(this,sB)&&{database:I(this,sB)}),r=[];try{const i=await n.readTransaction((n=>n.run(t,{id:e})));for(const t of i.records)N()(t).call(t,(t=>{r.push(t)}))}finally{await n.close()}if(0!==r.length)return 1===r.length?r.pop():r}function xB(t,e){if("function"==typeof t)return t(e);throw new Error("Function type property field must be a function")}function EB(t,e){if(t&&"object"==typeof t)for(const n of l()(t)){const r=t[n];r&&"object"==typeof r?(e[n]||(e[n]={}),qj(this,lB,EB).call(this,r,e[n])):e[n]=r}}function OB(t,e,n){if(t&&"object"==typeof t)for(const r of l()(t)){const i=t[r];if("object"==typeof i)e[r]||(e[r]={}),qj(this,hB,OB).call(this,i,e[r],n);else{const i=t[r];e[r]=$j(i,n)}}}function*kB(t,e,n){if(t&&"object"==typeof t)for(const r of l()(t)){const i=t[r];if(i&&"object"==typeof i)e[r]||(e[r]={}),yield*qj(this,dB,kB).call(this,i,e[r],n);else{const t=qj(this,uB,_B).call(this,i,n);yield p().resolve(t).then((t=>{e[r]=t}))}}}function*TB(t,e,n){if(t&&"object"==typeof t)for(const r of l()(t)){const i=t[r];if(i&&"object"==typeof i)e[r]||(e[r]={}),yield*qj(this,fB,TB).call(this,i,e[r],n);else{const t=qj(this,cB,xB).call(this,i,n);yield p().resolve(t).then((t=>{e[r]=t}))}}}async function SB(t,e,n,r){if(!t)return;let i,o,g,s;if(I(this,oB).nonFlat){if(void 0!==t[Hj])throw new Error("Advanced config and non flat config should not be together");i=t.static,o=t.cypher,g=t.property,s=t.function}else{const e=t[Hj];if(g=t,void 0!==e&&"object"!=typeof e)throw new Error("Advanced config should be an object. See documentation for details.");o=e?.cypher,i=e?.static,s=e?.function}qj(this,hB,OB).call(this,g,e,n),qj(this,lB,EB).call(this,i,e),await p().all(qj(this,dB,kB).call(this,o,e,r)),await p().all(qj(this,fB,TB).call(this,s,e,n))}async function PB(t){const e={},n=t.labels[0],r=I(this,oB)?.labels?.[n]??I(this,oB)?.defaultLabelConfig??I(this,oB)?.labels?.[Yj];return e.id=(0,D.isInt)(t.identity)?t.identity.toInt():t.identity,e.raw=t,I(this,oB).groupAsLabel&&(e.group=n),await qj(this,pB,SB).call(this,r,e,t,e.id),e}async function NB(t){const e=I(this,oB)?.relationships?.[t.type]??I(this,oB).defaultRelationshipsConfig??I(this,oB)?.relationships?.[Yj],n={};return n.id=(0,D.isInt)(t.identity)?t.identity.toInt():t.identity,n.from=(0,D.isInt)(t.start)?t.start.toInt():t.start,n.to=(0,D.isInt)(t.end)?t.end.toInt():t.end,n.raw=t,await qj(this,pB,SB).call(this,e,n,t,n.id),n}function RB(t){var e,n,r,i;return{containerId:t.container_id,initialCypher:t.initial_cypher,consoleDebug:t.console_debug,serverDatabase:t.server_database,neo4j:{serverUrl:t.server_url,serverUser:t.server_user,serverPassword:t.server_password,driverConfig:t.encrypted||t.trust?{encrypted:t.encrypted,trust:t.trust}:void 0},visConfig:t.arrows||t.hierarchical?{edges:t.arrows?{arrows:{to:{enabled:t.arrows}}}:void 0,layout:t.hierarchical?{enabled:t.hierarchical,sortMethod:t.hierarchical_sort_method}:void 0}:void 0,labels:t.labels?m()(e=_()(n=E()(t.labels)).call(n,t.labels?.[Yj]?[[Yj,t.labels[Yj]]]:[])).call(e,((t,e)=>{let[n,r]=e;return t[n]={label:"function"!=typeof r.caption?r.caption:void 0,value:r.size,group:r.community,[Hj]:{cypher:r.sizeCypher?{value:r.sizeCypher}:void 0,function:Vj()({title:t=>tB(t,r.title_properties)},"function"==typeof r.caption?{label:r.caption}:{}),static:{font:r.font,shape:r.image?"image":"dot",image:r.image}}},t}),{}):void 0,relationships:t.relationships?m()(r=_()(i=E()(t.relationships)).call(i,t.relationships[Yj]?[[Yj,t.relationships[Yj]]]:[])).call(r,((t,e)=>{let[n,r]=e;return t[n]={value:r.thickness,label:"string"==typeof r.caption?r.caption:void 0,[Hj]:{function:{title:tB}}},t}),{}):void 0}}s(bB,"NEOVIS_DEFAULT_CONFIG",Yj),s(bB,"NEOVIS_ADVANCED_CONFIG",Hj),s(bB,"objectToTitleHtml",tB),s(bB,"objectToTitleString",eB);const DB=bB})(),r})())); //# sourceMappingURL=neovis.js.map \ No newline at end of file diff --git a/dist/neovis.js.map b/dist/neovis.js.map index b322dfa..cfa8787 100644 --- a/dist/neovis.js.map +++ b/dist/neovis.js.map @@ -1 +1 @@ -{"version":3,"file":"neovis.js","mappings":";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAgB,OAAID,IAEpBD,EAAa,OAAIC,GAClB,CATD,CASGK,MAAM,2CCPTJ,EAAQK,WAuCR,SAAqBC,GACnB,IAAIC,EAAOC,EAAQF,GACfG,EAAWF,EAAK,GAChBG,EAAkBH,EAAK,GAC3B,OAAuC,GAA9BE,EAAWC,GAAuB,EAAKA,CAClD,EA3CAV,EAAQW,YAiDR,SAAsBL,GACpB,IAAIM,EAcAC,EAbAN,EAAOC,EAAQF,GACfG,EAAWF,EAAK,GAChBG,EAAkBH,EAAK,GAEvBO,EAAM,IAAIC,EAVhB,SAAsBT,EAAKG,EAAUC,GACnC,OAAuC,GAA9BD,EAAWC,GAAuB,EAAKA,CAClD,CAQoBM,CAAYV,EAAKG,EAAUC,IAEzCO,EAAU,EAGVC,EAAMR,EAAkB,EACxBD,EAAW,EACXA,EAGJ,IAAKI,EAAI,EAAGA,EAAIK,EAAKL,GAAK,EACxBD,EACGO,EAAUb,EAAIc,WAAWP,KAAO,GAChCM,EAAUb,EAAIc,WAAWP,EAAI,KAAO,GACpCM,EAAUb,EAAIc,WAAWP,EAAI,KAAO,EACrCM,EAAUb,EAAIc,WAAWP,EAAI,IAC/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,EAC/ExB,MAAO2tP,EAAe3rP,KACtBw0F,MAAOm3J,EAAeE,UACtB,CAACrG,IAAyB,CACzBmE,OAAQgC,EAAeG,WAAa,CACnC9tP,MAAO2tP,EAAeG,iBACnBtsP,EACJi9O,SAAUlgN,KAAU,CACnBq9C,MAAQ/vD,GAAUo8N,GAAkBp8N,EAAO8hO,EAAeI,mBACtB,mBAA3BJ,EAAeC,QAAyB,CAAEhvM,MAAO+uM,EAAeC,SAAY,CAAC,GACvFnB,OAAQ,CACP1xD,KAAM4yD,EAAe5yD,KACrBpvB,MAAOgiF,EAAejiF,MAAQ,QAAU,MACxCA,MAAOiiF,EAAejiF,SAIlBgiF,CAAe,GACpB,CAAC,QAAKlsP,EACVypP,cAAe+B,EAAgB/B,cAAgBjmE,IAAAv8B,EAAApjB,IAAAikB,EAACmkG,IAAeT,EAAgB/B,gBAAcznP,KAAA8lJ,EACpF0jG,EAAgB/B,cAAc1D,IAAyB,CAAC,CAACA,GAAuByF,EAAgB/B,cAAc1D,MAA2B,KAAG/jP,KAAAilJ,GAC5I,CAACilG,EAAe98D,KAA6C,IAA1CpuH,EAAcwrL,GAAuBp9D,EAU/D,OATA88D,EAAgBlrL,GAAgB,CAC/BxiE,MAAOguP,EAAuBC,UAC9BrvM,MAAiD,iBAAnCovM,EAAuBJ,QAAuBI,EAAuBJ,aAAUpsP,EAC7F,CAACgmP,IAAyB,CACzB/I,SAAU,CACT7iK,MAAOqsK,MAIHyF,CAAe,GACpB,CAAC,QAAKlsP,EAEZ,CA9SEozG,EAjUW20I,GAAM,wBACahC,IAAqB3yI,EADxC20I,GAAM,yBAEc/B,IAAsB5yI,EAF1C20I,GAAM,oBAGStB,IAAiBrzI,EAHhC20I,GAAM,sBAIWhB,IA6mB9B","sources":["webpack://NeoVis/webpack/universalModuleDefinition","webpack://NeoVis/./node_modules/base64-js/index.js","webpack://NeoVis/./node_modules/buffer/index.js","webpack://NeoVis/./node_modules/core-js-pure/actual/object/define-property.js","webpack://NeoVis/./node_modules/core-js-pure/actual/symbol/index.js","webpack://NeoVis/./node_modules/core-js-pure/actual/symbol/iterator.js","webpack://NeoVis/./node_modules/core-js-pure/actual/symbol/to-primitive.js","webpack://NeoVis/./node_modules/core-js-pure/es/array/is-array.js","webpack://NeoVis/./node_modules/core-js-pure/es/array/virtual/concat.js","webpack://NeoVis/./node_modules/core-js-pure/es/array/virtual/for-each.js","webpack://NeoVis/./node_modules/core-js-pure/es/array/virtual/map.js","webpack://NeoVis/./node_modules/core-js-pure/es/array/virtual/reduce.js","webpack://NeoVis/./node_modules/core-js-pure/es/instance/concat.js","webpack://NeoVis/./node_modules/core-js-pure/es/instance/map.js","webpack://NeoVis/./node_modules/core-js-pure/es/instance/reduce.js","webpack://NeoVis/./node_modules/core-js-pure/es/object/define-property.js","webpack://NeoVis/./node_modules/core-js-pure/es/object/entries.js","webpack://NeoVis/./node_modules/core-js-pure/es/object/keys.js","webpack://NeoVis/./node_modules/core-js-pure/es/promise/index.js","webpack://NeoVis/./node_modules/core-js-pure/es/symbol/index.js","webpack://NeoVis/./node_modules/core-js-pure/es/symbol/iterator.js","webpack://NeoVis/./node_modules/core-js-pure/es/symbol/to-primitive.js","webpack://NeoVis/./node_modules/core-js-pure/es/weak-map/index.js","webpack://NeoVis/./node_modules/core-js-pure/es/weak-set/index.js","webpack://NeoVis/./node_modules/core-js-pure/features/object/define-property.js","webpack://NeoVis/./node_modules/core-js-pure/features/symbol/index.js","webpack://NeoVis/./node_modules/core-js-pure/features/symbol/iterator.js","webpack://NeoVis/./node_modules/core-js-pure/features/symbol/to-primitive.js","webpack://NeoVis/./node_modules/core-js-pure/full/object/define-property.js","webpack://NeoVis/./node_modules/core-js-pure/full/symbol/index.js","webpack://NeoVis/./node_modules/core-js-pure/full/symbol/iterator.js","webpack://NeoVis/./node_modules/core-js-pure/full/symbol/to-primitive.js","webpack://NeoVis/./node_modules/core-js-pure/internals/a-callable.js","webpack://NeoVis/./node_modules/core-js-pure/internals/a-constructor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/a-possible-prototype.js","webpack://NeoVis/./node_modules/core-js-pure/internals/add-to-unscopables.js","webpack://NeoVis/./node_modules/core-js-pure/internals/an-instance.js","webpack://NeoVis/./node_modules/core-js-pure/internals/an-object.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-buffer-non-extensible.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-for-each.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-includes.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-iteration.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-method-has-species-support.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-method-is-strict.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-reduce.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-slice-simple.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-slice.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-species-constructor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-species-create.js","webpack://NeoVis/./node_modules/core-js-pure/internals/check-correctness-of-iteration.js","webpack://NeoVis/./node_modules/core-js-pure/internals/classof-raw.js","webpack://NeoVis/./node_modules/core-js-pure/internals/classof.js","webpack://NeoVis/./node_modules/core-js-pure/internals/collection-weak.js","webpack://NeoVis/./node_modules/core-js-pure/internals/collection.js","webpack://NeoVis/./node_modules/core-js-pure/internals/copy-constructor-properties.js","webpack://NeoVis/./node_modules/core-js-pure/internals/correct-prototype-getter.js","webpack://NeoVis/./node_modules/core-js-pure/internals/create-iter-result-object.js","webpack://NeoVis/./node_modules/core-js-pure/internals/create-non-enumerable-property.js","webpack://NeoVis/./node_modules/core-js-pure/internals/create-property-descriptor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/create-property.js","webpack://NeoVis/./node_modules/core-js-pure/internals/define-built-in-accessor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/define-built-in.js","webpack://NeoVis/./node_modules/core-js-pure/internals/define-built-ins.js","webpack://NeoVis/./node_modules/core-js-pure/internals/define-global-property.js","webpack://NeoVis/./node_modules/core-js-pure/internals/descriptors.js","webpack://NeoVis/./node_modules/core-js-pure/internals/document-all.js","webpack://NeoVis/./node_modules/core-js-pure/internals/document-create-element.js","webpack://NeoVis/./node_modules/core-js-pure/internals/does-not-exceed-safe-integer.js","webpack://NeoVis/./node_modules/core-js-pure/internals/dom-iterables.js","webpack://NeoVis/./node_modules/core-js-pure/internals/engine-is-browser.js","webpack://NeoVis/./node_modules/core-js-pure/internals/engine-is-bun.js","webpack://NeoVis/./node_modules/core-js-pure/internals/engine-is-deno.js","webpack://NeoVis/./node_modules/core-js-pure/internals/engine-is-ios-pebble.js","webpack://NeoVis/./node_modules/core-js-pure/internals/engine-is-ios.js","webpack://NeoVis/./node_modules/core-js-pure/internals/engine-is-node.js","webpack://NeoVis/./node_modules/core-js-pure/internals/engine-is-webos-webkit.js","webpack://NeoVis/./node_modules/core-js-pure/internals/engine-user-agent.js","webpack://NeoVis/./node_modules/core-js-pure/internals/engine-v8-version.js","webpack://NeoVis/./node_modules/core-js-pure/internals/entry-virtual.js","webpack://NeoVis/./node_modules/core-js-pure/internals/enum-bug-keys.js","webpack://NeoVis/./node_modules/core-js-pure/internals/error-stack-clear.js","webpack://NeoVis/./node_modules/core-js-pure/internals/error-stack-install.js","webpack://NeoVis/./node_modules/core-js-pure/internals/error-stack-installable.js","webpack://NeoVis/./node_modules/core-js-pure/internals/export.js","webpack://NeoVis/./node_modules/core-js-pure/internals/fails.js","webpack://NeoVis/./node_modules/core-js-pure/internals/freezing.js","webpack://NeoVis/./node_modules/core-js-pure/internals/function-apply.js","webpack://NeoVis/./node_modules/core-js-pure/internals/function-bind-context.js","webpack://NeoVis/./node_modules/core-js-pure/internals/function-bind-native.js","webpack://NeoVis/./node_modules/core-js-pure/internals/function-call.js","webpack://NeoVis/./node_modules/core-js-pure/internals/function-name.js","webpack://NeoVis/./node_modules/core-js-pure/internals/function-uncurry-this-accessor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/function-uncurry-this-clause.js","webpack://NeoVis/./node_modules/core-js-pure/internals/function-uncurry-this.js","webpack://NeoVis/./node_modules/core-js-pure/internals/get-built-in.js","webpack://NeoVis/./node_modules/core-js-pure/internals/get-iterator-method.js","webpack://NeoVis/./node_modules/core-js-pure/internals/get-iterator.js","webpack://NeoVis/./node_modules/core-js-pure/internals/get-json-replacer-function.js","webpack://NeoVis/./node_modules/core-js-pure/internals/get-method.js","webpack://NeoVis/./node_modules/core-js-pure/internals/global.js","webpack://NeoVis/./node_modules/core-js-pure/internals/has-own-property.js","webpack://NeoVis/./node_modules/core-js-pure/internals/hidden-keys.js","webpack://NeoVis/./node_modules/core-js-pure/internals/host-report-errors.js","webpack://NeoVis/./node_modules/core-js-pure/internals/html.js","webpack://NeoVis/./node_modules/core-js-pure/internals/ie8-dom-define.js","webpack://NeoVis/./node_modules/core-js-pure/internals/indexed-object.js","webpack://NeoVis/./node_modules/core-js-pure/internals/inspect-source.js","webpack://NeoVis/./node_modules/core-js-pure/internals/install-error-cause.js","webpack://NeoVis/./node_modules/core-js-pure/internals/internal-metadata.js","webpack://NeoVis/./node_modules/core-js-pure/internals/internal-state.js","webpack://NeoVis/./node_modules/core-js-pure/internals/is-array-iterator-method.js","webpack://NeoVis/./node_modules/core-js-pure/internals/is-array.js","webpack://NeoVis/./node_modules/core-js-pure/internals/is-callable.js","webpack://NeoVis/./node_modules/core-js-pure/internals/is-constructor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/is-forced.js","webpack://NeoVis/./node_modules/core-js-pure/internals/is-null-or-undefined.js","webpack://NeoVis/./node_modules/core-js-pure/internals/is-object.js","webpack://NeoVis/./node_modules/core-js-pure/internals/is-pure.js","webpack://NeoVis/./node_modules/core-js-pure/internals/is-symbol.js","webpack://NeoVis/./node_modules/core-js-pure/internals/iterate.js","webpack://NeoVis/./node_modules/core-js-pure/internals/iterator-close.js","webpack://NeoVis/./node_modules/core-js-pure/internals/iterator-create-constructor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/iterator-define.js","webpack://NeoVis/./node_modules/core-js-pure/internals/iterators-core.js","webpack://NeoVis/./node_modules/core-js-pure/internals/iterators.js","webpack://NeoVis/./node_modules/core-js-pure/internals/length-of-array-like.js","webpack://NeoVis/./node_modules/core-js-pure/internals/math-trunc.js","webpack://NeoVis/./node_modules/core-js-pure/internals/microtask.js","webpack://NeoVis/./node_modules/core-js-pure/internals/new-promise-capability.js","webpack://NeoVis/./node_modules/core-js-pure/internals/normalize-string-argument.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-create.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-define-properties.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-define-property.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-get-own-property-descriptor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-get-own-property-names-external.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-get-own-property-names.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-get-own-property-symbols.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-get-prototype-of.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-is-extensible.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-is-prototype-of.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-keys-internal.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-keys.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-property-is-enumerable.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-set-prototype-of.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-to-array.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-to-string.js","webpack://NeoVis/./node_modules/core-js-pure/internals/ordinary-to-primitive.js","webpack://NeoVis/./node_modules/core-js-pure/internals/own-keys.js","webpack://NeoVis/./node_modules/core-js-pure/internals/path.js","webpack://NeoVis/./node_modules/core-js-pure/internals/perform.js","webpack://NeoVis/./node_modules/core-js-pure/internals/promise-constructor-detection.js","webpack://NeoVis/./node_modules/core-js-pure/internals/promise-native-constructor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/promise-resolve.js","webpack://NeoVis/./node_modules/core-js-pure/internals/promise-statics-incorrect-iteration.js","webpack://NeoVis/./node_modules/core-js-pure/internals/queue.js","webpack://NeoVis/./node_modules/core-js-pure/internals/require-object-coercible.js","webpack://NeoVis/./node_modules/core-js-pure/internals/schedulers-fix.js","webpack://NeoVis/./node_modules/core-js-pure/internals/set-species.js","webpack://NeoVis/./node_modules/core-js-pure/internals/set-to-string-tag.js","webpack://NeoVis/./node_modules/core-js-pure/internals/shared-key.js","webpack://NeoVis/./node_modules/core-js-pure/internals/shared-store.js","webpack://NeoVis/./node_modules/core-js-pure/internals/shared.js","webpack://NeoVis/./node_modules/core-js-pure/internals/species-constructor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/string-multibyte.js","webpack://NeoVis/./node_modules/core-js-pure/internals/symbol-constructor-detection.js","webpack://NeoVis/./node_modules/core-js-pure/internals/symbol-define-to-primitive.js","webpack://NeoVis/./node_modules/core-js-pure/internals/symbol-registry-detection.js","webpack://NeoVis/./node_modules/core-js-pure/internals/task.js","webpack://NeoVis/./node_modules/core-js-pure/internals/to-absolute-index.js","webpack://NeoVis/./node_modules/core-js-pure/internals/to-indexed-object.js","webpack://NeoVis/./node_modules/core-js-pure/internals/to-integer-or-infinity.js","webpack://NeoVis/./node_modules/core-js-pure/internals/to-length.js","webpack://NeoVis/./node_modules/core-js-pure/internals/to-object.js","webpack://NeoVis/./node_modules/core-js-pure/internals/to-primitive.js","webpack://NeoVis/./node_modules/core-js-pure/internals/to-property-key.js","webpack://NeoVis/./node_modules/core-js-pure/internals/to-string-tag-support.js","webpack://NeoVis/./node_modules/core-js-pure/internals/to-string.js","webpack://NeoVis/./node_modules/core-js-pure/internals/try-to-string.js","webpack://NeoVis/./node_modules/core-js-pure/internals/uid.js","webpack://NeoVis/./node_modules/core-js-pure/internals/use-symbol-as-uid.js","webpack://NeoVis/./node_modules/core-js-pure/internals/v8-prototype-define-bug.js","webpack://NeoVis/./node_modules/core-js-pure/internals/validate-arguments-length.js","webpack://NeoVis/./node_modules/core-js-pure/internals/weak-map-basic-detection.js","webpack://NeoVis/./node_modules/core-js-pure/internals/well-known-symbol-define.js","webpack://NeoVis/./node_modules/core-js-pure/internals/well-known-symbol-wrapped.js","webpack://NeoVis/./node_modules/core-js-pure/internals/well-known-symbol.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.aggregate-error.constructor.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.aggregate-error.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.array.concat.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.array.for-each.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.array.is-array.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.array.iterator.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.array.map.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.array.reduce.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.json.stringify.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.json.to-string-tag.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.object.define-property.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.object.entries.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.object.get-own-property-symbols.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.object.keys.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.all-settled.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.all.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.any.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.catch.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.constructor.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.finally.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.race.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.reject.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.resolve.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.string.iterator.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.async-iterator.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.constructor.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.for.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.has-instance.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.is-concat-spreadable.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.iterator.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.key-for.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.match-all.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.match.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.replace.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.search.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.species.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.split.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.to-primitive.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.to-string-tag.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.unscopables.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.weak-map.constructor.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.weak-map.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.weak-set.constructor.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.weak-set.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.async-dispose.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.dispose.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.is-registered.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.is-well-known.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.matcher.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.metadata-key.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.metadata.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.observable.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.pattern-match.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.replace-all.js","webpack://NeoVis/./node_modules/core-js-pure/modules/web.dom-collections.iterator.js","webpack://NeoVis/./node_modules/core-js-pure/modules/web.set-interval.js","webpack://NeoVis/./node_modules/core-js-pure/modules/web.set-timeout.js","webpack://NeoVis/./node_modules/core-js-pure/modules/web.timers.js","webpack://NeoVis/./node_modules/core-js-pure/stable/array/is-array.js","webpack://NeoVis/./node_modules/core-js-pure/stable/array/virtual/for-each.js","webpack://NeoVis/./node_modules/core-js-pure/stable/instance/concat.js","webpack://NeoVis/./node_modules/core-js-pure/stable/instance/for-each.js","webpack://NeoVis/./node_modules/core-js-pure/stable/instance/map.js","webpack://NeoVis/./node_modules/core-js-pure/stable/instance/reduce.js","webpack://NeoVis/./node_modules/core-js-pure/stable/object/define-property.js","webpack://NeoVis/./node_modules/core-js-pure/stable/object/entries.js","webpack://NeoVis/./node_modules/core-js-pure/stable/object/keys.js","webpack://NeoVis/./node_modules/core-js-pure/stable/promise/index.js","webpack://NeoVis/./node_modules/core-js-pure/stable/set-timeout.js","webpack://NeoVis/./node_modules/core-js-pure/stable/symbol/index.js","webpack://NeoVis/./node_modules/core-js-pure/stable/symbol/iterator.js","webpack://NeoVis/./node_modules/core-js-pure/stable/symbol/to-primitive.js","webpack://NeoVis/./node_modules/core-js-pure/stable/weak-map/index.js","webpack://NeoVis/./node_modules/core-js-pure/stable/weak-set/index.js","webpack://NeoVis/./node_modules/deepmerge/dist/cjs.js","webpack://NeoVis/./node_modules/ieee754/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/bolt-protocol-util.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/bolt-protocol-v1.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/bolt-protocol-v2.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/bolt-protocol-v3.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/bolt-protocol-v4x0.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/bolt-protocol-v4x1.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/bolt-protocol-v4x2.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/bolt-protocol-v4x3.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/bolt-protocol-v4x4.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/create.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/handshake.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/request-message.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/response-handler.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/routing-table-raw.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/stream-observers.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/buf/base-buf.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/buf/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/channel/browser/browser-channel.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/channel/browser/browser-host-name-resolver.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/channel/browser/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/channel/channel-buf.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/channel/channel-config.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/channel/chunking.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/channel/combined-buf.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/channel/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/channel/utf8.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection-provider/connection-provider-direct.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection-provider/connection-provider-pooled.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection-provider/connection-provider-routing.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection-provider/connection-provider-single.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection-provider/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection/connection-channel.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection/connection-delegate.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection/connection-error-handler.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection/connection.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/load-balancing/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/load-balancing/least-connected-load-balancing-strategy.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/load-balancing/load-balancing-strategy.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/load-balancing/round-robin-array-index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/packstream/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/packstream/packstream-utc.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/packstream/packstream-v1.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/packstream/packstream-v2.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/packstream/temporal-factory.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/pool/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/pool/pool-config.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/pool/pool.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/rediscovery/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/rediscovery/rediscovery.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/rediscovery/routing-table.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/auth.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/connection-provider.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/connection.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/driver.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/error.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/graph-types.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/index.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/integer.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/bookmark.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/connection-holder.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/connectivity-verifier.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/constants.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/index.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/logger.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/object-util.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/observers.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/resolver/base-host-name-resolver.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/resolver/configured-custom-resolver.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/resolver/index.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/retry-strategy.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/server-address.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/temporal-util.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/transaction-executor.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/tx-config.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/url-util.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/util.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/json.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/record.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/result-summary.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/result.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/session.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/spatial-types.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/temporal-types.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/transaction.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/types.js","webpack://NeoVis/./node_modules/neo4j-driver/lib/driver.js","webpack://NeoVis/./node_modules/neo4j-driver/lib/index.js","webpack://NeoVis/./node_modules/neo4j-driver/lib/internal/retry-logic-rx.js","webpack://NeoVis/./node_modules/neo4j-driver/lib/result-rx.js","webpack://NeoVis/./node_modules/neo4j-driver/lib/session-rx.js","webpack://NeoVis/./node_modules/neo4j-driver/lib/transaction-rx.js","webpack://NeoVis/./node_modules/neo4j-driver/lib/version.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/AnimationFrameAction.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/animationFrame.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/AnimationFrameScheduler.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/VirtualTimeScheduler.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isObservable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/bindCallback.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/bindNodeCallback.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/forkJoin.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/fromEvent.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/fromEventPattern.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/generate.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/iif.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/interval.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/never.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/onErrorResumeNext.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/pairs.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/partition.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/range.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/using.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/AsyncSubject.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/BehaviorSubject.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/Notification.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/Observable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/toSubscriber.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/Observer.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/OuterSubscriber.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/ReplaySubject.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/Scheduler.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/Subject.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/SubjectSubscription.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/Subscriber.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/Subscription.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/config.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/innerSubscribe.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/ConnectableObservable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/combineLatest.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/concat.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/defer.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/empty.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/from.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/fromArray.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/merge.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/of.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/race.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/throwError.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/timer.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/zip.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/concatAll.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/filter.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/groupBy.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/map.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/mergeAll.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/mergeMap.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/observeOn.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/refCount.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduled/scheduleArray.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduled/scheduled.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isInteropObservable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduled/scheduleObservable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduled/schedulePromise.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isIterable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduled/scheduleIterable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/AsyncAction.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/Action.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/AsyncScheduler.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/Immediate.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/AsapAction.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/asap.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/AsapScheduler.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/async.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/QueueAction.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/queue.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/QueueScheduler.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/symbol/iterator.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/symbol/observable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/symbol/rxSubscriber.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/ArgumentOutOfRangeError.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/EmptyError.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/ObjectUnsubscribedError.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/TimeoutError.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/UnsubscriptionError.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/canReportError.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/hostReportError.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/identity.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isArray.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isArrayLike.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isFunction.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isNumeric.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isObject.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isPromise.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isScheduler.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/noop.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/not.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/pipe.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/subscribeTo.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/subscribeToObservable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/subscribeToPromise.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/subscribeToIterable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/subscribeToArray.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/InnerSubscriber.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/audit.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/auditTime.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/buffer.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/bufferCount.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/bufferTime.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/bufferToggle.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/bufferWhen.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/catchError.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/combineAll.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/combineLatest.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/concat.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/concatMap.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/concatMapTo.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/count.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/debounce.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/debounceTime.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/defaultIfEmpty.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isDate.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/delay.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/delayWhen.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/dematerialize.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/distinct.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/distinctUntilChanged.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/distinctUntilKeyChanged.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/throwIfEmpty.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/take.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/elementAt.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/endWith.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/every.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/exhaust.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/exhaustMap.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/expand.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/finalize.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/find.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/findIndex.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/first.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/ignoreElements.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/isEmpty.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/takeLast.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/last.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/mapTo.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/materialize.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/scan.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/reduce.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/max.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/merge.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/mergeMapTo.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/mergeScan.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/min.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/multicast.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/onErrorResumeNext.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/pairwise.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/partition.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/pluck.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/publish.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/publishBehavior.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/publishLast.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/publishReplay.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/race.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/repeat.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/repeatWhen.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/retry.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/retryWhen.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/sample.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/sampleTime.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/sequenceEqual.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/share.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/shareReplay.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/single.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/skip.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/skipLast.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/skipUntil.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/skipWhile.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/startWith.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/SubscribeOnObservable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/subscribeOn.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/switchMap.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/switchAll.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/switchMapTo.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/takeUntil.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/takeWhile.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/tap.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/throttle.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/throttleTime.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/timeInterval.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/timeoutWith.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/timeout.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/timestamp.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/toArray.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/window.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/windowCount.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/windowTime.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/windowToggle.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/windowWhen.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/withLatestFrom.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/zip.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/zipAll.js","webpack://NeoVis/./node_modules/safe-buffer/index.js","webpack://NeoVis/./node_modules/string_decoder/lib/string_decoder.js","webpack://NeoVis/./node_modules/tslib/tslib.es6.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/array/is-array.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/for-each.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/object/entries.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/promise.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/set-timeout.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/weak-set.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js/object/define-property.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js/symbol.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js/symbol/iterator.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js/symbol/to-primitive.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/classCallCheck.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/createClass.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/inherits.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/toPrimitive.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/toPropertyKey.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/typeof.js","webpack://NeoVis/webpack/bootstrap","webpack://NeoVis/webpack/runtime/compat get default export","webpack://NeoVis/webpack/runtime/define property getters","webpack://NeoVis/webpack/runtime/global","webpack://NeoVis/webpack/runtime/hasOwnProperty shorthand","webpack://NeoVis/webpack/runtime/make namespace object","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/helpers/esm/typeof.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/helpers/esm/toPropertyKey.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/helpers/esm/toPrimitive.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/helpers/esm/classExtractFieldDescriptor.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldSet.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/helpers/esm/classApplyDescriptorSet.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldGet.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/helpers/esm/classApplyDescriptorGet.js","webpack://NeoVis/./node_modules/vis-network/standalone/esm/vis-network.js","webpack://NeoVis/./src/defaults.ts","webpack://NeoVis/./src/events.ts","webpack://NeoVis/./src/types.ts","webpack://NeoVis/./src/neovis.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"NeoVis\"] = factory();\n\telse\n\t\troot[\"NeoVis\"] = factory();\n})(self, () => {\nreturn ","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nconst base64 = require('base64-js')\nconst ieee754 = require('ieee754')\nconst customInspectSymbol =\n (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation\n ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation\n : null\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nconst K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n const arr = new Uint8Array(1)\n const proto = { foo: function () { return 42 } }\n Object.setPrototypeOf(proto, Uint8Array.prototype)\n Object.setPrototypeOf(arr, proto)\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n const buf = new Uint8Array(length)\n Object.setPrototypeOf(buf, Buffer.prototype)\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayView(value)\n }\n\n if (value == null) {\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof SharedArrayBuffer !== 'undefined' &&\n (isInstance(value, SharedArrayBuffer) ||\n (value && isInstance(value.buffer, SharedArrayBuffer)))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n const valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n const b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\nObject.setPrototypeOf(Buffer, Uint8Array)\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpreted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n const length = byteLength(string, encoding) | 0\n let buf = createBuffer(length)\n\n const actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n const length = array.length < 0 ? 0 : checked(array.length) | 0\n const buf = createBuffer(length)\n for (let i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayView (arrayView) {\n if (isInstance(arrayView, Uint8Array)) {\n const copy = new Uint8Array(arrayView)\n return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)\n }\n return fromArrayLike(arrayView)\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n let buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(buf, Buffer.prototype)\n\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n const len = checked(obj.length) | 0\n const buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n let x = a.length\n let y = b.length\n\n for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n let i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n const buffer = Buffer.allocUnsafe(length)\n let pos = 0\n for (i = 0; i < list.length; ++i) {\n let buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n if (pos + buf.length > buffer.length) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)\n buf.copy(buffer, pos)\n } else {\n Uint8Array.prototype.set.call(\n buffer,\n buf,\n pos\n )\n }\n } else if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n } else {\n buf.copy(buffer, pos)\n }\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n const len = string.length\n const mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n let loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n const i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n const len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (let i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n const len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (let i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n const len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (let i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n const length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n let str = ''\n const max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return ''\n}\nif (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n let x = thisEnd - thisStart\n let y = end - start\n const len = Math.min(x, y)\n\n const thisCopy = this.slice(thisStart, thisEnd)\n const targetCopy = target.slice(start, end)\n\n for (let i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n let indexSize = 1\n let arrLength = arr.length\n let valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n let i\n if (dir) {\n let foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n let found = true\n for (let j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n const remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n const strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n let i\n for (i = 0; i < length; ++i) {\n const parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n const remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n case 'latin1':\n case 'binary':\n return asciiWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n const res = []\n\n let i = start\n while (i < end) {\n const firstByte = buf[i]\n let codePoint = null\n let bytesPerSequence = (firstByte > 0xEF)\n ? 4\n : (firstByte > 0xDF)\n ? 3\n : (firstByte > 0xBF)\n ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n let secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nconst MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n const len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n let res = ''\n let i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n const len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n let out = ''\n for (let i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]]\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n const bytes = buf.slice(start, end)\n let res = ''\n // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n for (let i = 0; i < bytes.length - 1; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n const len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n const newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(newBuf, Buffer.prototype)\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUintLE =\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUintBE =\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n let val = this[offset + --byteLength]\n let mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUint8 =\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUint16LE =\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUint16BE =\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUint32LE =\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUint32BE =\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const lo = first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24\n\n const hi = this[++offset] +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24\n\n return BigInt(lo) + (BigInt(hi) << BigInt(32))\n})\n\nBuffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const hi = first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n const lo = this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last\n\n return (BigInt(hi) << BigInt(32)) + BigInt(lo)\n})\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let i = byteLength\n let mul = 1\n let val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = this[offset + 4] +\n this[offset + 5] * 2 ** 8 +\n this[offset + 6] * 2 ** 16 +\n (last << 24) // Overflow\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24)\n})\n\nBuffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last)\n})\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUintLE =\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let mul = 1\n let i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUintBE =\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let i = byteLength - 1\n let mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUint8 =\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUint16LE =\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUint16BE =\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUint32LE =\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUint32BE =\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction wrtBigUInt64LE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n return offset\n}\n\nfunction wrtBigUInt64BE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset + 7] = lo\n lo = lo >> 8\n buf[offset + 6] = lo\n lo = lo >> 8\n buf[offset + 5] = lo\n lo = lo >> 8\n buf[offset + 4] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset + 3] = hi\n hi = hi >> 8\n buf[offset + 2] = hi\n hi = hi >> 8\n buf[offset + 1] = hi\n hi = hi >> 8\n buf[offset] = hi\n return offset + 8\n}\n\nBuffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = 0\n let mul = 1\n let sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = byteLength - 1\n let mul = 1\n let sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nBuffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n const len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n const code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n } else if (typeof val === 'boolean') {\n val = Number(val)\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n let i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n const bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n const len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// CUSTOM ERRORS\n// =============\n\n// Simplified versions from Node, changed for Buffer-only usage\nconst errors = {}\nfunction E (sym, getMessage, Base) {\n errors[sym] = class NodeError extends Base {\n constructor () {\n super()\n\n Object.defineProperty(this, 'message', {\n value: getMessage.apply(this, arguments),\n writable: true,\n configurable: true\n })\n\n // Add the error code to the name to include it in the stack trace.\n this.name = `${this.name} [${sym}]`\n // Access the stack to generate the error message including the error code\n // from the name.\n this.stack // eslint-disable-line no-unused-expressions\n // Reset the name to the actual name.\n delete this.name\n }\n\n get code () {\n return sym\n }\n\n set code (value) {\n Object.defineProperty(this, 'code', {\n configurable: true,\n enumerable: true,\n value,\n writable: true\n })\n }\n\n toString () {\n return `${this.name} [${sym}]: ${this.message}`\n }\n }\n}\n\nE('ERR_BUFFER_OUT_OF_BOUNDS',\n function (name) {\n if (name) {\n return `${name} is outside of buffer bounds`\n }\n\n return 'Attempt to access memory outside buffer bounds'\n }, RangeError)\nE('ERR_INVALID_ARG_TYPE',\n function (name, actual) {\n return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`\n }, TypeError)\nE('ERR_OUT_OF_RANGE',\n function (str, range, input) {\n let msg = `The value of \"${str}\" is out of range.`\n let received = input\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n }\n msg += ` It must be ${range}. Received ${received}`\n return msg\n }, RangeError)\n\nfunction addNumericalSeparator (val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\n\n// CHECK FUNCTIONS\n// ===============\n\nfunction checkBounds (buf, offset, byteLength) {\n validateNumber(offset, 'offset')\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n boundsError(offset, buf.length - (byteLength + 1))\n }\n}\n\nfunction checkIntBI (value, min, max, buf, offset, byteLength) {\n if (value > max || value < min) {\n const n = typeof min === 'bigint' ? 'n' : ''\n let range\n if (byteLength > 3) {\n if (min === 0 || min === BigInt(0)) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +\n `${(byteLength + 1) * 8 - 1}${n}`\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`\n }\n throw new errors.ERR_OUT_OF_RANGE('value', range, value)\n }\n checkBounds(buf, offset, byteLength)\n}\n\nfunction validateNumber (value, name) {\n if (typeof value !== 'number') {\n throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n}\n\nfunction boundsError (value, length, type) {\n if (Math.floor(value) !== value) {\n validateNumber(value, type)\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)\n }\n\n if (length < 0) {\n throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()\n }\n\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset',\n `>= ${type ? 1 : 0} and <= ${length}`,\n value)\n}\n\n// HELPER FUNCTIONS\n// ================\n\nconst INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n let codePoint\n const length = string.length\n let leadSurrogate = null\n const bytes = []\n\n for (let i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n let c, hi, lo\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n let i\n for (i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n// Create lookup table for `toString('hex')`\n// See: https://github.com/feross/buffer/issues/219\nconst hexSliceLookupTable = (function () {\n const alphabet = '0123456789abcdef'\n const table = new Array(256)\n for (let i = 0; i < 16; ++i) {\n const i16 = i * 16\n for (let j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j]\n }\n }\n return table\n})()\n\n// Return not function with Error if BigInt not supported\nfunction defineBigIntMethod (fn) {\n return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn\n}\n\nfunction BufferBigIntNotDefined () {\n throw new Error('BigInt not supported')\n}\n","var parent = require('../../stable/object/define-property');\n\nmodule.exports = parent;\n","var parent = require('../../stable/symbol');\n\nrequire('../../modules/esnext.symbol.dispose');\n\nmodule.exports = parent;\n","var parent = require('../../stable/symbol/iterator');\n\nmodule.exports = parent;\n","var parent = require('../../stable/symbol/to-primitive');\n\nmodule.exports = parent;\n","require('../../modules/es.array.is-array');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Array.isArray;\n","require('../../../modules/es.array.concat');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').concat;\n","require('../../../modules/es.array.for-each');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').forEach;\n","require('../../../modules/es.array.map');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').map;\n","require('../../../modules/es.array.reduce');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').reduce;\n","var isPrototypeOf = require('../../internals/object-is-prototype-of');\nvar method = require('../array/virtual/concat');\n\nvar ArrayPrototype = Array.prototype;\n\nmodule.exports = function (it) {\n var own = it.concat;\n return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.concat) ? method : own;\n};\n","var isPrototypeOf = require('../../internals/object-is-prototype-of');\nvar method = require('../array/virtual/map');\n\nvar ArrayPrototype = Array.prototype;\n\nmodule.exports = function (it) {\n var own = it.map;\n return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.map) ? method : own;\n};\n","var isPrototypeOf = require('../../internals/object-is-prototype-of');\nvar method = require('../array/virtual/reduce');\n\nvar ArrayPrototype = Array.prototype;\n\nmodule.exports = function (it) {\n var own = it.reduce;\n return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.reduce) ? method : own;\n};\n","require('../../modules/es.object.define-property');\nvar path = require('../../internals/path');\n\nvar Object = path.Object;\n\nvar defineProperty = module.exports = function defineProperty(it, key, desc) {\n return Object.defineProperty(it, key, desc);\n};\n\nif (Object.defineProperty.sham) defineProperty.sham = true;\n","require('../../modules/es.object.entries');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.entries;\n","require('../../modules/es.object.keys');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.keys;\n","require('../../modules/es.aggregate-error');\nrequire('../../modules/es.array.iterator');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.promise');\nrequire('../../modules/es.promise.all-settled');\nrequire('../../modules/es.promise.any');\nrequire('../../modules/es.promise.finally');\nrequire('../../modules/es.string.iterator');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Promise;\n","require('../../modules/es.array.concat');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.symbol');\nrequire('../../modules/es.symbol.async-iterator');\nrequire('../../modules/es.symbol.description');\nrequire('../../modules/es.symbol.has-instance');\nrequire('../../modules/es.symbol.is-concat-spreadable');\nrequire('../../modules/es.symbol.iterator');\nrequire('../../modules/es.symbol.match');\nrequire('../../modules/es.symbol.match-all');\nrequire('../../modules/es.symbol.replace');\nrequire('../../modules/es.symbol.search');\nrequire('../../modules/es.symbol.species');\nrequire('../../modules/es.symbol.split');\nrequire('../../modules/es.symbol.to-primitive');\nrequire('../../modules/es.symbol.to-string-tag');\nrequire('../../modules/es.symbol.unscopables');\nrequire('../../modules/es.json.to-string-tag');\nrequire('../../modules/es.math.to-string-tag');\nrequire('../../modules/es.reflect.to-string-tag');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Symbol;\n","require('../../modules/es.array.iterator');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.string.iterator');\nrequire('../../modules/es.symbol.iterator');\nvar WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');\n\nmodule.exports = WrappedWellKnownSymbolModule.f('iterator');\n","require('../../modules/es.date.to-primitive');\nrequire('../../modules/es.symbol.to-primitive');\nvar WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');\n\nmodule.exports = WrappedWellKnownSymbolModule.f('toPrimitive');\n","require('../../modules/es.array.iterator');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.weak-map');\nvar path = require('../../internals/path');\n\nmodule.exports = path.WeakMap;\n","require('../../modules/es.array.iterator');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.weak-set');\nvar path = require('../../internals/path');\n\nmodule.exports = path.WeakSet;\n","module.exports = require('../../full/object/define-property');\n","module.exports = require('../../full/symbol');\n","module.exports = require('../../full/symbol/iterator');\n","module.exports = require('../../full/symbol/to-primitive');\n","var parent = require('../../actual/object/define-property');\n\nmodule.exports = parent;\n","var parent = require('../../actual/symbol');\nrequire('../../modules/esnext.symbol.async-dispose');\nrequire('../../modules/esnext.symbol.is-registered');\nrequire('../../modules/esnext.symbol.is-well-known');\nrequire('../../modules/esnext.symbol.matcher');\nrequire('../../modules/esnext.symbol.metadata-key');\nrequire('../../modules/esnext.symbol.observable');\n// TODO: Remove from `core-js@4`\nrequire('../../modules/esnext.symbol.metadata');\nrequire('../../modules/esnext.symbol.pattern-match');\nrequire('../../modules/esnext.symbol.replace-all');\n\nmodule.exports = parent;\n","var parent = require('../../actual/symbol/iterator');\n\nmodule.exports = parent;\n","var parent = require('../../actual/symbol/to-primitive');\n\nmodule.exports = parent;\n","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var isConstructor = require('../internals/is-constructor');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsConstructor(argument) is true`\nmodule.exports = function (argument) {\n if (isConstructor(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a constructor');\n};\n","var isCallable = require('../internals/is-callable');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n","module.exports = function () { /* empty */ };\n","var isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw $TypeError('Incorrect invocation');\n};\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it\nvar fails = require('../internals/fails');\n\nmodule.exports = fails(function () {\n if (typeof ArrayBuffer == 'function') {\n var buffer = new ArrayBuffer(8);\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe\n if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });\n }\n});\n","'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\nmodule.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n} : [].forEach;\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var bind = require('../internals/function-bind-context');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = uncurryThis([].push);\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var IS_FILTER_REJECT = TYPE == 7;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that);\n var length = lengthOfArrayLike(self);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push(target, value); // filterReject\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod(7)\n};\n","var fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n};\n","var aCallable = require('../internals/a-callable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\nvar $TypeError = TypeError;\n\n// `Array.prototype.{ reduce, reduceRight }` methods implementation\nvar createMethod = function (IS_RIGHT) {\n return function (that, callbackfn, argumentsLength, memo) {\n aCallable(callbackfn);\n var O = toObject(that);\n var self = IndexedObject(O);\n var length = lengthOfArrayLike(O);\n var index = IS_RIGHT ? length - 1 : 0;\n var i = IS_RIGHT ? -1 : 1;\n if (argumentsLength < 2) while (true) {\n if (index in self) {\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if (IS_RIGHT ? index < 0 : length <= index) {\n throw $TypeError('Reduce of empty array with no initial value');\n }\n }\n for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.reduce` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduce\n left: createMethod(false),\n // `Array.prototype.reduceRight` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduceright\n right: createMethod(true)\n};\n","var toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\n\nvar $Array = Array;\nvar max = Math.max;\n\nmodule.exports = function (O, start, end) {\n var length = lengthOfArrayLike(O);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n var result = $Array(max(fin - k, 0));\n for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis([].slice);\n","var isArray = require('../internals/is-array');\nvar isConstructor = require('../internals/is-constructor');\nvar isObject = require('../internals/is-object');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\nvar $Array = Array;\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? $Array : C;\n};\n","var arraySpeciesConstructor = require('../internals/array-species-constructor');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar getWeakData = require('../internals/internal-metadata').getWeakData;\nvar anInstance = require('../internals/an-instance');\nvar anObject = require('../internals/an-object');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isObject = require('../internals/is-object');\nvar iterate = require('../internals/iterate');\nvar ArrayIterationModule = require('../internals/array-iteration');\nvar hasOwn = require('../internals/has-own-property');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\nvar find = ArrayIterationModule.find;\nvar findIndex = ArrayIterationModule.findIndex;\nvar splice = uncurryThis([].splice);\nvar id = 0;\n\n// fallback for uncaught frozen keys\nvar uncaughtFrozenStore = function (state) {\n return state.frozen || (state.frozen = new UncaughtFrozenStore());\n};\n\nvar UncaughtFrozenStore = function () {\n this.entries = [];\n};\n\nvar findUncaughtFrozen = function (store, key) {\n return find(store.entries, function (it) {\n return it[0] === key;\n });\n};\n\nUncaughtFrozenStore.prototype = {\n get: function (key) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) return entry[1];\n },\n has: function (key) {\n return !!findUncaughtFrozen(this, key);\n },\n set: function (key, value) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) entry[1] = value;\n else this.entries.push([key, value]);\n },\n 'delete': function (key) {\n var index = findIndex(this.entries, function (it) {\n return it[0] === key;\n });\n if (~index) splice(this.entries, index, 1);\n return !!~index;\n }\n};\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance(that, Prototype);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n id: id++,\n frozen: undefined\n });\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var data = getWeakData(anObject(key), true);\n if (data === true) uncaughtFrozenStore(state).set(key, value);\n else data[state.id] = value;\n return that;\n };\n\n defineBuiltIns(Prototype, {\n // `{ WeakMap, WeakSet }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-weakmap.prototype.delete\n // https://tc39.es/ecma262/#sec-weakset.prototype.delete\n 'delete': function (key) {\n var state = getInternalState(this);\n if (!isObject(key)) return false;\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state)['delete'](key);\n return data && hasOwn(data, state.id) && delete data[state.id];\n },\n // `{ WeakMap, WeakSet }.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-weakmap.prototype.has\n // https://tc39.es/ecma262/#sec-weakset.prototype.has\n has: function has(key) {\n var state = getInternalState(this);\n if (!isObject(key)) return false;\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state).has(key);\n return data && hasOwn(data, state.id);\n }\n });\n\n defineBuiltIns(Prototype, IS_MAP ? {\n // `WeakMap.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-weakmap.prototype.get\n get: function get(key) {\n var state = getInternalState(this);\n if (isObject(key)) {\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state).get(key);\n return data ? data[state.id] : undefined;\n }\n },\n // `WeakMap.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-weakmap.prototype.set\n set: function set(key, value) {\n return define(this, key, value);\n }\n } : {\n // `WeakSet.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-weakset.prototype.add\n add: function add(value) {\n return define(this, value, true);\n }\n });\n\n return Constructor;\n }\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar fails = require('../internals/fails');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar defineProperty = require('../internals/object-define-property').f;\nvar forEach = require('../internals/array-iteration').forEach;\nvar DESCRIPTORS = require('../internals/descriptors');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var exported = {};\n var Constructor;\n\n if (!DESCRIPTORS || !isCallable(NativeConstructor)\n || !(IS_WEAK || NativePrototype.forEach && !fails(function () { new NativeConstructor().entries().next(); }))\n ) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.enable();\n } else {\n Constructor = wrapper(function (target, iterable) {\n setInternalState(anInstance(target, Prototype), {\n type: CONSTRUCTOR_NAME,\n collection: new NativeConstructor()\n });\n if (iterable != undefined) iterate(iterable, target[ADDER], { that: target, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n forEach(['add', 'clear', 'delete', 'forEach', 'get', 'has', 'set', 'keys', 'values', 'entries'], function (KEY) {\n var IS_ADDER = KEY == 'add' || KEY == 'set';\n if (KEY in NativePrototype && !(IS_WEAK && KEY == 'clear')) {\n createNonEnumerableProperty(Prototype, KEY, function (a, b) {\n var collection = getInternalState(this).collection;\n if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false;\n var result = collection[KEY](a === 0 ? 0 : a, b);\n return IS_ADDER ? this : result;\n });\n }\n });\n\n IS_WEAK || defineProperty(Prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).collection.size;\n }\n });\n }\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME, false, true);\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, forced: true }, exported);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nmodule.exports = function (value, done) {\n return { value: value, done: done };\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\nvar toPropertyKey = require('../internals/to-property-key');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPropertyKey(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","var defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n return defineProperty.f(target, name, descriptor);\n};\n","var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nmodule.exports = function (target, key, value, options) {\n if (options && options.enumerable) target[key] = value;\n else createNonEnumerableProperty(target, key, value);\n return target;\n};\n","var defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) {\n if (options && options.unsafe && target[key]) target[key] = src[key];\n else defineBuiltIn(target, key, src[key], options);\n } return target;\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","var IS_DENO = require('../internals/engine-is-deno');\nvar IS_NODE = require('../internals/engine-is-node');\n\nmodule.exports = !IS_DENO && !IS_NODE\n && typeof window == 'object'\n && typeof document == 'object';\n","/* global Bun -- Deno case */\nmodule.exports = typeof Bun == 'function' && Bun && typeof Bun.version == 'string';\n","/* global Deno -- Deno case */\nmodule.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined';\n","var userAgent = require('../internals/engine-user-agent');\n\n// eslint-disable-next-line redos/no-vulnerable -- safe\nmodule.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);\n","var classof = require('../internals/classof-raw');\n\nmodule.exports = typeof process != 'undefined' && classof(process) == 'process';\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /web0s(?!.*chrome)/i.test(userAgent);\n","module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","var path = require('../internals/path');\n\nmodule.exports = function (CONSTRUCTOR) {\n return path[CONSTRUCTOR + 'Prototype'];\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar $Error = Error;\nvar replace = uncurryThis(''.replace);\n\nvar TEST = (function (arg) { return String($Error(arg).stack); })('zxcasd');\n// eslint-disable-next-line redos/no-vulnerable -- safe\nvar V8_OR_CHAKRA_STACK_ENTRY = /\\n\\s*at [^:]*:[^\\n]*/;\nvar IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);\n\nmodule.exports = function (stack, dropEntries) {\n if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {\n while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');\n } return stack;\n};\n","var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar clearErrorStack = require('../internals/error-stack-clear');\nvar ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');\n\n// non-standard V8\nvar captureStackTrace = Error.captureStackTrace;\n\nmodule.exports = function (error, C, stack, dropEntries) {\n if (ERROR_STACK_INSTALLABLE) {\n if (captureStackTrace) captureStackTrace(error, C);\n else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries));\n }\n};\n","var fails = require('../internals/fails');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = !fails(function () {\n var error = Error('a');\n if (!('stack' in error)) return true;\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));\n return error.stack !== 7;\n});\n","'use strict';\nvar global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar uncurryThis = require('../internals/function-uncurry-this-clause');\nvar isCallable = require('../internals/is-callable');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar isForced = require('../internals/is-forced');\nvar path = require('../internals/path');\nvar bind = require('../internals/function-bind-context');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\n\nvar wrapConstructor = function (NativeConstructor) {\n var Wrapper = function (a, b, c) {\n if (this instanceof Wrapper) {\n switch (arguments.length) {\n case 0: return new NativeConstructor();\n case 1: return new NativeConstructor(a);\n case 2: return new NativeConstructor(a, b);\n } return new NativeConstructor(a, b, c);\n } return apply(NativeConstructor, this, arguments);\n };\n Wrapper.prototype = NativeConstructor.prototype;\n return Wrapper;\n};\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var PROTO = options.proto;\n\n var nativeSource = GLOBAL ? global : STATIC ? global[TARGET] : (global[TARGET] || {}).prototype;\n\n var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET];\n var targetPrototype = target.prototype;\n\n var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;\n var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;\n\n for (key in source) {\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contains in native\n USE_NATIVE = !FORCED && nativeSource && hasOwn(nativeSource, key);\n\n targetProperty = target[key];\n\n if (USE_NATIVE) if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(nativeSource, key);\n nativeProperty = descriptor && descriptor.value;\n } else nativeProperty = nativeSource[key];\n\n // export native or implementation\n sourceProperty = (USE_NATIVE && nativeProperty) ? nativeProperty : source[key];\n\n if (USE_NATIVE && typeof targetProperty == typeof sourceProperty) continue;\n\n // bind methods to global for calling from export context\n if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, global);\n // wrap global constructors for prevent changes in this version\n else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);\n // make static versions for prototype methods\n else if (PROTO && isCallable(sourceProperty)) resultProperty = uncurryThis(sourceProperty);\n // default case\n else resultProperty = sourceProperty;\n\n // add a flag to not completely full polyfills\n if (options.sham || (sourceProperty && sourceProperty.sham) || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(resultProperty, 'sham', true);\n }\n\n createNonEnumerableProperty(target, key, resultProperty);\n\n if (PROTO) {\n VIRTUAL_PROTOTYPE = TARGET + 'Prototype';\n if (!hasOwn(path, VIRTUAL_PROTOTYPE)) {\n createNonEnumerableProperty(path, VIRTUAL_PROTOTYPE, {});\n }\n // export virtual prototype methods\n createNonEnumerableProperty(path[VIRTUAL_PROTOTYPE], key, sourceProperty);\n // export real prototype methods\n if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) {\n createNonEnumerableProperty(targetPrototype, key, sourceProperty);\n }\n }\n }\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var uncurryThis = require('../internals/function-uncurry-this-clause');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nmodule.exports = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n};\n","var classofRaw = require('../internals/classof-raw');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThis(fn);\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","var path = require('../internals/path');\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (variable) {\n return isCallable(variable) ? variable : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])\n : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];\n};\n","var classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)\n || getMethod(it, '@@iterator')\n || Iterators[classof(it)];\n};\n","var call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n throw $TypeError(tryToString(argument) + ' is not iterable');\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isArray = require('../internals/is-array');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof-raw');\nvar toString = require('../internals/to-string');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (replacer) {\n if (isCallable(replacer)) return replacer;\n if (!isArray(replacer)) return;\n var rawLength = replacer.length;\n var keys = [];\n for (var i = 0; i < rawLength; i++) {\n var element = replacer[i];\n if (typeof element == 'string') push(keys, element);\n else if (typeof element == 'number' || classof(element) == 'Number' || classof(element) == 'String') push(keys, toString(element));\n }\n var keysLength = keys.length;\n var root = true;\n return function (key, value) {\n if (root) {\n root = false;\n return value;\n }\n if (isArray(this)) return value;\n for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;\n };\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || this || Function('return this')();\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","module.exports = {};\n","module.exports = function (a, b) {\n try {\n // eslint-disable-next-line no-console -- safe\n arguments.length == 1 ? console.error(a) : console.error(a, b);\n } catch (error) { /* empty */ }\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\n// `InstallErrorCause` abstract operation\n// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause\nmodule.exports = function (O, options) {\n if (isObject(options) && 'cause' in options) {\n createNonEnumerableProperty(O, 'cause', options.cause);\n }\n};\n","var $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external');\nvar isExtensible = require('../internals/object-is-extensible');\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id = 0;\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + id++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = module.exports = {\n enable: enable,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","var $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof');\nvar getBuiltIn = require('../internals/get-built-in');\nvar inspectSource = require('../internals/inspect-source');\n\nvar noop = function () { /* empty */ };\nvar empty = [];\nvar construct = getBuiltIn('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec = uncurryThis(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.exec(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n try {\n construct(noop, empty, argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n switch (classof(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nmodule.exports = !construct || fails(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","module.exports = true;\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar $TypeError = TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_RECORD = !!(options && options.IS_RECORD);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_RECORD) {\n iterator = iterable.iterator;\n } else if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = IS_RECORD ? iterable.next : iterator.next;\n while (!(step = call(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n","var call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar IS_PURE = require('../internals/is-pure');\nvar FunctionName = require('../internals/function-name');\nvar isCallable = require('../internals/is-callable');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {\n defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {\n createNonEnumerableProperty(IterablePrototype, 'name', VALUES);\n } else {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n defineBuiltIn(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });\n }\n Iterators[NAME] = defaultIterator;\n\n return methods;\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\nelse if (IS_PURE) IteratorPrototype = create(IteratorPrototype);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable(IteratorPrototype[ITERATOR])) {\n defineBuiltIn(IteratorPrototype, ITERATOR, function () {\n return this;\n });\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","module.exports = {};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar macrotask = require('../internals/task').set;\nvar Queue = require('../internals/queue');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_IOS_PEBBLE = require('../internals/engine-is-ios-pebble');\nvar IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar document = global.document;\nvar process = global.process;\nvar Promise = global.Promise;\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar microtask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\nvar notify, toggle, node, promise, then;\n\n// modern engines have queueMicrotask method\nif (!microtask) {\n var queue = new Queue();\n\n var flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n while (fn = queue.get()) try {\n fn();\n } catch (error) {\n if (queue.head) notify();\n throw error;\n }\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise.constructor = Promise;\n then = bind(promise.then, promise);\n notify = function () {\n then(flush);\n };\n // Node.js without promises\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessage\n // - onreadystatechange\n // - setTimeout\n } else {\n // `webpack` dev server bug on IE global methods - use bind(fn, global)\n macrotask = bind(macrotask, global);\n notify = function () {\n macrotask(flush);\n };\n }\n\n microtask = function (fn) {\n if (!queue.head) notify();\n queue.add(fn);\n };\n}\n\nmodule.exports = microtask;\n","'use strict';\nvar aCallable = require('../internals/a-callable');\n\nvar $TypeError = TypeError;\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw $TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aCallable(resolve);\n this.reject = aCallable(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","var toString = require('../internals/to-string');\n\nmodule.exports = function (argument, $default) {\n return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);\n};\n","/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","/* eslint-disable es/no-object-getownpropertynames -- safe */\nvar classof = require('../internals/classof-raw');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar arraySlice = require('../internals/array-slice-simple');\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames(it);\n } catch (error) {\n return arraySlice(windowNames);\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && classof(it) == 'Window'\n ? getWindowNames(it)\n : $getOwnPropertyNames(toIndexedObject(it));\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar $Object = Object;\nvar ObjectPrototype = $Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {\n var object = toObject(O);\n if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object ? ObjectPrototype : null;\n};\n","var fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible');\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\nmodule.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n} : $isExtensible;\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","/* eslint-disable no-proto -- safe */\nvar uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","var DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar objectKeys = require('../internals/object-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;\n\nvar propertyIsEnumerable = uncurryThis($propertyIsEnumerable);\nvar push = uncurryThis([].push);\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {\n push(result, TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.es/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n values: createMethod(false)\n};\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","module.exports = {};\n","module.exports = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n","var global = require('../internals/global');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar isCallable = require('../internals/is-callable');\nvar isForced = require('../internals/is-forced');\nvar inspectSource = require('../internals/inspect-source');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_BROWSER = require('../internals/engine-is-browser');\nvar IS_DENO = require('../internals/engine-is-deno');\nvar IS_PURE = require('../internals/is-pure');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar SPECIES = wellKnownSymbol('species');\nvar SUBCLASSING = false;\nvar NATIVE_PROMISE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);\n\nvar FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution\n if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {\n // Detect correctness of subclassing with @@species support\n var promise = new NativePromiseConstructor(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT;\n});\n\nmodule.exports = {\n CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR,\n REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT,\n SUBCLASSING: SUBCLASSING\n};\n","var global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","var anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","var NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\nmodule.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) {\n NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ });\n});\n","var Queue = function () {\n this.head = null;\n this.tail = null;\n};\n\nQueue.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n var tail = this.tail;\n if (tail) tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n var next = this.head = entry.next;\n if (next === null) this.tail = null;\n return entry.item;\n }\n }\n};\n\nmodule.exports = Queue;\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar isCallable = require('../internals/is-callable');\nvar ENGINE_IS_BUN = require('../internals/engine-is-bun');\nvar USER_AGENT = require('../internals/engine-user-agent');\nvar arraySlice = require('../internals/array-slice');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\n\nvar Function = global.Function;\n// dirty IE9- and Bun 0.3.0- checks\nvar WRAP = /MSIE .\\./.test(USER_AGENT) || ENGINE_IS_BUN && (function () {\n var version = global.Bun.version.split('.');\n return version.length < 3 || version[0] == 0 && (version[1] < 3 || version[1] == 3 && version[2] == 0);\n})();\n\n// IE9- / Bun 0.3.0- setTimeout / setInterval / setImmediate additional parameters fix\n// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers\n// https://github.com/oven-sh/bun/issues/1633\nmodule.exports = function (scheduler, hasTimeArg) {\n var firstParamIndex = hasTimeArg ? 2 : 1;\n return WRAP ? function (handler, timeout /* , ...arguments */) {\n var boundArgs = validateArgumentsLength(arguments.length, 1) > firstParamIndex;\n var fn = isCallable(handler) ? handler : Function(handler);\n var params = boundArgs ? arraySlice(arguments, firstParamIndex) : [];\n var callback = boundArgs ? function () {\n apply(fn, this, params);\n } : fn;\n return hasTimeArg ? scheduler(callback, timeout) : scheduler(callback);\n } : scheduler;\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineBuiltInAccessor(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar defineProperty = require('../internals/object-define-property').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar toString = require('../internals/object-to-string');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (it, TAG, STATIC, SET_METHOD) {\n if (it) {\n var target = STATIC ? it : it.prototype;\n if (!hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n if (SET_METHOD && !TO_STRING_TAG_SUPPORT) {\n createNonEnumerableProperty(target, 'toString', toString);\n }\n }\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.30.2',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","var anObject = require('../internals/an-object');\nvar aConstructor = require('../internals/a-constructor');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringSlice = uncurryThis(''.slice);\n\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(requireObjectCoercible($this));\n var position = toIntegerOrInfinity(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\nvar global = require('../internals/global');\n\nvar $String = global.String;\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,\n // of course, fail.\n return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","var call = require('../internals/function-call');\nvar getBuiltIn = require('../internals/get-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function () {\n var Symbol = getBuiltIn('Symbol');\n var SymbolPrototype = Symbol && Symbol.prototype;\n var valueOf = SymbolPrototype && SymbolPrototype.valueOf;\n var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n if (SymbolPrototype && !SymbolPrototype[TO_PRIMITIVE]) {\n // `Symbol.prototype[@@toPrimitive]` method\n // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive\n // eslint-disable-next-line no-unused-vars -- required for .length\n defineBuiltIn(SymbolPrototype, TO_PRIMITIVE, function (hint) {\n return call(valueOf, this);\n }, { arity: 1 });\n }\n};\n","var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\n/* eslint-disable es/no-symbol -- safe */\nmodule.exports = NATIVE_SYMBOL && !!Symbol['for'] && !!Symbol.keyFor;\n","var global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar bind = require('../internals/function-bind-context');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar fails = require('../internals/fails');\nvar html = require('../internals/html');\nvar arraySlice = require('../internals/array-slice');\nvar createElement = require('../internals/document-create-element');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar Dispatch = global.Dispatch;\nvar Function = global.Function;\nvar MessageChannel = global.MessageChannel;\nvar String = global.String;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar $location, defer, channel, port;\n\nfails(function () {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n $location = global.location;\n});\n\nvar run = function (id) {\n if (hasOwn(queue, id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar eventListener = function (event) {\n run(event.data);\n};\n\nvar globalPostMessageDefer = function (id) {\n // old engines have not location.origin\n global.postMessage(String(id), $location.protocol + '//' + $location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(handler) {\n validateArgumentsLength(arguments.length, 1);\n var fn = isCallable(handler) ? handler : Function(handler);\n var args = arraySlice(arguments, 1);\n queue[++counter] = function () {\n apply(fn, undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (IS_NODE) {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = eventListener;\n defer = bind(port.postMessage, port);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n isCallable(global.postMessage) &&\n !global.importScripts &&\n $location && $location.protocol !== 'file:' &&\n !fails(globalPostMessageDefer)\n ) {\n defer = globalPostMessageDefer;\n global.addEventListener('message', eventListener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw $TypeError('Not enough arguments');\n return passed;\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","var path = require('../internals/path');\nvar hasOwn = require('../internals/has-own-property');\nvar wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');\nvar defineProperty = require('../internals/object-define-property').f;\n\nmodule.exports = function (NAME) {\n var Symbol = path.Symbol || (path.Symbol = {});\n if (!hasOwn(Symbol, NAME)) defineProperty(Symbol, NAME, {\n value: wrappedWellKnownSymbolModule.f(NAME)\n });\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nexports.f = wellKnownSymbol;\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar create = require('../internals/object-create');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar installErrorCause = require('../internals/install-error-cause');\nvar installErrorStack = require('../internals/error-stack-install');\nvar iterate = require('../internals/iterate');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Error = Error;\nvar push = [].push;\n\nvar $AggregateError = function AggregateError(errors, message /* , options */) {\n var isInstance = isPrototypeOf(AggregateErrorPrototype, this);\n var that;\n if (setPrototypeOf) {\n that = setPrototypeOf($Error(), isInstance ? getPrototypeOf(this) : AggregateErrorPrototype);\n } else {\n that = isInstance ? this : create(AggregateErrorPrototype);\n createNonEnumerableProperty(that, TO_STRING_TAG, 'Error');\n }\n if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message));\n installErrorStack(that, $AggregateError, that.stack, 1);\n if (arguments.length > 2) installErrorCause(that, arguments[2]);\n var errorsArray = [];\n iterate(errors, push, { that: errorsArray });\n createNonEnumerableProperty(that, 'errors', errorsArray);\n return that;\n};\n\nif (setPrototypeOf) setPrototypeOf($AggregateError, $Error);\nelse copyConstructorProperties($AggregateError, $Error, { name: true });\n\nvar AggregateErrorPrototype = $AggregateError.prototype = create($Error.prototype, {\n constructor: createPropertyDescriptor(1, $AggregateError),\n message: createPropertyDescriptor(1, ''),\n name: createPropertyDescriptor(1, 'AggregateError')\n});\n\n// `AggregateError` constructor\n// https://tc39.es/ecma262/#sec-aggregate-error-constructor\n$({ global: true, constructor: true, arity: 2 }, {\n AggregateError: $AggregateError\n});\n","// TODO: Remove this module from `core-js@4` since it's replaced to module below\nrequire('../modules/es.aggregate-error.constructor');\n","'use strict';\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar createProperty = require('../internals/create-property');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');\n\n// We can't use this feature detection in V8 since it causes\n// deoptimization and serious performance degradation\n// https://github.com/zloirock/core-js/issues/679\nvar IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar isConcatSpreadable = function (O) {\n if (!isObject(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray(O);\n};\n\nvar FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');\n\n// `Array.prototype.concat` method\n// https://tc39.es/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n concat: function concat(arg) {\n var O = toObject(this);\n var A = arraySpeciesCreate(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = lengthOfArrayLike(E);\n doesNotExceedSafeInteger(n + len);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);\n } else {\n doesNotExceedSafeInteger(n + 1);\n createProperty(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar forEach = require('../internals/array-for-each');\n\n// `Array.prototype.forEach` method\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n$({ target: 'Array', proto: true, forced: [].forEach != forEach }, {\n forEach: forEach\n});\n","var $ = require('../internals/export');\nvar isArray = require('../internals/is-array');\n\n// `Array.isArray` method\n// https://tc39.es/ecma262/#sec-array.isarray\n$({ target: 'Array', stat: true }, {\n isArray: isArray\n});\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar Iterators = require('../internals/iterators');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineProperty = require('../internals/object-define-property').f;\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n if (kind == 'keys') return createIterResultObject(index, false);\n if (kind == 'values') return createIterResultObject(target[index], false);\n return createIterResultObject([index, target[index]], false);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nvar values = Iterators.Arguments = Iterators.Array;\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n// V8 ~ Chrome 45- bug\nif (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {\n defineProperty(values, 'name', { value: 'values' });\n} catch (error) { /* empty */ }\n","'use strict';\nvar $ = require('../internals/export');\nvar $map = require('../internals/array-iteration').map;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n\n// `Array.prototype.map` method\n// https://tc39.es/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $reduce = require('../internals/array-reduce').left;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar CHROME_VERSION = require('../internals/engine-v8-version');\nvar IS_NODE = require('../internals/engine-is-node');\n\n// Chrome 80-82 has a critical bug\n// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982\nvar CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;\nvar FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');\n\n// `Array.prototype.reduce` method\n// https://tc39.es/ecma262/#sec-array.prototype.reduce\n$({ target: 'Array', proto: true, forced: FORCED }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n var length = arguments.length;\n return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);\n }\n});\n","var $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar apply = require('../internals/function-apply');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar isSymbol = require('../internals/is-symbol');\nvar arraySlice = require('../internals/array-slice');\nvar getReplacerFunction = require('../internals/get-json-replacer-function');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nvar $String = String;\nvar $stringify = getBuiltIn('JSON', 'stringify');\nvar exec = uncurryThis(/./.exec);\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar replace = uncurryThis(''.replace);\nvar numberToString = uncurryThis(1.0.toString);\n\nvar tester = /[\\uD800-\\uDFFF]/g;\nvar low = /^[\\uD800-\\uDBFF]$/;\nvar hi = /^[\\uDC00-\\uDFFF]$/;\n\nvar WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function () {\n var symbol = getBuiltIn('Symbol')();\n // MS Edge converts symbol values to JSON as {}\n return $stringify([symbol]) != '[null]'\n // WebKit converts symbol values to JSON as null\n || $stringify({ a: symbol }) != '{}'\n // V8 throws on boxed symbols\n || $stringify(Object(symbol)) != '{}';\n});\n\n// https://github.com/tc39/proposal-well-formed-stringify\nvar ILL_FORMED_UNICODE = fails(function () {\n return $stringify('\\uDF06\\uD834') !== '\"\\\\udf06\\\\ud834\"'\n || $stringify('\\uDEAD') !== '\"\\\\udead\"';\n});\n\nvar stringifyWithSymbolsFix = function (it, replacer) {\n var args = arraySlice(arguments);\n var $replacer = getReplacerFunction(replacer);\n if (!isCallable($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined\n args[1] = function (key, value) {\n // some old implementations (like WebKit) could pass numbers as keys\n if (isCallable($replacer)) value = call($replacer, this, $String(key), value);\n if (!isSymbol(value)) return value;\n };\n return apply($stringify, null, args);\n};\n\nvar fixIllFormed = function (match, offset, string) {\n var prev = charAt(string, offset - 1);\n var next = charAt(string, offset + 1);\n if ((exec(low, match) && !exec(hi, next)) || (exec(hi, match) && !exec(low, prev))) {\n return '\\\\u' + numberToString(charCodeAt(match, 0), 16);\n } return match;\n};\n\nif ($stringify) {\n // `JSON.stringify` method\n // https://tc39.es/ecma262/#sec-json.stringify\n $({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n stringify: function stringify(it, replacer, space) {\n var args = arraySlice(arguments);\n var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);\n return ILL_FORMED_UNICODE && typeof result == 'string' ? replace(result, tester, fixIllFormed) : result;\n }\n });\n}\n","var global = require('../internals/global');\nvar setToStringTag = require('../internals/set-to-string-tag');\n\n// JSON[@@toStringTag] property\n// https://tc39.es/ecma262/#sec-json-@@tostringtag\nsetToStringTag(global.JSON, 'JSON', true);\n","var $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar defineProperty = require('../internals/object-define-property').f;\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\n// eslint-disable-next-line es/no-object-defineproperty -- safe\n$({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProperty, sham: !DESCRIPTORS }, {\n defineProperty: defineProperty\n});\n","var $ = require('../internals/export');\nvar $entries = require('../internals/object-to-array').entries;\n\n// `Object.entries` method\n// https://tc39.es/ecma262/#sec-object.entries\n$({ target: 'Object', stat: true }, {\n entries: function entries(O) {\n return $entries(O);\n }\n});\n","var $ = require('../internals/export');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar fails = require('../internals/fails');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar toObject = require('../internals/to-object');\n\n// V8 ~ Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\nvar FORCED = !NATIVE_SYMBOL || fails(function () { getOwnPropertySymbolsModule.f(1); });\n\n// `Object.getOwnPropertySymbols` method\n// https://tc39.es/ecma262/#sec-object.getownpropertysymbols\n$({ target: 'Object', stat: true, forced: FORCED }, {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n var $getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject(it)) : [];\n }\n});\n","var $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar nativeKeys = require('../internals/object-keys');\nvar fails = require('../internals/fails');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n keys: function keys(it) {\n return nativeKeys(toObject(it));\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.allSettled` method\n// https://tc39.es/ecma262/#sec-promise.allsettled\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n allSettled: function allSettled(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var promiseResolve = aCallable(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call(promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'fulfilled', value: value };\n --remaining || resolve(values);\n }, function (error) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'rejected', reason: error };\n --remaining || resolve(values);\n });\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.all` method\n// https://tc39.es/ecma262/#sec-promise.all\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call($promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar getBuiltIn = require('../internals/get-built-in');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\nvar PROMISE_ANY_ERROR = 'No one promise resolved';\n\n// `Promise.any` method\n// https://tc39.es/ecma262/#sec-promise.any\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n any: function any(iterable) {\n var C = this;\n var AggregateError = getBuiltIn('AggregateError');\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var promiseResolve = aCallable(C.resolve);\n var errors = [];\n var counter = 0;\n var remaining = 1;\n var alreadyResolved = false;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyRejected = false;\n remaining++;\n call(promiseResolve, C, promise).then(function (value) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyResolved = true;\n resolve(value);\n }, function (error) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyRejected = true;\n errors[index] = error;\n --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));\n });\n });\n --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// `Promise.prototype.catch` method\n// https://tc39.es/ecma262/#sec-promise.prototype.catch\n$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, {\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n});\n\n// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromiseConstructor)) {\n var method = getBuiltIn('Promise').prototype['catch'];\n if (NativePromisePrototype['catch'] !== method) {\n defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar IS_NODE = require('../internals/engine-is-node');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar aCallable = require('../internals/a-callable');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar anInstance = require('../internals/an-instance');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar perform = require('../internals/perform');\nvar Queue = require('../internals/queue');\nvar InternalStateModule = require('../internals/internal-state');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar PromiseConstructorDetection = require('../internals/promise-constructor-detection');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\n\nvar PROMISE = 'Promise';\nvar FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR;\nvar NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;\nvar NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar setInternalState = InternalStateModule.set;\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar PromiseConstructor = NativePromiseConstructor;\nvar PromisePrototype = NativePromisePrototype;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\n\nvar DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\n\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && isCallable(then = it.then) ? then : false;\n};\n\nvar callReaction = function (reaction, state) {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n call(then, result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n};\n\nvar notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n microtask(function () {\n var reactions = state.reactions;\n var reaction;\n while (reaction = reactions.get()) {\n callReaction(reaction, state);\n }\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\n};\n\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n call(then, value,\n bind(internalResolve, wrapper, state),\n bind(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED_PROMISE_CONSTRUCTOR) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromisePrototype);\n aCallable(executor);\n call(Internal, this);\n var state = getInternalPromiseState(this);\n try {\n executor(bind(internalResolve, state), bind(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n\n PromisePrototype = PromiseConstructor.prototype;\n\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: new Queue(),\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n state.parent = true;\n reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;\n reaction.fail = isCallable(onRejected) && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n if (state.state == PENDING) state.reactions.add(reaction);\n else microtask(function () {\n callReaction(reaction, state);\n });\n return reaction.promise;\n });\n\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalPromiseState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, state);\n this.reject = bind(internalReject, state);\n };\n\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n\n if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) {\n nativeThen = NativePromisePrototype.then;\n\n if (!NATIVE_PROMISE_SUBCLASSING) {\n // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs\n defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n call(nativeThen, that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, { unsafe: true });\n }\n\n // make `.constructor === Promise` work for native promise-based APIs\n try {\n delete NativePromisePrototype.constructor;\n } catch (error) { /* empty */ }\n\n // make `instanceof Promise` work for native promise-based APIs\n if (setPrototypeOf) {\n setPrototypeOf(NativePromisePrototype, PromisePrototype);\n }\n }\n}\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar fails = require('../internals/fails');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar speciesConstructor = require('../internals/species-constructor');\nvar promiseResolve = require('../internals/promise-resolve');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829\nvar NON_GENERIC = !!NativePromiseConstructor && fails(function () {\n // eslint-disable-next-line unicorn/no-thenable -- required for testing\n NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });\n});\n\n// `Promise.prototype.finally` method\n// https://tc39.es/ecma262/#sec-promise.prototype.finally\n$({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {\n 'finally': function (onFinally) {\n var C = speciesConstructor(this, getBuiltIn('Promise'));\n var isFunction = isCallable(onFinally);\n return this.then(\n isFunction ? function (x) {\n return promiseResolve(C, onFinally()).then(function () { return x; });\n } : onFinally,\n isFunction ? function (e) {\n return promiseResolve(C, onFinally()).then(function () { throw e; });\n } : onFinally\n );\n }\n});\n\n// makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromiseConstructor)) {\n var method = getBuiltIn('Promise').prototype['finally'];\n if (NativePromisePrototype['finally'] !== method) {\n defineBuiltIn(NativePromisePrototype, 'finally', method, { unsafe: true });\n }\n}\n","// TODO: Remove this module from `core-js@4` since it's split to modules listed below\nrequire('../modules/es.promise.constructor');\nrequire('../modules/es.promise.all');\nrequire('../modules/es.promise.catch');\nrequire('../modules/es.promise.race');\nrequire('../modules/es.promise.reject');\nrequire('../modules/es.promise.resolve');\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.race` method\n// https://tc39.es/ecma262/#sec-promise.race\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n iterate(iterable, function (promise) {\n call($promiseResolve, C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\n// `Promise.reject` method\n// https://tc39.es/ecma262/#sec-promise.reject\n$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n reject: function reject(r) {\n var capability = newPromiseCapabilityModule.f(this);\n call(capability.reject, undefined, r);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar promiseResolve = require('../internals/promise-resolve');\n\nvar PromiseConstructorWrapper = getBuiltIn('Promise');\nvar CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR;\n\n// `Promise.resolve` method\n// https://tc39.es/ecma262/#sec-promise.resolve\n$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, {\n resolve: function resolve(x) {\n return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x);\n }\n});\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return createIterResultObject(undefined, true);\n point = charAt(string, index);\n state.index += point.length;\n return createIterResultObject(point, false);\n});\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.asyncIterator` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.asynciterator\ndefineWellKnownSymbol('asyncIterator');\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar fails = require('../internals/fails');\nvar hasOwn = require('../internals/has-own-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar $toString = require('../internals/to-string');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar nativeObjectCreate = require('../internals/object-create');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternal = require('../internals/object-get-own-property-names-external');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar shared = require('../internals/shared');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar uid = require('../internals/uid');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');\nvar defineWellKnownSymbol = require('../internals/well-known-symbol-define');\nvar defineSymbolToPrimitive = require('../internals/symbol-define-to-primitive');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar InternalStateModule = require('../internals/internal-state');\nvar $forEach = require('../internals/array-iteration').forEach;\n\nvar HIDDEN = sharedKey('hidden');\nvar SYMBOL = 'Symbol';\nvar PROTOTYPE = 'prototype';\n\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(SYMBOL);\n\nvar ObjectPrototype = Object[PROTOTYPE];\nvar $Symbol = global.Symbol;\nvar SymbolPrototype = $Symbol && $Symbol[PROTOTYPE];\nvar TypeError = global.TypeError;\nvar QObject = global.QObject;\nvar nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\nvar nativeDefineProperty = definePropertyModule.f;\nvar nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;\nvar nativePropertyIsEnumerable = propertyIsEnumerableModule.f;\nvar push = uncurryThis([].push);\n\nvar AllSymbols = shared('symbols');\nvar ObjectPrototypeSymbols = shared('op-symbols');\nvar WellKnownSymbolsStore = shared('wks');\n\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDescriptor = DESCRIPTORS && fails(function () {\n return nativeObjectCreate(nativeDefineProperty({}, 'a', {\n get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (O, P, Attributes) {\n var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);\n if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];\n nativeDefineProperty(O, P, Attributes);\n if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {\n nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);\n }\n} : nativeDefineProperty;\n\nvar wrap = function (tag, description) {\n var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype);\n setInternalState(symbol, {\n type: SYMBOL,\n tag: tag,\n description: description\n });\n if (!DESCRIPTORS) symbol.description = description;\n return symbol;\n};\n\nvar $defineProperty = function defineProperty(O, P, Attributes) {\n if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);\n anObject(O);\n var key = toPropertyKey(P);\n anObject(Attributes);\n if (hasOwn(AllSymbols, key)) {\n if (!Attributes.enumerable) {\n if (!hasOwn(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));\n O[HIDDEN][key] = true;\n } else {\n if (hasOwn(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;\n Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });\n } return setSymbolDescriptor(O, key, Attributes);\n } return nativeDefineProperty(O, key, Attributes);\n};\n\nvar $defineProperties = function defineProperties(O, Properties) {\n anObject(O);\n var properties = toIndexedObject(Properties);\n var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));\n $forEach(keys, function (key) {\n if (!DESCRIPTORS || call($propertyIsEnumerable, properties, key)) $defineProperty(O, key, properties[key]);\n });\n return O;\n};\n\nvar $create = function create(O, Properties) {\n return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);\n};\n\nvar $propertyIsEnumerable = function propertyIsEnumerable(V) {\n var P = toPropertyKey(V);\n var enumerable = call(nativePropertyIsEnumerable, this, P);\n if (this === ObjectPrototype && hasOwn(AllSymbols, P) && !hasOwn(ObjectPrototypeSymbols, P)) return false;\n return enumerable || !hasOwn(this, P) || !hasOwn(AllSymbols, P) || hasOwn(this, HIDDEN) && this[HIDDEN][P]\n ? enumerable : true;\n};\n\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {\n var it = toIndexedObject(O);\n var key = toPropertyKey(P);\n if (it === ObjectPrototype && hasOwn(AllSymbols, key) && !hasOwn(ObjectPrototypeSymbols, key)) return;\n var descriptor = nativeGetOwnPropertyDescriptor(it, key);\n if (descriptor && hasOwn(AllSymbols, key) && !(hasOwn(it, HIDDEN) && it[HIDDEN][key])) {\n descriptor.enumerable = true;\n }\n return descriptor;\n};\n\nvar $getOwnPropertyNames = function getOwnPropertyNames(O) {\n var names = nativeGetOwnPropertyNames(toIndexedObject(O));\n var result = [];\n $forEach(names, function (key) {\n if (!hasOwn(AllSymbols, key) && !hasOwn(hiddenKeys, key)) push(result, key);\n });\n return result;\n};\n\nvar $getOwnPropertySymbols = function (O) {\n var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;\n var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));\n var result = [];\n $forEach(names, function (key) {\n if (hasOwn(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn(ObjectPrototype, key))) {\n push(result, AllSymbols[key]);\n }\n });\n return result;\n};\n\n// `Symbol` constructor\n// https://tc39.es/ecma262/#sec-symbol-constructor\nif (!NATIVE_SYMBOL) {\n $Symbol = function Symbol() {\n if (isPrototypeOf(SymbolPrototype, this)) throw TypeError('Symbol is not a constructor');\n var description = !arguments.length || arguments[0] === undefined ? undefined : $toString(arguments[0]);\n var tag = uid(description);\n var setter = function (value) {\n if (this === ObjectPrototype) call(setter, ObjectPrototypeSymbols, value);\n if (hasOwn(this, HIDDEN) && hasOwn(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));\n };\n if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });\n return wrap(tag, description);\n };\n\n SymbolPrototype = $Symbol[PROTOTYPE];\n\n defineBuiltIn(SymbolPrototype, 'toString', function toString() {\n return getInternalState(this).tag;\n });\n\n defineBuiltIn($Symbol, 'withoutSetter', function (description) {\n return wrap(uid(description), description);\n });\n\n propertyIsEnumerableModule.f = $propertyIsEnumerable;\n definePropertyModule.f = $defineProperty;\n definePropertiesModule.f = $defineProperties;\n getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;\n getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;\n getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;\n\n wrappedWellKnownSymbolModule.f = function (name) {\n return wrap(wellKnownSymbol(name), name);\n };\n\n if (DESCRIPTORS) {\n // https://github.com/tc39/proposal-Symbol-description\n defineBuiltInAccessor(SymbolPrototype, 'description', {\n configurable: true,\n get: function description() {\n return getInternalState(this).description;\n }\n });\n if (!IS_PURE) {\n defineBuiltIn(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });\n }\n }\n}\n\n$({ global: true, constructor: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {\n Symbol: $Symbol\n});\n\n$forEach(objectKeys(WellKnownSymbolsStore), function (name) {\n defineWellKnownSymbol(name);\n});\n\n$({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {\n useSetter: function () { USE_SETTER = true; },\n useSimple: function () { USE_SETTER = false; }\n});\n\n$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {\n // `Object.create` method\n // https://tc39.es/ecma262/#sec-object.create\n create: $create,\n // `Object.defineProperty` method\n // https://tc39.es/ecma262/#sec-object.defineproperty\n defineProperty: $defineProperty,\n // `Object.defineProperties` method\n // https://tc39.es/ecma262/#sec-object.defineproperties\n defineProperties: $defineProperties,\n // `Object.getOwnPropertyDescriptor` method\n // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor\n});\n\n$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {\n // `Object.getOwnPropertyNames` method\n // https://tc39.es/ecma262/#sec-object.getownpropertynames\n getOwnPropertyNames: $getOwnPropertyNames\n});\n\n// `Symbol.prototype[@@toPrimitive]` method\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive\ndefineSymbolToPrimitive();\n\n// `Symbol.prototype[@@toStringTag]` property\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag\nsetToStringTag($Symbol, SYMBOL);\n\nhiddenKeys[HIDDEN] = true;\n","var $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar hasOwn = require('../internals/has-own-property');\nvar toString = require('../internals/to-string');\nvar shared = require('../internals/shared');\nvar NATIVE_SYMBOL_REGISTRY = require('../internals/symbol-registry-detection');\n\nvar StringToSymbolRegistry = shared('string-to-symbol-registry');\nvar SymbolToStringRegistry = shared('symbol-to-string-registry');\n\n// `Symbol.for` method\n// https://tc39.es/ecma262/#sec-symbol.for\n$({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {\n 'for': function (key) {\n var string = toString(key);\n if (hasOwn(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];\n var symbol = getBuiltIn('Symbol')(string);\n StringToSymbolRegistry[string] = symbol;\n SymbolToStringRegistry[symbol] = string;\n return symbol;\n }\n});\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.hasInstance` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.hasinstance\ndefineWellKnownSymbol('hasInstance');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.isConcatSpreadable` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.isconcatspreadable\ndefineWellKnownSymbol('isConcatSpreadable');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.iterator` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.iterator\ndefineWellKnownSymbol('iterator');\n","// TODO: Remove this module from `core-js@4` since it's split to modules listed below\nrequire('../modules/es.symbol.constructor');\nrequire('../modules/es.symbol.for');\nrequire('../modules/es.symbol.key-for');\nrequire('../modules/es.json.stringify');\nrequire('../modules/es.object.get-own-property-symbols');\n","var $ = require('../internals/export');\nvar hasOwn = require('../internals/has-own-property');\nvar isSymbol = require('../internals/is-symbol');\nvar tryToString = require('../internals/try-to-string');\nvar shared = require('../internals/shared');\nvar NATIVE_SYMBOL_REGISTRY = require('../internals/symbol-registry-detection');\n\nvar SymbolToStringRegistry = shared('symbol-to-string-registry');\n\n// `Symbol.keyFor` method\n// https://tc39.es/ecma262/#sec-symbol.keyfor\n$({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(tryToString(sym) + ' is not a symbol');\n if (hasOwn(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];\n }\n});\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.matchAll` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.matchall\ndefineWellKnownSymbol('matchAll');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.match` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.match\ndefineWellKnownSymbol('match');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.replace` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.replace\ndefineWellKnownSymbol('replace');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.search` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.search\ndefineWellKnownSymbol('search');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.species` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.species\ndefineWellKnownSymbol('species');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.split` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.split\ndefineWellKnownSymbol('split');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\nvar defineSymbolToPrimitive = require('../internals/symbol-define-to-primitive');\n\n// `Symbol.toPrimitive` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.toprimitive\ndefineWellKnownSymbol('toPrimitive');\n\n// `Symbol.prototype[@@toPrimitive]` method\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive\ndefineSymbolToPrimitive();\n","var getBuiltIn = require('../internals/get-built-in');\nvar defineWellKnownSymbol = require('../internals/well-known-symbol-define');\nvar setToStringTag = require('../internals/set-to-string-tag');\n\n// `Symbol.toStringTag` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.tostringtag\ndefineWellKnownSymbol('toStringTag');\n\n// `Symbol.prototype[@@toStringTag]` property\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag\nsetToStringTag(getBuiltIn('Symbol'), 'Symbol');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.unscopables` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.unscopables\ndefineWellKnownSymbol('unscopables');\n","'use strict';\nvar FREEZING = require('../internals/freezing');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar collection = require('../internals/collection');\nvar collectionWeak = require('../internals/collection-weak');\nvar isObject = require('../internals/is-object');\nvar enforceInternalState = require('../internals/internal-state').enforce;\nvar fails = require('../internals/fails');\nvar NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\n\nvar $Object = Object;\n// eslint-disable-next-line es/no-array-isarray -- safe\nvar isArray = Array.isArray;\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar isExtensible = $Object.isExtensible;\n// eslint-disable-next-line es/no-object-isfrozen -- safe\nvar isFrozen = $Object.isFrozen;\n// eslint-disable-next-line es/no-object-issealed -- safe\nvar isSealed = $Object.isSealed;\n// eslint-disable-next-line es/no-object-freeze -- safe\nvar freeze = $Object.freeze;\n// eslint-disable-next-line es/no-object-seal -- safe\nvar seal = $Object.seal;\n\nvar FROZEN = {};\nvar SEALED = {};\nvar IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;\nvar InternalWeakMap;\n\nvar wrapper = function (init) {\n return function WeakMap() {\n return init(this, arguments.length ? arguments[0] : undefined);\n };\n};\n\n// `WeakMap` constructor\n// https://tc39.es/ecma262/#sec-weakmap-constructor\nvar $WeakMap = collection('WeakMap', wrapper, collectionWeak);\nvar WeakMapPrototype = $WeakMap.prototype;\nvar nativeSet = uncurryThis(WeakMapPrototype.set);\n\n// Chakra Edge bug: adding frozen arrays to WeakMap unfreeze them\nvar hasMSEdgeFreezingBug = function () {\n return FREEZING && fails(function () {\n var frozenArray = freeze([]);\n nativeSet(new $WeakMap(), frozenArray, 1);\n return !isFrozen(frozenArray);\n });\n};\n\n// IE11 WeakMap frozen keys fix\n// We can't use feature detection because it crash some old IE builds\n// https://github.com/zloirock/core-js/issues/485\nif (NATIVE_WEAK_MAP) if (IS_IE11) {\n InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);\n InternalMetadataModule.enable();\n var nativeDelete = uncurryThis(WeakMapPrototype['delete']);\n var nativeHas = uncurryThis(WeakMapPrototype.has);\n var nativeGet = uncurryThis(WeakMapPrototype.get);\n defineBuiltIns(WeakMapPrototype, {\n 'delete': function (key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeDelete(this, key) || state.frozen['delete'](key);\n } return nativeDelete(this, key);\n },\n has: function has(key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeHas(this, key) || state.frozen.has(key);\n } return nativeHas(this, key);\n },\n get: function get(key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);\n } return nativeGet(this, key);\n },\n set: function set(key, value) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);\n } else nativeSet(this, key, value);\n return this;\n }\n });\n// Chakra Edge frozen keys fix\n} else if (hasMSEdgeFreezingBug()) {\n defineBuiltIns(WeakMapPrototype, {\n set: function set(key, value) {\n var arrayIntegrityLevel;\n if (isArray(key)) {\n if (isFrozen(key)) arrayIntegrityLevel = FROZEN;\n else if (isSealed(key)) arrayIntegrityLevel = SEALED;\n }\n nativeSet(this, key, value);\n if (arrayIntegrityLevel == FROZEN) freeze(key);\n if (arrayIntegrityLevel == SEALED) seal(key);\n return this;\n }\n });\n}\n","// TODO: Remove this module from `core-js@4` since it's replaced to module below\nrequire('../modules/es.weak-map.constructor');\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionWeak = require('../internals/collection-weak');\n\n// `WeakSet` constructor\n// https://tc39.es/ecma262/#sec-weakset-constructor\ncollection('WeakSet', function (init) {\n return function WeakSet() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionWeak);\n","// TODO: Remove this module from `core-js@4` since it's replaced to module below\nrequire('../modules/es.weak-set.constructor');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.asyncDispose` well-known symbol\n// https://github.com/tc39/proposal-async-explicit-resource-management\ndefineWellKnownSymbol('asyncDispose');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.dispose` well-known symbol\n// https://github.com/tc39/proposal-explicit-resource-management\ndefineWellKnownSymbol('dispose');\n","var $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar Symbol = getBuiltIn('Symbol');\nvar keyFor = Symbol.keyFor;\nvar thisSymbolValue = uncurryThis(Symbol.prototype.valueOf);\n\n// `Symbol.isRegistered` method\n// https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregistered\n$({ target: 'Symbol', stat: true }, {\n isRegistered: function isRegistered(value) {\n try {\n return keyFor(thisSymbolValue(value)) !== undefined;\n } catch (error) {\n return false;\n }\n }\n});\n","var $ = require('../internals/export');\nvar shared = require('../internals/shared');\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isSymbol = require('../internals/is-symbol');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar Symbol = getBuiltIn('Symbol');\nvar $isWellKnown = Symbol.isWellKnown;\nvar getOwnPropertyNames = getBuiltIn('Object', 'getOwnPropertyNames');\nvar thisSymbolValue = uncurryThis(Symbol.prototype.valueOf);\nvar WellKnownSymbolsStore = shared('wks');\n\nfor (var i = 0, symbolKeys = getOwnPropertyNames(Symbol), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) {\n // some old engines throws on access to some keys like `arguments` or `caller`\n try {\n var symbolKey = symbolKeys[i];\n if (isSymbol(Symbol[symbolKey])) wellKnownSymbol(symbolKey);\n } catch (error) { /* empty */ }\n}\n\n// `Symbol.isWellKnown` method\n// https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknown\n// We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected\n$({ target: 'Symbol', stat: true, forced: true }, {\n isWellKnown: function isWellKnown(value) {\n if ($isWellKnown && $isWellKnown(value)) return true;\n try {\n var symbol = thisSymbolValue(value);\n for (var j = 0, keys = getOwnPropertyNames(WellKnownSymbolsStore), keysLength = keys.length; j < keysLength; j++) {\n if (WellKnownSymbolsStore[keys[j]] == symbol) return true;\n }\n } catch (error) { /* empty */ }\n return false;\n }\n});\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.matcher` well-known symbol\n// https://github.com/tc39/proposal-pattern-matching\ndefineWellKnownSymbol('matcher');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.metadataKey` well-known symbol\n// https://github.com/tc39/proposal-decorator-metadata\ndefineWellKnownSymbol('metadataKey');\n","// TODO: Remove from `core-js@4`\nvar defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.metadata` well-known symbol\n// https://github.com/tc39/proposal-decorators\ndefineWellKnownSymbol('metadata');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.observable` well-known symbol\n// https://github.com/tc39/proposal-observable\ndefineWellKnownSymbol('observable');\n","// TODO: remove from `core-js@4`\nvar defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.patternMatch` well-known symbol\n// https://github.com/tc39/proposal-pattern-matching\ndefineWellKnownSymbol('patternMatch');\n","// TODO: remove from `core-js@4`\nvar defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\ndefineWellKnownSymbol('replaceAll');\n","require('../modules/es.array.iterator');\nvar DOMIterables = require('../internals/dom-iterables');\nvar global = require('../internals/global');\nvar classof = require('../internals/classof');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nfor (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n if (CollectionPrototype && classof(CollectionPrototype) !== TO_STRING_TAG) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n Iterators[COLLECTION_NAME] = Iterators.Array;\n}\n","var $ = require('../internals/export');\nvar global = require('../internals/global');\nvar schedulersFix = require('../internals/schedulers-fix');\n\nvar setInterval = schedulersFix(global.setInterval, true);\n\n// Bun / IE9- setInterval additional parameters fix\n// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval\n$({ global: true, bind: true, forced: global.setInterval !== setInterval }, {\n setInterval: setInterval\n});\n","var $ = require('../internals/export');\nvar global = require('../internals/global');\nvar schedulersFix = require('../internals/schedulers-fix');\n\nvar setTimeout = schedulersFix(global.setTimeout, true);\n\n// Bun / IE9- setTimeout additional parameters fix\n// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout\n$({ global: true, bind: true, forced: global.setTimeout !== setTimeout }, {\n setTimeout: setTimeout\n});\n","// TODO: Remove this module from `core-js@4` since it's split to modules listed below\nrequire('../modules/web.set-interval');\nrequire('../modules/web.set-timeout');\n","var parent = require('../../es/array/is-array');\n\nmodule.exports = parent;\n","var parent = require('../../../es/array/virtual/for-each');\n\nmodule.exports = parent;\n","var parent = require('../../es/instance/concat');\n\nmodule.exports = parent;\n","require('../../modules/web.dom-collections.iterator');\nvar classof = require('../../internals/classof');\nvar hasOwn = require('../../internals/has-own-property');\nvar isPrototypeOf = require('../../internals/object-is-prototype-of');\nvar method = require('../array/virtual/for-each');\n\nvar ArrayPrototype = Array.prototype;\n\nvar DOMIterables = {\n DOMTokenList: true,\n NodeList: true\n};\n\nmodule.exports = function (it) {\n var own = it.forEach;\n return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.forEach)\n || hasOwn(DOMIterables, classof(it)) ? method : own;\n};\n","var parent = require('../../es/instance/map');\n\nmodule.exports = parent;\n","var parent = require('../../es/instance/reduce');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/define-property');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/entries');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/keys');\n\nmodule.exports = parent;\n","var parent = require('../../es/promise');\nrequire('../../modules/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","require('../modules/web.timers');\nvar path = require('../internals/path');\n\nmodule.exports = path.setTimeout;\n","var parent = require('../../es/symbol');\nrequire('../../modules/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","var parent = require('../../es/symbol/iterator');\nrequire('../../modules/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","var parent = require('../../es/symbol/to-primitive');\n\nmodule.exports = parent;\n","var parent = require('../../es/weak-map');\nrequire('../../modules/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","var parent = require('../../es/weak-set');\nrequire('../../modules/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","'use strict';\n\nvar isMergeableObject = function isMergeableObject(value) {\n\treturn isNonNullObject(value)\n\t\t&& !isSpecial(value)\n};\n\nfunction isNonNullObject(value) {\n\treturn !!value && typeof value === 'object'\n}\n\nfunction isSpecial(value) {\n\tvar stringValue = Object.prototype.toString.call(value);\n\n\treturn stringValue === '[object RegExp]'\n\t\t|| stringValue === '[object Date]'\n\t\t|| isReactElement(value)\n}\n\n// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25\nvar canUseSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;\n\nfunction isReactElement(value) {\n\treturn value.$$typeof === REACT_ELEMENT_TYPE\n}\n\nfunction emptyTarget(val) {\n\treturn Array.isArray(val) ? [] : {}\n}\n\nfunction cloneUnlessOtherwiseSpecified(value, options) {\n\treturn (options.clone !== false && options.isMergeableObject(value))\n\t\t? deepmerge(emptyTarget(value), value, options)\n\t\t: value\n}\n\nfunction defaultArrayMerge(target, source, options) {\n\treturn target.concat(source).map(function(element) {\n\t\treturn cloneUnlessOtherwiseSpecified(element, options)\n\t})\n}\n\nfunction getMergeFunction(key, options) {\n\tif (!options.customMerge) {\n\t\treturn deepmerge\n\t}\n\tvar customMerge = options.customMerge(key);\n\treturn typeof customMerge === 'function' ? customMerge : deepmerge\n}\n\nfunction getEnumerableOwnPropertySymbols(target) {\n\treturn Object.getOwnPropertySymbols\n\t\t? Object.getOwnPropertySymbols(target).filter(function(symbol) {\n\t\t\treturn Object.propertyIsEnumerable.call(target, symbol)\n\t\t})\n\t\t: []\n}\n\nfunction getKeys(target) {\n\treturn Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))\n}\n\nfunction propertyIsOnObject(object, property) {\n\ttry {\n\t\treturn property in object\n\t} catch(_) {\n\t\treturn false\n\t}\n}\n\n// Protects from prototype poisoning and unexpected merging up the prototype chain.\nfunction propertyIsUnsafe(target, key) {\n\treturn propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,\n\t\t&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,\n\t\t\t&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.\n}\n\nfunction mergeObject(target, source, options) {\n\tvar destination = {};\n\tif (options.isMergeableObject(target)) {\n\t\tgetKeys(target).forEach(function(key) {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(target[key], options);\n\t\t});\n\t}\n\tgetKeys(source).forEach(function(key) {\n\t\tif (propertyIsUnsafe(target, key)) {\n\t\t\treturn\n\t\t}\n\n\t\tif (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {\n\t\t\tdestination[key] = getMergeFunction(key, options)(target[key], source[key], options);\n\t\t} else {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(source[key], options);\n\t\t}\n\t});\n\treturn destination\n}\n\nfunction deepmerge(target, source, options) {\n\toptions = options || {};\n\toptions.arrayMerge = options.arrayMerge || defaultArrayMerge;\n\toptions.isMergeableObject = options.isMergeableObject || isMergeableObject;\n\t// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()\n\t// implementations can use it. The caller may not replace it.\n\toptions.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;\n\n\tvar sourceIsArray = Array.isArray(source);\n\tvar targetIsArray = Array.isArray(target);\n\tvar sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n\tif (!sourceAndTargetTypesMatch) {\n\t\treturn cloneUnlessOtherwiseSpecified(source, options)\n\t} else if (sourceIsArray) {\n\t\treturn options.arrayMerge(target, source, options)\n\t} else {\n\t\treturn mergeObject(target, source, options)\n\t}\n}\n\ndeepmerge.all = function deepmergeAll(array, options) {\n\tif (!Array.isArray(array)) {\n\t\tthrow new Error('first argument should be an array')\n\t}\n\n\treturn array.reduce(function(prev, next) {\n\t\treturn deepmerge(prev, next, options)\n\t}, {})\n};\n\nvar deepmerge_1 = deepmerge;\n\nmodule.exports = deepmerge_1;\n","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assertImpersonatedUserIsEmpty = exports.assertTxConfigIsEmpty = exports.assertDatabaseIsEmpty = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\n/**\n * @param {TxConfig} txConfig the auto-commit transaction configuration.\n * @param {function(error: string)} onProtocolError called when the txConfig is not empty.\n * @param {ResultStreamObserver} observer the response observer.\n */\nfunction assertTxConfigIsEmpty(txConfig, onProtocolError, observer) {\n if (onProtocolError === void 0) { onProtocolError = function () { }; }\n if (txConfig && !txConfig.isEmpty()) {\n var error = (0, neo4j_driver_core_1.newError)('Driver is connected to the database that does not support transaction configuration. ' +\n 'Please upgrade to neo4j 3.5.0 or later in order to use this functionality');\n // unsupported API was used, consider this a fatal error for the current connection\n onProtocolError(error.message);\n observer.onError(error);\n throw error;\n }\n}\nexports.assertTxConfigIsEmpty = assertTxConfigIsEmpty;\n/**\n * Asserts that the passed-in database name is empty.\n * @param {string} database\n * @param {fuction(err: String)} onProtocolError Called when it doesn't have database set\n */\nfunction assertDatabaseIsEmpty(database, onProtocolError, observer) {\n if (onProtocolError === void 0) { onProtocolError = function () { }; }\n if (database) {\n var error = (0, neo4j_driver_core_1.newError)('Driver is connected to the database that does not support multiple databases. ' +\n 'Please upgrade to neo4j 4.0.0 or later in order to use this functionality');\n // unsupported API was used, consider this a fatal error for the current connection\n onProtocolError(error.message);\n observer.onError(error);\n throw error;\n }\n}\nexports.assertDatabaseIsEmpty = assertDatabaseIsEmpty;\n/**\n * Asserts that the passed-in impersonated user is empty\n * @param {string} impersonatedUser\n * @param {function (err:Error)} onProtocolError Called when it does have impersonated user set\n * @param {any} observer\n */\nfunction assertImpersonatedUserIsEmpty(impersonatedUser, onProtocolError, observer) {\n if (onProtocolError === void 0) { onProtocolError = function () { }; }\n if (impersonatedUser) {\n var error = (0, neo4j_driver_core_1.newError)('Driver is connected to the database that does not support user impersonation. ' +\n 'Please upgrade to neo4j 4.4.0 or later in order to use this functionality. ' +\n (\"Trying to impersonate \" + impersonatedUser + \".\"));\n // unsupported API was used, consider this a fatal error for the current connection\n onProtocolError(error.message);\n observer.onError(error);\n throw error;\n }\n}\nexports.assertImpersonatedUserIsEmpty = assertImpersonatedUserIsEmpty;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar bolt_protocol_util_1 = require(\"./bolt-protocol-util\");\nvar packstream_1 = require(\"../packstream\");\nvar request_message_1 = __importDefault(require(\"./request-message\"));\nvar stream_observers_1 = require(\"./stream-observers\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar Bookmark = neo4j_driver_core_1.internal.bookmark.Bookmark, _a = neo4j_driver_core_1.internal.constants, ACCESS_MODE_WRITE = _a.ACCESS_MODE_WRITE, BOLT_PROTOCOL_V1 = _a.BOLT_PROTOCOL_V1, Logger = neo4j_driver_core_1.internal.logger.Logger, TxConfig = neo4j_driver_core_1.internal.txConfig.TxConfig;\nvar BoltProtocol = /** @class */ (function () {\n /**\n * @callback CreateResponseHandler Creates the response handler\n * @param {BoltProtocol} protocol The bolt protocol\n * @returns {ResponseHandler} The response handler\n */\n /**\n * @callback OnProtocolError Handles protocol error\n * @param {string} error The description\n */\n /**\n * @constructor\n * @param {Object} server the server informatio.\n * @param {Chunker} chunker the chunker.\n * @param {Object} packstreamConfig Packstream configuration\n * @param {boolean} packstreamConfig.disableLosslessIntegers if this connection should convert all received integers to native JS numbers.\n * @param {boolean} packstreamConfig.useBigInt if this connection should convert all received integers to native BigInt numbers.\n * @param {CreateResponseHandler} createResponseHandler Function which creates the response handler\n * @param {Logger} log the logger\n * @param {OnProtocolError} onProtocolError handles protocol errors\n */\n function BoltProtocol(server, chunker, _a, createResponseHandler, log, onProtocolError) {\n var _b = _a === void 0 ? {} : _a, disableLosslessIntegers = _b.disableLosslessIntegers, useBigInt = _b.useBigInt;\n if (createResponseHandler === void 0) { createResponseHandler = function () { return null; }; }\n this._server = server || {};\n this._chunker = chunker;\n this._packer = this._createPacker(chunker);\n this._unpacker = this._createUnpacker(disableLosslessIntegers, useBigInt);\n this._responseHandler = createResponseHandler(this);\n this._log = log;\n this._onProtocolError = onProtocolError;\n this._fatalError = null;\n }\n Object.defineProperty(BoltProtocol.prototype, \"version\", {\n /**\n * Returns the numerical version identifier for this protocol\n */\n get: function () {\n return BOLT_PROTOCOL_V1;\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Get the packer.\n * @return {Packer} the protocol's packer.\n */\n BoltProtocol.prototype.packer = function () {\n return this._packer;\n };\n /**\n * Get the unpacker.\n * @return {Unpacker} the protocol's unpacker.\n */\n BoltProtocol.prototype.unpacker = function () {\n return this._unpacker;\n };\n /**\n * Transform metadata received in SUCCESS message before it is passed to the handler.\n * @param {Object} metadata the received metadata.\n * @return {Object} transformed metadata.\n */\n BoltProtocol.prototype.transformMetadata = function (metadata) {\n return metadata;\n };\n /**\n * Perform initialization and authentication of the underlying connection.\n * @param {Object} param\n * @param {string} param.userAgent the user agent.\n * @param {Object} param.authToken the authentication token.\n * @param {function(err: Error)} param.onError the callback to invoke on error.\n * @param {function()} param.onComplete the callback to invoke on completion.\n * @returns {StreamObserver} the stream observer that monitors the corresponding server response.\n */\n BoltProtocol.prototype.initialize = function (_a) {\n var _this = this;\n var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent, authToken = _b.authToken, onError = _b.onError, onComplete = _b.onComplete;\n var observer = new stream_observers_1.LoginObserver({\n onError: function (error) { return _this._onLoginError(error, onError); },\n onCompleted: function (metadata) { return _this._onLoginCompleted(metadata, onComplete); }\n });\n this.write(request_message_1.default.init(userAgent, authToken), observer, true);\n return observer;\n };\n /**\n * Perform protocol related operations for closing this connection\n */\n BoltProtocol.prototype.prepareToClose = function () {\n // no need to notify the database in this protocol version\n };\n /**\n * Begin an explicit transaction.\n * @param {Object} param\n * @param {Bookmark} param.bookmark the bookmark.\n * @param {TxConfig} param.txConfig the configuration.\n * @param {string} param.database the target database name.\n * @param {string} param.mode the access mode.\n * @param {string} param.impersonatedUser the impersonated user\n * @param {function(err: Error)} param.beforeError the callback to invoke before handling the error.\n * @param {function(err: Error)} param.afterError the callback to invoke after handling the error.\n * @param {function()} param.beforeComplete the callback to invoke before handling the completion.\n * @param {function()} param.afterComplete the callback to invoke after handling the completion.\n * @returns {StreamObserver} the stream observer that monitors the corresponding server response.\n */\n BoltProtocol.prototype.beginTransaction = function (_a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;\n return this.run('BEGIN', bookmark ? bookmark.asBeginTransactionParameters() : {}, {\n bookmark: bookmark,\n txConfig: txConfig,\n database: database,\n mode: mode,\n impersonatedUser: impersonatedUser,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete,\n flush: false\n });\n };\n /**\n * Commit the explicit transaction.\n * @param {Object} param\n * @param {function(err: Error)} param.beforeError the callback to invoke before handling the error.\n * @param {function(err: Error)} param.afterError the callback to invoke after handling the error.\n * @param {function()} param.beforeComplete the callback to invoke before handling the completion.\n * @param {function()} param.afterComplete the callback to invoke after handling the completion.\n * @returns {StreamObserver} the stream observer that monitors the corresponding server response.\n */\n BoltProtocol.prototype.commitTransaction = function (_a) {\n var _b = _a === void 0 ? {} : _a, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;\n // WRITE access mode is used as a place holder here, it has\n // no effect on behaviour for Bolt V1 & V2\n return this.run('COMMIT', {}, {\n bookmark: Bookmark.empty(),\n txConfig: TxConfig.empty(),\n mode: ACCESS_MODE_WRITE,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n };\n /**\n * Rollback the explicit transaction.\n * @param {Object} param\n * @param {function(err: Error)} param.beforeError the callback to invoke before handling the error.\n * @param {function(err: Error)} param.afterError the callback to invoke after handling the error.\n * @param {function()} param.beforeComplete the callback to invoke before handling the completion.\n * @param {function()} param.afterComplete the callback to invoke after handling the completion.\n * @returns {StreamObserver} the stream observer that monitors the corresponding server response.\n */\n BoltProtocol.prototype.rollbackTransaction = function (_a) {\n var _b = _a === void 0 ? {} : _a, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;\n // WRITE access mode is used as a place holder here, it has\n // no effect on behaviour for Bolt V1 & V2\n return this.run('ROLLBACK', {}, {\n bookmark: Bookmark.empty(),\n txConfig: TxConfig.empty(),\n mode: ACCESS_MODE_WRITE,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n };\n /**\n * Send a Cypher query through the underlying connection.\n * @param {string} query the cypher query.\n * @param {Object} parameters the query parameters.\n * @param {Object} param\n * @param {Bookmark} param.bookmark the bookmark.\n * @param {TxConfig} param.txConfig the transaction configuration.\n * @param {string} param.database the target database name.\n * @param {string} param.impersonatedUser the impersonated user\n * @param {string} param.mode the access mode.\n * @param {function(keys: string[])} param.beforeKeys the callback to invoke before handling the keys.\n * @param {function(keys: string[])} param.afterKeys the callback to invoke after handling the keys.\n * @param {function(err: Error)} param.beforeError the callback to invoke before handling the error.\n * @param {function(err: Error)} param.afterError the callback to invoke after handling the error.\n * @param {function()} param.beforeComplete the callback to invoke before handling the completion.\n * @param {function()} param.afterComplete the callback to invoke after handling the completion.\n * @param {boolean} param.flush whether to flush the buffered messages.\n * @returns {StreamObserver} the stream observer that monitors the corresponding server response.\n */\n BoltProtocol.prototype.run = function (query, parameters, _a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, _c = _b.flush, flush = _c === void 0 ? true : _c;\n var observer = new stream_observers_1.ResultStreamObserver({\n server: this._server,\n beforeKeys: beforeKeys,\n afterKeys: afterKeys,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n // bookmark and mode are ignored in this version of the protocol\n (0, bolt_protocol_util_1.assertTxConfigIsEmpty)(txConfig, this._onProtocolError, observer);\n // passing in a database name on this protocol version throws an error\n (0, bolt_protocol_util_1.assertDatabaseIsEmpty)(database, this._onProtocolError, observer);\n // passing impersonated user on this protocol version throws an error\n (0, bolt_protocol_util_1.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);\n this.write(request_message_1.default.run(query, parameters), observer, false);\n this.write(request_message_1.default.pullAll(), observer, flush);\n return observer;\n };\n Object.defineProperty(BoltProtocol.prototype, \"currentFailure\", {\n get: function () {\n return this._responseHandler.currentFailure;\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Send a RESET through the underlying connection.\n * @param {Object} param\n * @param {function(err: Error)} param.onError the callback to invoke on error.\n * @param {function()} param.onComplete the callback to invoke on completion.\n * @returns {StreamObserver} the stream observer that monitors the corresponding server response.\n */\n BoltProtocol.prototype.reset = function (_a) {\n var _b = _a === void 0 ? {} : _a, onError = _b.onError, onComplete = _b.onComplete;\n var observer = new stream_observers_1.ResetObserver({\n onProtocolError: this._onProtocolError,\n onError: onError,\n onComplete: onComplete\n });\n this.write(request_message_1.default.reset(), observer, true);\n return observer;\n };\n BoltProtocol.prototype._createPacker = function (chunker) {\n return new packstream_1.v1.Packer(chunker);\n };\n BoltProtocol.prototype._createUnpacker = function (disableLosslessIntegers, useBigInt) {\n return new packstream_1.v1.Unpacker(disableLosslessIntegers, useBigInt);\n };\n /**\n * Write a message to the network channel.\n * @param {RequestMessage} message the message to write.\n * @param {StreamObserver} observer the response observer.\n * @param {boolean} flush `true` if flush should happen after the message is written to the buffer.\n */\n BoltProtocol.prototype.write = function (message, observer, flush) {\n var _this = this;\n var queued = this.queueObserverIfProtocolIsNotBroken(observer);\n if (queued) {\n if (this._log.isDebugEnabled()) {\n this._log.debug(\"C: \" + message);\n }\n this.packer().packStruct(message.signature, message.fields.map(function (field) { return _this.packer().packable(field); }));\n this._chunker.messageBoundary();\n if (flush) {\n this._chunker.flush();\n }\n }\n };\n /**\n * Notifies faltal erros to the observers and mark the protocol in the fatal error state.\n * @param {Error} error The error\n */\n BoltProtocol.prototype.notifyFatalError = function (error) {\n this._fatalError = error;\n return this._responseHandler._notifyErrorToObservers(error);\n };\n /**\n * Updates the the current observer with the next one on the queue.\n */\n BoltProtocol.prototype.updateCurrentObserver = function () {\n return this._responseHandler._updateCurrentObserver();\n };\n /**\n * Checks if exist an ongoing observable requests\n * @return {boolean}\n */\n BoltProtocol.prototype.hasOngoingObservableRequests = function () {\n return this._responseHandler.hasOngoingObservableRequests();\n };\n /**\n * Enqueue the observer if the protocol is not broken.\n * In case it's broken, the observer will be notified about the error.\n *\n * @param {StreamObserver} observer The observer\n * @returns {boolean} if it was queued\n */\n BoltProtocol.prototype.queueObserverIfProtocolIsNotBroken = function (observer) {\n if (this.isBroken()) {\n this.notifyFatalErrorToObserver(observer);\n return false;\n }\n return this._responseHandler._queueObserver(observer);\n };\n /**\n * Veritfy the protocol is not broken.\n * @returns {boolean}\n */\n BoltProtocol.prototype.isBroken = function () {\n return !!this._fatalError;\n };\n /**\n * Notifies the current fatal error to the observer\n *\n * @param {StreamObserver} observer The observer\n */\n BoltProtocol.prototype.notifyFatalErrorToObserver = function (observer) {\n if (observer && observer.onError) {\n observer.onError(this._fatalError);\n }\n };\n /**\n * Reset current failure on the observable response handler to null.\n */\n BoltProtocol.prototype.resetFailure = function () {\n this._responseHandler._resetFailure();\n };\n BoltProtocol.prototype._onLoginCompleted = function (metadata, onCompleted) {\n if (metadata) {\n var serverVersion = metadata.server;\n if (!this._server.version) {\n this._server.version = serverVersion;\n }\n }\n if (onCompleted) {\n onCompleted(metadata);\n }\n };\n BoltProtocol.prototype._onLoginError = function (error, onError) {\n this._onProtocolError(error.message);\n if (onError) {\n onError(error);\n }\n };\n return BoltProtocol;\n}());\nexports.default = BoltProtocol;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar bolt_protocol_v1_1 = __importDefault(require(\"./bolt-protocol-v1\"));\nvar packstream_1 = __importDefault(require(\"../packstream\"));\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar BOLT_PROTOCOL_V2 = neo4j_driver_core_1.internal.constants.BOLT_PROTOCOL_V2;\nvar BoltProtocol = /** @class */ (function (_super) {\n __extends(BoltProtocol, _super);\n function BoltProtocol() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n BoltProtocol.prototype._createPacker = function (chunker) {\n return new packstream_1.default.Packer(chunker);\n };\n BoltProtocol.prototype._createUnpacker = function (disableLosslessIntegers, useBigInt) {\n return new packstream_1.default.Unpacker(disableLosslessIntegers, useBigInt);\n };\n Object.defineProperty(BoltProtocol.prototype, \"version\", {\n get: function () {\n return BOLT_PROTOCOL_V2;\n },\n enumerable: false,\n configurable: true\n });\n return BoltProtocol;\n}(bolt_protocol_v1_1.default));\nexports.default = BoltProtocol;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar bolt_protocol_v2_1 = __importDefault(require(\"./bolt-protocol-v2\"));\nvar request_message_1 = __importDefault(require(\"./request-message\"));\nvar bolt_protocol_util_1 = require(\"./bolt-protocol-util\");\nvar stream_observers_1 = require(\"./stream-observers\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar Bookmark = neo4j_driver_core_1.internal.bookmark.Bookmark, BOLT_PROTOCOL_V3 = neo4j_driver_core_1.internal.constants.BOLT_PROTOCOL_V3, TxConfig = neo4j_driver_core_1.internal.txConfig.TxConfig;\nvar CONTEXT = 'context';\nvar CALL_GET_ROUTING_TABLE = \"CALL dbms.cluster.routing.getRoutingTable($\" + CONTEXT + \")\";\nvar noOpObserver = new stream_observers_1.StreamObserver();\nvar BoltProtocol = /** @class */ (function (_super) {\n __extends(BoltProtocol, _super);\n function BoltProtocol() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Object.defineProperty(BoltProtocol.prototype, \"version\", {\n get: function () {\n return BOLT_PROTOCOL_V3;\n },\n enumerable: false,\n configurable: true\n });\n BoltProtocol.prototype.transformMetadata = function (metadata) {\n if ('t_first' in metadata) {\n // Bolt V3 uses shorter key 't_first' to represent 'result_available_after'\n // adjust the key to be the same as in Bolt V1 so that ResultSummary can retrieve the value\n metadata.result_available_after = metadata.t_first;\n delete metadata.t_first;\n }\n if ('t_last' in metadata) {\n // Bolt V3 uses shorter key 't_last' to represent 'result_consumed_after'\n // adjust the key to be the same as in Bolt V1 so that ResultSummary can retrieve the value\n metadata.result_consumed_after = metadata.t_last;\n delete metadata.t_last;\n }\n return metadata;\n };\n BoltProtocol.prototype.initialize = function (_a) {\n var _this = this;\n var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent, authToken = _b.authToken, onError = _b.onError, onComplete = _b.onComplete;\n var observer = new stream_observers_1.LoginObserver({\n onError: function (error) { return _this._onLoginError(error, onError); },\n onCompleted: function (metadata) { return _this._onLoginCompleted(metadata, onComplete); }\n });\n this.write(request_message_1.default.hello(userAgent, authToken), observer, true);\n return observer;\n };\n BoltProtocol.prototype.prepareToClose = function () {\n this.write(request_message_1.default.goodbye(), noOpObserver, true);\n };\n BoltProtocol.prototype.beginTransaction = function (_a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, impersonatedUser = _b.impersonatedUser, mode = _b.mode, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;\n var observer = new stream_observers_1.ResultStreamObserver({\n server: this._server,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n observer.prepareToHandleSingleResponse();\n // passing in a database name on this protocol version throws an error\n (0, bolt_protocol_util_1.assertDatabaseIsEmpty)(database, this._onProtocolError, observer);\n // passing impersonated user on this protocol version throws an error\n (0, bolt_protocol_util_1.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);\n this.write(request_message_1.default.begin({ bookmark: bookmark, txConfig: txConfig, mode: mode }), observer, true);\n return observer;\n };\n BoltProtocol.prototype.commitTransaction = function (_a) {\n var _b = _a === void 0 ? {} : _a, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;\n var observer = new stream_observers_1.ResultStreamObserver({\n server: this._server,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n observer.prepareToHandleSingleResponse();\n this.write(request_message_1.default.commit(), observer, true);\n return observer;\n };\n BoltProtocol.prototype.rollbackTransaction = function (_a) {\n var _b = _a === void 0 ? {} : _a, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;\n var observer = new stream_observers_1.ResultStreamObserver({\n server: this._server,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n observer.prepareToHandleSingleResponse();\n this.write(request_message_1.default.rollback(), observer, true);\n return observer;\n };\n BoltProtocol.prototype.run = function (query, parameters, _a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, impersonatedUser = _b.impersonatedUser, mode = _b.mode, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, _c = _b.flush, flush = _c === void 0 ? true : _c;\n var observer = new stream_observers_1.ResultStreamObserver({\n server: this._server,\n beforeKeys: beforeKeys,\n afterKeys: afterKeys,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n // passing in a database name on this protocol version throws an error\n (0, bolt_protocol_util_1.assertDatabaseIsEmpty)(database, this._onProtocolError, observer);\n // passing impersonated user on this protocol version throws an error\n (0, bolt_protocol_util_1.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);\n this.write(request_message_1.default.runWithMetadata(query, parameters, {\n bookmark: bookmark,\n txConfig: txConfig,\n mode: mode\n }), observer, false);\n this.write(request_message_1.default.pullAll(), observer, flush);\n return observer;\n };\n /**\n * Request routing information\n *\n * @param {Object} param -\n * @param {object} param.routingContext The routing context used to define the routing table.\n * Multi-datacenter deployments is one of its use cases\n * @param {string} param.databaseName The database name\n * @param {Bookmark} params.sessionContext.bookmark The bookmark used for request the routing table\n * @param {string} params.sessionContext.mode The session mode\n * @param {string} params.sessionContext.database The database name used on the session\n * @param {function()} params.sessionContext.afterComplete The session param used after the session closed\n * @param {function(err: Error)} param.onError\n * @param {function(RawRoutingTable)} param.onCompleted\n * @returns {RouteObserver} the route observer\n */\n BoltProtocol.prototype.requestRoutingInformation = function (_a) {\n var _b;\n var _c = _a.routingContext, routingContext = _c === void 0 ? {} : _c, _d = _a.sessionContext, sessionContext = _d === void 0 ? {} : _d, onError = _a.onError, onCompleted = _a.onCompleted;\n var resultObserver = this.run(CALL_GET_ROUTING_TABLE, (_b = {}, _b[CONTEXT] = routingContext, _b), __assign(__assign({}, sessionContext), { txConfig: TxConfig.empty() }));\n return new stream_observers_1.ProcedureRouteObserver({\n resultObserver: resultObserver,\n onProtocolError: this._onProtocolError,\n onError: onError,\n onCompleted: onCompleted\n });\n };\n return BoltProtocol;\n}(bolt_protocol_v2_1.default));\nexports.default = BoltProtocol;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar bolt_protocol_v3_1 = __importDefault(require(\"./bolt-protocol-v3\"));\nvar request_message_1 = __importDefault(require(\"./request-message\"));\nvar bolt_protocol_util_1 = require(\"./bolt-protocol-util\");\nvar stream_observers_1 = require(\"./stream-observers\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar Bookmark = neo4j_driver_core_1.internal.bookmark.Bookmark, _a = neo4j_driver_core_1.internal.constants, BOLT_PROTOCOL_V4_0 = _a.BOLT_PROTOCOL_V4_0, FETCH_ALL = _a.FETCH_ALL, TxConfig = neo4j_driver_core_1.internal.txConfig.TxConfig;\nvar CONTEXT = 'context';\nvar DATABASE = 'database';\nvar CALL_GET_ROUTING_TABLE_MULTI_DB = \"CALL dbms.routing.getRoutingTable($\" + CONTEXT + \", $\" + DATABASE + \")\";\nvar BoltProtocol = /** @class */ (function (_super) {\n __extends(BoltProtocol, _super);\n function BoltProtocol() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Object.defineProperty(BoltProtocol.prototype, \"version\", {\n get: function () {\n return BOLT_PROTOCOL_V4_0;\n },\n enumerable: false,\n configurable: true\n });\n BoltProtocol.prototype.beginTransaction = function (_a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, impersonatedUser = _b.impersonatedUser, mode = _b.mode, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;\n var observer = new stream_observers_1.ResultStreamObserver({\n server: this._server,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n observer.prepareToHandleSingleResponse();\n // passing impersonated user on this protocol version throws an error\n (0, bolt_protocol_util_1.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);\n this.write(request_message_1.default.begin({ bookmark: bookmark, txConfig: txConfig, database: database, mode: mode }), observer, true);\n return observer;\n };\n BoltProtocol.prototype.run = function (query, parameters, _a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, impersonatedUser = _b.impersonatedUser, mode = _b.mode, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, _c = _b.flush, flush = _c === void 0 ? true : _c, _d = _b.reactive, reactive = _d === void 0 ? false : _d, _e = _b.fetchSize, fetchSize = _e === void 0 ? FETCH_ALL : _e;\n var observer = new stream_observers_1.ResultStreamObserver({\n server: this._server,\n reactive: reactive,\n fetchSize: fetchSize,\n moreFunction: this._requestMore.bind(this),\n discardFunction: this._requestDiscard.bind(this),\n beforeKeys: beforeKeys,\n afterKeys: afterKeys,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n // passing impersonated user on this protocol version throws an error\n (0, bolt_protocol_util_1.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);\n var flushRun = reactive;\n this.write(request_message_1.default.runWithMetadata(query, parameters, {\n bookmark: bookmark,\n txConfig: txConfig,\n database: database,\n mode: mode\n }), observer, flushRun && flush);\n if (!reactive) {\n this.write(request_message_1.default.pull({ n: fetchSize }), observer, flush);\n }\n return observer;\n };\n BoltProtocol.prototype._requestMore = function (stmtId, n, observer) {\n this.write(request_message_1.default.pull({ stmtId: stmtId, n: n }), observer, true);\n };\n BoltProtocol.prototype._requestDiscard = function (stmtId, observer) {\n this.write(request_message_1.default.discard({ stmtId: stmtId }), observer, true);\n };\n BoltProtocol.prototype._noOp = function () { };\n /**\n * Request routing information\n *\n * @param {Object} param -\n * @param {object} param.routingContext The routing context used to define the routing table.\n * Multi-datacenter deployments is one of its use cases\n * @param {string} param.databaseName The database name\n * @param {Bookmark} params.sessionContext.bookmark The bookmark used for request the routing table\n * @param {string} params.sessionContext.mode The session mode\n * @param {string} params.sessionContext.database The database name used on the session\n * @param {function()} params.sessionContext.afterComplete The session param used after the session closed\n * @param {function(err: Error)} param.onError\n * @param {function(RawRoutingTable)} param.onCompleted\n * @returns {RouteObserver} the route observer\n */\n BoltProtocol.prototype.requestRoutingInformation = function (_a) {\n var _b;\n var _c = _a.routingContext, routingContext = _c === void 0 ? {} : _c, _d = _a.databaseName, databaseName = _d === void 0 ? null : _d, _e = _a.sessionContext, sessionContext = _e === void 0 ? {} : _e, onError = _a.onError, onCompleted = _a.onCompleted;\n var resultObserver = this.run(CALL_GET_ROUTING_TABLE_MULTI_DB, (_b = {},\n _b[CONTEXT] = routingContext,\n _b[DATABASE] = databaseName,\n _b), __assign(__assign({}, sessionContext), { txConfig: TxConfig.empty() }));\n return new stream_observers_1.ProcedureRouteObserver({\n resultObserver: resultObserver,\n onProtocolError: this._onProtocolError,\n onError: onError,\n onCompleted: onCompleted\n });\n };\n return BoltProtocol;\n}(bolt_protocol_v3_1.default));\nexports.default = BoltProtocol;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar bolt_protocol_v4x0_1 = __importDefault(require(\"./bolt-protocol-v4x0\"));\nvar request_message_1 = __importDefault(require(\"./request-message\"));\nvar stream_observers_1 = require(\"./stream-observers\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar BOLT_PROTOCOL_V4_1 = neo4j_driver_core_1.internal.constants.BOLT_PROTOCOL_V4_1;\nvar BoltProtocol = /** @class */ (function (_super) {\n __extends(BoltProtocol, _super);\n /**\n * @constructor\n * @param {Object} server the server informatio.\n * @param {Chunker} chunker the chunker.\n * @param {Object} packstreamConfig Packstream configuration\n * @param {boolean} packstreamConfig.disableLosslessIntegers if this connection should convert all received integers to native JS numbers.\n * @param {boolean} packstreamConfig.useBigInt if this connection should convert all received integers to native BigInt numbers.\n * @param {CreateResponseHandler} createResponseHandler Function which creates the response handler\n * @param {Logger} log the logger\n * @param {Object} serversideRouting\n *\n */\n function BoltProtocol(server, chunker, packstreamConfig, createResponseHandler, log, onProtocolError, serversideRouting) {\n if (createResponseHandler === void 0) { createResponseHandler = function () { return null; }; }\n var _this = _super.call(this, server, chunker, packstreamConfig, createResponseHandler, log, onProtocolError) || this;\n _this._serversideRouting = serversideRouting;\n return _this;\n }\n Object.defineProperty(BoltProtocol.prototype, \"version\", {\n get: function () {\n return BOLT_PROTOCOL_V4_1;\n },\n enumerable: false,\n configurable: true\n });\n BoltProtocol.prototype.initialize = function (_a) {\n var _this = this;\n var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent, authToken = _b.authToken, onError = _b.onError, onComplete = _b.onComplete;\n var observer = new stream_observers_1.LoginObserver({\n onError: function (error) { return _this._onLoginError(error, onError); },\n onCompleted: function (metadata) { return _this._onLoginCompleted(metadata, onComplete); }\n });\n this.write(request_message_1.default.hello(userAgent, authToken, this._serversideRouting), observer, true);\n return observer;\n };\n return BoltProtocol;\n}(bolt_protocol_v4x0_1.default));\nexports.default = BoltProtocol;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar bolt_protocol_v4x1_1 = __importDefault(require(\"./bolt-protocol-v4x1\"));\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar BOLT_PROTOCOL_V4_2 = neo4j_driver_core_1.internal.constants.BOLT_PROTOCOL_V4_2;\nvar BoltProtocol = /** @class */ (function (_super) {\n __extends(BoltProtocol, _super);\n function BoltProtocol() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Object.defineProperty(BoltProtocol.prototype, \"version\", {\n get: function () {\n return BOLT_PROTOCOL_V4_2;\n },\n enumerable: false,\n configurable: true\n });\n return BoltProtocol;\n}(bolt_protocol_v4x1_1.default));\nexports.default = BoltProtocol;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar bolt_protocol_v4x2_1 = __importDefault(require(\"./bolt-protocol-v4x2\"));\nvar request_message_1 = __importDefault(require(\"./request-message\"));\nvar stream_observers_1 = require(\"./stream-observers\");\nvar stream_observers_2 = require(\"./stream-observers\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar Bookmark = neo4j_driver_core_1.internal.bookmark.Bookmark, BOLT_PROTOCOL_V4_3 = neo4j_driver_core_1.internal.constants.BOLT_PROTOCOL_V4_3;\nvar BoltProtocol = /** @class */ (function (_super) {\n __extends(BoltProtocol, _super);\n function BoltProtocol() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Object.defineProperty(BoltProtocol.prototype, \"version\", {\n get: function () {\n return BOLT_PROTOCOL_V4_3;\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Request routing information\n *\n * @param {Object} param -\n * @param {object} param.routingContext The routing context used to define the routing table.\n * Multi-datacenter deployments is one of its use cases\n * @param {string} param.databaseName The database name\n * @param {Bookmark} params.sessionContext.bookmark The bookmark used for request the routing table\n * @param {function(err: Error)} param.onError\n * @param {function(RawRoutingTable)} param.onCompleted\n * @returns {RouteObserver} the route observer\n */\n BoltProtocol.prototype.requestRoutingInformation = function (_a) {\n var _b = _a.routingContext, routingContext = _b === void 0 ? {} : _b, _c = _a.databaseName, databaseName = _c === void 0 ? null : _c, _d = _a.sessionContext, sessionContext = _d === void 0 ? {} : _d, onError = _a.onError, onCompleted = _a.onCompleted;\n var observer = new stream_observers_1.RouteObserver({\n onProtocolError: this._onProtocolError,\n onError: onError,\n onCompleted: onCompleted\n });\n var bookmark = sessionContext.bookmark || Bookmark.empty();\n this.write(request_message_1.default.route(routingContext, bookmark.values(), databaseName), observer, true);\n return observer;\n };\n /**\n * Initialize a connection with the server\n *\n * @param {Object} param0 The params\n * @param {string} param0.userAgent The user agent\n * @param {any} param0.authToken The auth token\n * @param {function(error)} param0.onError On error callback\n * @param {function(onComplte)} param0.onComplete On complete callback\n * @returns {LoginObserver} The Login observer\n */\n BoltProtocol.prototype.initialize = function (_a) {\n var _this = this;\n var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent, authToken = _b.authToken, onError = _b.onError, onComplete = _b.onComplete;\n var observer = new stream_observers_2.LoginObserver({\n onError: function (error) { return _this._onLoginError(error, onError); },\n onCompleted: function (metadata) {\n if (metadata.patch_bolt !== undefined) {\n _this._applyPatches(metadata.patch_bolt);\n }\n return _this._onLoginCompleted(metadata, onComplete);\n }\n });\n this.write(request_message_1.default.hello(userAgent, authToken, this._serversideRouting, ['utc']), observer, true);\n return observer;\n };\n /**\n *\n * @param {string[]} patches Patches to be applied to the protocol\n */\n BoltProtocol.prototype._applyPatches = function (patches) {\n if (patches.includes('utc')) {\n this._applyUtcPatch();\n }\n };\n BoltProtocol.prototype._applyUtcPatch = function () {\n this._packer.useUtc = true;\n this._unpacker.useUtc = true;\n };\n return BoltProtocol;\n}(bolt_protocol_v4x2_1.default));\nexports.default = BoltProtocol;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar bolt_protocol_v4x3_1 = __importDefault(require(\"./bolt-protocol-v4x3\"));\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar request_message_1 = __importDefault(require(\"./request-message\"));\nvar stream_observers_1 = require(\"./stream-observers\");\nvar _a = neo4j_driver_core_1.internal.constants, BOLT_PROTOCOL_V4_4 = _a.BOLT_PROTOCOL_V4_4, FETCH_ALL = _a.FETCH_ALL, Bookmark = neo4j_driver_core_1.internal.bookmark.Bookmark;\nvar BoltProtocol = /** @class */ (function (_super) {\n __extends(BoltProtocol, _super);\n function BoltProtocol() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Object.defineProperty(BoltProtocol.prototype, \"version\", {\n get: function () {\n return BOLT_PROTOCOL_V4_4;\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Request routing information\n *\n * @param {Object} param -\n * @param {object} param.routingContext The routing context used to define the routing table.\n * Multi-datacenter deployments is one of its use cases\n * @param {string} param.databaseName The database name\n * @param {Bookmark} params.sessionContext.bookmark The bookmark used for request the routing table\n * @param {function(err: Error)} param.onError\n * @param {function(RawRoutingTable)} param.onCompleted\n * @returns {RouteObserver} the route observer\n */\n BoltProtocol.prototype.requestRoutingInformation = function (_a) {\n var _b = _a.routingContext, routingContext = _b === void 0 ? {} : _b, _c = _a.databaseName, databaseName = _c === void 0 ? null : _c, _d = _a.impersonatedUser, impersonatedUser = _d === void 0 ? null : _d, _e = _a.sessionContext, sessionContext = _e === void 0 ? {} : _e, onError = _a.onError, onCompleted = _a.onCompleted;\n var observer = new stream_observers_1.RouteObserver({\n onProtocolError: this._onProtocolError,\n onError: onError,\n onCompleted: onCompleted\n });\n var bookmark = sessionContext.bookmark || Bookmark.empty();\n this.write(request_message_1.default.routeV4x4(routingContext, bookmark.values(), { databaseName: databaseName, impersonatedUser: impersonatedUser }), observer, true);\n return observer;\n };\n BoltProtocol.prototype.run = function (query, parameters, _a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, _c = _b.flush, flush = _c === void 0 ? true : _c, _d = _b.reactive, reactive = _d === void 0 ? false : _d, _e = _b.fetchSize, fetchSize = _e === void 0 ? FETCH_ALL : _e;\n var observer = new stream_observers_1.ResultStreamObserver({\n server: this._server,\n reactive: reactive,\n fetchSize: fetchSize,\n moreFunction: this._requestMore.bind(this),\n discardFunction: this._requestDiscard.bind(this),\n beforeKeys: beforeKeys,\n afterKeys: afterKeys,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n var flushRun = reactive;\n this.write(request_message_1.default.runWithMetadata(query, parameters, {\n bookmark: bookmark,\n txConfig: txConfig,\n database: database,\n mode: mode,\n impersonatedUser: impersonatedUser\n }), observer, flushRun && flush);\n if (!reactive) {\n this.write(request_message_1.default.pull({ n: fetchSize }), observer, flush);\n }\n return observer;\n };\n BoltProtocol.prototype.beginTransaction = function (_a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;\n var observer = new stream_observers_1.ResultStreamObserver({\n server: this._server,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n observer.prepareToHandleSingleResponse();\n this.write(request_message_1.default.begin({ bookmark: bookmark, txConfig: txConfig, database: database, mode: mode, impersonatedUser: impersonatedUser }), observer, true);\n return observer;\n };\n return BoltProtocol;\n}(bolt_protocol_v4x3_1.default));\nexports.default = BoltProtocol;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar bolt_protocol_v1_1 = __importDefault(require(\"./bolt-protocol-v1\"));\nvar bolt_protocol_v2_1 = __importDefault(require(\"./bolt-protocol-v2\"));\nvar bolt_protocol_v3_1 = __importDefault(require(\"./bolt-protocol-v3\"));\nvar bolt_protocol_v4x0_1 = __importDefault(require(\"./bolt-protocol-v4x0\"));\nvar bolt_protocol_v4x1_1 = __importDefault(require(\"./bolt-protocol-v4x1\"));\nvar bolt_protocol_v4x2_1 = __importDefault(require(\"./bolt-protocol-v4x2\"));\nvar bolt_protocol_v4x3_1 = __importDefault(require(\"./bolt-protocol-v4x3\"));\nvar bolt_protocol_v4x4_1 = __importDefault(require(\"./bolt-protocol-v4x4\"));\nvar response_handler_1 = __importDefault(require(\"./response-handler\"));\n/**\n * Creates a protocol with a given version\n *\n * @param {object} config\n * @param {number} config.version The version of the protocol\n * @param {channel} config.channel The channel\n * @param {Chunker} config.chunker The chunker\n * @param {Dechunker} config.dechunker The dechunker\n * @param {Logger} config.log The logger\n * @param {ResponseHandler~Observer} config.observer Observer\n * @param {boolean} config.disableLosslessIntegers Disable the lossless integers\n * @param {boolean} packstreamConfig.useBigInt if this connection should convert all received integers to native BigInt numbers.\n * @param {boolean} config.serversideRouting It's using server side routing\n */\nfunction create(_a) {\n var _b = _a === void 0 ? {} : _a, version = _b.version, chunker = _b.chunker, dechunker = _b.dechunker, channel = _b.channel, disableLosslessIntegers = _b.disableLosslessIntegers, useBigInt = _b.useBigInt, serversideRouting = _b.serversideRouting, server = _b.server, // server info\n log = _b.log, observer = _b.observer;\n var createResponseHandler = function (protocol) {\n var responseHandler = new response_handler_1.default({\n transformMetadata: protocol.transformMetadata.bind(protocol),\n log: log,\n observer: observer\n });\n // reset the error handler to just handle errors and forget about the handshake promise\n channel.onerror = observer.onError.bind(observer);\n // Ok, protocol running. Simply forward all messages to the dechunker\n channel.onmessage = function (buf) { return dechunker.write(buf); };\n // setup dechunker to dechunk messages and forward them to the message handler\n dechunker.onmessage = function (buf) {\n try {\n responseHandler.handleResponse(protocol.unpacker().unpack(buf));\n }\n catch (e) {\n return observer.onError(e);\n }\n };\n return responseHandler;\n };\n return createProtocol(version, server, chunker, { disableLosslessIntegers: disableLosslessIntegers, useBigInt: useBigInt }, serversideRouting, createResponseHandler, observer.onProtocolError.bind(observer), log);\n}\nexports.default = create;\nfunction createProtocol(version, server, chunker, packingConfig, serversideRouting, createResponseHandler, onProtocolError, log) {\n switch (version) {\n case 1:\n return new bolt_protocol_v1_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError);\n case 2:\n return new bolt_protocol_v2_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError);\n case 3:\n return new bolt_protocol_v3_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError);\n case 4.0:\n return new bolt_protocol_v4x0_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError);\n case 4.1:\n return new bolt_protocol_v4x1_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);\n case 4.2:\n return new bolt_protocol_v4x2_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);\n case 4.3:\n return new bolt_protocol_v4x3_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);\n case 4.4:\n return new bolt_protocol_v4x4_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);\n default:\n throw (0, neo4j_driver_core_1.newError)('Unknown Bolt protocol version: ' + version);\n }\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"../channel\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar BOLT_MAGIC_PREAMBLE = 0x6060b017;\nfunction version(major, minor) {\n return {\n major: major,\n minor: minor\n };\n}\nfunction createHandshakeMessage(versions) {\n if (versions.length > 4) {\n throw (0, neo4j_driver_core_1.newError)('It should not have more than 4 versions of the protocol');\n }\n var handshakeBuffer = (0, channel_1.alloc)(5 * 4);\n handshakeBuffer.writeInt32(BOLT_MAGIC_PREAMBLE);\n versions.forEach(function (version) {\n if (version instanceof Array) {\n var _a = version[0], major = _a.major, minor = _a.minor;\n var minMinor = version[1].minor;\n var range = minor - minMinor;\n handshakeBuffer.writeInt32((range << 16) | (minor << 8) | major);\n }\n else {\n var major = version.major, minor = version.minor;\n handshakeBuffer.writeInt32((minor << 8) | major);\n }\n });\n handshakeBuffer.reset();\n return handshakeBuffer;\n}\nfunction parseNegotiatedResponse(buffer) {\n var h = [\n buffer.readUInt8(),\n buffer.readUInt8(),\n buffer.readUInt8(),\n buffer.readUInt8()\n ];\n if (h[0] === 0x48 && h[1] === 0x54 && h[2] === 0x54 && h[3] === 0x50) {\n throw (0, neo4j_driver_core_1.newError)('Server responded HTTP. Make sure you are not trying to connect to the http endpoint ' +\n '(HTTP defaults to port 7474 whereas BOLT defaults to port 7687)');\n }\n return Number(h[3] + '.' + h[2]);\n}\n/**\n * @return {BaseBuffer}\n * @private\n */\nfunction newHandshakeBuffer() {\n return createHandshakeMessage([\n [version(4, 4), version(4, 2)],\n version(4, 1),\n version(4, 0),\n version(3, 0)\n ]);\n}\n/**\n * This callback is displayed as a global member.\n * @callback BufferConsumerCallback\n * @param {buffer} buffer the remaining buffer\n */\n/**\n * @typedef HandshakeResult\n * @property {number} protocolVersion The protocol version negotiated in the handshake\n * @property {function(BufferConsumerCallback)} consumeRemainingBuffer A function to consume the remaining buffer if it exists\n */\n/**\n * Shake hands using the channel and return the protocol version\n *\n * @param {Channel} channel the channel use to shake hands\n * @returns {Promise} Promise of protocol version and consumeRemainingBuffer\n */\nfunction handshake(channel) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n var handshakeErrorHandler = function (error) {\n reject(error);\n };\n channel.onerror = handshakeErrorHandler.bind(_this);\n if (channel._error) {\n handshakeErrorHandler(channel._error);\n }\n channel.onmessage = function (buffer) {\n try {\n // read the response buffer and initialize the protocol\n var protocolVersion = parseNegotiatedResponse(buffer);\n resolve({\n protocolVersion: protocolVersion,\n consumeRemainingBuffer: function (consumer) {\n if (buffer.hasRemaining()) {\n consumer(buffer.readSlice(buffer.remaining()));\n }\n }\n });\n }\n catch (e) {\n reject(e);\n }\n };\n channel.write(newHandshakeBuffer());\n });\n}\nexports.default = handshake;\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RawRoutingTable = exports.BoltProtocol = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar handshake_1 = __importDefault(require(\"./handshake\"));\nvar create_1 = __importDefault(require(\"./create\"));\nvar bolt_protocol_v4x3_1 = __importDefault(require(\"./bolt-protocol-v4x3\"));\nvar routing_table_raw_1 = __importDefault(require(\"./routing-table-raw\"));\n__exportStar(require(\"./stream-observers\"), exports);\nexports.BoltProtocol = bolt_protocol_v4x3_1.default;\nexports.RawRoutingTable = routing_table_raw_1.default;\nexports.default = {\n handshake: handshake_1.default,\n create: create_1.default\n};\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar _a = neo4j_driver_core_1.internal.constants, ACCESS_MODE_READ = _a.ACCESS_MODE_READ, FETCH_ALL = _a.FETCH_ALL, assertString = neo4j_driver_core_1.internal.util.assertString;\n/* eslint-disable no-unused-vars */\n// Signature bytes for each request message type\nvar INIT = 0x01; // 0000 0001 // INIT \nvar ACK_FAILURE = 0x0e; // 0000 1110 // ACK_FAILURE - unused\nvar RESET = 0x0f; // 0000 1111 // RESET\nvar RUN = 0x10; // 0001 0000 // RUN \nvar DISCARD_ALL = 0x2f; // 0010 1111 // DISCARD_ALL - unused\nvar PULL_ALL = 0x3f; // 0011 1111 // PULL_ALL\nvar HELLO = 0x01; // 0000 0001 // HELLO \nvar GOODBYE = 0x02; // 0000 0010 // GOODBYE\nvar BEGIN = 0x11; // 0001 0001 // BEGIN \nvar COMMIT = 0x12; // 0001 0010 // COMMIT\nvar ROLLBACK = 0x13; // 0001 0011 // ROLLBACK\nvar ROUTE = 0x66; // 0110 0110 // ROUTE\nvar DISCARD = 0x2f; // 0010 1111 // DISCARD\nvar PULL = 0x3f; // 0011 1111 // PULL\nvar READ_MODE = 'r';\n/* eslint-enable no-unused-vars */\nvar NO_STATEMENT_ID = -1;\nvar RequestMessage = /** @class */ (function () {\n function RequestMessage(signature, fields, toString) {\n this.signature = signature;\n this.fields = fields;\n this.toString = toString;\n }\n /**\n * Create a new INIT message.\n * @param {string} clientName the client name.\n * @param {Object} authToken the authentication token.\n * @return {RequestMessage} new INIT message.\n */\n RequestMessage.init = function (clientName, authToken) {\n return new RequestMessage(INIT, [clientName, authToken], function () { return \"INIT \" + clientName + \" {...}\"; });\n };\n /**\n * Create a new RUN message.\n * @param {string} query the cypher query.\n * @param {Object} parameters the query parameters.\n * @return {RequestMessage} new RUN message.\n */\n RequestMessage.run = function (query, parameters) {\n return new RequestMessage(RUN, [query, parameters], function () { return \"RUN \" + query + \" \" + neo4j_driver_core_1.json.stringify(parameters); });\n };\n /**\n * Get a PULL_ALL message.\n * @return {RequestMessage} the PULL_ALL message.\n */\n RequestMessage.pullAll = function () {\n return PULL_ALL_MESSAGE;\n };\n /**\n * Get a RESET message.\n * @return {RequestMessage} the RESET message.\n */\n RequestMessage.reset = function () {\n return RESET_MESSAGE;\n };\n /**\n * Create a new HELLO message.\n * @param {string} userAgent the user agent.\n * @param {Object} authToken the authentication token.\n * @param {Object} optional server side routing, set to routing context to turn on server side routing (> 4.1)\n * @return {RequestMessage} new HELLO message.\n */\n RequestMessage.hello = function (userAgent, authToken, routing, patchs) {\n if (routing === void 0) { routing = null; }\n if (patchs === void 0) { patchs = null; }\n var metadata = Object.assign({ user_agent: userAgent }, authToken);\n if (routing) {\n metadata.routing = routing;\n }\n if (patchs) {\n metadata.patch_bolt = patchs;\n }\n return new RequestMessage(HELLO, [metadata], function () { return \"HELLO {user_agent: '\" + userAgent + \"', ...}\"; });\n };\n /**\n * Create a new BEGIN message.\n * @param {Bookmark} bookmark the bookmark.\n * @param {TxConfig} txConfig the configuration.\n * @param {string} database the database name.\n * @param {string} mode the access mode.\n * @param {string} impersonatedUser the impersonated user.\n * @return {RequestMessage} new BEGIN message.\n */\n RequestMessage.begin = function (_a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser;\n var metadata = buildTxMetadata(bookmark, txConfig, database, mode, impersonatedUser);\n return new RequestMessage(BEGIN, [metadata], function () { return \"BEGIN \" + neo4j_driver_core_1.json.stringify(metadata); });\n };\n /**\n * Get a COMMIT message.\n * @return {RequestMessage} the COMMIT message.\n */\n RequestMessage.commit = function () {\n return COMMIT_MESSAGE;\n };\n /**\n * Get a ROLLBACK message.\n * @return {RequestMessage} the ROLLBACK message.\n */\n RequestMessage.rollback = function () {\n return ROLLBACK_MESSAGE;\n };\n /**\n * Create a new RUN message with additional metadata.\n * @param {string} query the cypher query.\n * @param {Object} parameters the query parameters.\n * @param {Bookmark} bookmark the bookmark.\n * @param {TxConfig} txConfig the configuration.\n * @param {string} database the database name.\n * @param {string} mode the access mode.\n * @param {string} impersonatedUser the impersonated user.\n * @return {RequestMessage} new RUN message with additional metadata.\n */\n RequestMessage.runWithMetadata = function (query, parameters, _a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser;\n var metadata = buildTxMetadata(bookmark, txConfig, database, mode, impersonatedUser);\n return new RequestMessage(RUN, [query, parameters, metadata], function () {\n return \"RUN \" + query + \" \" + neo4j_driver_core_1.json.stringify(parameters) + \" \" + neo4j_driver_core_1.json.stringify(metadata);\n });\n };\n /**\n * Get a GOODBYE message.\n * @return {RequestMessage} the GOODBYE message.\n */\n RequestMessage.goodbye = function () {\n return GOODBYE_MESSAGE;\n };\n /**\n * Generates a new PULL message with additional metadata.\n * @param {Integer|number} stmtId\n * @param {Integer|number} n\n * @return {RequestMessage} the PULL message.\n */\n RequestMessage.pull = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.stmtId, stmtId = _c === void 0 ? NO_STATEMENT_ID : _c, _d = _b.n, n = _d === void 0 ? FETCH_ALL : _d;\n var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL);\n return new RequestMessage(PULL, [metadata], function () { return \"PULL \" + neo4j_driver_core_1.json.stringify(metadata); });\n };\n /**\n * Generates a new DISCARD message with additional metadata.\n * @param {Integer|number} stmtId\n * @param {Integer|number} n\n * @return {RequestMessage} the PULL message.\n */\n RequestMessage.discard = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.stmtId, stmtId = _c === void 0 ? NO_STATEMENT_ID : _c, _d = _b.n, n = _d === void 0 ? FETCH_ALL : _d;\n var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL);\n return new RequestMessage(DISCARD, [metadata], function () { return \"DISCARD \" + neo4j_driver_core_1.json.stringify(metadata); });\n };\n /**\n * Generate the ROUTE message, this message is used to fetch the routing table from the server\n *\n * @param {object} routingContext The routing context used to define the routing table. Multi-datacenter deployments is one of its use cases\n * @param {string[]} bookmarks The list of the bookmark should be used\n * @param {string} databaseName The name of the database to get the routing table for.\n * @return {RequestMessage} the ROUTE message.\n */\n RequestMessage.route = function (routingContext, bookmarks, databaseName) {\n if (routingContext === void 0) { routingContext = {}; }\n if (bookmarks === void 0) { bookmarks = []; }\n if (databaseName === void 0) { databaseName = null; }\n return new RequestMessage(ROUTE, [routingContext, bookmarks, databaseName], function () {\n return \"ROUTE \" + neo4j_driver_core_1.json.stringify(routingContext) + \" \" + neo4j_driver_core_1.json.stringify(bookmarks) + \" \" + databaseName;\n });\n };\n /**\n * Generate the ROUTE message, this message is used to fetch the routing table from the server\n *\n * @param {object} routingContext The routing context used to define the routing table. Multi-datacenter deployments is one of its use cases\n * @param {string[]} bookmarks The list of the bookmark should be used\n * @param {object} databaseContext The context inforamtion of the database to get the routing table for.\n * @param {string} databaseContext.databaseName The name of the database to get the routing table.\n * @param {string} databaseContext.impersonatedUser The name of the user to impersonation when getting the routing table.\n * @return {RequestMessage} the ROUTE message.\n */\n RequestMessage.routeV4x4 = function (routingContext, bookmarks, databaseContext) {\n if (routingContext === void 0) { routingContext = {}; }\n if (bookmarks === void 0) { bookmarks = []; }\n if (databaseContext === void 0) { databaseContext = {}; }\n var dbContext = {};\n if (databaseContext.databaseName) {\n dbContext.db = databaseContext.databaseName;\n }\n if (databaseContext.impersonatedUser) {\n dbContext.imp_user = databaseContext.impersonatedUser;\n }\n return new RequestMessage(ROUTE, [routingContext, bookmarks, dbContext], function () {\n return \"ROUTE \" + neo4j_driver_core_1.json.stringify(routingContext) + \" \" + neo4j_driver_core_1.json.stringify(bookmarks) + \" \" + neo4j_driver_core_1.json.stringify(dbContext);\n });\n };\n return RequestMessage;\n}());\nexports.default = RequestMessage;\n/**\n * Create an object that represent transaction metadata.\n * @param {Bookmark} bookmark the bookmark.\n * @param {TxConfig} txConfig the configuration.\n * @param {string} database the database name.\n * @param {string} mode the access mode.\n * @param {string} impersonatedUser the impersonated user mode.\n * @return {Object} a metadata object.\n */\nfunction buildTxMetadata(bookmark, txConfig, database, mode, impersonatedUser) {\n var metadata = {};\n if (!bookmark.isEmpty()) {\n metadata.bookmarks = bookmark.values();\n }\n if (txConfig.timeout) {\n metadata.tx_timeout = txConfig.timeout;\n }\n if (txConfig.metadata) {\n metadata.tx_metadata = txConfig.metadata;\n }\n if (database) {\n metadata.db = assertString(database, 'database');\n }\n if (impersonatedUser) {\n metadata.imp_user = assertString(impersonatedUser, 'impersonatedUser');\n }\n if (mode === ACCESS_MODE_READ) {\n metadata.mode = READ_MODE;\n }\n return metadata;\n}\n/**\n * Create an object that represents streaming metadata.\n * @param {Integer|number} stmtId The query id to stream its results.\n * @param {Integer|number} n The number of records to stream.\n * @returns {Object} a metadata object.\n */\nfunction buildStreamMetadata(stmtId, n) {\n var metadata = { n: (0, neo4j_driver_core_1.int)(n) };\n if (stmtId !== NO_STATEMENT_ID) {\n metadata.qid = (0, neo4j_driver_core_1.int)(stmtId);\n }\n return metadata;\n}\n// constants for messages that never change\nvar PULL_ALL_MESSAGE = new RequestMessage(PULL_ALL, [], function () { return 'PULL_ALL'; });\nvar RESET_MESSAGE = new RequestMessage(RESET, [], function () { return 'RESET'; });\nvar COMMIT_MESSAGE = new RequestMessage(COMMIT, [], function () { return 'COMMIT'; });\nvar ROLLBACK_MESSAGE = new RequestMessage(ROLLBACK, [], function () { return 'ROLLBACK'; });\nvar GOODBYE_MESSAGE = new RequestMessage(GOODBYE, [], function () { return 'GOODBYE'; });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\n// Signature bytes for each response message type\nvar SUCCESS = 0x70; // 0111 0000 // SUCCESS \nvar RECORD = 0x71; // 0111 0001 // RECORD \nvar IGNORED = 0x7e; // 0111 1110 // IGNORED \nvar FAILURE = 0x7f; // 0111 1111 // FAILURE \nfunction NO_OP() { }\nfunction NO_OP_IDENTITY(subject) {\n return subject;\n}\nvar NO_OP_OBSERVER = {\n onNext: NO_OP,\n onCompleted: NO_OP,\n onError: NO_OP\n};\n/**\n * Treat the protocol responses and notify the observers\n */\nvar ResponseHandler = /** @class */ (function () {\n /**\n * Called when something went wrong with the connectio\n * @callback ResponseHandler~Observer~OnErrorApplyTransformation\n * @param {any} error The error\n * @returns {any} The new error\n */\n /**\n * Called when something went wrong with the connectio\n * @callback ResponseHandler~Observer~OnError\n * @param {any} error The error\n */\n /**\n * Called when something went wrong with the connectio\n * @callback ResponseHandler~MetadataTransformer\n * @param {any} metadata The metadata got onSuccess\n * @returns {any} The transformed metadata\n */\n /**\n * @typedef {Object} ResponseHandler~Observer\n * @property {ResponseHandler~Observer~OnError} onError Invoke when a connection error occurs\n * @property {ResponseHandler~Observer~OnError} onFailure Invoke when a protocol failure occurs\n * @property {ResponseHandler~Observer~OnErrorApplyTransformation} onErrorApplyTransformation Invoke just after the failure occurs,\n * before notify to respective observer. This method should transform the failure reason to the approprited one.\n */\n /**\n * Constructor\n * @param {Object} param The params\n * @param {ResponseHandler~MetadataTransformer} transformMetadata Transform metadata when the SUCCESS is received.\n * @param {Channel} channel The channel used to exchange messages\n * @param {Logger} log The logger\n * @param {ResponseHandler~Observer} observer Object which will be notified about errors\n */\n function ResponseHandler(_a) {\n var _b = _a === void 0 ? {} : _a, transformMetadata = _b.transformMetadata, log = _b.log, observer = _b.observer;\n this._pendingObservers = [];\n this._log = log;\n this._transformMetadata = transformMetadata || NO_OP_IDENTITY;\n this._observer = Object.assign({\n onPendingObserversChange: NO_OP,\n onError: NO_OP,\n onFailure: NO_OP,\n onErrorApplyTransformation: NO_OP_IDENTITY\n }, observer);\n }\n Object.defineProperty(ResponseHandler.prototype, \"currentFailure\", {\n get: function () {\n return this._currentFailure;\n },\n enumerable: false,\n configurable: true\n });\n ResponseHandler.prototype.handleResponse = function (msg) {\n var payload = msg.fields[0];\n switch (msg.signature) {\n case RECORD:\n if (this._log.isDebugEnabled()) {\n this._log.debug(\"S: RECORD \" + neo4j_driver_core_1.json.stringify(msg));\n }\n this._currentObserver.onNext(payload);\n break;\n case SUCCESS:\n if (this._log.isDebugEnabled()) {\n this._log.debug(\"S: SUCCESS \" + neo4j_driver_core_1.json.stringify(msg));\n }\n try {\n var metadata = this._transformMetadata(payload);\n this._currentObserver.onCompleted(metadata);\n }\n finally {\n this._updateCurrentObserver();\n }\n break;\n case FAILURE:\n if (this._log.isDebugEnabled()) {\n this._log.debug(\"S: FAILURE \" + neo4j_driver_core_1.json.stringify(msg));\n }\n try {\n var error = (0, neo4j_driver_core_1.newError)(payload.message, payload.code);\n this._currentFailure = this._observer.onErrorApplyTransformation(error);\n this._currentObserver.onError(this._currentFailure);\n }\n finally {\n this._updateCurrentObserver();\n // Things are now broken. Pending observers will get FAILURE messages routed until we are done handling this failure.\n this._observer.onFailure(this._currentFailure);\n }\n break;\n case IGNORED:\n if (this._log.isDebugEnabled()) {\n this._log.debug(\"S: IGNORED \" + neo4j_driver_core_1.json.stringify(msg));\n }\n try {\n if (this._currentFailure && this._currentObserver.onError) {\n this._currentObserver.onError(this._currentFailure);\n }\n else if (this._currentObserver.onError) {\n this._currentObserver.onError((0, neo4j_driver_core_1.newError)('Ignored either because of an error or RESET'));\n }\n }\n finally {\n this._updateCurrentObserver();\n }\n break;\n default:\n this._observer.onError((0, neo4j_driver_core_1.newError)('Unknown Bolt protocol message: ' + msg));\n }\n };\n /*\n * Pop next pending observer form the list of observers and make it current observer.\n * @protected\n */\n ResponseHandler.prototype._updateCurrentObserver = function () {\n this._currentObserver = this._pendingObservers.shift();\n this._observer.onPendingObserversChange(this._pendingObservers.length);\n };\n ResponseHandler.prototype._queueObserver = function (observer) {\n observer = observer || NO_OP_OBSERVER;\n observer.onCompleted = observer.onCompleted || NO_OP;\n observer.onError = observer.onError || NO_OP;\n observer.onNext = observer.onNext || NO_OP;\n if (this._currentObserver === undefined) {\n this._currentObserver = observer;\n }\n else {\n this._pendingObservers.push(observer);\n }\n this._observer.onPendingObserversChange(this._pendingObservers.length);\n return true;\n };\n ResponseHandler.prototype._notifyErrorToObservers = function (error) {\n if (this._currentObserver && this._currentObserver.onError) {\n this._currentObserver.onError(error);\n }\n while (this._pendingObservers.length > 0) {\n var observer = this._pendingObservers.shift();\n if (observer && observer.onError) {\n observer.onError(error);\n }\n }\n };\n ResponseHandler.prototype.hasOngoingObservableRequests = function () {\n return this._currentObserver != null || this._pendingObservers.length > 0;\n };\n ResponseHandler.prototype._resetFailure = function () {\n this._currentFailure = null;\n };\n return ResponseHandler;\n}());\nexports.default = ResponseHandler;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Represente the raw version of the routing table\n */\nvar RawRoutingTable = /** @class */ (function () {\n function RawRoutingTable() {\n }\n /**\n * Constructs the raw routing table for Record based result\n * @param {Record} record The record which will be used get the raw routing table\n * @returns {RawRoutingTable} The raw routing table\n */\n RawRoutingTable.ofRecord = function (record) {\n if (record === null) {\n return RawRoutingTable.ofNull();\n }\n return new RecordRawRoutingTable(record);\n };\n /**\n * Constructs the raw routing table for Success result for a Routing Message\n * @param {object} response The result\n * @returns {RawRoutingTable} The raw routing table\n */\n RawRoutingTable.ofMessageResponse = function (response) {\n if (response === null) {\n return RawRoutingTable.ofNull();\n }\n return new ResponseRawRoutingTable(response);\n };\n /**\n * Construct the raw routing table of a null response\n *\n * @returns {RawRoutingTable} the raw routing table\n */\n RawRoutingTable.ofNull = function () {\n return new NullRawRoutingTable();\n };\n Object.defineProperty(RawRoutingTable.prototype, \"ttl\", {\n /**\n * Get raw ttl\n *\n * @returns {number|string} ttl Time to live\n */\n get: function () {\n throw new Error('Not implemented');\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(RawRoutingTable.prototype, \"db\", {\n /**\n * Get raw db\n *\n * @returns {string?} The database name\n */\n get: function () {\n throw new Error('Not implemented');\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(RawRoutingTable.prototype, \"servers\", {\n /**\n *\n * @typedef {Object} ServerRole\n * @property {string} role the role of the address on the cluster\n * @property {string[]} addresses the address within the role\n *\n * @return {ServerRole[]} list of servers addresses\n */\n get: function () {\n throw new Error('Not implemented');\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(RawRoutingTable.prototype, \"isNull\", {\n /**\n * Indicates the result is null\n *\n * @returns {boolean} Is null\n */\n get: function () {\n throw new Error('Not implemented');\n },\n enumerable: false,\n configurable: true\n });\n return RawRoutingTable;\n}());\nexports.default = RawRoutingTable;\n/**\n * Get the raw routing table information from route message response\n */\nvar ResponseRawRoutingTable = /** @class */ (function (_super) {\n __extends(ResponseRawRoutingTable, _super);\n function ResponseRawRoutingTable(response) {\n var _this = _super.call(this) || this;\n _this._response = response;\n return _this;\n }\n Object.defineProperty(ResponseRawRoutingTable.prototype, \"ttl\", {\n get: function () {\n return this._response.rt.ttl;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(ResponseRawRoutingTable.prototype, \"servers\", {\n get: function () {\n return this._response.rt.servers;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(ResponseRawRoutingTable.prototype, \"db\", {\n get: function () {\n return this._response.rt.db;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(ResponseRawRoutingTable.prototype, \"isNull\", {\n get: function () {\n return this._response === null;\n },\n enumerable: false,\n configurable: true\n });\n return ResponseRawRoutingTable;\n}(RawRoutingTable));\n/**\n * Null routing table\n */\nvar NullRawRoutingTable = /** @class */ (function (_super) {\n __extends(NullRawRoutingTable, _super);\n function NullRawRoutingTable() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Object.defineProperty(NullRawRoutingTable.prototype, \"isNull\", {\n get: function () {\n return true;\n },\n enumerable: false,\n configurable: true\n });\n return NullRawRoutingTable;\n}(RawRoutingTable));\n/**\n * Get the raw routing table information from the record\n */\nvar RecordRawRoutingTable = /** @class */ (function (_super) {\n __extends(RecordRawRoutingTable, _super);\n function RecordRawRoutingTable(record) {\n var _this = _super.call(this) || this;\n _this._record = record;\n return _this;\n }\n Object.defineProperty(RecordRawRoutingTable.prototype, \"ttl\", {\n get: function () {\n return this._record.get('ttl');\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(RecordRawRoutingTable.prototype, \"servers\", {\n get: function () {\n return this._record.get('servers');\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(RecordRawRoutingTable.prototype, \"db\", {\n get: function () {\n return this._record.has('db') ? this._record.get('db') : null;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(RecordRawRoutingTable.prototype, \"isNull\", {\n get: function () {\n return this._record === null;\n },\n enumerable: false,\n configurable: true\n });\n return RecordRawRoutingTable;\n}(RawRoutingTable));\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ProcedureRouteObserver = exports.RouteObserver = exports.CompletedObserver = exports.FailedObserver = exports.ResetObserver = exports.LoginObserver = exports.ResultStreamObserver = exports.StreamObserver = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar routing_table_raw_1 = __importDefault(require(\"./routing-table-raw\"));\nvar FETCH_ALL = neo4j_driver_core_1.internal.constants.FETCH_ALL;\nvar PROTOCOL_ERROR = neo4j_driver_core_1.error.PROTOCOL_ERROR;\nvar StreamObserver = /** @class */ (function () {\n function StreamObserver() {\n }\n StreamObserver.prototype.onNext = function (rawRecord) { };\n StreamObserver.prototype.onError = function (error) { };\n StreamObserver.prototype.onCompleted = function (meta) { };\n return StreamObserver;\n}());\nexports.StreamObserver = StreamObserver;\n/**\n * Handles a RUN/PULL_ALL, or RUN/DISCARD_ALL requests, maps the responses\n * in a way that a user-provided observer can see these as a clean Stream\n * of records.\n * This class will queue up incoming messages until a user-provided observer\n * for the incoming stream is registered. Thus, we keep fields around\n * for tracking head/records/tail. These are only used if there is no\n * observer registered.\n * @access private\n */\nvar ResultStreamObserver = /** @class */ (function (_super) {\n __extends(ResultStreamObserver, _super);\n /**\n *\n * @param {Object} param\n * @param {Object} param.server\n * @param {boolean} param.reactive\n * @param {function(stmtId: number|Integer, n: number|Integer, observer: StreamObserver)} param.moreFunction -\n * @param {function(stmtId: number|Integer, observer: StreamObserver)} param.discardFunction -\n * @param {number|Integer} param.fetchSize -\n * @param {function(err: Error): Promise|void} param.beforeError -\n * @param {function(err: Error): Promise|void} param.afterError -\n * @param {function(keys: string[]): Promise|void} param.beforeKeys -\n * @param {function(keys: string[]): Promise|void} param.afterKeys -\n * @param {function(metadata: Object): Promise|void} param.beforeComplete -\n * @param {function(metadata: Object): Promise|void} param.afterComplete -\n */\n function ResultStreamObserver(_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.reactive, reactive = _c === void 0 ? false : _c, moreFunction = _b.moreFunction, discardFunction = _b.discardFunction, _d = _b.fetchSize, fetchSize = _d === void 0 ? FETCH_ALL : _d, beforeError = _b.beforeError, afterError = _b.afterError, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, server = _b.server;\n var _this = _super.call(this) || this;\n _this._fieldKeys = null;\n _this._fieldLookup = null;\n _this._head = null;\n _this._queuedRecords = [];\n _this._tail = null;\n _this._error = null;\n _this._observers = [];\n _this._meta = {};\n _this._server = server;\n _this._beforeError = beforeError;\n _this._afterError = afterError;\n _this._beforeKeys = beforeKeys;\n _this._afterKeys = afterKeys;\n _this._beforeComplete = beforeComplete;\n _this._afterComplete = afterComplete;\n _this._queryId = null;\n _this._moreFunction = moreFunction;\n _this._discardFunction = discardFunction;\n _this._discard = false;\n _this._fetchSize = fetchSize;\n _this._setState(reactive ? _states.READY : _states.READY_STREAMING);\n _this._setupAuoPull(fetchSize);\n return _this;\n }\n /**\n * Will be called on every record that comes in and transform a raw record\n * to a Object. If user-provided observer is present, pass transformed record\n * to it's onNext method, otherwise, push to record que.\n * @param {Array} rawRecord - An array with the raw record\n */\n ResultStreamObserver.prototype.onNext = function (rawRecord) {\n var record = new neo4j_driver_core_1.Record(this._fieldKeys, rawRecord, this._fieldLookup);\n if (this._observers.some(function (o) { return o.onNext; })) {\n this._observers.forEach(function (o) {\n if (o.onNext) {\n o.onNext(record);\n }\n });\n }\n else {\n this._queuedRecords.push(record);\n if (this._queuedRecords.length > this._highRecordWatermark) {\n this._autoPull = false;\n }\n }\n };\n ResultStreamObserver.prototype.onCompleted = function (meta) {\n this._state.onSuccess(this, meta);\n };\n /**\n * Will be called on errors.\n * If user-provided observer is present, pass the error\n * to it's onError method, otherwise set instance variable _error.\n * @param {Object} error - An error object\n */\n ResultStreamObserver.prototype.onError = function (error) {\n this._state.onError(this, error);\n };\n /**\n * Cancel pending record stream\n */\n ResultStreamObserver.prototype.cancel = function () {\n this._discard = true;\n };\n /**\n * Stream observer defaults to handling responses for two messages: RUN + PULL_ALL or RUN + DISCARD_ALL.\n * Response for RUN initializes query keys. Response for PULL_ALL / DISCARD_ALL exposes the result stream.\n *\n * However, some operations can be represented as a single message which receives full metadata in a single response.\n * For example, operations to begin, commit and rollback an explicit transaction use two messages in Bolt V1 but a single message in Bolt V3.\n * Messages are `RUN \"BEGIN\" {}` + `PULL_ALL` in Bolt V1 and `BEGIN` in Bolt V3.\n *\n * This function prepares the observer to only handle a single response message.\n */\n ResultStreamObserver.prototype.prepareToHandleSingleResponse = function () {\n this._head = [];\n this._fieldKeys = [];\n this._setState(_states.STREAMING);\n };\n /**\n * Mark this observer as if it has completed with no metadata.\n */\n ResultStreamObserver.prototype.markCompleted = function () {\n this._head = [];\n this._fieldKeys = [];\n this._tail = {};\n this._setState(_states.SUCCEEDED);\n };\n /**\n * Subscribe to events with provided observer.\n * @param {Object} observer - Observer object\n * @param {function(keys: String[])} observer.onKeys - Handle stream header, field keys.\n * @param {function(record: Object)} observer.onNext - Handle records, one by one.\n * @param {function(metadata: Object)} observer.onCompleted - Handle stream tail, the metadata.\n * @param {function(error: Object)} observer.onError - Handle errors, should always be provided.\n */\n ResultStreamObserver.prototype.subscribe = function (observer) {\n if (this._error) {\n observer.onError(this._error);\n return;\n }\n if (this._head && observer.onKeys) {\n observer.onKeys(this._head);\n }\n if (this._queuedRecords.length > 0 && observer.onNext) {\n for (var i = 0; i < this._queuedRecords.length; i++) {\n observer.onNext(this._queuedRecords[i]);\n if (this._queuedRecords.length - i - 1 <= this._lowRecordWatermark) {\n this._autoPull = true;\n if (this._state === _states.READY) {\n this._handleStreaming();\n }\n }\n }\n }\n if (this._tail && observer.onCompleted) {\n observer.onCompleted(this._tail);\n }\n this._observers.push(observer);\n if (this._state === _states.READY) {\n this._handleStreaming();\n }\n };\n ResultStreamObserver.prototype._handleHasMore = function (meta) {\n // We've consumed current batch and server notified us that there're more\n // records to stream. Let's invoke more or discard function based on whether\n // the user wants to discard streaming or not\n this._setState(_states.READY); // we've done streaming\n this._handleStreaming();\n delete meta.has_more;\n };\n ResultStreamObserver.prototype._handlePullSuccess = function (meta) {\n var _this = this;\n this._setState(_states.SUCCEEDED);\n var completionMetadata = Object.assign(this._server ? { server: this._server } : {}, this._meta, meta);\n var beforeHandlerResult = null;\n if (this._beforeComplete) {\n beforeHandlerResult = this._beforeComplete(completionMetadata);\n }\n var continuation = function () {\n // End of stream\n _this._tail = completionMetadata;\n if (_this._observers.some(function (o) { return o.onCompleted; })) {\n _this._observers.forEach(function (o) {\n if (o.onCompleted) {\n o.onCompleted(completionMetadata);\n }\n });\n }\n if (_this._afterComplete) {\n _this._afterComplete(completionMetadata);\n }\n };\n if (beforeHandlerResult) {\n Promise.resolve(beforeHandlerResult).then(function () { return continuation(); });\n }\n else {\n continuation();\n }\n };\n ResultStreamObserver.prototype._handleRunSuccess = function (meta, afterSuccess) {\n var _this = this;\n if (this._fieldKeys === null) {\n // Stream header, build a name->index field lookup table\n // to be used by records. This is an optimization to make it\n // faster to look up fields in a record by name, rather than by index.\n // Since the records we get back via Bolt are just arrays of values.\n this._fieldKeys = [];\n this._fieldLookup = {};\n if (meta.fields && meta.fields.length > 0) {\n this._fieldKeys = meta.fields;\n for (var i = 0; i < meta.fields.length; i++) {\n this._fieldLookup[meta.fields[i]] = i;\n }\n // remove fields key from metadata object\n delete meta.fields;\n }\n // Extract server generated query id for use in requestMore and discard\n // functions\n if (meta.qid !== null && meta.qid !== undefined) {\n this._queryId = meta.qid;\n // remove qid from metadata object\n delete meta.qid;\n }\n this._storeMetadataForCompletion(meta);\n var beforeHandlerResult = null;\n if (this._beforeKeys) {\n beforeHandlerResult = this._beforeKeys(this._fieldKeys);\n }\n var continuation_1 = function () {\n _this._head = _this._fieldKeys;\n if (_this._observers.some(function (o) { return o.onKeys; })) {\n _this._observers.forEach(function (o) {\n if (o.onKeys) {\n o.onKeys(_this._fieldKeys);\n }\n });\n }\n if (_this._afterKeys) {\n _this._afterKeys(_this._fieldKeys);\n }\n afterSuccess();\n };\n if (beforeHandlerResult) {\n Promise.resolve(beforeHandlerResult).then(function () { return continuation_1(); });\n }\n else {\n continuation_1();\n }\n }\n };\n ResultStreamObserver.prototype._handleError = function (error) {\n var _this = this;\n this._setState(_states.FAILED);\n this._error = error;\n var beforeHandlerResult = null;\n if (this._beforeError) {\n beforeHandlerResult = this._beforeError(error);\n }\n var continuation = function () {\n if (_this._observers.some(function (o) { return o.onError; })) {\n _this._observers.forEach(function (o) {\n if (o.onError) {\n o.onError(error);\n }\n });\n }\n if (_this._afterError) {\n _this._afterError(error);\n }\n };\n if (beforeHandlerResult) {\n Promise.resolve(beforeHandlerResult).then(function () { return continuation(); });\n }\n else {\n continuation();\n }\n };\n ResultStreamObserver.prototype._handleStreaming = function () {\n if (this._head && this._observers.some(function (o) { return o.onNext || o.onCompleted; })) {\n if (this._discard) {\n this._discardFunction(this._queryId, this);\n this._setState(_states.STREAMING);\n }\n else if (this._autoPull) {\n this._moreFunction(this._queryId, this._fetchSize, this);\n this._setState(_states.STREAMING);\n }\n }\n };\n ResultStreamObserver.prototype._storeMetadataForCompletion = function (meta) {\n var keys = Object.keys(meta);\n var index = keys.length;\n var key = '';\n while (index--) {\n key = keys[index];\n this._meta[key] = meta[key];\n }\n };\n ResultStreamObserver.prototype._setState = function (state) {\n this._state = state;\n };\n ResultStreamObserver.prototype._setupAuoPull = function (fetchSize) {\n this._autoPull = true;\n if (fetchSize === FETCH_ALL) {\n this._lowRecordWatermark = Number.MAX_VALUE; // we shall always lower than this number to enable auto pull\n this._highRecordWatermark = Number.MAX_VALUE; // we shall never reach this number to disable auto pull\n }\n else {\n this._lowRecordWatermark = 0.3 * fetchSize;\n this._highRecordWatermark = 0.7 * fetchSize;\n }\n };\n return ResultStreamObserver;\n}(StreamObserver));\nexports.ResultStreamObserver = ResultStreamObserver;\nvar LoginObserver = /** @class */ (function (_super) {\n __extends(LoginObserver, _super);\n /**\n *\n * @param {Object} param -\n * @param {function(err: Error)} param.onError\n * @param {function(metadata)} param.onCompleted\n */\n function LoginObserver(_a) {\n var _b = _a === void 0 ? {} : _a, onError = _b.onError, onCompleted = _b.onCompleted;\n var _this = _super.call(this) || this;\n _this._onError = onError;\n _this._onCompleted = onCompleted;\n return _this;\n }\n LoginObserver.prototype.onNext = function (record) {\n this.onError((0, neo4j_driver_core_1.newError)('Received RECORD when initializing ' + neo4j_driver_core_1.json.stringify(record)));\n };\n LoginObserver.prototype.onError = function (error) {\n if (this._onError) {\n this._onError(error);\n }\n };\n LoginObserver.prototype.onCompleted = function (metadata) {\n if (this._onCompleted) {\n this._onCompleted(metadata);\n }\n };\n return LoginObserver;\n}(StreamObserver));\nexports.LoginObserver = LoginObserver;\nvar ResetObserver = /** @class */ (function (_super) {\n __extends(ResetObserver, _super);\n /**\n *\n * @param {Object} param -\n * @param {function(err: String)} param.onProtocolError\n * @param {function(err: Error)} param.onError\n * @param {function(metadata)} param.onComplete\n */\n function ResetObserver(_a) {\n var _b = _a === void 0 ? {} : _a, onProtocolError = _b.onProtocolError, onError = _b.onError, onComplete = _b.onComplete;\n var _this = _super.call(this) || this;\n _this._onProtocolError = onProtocolError;\n _this._onError = onError;\n _this._onComplete = onComplete;\n return _this;\n }\n ResetObserver.prototype.onNext = function (record) {\n this.onError((0, neo4j_driver_core_1.newError)('Received RECORD when resetting: received record is: ' +\n neo4j_driver_core_1.json.stringify(record), PROTOCOL_ERROR));\n };\n ResetObserver.prototype.onError = function (error) {\n if (error.code === PROTOCOL_ERROR && this._onProtocolError) {\n this._onProtocolError(error.message);\n }\n if (this._onError) {\n this._onError(error);\n }\n };\n ResetObserver.prototype.onCompleted = function (metadata) {\n if (this._onComplete) {\n this._onComplete(metadata);\n }\n };\n return ResetObserver;\n}(StreamObserver));\nexports.ResetObserver = ResetObserver;\nvar FailedObserver = /** @class */ (function (_super) {\n __extends(FailedObserver, _super);\n function FailedObserver(_a) {\n var error = _a.error, onError = _a.onError;\n var _this = _super.call(this, { beforeError: onError }) || this;\n _this.onError(error);\n return _this;\n }\n return FailedObserver;\n}(ResultStreamObserver));\nexports.FailedObserver = FailedObserver;\nvar CompletedObserver = /** @class */ (function (_super) {\n __extends(CompletedObserver, _super);\n function CompletedObserver() {\n var _this = _super.call(this) || this;\n _super.prototype.markCompleted.call(_this);\n return _this;\n }\n return CompletedObserver;\n}(ResultStreamObserver));\nexports.CompletedObserver = CompletedObserver;\nvar ProcedureRouteObserver = /** @class */ (function (_super) {\n __extends(ProcedureRouteObserver, _super);\n function ProcedureRouteObserver(_a) {\n var resultObserver = _a.resultObserver, onProtocolError = _a.onProtocolError, onError = _a.onError, onCompleted = _a.onCompleted;\n var _this = _super.call(this) || this;\n _this._resultObserver = resultObserver;\n _this._onError = onError;\n _this._onCompleted = onCompleted;\n _this._records = [];\n _this._onProtocolError = onProtocolError;\n resultObserver.subscribe(_this);\n return _this;\n }\n ProcedureRouteObserver.prototype.onNext = function (record) {\n this._records.push(record);\n };\n ProcedureRouteObserver.prototype.onError = function (error) {\n if (error.code === PROTOCOL_ERROR && this._onProtocolError) {\n this._onProtocolError(error.message);\n }\n if (this._onError) {\n this._onError(error);\n }\n };\n ProcedureRouteObserver.prototype.onCompleted = function () {\n if (this._records !== null && this._records.length !== 1) {\n this.onError((0, neo4j_driver_core_1.newError)('Illegal response from router. Received ' +\n this._records.length +\n ' records but expected only one.\\n' +\n neo4j_driver_core_1.json.stringify(this._records), PROTOCOL_ERROR));\n return;\n }\n if (this._onCompleted) {\n this._onCompleted(routing_table_raw_1.default.ofRecord(this._records[0]));\n }\n };\n return ProcedureRouteObserver;\n}(StreamObserver));\nexports.ProcedureRouteObserver = ProcedureRouteObserver;\nvar RouteObserver = /** @class */ (function (_super) {\n __extends(RouteObserver, _super);\n /**\n *\n * @param {Object} param -\n * @param {function(err: String)} param.onProtocolError\n * @param {function(err: Error)} param.onError\n * @param {function(RawRoutingTable)} param.onCompleted\n */\n function RouteObserver(_a) {\n var _b = _a === void 0 ? {} : _a, onProtocolError = _b.onProtocolError, onError = _b.onError, onCompleted = _b.onCompleted;\n var _this = _super.call(this) || this;\n _this._onProtocolError = onProtocolError;\n _this._onError = onError;\n _this._onCompleted = onCompleted;\n return _this;\n }\n RouteObserver.prototype.onNext = function (record) {\n this.onError((0, neo4j_driver_core_1.newError)('Received RECORD when resetting: received record is: ' +\n neo4j_driver_core_1.json.stringify(record), PROTOCOL_ERROR));\n };\n RouteObserver.prototype.onError = function (error) {\n if (error.code === PROTOCOL_ERROR && this._onProtocolError) {\n this._onProtocolError(error.message);\n }\n if (this._onError) {\n this._onError(error);\n }\n };\n RouteObserver.prototype.onCompleted = function (metadata) {\n if (this._onCompleted) {\n this._onCompleted(routing_table_raw_1.default.ofMessageResponse(metadata));\n }\n };\n return RouteObserver;\n}(StreamObserver));\nexports.RouteObserver = RouteObserver;\nvar _states = {\n READY_STREAMING: {\n // async start state\n onSuccess: function (streamObserver, meta) {\n streamObserver._handleRunSuccess(meta, function () {\n streamObserver._setState(_states.STREAMING);\n } // after run succeeded, async directly move to streaming\n // state\n );\n },\n onError: function (streamObserver, error) {\n streamObserver._handleError(error);\n },\n name: function () {\n return 'READY_STREAMING';\n }\n },\n READY: {\n // reactive start state\n onSuccess: function (streamObserver, meta) {\n streamObserver._handleRunSuccess(meta, function () { return streamObserver._handleStreaming(); } // after run succeeded received, reactive shall start pulling\n );\n },\n onError: function (streamObserver, error) {\n streamObserver._handleError(error);\n },\n name: function () {\n return 'READY';\n }\n },\n STREAMING: {\n onSuccess: function (streamObserver, meta) {\n if (meta.has_more) {\n streamObserver._handleHasMore(meta);\n }\n else {\n streamObserver._handlePullSuccess(meta);\n }\n },\n onError: function (streamObserver, error) {\n streamObserver._handleError(error);\n },\n name: function () {\n return 'STREAMING';\n }\n },\n FAILED: {\n onError: function (error) {\n // more errors are ignored\n },\n name: function () {\n return 'FAILED';\n }\n },\n SUCCEEDED: {\n name: function () {\n return 'SUCCEEDED';\n }\n }\n};\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Common base with default implementation for most buffer methods.\n * Buffers are stateful - they track a current \"position\", this helps greatly\n * when reading and writing from them incrementally. You can also ignore the\n * stateful read/write methods.\n * readXXX and writeXXX-methods move the inner position of the buffer.\n * putXXX and getXXX-methods do not.\n * @access private\n */\nvar BaseBuffer = /** @class */ (function () {\n /**\n * Create a instance with the injected size.\n * @constructor\n * @param {Integer} size\n */\n function BaseBuffer(size) {\n this.position = 0;\n this.length = size;\n }\n BaseBuffer.prototype.getUInt8 = function (position) {\n throw new Error('Not implemented');\n };\n BaseBuffer.prototype.getInt8 = function (position) {\n throw new Error('Not implemented');\n };\n BaseBuffer.prototype.getFloat64 = function (position) {\n throw new Error('Not implemented');\n };\n BaseBuffer.prototype.putUInt8 = function (position, val) {\n throw new Error('Not implemented');\n };\n BaseBuffer.prototype.putInt8 = function (position, val) {\n throw new Error('Not implemented');\n };\n BaseBuffer.prototype.putFloat64 = function (position, val) {\n throw new Error('Not implemented');\n };\n /**\n * @param p\n */\n BaseBuffer.prototype.getInt16 = function (p) {\n return (this.getInt8(p) << 8) | this.getUInt8(p + 1);\n };\n /**\n * @param p\n */\n BaseBuffer.prototype.getUInt16 = function (p) {\n return (this.getUInt8(p) << 8) | this.getUInt8(p + 1);\n };\n /**\n * @param p\n */\n BaseBuffer.prototype.getInt32 = function (p) {\n return ((this.getInt8(p) << 24) |\n (this.getUInt8(p + 1) << 16) |\n (this.getUInt8(p + 2) << 8) |\n this.getUInt8(p + 3));\n };\n /**\n * @param p\n */\n BaseBuffer.prototype.getUInt32 = function (p) {\n return ((this.getUInt8(p) << 24) |\n (this.getUInt8(p + 1) << 16) |\n (this.getUInt8(p + 2) << 8) |\n this.getUInt8(p + 3));\n };\n /**\n * @param p\n */\n BaseBuffer.prototype.getInt64 = function (p) {\n return ((this.getInt8(p) << 56) |\n (this.getUInt8(p + 1) << 48) |\n (this.getUInt8(p + 2) << 40) |\n (this.getUInt8(p + 3) << 32) |\n (this.getUInt8(p + 4) << 24) |\n (this.getUInt8(p + 5) << 16) |\n (this.getUInt8(p + 6) << 8) |\n this.getUInt8(p + 7));\n };\n /**\n * Get a slice of this buffer. This method does not copy any data,\n * but simply provides a slice view of this buffer\n * @param start\n * @param length\n */\n BaseBuffer.prototype.getSlice = function (start, length) {\n return new SliceBuffer(start, length, this);\n };\n /**\n * @param p\n * @param val\n */\n BaseBuffer.prototype.putInt16 = function (p, val) {\n this.putInt8(p, val >> 8);\n this.putUInt8(p + 1, val & 0xff);\n };\n /**\n * @param p\n * @param val\n */\n BaseBuffer.prototype.putUInt16 = function (p, val) {\n this.putUInt8(p, (val >> 8) & 0xff);\n this.putUInt8(p + 1, val & 0xff);\n };\n /**\n * @param p\n * @param val\n */\n BaseBuffer.prototype.putInt32 = function (p, val) {\n this.putInt8(p, val >> 24);\n this.putUInt8(p + 1, (val >> 16) & 0xff);\n this.putUInt8(p + 2, (val >> 8) & 0xff);\n this.putUInt8(p + 3, val & 0xff);\n };\n /**\n * @param p\n * @param val\n */\n BaseBuffer.prototype.putUInt32 = function (p, val) {\n this.putUInt8(p, (val >> 24) & 0xff);\n this.putUInt8(p + 1, (val >> 16) & 0xff);\n this.putUInt8(p + 2, (val >> 8) & 0xff);\n this.putUInt8(p + 3, val & 0xff);\n };\n /**\n * @param p\n * @param val\n */\n BaseBuffer.prototype.putInt64 = function (p, val) {\n this.putInt8(p, val >> 48);\n this.putUInt8(p + 1, (val >> 42) & 0xff);\n this.putUInt8(p + 2, (val >> 36) & 0xff);\n this.putUInt8(p + 3, (val >> 30) & 0xff);\n this.putUInt8(p + 4, (val >> 24) & 0xff);\n this.putUInt8(p + 5, (val >> 16) & 0xff);\n this.putUInt8(p + 6, (val >> 8) & 0xff);\n this.putUInt8(p + 7, val & 0xff);\n };\n /**\n * @param position\n * @param other\n */\n BaseBuffer.prototype.putBytes = function (position, other) {\n for (var i = 0, end = other.remaining(); i < end; i++) {\n this.putUInt8(position + i, other.readUInt8());\n }\n };\n /**\n * Read from state position.\n */\n BaseBuffer.prototype.readUInt8 = function () {\n return this.getUInt8(this._updatePos(1));\n };\n /**\n * Read from state position.\n */\n BaseBuffer.prototype.readInt8 = function () {\n return this.getInt8(this._updatePos(1));\n };\n /**\n * Read from state position.\n */\n BaseBuffer.prototype.readUInt16 = function () {\n return this.getUInt16(this._updatePos(2));\n };\n /**\n * Read from state position.\n */\n BaseBuffer.prototype.readUInt32 = function () {\n return this.getUInt32(this._updatePos(4));\n };\n /**\n * Read from state position.\n */\n BaseBuffer.prototype.readInt16 = function () {\n return this.getInt16(this._updatePos(2));\n };\n /**\n * Read from state position.\n */\n BaseBuffer.prototype.readInt32 = function () {\n return this.getInt32(this._updatePos(4));\n };\n /**\n * Read from state position.\n */\n BaseBuffer.prototype.readInt64 = function () {\n return this.getInt32(this._updatePos(8));\n };\n /**\n * Read from state position.\n */\n BaseBuffer.prototype.readFloat64 = function () {\n return this.getFloat64(this._updatePos(8));\n };\n /**\n * Write to state position.\n * @param val\n */\n BaseBuffer.prototype.writeUInt8 = function (val) {\n this.putUInt8(this._updatePos(1), val);\n };\n /**\n * Write to state position.\n * @param val\n */\n BaseBuffer.prototype.writeInt8 = function (val) {\n this.putInt8(this._updatePos(1), val);\n };\n /**\n * Write to state position.\n * @param val\n */\n BaseBuffer.prototype.writeInt16 = function (val) {\n this.putInt16(this._updatePos(2), val);\n };\n /**\n * Write to state position.\n * @param val\n */\n BaseBuffer.prototype.writeInt32 = function (val) {\n this.putInt32(this._updatePos(4), val);\n };\n /**\n * Write to state position.\n * @param val\n */\n BaseBuffer.prototype.writeUInt32 = function (val) {\n this.putUInt32(this._updatePos(4), val);\n };\n /**\n * Write to state position.\n * @param val\n */\n BaseBuffer.prototype.writeInt64 = function (val) {\n this.putInt64(this._updatePos(8), val);\n };\n /**\n * Write to state position.\n * @param val\n */\n BaseBuffer.prototype.writeFloat64 = function (val) {\n this.putFloat64(this._updatePos(8), val);\n };\n /**\n * Write to state position.\n * @param val\n */\n BaseBuffer.prototype.writeBytes = function (val) {\n this.putBytes(this._updatePos(val.remaining()), val);\n };\n /**\n * Get a slice of this buffer. This method does not copy any data,\n * but simply provides a slice view of this buffer\n * @param length\n */\n BaseBuffer.prototype.readSlice = function (length) {\n return this.getSlice(this._updatePos(length), length);\n };\n BaseBuffer.prototype._updatePos = function (length) {\n var p = this.position;\n this.position += length;\n return p;\n };\n /**\n * Get remaining\n */\n BaseBuffer.prototype.remaining = function () {\n return this.length - this.position;\n };\n /**\n * Has remaining\n */\n BaseBuffer.prototype.hasRemaining = function () {\n return this.remaining() > 0;\n };\n /**\n * Reset position state\n */\n BaseBuffer.prototype.reset = function () {\n this.position = 0;\n };\n /**\n * Get string representation of buffer and it's state.\n * @return {string} Buffer as a string\n */\n BaseBuffer.prototype.toString = function () {\n return (this.constructor.name +\n '( position=' +\n this.position +\n ' )\\n ' +\n this.toHex());\n };\n /**\n * Get string representation of buffer.\n * @return {string} Buffer as a string\n */\n BaseBuffer.prototype.toHex = function () {\n var out = '';\n for (var i = 0; i < this.length; i++) {\n var hexByte = this.getUInt8(i).toString(16);\n if (hexByte.length === 1) {\n hexByte = '0' + hexByte;\n }\n out += hexByte;\n if (i !== this.length - 1) {\n out += ' ';\n }\n }\n return out;\n };\n return BaseBuffer;\n}());\nexports.default = BaseBuffer;\n/**\n * Represents a view as slice of another buffer.\n * @access private\n */\nvar SliceBuffer = /** @class */ (function (_super) {\n __extends(SliceBuffer, _super);\n function SliceBuffer(start, length, inner) {\n var _this = _super.call(this, length) || this;\n _this._start = start;\n _this._inner = inner;\n return _this;\n }\n SliceBuffer.prototype.putUInt8 = function (position, val) {\n this._inner.putUInt8(this._start + position, val);\n };\n SliceBuffer.prototype.getUInt8 = function (position) {\n return this._inner.getUInt8(this._start + position);\n };\n SliceBuffer.prototype.putInt8 = function (position, val) {\n this._inner.putInt8(this._start + position, val);\n };\n SliceBuffer.prototype.putFloat64 = function (position, val) {\n this._inner.putFloat64(this._start + position, val);\n };\n SliceBuffer.prototype.getInt8 = function (position) {\n return this._inner.getInt8(this._start + position);\n };\n SliceBuffer.prototype.getFloat64 = function (position) {\n return this._inner.getFloat64(this._start + position);\n };\n return SliceBuffer;\n}(BaseBuffer));\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BaseBuffer = void 0;\nvar base_buf_1 = __importDefault(require(\"./base-buf\"));\nexports.BaseBuffer = base_buf_1.default;\nexports.default = base_buf_1.default;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_buf_1 = __importDefault(require(\"../channel-buf\"));\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar _a = neo4j_driver_core_1.internal.util, ENCRYPTION_OFF = _a.ENCRYPTION_OFF, ENCRYPTION_ON = _a.ENCRYPTION_ON;\n// Just to be sure that these values are with us even after WebSocket is injected\n// for tests.\nvar WS_CONNECTING = 0;\nvar WS_OPEN = 1;\nvar WS_CLOSING = 2;\nvar WS_CLOSED = 3;\n/**\n * Create a new WebSocketChannel to be used in web browsers.\n * @access private\n */\nvar WebSocketChannel = /** @class */ (function () {\n /**\n * Create new instance\n * @param {ChannelConfig} config - configuration for this channel.\n * @param {function(): string} protocolSupplier - function that detects protocol of the web page. Should only be used in tests.\n */\n function WebSocketChannel(config, protocolSupplier, socketFactory) {\n if (protocolSupplier === void 0) { protocolSupplier = detectWebPageProtocol; }\n if (socketFactory === void 0) { socketFactory = function (url) { return new WebSocket(url); }; }\n this._open = true;\n this._pending = [];\n this._error = null;\n this._handleConnectionError = this._handleConnectionError.bind(this);\n this._config = config;\n var _a = determineWebSocketScheme(config, protocolSupplier), scheme = _a.scheme, error = _a.error;\n if (error) {\n this._error = error;\n return;\n }\n this._ws = createWebSocket(scheme, config.address, socketFactory);\n this._ws.binaryType = 'arraybuffer';\n var self = this;\n // All connection errors are not sent to the error handler\n // we must also check for dirty close calls\n this._ws.onclose = function (e) {\n if (e && !e.wasClean) {\n self._handleConnectionError();\n }\n self._open = false;\n };\n this._ws.onopen = function () {\n // Connected! Cancel the connection timeout\n self._clearConnectionTimeout();\n // Drain all pending messages\n var pending = self._pending;\n self._pending = null;\n for (var i = 0; i < pending.length; i++) {\n self.write(pending[i]);\n }\n };\n this._ws.onmessage = function (event) {\n if (self.onmessage) {\n var b = new channel_buf_1.default(event.data);\n self.onmessage(b);\n }\n };\n this._ws.onerror = this._handleConnectionError;\n this._connectionTimeoutFired = false;\n this._connectionTimeoutId = this._setupConnectionTimeout();\n }\n WebSocketChannel.prototype._handleConnectionError = function () {\n if (this._connectionTimeoutFired) {\n // timeout fired - not connected within configured time\n this._error = (0, neo4j_driver_core_1.newError)(\"Failed to establish connection in \" + this._config.connectionTimeout + \"ms\", this._config.connectionErrorCode);\n if (this.onerror) {\n this.onerror(this._error);\n }\n return;\n }\n // onerror triggers on websocket close as well.. don't get me started.\n if (this._open) {\n // http://stackoverflow.com/questions/25779831/how-to-catch-websocket-connection-to-ws-xxxnn-failed-connection-closed-be\n this._error = (0, neo4j_driver_core_1.newError)('WebSocket connection failure. Due to security ' +\n 'constraints in your web browser, the reason for the failure is not available ' +\n 'to this Neo4j Driver. Please use your browsers development console to determine ' +\n 'the root cause of the failure. Common reasons include the database being ' +\n 'unavailable, using the wrong connection URL or temporary network problems. ' +\n 'If you have enabled encryption, ensure your browser is configured to trust the ' +\n 'certificate Neo4j is configured to use. WebSocket `readyState` is: ' +\n this._ws.readyState, this._config.connectionErrorCode);\n if (this.onerror) {\n this.onerror(this._error);\n }\n }\n };\n /**\n * Write the passed in buffer to connection\n * @param {ChannelBuffer} buffer - Buffer to write\n */\n WebSocketChannel.prototype.write = function (buffer) {\n // If there is a pending queue, push this on that queue. This means\n // we are not yet connected, so we queue things locally.\n if (this._pending !== null) {\n this._pending.push(buffer);\n }\n else if (buffer instanceof channel_buf_1.default) {\n try {\n this._ws.send(buffer._buffer);\n }\n catch (error) {\n if (this._ws.readyState !== WS_OPEN) {\n // Websocket has been closed\n this._handleConnectionError();\n }\n else {\n // Some other error occured\n throw error;\n }\n }\n }\n else {\n throw (0, neo4j_driver_core_1.newError)(\"Don't know how to send buffer: \" + buffer);\n }\n };\n /**\n * Close the connection\n * @returns {Promise} A promise that will be resolved after channel is closed\n */\n WebSocketChannel.prototype.close = function () {\n var _this = this;\n return new Promise(function (resolve, reject) {\n if (_this._ws && _this._ws.readyState !== WS_CLOSED) {\n _this._open = false;\n _this._clearConnectionTimeout();\n _this._ws.onclose = function () { return resolve(); };\n _this._ws.close();\n }\n else {\n resolve();\n }\n });\n };\n /**\n * Setup the receive timeout for the channel.\n *\n * Not supported for the browser channel.\n *\n * @param {number} receiveTimeout The amount of time the channel will keep without receive any data before timeout (ms)\n * @returns {void}\n */\n WebSocketChannel.prototype.setupReceiveTimeout = function (receiveTimeout) { };\n /**\n * Stops the receive timeout for the channel.\n */\n WebSocketChannel.prototype.stopReceiveTimeout = function () {\n };\n /**\n * Start the receive timeout for the channel.\n */\n WebSocketChannel.prototype.startReceiveTimeout = function () {\n };\n /**\n * Set connection timeout on the given WebSocket, if configured.\n * @return {number} the timeout id or null.\n * @private\n */\n WebSocketChannel.prototype._setupConnectionTimeout = function () {\n var _this = this;\n var timeout = this._config.connectionTimeout;\n if (timeout) {\n var webSocket_1 = this._ws;\n return setTimeout(function () {\n if (webSocket_1.readyState !== WS_OPEN) {\n _this._connectionTimeoutFired = true;\n webSocket_1.close();\n }\n }, timeout);\n }\n return null;\n };\n /**\n * Remove active connection timeout, if any.\n * @private\n */\n WebSocketChannel.prototype._clearConnectionTimeout = function () {\n var timeoutId = this._connectionTimeoutId;\n if (timeoutId || timeoutId === 0) {\n this._connectionTimeoutFired = false;\n this._connectionTimeoutId = null;\n clearTimeout(timeoutId);\n }\n };\n return WebSocketChannel;\n}());\nexports.default = WebSocketChannel;\nfunction createWebSocket(scheme, address, socketFactory) {\n var url = scheme + '://' + address.asHostPort();\n try {\n return socketFactory(url);\n }\n catch (error) {\n if (isIPv6AddressIssueOnWindows(error, address)) {\n // WebSocket in IE and Edge browsers on Windows do not support regular IPv6 address syntax because they contain ':'.\n // It's an invalid character for UNC (https://en.wikipedia.org/wiki/IPv6_address#Literal_IPv6_addresses_in_UNC_path_names)\n // and Windows requires IPv6 to be changes in the following way:\n // 1) replace all ':' with '-'\n // 2) replace '%' with 's' for link-local address\n // 3) append '.ipv6-literal.net' suffix\n // only then resulting string can be considered a valid IPv6 address. Yes, this is extremely weird!\n // For more details see:\n // https://social.msdn.microsoft.com/Forums/ie/en-US/06cca73b-63c2-4bf9-899b-b229c50449ff/whether-ie10-websocket-support-ipv6?forum=iewebdevelopment\n // https://www.itdojo.com/ipv6-addresses-and-unc-path-names-overcoming-illegal/\n // Creation of WebSocket with unconverted address results in SyntaxError without message or stacktrace.\n // That is why here we \"catch\" SyntaxError and rewrite IPv6 address if needed.\n var windowsFriendlyUrl = asWindowsFriendlyIPv6Address(scheme, address);\n return socketFactory(windowsFriendlyUrl);\n }\n else {\n throw error;\n }\n }\n}\nfunction isIPv6AddressIssueOnWindows(error, address) {\n return error.name === 'SyntaxError' && isIPv6Address(address.asHostPort());\n}\nfunction isIPv6Address(hostAndPort) {\n return hostAndPort.charAt(0) === '[' && hostAndPort.indexOf(']') !== -1;\n}\nfunction asWindowsFriendlyIPv6Address(scheme, address) {\n // replace all ':' with '-'\n var hostWithoutColons = address.host().replace(new RegExp(':', 'g'), '-');\n // replace '%' with 's' for link-local IPv6 address like 'fe80::1%lo0'\n var hostWithoutPercent = hostWithoutColons.replace('%', 's');\n // append magic '.ipv6-literal.net' suffix\n var ipv6Host = hostWithoutPercent + '.ipv6-literal.net';\n return scheme + \"://\" + ipv6Host + \":\" + address.port();\n}\n/**\n * @param {ChannelConfig} config - configuration for the channel.\n * @param {function(): string} protocolSupplier - function that detects protocol of the web page.\n * @return {{scheme: string|null, error: Neo4jError|null}} object containing either scheme or error.\n */\nfunction determineWebSocketScheme(config, protocolSupplier) {\n var encryptionOn = isEncryptionExplicitlyTurnedOn(config);\n var encryptionOff = isEncryptionExplicitlyTurnedOff(config);\n var trust = config.trust;\n var secureProtocol = isProtocolSecure(protocolSupplier);\n verifyEncryptionSettings(encryptionOn, encryptionOff, secureProtocol);\n if (encryptionOff) {\n // encryption explicitly turned off in the config\n return { scheme: 'ws', error: null };\n }\n if (secureProtocol) {\n // driver is used in a secure https web page, use 'wss'\n return { scheme: 'wss', error: null };\n }\n if (encryptionOn) {\n // encryption explicitly requested in the config\n if (!trust || trust === 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES') {\n // trust strategy not specified or the only supported strategy is specified\n return { scheme: 'wss', error: null };\n }\n else {\n var error = (0, neo4j_driver_core_1.newError)('The browser version of this driver only supports one trust ' +\n \"strategy, 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'. \" +\n trust +\n ' is not supported. Please ' +\n 'either use TRUST_SYSTEM_CA_SIGNED_CERTIFICATES or disable encryption by setting ' +\n '`encrypted:\"' +\n ENCRYPTION_OFF +\n '\"` in the driver configuration.');\n return { scheme: null, error: error };\n }\n }\n // default to unencrypted web socket\n return { scheme: 'ws', error: null };\n}\n/**\n * @param {ChannelConfig} config - configuration for the channel.\n * @return {boolean} `true` if encryption enabled in the config, `false` otherwise.\n */\nfunction isEncryptionExplicitlyTurnedOn(config) {\n return config.encrypted === true || config.encrypted === ENCRYPTION_ON;\n}\n/**\n * @param {ChannelConfig} config - configuration for the channel.\n * @return {boolean} `true` if encryption disabled in the config, `false` otherwise.\n */\nfunction isEncryptionExplicitlyTurnedOff(config) {\n return config.encrypted === false || config.encrypted === ENCRYPTION_OFF;\n}\n/**\n * @param {function(): string} protocolSupplier - function that detects protocol of the web page.\n * @return {boolean} `true` if protocol returned by the given function is secure, `false` otherwise.\n */\nfunction isProtocolSecure(protocolSupplier) {\n var protocol = typeof protocolSupplier === 'function' ? protocolSupplier() : '';\n return protocol && protocol.toLowerCase().indexOf('https') >= 0;\n}\nfunction verifyEncryptionSettings(encryptionOn, encryptionOff, secureProtocol) {\n if (secureProtocol === null) {\n // do nothing sice the protocol could not be identified\n }\n else if (encryptionOn && !secureProtocol) {\n // encryption explicitly turned on for a driver used on a HTTP web page\n console.warn('Neo4j driver is configured to use secure WebSocket on a HTTP web page. ' +\n 'WebSockets might not work in a mixed content environment. ' +\n 'Please consider configuring driver to not use encryption.');\n }\n else if (encryptionOff && secureProtocol) {\n // encryption explicitly turned off for a driver used on a HTTPS web page\n console.warn('Neo4j driver is configured to use insecure WebSocket on a HTTPS web page. ' +\n 'WebSockets might not work in a mixed content environment. ' +\n 'Please consider configuring driver to use encryption.');\n }\n}\nfunction detectWebPageProtocol() {\n return typeof window !== 'undefined' && window.location\n ? window.location.protocol\n : null;\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar BaseHostNameResolver = neo4j_driver_core_1.internal.resolver.BaseHostNameResolver;\nvar BrowserHostNameResolver = /** @class */ (function (_super) {\n __extends(BrowserHostNameResolver, _super);\n function BrowserHostNameResolver() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n BrowserHostNameResolver.prototype.resolve = function (address) {\n return this._resolveToItself(address);\n };\n return BrowserHostNameResolver;\n}(BaseHostNameResolver));\nexports.default = BrowserHostNameResolver;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.HostNameResolver = exports.Channel = void 0;\nvar browser_channel_1 = __importDefault(require(\"./browser-channel\"));\nvar browser_host_name_resolver_1 = __importDefault(require(\"./browser-host-name-resolver\"));\n/*\n\nThis module exports a set of components to be used in browser environment.\nThey are not compatible with NodeJS environment.\nAll files import/require APIs from `node/index.js` by default.\nSuch imports are replaced at build time with `browser/index.js` when building a browser bundle.\n\nNOTE: exports in this module should have exactly the same names/structure as exports in `node/index.js`.\n\n */\nexports.Channel = browser_channel_1.default;\nexports.HostNameResolver = browser_host_name_resolver_1.default;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.alloc = void 0;\nvar buffer_1 = __importDefault(require(\"buffer\"));\nvar buf_1 = __importDefault(require(\"../buf\"));\nvar ChannelBuffer = /** @class */ (function (_super) {\n __extends(ChannelBuffer, _super);\n function ChannelBuffer(arg) {\n var _this = this;\n var buffer = newChannelJSBuffer(arg);\n _this = _super.call(this, buffer.length) || this;\n _this._buffer = buffer;\n return _this;\n }\n ChannelBuffer.prototype.getUInt8 = function (position) {\n return this._buffer.readUInt8(position);\n };\n ChannelBuffer.prototype.getInt8 = function (position) {\n return this._buffer.readInt8(position);\n };\n ChannelBuffer.prototype.getFloat64 = function (position) {\n return this._buffer.readDoubleBE(position);\n };\n ChannelBuffer.prototype.putUInt8 = function (position, val) {\n this._buffer.writeUInt8(val, position);\n };\n ChannelBuffer.prototype.putInt8 = function (position, val) {\n this._buffer.writeInt8(val, position);\n };\n ChannelBuffer.prototype.putFloat64 = function (position, val) {\n this._buffer.writeDoubleBE(val, position);\n };\n ChannelBuffer.prototype.putBytes = function (position, val) {\n if (val instanceof ChannelBuffer) {\n var bytesToCopy = Math.min(val.length - val.position, this.length - position);\n val._buffer.copy(this._buffer, position, val.position, val.position + bytesToCopy);\n val.position += bytesToCopy;\n }\n else {\n _super.prototype.putBytes.call(this, position, val);\n }\n };\n ChannelBuffer.prototype.getSlice = function (start, length) {\n return new ChannelBuffer(this._buffer.slice(start, start + length));\n };\n return ChannelBuffer;\n}(buf_1.default));\nexports.default = ChannelBuffer;\n/**\n * Allocate a buffer\n *\n * @param {number} size The buffer sizzer\n * @returns {BaseBuffer} The buffer\n */\nfunction alloc(size) {\n return new ChannelBuffer(size);\n}\nexports.alloc = alloc;\nfunction newChannelJSBuffer(arg) {\n if (arg instanceof buffer_1.default.Buffer) {\n return arg;\n }\n else if (typeof arg === 'number' &&\n typeof buffer_1.default.Buffer.alloc === 'function') {\n // use static factory function present in newer NodeJS versions to allocate new buffer with specified size\n return buffer_1.default.Buffer.alloc(arg);\n }\n else {\n // fallback to the old, potentially deprecated constructor\n // eslint-disable-next-line node/no-deprecated-api\n return new buffer_1.default.Buffer(arg);\n }\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar _a = neo4j_driver_core_1.internal.util, ENCRYPTION_OFF = _a.ENCRYPTION_OFF, ENCRYPTION_ON = _a.ENCRYPTION_ON;\nvar SERVICE_UNAVAILABLE = neo4j_driver_core_1.error.SERVICE_UNAVAILABLE;\nvar DEFAULT_CONNECTION_TIMEOUT_MILLIS = 30000; // 30 seconds by default\nvar ALLOWED_VALUES_ENCRYPTED = [\n null,\n undefined,\n true,\n false,\n ENCRYPTION_ON,\n ENCRYPTION_OFF\n];\nvar ALLOWED_VALUES_TRUST = [\n null,\n undefined,\n 'TRUST_ALL_CERTIFICATES',\n 'TRUST_CUSTOM_CA_SIGNED_CERTIFICATES',\n 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'\n];\nvar ChannelConfig = /** @class */ (function () {\n /**\n * @constructor\n * @param {ServerAddress} address the address for the channel to connect to.\n * @param {Object} driverConfig the driver config provided by the user when driver is created.\n * @param {string} connectionErrorCode the default error code to use on connection errors.\n */\n function ChannelConfig(address, driverConfig, connectionErrorCode) {\n this.address = address;\n this.encrypted = extractEncrypted(driverConfig);\n this.trust = extractTrust(driverConfig);\n this.trustedCertificates = extractTrustedCertificates(driverConfig);\n this.knownHostsPath = extractKnownHostsPath(driverConfig);\n this.connectionErrorCode = connectionErrorCode || SERVICE_UNAVAILABLE;\n this.connectionTimeout = extractConnectionTimeout(driverConfig);\n }\n return ChannelConfig;\n}());\nexports.default = ChannelConfig;\nfunction extractEncrypted(driverConfig) {\n var value = driverConfig.encrypted;\n if (ALLOWED_VALUES_ENCRYPTED.indexOf(value) === -1) {\n throw (0, neo4j_driver_core_1.newError)(\"Illegal value of the encrypted setting \" + value + \". Expected one of \" + ALLOWED_VALUES_ENCRYPTED);\n }\n return value;\n}\nfunction extractTrust(driverConfig) {\n var value = driverConfig.trust;\n if (ALLOWED_VALUES_TRUST.indexOf(value) === -1) {\n throw (0, neo4j_driver_core_1.newError)(\"Illegal value of the trust setting \" + value + \". Expected one of \" + ALLOWED_VALUES_TRUST);\n }\n return value;\n}\nfunction extractTrustedCertificates(driverConfig) {\n return driverConfig.trustedCertificates || [];\n}\nfunction extractKnownHostsPath(driverConfig) {\n return driverConfig.knownHosts || null;\n}\nfunction extractConnectionTimeout(driverConfig) {\n var configuredTimeout = parseInt(driverConfig.connectionTimeout, 10);\n if (configuredTimeout === 0) {\n // timeout explicitly configured to 0\n return null;\n }\n else if (configuredTimeout && configuredTimeout < 0) {\n // timeout explicitly configured to a negative value\n return null;\n }\n else if (!configuredTimeout) {\n // timeout not configured, use default value\n return DEFAULT_CONNECTION_TIMEOUT_MILLIS;\n }\n else {\n // timeout configured, use the provided value\n return configuredTimeout;\n }\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Dechunker = exports.Chunker = void 0;\nvar base_buf_1 = __importDefault(require(\"../buf/base-buf\"));\nvar channel_buf_1 = require(\"./channel-buf\");\nvar combined_buf_1 = __importDefault(require(\"./combined-buf\"));\nvar _CHUNK_HEADER_SIZE = 2;\nvar _MESSAGE_BOUNDARY = 0x00;\nvar _DEFAULT_BUFFER_SIZE = 1400; // http://stackoverflow.com/questions/2613734/maximum-packet-size-for-a-tcp-connection\n/**\n * Looks like a writable buffer, chunks output transparently into a channel below.\n * @access private\n */\nvar Chunker = /** @class */ (function (_super) {\n __extends(Chunker, _super);\n function Chunker(channel, bufferSize) {\n var _this = _super.call(this, 0) || this;\n _this._bufferSize = bufferSize || _DEFAULT_BUFFER_SIZE;\n _this._ch = channel;\n _this._buffer = (0, channel_buf_1.alloc)(_this._bufferSize);\n _this._currentChunkStart = 0;\n _this._chunkOpen = false;\n return _this;\n }\n Chunker.prototype.putUInt8 = function (position, val) {\n this._ensure(1);\n this._buffer.writeUInt8(val);\n };\n Chunker.prototype.putInt8 = function (position, val) {\n this._ensure(1);\n this._buffer.writeInt8(val);\n };\n Chunker.prototype.putFloat64 = function (position, val) {\n this._ensure(8);\n this._buffer.writeFloat64(val);\n };\n Chunker.prototype.putBytes = function (position, data) {\n // TODO: If data is larger than our chunk size or so, we're very likely better off just passing this buffer on\n // rather than doing the copy here TODO: *however* note that we need some way to find out when the data has been\n // written (and thus the buffer can be re-used) if we take that approach\n while (data.remaining() > 0) {\n // Ensure there is an open chunk, and that it has at least one byte of space left\n this._ensure(1);\n if (this._buffer.remaining() > data.remaining()) {\n this._buffer.writeBytes(data);\n }\n else {\n this._buffer.writeBytes(data.readSlice(this._buffer.remaining()));\n }\n }\n return this;\n };\n Chunker.prototype.flush = function () {\n if (this._buffer.position > 0) {\n this._closeChunkIfOpen();\n // Local copy and clear the buffer field. This ensures that the buffer is not re-released if the flush call fails\n var out = this._buffer;\n this._buffer = null;\n this._ch.write(out.getSlice(0, out.position));\n // Alloc a new output buffer. We assume we're using NodeJS's buffer pooling under the hood here!\n this._buffer = (0, channel_buf_1.alloc)(this._bufferSize);\n this._chunkOpen = false;\n }\n return this;\n };\n /**\n * Bolt messages are encoded in one or more chunks, and the boundary between two messages\n * is encoded as a 0-length chunk, `00 00`. This inserts such a message boundary, closing\n * any currently open chunk as needed\n */\n Chunker.prototype.messageBoundary = function () {\n this._closeChunkIfOpen();\n if (this._buffer.remaining() < _CHUNK_HEADER_SIZE) {\n this.flush();\n }\n // Write message boundary\n this._buffer.writeInt16(_MESSAGE_BOUNDARY);\n };\n /** Ensure at least the given size is available for writing */\n Chunker.prototype._ensure = function (size) {\n var toWriteSize = this._chunkOpen ? size : size + _CHUNK_HEADER_SIZE;\n if (this._buffer.remaining() < toWriteSize) {\n this.flush();\n }\n if (!this._chunkOpen) {\n this._currentChunkStart = this._buffer.position;\n this._buffer.position = this._buffer.position + _CHUNK_HEADER_SIZE;\n this._chunkOpen = true;\n }\n };\n Chunker.prototype._closeChunkIfOpen = function () {\n if (this._chunkOpen) {\n var chunkSize = this._buffer.position - (this._currentChunkStart + _CHUNK_HEADER_SIZE);\n this._buffer.putUInt16(this._currentChunkStart, chunkSize);\n this._chunkOpen = false;\n }\n };\n return Chunker;\n}(base_buf_1.default));\nexports.Chunker = Chunker;\n/**\n * Combines chunks until a complete message is gathered up, and then forwards that\n * message to an 'onmessage' listener.\n * @access private\n */\nvar Dechunker = /** @class */ (function () {\n function Dechunker() {\n this._currentMessage = [];\n this._partialChunkHeader = 0;\n this._state = this.AWAITING_CHUNK;\n }\n Dechunker.prototype.AWAITING_CHUNK = function (buf) {\n if (buf.remaining() >= 2) {\n // Whole header available, read that\n return this._onHeader(buf.readUInt16());\n }\n else {\n // Only one byte available, read that and wait for the second byte\n this._partialChunkHeader = buf.readUInt8() << 8;\n return this.IN_HEADER;\n }\n };\n Dechunker.prototype.IN_HEADER = function (buf) {\n // First header byte read, now we read the next one\n return this._onHeader((this._partialChunkHeader | buf.readUInt8()) & 0xffff);\n };\n Dechunker.prototype.IN_CHUNK = function (buf) {\n if (this._chunkSize <= buf.remaining()) {\n // Current packet is larger than current chunk, or same size:\n this._currentMessage.push(buf.readSlice(this._chunkSize));\n return this.AWAITING_CHUNK;\n }\n else {\n // Current packet is smaller than the chunk we're reading, split the current chunk itself up\n this._chunkSize -= buf.remaining();\n this._currentMessage.push(buf.readSlice(buf.remaining()));\n return this.IN_CHUNK;\n }\n };\n Dechunker.prototype.CLOSED = function (buf) {\n // no-op\n };\n /** Called when a complete chunk header has been received */\n Dechunker.prototype._onHeader = function (header) {\n if (header === 0) {\n // Message boundary\n var message = void 0;\n switch (this._currentMessage.length) {\n case 0:\n // Keep alive chunk, sent by server to keep network alive.\n return this.AWAITING_CHUNK;\n case 1:\n // All data in one chunk, this signals the end of that chunk.\n message = this._currentMessage[0];\n break;\n default:\n // A large chunk of data received, this signals that the last chunk has been received.\n message = new combined_buf_1.default(this._currentMessage);\n break;\n }\n this._currentMessage = [];\n this.onmessage(message);\n return this.AWAITING_CHUNK;\n }\n else {\n this._chunkSize = header;\n return this.IN_CHUNK;\n }\n };\n Dechunker.prototype.write = function (buf) {\n while (buf.hasRemaining()) {\n this._state = this._state(buf);\n }\n };\n return Dechunker;\n}());\nexports.Dechunker = Dechunker;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar buf_1 = require(\"../buf\");\nvar channel_buf_1 = require(\"./channel-buf\");\n/**\n * Buffer that combines multiple buffers, exposing them as one single buffer.\n */\nvar CombinedBuffer = /** @class */ (function (_super) {\n __extends(CombinedBuffer, _super);\n function CombinedBuffer(buffers) {\n var _this = this;\n var length = 0;\n for (var i = 0; i < buffers.length; i++) {\n length += buffers[i].length;\n }\n _this = _super.call(this, length) || this;\n _this._buffers = buffers;\n return _this;\n }\n CombinedBuffer.prototype.getUInt8 = function (position) {\n // Surely there's a faster way to do this.. some sort of lookup table thing?\n for (var i = 0; i < this._buffers.length; i++) {\n var buffer = this._buffers[i];\n // If the position is not in the current buffer, skip the current buffer\n if (position >= buffer.length) {\n position -= buffer.length;\n }\n else {\n return buffer.getUInt8(position);\n }\n }\n };\n CombinedBuffer.prototype.getInt8 = function (position) {\n // Surely there's a faster way to do this.. some sort of lookup table thing?\n for (var i = 0; i < this._buffers.length; i++) {\n var buffer = this._buffers[i];\n // If the position is not in the current buffer, skip the current buffer\n if (position >= buffer.length) {\n position -= buffer.length;\n }\n else {\n return buffer.getInt8(position);\n }\n }\n };\n CombinedBuffer.prototype.getFloat64 = function (position) {\n // At some point, a more efficient impl. For now, we copy the 8 bytes\n // we want to read and depend on the platform impl of IEEE 754.\n var b = (0, channel_buf_1.alloc)(8);\n for (var i = 0; i < 8; i++) {\n b.putUInt8(i, this.getUInt8(position + i));\n }\n return b.getFloat64(0);\n };\n return CombinedBuffer;\n}(buf_1.BaseBuffer));\nexports.default = CombinedBuffer;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.utf8 = exports.alloc = exports.ChannelConfig = void 0;\n__exportStar(require(\"./node\"), exports);\n__exportStar(require(\"./chunking\"), exports);\nvar channel_config_1 = require(\"./channel-config\");\nObject.defineProperty(exports, \"ChannelConfig\", { enumerable: true, get: function () { return __importDefault(channel_config_1).default; } });\nvar channel_buf_1 = require(\"./channel-buf\");\nObject.defineProperty(exports, \"alloc\", { enumerable: true, get: function () { return channel_buf_1.alloc; } });\nvar utf8_1 = require(\"./utf8\");\nObject.defineProperty(exports, \"utf8\", { enumerable: true, get: function () { return __importDefault(utf8_1).default; } });\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_buf_1 = __importDefault(require(\"./channel-buf\"));\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar buffer_1 = __importDefault(require(\"buffer\"));\nvar string_decoder_1 = require(\"string_decoder\");\nvar decoder = new string_decoder_1.StringDecoder('utf8');\nfunction encode(str) {\n return new channel_buf_1.default(newBuffer(str));\n}\nfunction decode(buffer, length) {\n if (Object.prototype.hasOwnProperty.call(buffer, '_buffer')) {\n return decodeChannelBuffer(buffer, length);\n }\n else if (Object.prototype.hasOwnProperty.call(buffer, '_buffers')) {\n return decodeCombinedBuffer(buffer, length);\n }\n else {\n throw (0, neo4j_driver_core_1.newError)(\"Don't know how to decode strings from '\" + buffer + \"'\");\n }\n}\nfunction decodeChannelBuffer(buffer, length) {\n var start = buffer.position;\n var end = start + length;\n buffer.position = Math.min(end, buffer.length);\n return buffer._buffer.toString('utf8', start, end);\n}\nfunction decodeCombinedBuffer(buffer, length) {\n return streamDecodeCombinedBuffer(buffer, length, function (partBuffer) { return decoder.write(partBuffer._buffer); }, function () { return decoder.end(); });\n}\nfunction streamDecodeCombinedBuffer(combinedBuffers, length, decodeFn, endFn) {\n var remainingBytesToRead = length;\n var position = combinedBuffers.position;\n combinedBuffers._updatePos(Math.min(length, combinedBuffers.length - position));\n // Reduce CombinedBuffers to a decoded string\n var out = combinedBuffers._buffers.reduce(function (last, partBuffer) {\n if (remainingBytesToRead <= 0) {\n return last;\n }\n else if (position >= partBuffer.length) {\n position -= partBuffer.length;\n return '';\n }\n else {\n partBuffer._updatePos(position - partBuffer.position);\n var bytesToRead = Math.min(partBuffer.length - position, remainingBytesToRead);\n var lastSlice = partBuffer.readSlice(bytesToRead);\n partBuffer._updatePos(bytesToRead);\n remainingBytesToRead = Math.max(remainingBytesToRead - lastSlice.length, 0);\n position = 0;\n return last + decodeFn(lastSlice);\n }\n }, '');\n return out + endFn();\n}\nfunction newBuffer(str) {\n // use static factory function present in newer NodeJS versions to create a buffer containing the given string\n // or fallback to the old, potentially deprecated constructor\n if (typeof buffer_1.default.Buffer.from === 'function') {\n return buffer_1.default.Buffer.from(str, 'utf8');\n }\n else {\n // eslint-disable-next-line node/no-deprecated-api\n return new buffer_1.default.Buffer(str, 'utf8');\n }\n}\nexports.default = {\n encode: encode,\n decode: decode\n};\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar connection_provider_pooled_1 = __importDefault(require(\"./connection-provider-pooled\"));\nvar connection_1 = require(\"../connection\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar _a = neo4j_driver_core_1.internal.constants, BOLT_PROTOCOL_V3 = _a.BOLT_PROTOCOL_V3, BOLT_PROTOCOL_V4_0 = _a.BOLT_PROTOCOL_V4_0, BOLT_PROTOCOL_V4_4 = _a.BOLT_PROTOCOL_V4_4;\nvar SERVICE_UNAVAILABLE = neo4j_driver_core_1.error.SERVICE_UNAVAILABLE, newError = neo4j_driver_core_1.error.newError;\nvar DirectConnectionProvider = /** @class */ (function (_super) {\n __extends(DirectConnectionProvider, _super);\n function DirectConnectionProvider(_a) {\n var id = _a.id, config = _a.config, log = _a.log, address = _a.address, userAgent = _a.userAgent, authToken = _a.authToken;\n var _this = _super.call(this, { id: id, config: config, log: log, userAgent: userAgent, authToken: authToken }) || this;\n _this._address = address;\n return _this;\n }\n /**\n * See {@link ConnectionProvider} for more information about this method and\n * its arguments.\n */\n DirectConnectionProvider.prototype.acquireConnection = function (_a) {\n var _this = this;\n var _b = _a === void 0 ? {} : _a, accessMode = _b.accessMode, database = _b.database, bookmarks = _b.bookmarks;\n var databaseSpecificErrorHandler = connection_1.ConnectionErrorHandler.create({\n errorCode: SERVICE_UNAVAILABLE,\n handleAuthorizationExpired: function (error, address) {\n return _this._handleAuthorizationExpired(error, address, database);\n }\n });\n return this._connectionPool\n .acquire(this._address)\n .then(function (connection) {\n return new connection_1.DelegateConnection(connection, databaseSpecificErrorHandler);\n });\n };\n DirectConnectionProvider.prototype._handleAuthorizationExpired = function (error, address, database) {\n this._log.warn(\"Direct driver \" + this._id + \" will close connection to \" + address + \" for database '\" + database + \"' because of an error \" + error.code + \" '\" + error.message + \"'\");\n this._connectionPool.purge(address).catch(function () { });\n return error;\n };\n DirectConnectionProvider.prototype._hasProtocolVersion = function (versionPredicate) {\n return __awaiter(this, void 0, void 0, function () {\n var connection, protocolVersion;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, (0, connection_1.createChannelConnection)(this._address, this._config, this._createConnectionErrorHandler(), this._log)];\n case 1:\n connection = _a.sent();\n protocolVersion = connection.protocol()\n ? connection.protocol().version\n : null;\n return [4 /*yield*/, connection.close()];\n case 2:\n _a.sent();\n if (protocolVersion) {\n return [2 /*return*/, versionPredicate(protocolVersion)];\n }\n return [2 /*return*/, false];\n }\n });\n });\n };\n DirectConnectionProvider.prototype.supportsMultiDb = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._hasProtocolVersion(function (version) { return version >= BOLT_PROTOCOL_V4_0; })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n DirectConnectionProvider.prototype.supportsTransactionConfig = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._hasProtocolVersion(function (version) { return version >= BOLT_PROTOCOL_V3; })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n DirectConnectionProvider.prototype.supportsUserImpersonation = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._hasProtocolVersion(function (version) { return version >= BOLT_PROTOCOL_V4_4; })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n return DirectConnectionProvider;\n}(connection_provider_pooled_1.default));\nexports.default = DirectConnectionProvider;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar connection_1 = require(\"../connection\");\nvar pool_1 = __importStar(require(\"../pool\"));\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar SERVICE_UNAVAILABLE = neo4j_driver_core_1.error.SERVICE_UNAVAILABLE;\nvar PooledConnectionProvider = /** @class */ (function (_super) {\n __extends(PooledConnectionProvider, _super);\n function PooledConnectionProvider(_a, createChannelConnectionHook) {\n var id = _a.id, config = _a.config, log = _a.log, userAgent = _a.userAgent, authToken = _a.authToken;\n if (createChannelConnectionHook === void 0) { createChannelConnectionHook = null; }\n var _this = _super.call(this) || this;\n _this._id = id;\n _this._config = config;\n _this._log = log;\n _this._userAgent = userAgent;\n _this._authToken = authToken;\n _this._createChannelConnection =\n createChannelConnectionHook ||\n (function (address) {\n return (0, connection_1.createChannelConnection)(address, _this._config, _this._createConnectionErrorHandler(), _this._log);\n });\n _this._connectionPool = new pool_1.default({\n create: _this._createConnection.bind(_this),\n destroy: _this._destroyConnection.bind(_this),\n validate: _this._validateConnection.bind(_this),\n installIdleObserver: PooledConnectionProvider._installIdleObserverOnConnection.bind(_this),\n removeIdleObserver: PooledConnectionProvider._removeIdleObserverOnConnection.bind(_this),\n config: pool_1.PoolConfig.fromDriverConfig(config),\n log: _this._log\n });\n _this._openConnections = {};\n return _this;\n }\n PooledConnectionProvider.prototype._createConnectionErrorHandler = function () {\n return new connection_1.ConnectionErrorHandler(SERVICE_UNAVAILABLE);\n };\n /**\n * Create a new connection and initialize it.\n * @return {Promise} promise resolved with a new connection or rejected when failed to connect.\n * @access private\n */\n PooledConnectionProvider.prototype._createConnection = function (address, release) {\n var _this = this;\n return this._createChannelConnection(address).then(function (connection) {\n connection._release = function () { return release(address, connection); };\n _this._openConnections[connection.id] = connection;\n return connection\n .connect(_this._userAgent, _this._authToken)\n .catch(function (error) {\n // let's destroy this connection\n _this._destroyConnection(connection);\n // propagate the error because connection failed to connect / initialize\n throw error;\n });\n });\n };\n /**\n * Check that a connection is usable\n * @return {boolean} true if the connection is open\n * @access private\n **/\n PooledConnectionProvider.prototype._validateConnection = function (conn) {\n if (!conn.isOpen()) {\n return false;\n }\n var maxConnectionLifetime = this._config.maxConnectionLifetime;\n var lifetime = Date.now() - conn.creationTimestamp;\n return lifetime <= maxConnectionLifetime;\n };\n /**\n * Dispose of a connection.\n * @return {Connection} the connection to dispose.\n * @access private\n */\n PooledConnectionProvider.prototype._destroyConnection = function (conn) {\n delete this._openConnections[conn.id];\n return conn.close();\n };\n PooledConnectionProvider.prototype.close = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: \n // purge all idle connections in the connection pool\n return [4 /*yield*/, this._connectionPool.close()\n // then close all connections driver has ever created\n // it is needed to close connections that are active right now and are acquired from the pool\n ];\n case 1:\n // purge all idle connections in the connection pool\n _a.sent();\n // then close all connections driver has ever created\n // it is needed to close connections that are active right now and are acquired from the pool\n return [4 /*yield*/, Promise.all(Object.values(this._openConnections).map(function (c) { return c.close(); }))];\n case 2:\n // then close all connections driver has ever created\n // it is needed to close connections that are active right now and are acquired from the pool\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n PooledConnectionProvider._installIdleObserverOnConnection = function (conn, observer) {\n conn._queueObserver(observer);\n };\n PooledConnectionProvider._removeIdleObserverOnConnection = function (conn) {\n conn._updateCurrentObserver();\n };\n return PooledConnectionProvider;\n}(neo4j_driver_core_1.ConnectionProvider));\nexports.default = PooledConnectionProvider;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar rediscovery_1 = __importStar(require(\"../rediscovery\"));\nvar channel_1 = require(\"../channel\");\nvar connection_provider_single_1 = __importDefault(require(\"./connection-provider-single\"));\nvar connection_provider_pooled_1 = __importDefault(require(\"./connection-provider-pooled\"));\nvar load_balancing_1 = require(\"../load-balancing\");\nvar connection_1 = require(\"../connection\");\nvar SERVICE_UNAVAILABLE = neo4j_driver_core_1.error.SERVICE_UNAVAILABLE, SESSION_EXPIRED = neo4j_driver_core_1.error.SESSION_EXPIRED;\nvar Bookmark = neo4j_driver_core_1.internal.bookmark.Bookmark, _a = neo4j_driver_core_1.internal.constants, READ = _a.ACCESS_MODE_READ, WRITE = _a.ACCESS_MODE_WRITE, BOLT_PROTOCOL_V3 = _a.BOLT_PROTOCOL_V3, BOLT_PROTOCOL_V4_0 = _a.BOLT_PROTOCOL_V4_0, BOLT_PROTOCOL_V4_4 = _a.BOLT_PROTOCOL_V4_4;\nvar UNAUTHORIZED_ERROR_CODE = 'Neo.ClientError.Security.Unauthorized';\nvar DATABASE_NOT_FOUND_ERROR_CODE = 'Neo.ClientError.Database.DatabaseNotFound';\nvar SYSTEM_DB_NAME = 'system';\nvar DEFAULT_DB_NAME = null;\nvar DEFAULT_ROUTING_TABLE_PURGE_DELAY = (0, neo4j_driver_core_1.int)(30000);\nvar RoutingConnectionProvider = /** @class */ (function (_super) {\n __extends(RoutingConnectionProvider, _super);\n function RoutingConnectionProvider(_a) {\n var id = _a.id, address = _a.address, routingContext = _a.routingContext, hostNameResolver = _a.hostNameResolver, config = _a.config, log = _a.log, userAgent = _a.userAgent, authToken = _a.authToken, routingTablePurgeDelay = _a.routingTablePurgeDelay;\n var _this = _super.call(this, { id: id, config: config, log: log, userAgent: userAgent, authToken: authToken }, function (address) {\n return (0, connection_1.createChannelConnection)(address, _this._config, _this._createConnectionErrorHandler(), _this._log, _this._routingContext);\n }) || this;\n _this._routingContext = __assign(__assign({}, routingContext), { address: address.toString() });\n _this._seedRouter = address;\n _this._rediscovery = new rediscovery_1.default(_this._routingContext);\n _this._loadBalancingStrategy = new load_balancing_1.LeastConnectedLoadBalancingStrategy(_this._connectionPool);\n _this._hostNameResolver = hostNameResolver;\n _this._dnsResolver = new channel_1.HostNameResolver();\n _this._log = log;\n _this._useSeedRouter = true;\n _this._routingTableRegistry = new RoutingTableRegistry(routingTablePurgeDelay\n ? (0, neo4j_driver_core_1.int)(routingTablePurgeDelay)\n : DEFAULT_ROUTING_TABLE_PURGE_DELAY);\n return _this;\n }\n RoutingConnectionProvider.prototype._createConnectionErrorHandler = function () {\n // connection errors mean SERVICE_UNAVAILABLE for direct driver but for routing driver they should only\n // result in SESSION_EXPIRED because there might still exist other servers capable of serving the request\n return new connection_1.ConnectionErrorHandler(SESSION_EXPIRED);\n };\n RoutingConnectionProvider.prototype._handleUnavailability = function (error, address, database) {\n this._log.warn(\"Routing driver \" + this._id + \" will forget \" + address + \" for database '\" + database + \"' because of an error \" + error.code + \" '\" + error.message + \"'\");\n this.forget(address, database || DEFAULT_DB_NAME);\n return error;\n };\n RoutingConnectionProvider.prototype._handleAuthorizationExpired = function (error, address, database) {\n this._log.warn(\"Routing driver \" + this._id + \" will close connections to \" + address + \" for database '\" + database + \"' because of an error \" + error.code + \" '\" + error.message + \"'\");\n this._connectionPool.purge(address).catch(function () { });\n return error;\n };\n RoutingConnectionProvider.prototype._handleWriteFailure = function (error, address, database) {\n this._log.warn(\"Routing driver \" + this._id + \" will forget writer \" + address + \" for database '\" + database + \"' because of an error \" + error.code + \" '\" + error.message + \"'\");\n this.forgetWriter(address, database || DEFAULT_DB_NAME);\n return (0, neo4j_driver_core_1.newError)('No longer possible to write to server at ' + address, SESSION_EXPIRED);\n };\n /**\n * See {@link ConnectionProvider} for more information about this method and\n * its arguments.\n */\n RoutingConnectionProvider.prototype.acquireConnection = function (_a) {\n var _b = _a === void 0 ? {} : _a, accessMode = _b.accessMode, database = _b.database, bookmarks = _b.bookmarks, impersonatedUser = _b.impersonatedUser, onDatabaseNameResolved = _b.onDatabaseNameResolved;\n return __awaiter(this, void 0, void 0, function () {\n var name, address, context, databaseSpecificErrorHandler, routingTable, connection, error_1, transformed;\n var _this = this;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0:\n context = { database: database || DEFAULT_DB_NAME };\n databaseSpecificErrorHandler = new connection_1.ConnectionErrorHandler(SESSION_EXPIRED, function (error, address) { return _this._handleUnavailability(error, address, context.database); }, function (error, address) { return _this._handleWriteFailure(error, address, context.database); }, function (error, address) {\n return _this._handleAuthorizationExpired(error, address, context.database);\n });\n return [4 /*yield*/, this._freshRoutingTable({\n accessMode: accessMode,\n database: context.database,\n bookmark: bookmarks,\n impersonatedUser: impersonatedUser,\n onDatabaseNameResolved: function (databaseName) {\n context.database = context.database || databaseName;\n if (onDatabaseNameResolved) {\n onDatabaseNameResolved(databaseName);\n }\n }\n })\n // select a target server based on specified access mode\n ];\n case 1:\n routingTable = _c.sent();\n // select a target server based on specified access mode\n if (accessMode === READ) {\n address = this._loadBalancingStrategy.selectReader(routingTable.readers);\n name = 'read';\n }\n else if (accessMode === WRITE) {\n address = this._loadBalancingStrategy.selectWriter(routingTable.writers);\n name = 'write';\n }\n else {\n throw (0, neo4j_driver_core_1.newError)('Illegal mode ' + accessMode);\n }\n // we couldn't select a target server\n if (!address) {\n throw (0, neo4j_driver_core_1.newError)(\"Failed to obtain connection towards \" + name + \" server. Known routing table is: \" + routingTable, SESSION_EXPIRED);\n }\n _c.label = 2;\n case 2:\n _c.trys.push([2, 4, , 5]);\n return [4 /*yield*/, this._acquireConnectionToServer(address, name, routingTable)];\n case 3:\n connection = _c.sent();\n return [2 /*return*/, new connection_1.DelegateConnection(connection, databaseSpecificErrorHandler)];\n case 4:\n error_1 = _c.sent();\n transformed = databaseSpecificErrorHandler.handleAndTransformError(error_1, address);\n throw transformed;\n case 5: return [2 /*return*/];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype._hasProtocolVersion = function (versionPredicate) {\n return __awaiter(this, void 0, void 0, function () {\n var addresses, lastError, i, connection, protocolVersion, error_2;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._resolveSeedRouter(this._seedRouter)];\n case 1:\n addresses = _a.sent();\n i = 0;\n _a.label = 2;\n case 2:\n if (!(i < addresses.length)) return [3 /*break*/, 8];\n _a.label = 3;\n case 3:\n _a.trys.push([3, 6, , 7]);\n return [4 /*yield*/, (0, connection_1.createChannelConnection)(addresses[i], this._config, this._createConnectionErrorHandler(), this._log)];\n case 4:\n connection = _a.sent();\n protocolVersion = connection.protocol()\n ? connection.protocol().version\n : null;\n return [4 /*yield*/, connection.close()];\n case 5:\n _a.sent();\n if (protocolVersion) {\n return [2 /*return*/, versionPredicate(protocolVersion)];\n }\n return [2 /*return*/, false];\n case 6:\n error_2 = _a.sent();\n lastError = error_2;\n return [3 /*break*/, 7];\n case 7:\n i++;\n return [3 /*break*/, 2];\n case 8:\n if (lastError) {\n throw lastError;\n }\n return [2 /*return*/, false];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype.supportsMultiDb = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._hasProtocolVersion(function (version) { return version >= BOLT_PROTOCOL_V4_0; })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype.supportsTransactionConfig = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._hasProtocolVersion(function (version) { return version >= BOLT_PROTOCOL_V3; })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype.supportsUserImpersonation = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._hasProtocolVersion(function (version) { return version >= BOLT_PROTOCOL_V4_4; })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype.forget = function (address, database) {\n this._routingTableRegistry.apply(database, {\n applyWhenExists: function (routingTable) { return routingTable.forget(address); }\n });\n // We're firing and forgetting this operation explicitly and listening for any\n // errors to avoid unhandled promise rejection\n this._connectionPool.purge(address).catch(function () { });\n };\n RoutingConnectionProvider.prototype.forgetWriter = function (address, database) {\n this._routingTableRegistry.apply(database, {\n applyWhenExists: function (routingTable) { return routingTable.forgetWriter(address); }\n });\n };\n RoutingConnectionProvider.prototype._acquireConnectionToServer = function (address, serverName, routingTable) {\n return this._connectionPool.acquire(address);\n };\n RoutingConnectionProvider.prototype._freshRoutingTable = function (_a) {\n var _b = _a === void 0 ? {} : _a, accessMode = _b.accessMode, database = _b.database, bookmark = _b.bookmark, impersonatedUser = _b.impersonatedUser, onDatabaseNameResolved = _b.onDatabaseNameResolved;\n var currentRoutingTable = this._routingTableRegistry.get(database, function () { return new rediscovery_1.RoutingTable({ database: database }); });\n if (!currentRoutingTable.isStaleFor(accessMode)) {\n return currentRoutingTable;\n }\n this._log.info(\"Routing table is stale for database: \\\"\" + database + \"\\\" and access mode: \\\"\" + accessMode + \"\\\": \" + currentRoutingTable);\n return this._refreshRoutingTable(currentRoutingTable, bookmark, impersonatedUser, onDatabaseNameResolved);\n };\n RoutingConnectionProvider.prototype._refreshRoutingTable = function (currentRoutingTable, bookmark, impersonatedUser, onDatabaseNameResolved) {\n var knownRouters = currentRoutingTable.routers;\n if (this._useSeedRouter) {\n return this._fetchRoutingTableFromSeedRouterFallbackToKnownRouters(knownRouters, currentRoutingTable, bookmark, impersonatedUser, onDatabaseNameResolved);\n }\n return this._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter(knownRouters, currentRoutingTable, bookmark, impersonatedUser, onDatabaseNameResolved);\n };\n RoutingConnectionProvider.prototype._fetchRoutingTableFromSeedRouterFallbackToKnownRouters = function (knownRouters, currentRoutingTable, bookmark, impersonatedUser, onDatabaseNameResolved) {\n return __awaiter(this, void 0, void 0, function () {\n var seenRouters, newRoutingTable;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n seenRouters = [];\n return [4 /*yield*/, this._fetchRoutingTableUsingSeedRouter(seenRouters, this._seedRouter, currentRoutingTable, bookmark, impersonatedUser)];\n case 1:\n newRoutingTable = _a.sent();\n if (!newRoutingTable) return [3 /*break*/, 2];\n this._useSeedRouter = false;\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, this._fetchRoutingTableUsingKnownRouters(knownRouters, currentRoutingTable, bookmark, impersonatedUser)];\n case 3:\n // seed router did not return a valid routing table - try to use other known routers\n newRoutingTable = _a.sent();\n _a.label = 4;\n case 4: return [4 /*yield*/, this._applyRoutingTableIfPossible(currentRoutingTable, newRoutingTable, onDatabaseNameResolved)];\n case 5: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter = function (knownRouters, currentRoutingTable, bookmark, impersonatedUser, onDatabaseNameResolved) {\n return __awaiter(this, void 0, void 0, function () {\n var newRoutingTable;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._fetchRoutingTableUsingKnownRouters(knownRouters, currentRoutingTable, bookmark, impersonatedUser)];\n case 1:\n newRoutingTable = _a.sent();\n if (!!newRoutingTable) return [3 /*break*/, 3];\n return [4 /*yield*/, this._fetchRoutingTableUsingSeedRouter(knownRouters, this._seedRouter, currentRoutingTable, bookmark, impersonatedUser)];\n case 2:\n // none of the known routers returned a valid routing table - try to use seed router address for rediscovery\n newRoutingTable = _a.sent();\n _a.label = 3;\n case 3: return [4 /*yield*/, this._applyRoutingTableIfPossible(currentRoutingTable, newRoutingTable, onDatabaseNameResolved)];\n case 4: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype._fetchRoutingTableUsingKnownRouters = function (knownRouters, currentRoutingTable, bookmark, impersonatedUser) {\n return __awaiter(this, void 0, void 0, function () {\n var newRoutingTable, lastRouterIndex;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._fetchRoutingTable(knownRouters, currentRoutingTable, bookmark, impersonatedUser)];\n case 1:\n newRoutingTable = _a.sent();\n if (newRoutingTable) {\n // one of the known routers returned a valid routing table - use it\n return [2 /*return*/, newRoutingTable];\n }\n lastRouterIndex = knownRouters.length - 1;\n RoutingConnectionProvider._forgetRouter(currentRoutingTable, knownRouters, lastRouterIndex);\n return [2 /*return*/, null];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype._fetchRoutingTableUsingSeedRouter = function (seenRouters, seedRouter, routingTable, bookmark, impersonatedUser) {\n return __awaiter(this, void 0, void 0, function () {\n var resolvedAddresses, newAddresses;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._resolveSeedRouter(seedRouter)\n // filter out all addresses that we've already tried\n ];\n case 1:\n resolvedAddresses = _a.sent();\n newAddresses = resolvedAddresses.filter(function (address) { return seenRouters.indexOf(address) < 0; });\n return [4 /*yield*/, this._fetchRoutingTable(newAddresses, routingTable, bookmark, impersonatedUser)];\n case 2: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype._resolveSeedRouter = function (seedRouter) {\n return __awaiter(this, void 0, void 0, function () {\n var resolvedAddresses, dnsResolvedAddresses;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._hostNameResolver.resolve(seedRouter)];\n case 1:\n resolvedAddresses = _a.sent();\n return [4 /*yield*/, Promise.all(resolvedAddresses.map(function (address) { return _this._dnsResolver.resolve(address); }))];\n case 2:\n dnsResolvedAddresses = _a.sent();\n return [2 /*return*/, [].concat.apply([], dnsResolvedAddresses)];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype._fetchRoutingTable = function (routerAddresses, routingTable, bookmark, impersonatedUser) {\n var _this = this;\n return routerAddresses.reduce(function (refreshedTablePromise, currentRouter, currentIndex) { return __awaiter(_this, void 0, void 0, function () {\n var newRoutingTable, previousRouterIndex, session, error_3;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, refreshedTablePromise];\n case 1:\n newRoutingTable = _a.sent();\n if (newRoutingTable) {\n // valid routing table was fetched - just return it, try next router otherwise\n return [2 /*return*/, newRoutingTable];\n }\n else {\n previousRouterIndex = currentIndex - 1;\n RoutingConnectionProvider._forgetRouter(routingTable, routerAddresses, previousRouterIndex);\n }\n return [4 /*yield*/, this._createSessionForRediscovery(currentRouter, bookmark, impersonatedUser)];\n case 2:\n session = _a.sent();\n if (!session) return [3 /*break*/, 8];\n _a.label = 3;\n case 3:\n _a.trys.push([3, 5, 6, 7]);\n return [4 /*yield*/, this._rediscovery.lookupRoutingTableOnRouter(session, routingTable.database, currentRouter, impersonatedUser)];\n case 4: return [2 /*return*/, _a.sent()];\n case 5:\n error_3 = _a.sent();\n if (error_3 && error_3.code === DATABASE_NOT_FOUND_ERROR_CODE) {\n // not finding the target database is a sign of a configuration issue\n throw error_3;\n }\n this._log.warn(\"unable to fetch routing table because of an error \" + error_3);\n return [2 /*return*/, null];\n case 6:\n session.close();\n return [7 /*endfinally*/];\n case 7: return [3 /*break*/, 9];\n case 8: \n // unable to acquire connection and create session towards the current router\n // return null to signal that the next router should be tried\n return [2 /*return*/, null];\n case 9: return [2 /*return*/];\n }\n });\n }); }, Promise.resolve(null));\n };\n RoutingConnectionProvider.prototype._createSessionForRediscovery = function (routerAddress, bookmark, impersonatedUser) {\n return __awaiter(this, void 0, void 0, function () {\n var connection, databaseSpecificErrorHandler, connectionProvider, protocolVersion, error_4;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n _a.trys.push([0, 2, , 3]);\n return [4 /*yield*/, this._connectionPool.acquire(routerAddress)];\n case 1:\n connection = _a.sent();\n databaseSpecificErrorHandler = connection_1.ConnectionErrorHandler.create({\n errorCode: SESSION_EXPIRED,\n handleAuthorizationExpired: function (error, address) { return _this._handleAuthorizationExpired(error, address); }\n });\n connectionProvider = new connection_provider_single_1.default(new connection_1.DelegateConnection(connection, databaseSpecificErrorHandler));\n protocolVersion = connection.protocol().version;\n if (protocolVersion < 4.0) {\n return [2 /*return*/, new neo4j_driver_core_1.Session({\n mode: WRITE,\n bookmark: Bookmark.empty(),\n connectionProvider: connectionProvider\n })];\n }\n return [2 /*return*/, new neo4j_driver_core_1.Session({\n mode: READ,\n database: SYSTEM_DB_NAME,\n bookmark: bookmark,\n connectionProvider: connectionProvider,\n impersonatedUser: impersonatedUser\n })];\n case 2:\n error_4 = _a.sent();\n // unable to acquire connection towards the given router\n if (error_4 && error_4.code === UNAUTHORIZED_ERROR_CODE) {\n // auth error and not finding system database is a sign of a configuration issue\n // discovery should not proceed\n throw error_4;\n }\n return [2 /*return*/, null];\n case 3: return [2 /*return*/];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype._applyRoutingTableIfPossible = function (currentRoutingTable, newRoutingTable, onDatabaseNameResolved) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!newRoutingTable) {\n // none of routing servers returned valid routing table, throw exception\n throw (0, neo4j_driver_core_1.newError)(\"Could not perform discovery. No routing servers available. Known routing table: \" + currentRoutingTable, SERVICE_UNAVAILABLE);\n }\n if (newRoutingTable.writers.length === 0) {\n // use seed router next time. this is important when cluster is partitioned. it tries to make sure driver\n // does not always get routing table without writers because it talks exclusively to a minority partition\n this._useSeedRouter = true;\n }\n return [4 /*yield*/, this._updateRoutingTable(newRoutingTable, onDatabaseNameResolved)];\n case 1:\n _a.sent();\n return [2 /*return*/, newRoutingTable];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype._updateRoutingTable = function (newRoutingTable, onDatabaseNameResolved) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: \n // close old connections to servers not present in the new routing table\n return [4 /*yield*/, this._connectionPool.keepAll(newRoutingTable.allServers())];\n case 1:\n // close old connections to servers not present in the new routing table\n _a.sent();\n this._routingTableRegistry.removeExpired();\n this._routingTableRegistry.register(newRoutingTable);\n onDatabaseNameResolved(newRoutingTable.database);\n this._log.info(\"Updated routing table \" + newRoutingTable);\n return [2 /*return*/];\n }\n });\n });\n };\n RoutingConnectionProvider._forgetRouter = function (routingTable, routersArray, routerIndex) {\n var address = routersArray[routerIndex];\n if (routingTable && address) {\n routingTable.forgetRouter(address);\n }\n };\n return RoutingConnectionProvider;\n}(connection_provider_pooled_1.default));\nexports.default = RoutingConnectionProvider;\n/**\n * Responsible for keeping track of the existing routing tables\n */\nvar RoutingTableRegistry = /** @class */ (function () {\n /**\n * Constructor\n * @param {int} routingTablePurgeDelay The routing table purge delay\n */\n function RoutingTableRegistry(routingTablePurgeDelay) {\n this._tables = new Map();\n this._routingTablePurgeDelay = routingTablePurgeDelay;\n }\n /**\n * Put a routing table in the registry\n *\n * @param {RoutingTable} table The routing table\n * @returns {RoutingTableRegistry} this\n */\n RoutingTableRegistry.prototype.register = function (table) {\n this._tables.set(table.database, table);\n return this;\n };\n /**\n * Apply function in the routing table for an specific database. If the database name is not defined, the function will\n * be applied for each element\n *\n * @param {string} database The database name\n * @param {object} callbacks The actions\n * @param {function (RoutingTable)} callbacks.applyWhenExists Call when the db exists or when the database property is not informed\n * @param {function ()} callbacks.applyWhenDontExists Call when the database doesn't have the routing table registred\n * @returns {RoutingTableRegistry} this\n */\n RoutingTableRegistry.prototype.apply = function (database, _a) {\n var _b = _a === void 0 ? {} : _a, applyWhenExists = _b.applyWhenExists, _c = _b.applyWhenDontExists, applyWhenDontExists = _c === void 0 ? function () { } : _c;\n if (this._tables.has(database)) {\n applyWhenExists(this._tables.get(database));\n }\n else if (typeof database === 'string' || database === null) {\n applyWhenDontExists();\n }\n else {\n this._forEach(applyWhenExists);\n }\n return this;\n };\n /**\n * Retrieves a routing table from a given database name\n *\n * @param {string|impersonatedUser} impersonatedUser The impersonated User\n * @param {string} database The database name\n * @param {function()|RoutingTable} defaultSupplier The routing table supplier, if it's not a function or not exists, it will return itself as default value\n * @returns {RoutingTable} The routing table for the respective database\n */\n RoutingTableRegistry.prototype.get = function (database, defaultSupplier) {\n if (this._tables.has(database)) {\n return this._tables.get(database);\n }\n return typeof defaultSupplier === 'function'\n ? defaultSupplier()\n : defaultSupplier;\n };\n /**\n * Remove the routing table which is already expired\n * @returns {RoutingTableRegistry} this\n */\n RoutingTableRegistry.prototype.removeExpired = function () {\n var _this = this;\n return this._removeIf(function (value) {\n return value.isExpiredFor(_this._routingTablePurgeDelay);\n });\n };\n RoutingTableRegistry.prototype._forEach = function (apply) {\n var e_1, _a;\n try {\n for (var _b = __values(this._tables), _c = _b.next(); !_c.done; _c = _b.next()) {\n var _d = __read(_c.value, 2), value = _d[1];\n apply(value);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n return this;\n };\n RoutingTableRegistry.prototype._remove = function (key) {\n this._tables.delete(key);\n return this;\n };\n RoutingTableRegistry.prototype._removeIf = function (predicate) {\n var e_2, _a;\n try {\n for (var _b = __values(this._tables), _c = _b.next(); !_c.done; _c = _b.next()) {\n var _d = __read(_c.value, 2), key = _d[0], value = _d[1];\n if (predicate(value)) {\n this._remove(key);\n }\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_2) throw e_2.error; }\n }\n return this;\n };\n return RoutingTableRegistry;\n}());\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar SingleConnectionProvider = /** @class */ (function (_super) {\n __extends(SingleConnectionProvider, _super);\n function SingleConnectionProvider(connection) {\n var _this = _super.call(this) || this;\n _this._connection = connection;\n return _this;\n }\n /**\n * See {@link ConnectionProvider} for more information about this method and\n * its arguments.\n */\n SingleConnectionProvider.prototype.acquireConnection = function (_a) {\n var _b = _a === void 0 ? {} : _a, accessMode = _b.accessMode, database = _b.database, bookmarks = _b.bookmarks;\n var connection = this._connection;\n this._connection = null;\n return Promise.resolve(connection);\n };\n return SingleConnectionProvider;\n}(neo4j_driver_core_1.ConnectionProvider));\nexports.default = SingleConnectionProvider;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RoutingConnectionProvider = exports.DirectConnectionProvider = exports.PooledConnectionProvider = exports.SingleConnectionProvider = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar connection_provider_single_1 = require(\"./connection-provider-single\");\nObject.defineProperty(exports, \"SingleConnectionProvider\", { enumerable: true, get: function () { return __importDefault(connection_provider_single_1).default; } });\nvar connection_provider_pooled_1 = require(\"./connection-provider-pooled\");\nObject.defineProperty(exports, \"PooledConnectionProvider\", { enumerable: true, get: function () { return __importDefault(connection_provider_pooled_1).default; } });\nvar connection_provider_direct_1 = require(\"./connection-provider-direct\");\nObject.defineProperty(exports, \"DirectConnectionProvider\", { enumerable: true, get: function () { return __importDefault(connection_provider_direct_1).default; } });\nvar connection_provider_routing_1 = require(\"./connection-provider-routing\");\nObject.defineProperty(exports, \"RoutingConnectionProvider\", { enumerable: true, get: function () { return __importDefault(connection_provider_routing_1).default; } });\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createChannelConnection = void 0;\nvar channel_1 = require(\"../channel\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar connection_1 = __importDefault(require(\"./connection\"));\nvar bolt_1 = __importDefault(require(\"../bolt\"));\nvar PROTOCOL_ERROR = neo4j_driver_core_1.error.PROTOCOL_ERROR;\nvar Logger = neo4j_driver_core_1.internal.logger.Logger;\nvar idGenerator = 0;\n/**\n * Crete new connection to the provided address. Returned connection is not connected.\n * @param {ServerAddress} address - the Bolt endpoint to connect to.\n * @param {Object} config - the driver configuration.\n * @param {ConnectionErrorHandler} errorHandler - the error handler for connection errors.\n * @param {Logger} log - configured logger.\n * @return {Connection} - new connection.\n */\nfunction createChannelConnection(address, config, errorHandler, log, serversideRouting, createChannel) {\n if (serversideRouting === void 0) { serversideRouting = null; }\n if (createChannel === void 0) { createChannel = function (channelConfig) { return new channel_1.Channel(channelConfig); }; }\n var channelConfig = new channel_1.ChannelConfig(address, config, errorHandler.errorCode());\n var channel = createChannel(channelConfig);\n return bolt_1.default.handshake(channel)\n .then(function (_a) {\n var version = _a.protocolVersion, consumeRemainingBuffer = _a.consumeRemainingBuffer;\n var chunker = new channel_1.Chunker(channel);\n var dechunker = new channel_1.Dechunker();\n var createProtocol = function (conn) {\n return bolt_1.default.create({\n version: version,\n channel: channel,\n chunker: chunker,\n dechunker: dechunker,\n disableLosslessIntegers: config.disableLosslessIntegers,\n useBigInt: config.useBigInt,\n serversideRouting: serversideRouting,\n server: conn.server,\n log: conn.logger,\n observer: {\n onPendingObserversChange: conn._handleOngoingRequestsNumberChange.bind(conn),\n onError: conn._handleFatalError.bind(conn),\n onFailure: conn._resetOnFailure.bind(conn),\n onProtocolError: conn._handleProtocolError.bind(conn),\n onErrorApplyTransformation: function (error) {\n return conn.handleAndTransformError(error, conn._address);\n }\n }\n });\n };\n var connection = new ChannelConnection(channel, errorHandler, address, log, config.disableLosslessIntegers, serversideRouting, chunker, createProtocol);\n // forward all pending bytes to the dechunker\n consumeRemainingBuffer(function (buffer) { return dechunker.write(buffer); });\n return connection;\n })\n .catch(function (reason) {\n return channel.close().then(function () {\n throw reason;\n });\n });\n}\nexports.createChannelConnection = createChannelConnection;\nvar ChannelConnection = /** @class */ (function (_super) {\n __extends(ChannelConnection, _super);\n /**\n * @constructor\n * @param {Channel} channel - channel with a 'write' function and a 'onmessage' callback property.\n * @param {ConnectionErrorHandler} errorHandler the error handler.\n * @param {ServerAddress} address - the server address to connect to.\n * @param {Logger} log - the configured logger.\n * @param {boolean} disableLosslessIntegers if this connection should convert all received integers to native JS numbers.\n * @param {Chunker} chunker the chunker\n * @param protocolSupplier Bolt protocol supplier\n */\n function ChannelConnection(channel, errorHandler, address, log, disableLosslessIntegers, serversideRouting, chunker, // to be removed,\n protocolSupplier) {\n if (disableLosslessIntegers === void 0) { disableLosslessIntegers = false; }\n if (serversideRouting === void 0) { serversideRouting = null; }\n var _this = _super.call(this, errorHandler) || this;\n _this._id = idGenerator++;\n _this._address = address;\n _this._server = { address: address.asHostPort() };\n _this.creationTimestamp = Date.now();\n _this._disableLosslessIntegers = disableLosslessIntegers;\n _this._ch = channel;\n _this._chunker = chunker;\n _this._log = createConnectionLogger(_this, log);\n _this._serversideRouting = serversideRouting;\n // connection from the database, returned in response for HELLO message and might not be available\n _this._dbConnectionId = null;\n // bolt protocol is initially not initialized\n /**\n * @private\n * @type {BoltProtocol}\n */\n _this._protocol = protocolSupplier(_this);\n // Set to true on fatal errors, to get this out of connection pool.\n _this._isBroken = false;\n if (_this._log.isDebugEnabled()) {\n _this._log.debug(\"created towards \" + address);\n }\n return _this;\n }\n Object.defineProperty(ChannelConnection.prototype, \"id\", {\n get: function () {\n return this._id;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(ChannelConnection.prototype, \"databaseId\", {\n get: function () {\n return this._dbConnectionId;\n },\n set: function (value) {\n this._dbConnectionId = value;\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Send initialization message.\n * @param {string} userAgent the user agent for this driver.\n * @param {Object} authToken the object containing auth information.\n * @return {Promise} promise resolved with the current connection if connection is successful. Rejected promise otherwise.\n */\n ChannelConnection.prototype.connect = function (userAgent, authToken) {\n return this._initialize(userAgent, authToken);\n };\n /**\n * Perform protocol-specific initialization which includes authentication.\n * @param {string} userAgent the user agent for this driver.\n * @param {Object} authToken the object containing auth information.\n * @return {Promise} promise resolved with the current connection if initialization is successful. Rejected promise otherwise.\n */\n ChannelConnection.prototype._initialize = function (userAgent, authToken) {\n var _this = this;\n var self = this;\n return new Promise(function (resolve, reject) {\n _this._protocol.initialize({\n userAgent: userAgent,\n authToken: authToken,\n onError: function (err) { return reject(err); },\n onComplete: function (metadata) {\n if (metadata) {\n // read server version from the response metadata, if it is available\n var serverVersion = metadata.server;\n if (!_this.version || serverVersion) {\n _this.version = serverVersion;\n }\n // read database connection id from the response metadata, if it is available\n var dbConnectionId = metadata.connection_id;\n if (!_this.databaseId) {\n _this.databaseId = dbConnectionId;\n }\n if (metadata.hints) {\n var receiveTimeoutRaw = metadata.hints['connection.recv_timeout_seconds'];\n if (receiveTimeoutRaw !== null &&\n receiveTimeoutRaw !== undefined) {\n var receiveTimeoutInSeconds = (0, neo4j_driver_core_1.toNumber)(receiveTimeoutRaw);\n if (Number.isInteger(receiveTimeoutInSeconds) &&\n receiveTimeoutInSeconds > 0) {\n _this._ch.setupReceiveTimeout(receiveTimeoutInSeconds * 1000);\n }\n else {\n _this._log.info(\"Server located at \" + _this._address + \" supplied an invalid connection receive timeout value (\" + receiveTimeoutInSeconds + \"). \" +\n 'Please, verify the server configuration and status because this can be the symptom of a bigger issue.');\n }\n }\n }\n }\n resolve(self);\n }\n });\n });\n };\n /**\n * Get the Bolt protocol for the connection.\n * @return {BoltProtocol} the protocol.\n */\n ChannelConnection.prototype.protocol = function () {\n return this._protocol;\n };\n Object.defineProperty(ChannelConnection.prototype, \"address\", {\n get: function () {\n return this._address;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(ChannelConnection.prototype, \"version\", {\n /**\n * Get the version of the connected server.\n * Available only after initialization\n *\n * @returns {ServerVersion} version\n */\n get: function () {\n return this._server.version;\n },\n set: function (value) {\n this._server.version = value;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(ChannelConnection.prototype, \"server\", {\n get: function () {\n return this._server;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(ChannelConnection.prototype, \"logger\", {\n get: function () {\n return this._log;\n },\n enumerable: false,\n configurable: true\n });\n /**\n * \"Fatal\" means the connection is dead. Only call this if something\n * happens that cannot be recovered from. This will lead to all subscribers\n * failing, and the connection getting ejected from the session pool.\n *\n * @param error an error object, forwarded to all current and future subscribers\n */\n ChannelConnection.prototype._handleFatalError = function (error) {\n this._isBroken = true;\n this._error = this.handleAndTransformError(this._protocol.currentFailure || error, this._address);\n if (this._log.isErrorEnabled()) {\n this._log.error(\"experienced a fatal error caused by \" + this._error + \" (\" + neo4j_driver_core_1.json.stringify(this._error) + \")\");\n }\n this._protocol.notifyFatalError(this._error);\n };\n /**\n * This method still here because it's used by the {@link PooledConnectionProvider}\n *\n * @param {any} observer\n */\n ChannelConnection.prototype._queueObserver = function (observer) {\n return this._protocol.queueObserverIfProtocolIsNotBroken(observer);\n };\n ChannelConnection.prototype.hasOngoingObservableRequests = function () {\n return this._protocol.hasOngoingObservableRequests();\n };\n /**\n * Send a RESET-message to the database. Message is immediately flushed to the network.\n * @return {Promise} promise resolved when SUCCESS-message response arrives, or failed when other response messages arrives.\n */\n ChannelConnection.prototype.resetAndFlush = function () {\n var _this = this;\n return new Promise(function (resolve, reject) {\n _this._protocol.reset({\n onError: function (error) {\n if (_this._isBroken) {\n // handling a fatal error, no need to raise a protocol violation\n reject(error);\n }\n else {\n var neo4jError = _this._handleProtocolError('Received FAILURE as a response for RESET: ' + error);\n reject(neo4jError);\n }\n },\n onComplete: function () {\n resolve();\n }\n });\n });\n };\n ChannelConnection.prototype._resetOnFailure = function () {\n var _this = this;\n if (!this.isOpen()) {\n return;\n }\n this._protocol.reset({\n onError: function () {\n _this._protocol.resetFailure();\n },\n onComplete: function () {\n _this._protocol.resetFailure();\n }\n });\n };\n /*\n * Pop next pending observer form the list of observers and make it current observer.\n * @protected\n */\n ChannelConnection.prototype._updateCurrentObserver = function () {\n this._protocol.updateCurrentObserver();\n };\n /** Check if this connection is in working condition */\n ChannelConnection.prototype.isOpen = function () {\n return !this._isBroken && this._ch._open;\n };\n /**\n * Starts and stops the receive timeout timer.\n * @param {number} requestsNumber Ongoing requests number\n */\n ChannelConnection.prototype._handleOngoingRequestsNumberChange = function (requestsNumber) {\n if (requestsNumber === 0) {\n this._ch.stopReceiveTimeout();\n }\n else {\n this._ch.startReceiveTimeout();\n }\n };\n /**\n * Call close on the channel.\n * @returns {Promise} - A promise that will be resolved when the underlying channel is closed.\n */\n ChannelConnection.prototype.close = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (this._log.isDebugEnabled()) {\n this._log.debug('closing');\n }\n if (this._protocol && this.isOpen()) {\n // protocol has been initialized and this connection is healthy\n // notify the database about the upcoming close of the connection\n this._protocol.prepareToClose();\n }\n return [4 /*yield*/, this._ch.close()];\n case 1:\n _a.sent();\n if (this._log.isDebugEnabled()) {\n this._log.debug('closed');\n }\n return [2 /*return*/];\n }\n });\n });\n };\n ChannelConnection.prototype.toString = function () {\n return \"Connection [\" + this.id + \"][\" + (this.databaseId || '') + \"]\";\n };\n ChannelConnection.prototype._handleProtocolError = function (message) {\n this._protocol.resetFailure();\n this._updateCurrentObserver();\n var error = (0, neo4j_driver_core_1.newError)(message, PROTOCOL_ERROR);\n this._handleFatalError(error);\n return error;\n };\n return ChannelConnection;\n}(connection_1.default));\nexports.default = ChannelConnection;\n/**\n * Creates a log with the connection info as prefix\n * @param {Connection} connection The connection\n * @param {Logger} logger The logger\n * @returns {Logger} The new logger with enriched messages\n */\nfunction createConnectionLogger(connection, logger) {\n return new Logger(logger._level, function (level, message) {\n return logger._loggerFunction(level, connection + \" \" + message);\n });\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar connection_1 = __importDefault(require(\"./connection\"));\nvar DelegateConnection = /** @class */ (function (_super) {\n __extends(DelegateConnection, _super);\n /**\n * @param delegate {Connection} the delegated connection\n * @param errorHandler {ConnectionErrorHandler} the error handler\n */\n function DelegateConnection(delegate, errorHandler) {\n var _this = _super.call(this, errorHandler) || this;\n if (errorHandler) {\n _this._originalErrorHandler = delegate._errorHandler;\n delegate._errorHandler = _this._errorHandler;\n }\n _this._delegate = delegate;\n return _this;\n }\n Object.defineProperty(DelegateConnection.prototype, \"id\", {\n get: function () {\n return this._delegate.id;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(DelegateConnection.prototype, \"databaseId\", {\n get: function () {\n return this._delegate.databaseId;\n },\n set: function (value) {\n this._delegate.databaseId = value;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(DelegateConnection.prototype, \"server\", {\n get: function () {\n return this._delegate.server;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(DelegateConnection.prototype, \"address\", {\n get: function () {\n return this._delegate.address;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(DelegateConnection.prototype, \"version\", {\n get: function () {\n return this._delegate.version;\n },\n set: function (value) {\n this._delegate.version = value;\n },\n enumerable: false,\n configurable: true\n });\n DelegateConnection.prototype.isOpen = function () {\n return this._delegate.isOpen();\n };\n DelegateConnection.prototype.protocol = function () {\n return this._delegate.protocol();\n };\n DelegateConnection.prototype.connect = function (userAgent, authToken) {\n return this._delegate.connect(userAgent, authToken);\n };\n DelegateConnection.prototype.write = function (message, observer, flush) {\n return this._delegate.write(message, observer, flush);\n };\n DelegateConnection.prototype.resetAndFlush = function () {\n return this._delegate.resetAndFlush();\n };\n DelegateConnection.prototype.close = function () {\n return this._delegate.close();\n };\n DelegateConnection.prototype._release = function () {\n if (this._originalErrorHandler) {\n this._delegate._errorHandler = this._originalErrorHandler;\n }\n return this._delegate._release();\n };\n return DelegateConnection;\n}(connection_1.default));\nexports.default = DelegateConnection;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar SERVICE_UNAVAILABLE = neo4j_driver_core_1.error.SERVICE_UNAVAILABLE, SESSION_EXPIRED = neo4j_driver_core_1.error.SESSION_EXPIRED;\nvar ConnectionErrorHandler = /** @class */ (function () {\n function ConnectionErrorHandler(errorCode, handleUnavailability, handleWriteFailure, handleAuthorizationExpired) {\n this._errorCode = errorCode;\n this._handleUnavailability = handleUnavailability || noOpHandler;\n this._handleWriteFailure = handleWriteFailure || noOpHandler;\n this._handleAuthorizationExpired = handleAuthorizationExpired || noOpHandler;\n }\n ConnectionErrorHandler.create = function (_a) {\n var errorCode = _a.errorCode, handleUnavailability = _a.handleUnavailability, handleWriteFailure = _a.handleWriteFailure, handleAuthorizationExpired = _a.handleAuthorizationExpired;\n return new ConnectionErrorHandler(errorCode, handleUnavailability, handleWriteFailure, handleAuthorizationExpired);\n };\n /**\n * Error code to use for network errors.\n * @return {string} the error code.\n */\n ConnectionErrorHandler.prototype.errorCode = function () {\n return this._errorCode;\n };\n /**\n * Handle and transform the error.\n * @param {Neo4jError} error the original error.\n * @param {ServerAddress} address the address of the connection where the error happened.\n * @return {Neo4jError} new error that should be propagated to the user.\n */\n ConnectionErrorHandler.prototype.handleAndTransformError = function (error, address) {\n if (isAutorizationExpiredError(error)) {\n return this._handleAuthorizationExpired(error, address);\n }\n if (isAvailabilityError(error)) {\n return this._handleUnavailability(error, address);\n }\n if (isFailureToWrite(error)) {\n return this._handleWriteFailure(error, address);\n }\n return error;\n };\n return ConnectionErrorHandler;\n}());\nexports.default = ConnectionErrorHandler;\nfunction isAutorizationExpiredError(error) {\n return error && (error.code === 'Neo.ClientError.Security.AuthorizationExpired' ||\n error.code === 'Neo.ClientError.Security.TokenExpired');\n}\nfunction isAvailabilityError(error) {\n if (error) {\n return (error.code === SESSION_EXPIRED ||\n error.code === SERVICE_UNAVAILABLE ||\n error.code === 'Neo.TransientError.General.DatabaseUnavailable');\n }\n return false;\n}\nfunction isFailureToWrite(error) {\n if (error) {\n return (error.code === 'Neo.ClientError.Cluster.NotALeader' ||\n error.code === 'Neo.ClientError.General.ForbiddenOnReadOnlyDatabase');\n }\n return false;\n}\nfunction noOpHandler(error) {\n return error;\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Connection = /** @class */ (function () {\n /**\n * @param {ConnectionErrorHandler} errorHandler the error handler\n */\n function Connection(errorHandler) {\n this._errorHandler = errorHandler;\n }\n Object.defineProperty(Connection.prototype, \"id\", {\n get: function () {\n throw new Error('not implemented');\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Connection.prototype, \"databaseId\", {\n get: function () {\n throw new Error('not implemented');\n },\n set: function (value) {\n throw new Error('not implemented');\n },\n enumerable: false,\n configurable: true\n });\n /**\n * @returns {boolean} whether this connection is in a working condition\n */\n Connection.prototype.isOpen = function () {\n throw new Error('not implemented');\n };\n /**\n * @returns {BoltProtocol} the underlying bolt protocol assigned to this connection\n */\n Connection.prototype.protocol = function () {\n throw new Error('not implemented');\n };\n Object.defineProperty(Connection.prototype, \"address\", {\n /**\n * @returns {ServerAddress} the server address this connection is opened against\n */\n get: function () {\n throw new Error('not implemented');\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Connection.prototype, \"version\", {\n /**\n * @returns {ServerVersion} the version of the server this connection is connected to\n */\n get: function () {\n throw new Error('not implemented');\n },\n set: function (value) {\n throw new Error('not implemented');\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Connection.prototype, \"server\", {\n get: function () {\n throw new Error('not implemented');\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Connect to the target address, negotiate Bolt protocol and send initialization message.\n * @param {string} userAgent the user agent for this driver.\n * @param {Object} authToken the object containing auth information.\n * @return {Promise} promise resolved with the current connection if connection is successful. Rejected promise otherwise.\n */\n Connection.prototype.connect = function (userAgent, authToken) {\n throw new Error('not implemented');\n };\n /**\n * Write a message to the network channel.\n * @param {RequestMessage} message the message to write.\n * @param {ResultStreamObserver} observer the response observer.\n * @param {boolean} flush `true` if flush should happen after the message is written to the buffer.\n */\n Connection.prototype.write = function (message, observer, flush) {\n throw new Error('not implemented');\n };\n /**\n * Send a RESET-message to the database. Message is immediately flushed to the network.\n * @return {Promise} promise resolved when SUCCESS-message response arrives, or failed when other response messages arrives.\n */\n Connection.prototype.resetAndFlush = function () {\n throw new Error('not implemented');\n };\n /**\n * Call close on the channel.\n * @returns {Promise} - A promise that will be resolved when the connection is closed.\n *\n */\n Connection.prototype.close = function () {\n throw new Error('not implemented');\n };\n /**\n *\n * @param error\n * @param address\n * @returns {Neo4jError|*}\n */\n Connection.prototype.handleAndTransformError = function (error, address) {\n if (this._errorHandler) {\n return this._errorHandler.handleAndTransformError(error, address);\n }\n return error;\n };\n return Connection;\n}());\nexports.default = Connection;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createChannelConnection = exports.ConnectionErrorHandler = exports.DelegateConnection = exports.ChannelConnection = exports.Connection = void 0;\nvar connection_1 = __importDefault(require(\"./connection\"));\nexports.Connection = connection_1.default;\nvar connection_channel_1 = __importStar(require(\"./connection-channel\"));\nexports.ChannelConnection = connection_channel_1.default;\nObject.defineProperty(exports, \"createChannelConnection\", { enumerable: true, get: function () { return connection_channel_1.createChannelConnection; } });\nvar connection_delegate_1 = __importDefault(require(\"./connection-delegate\"));\nexports.DelegateConnection = connection_delegate_1.default;\nvar connection_error_handler_1 = __importDefault(require(\"./connection-error-handler\"));\nexports.ConnectionErrorHandler = connection_error_handler_1.default;\nexports.default = connection_1.default;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.pool = exports.packstream = exports.channel = exports.buf = exports.bolt = exports.loadBalancing = void 0;\nexports.loadBalancing = __importStar(require(\"./load-balancing\"));\nexports.bolt = __importStar(require(\"./bolt\"));\nexports.buf = __importStar(require(\"./buf\"));\nexports.channel = __importStar(require(\"./channel\"));\nexports.packstream = __importStar(require(\"./packstream\"));\nexports.pool = __importStar(require(\"./pool\"));\n__exportStar(require(\"./connection-provider\"), exports);\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.LeastConnectedLoadBalancingStrategy = exports.LoadBalancingStrategy = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar load_balancing_strategy_1 = __importDefault(require(\"./load-balancing-strategy\"));\nexports.LoadBalancingStrategy = load_balancing_strategy_1.default;\nvar least_connected_load_balancing_strategy_1 = __importDefault(require(\"./least-connected-load-balancing-strategy\"));\nexports.LeastConnectedLoadBalancingStrategy = least_connected_load_balancing_strategy_1.default;\nexports.default = least_connected_load_balancing_strategy_1.default;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar round_robin_array_index_1 = __importDefault(require(\"./round-robin-array-index\"));\nvar load_balancing_strategy_1 = __importDefault(require(\"./load-balancing-strategy\"));\nvar LeastConnectedLoadBalancingStrategy = /** @class */ (function (_super) {\n __extends(LeastConnectedLoadBalancingStrategy, _super);\n /**\n * @constructor\n * @param {Pool} connectionPool the connection pool of this driver.\n */\n function LeastConnectedLoadBalancingStrategy(connectionPool) {\n var _this = _super.call(this) || this;\n _this._readersIndex = new round_robin_array_index_1.default();\n _this._writersIndex = new round_robin_array_index_1.default();\n _this._connectionPool = connectionPool;\n return _this;\n }\n /**\n * @inheritDoc\n */\n LeastConnectedLoadBalancingStrategy.prototype.selectReader = function (knownReaders) {\n return this._select(knownReaders, this._readersIndex);\n };\n /**\n * @inheritDoc\n */\n LeastConnectedLoadBalancingStrategy.prototype.selectWriter = function (knownWriters) {\n return this._select(knownWriters, this._writersIndex);\n };\n LeastConnectedLoadBalancingStrategy.prototype._select = function (addresses, roundRobinIndex) {\n var length = addresses.length;\n if (length === 0) {\n return null;\n }\n // choose start index for iteration in round-robin fashion\n var startIndex = roundRobinIndex.next(length);\n var index = startIndex;\n var leastConnectedAddress = null;\n var leastActiveConnections = Number.MAX_SAFE_INTEGER;\n // iterate over the array to find least connected address\n do {\n var address = addresses[index];\n var activeConnections = this._connectionPool.activeResourceCount(address);\n if (activeConnections < leastActiveConnections) {\n leastConnectedAddress = address;\n leastActiveConnections = activeConnections;\n }\n // loop over to the start of the array when end is reached\n if (index === length - 1) {\n index = 0;\n }\n else {\n index++;\n }\n } while (index !== startIndex);\n return leastConnectedAddress;\n };\n return LeastConnectedLoadBalancingStrategy;\n}(load_balancing_strategy_1.default));\nexports.default = LeastConnectedLoadBalancingStrategy;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * A facility to select most appropriate reader or writer among the given addresses for request processing.\n */\nvar LoadBalancingStrategy = /** @class */ (function () {\n function LoadBalancingStrategy() {\n }\n /**\n * Select next most appropriate reader from the list of given readers.\n * @param {string[]} knownReaders an array of currently known readers to select from.\n * @return {string} most appropriate reader or `null` if given array is empty.\n */\n LoadBalancingStrategy.prototype.selectReader = function (knownReaders) {\n throw new Error('Abstract function');\n };\n /**\n * Select next most appropriate writer from the list of given writers.\n * @param {string[]} knownWriters an array of currently known writers to select from.\n * @return {string} most appropriate writer or `null` if given array is empty.\n */\n LoadBalancingStrategy.prototype.selectWriter = function (knownWriters) {\n throw new Error('Abstract function');\n };\n return LoadBalancingStrategy;\n}());\nexports.default = LoadBalancingStrategy;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar RoundRobinArrayIndex = /** @class */ (function () {\n /**\n * @constructor\n * @param {number} [initialOffset=0] the initial offset for round robin.\n */\n function RoundRobinArrayIndex(initialOffset) {\n this._offset = initialOffset || 0;\n }\n /**\n * Get next index for an array with given length.\n * @param {number} arrayLength the array length.\n * @return {number} index in the array.\n */\n RoundRobinArrayIndex.prototype.next = function (arrayLength) {\n if (arrayLength === 0) {\n return -1;\n }\n var nextOffset = this._offset;\n this._offset += 1;\n if (this._offset === Number.MAX_SAFE_INTEGER) {\n this._offset = 0;\n }\n return nextOffset % arrayLength;\n };\n return RoundRobinArrayIndex;\n}());\nexports.default = RoundRobinArrayIndex;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.v2 = exports.v1 = void 0;\nvar v1 = __importStar(require(\"./packstream-v1\"));\nexports.v1 = v1;\nvar v2 = __importStar(require(\"./packstream-v2\"));\nexports.v2 = v2;\nexports.default = v2;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.packDateTime = exports.unpackDateTimeWithZoneId = exports.unpackDateTimeWithZoneOffset = exports.DATE_TIME_WITH_ZONE_ID = exports.DATE_TIME_WITH_ZONE_OFFSET = void 0;\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar temporal_factory_1 = require(\"./temporal-factory\");\nvar localDateTimeToEpochSecond = neo4j_driver_core_1.internal.temporalUtil.localDateTimeToEpochSecond;\nexports.DATE_TIME_WITH_ZONE_OFFSET = 0x49;\nvar DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE = 3;\nexports.DATE_TIME_WITH_ZONE_ID = 0x69;\nvar DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE = 3;\n/**\n* Unpack date time with zone offset value using the given unpacker.\n* @param {Unpacker} unpacker the unpacker to use.\n* @param {number} structSize the retrieved struct size.\n* @param {BaseBuffer} buffer the buffer to unpack from.\n* @param {boolean} disableLosslessIntegers if integer properties in the result date-time should be native JS numbers.\n* @return {DateTime} the unpacked date time with zone offset value.\n*/\nfunction unpackDateTimeWithZoneOffset(unpacker, structSize, buffer, disableLosslessIntegers, useBigInt) {\n unpacker._verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE, structSize);\n var utcSecond = unpacker.unpackInteger(buffer);\n var nano = unpacker.unpackInteger(buffer);\n var timeZoneOffsetSeconds = unpacker.unpackInteger(buffer);\n var epochSecond = (0, neo4j_driver_core_1.int)(utcSecond).add(timeZoneOffsetSeconds);\n var localDateTime = (0, temporal_factory_1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);\n var result = new neo4j_driver_core_1.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, timeZoneOffsetSeconds, null);\n return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);\n}\nexports.unpackDateTimeWithZoneOffset = unpackDateTimeWithZoneOffset;\n/**\n * Unpack date time with zone id value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @param {boolean} disableLosslessIntegers if integer properties in the result date-time should be native JS numbers.\n * @return {DateTime} the unpacked date time with zone id value.\n */\nfunction unpackDateTimeWithZoneId(unpacker, structSize, buffer, disableLosslessIntegers, useBigInt) {\n unpacker._verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE, structSize);\n var epochSecond = unpacker.unpackInteger(buffer);\n var nano = unpacker.unpackInteger(buffer);\n var timeZoneId = unpacker.unpack(buffer);\n var localDateTime = getTimeInZoneId(timeZoneId, epochSecond, nano);\n var result = new neo4j_driver_core_1.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, (0, neo4j_driver_core_1.int)(nano), localDateTime.timeZoneOffsetSeconds, timeZoneId);\n return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);\n}\nexports.unpackDateTimeWithZoneId = unpackDateTimeWithZoneId;\n/*\n* Pack given date time.\n* @param {DateTime} value the date time value to pack.\n* @param {Packer} packer the packer to use.\n*/\nfunction packDateTime(value, packer) {\n if (value.timeZoneId) {\n packDateTimeWithZoneId(value, packer);\n }\n else {\n packDateTimeWithZoneOffset(value, packer);\n }\n}\nexports.packDateTime = packDateTime;\n/**\n * Pack given date time with zone id.\n * @param {DateTime} value the date time value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packDateTimeWithZoneId(value, packer) {\n var epochSecond = localDateTimeToEpochSecond(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);\n var offset = value.timeZoneOffsetSeconds != null\n ? value.timeZoneOffsetSeconds\n : getOffsetFromZoneId(value.timeZoneId, epochSecond, value.nanosecond);\n var utc = epochSecond.subtract(offset);\n var nano = (0, neo4j_driver_core_1.int)(value.nanosecond);\n var timeZoneId = value.timeZoneId;\n var packableStructFields = [\n packer.packable(utc),\n packer.packable(nano),\n packer.packable(timeZoneId)\n ];\n packer.packStruct(exports.DATE_TIME_WITH_ZONE_ID, packableStructFields);\n}\n/**\n * Pack given date time with zone offset.\n * @param {DateTime} value the date time value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packDateTimeWithZoneOffset(value, packer) {\n var epochSecond = localDateTimeToEpochSecond(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);\n var nano = (0, neo4j_driver_core_1.int)(value.nanosecond);\n var timeZoneOffsetSeconds = (0, neo4j_driver_core_1.int)(value.timeZoneOffsetSeconds);\n var utcSecond = epochSecond.subtract(timeZoneOffsetSeconds);\n var packableStructFields = [\n packer.packable(utcSecond),\n packer.packable(nano),\n packer.packable(timeZoneOffsetSeconds)\n ];\n packer.packStruct(exports.DATE_TIME_WITH_ZONE_OFFSET, packableStructFields);\n}\n/**\n * Returns the offset for a given timezone id\n *\n * Javascript doesn't have support for direct getting the timezone offset from a given\n * TimeZoneId and DateTime in the given TimeZoneId. For solving this issue,\n *\n * 1. The ZoneId is applied to the timestamp, so we could make the difference between the\n * given timestamp and the new calculated one. This is the offset for the timezone\n * in the utc is equal to epoch (some time in the future or past)\n * 2. The offset is subtracted from the timestamp, so we have an estimated utc timestamp.\n * 3. The ZoneId is applied to the new timestamp, se we could could make the difference\n * between the new timestamp and the calculated one. This is the offset for the given timezone.\n *\n * Example:\n * Input: 2022-3-27 1:59:59 'Europe/Berlin'\n * Apply 1, 2022-3-27 1:59:59 => 2022-3-27 3:59:59 'Europe/Berlin' +2:00\n * Apply 2, 2022-3-27 1:59:59 - 2:00 => 2022-3-26 23:59:59\n * Apply 3, 2022-3-26 23:59:59 => 2022-3-27 00:59:59 'Europe/Berlin' +1:00\n * The offset is +1 hour.\n *\n * @param {string} timeZoneId The timezone id\n * @param {Integer} epochSecond The epoch second in the timezone id\n * @param {Integerable} nanosecond The nanoseconds in the timezone id\n * @returns The timezone offset\n */\nfunction getOffsetFromZoneId(timeZoneId, epochSecond, nanosecond) {\n var dateTimeWithZoneAppliedTwice = getTimeInZoneId(timeZoneId, epochSecond, nanosecond);\n // The wallclock form the current date time\n var epochWithZoneAppliedTwice = localDateTimeToEpochSecond(dateTimeWithZoneAppliedTwice.year, dateTimeWithZoneAppliedTwice.month, dateTimeWithZoneAppliedTwice.day, dateTimeWithZoneAppliedTwice.hour, dateTimeWithZoneAppliedTwice.minute, dateTimeWithZoneAppliedTwice.second, nanosecond);\n var offsetOfZoneInTheFutureUtc = epochWithZoneAppliedTwice.subtract(epochSecond);\n var guessedUtc = epochSecond.subtract(offsetOfZoneInTheFutureUtc);\n var zonedDateTimeFromGuessedUtc = getTimeInZoneId(timeZoneId, guessedUtc, nanosecond);\n var zonedEpochFromGuessedUtc = localDateTimeToEpochSecond(zonedDateTimeFromGuessedUtc.year, zonedDateTimeFromGuessedUtc.month, zonedDateTimeFromGuessedUtc.day, zonedDateTimeFromGuessedUtc.hour, zonedDateTimeFromGuessedUtc.minute, zonedDateTimeFromGuessedUtc.second, nanosecond);\n var offset = zonedEpochFromGuessedUtc.subtract(guessedUtc);\n return offset;\n}\nfunction getTimeInZoneId(timeZoneId, epochSecond, nano) {\n var formatter = new Intl.DateTimeFormat('en-US', {\n timeZone: timeZoneId,\n year: 'numeric',\n month: 'numeric',\n day: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n second: 'numeric',\n hour12: false,\n era: 'narrow'\n });\n var utc = (0, neo4j_driver_core_1.int)(epochSecond)\n .multiply(1000)\n .add((0, neo4j_driver_core_1.int)(nano).div(1000000))\n .toNumber();\n var formattedUtcParts = formatter.formatToParts(utc);\n var localDateTime = formattedUtcParts.reduce(function (obj, currentValue) {\n if (currentValue.type === 'era') {\n obj.adjustEra =\n currentValue.value.toUpperCase() === 'B'\n ? function (year) { return year.subtract(1).negate(); } // 1BC equals to year 0 in astronomical year numbering\n : function (year) { return year; };\n }\n else if (currentValue.type !== 'literal') {\n obj[currentValue.type] = (0, neo4j_driver_core_1.int)(currentValue.value);\n }\n return obj;\n }, {});\n localDateTime.year = localDateTime.adjustEra(localDateTime.year);\n var epochInTimeZone = localDateTimeToEpochSecond(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond);\n localDateTime.timeZoneOffsetSeconds = epochInTimeZone.subtract(epochSecond);\n localDateTime.hour = localDateTime.hour.modulo(24);\n return localDateTime;\n}\nfunction convertIntegerPropsIfNeeded(obj, disableLosslessIntegers, useBigInt) {\n if (!disableLosslessIntegers && !useBigInt) {\n return obj;\n }\n var convert = function (value) {\n return useBigInt ? value.toBigInt() : value.toNumberOrInfinity();\n };\n var clone = Object.create(Object.getPrototypeOf(obj));\n for (var prop in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {\n var value = obj[prop];\n clone[prop] = (0, neo4j_driver_core_1.isInt)(value) ? convert(value) : value;\n }\n }\n Object.freeze(clone);\n return clone;\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Structure = exports.Unpacker = exports.Packer = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar channel_1 = require(\"../channel\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar objectUtil = neo4j_driver_core_1.internal.objectUtil;\nvar PROTOCOL_ERROR = neo4j_driver_core_1.error.PROTOCOL_ERROR;\nvar TINY_STRING = 0x80;\nvar TINY_LIST = 0x90;\nvar TINY_MAP = 0xa0;\nvar TINY_STRUCT = 0xb0;\nvar NULL = 0xc0;\nvar FLOAT_64 = 0xc1;\nvar FALSE = 0xc2;\nvar TRUE = 0xc3;\nvar INT_8 = 0xc8;\nvar INT_16 = 0xc9;\nvar INT_32 = 0xca;\nvar INT_64 = 0xcb;\nvar STRING_8 = 0xd0;\nvar STRING_16 = 0xd1;\nvar STRING_32 = 0xd2;\nvar LIST_8 = 0xd4;\nvar LIST_16 = 0xd5;\nvar LIST_32 = 0xd6;\nvar BYTES_8 = 0xcc;\nvar BYTES_16 = 0xcd;\nvar BYTES_32 = 0xce;\nvar MAP_8 = 0xd8;\nvar MAP_16 = 0xd9;\nvar MAP_32 = 0xda;\nvar STRUCT_8 = 0xdc;\nvar STRUCT_16 = 0xdd;\nvar NODE = 0x4e;\nvar NODE_STRUCT_SIZE = 3;\nvar RELATIONSHIP = 0x52;\nvar RELATIONSHIP_STRUCT_SIZE = 5;\nvar UNBOUND_RELATIONSHIP = 0x72;\nvar UNBOUND_RELATIONSHIP_STRUCT_SIZE = 3;\nvar PATH = 0x50;\nvar PATH_STRUCT_SIZE = 3;\n/**\n * A Structure have a signature and fields.\n * @access private\n */\nvar Structure = /** @class */ (function () {\n /**\n * Create new instance\n */\n function Structure(signature, fields) {\n this.signature = signature;\n this.fields = fields;\n }\n Structure.prototype.toString = function () {\n var fieldStr = '';\n for (var i = 0; i < this.fields.length; i++) {\n if (i > 0) {\n fieldStr += ', ';\n }\n fieldStr += this.fields[i];\n }\n return 'Structure(' + this.signature + ', [' + fieldStr + '])';\n };\n return Structure;\n}());\nexports.Structure = Structure;\n/**\n * Class to pack\n * @access private\n */\nvar Packer = /** @class */ (function () {\n /**\n * @constructor\n * @param {Chunker} channel the chunker backed by a network channel.\n */\n function Packer(channel) {\n this._ch = channel;\n this._byteArraysSupported = true;\n }\n /**\n * Creates a packable function out of the provided value\n * @param x the value to pack\n * @returns Function\n */\n Packer.prototype.packable = function (x) {\n var _this = this;\n if (x === null) {\n return function () { return _this._ch.writeUInt8(NULL); };\n }\n else if (x === true) {\n return function () { return _this._ch.writeUInt8(TRUE); };\n }\n else if (x === false) {\n return function () { return _this._ch.writeUInt8(FALSE); };\n }\n else if (typeof x === 'number') {\n return function () { return _this.packFloat(x); };\n }\n else if (typeof x === 'string') {\n return function () { return _this.packString(x); };\n }\n else if (typeof x === 'bigint') {\n return function () { return _this.packInteger((0, neo4j_driver_core_1.int)(x)); };\n }\n else if ((0, neo4j_driver_core_1.isInt)(x)) {\n return function () { return _this.packInteger(x); };\n }\n else if (x instanceof Int8Array) {\n return function () { return _this.packBytes(x); };\n }\n else if (x instanceof Array) {\n return function () {\n _this.packListHeader(x.length);\n for (var i_1 = 0; i_1 < x.length; i_1++) {\n _this.packable(x[i_1] === undefined ? null : x[i_1])();\n }\n };\n }\n else if (isIterable(x)) {\n return this.packableIterable(x);\n }\n else if (x instanceof neo4j_driver_core_1.Node) {\n return this._nonPackableValue(\"It is not allowed to pass nodes in query parameters, given: \" + x);\n }\n else if (x instanceof neo4j_driver_core_1.Relationship) {\n return this._nonPackableValue(\"It is not allowed to pass relationships in query parameters, given: \" + x);\n }\n else if (x instanceof neo4j_driver_core_1.Path) {\n return this._nonPackableValue(\"It is not allowed to pass paths in query parameters, given: \" + x);\n }\n else if (x instanceof Structure) {\n var packableFields = [];\n for (var i = 0; i < x.fields.length; i++) {\n packableFields[i] = this.packable(x.fields[i]);\n }\n return function () { return _this.packStruct(x.signature, packableFields); };\n }\n else if (typeof x === 'object') {\n return function () {\n var keys = Object.keys(x);\n var count = 0;\n for (var i_2 = 0; i_2 < keys.length; i_2++) {\n if (x[keys[i_2]] !== undefined) {\n count++;\n }\n }\n _this.packMapHeader(count);\n for (var i_3 = 0; i_3 < keys.length; i_3++) {\n var key = keys[i_3];\n if (x[key] !== undefined) {\n _this.packString(key);\n _this.packable(x[key])();\n }\n }\n };\n }\n else {\n return this._nonPackableValue(\"Unable to pack the given value: \" + x);\n }\n };\n Packer.prototype.packableIterable = function (iterable) {\n try {\n var array = Array.from(iterable);\n return this.packable(array);\n }\n catch (e) {\n // handle errors from iterable to array conversion\n throw (0, neo4j_driver_core_1.newError)(\"Cannot pack given iterable, \" + e.message + \": \" + iterable);\n }\n };\n /**\n * Packs a struct\n * @param signature the signature of the struct\n * @param packableFields the fields of the struct, make sure you call `packable on all fields`\n */\n Packer.prototype.packStruct = function (signature, packableFields) {\n packableFields = packableFields || [];\n this.packStructHeader(packableFields.length, signature);\n for (var i = 0; i < packableFields.length; i++) {\n packableFields[i]();\n }\n };\n Packer.prototype.packInteger = function (x) {\n var high = x.high;\n var low = x.low;\n if (x.greaterThanOrEqual(-0x10) && x.lessThan(0x80)) {\n this._ch.writeInt8(low);\n }\n else if (x.greaterThanOrEqual(-0x80) && x.lessThan(-0x10)) {\n this._ch.writeUInt8(INT_8);\n this._ch.writeInt8(low);\n }\n else if (x.greaterThanOrEqual(-0x8000) && x.lessThan(0x8000)) {\n this._ch.writeUInt8(INT_16);\n this._ch.writeInt16(low);\n }\n else if (x.greaterThanOrEqual(-0x80000000) && x.lessThan(0x80000000)) {\n this._ch.writeUInt8(INT_32);\n this._ch.writeInt32(low);\n }\n else {\n this._ch.writeUInt8(INT_64);\n this._ch.writeInt32(high);\n this._ch.writeInt32(low);\n }\n };\n Packer.prototype.packFloat = function (x) {\n this._ch.writeUInt8(FLOAT_64);\n this._ch.writeFloat64(x);\n };\n Packer.prototype.packString = function (x) {\n var bytes = channel_1.utf8.encode(x);\n var size = bytes.length;\n if (size < 0x10) {\n this._ch.writeUInt8(TINY_STRING | size);\n this._ch.writeBytes(bytes);\n }\n else if (size < 0x100) {\n this._ch.writeUInt8(STRING_8);\n this._ch.writeUInt8(size);\n this._ch.writeBytes(bytes);\n }\n else if (size < 0x10000) {\n this._ch.writeUInt8(STRING_16);\n this._ch.writeUInt8((size / 256) >> 0);\n this._ch.writeUInt8(size % 256);\n this._ch.writeBytes(bytes);\n }\n else if (size < 0x100000000) {\n this._ch.writeUInt8(STRING_32);\n this._ch.writeUInt8(((size / 16777216) >> 0) % 256);\n this._ch.writeUInt8(((size / 65536) >> 0) % 256);\n this._ch.writeUInt8(((size / 256) >> 0) % 256);\n this._ch.writeUInt8(size % 256);\n this._ch.writeBytes(bytes);\n }\n else {\n throw (0, neo4j_driver_core_1.newError)('UTF-8 strings of size ' + size + ' are not supported');\n }\n };\n Packer.prototype.packListHeader = function (size) {\n if (size < 0x10) {\n this._ch.writeUInt8(TINY_LIST | size);\n }\n else if (size < 0x100) {\n this._ch.writeUInt8(LIST_8);\n this._ch.writeUInt8(size);\n }\n else if (size < 0x10000) {\n this._ch.writeUInt8(LIST_16);\n this._ch.writeUInt8(((size / 256) >> 0) % 256);\n this._ch.writeUInt8(size % 256);\n }\n else if (size < 0x100000000) {\n this._ch.writeUInt8(LIST_32);\n this._ch.writeUInt8(((size / 16777216) >> 0) % 256);\n this._ch.writeUInt8(((size / 65536) >> 0) % 256);\n this._ch.writeUInt8(((size / 256) >> 0) % 256);\n this._ch.writeUInt8(size % 256);\n }\n else {\n throw (0, neo4j_driver_core_1.newError)('Lists of size ' + size + ' are not supported');\n }\n };\n Packer.prototype.packBytes = function (array) {\n if (this._byteArraysSupported) {\n this.packBytesHeader(array.length);\n for (var i = 0; i < array.length; i++) {\n this._ch.writeInt8(array[i]);\n }\n }\n else {\n throw (0, neo4j_driver_core_1.newError)('Byte arrays are not supported by the database this driver is connected to');\n }\n };\n Packer.prototype.packBytesHeader = function (size) {\n if (size < 0x100) {\n this._ch.writeUInt8(BYTES_8);\n this._ch.writeUInt8(size);\n }\n else if (size < 0x10000) {\n this._ch.writeUInt8(BYTES_16);\n this._ch.writeUInt8(((size / 256) >> 0) % 256);\n this._ch.writeUInt8(size % 256);\n }\n else if (size < 0x100000000) {\n this._ch.writeUInt8(BYTES_32);\n this._ch.writeUInt8(((size / 16777216) >> 0) % 256);\n this._ch.writeUInt8(((size / 65536) >> 0) % 256);\n this._ch.writeUInt8(((size / 256) >> 0) % 256);\n this._ch.writeUInt8(size % 256);\n }\n else {\n throw (0, neo4j_driver_core_1.newError)('Byte arrays of size ' + size + ' are not supported');\n }\n };\n Packer.prototype.packMapHeader = function (size) {\n if (size < 0x10) {\n this._ch.writeUInt8(TINY_MAP | size);\n }\n else if (size < 0x100) {\n this._ch.writeUInt8(MAP_8);\n this._ch.writeUInt8(size);\n }\n else if (size < 0x10000) {\n this._ch.writeUInt8(MAP_16);\n this._ch.writeUInt8((size / 256) >> 0);\n this._ch.writeUInt8(size % 256);\n }\n else if (size < 0x100000000) {\n this._ch.writeUInt8(MAP_32);\n this._ch.writeUInt8(((size / 16777216) >> 0) % 256);\n this._ch.writeUInt8(((size / 65536) >> 0) % 256);\n this._ch.writeUInt8(((size / 256) >> 0) % 256);\n this._ch.writeUInt8(size % 256);\n }\n else {\n throw (0, neo4j_driver_core_1.newError)('Maps of size ' + size + ' are not supported');\n }\n };\n Packer.prototype.packStructHeader = function (size, signature) {\n if (size < 0x10) {\n this._ch.writeUInt8(TINY_STRUCT | size);\n this._ch.writeUInt8(signature);\n }\n else if (size < 0x100) {\n this._ch.writeUInt8(STRUCT_8);\n this._ch.writeUInt8(size);\n this._ch.writeUInt8(signature);\n }\n else if (size < 0x10000) {\n this._ch.writeUInt8(STRUCT_16);\n this._ch.writeUInt8((size / 256) >> 0);\n this._ch.writeUInt8(size % 256);\n }\n else {\n throw (0, neo4j_driver_core_1.newError)('Structures of size ' + size + ' are not supported');\n }\n };\n Packer.prototype.disableByteArrays = function () {\n this._byteArraysSupported = false;\n };\n Packer.prototype._nonPackableValue = function (message) {\n return function () {\n throw (0, neo4j_driver_core_1.newError)(message, PROTOCOL_ERROR);\n };\n };\n return Packer;\n}());\nexports.Packer = Packer;\n/**\n * Class to unpack\n * @access private\n */\nvar Unpacker = /** @class */ (function () {\n /**\n * @constructor\n * @param {boolean} disableLosslessIntegers if this unpacker should convert all received integers to native JS numbers.\n * @param {boolean} useBigInt if this unpacker should convert all received integers to Bigint\n */\n function Unpacker(disableLosslessIntegers, useBigInt) {\n if (disableLosslessIntegers === void 0) { disableLosslessIntegers = false; }\n if (useBigInt === void 0) { useBigInt = false; }\n this._disableLosslessIntegers = disableLosslessIntegers;\n this._useBigInt = useBigInt;\n }\n Unpacker.prototype.unpack = function (buffer) {\n var marker = buffer.readUInt8();\n var markerHigh = marker & 0xf0;\n var markerLow = marker & 0x0f;\n if (marker === NULL) {\n return null;\n }\n var boolean = this._unpackBoolean(marker);\n if (boolean !== null) {\n return boolean;\n }\n var numberOrInteger = this._unpackNumberOrInteger(marker, buffer);\n if (numberOrInteger !== null) {\n if ((0, neo4j_driver_core_1.isInt)(numberOrInteger)) {\n if (this._useBigInt) {\n return numberOrInteger.toBigInt();\n }\n else if (this._disableLosslessIntegers) {\n return numberOrInteger.toNumberOrInfinity();\n }\n }\n return numberOrInteger;\n }\n var string = this._unpackString(marker, markerHigh, markerLow, buffer);\n if (string !== null) {\n return string;\n }\n var list = this._unpackList(marker, markerHigh, markerLow, buffer);\n if (list !== null) {\n return list;\n }\n var byteArray = this._unpackByteArray(marker, buffer);\n if (byteArray !== null) {\n return byteArray;\n }\n var map = this._unpackMap(marker, markerHigh, markerLow, buffer);\n if (map !== null) {\n return map;\n }\n var struct = this._unpackStruct(marker, markerHigh, markerLow, buffer);\n if (struct !== null) {\n return struct;\n }\n throw (0, neo4j_driver_core_1.newError)('Unknown packed value with marker ' + marker.toString(16));\n };\n Unpacker.prototype.unpackInteger = function (buffer) {\n var marker = buffer.readUInt8();\n var result = this._unpackInteger(marker, buffer);\n if (result == null) {\n throw (0, neo4j_driver_core_1.newError)('Unable to unpack integer value with marker ' + marker.toString(16));\n }\n return result;\n };\n Unpacker.prototype._unpackBoolean = function (marker) {\n if (marker === TRUE) {\n return true;\n }\n else if (marker === FALSE) {\n return false;\n }\n else {\n return null;\n }\n };\n Unpacker.prototype._unpackNumberOrInteger = function (marker, buffer) {\n if (marker === FLOAT_64) {\n return buffer.readFloat64();\n }\n else {\n return this._unpackInteger(marker, buffer);\n }\n };\n Unpacker.prototype._unpackInteger = function (marker, buffer) {\n if (marker >= 0 && marker < 128) {\n return (0, neo4j_driver_core_1.int)(marker);\n }\n else if (marker >= 240 && marker < 256) {\n return (0, neo4j_driver_core_1.int)(marker - 256);\n }\n else if (marker === INT_8) {\n return (0, neo4j_driver_core_1.int)(buffer.readInt8());\n }\n else if (marker === INT_16) {\n return (0, neo4j_driver_core_1.int)(buffer.readInt16());\n }\n else if (marker === INT_32) {\n var b = buffer.readInt32();\n return (0, neo4j_driver_core_1.int)(b);\n }\n else if (marker === INT_64) {\n var high = buffer.readInt32();\n var low = buffer.readInt32();\n return new neo4j_driver_core_1.Integer(low, high);\n }\n else {\n return null;\n }\n };\n Unpacker.prototype._unpackString = function (marker, markerHigh, markerLow, buffer) {\n if (markerHigh === TINY_STRING) {\n return channel_1.utf8.decode(buffer, markerLow);\n }\n else if (marker === STRING_8) {\n return channel_1.utf8.decode(buffer, buffer.readUInt8());\n }\n else if (marker === STRING_16) {\n return channel_1.utf8.decode(buffer, buffer.readUInt16());\n }\n else if (marker === STRING_32) {\n return channel_1.utf8.decode(buffer, buffer.readUInt32());\n }\n else {\n return null;\n }\n };\n Unpacker.prototype._unpackList = function (marker, markerHigh, markerLow, buffer) {\n if (markerHigh === TINY_LIST) {\n return this._unpackListWithSize(markerLow, buffer);\n }\n else if (marker === LIST_8) {\n return this._unpackListWithSize(buffer.readUInt8(), buffer);\n }\n else if (marker === LIST_16) {\n return this._unpackListWithSize(buffer.readUInt16(), buffer);\n }\n else if (marker === LIST_32) {\n return this._unpackListWithSize(buffer.readUInt32(), buffer);\n }\n else {\n return null;\n }\n };\n Unpacker.prototype._unpackListWithSize = function (size, buffer) {\n var value = [];\n for (var i = 0; i < size; i++) {\n value.push(this.unpack(buffer));\n }\n return value;\n };\n Unpacker.prototype._unpackByteArray = function (marker, buffer) {\n if (marker === BYTES_8) {\n return this._unpackByteArrayWithSize(buffer.readUInt8(), buffer);\n }\n else if (marker === BYTES_16) {\n return this._unpackByteArrayWithSize(buffer.readUInt16(), buffer);\n }\n else if (marker === BYTES_32) {\n return this._unpackByteArrayWithSize(buffer.readUInt32(), buffer);\n }\n else {\n return null;\n }\n };\n Unpacker.prototype._unpackByteArrayWithSize = function (size, buffer) {\n var value = new Int8Array(size);\n for (var i = 0; i < size; i++) {\n value[i] = buffer.readInt8();\n }\n return value;\n };\n Unpacker.prototype._unpackMap = function (marker, markerHigh, markerLow, buffer) {\n if (markerHigh === TINY_MAP) {\n return this._unpackMapWithSize(markerLow, buffer);\n }\n else if (marker === MAP_8) {\n return this._unpackMapWithSize(buffer.readUInt8(), buffer);\n }\n else if (marker === MAP_16) {\n return this._unpackMapWithSize(buffer.readUInt16(), buffer);\n }\n else if (marker === MAP_32) {\n return this._unpackMapWithSize(buffer.readUInt32(), buffer);\n }\n else {\n return null;\n }\n };\n Unpacker.prototype._unpackMapWithSize = function (size, buffer) {\n var value = {};\n for (var i = 0; i < size; i++) {\n var key = this.unpack(buffer);\n value[key] = this.unpack(buffer);\n }\n return value;\n };\n Unpacker.prototype._unpackStruct = function (marker, markerHigh, markerLow, buffer) {\n try {\n if (markerHigh === TINY_STRUCT) {\n return this._unpackStructWithSize(markerLow, buffer);\n }\n else if (marker === STRUCT_8) {\n return this._unpackStructWithSize(buffer.readUInt8(), buffer);\n }\n else if (marker === STRUCT_16) {\n return this._unpackStructWithSize(buffer.readUInt16(), buffer);\n }\n else {\n return null;\n }\n }\n catch (error) {\n return objectUtil.createBrokenObject(error);\n }\n };\n Unpacker.prototype._unpackStructWithSize = function (structSize, buffer) {\n var signature = buffer.readUInt8();\n if (signature === NODE) {\n return this._unpackNode(structSize, buffer);\n }\n else if (signature === RELATIONSHIP) {\n return this._unpackRelationship(structSize, buffer);\n }\n else if (signature === UNBOUND_RELATIONSHIP) {\n return this._unpackUnboundRelationship(structSize, buffer);\n }\n else if (signature === PATH) {\n return this._unpackPath(structSize, buffer);\n }\n else {\n return this._unpackUnknownStruct(signature, structSize, buffer);\n }\n };\n Unpacker.prototype._unpackNode = function (structSize, buffer) {\n this._verifyStructSize('Node', NODE_STRUCT_SIZE, structSize);\n return new neo4j_driver_core_1.Node(this.unpack(buffer), // Identity\n this.unpack(buffer), // Labels\n this.unpack(buffer) // Properties\n );\n };\n Unpacker.prototype._unpackRelationship = function (structSize, buffer) {\n this._verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE, structSize);\n return new neo4j_driver_core_1.Relationship(this.unpack(buffer), // Identity\n this.unpack(buffer), // Start Node Identity\n this.unpack(buffer), // End Node Identity\n this.unpack(buffer), // Type\n this.unpack(buffer) // Properties\n );\n };\n Unpacker.prototype._unpackUnboundRelationship = function (structSize, buffer) {\n this._verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE, structSize);\n return new neo4j_driver_core_1.UnboundRelationship(this.unpack(buffer), // Identity\n this.unpack(buffer), // Type\n this.unpack(buffer) // Properties\n );\n };\n Unpacker.prototype._unpackPath = function (structSize, buffer) {\n this._verifyStructSize('Path', PATH_STRUCT_SIZE, structSize);\n var nodes = this.unpack(buffer);\n var rels = this.unpack(buffer);\n var sequence = this.unpack(buffer);\n var segments = [];\n var prevNode = nodes[0];\n for (var i = 0; i < sequence.length; i += 2) {\n var nextNode = nodes[sequence[i + 1]];\n var relIndex = (0, neo4j_driver_core_1.toNumber)(sequence[i]);\n var rel = void 0;\n if (relIndex > 0) {\n rel = rels[relIndex - 1];\n if (rel instanceof neo4j_driver_core_1.UnboundRelationship) {\n // To avoid duplication, relationships in a path do not contain\n // information about their start and end nodes, that's instead\n // inferred from the path sequence. This is us inferring (and,\n // for performance reasons remembering) the start/end of a rel.\n rels[relIndex - 1] = rel = rel.bind(prevNode.identity, nextNode.identity);\n }\n }\n else {\n rel = rels[-relIndex - 1];\n if (rel instanceof neo4j_driver_core_1.UnboundRelationship) {\n // See above\n rels[-relIndex - 1] = rel = rel.bind(nextNode.identity, prevNode.identity);\n }\n }\n // Done hydrating one path segment.\n segments.push(new neo4j_driver_core_1.PathSegment(prevNode, rel, nextNode));\n prevNode = nextNode;\n }\n return new neo4j_driver_core_1.Path(nodes[0], nodes[nodes.length - 1], segments);\n };\n Unpacker.prototype._unpackUnknownStruct = function (signature, structSize, buffer) {\n var result = new Structure(signature, []);\n for (var i = 0; i < structSize; i++) {\n result.fields.push(this.unpack(buffer));\n }\n return result;\n };\n Unpacker.prototype._verifyStructSize = function (structName, expectedSize, actualSize) {\n if (expectedSize !== actualSize) {\n throw (0, neo4j_driver_core_1.newError)(\"Wrong struct size for \" + structName + \", expected \" + expectedSize + \" but was \" + actualSize, PROTOCOL_ERROR);\n }\n };\n return Unpacker;\n}());\nexports.Unpacker = Unpacker;\nfunction isIterable(obj) {\n if (obj == null) {\n return false;\n }\n return typeof obj[Symbol.iterator] === 'function';\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Unpacker = exports.Packer = void 0;\nvar v1 = __importStar(require(\"./packstream-v1\"));\nvar utc = __importStar(require(\"./packstream-utc\"));\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar temporal_factory_1 = require(\"./temporal-factory\");\nvar _a = neo4j_driver_core_1.internal.temporalUtil, dateToEpochDay = _a.dateToEpochDay, localDateTimeToEpochSecond = _a.localDateTimeToEpochSecond, localTimeToNanoOfDay = _a.localTimeToNanoOfDay;\nvar POINT_2D = 0x58;\nvar POINT_2D_STRUCT_SIZE = 3;\nvar POINT_3D = 0x59;\nvar POINT_3D_STRUCT_SIZE = 4;\nvar DURATION = 0x45;\nvar DURATION_STRUCT_SIZE = 4;\nvar LOCAL_TIME = 0x74;\nvar LOCAL_TIME_STRUCT_SIZE = 1;\nvar TIME = 0x54;\nvar TIME_STRUCT_SIZE = 2;\nvar DATE = 0x44;\nvar DATE_STRUCT_SIZE = 1;\nvar LOCAL_DATE_TIME = 0x64;\nvar LOCAL_DATE_TIME_STRUCT_SIZE = 2;\nvar DATE_TIME_WITH_ZONE_OFFSET = 0x46;\nvar DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE = 3;\nvar DATE_TIME_WITH_ZONE_ID = 0x66;\nvar DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE = 3;\nvar Packer = /** @class */ (function (_super) {\n __extends(Packer, _super);\n function Packer() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Packer.prototype.disableByteArrays = function () {\n throw new Error('Bolt V2 should always support byte arrays');\n };\n Packer.prototype.packable = function (obj) {\n var _this = this;\n if ((0, neo4j_driver_core_1.isPoint)(obj)) {\n return function () { return packPoint(obj, _this); };\n }\n else if ((0, neo4j_driver_core_1.isDuration)(obj)) {\n return function () { return packDuration(obj, _this); };\n }\n else if ((0, neo4j_driver_core_1.isLocalTime)(obj)) {\n return function () { return packLocalTime(obj, _this); };\n }\n else if ((0, neo4j_driver_core_1.isTime)(obj)) {\n return function () { return packTime(obj, _this); };\n }\n else if ((0, neo4j_driver_core_1.isDate)(obj)) {\n return function () { return packDate(obj, _this); };\n }\n else if ((0, neo4j_driver_core_1.isLocalDateTime)(obj)) {\n return function () { return packLocalDateTime(obj, _this); };\n }\n else if ((0, neo4j_driver_core_1.isDateTime)(obj) && this.useUtc) {\n return function () { return utc.packDateTime(obj, _this); };\n }\n else if ((0, neo4j_driver_core_1.isDateTime)(obj) && !this.useUtc) {\n return function () { return packDateTime(obj, _this); };\n }\n else {\n return _super.prototype.packable.call(this, obj);\n }\n };\n return Packer;\n}(v1.Packer));\nexports.Packer = Packer;\nvar Unpacker = /** @class */ (function (_super) {\n __extends(Unpacker, _super);\n /**\n * @constructor\n * @param {boolean} disableLosslessIntegers if this unpacker should convert all received integers to native JS numbers.\n * @param {boolean} useBigInt if this unpacker should convert all received integers to Bigint\n */\n function Unpacker(disableLosslessIntegers, useBigInt) {\n if (disableLosslessIntegers === void 0) { disableLosslessIntegers = false; }\n if (useBigInt === void 0) { useBigInt = false; }\n return _super.call(this, disableLosslessIntegers, useBigInt) || this;\n }\n Unpacker.prototype._unpackUnknownStruct = function (signature, structSize, buffer) {\n if (signature === POINT_2D) {\n return unpackPoint2D(this, structSize, buffer);\n }\n else if (signature === POINT_3D) {\n return unpackPoint3D(this, structSize, buffer);\n }\n else if (signature === DURATION) {\n return unpackDuration(this, structSize, buffer);\n }\n else if (signature === LOCAL_TIME) {\n return unpackLocalTime(this, structSize, buffer, this._disableLosslessIntegers, this._useBigInt);\n }\n else if (signature === TIME) {\n return unpackTime(this, structSize, buffer, this._disableLosslessIntegers, this._useBigInt);\n }\n else if (signature === DATE) {\n return unpackDate(this, structSize, buffer, this._disableLosslessIntegers, this._useBigInt);\n }\n else if (signature === LOCAL_DATE_TIME) {\n return unpackLocalDateTime(this, structSize, buffer, this._disableLosslessIntegers, this._useBigInt);\n }\n else if (signature === utc.DATE_TIME_WITH_ZONE_OFFSET && this.useUtc) {\n return utc.unpackDateTimeWithZoneOffset(this, structSize, buffer, this._disableLosslessIntegers, this._useBigInt);\n }\n else if (signature === DATE_TIME_WITH_ZONE_OFFSET && !this.useUtc) {\n return unpackDateTimeWithZoneOffset(this, structSize, buffer, this._disableLosslessIntegers, this._useBigInt);\n }\n else if (signature === utc.DATE_TIME_WITH_ZONE_ID && this.useUtc) {\n return utc.unpackDateTimeWithZoneId(this, structSize, buffer, this._disableLosslessIntegers, this._useBigInt);\n }\n else if (signature === DATE_TIME_WITH_ZONE_ID && !this.useUtc) {\n return unpackDateTimeWithZoneId(this, structSize, buffer, this._disableLosslessIntegers, this._useBigInt);\n }\n else {\n return _super.prototype._unpackUnknownStruct.call(this, signature, structSize, buffer, this._disableLosslessIntegers, this._useBigInt);\n }\n };\n return Unpacker;\n}(v1.Unpacker));\nexports.Unpacker = Unpacker;\n/**\n * Pack given 2D or 3D point.\n * @param {Point} point the point value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packPoint(point, packer) {\n var is2DPoint = point.z === null || point.z === undefined;\n if (is2DPoint) {\n packPoint2D(point, packer);\n }\n else {\n packPoint3D(point, packer);\n }\n}\n/**\n * Pack given 2D point.\n * @param {Point} point the point value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packPoint2D(point, packer) {\n var packableStructFields = [\n packer.packable((0, neo4j_driver_core_1.int)(point.srid)),\n packer.packable(point.x),\n packer.packable(point.y)\n ];\n packer.packStruct(POINT_2D, packableStructFields);\n}\n/**\n * Pack given 3D point.\n * @param {Point} point the point value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packPoint3D(point, packer) {\n var packableStructFields = [\n packer.packable((0, neo4j_driver_core_1.int)(point.srid)),\n packer.packable(point.x),\n packer.packable(point.y),\n packer.packable(point.z)\n ];\n packer.packStruct(POINT_3D, packableStructFields);\n}\n/**\n * Unpack 2D point value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @return {Point} the unpacked 2D point value.\n */\nfunction unpackPoint2D(unpacker, structSize, buffer) {\n unpacker._verifyStructSize('Point2D', POINT_2D_STRUCT_SIZE, structSize);\n return new neo4j_driver_core_1.Point(unpacker.unpack(buffer), // srid\n unpacker.unpack(buffer), // x\n unpacker.unpack(buffer), // y\n undefined // z\n );\n}\n/**\n * Unpack 3D point value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @return {Point} the unpacked 3D point value.\n */\nfunction unpackPoint3D(unpacker, structSize, buffer) {\n unpacker._verifyStructSize('Point3D', POINT_3D_STRUCT_SIZE, structSize);\n return new neo4j_driver_core_1.Point(unpacker.unpack(buffer), // srid\n unpacker.unpack(buffer), // x\n unpacker.unpack(buffer), // y\n unpacker.unpack(buffer) // z\n );\n}\n/**\n * Pack given duration.\n * @param {Duration} value the duration value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packDuration(value, packer) {\n var months = (0, neo4j_driver_core_1.int)(value.months);\n var days = (0, neo4j_driver_core_1.int)(value.days);\n var seconds = (0, neo4j_driver_core_1.int)(value.seconds);\n var nanoseconds = (0, neo4j_driver_core_1.int)(value.nanoseconds);\n var packableStructFields = [\n packer.packable(months),\n packer.packable(days),\n packer.packable(seconds),\n packer.packable(nanoseconds)\n ];\n packer.packStruct(DURATION, packableStructFields);\n}\n/**\n * Unpack duration value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @return {Duration} the unpacked duration value.\n */\nfunction unpackDuration(unpacker, structSize, buffer) {\n unpacker._verifyStructSize('Duration', DURATION_STRUCT_SIZE, structSize);\n var months = unpacker.unpack(buffer);\n var days = unpacker.unpack(buffer);\n var seconds = unpacker.unpack(buffer);\n var nanoseconds = unpacker.unpack(buffer);\n return new neo4j_driver_core_1.Duration(months, days, seconds, nanoseconds);\n}\n/**\n * Pack given local time.\n * @param {LocalTime} value the local time value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packLocalTime(value, packer) {\n var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);\n var packableStructFields = [packer.packable(nanoOfDay)];\n packer.packStruct(LOCAL_TIME, packableStructFields);\n}\n/**\n * Unpack local time value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @param {boolean} disableLosslessIntegers if integer properties in the result local time should be native JS numbers.\n * @return {LocalTime} the unpacked local time value.\n */\nfunction unpackLocalTime(unpacker, structSize, buffer, disableLosslessIntegers) {\n unpacker._verifyStructSize('LocalTime', LOCAL_TIME_STRUCT_SIZE, structSize);\n var nanoOfDay = unpacker.unpackInteger(buffer);\n var result = (0, temporal_factory_1.nanoOfDayToLocalTime)(nanoOfDay);\n return convertIntegerPropsIfNeeded(result, disableLosslessIntegers);\n}\n/**\n * Pack given time.\n * @param {Time} value the time value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packTime(value, packer) {\n var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);\n var offsetSeconds = (0, neo4j_driver_core_1.int)(value.timeZoneOffsetSeconds);\n var packableStructFields = [\n packer.packable(nanoOfDay),\n packer.packable(offsetSeconds)\n ];\n packer.packStruct(TIME, packableStructFields);\n}\n/**\n * Unpack time value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @param {boolean} disableLosslessIntegers if integer properties in the result time should be native JS numbers.\n * @return {Time} the unpacked time value.\n */\nfunction unpackTime(unpacker, structSize, buffer, disableLosslessIntegers, useBigInt) {\n unpacker._verifyStructSize('Time', TIME_STRUCT_SIZE, structSize);\n var nanoOfDay = unpacker.unpackInteger(buffer);\n var offsetSeconds = unpacker.unpackInteger(buffer);\n var localTime = (0, temporal_factory_1.nanoOfDayToLocalTime)(nanoOfDay);\n var result = new neo4j_driver_core_1.Time(localTime.hour, localTime.minute, localTime.second, localTime.nanosecond, offsetSeconds);\n return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);\n}\n/**\n * Pack given neo4j date.\n * @param {Date} value the date value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packDate(value, packer) {\n var epochDay = dateToEpochDay(value.year, value.month, value.day);\n var packableStructFields = [packer.packable(epochDay)];\n packer.packStruct(DATE, packableStructFields);\n}\n/**\n * Unpack neo4j date value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @param {boolean} disableLosslessIntegers if integer properties in the result date should be native JS numbers.\n * @return {Date} the unpacked neo4j date value.\n */\nfunction unpackDate(unpacker, structSize, buffer, disableLosslessIntegers, useBigInt) {\n unpacker._verifyStructSize('Date', DATE_STRUCT_SIZE, structSize);\n var epochDay = unpacker.unpackInteger(buffer);\n var result = (0, temporal_factory_1.epochDayToDate)(epochDay);\n return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);\n}\n/**\n * Pack given local date time.\n * @param {LocalDateTime} value the local date time value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packLocalDateTime(value, packer) {\n var epochSecond = localDateTimeToEpochSecond(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);\n var nano = (0, neo4j_driver_core_1.int)(value.nanosecond);\n var packableStructFields = [\n packer.packable(epochSecond),\n packer.packable(nano)\n ];\n packer.packStruct(LOCAL_DATE_TIME, packableStructFields);\n}\n/**\n * Unpack local date time value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @param {boolean} disableLosslessIntegers if integer properties in the result local date-time should be native JS numbers.\n * @return {LocalDateTime} the unpacked local date time value.\n */\nfunction unpackLocalDateTime(unpacker, structSize, buffer, disableLosslessIntegers, useBigInt) {\n unpacker._verifyStructSize('LocalDateTime', LOCAL_DATE_TIME_STRUCT_SIZE, structSize);\n var epochSecond = unpacker.unpackInteger(buffer);\n var nano = unpacker.unpackInteger(buffer);\n var result = (0, temporal_factory_1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);\n return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);\n}\n/**\n * Pack given date time.\n * @param {DateTime} value the date time value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packDateTime(value, packer) {\n if (value.timeZoneId) {\n packDateTimeWithZoneId(value, packer);\n }\n else {\n packDateTimeWithZoneOffset(value, packer);\n }\n}\n/**\n * Pack given date time with zone offset.\n * @param {DateTime} value the date time value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packDateTimeWithZoneOffset(value, packer) {\n var epochSecond = localDateTimeToEpochSecond(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);\n var nano = (0, neo4j_driver_core_1.int)(value.nanosecond);\n var timeZoneOffsetSeconds = (0, neo4j_driver_core_1.int)(value.timeZoneOffsetSeconds);\n var packableStructFields = [\n packer.packable(epochSecond),\n packer.packable(nano),\n packer.packable(timeZoneOffsetSeconds)\n ];\n packer.packStruct(DATE_TIME_WITH_ZONE_OFFSET, packableStructFields);\n}\n/**\n * Unpack date time with zone offset value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @param {boolean} disableLosslessIntegers if integer properties in the result date-time should be native JS numbers.\n * @return {DateTime} the unpacked date time with zone offset value.\n */\nfunction unpackDateTimeWithZoneOffset(unpacker, structSize, buffer, disableLosslessIntegers, useBigInt) {\n unpacker._verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE, structSize);\n var epochSecond = unpacker.unpackInteger(buffer);\n var nano = unpacker.unpackInteger(buffer);\n var timeZoneOffsetSeconds = unpacker.unpackInteger(buffer);\n var localDateTime = (0, temporal_factory_1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);\n var result = new neo4j_driver_core_1.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, timeZoneOffsetSeconds, null);\n return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);\n}\n/**\n * Pack given date time with zone id.\n * @param {DateTime} value the date time value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packDateTimeWithZoneId(value, packer) {\n var epochSecond = localDateTimeToEpochSecond(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);\n var nano = (0, neo4j_driver_core_1.int)(value.nanosecond);\n var timeZoneId = value.timeZoneId;\n var packableStructFields = [\n packer.packable(epochSecond),\n packer.packable(nano),\n packer.packable(timeZoneId)\n ];\n packer.packStruct(DATE_TIME_WITH_ZONE_ID, packableStructFields);\n}\n/**\n * Unpack date time with zone id value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @param {boolean} disableLosslessIntegers if integer properties in the result date-time should be native JS numbers.\n * @return {DateTime} the unpacked date time with zone id value.\n */\nfunction unpackDateTimeWithZoneId(unpacker, structSize, buffer, disableLosslessIntegers, useBigInt) {\n unpacker._verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE, structSize);\n var epochSecond = unpacker.unpackInteger(buffer);\n var nano = unpacker.unpackInteger(buffer);\n var timeZoneId = unpacker.unpack(buffer);\n var localDateTime = (0, temporal_factory_1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);\n var result = new neo4j_driver_core_1.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, null, timeZoneId);\n return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);\n}\nfunction convertIntegerPropsIfNeeded(obj, disableLosslessIntegers, useBigInt) {\n if (!disableLosslessIntegers && !useBigInt) {\n return obj;\n }\n var convert = function (value) {\n return useBigInt ? value.toBigInt() : value.toNumberOrInfinity();\n };\n var clone = Object.create(Object.getPrototypeOf(obj));\n for (var prop in obj) {\n if (obj.hasOwnProperty(prop)) {\n var value = obj[prop];\n clone[prop] = (0, neo4j_driver_core_1.isInt)(value) ? convert(value) : value;\n }\n }\n Object.freeze(clone);\n return clone;\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.epochSecondAndNanoToLocalDateTime = exports.nanoOfDayToLocalTime = exports.epochDayToDate = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar _a = neo4j_driver_core_1.internal.temporalUtil, DAYS_0000_TO_1970 = _a.DAYS_0000_TO_1970, DAYS_PER_400_YEAR_CYCLE = _a.DAYS_PER_400_YEAR_CYCLE, NANOS_PER_HOUR = _a.NANOS_PER_HOUR, NANOS_PER_MINUTE = _a.NANOS_PER_MINUTE, NANOS_PER_SECOND = _a.NANOS_PER_SECOND, SECONDS_PER_DAY = _a.SECONDS_PER_DAY, floorDiv = _a.floorDiv, floorMod = _a.floorMod;\n/**\n * Converts given epoch day to a local date.\n * @param {Integer|number|string} epochDay the epoch day to convert.\n * @return {Date} the date representing the epoch day in years, months and days.\n */\nfunction epochDayToDate(epochDay) {\n epochDay = (0, neo4j_driver_core_1.int)(epochDay);\n var zeroDay = epochDay.add(DAYS_0000_TO_1970).subtract(60);\n var adjust = (0, neo4j_driver_core_1.int)(0);\n if (zeroDay.lessThan(0)) {\n var adjustCycles = zeroDay\n .add(1)\n .div(DAYS_PER_400_YEAR_CYCLE)\n .subtract(1);\n adjust = adjustCycles.multiply(400);\n zeroDay = zeroDay.add(adjustCycles.multiply(-DAYS_PER_400_YEAR_CYCLE));\n }\n var year = zeroDay\n .multiply(400)\n .add(591)\n .div(DAYS_PER_400_YEAR_CYCLE);\n var dayOfYearEst = zeroDay.subtract(year\n .multiply(365)\n .add(year.div(4))\n .subtract(year.div(100))\n .add(year.div(400)));\n if (dayOfYearEst.lessThan(0)) {\n year = year.subtract(1);\n dayOfYearEst = zeroDay.subtract(year\n .multiply(365)\n .add(year.div(4))\n .subtract(year.div(100))\n .add(year.div(400)));\n }\n year = year.add(adjust);\n var marchDayOfYear = dayOfYearEst;\n var marchMonth = marchDayOfYear\n .multiply(5)\n .add(2)\n .div(153);\n var month = marchMonth\n .add(2)\n .modulo(12)\n .add(1);\n var day = marchDayOfYear\n .subtract(marchMonth\n .multiply(306)\n .add(5)\n .div(10))\n .add(1);\n year = year.add(marchMonth.div(10));\n return new neo4j_driver_core_1.Date(year, month, day);\n}\nexports.epochDayToDate = epochDayToDate;\n/**\n * Converts nanoseconds of the day into local time.\n * @param {Integer|number|string} nanoOfDay the nanoseconds of the day to convert.\n * @return {LocalTime} the local time representing given nanoseconds of the day.\n */\nfunction nanoOfDayToLocalTime(nanoOfDay) {\n nanoOfDay = (0, neo4j_driver_core_1.int)(nanoOfDay);\n var hour = nanoOfDay.div(NANOS_PER_HOUR);\n nanoOfDay = nanoOfDay.subtract(hour.multiply(NANOS_PER_HOUR));\n var minute = nanoOfDay.div(NANOS_PER_MINUTE);\n nanoOfDay = nanoOfDay.subtract(minute.multiply(NANOS_PER_MINUTE));\n var second = nanoOfDay.div(NANOS_PER_SECOND);\n var nanosecond = nanoOfDay.subtract(second.multiply(NANOS_PER_SECOND));\n return new neo4j_driver_core_1.LocalTime(hour, minute, second, nanosecond);\n}\nexports.nanoOfDayToLocalTime = nanoOfDayToLocalTime;\n/**\n * Converts given epoch second and nanosecond adjustment into a local date time object.\n * @param {Integer|number|string} epochSecond the epoch second to use.\n * @param {Integer|number|string} nano the nanosecond to use.\n * @return {LocalDateTime} the local date time representing given epoch second and nano.\n */\nfunction epochSecondAndNanoToLocalDateTime(epochSecond, nano) {\n var epochDay = floorDiv(epochSecond, SECONDS_PER_DAY);\n var secondsOfDay = floorMod(epochSecond, SECONDS_PER_DAY);\n var nanoOfDay = secondsOfDay.multiply(NANOS_PER_SECOND).add(nano);\n var localDate = epochDayToDate(epochDay);\n var localTime = nanoOfDayToLocalTime(nanoOfDay);\n return new neo4j_driver_core_1.LocalDateTime(localDate.year, localDate.month, localDate.day, localTime.hour, localTime.minute, localTime.second, localTime.nanosecond);\n}\nexports.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDateTime;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DEFAULT_MAX_SIZE = exports.DEFAULT_ACQUISITION_TIMEOUT = exports.PoolConfig = exports.Pool = void 0;\nvar pool_config_1 = __importStar(require(\"./pool-config\"));\nexports.PoolConfig = pool_config_1.default;\nObject.defineProperty(exports, \"DEFAULT_ACQUISITION_TIMEOUT\", { enumerable: true, get: function () { return pool_config_1.DEFAULT_ACQUISITION_TIMEOUT; } });\nObject.defineProperty(exports, \"DEFAULT_MAX_SIZE\", { enumerable: true, get: function () { return pool_config_1.DEFAULT_MAX_SIZE; } });\nvar pool_1 = __importDefault(require(\"./pool\"));\nexports.Pool = pool_1.default;\nexports.default = pool_1.default;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DEFAULT_ACQUISITION_TIMEOUT = exports.DEFAULT_MAX_SIZE = void 0;\nvar DEFAULT_MAX_SIZE = 100;\nexports.DEFAULT_MAX_SIZE = DEFAULT_MAX_SIZE;\nvar DEFAULT_ACQUISITION_TIMEOUT = 60 * 1000; // 60 seconds\nexports.DEFAULT_ACQUISITION_TIMEOUT = DEFAULT_ACQUISITION_TIMEOUT;\nvar PoolConfig = /** @class */ (function () {\n function PoolConfig(maxSize, acquisitionTimeout) {\n this.maxSize = valueOrDefault(maxSize, DEFAULT_MAX_SIZE);\n this.acquisitionTimeout = valueOrDefault(acquisitionTimeout, DEFAULT_ACQUISITION_TIMEOUT);\n }\n PoolConfig.defaultConfig = function () {\n return new PoolConfig(DEFAULT_MAX_SIZE, DEFAULT_ACQUISITION_TIMEOUT);\n };\n PoolConfig.fromDriverConfig = function (config) {\n var maxSizeConfigured = isConfigured(config.maxConnectionPoolSize);\n var maxSize = maxSizeConfigured\n ? config.maxConnectionPoolSize\n : DEFAULT_MAX_SIZE;\n var acquisitionTimeoutConfigured = isConfigured(config.connectionAcquisitionTimeout);\n var acquisitionTimeout = acquisitionTimeoutConfigured\n ? config.connectionAcquisitionTimeout\n : DEFAULT_ACQUISITION_TIMEOUT;\n return new PoolConfig(maxSize, acquisitionTimeout);\n };\n return PoolConfig;\n}());\nexports.default = PoolConfig;\nfunction valueOrDefault(value, defaultValue) {\n return value === 0 || value ? value : defaultValue;\n}\nfunction isConfigured(value) {\n return value === 0 || value;\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar pool_config_1 = __importDefault(require(\"./pool-config\"));\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar Logger = neo4j_driver_core_1.internal.logger.Logger;\nvar Pool = /** @class */ (function () {\n /**\n * @param {function(address: ServerAddress, function(address: ServerAddress, resource: object): Promise): Promise} create\n * an allocation function that creates a promise with a new resource. It's given an address for which to\n * allocate the connection and a function that will return the resource to the pool if invoked, which is\n * meant to be called on .dispose or .close or whatever mechanism the resource uses to finalize.\n * @param {function(resource: object): Promise} destroy\n * called with the resource when it is evicted from this pool\n * @param {function(resource: object): boolean} validate\n * called at various times (like when an instance is acquired and when it is returned.\n * If this returns false, the resource will be evicted\n * @param {function(resource: object, observer: { onError }): void} installIdleObserver\n * called when the resource is released back to pool\n * @param {function(resource: object): void} removeIdleObserver\n * called when the resource is acquired from the pool\n * @param {PoolConfig} config configuration for the new driver.\n * @param {Logger} log the driver logger.\n */\n function Pool(_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.create, create = _c === void 0 ? function (address, release) { return Promise.resolve(); } : _c, _d = _b.destroy, destroy = _d === void 0 ? function (conn) { return Promise.resolve(); } : _d, _e = _b.validate, validate = _e === void 0 ? function (conn) { return true; } : _e, _f = _b.installIdleObserver, installIdleObserver = _f === void 0 ? function (conn, observer) { } : _f, _g = _b.removeIdleObserver, removeIdleObserver = _g === void 0 ? function (conn) { } : _g, _h = _b.config, config = _h === void 0 ? pool_config_1.default.defaultConfig() : _h, _j = _b.log, log = _j === void 0 ? Logger.noOp() : _j;\n this._create = create;\n this._destroy = destroy;\n this._validate = validate;\n this._installIdleObserver = installIdleObserver;\n this._removeIdleObserver = removeIdleObserver;\n this._maxSize = config.maxSize;\n this._acquisitionTimeout = config.acquisitionTimeout;\n this._pools = {};\n this._pendingCreates = {};\n this._acquireRequests = {};\n this._activeResourceCounts = {};\n this._poolState = {};\n this._release = this._release.bind(this);\n this._log = log;\n this._closed = false;\n }\n /**\n * Acquire and idle resource fom the pool or create a new one.\n * @param {ServerAddress} address the address for which we're acquiring.\n * @return {Object} resource that is ready to use.\n */\n Pool.prototype.acquire = function (address) {\n var _this = this;\n return this._acquire(address).then(function (resource) {\n var key = address.asKey();\n if (resource) {\n // New or existing resource acquired\n return resource;\n }\n // We're out of resources and will try to acquire later on when an existing resource is released.\n var allRequests = _this._acquireRequests;\n var requests = allRequests[key];\n if (!requests) {\n allRequests[key] = [];\n }\n return new Promise(function (resolve, reject) {\n var request;\n var timeoutId = setTimeout(function () {\n // acquisition timeout fired\n // remove request from the queue of pending requests, if it's still there\n // request might've been taken out by the release operation\n var pendingRequests = allRequests[key];\n if (pendingRequests) {\n allRequests[key] = pendingRequests.filter(function (item) { return item !== request; });\n }\n if (request.isCompleted()) {\n // request already resolved/rejected by the release operation; nothing to do\n }\n else {\n // request is still pending and needs to be failed\n var activeCount = _this.activeResourceCount(address);\n var idleCount = _this.has(address) ? _this._pools[key].length : 0;\n request.reject((0, neo4j_driver_core_1.newError)(\"Connection acquisition timed out in \" + _this._acquisitionTimeout + \" ms. Pool status: Active conn count = \" + activeCount + \", Idle conn count = \" + idleCount + \".\"));\n }\n }, _this._acquisitionTimeout);\n request = new PendingRequest(key, resolve, reject, timeoutId, _this._log);\n allRequests[key].push(request);\n });\n });\n };\n /**\n * Destroy all idle resources for the given address.\n * @param {ServerAddress} address the address of the server to purge its pool.\n * @returns {Promise} A promise that is resolved when the resources are purged\n */\n Pool.prototype.purge = function (address) {\n return this._purgeKey(address.asKey());\n };\n /**\n * Destroy all idle resources in this pool.\n * @returns {Promise} A promise that is resolved when the resources are purged\n */\n Pool.prototype.close = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n this._closed = true;\n return [4 /*yield*/, Promise.all(Object.keys(this._pools).map(function (key) { return _this._purgeKey(key); }))];\n case 1: \n /**\n * The lack of Promise consuming was making the driver do not close properly in the scenario\n * captured at result.test.js:it('should handle missing onCompleted'). The test was timing out\n * because while wainting for the driver close.\n *\n * Consuming the Promise.all or by calling then or by awaiting in the result inside this method solved\n * the issue somehow.\n *\n * PS: the return of this method was already awaited at PooledConnectionProvider.close, but the await bellow\n * seems to be need also.\n */\n return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n /**\n * Keep the idle resources for the provided addresses and purge the rest.\n * @returns {Promise} A promise that is resolved when the other resources are purged\n */\n Pool.prototype.keepAll = function (addresses) {\n var _this = this;\n var keysToKeep = addresses.map(function (a) { return a.asKey(); });\n var keysPresent = Object.keys(this._pools);\n var keysToPurge = keysPresent.filter(function (k) { return keysToKeep.indexOf(k) === -1; });\n return Promise.all(keysToPurge.map(function (key) { return _this._purgeKey(key); }));\n };\n /**\n * Check if this pool contains resources for the given address.\n * @param {ServerAddress} address the address of the server to check.\n * @return {boolean} `true` when pool contains entries for the given key, false otherwise.\n */\n Pool.prototype.has = function (address) {\n return address.asKey() in this._pools;\n };\n /**\n * Get count of active (checked out of the pool) resources for the given key.\n * @param {ServerAddress} address the address of the server to check.\n * @return {number} count of resources acquired by clients.\n */\n Pool.prototype.activeResourceCount = function (address) {\n return this._activeResourceCounts[address.asKey()] || 0;\n };\n Pool.prototype._acquire = function (address) {\n return __awaiter(this, void 0, void 0, function () {\n var key, pool, poolState, resource_1, numConnections, resource;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (this._closed) {\n throw (0, neo4j_driver_core_1.newError)('Pool is closed, it is no more able to serve requests.');\n }\n key = address.asKey();\n pool = this._pools[key];\n poolState = this._poolState[key];\n if (!pool) {\n pool = [];\n poolState = new PoolState();\n this._pools[key] = pool;\n this._pendingCreates[key] = 0;\n this._poolState[key] = poolState;\n }\n _a.label = 1;\n case 1:\n if (!pool.length) return [3 /*break*/, 5];\n resource_1 = pool.pop();\n if (!this._validate(resource_1)) return [3 /*break*/, 2];\n if (this._removeIdleObserver) {\n this._removeIdleObserver(resource_1);\n }\n // idle resource is valid and can be acquired\n resourceAcquired(key, this._activeResourceCounts);\n if (this._log.isDebugEnabled()) {\n this._log.debug(resource_1 + \" acquired from the pool \" + key);\n }\n return [2 /*return*/, resource_1];\n case 2: return [4 /*yield*/, this._destroy(resource_1)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [3 /*break*/, 1];\n case 5:\n // Ensure requested max pool size\n if (this._maxSize > 0) {\n numConnections = this.activeResourceCount(address) + this._pendingCreates[key];\n if (numConnections >= this._maxSize) {\n // Will put this request in queue instead since the pool is full\n return [2 /*return*/, null];\n }\n }\n // there exist no idle valid resources, create a new one for acquisition\n // Keep track of how many pending creates there are to avoid making too many connections.\n this._pendingCreates[key] = this._pendingCreates[key] + 1;\n _a.label = 6;\n case 6:\n _a.trys.push([6, , 8, 9]);\n return [4 /*yield*/, this._create(address, function (address, resource) { return _this._release(poolState, address, resource); })];\n case 7:\n // Invoke callback that creates actual connection\n resource = _a.sent();\n resourceAcquired(key, this._activeResourceCounts);\n if (this._log.isDebugEnabled()) {\n this._log.debug(resource + \" created for the pool \" + key);\n }\n return [3 /*break*/, 9];\n case 8:\n this._pendingCreates[key] = this._pendingCreates[key] - 1;\n return [7 /*endfinally*/];\n case 9: return [2 /*return*/, resource];\n }\n });\n });\n };\n Pool.prototype._release = function (poolState, address, resource) {\n return __awaiter(this, void 0, void 0, function () {\n var key, pool;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = address.asKey();\n pool = this._pools[key];\n if (!(pool && poolState && poolState.isActive())) return [3 /*break*/, 4];\n if (!!this._validate(resource)) return [3 /*break*/, 2];\n if (this._log.isDebugEnabled()) {\n this._log.debug(resource + \" destroyed and can't be released to the pool \" + key + \" because it is not functional\");\n }\n return [4 /*yield*/, this._destroy(resource)];\n case 1:\n _a.sent();\n return [3 /*break*/, 3];\n case 2:\n if (this._installIdleObserver) {\n this._installIdleObserver(resource, {\n onError: function (error) {\n _this._log.debug(\"Idle connection \" + resource + \" destroyed because of error: \" + error);\n var pool = _this._pools[key];\n if (pool) {\n _this._pools[key] = pool.filter(function (r) { return r !== resource; });\n }\n // let's not care about background clean-ups due to errors but just trigger the destroy\n // process for the resource, we especially catch any errors and ignore them to avoid\n // unhandled promise rejection warnings\n _this._destroy(resource).catch(function () { });\n }\n });\n }\n pool.push(resource);\n if (this._log.isDebugEnabled()) {\n this._log.debug(resource + \" released to the pool \" + key);\n }\n _a.label = 3;\n case 3: return [3 /*break*/, 6];\n case 4:\n // key has been purged, don't put it back, just destroy the resource\n if (this._log.isDebugEnabled()) {\n this._log.debug(resource + \" destroyed and can't be released to the pool \" + key + \" because pool has been purged\");\n }\n return [4 /*yield*/, this._destroy(resource)];\n case 5:\n _a.sent();\n _a.label = 6;\n case 6:\n resourceReleased(key, this._activeResourceCounts);\n this._processPendingAcquireRequests(address);\n return [2 /*return*/];\n }\n });\n });\n };\n Pool.prototype._purgeKey = function (key) {\n return __awaiter(this, void 0, void 0, function () {\n var pool, poolState, destructionList, resource;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n pool = this._pools[key] || [];\n poolState = this._poolState[key] || new PoolState();\n destructionList = [];\n while (pool.length) {\n resource = pool.pop();\n if (this._removeIdleObserver) {\n this._removeIdleObserver(resource);\n }\n destructionList.push(this._destroy(resource));\n }\n poolState.close();\n delete this._pools[key];\n delete this._poolState[key];\n return [4 /*yield*/, Promise.all(destructionList)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n Pool.prototype._processPendingAcquireRequests = function (address) {\n var _this = this;\n var key = address.asKey();\n var requests = this._acquireRequests[key];\n var poolState = this._poolState[key];\n if (requests) {\n var pendingRequest_1 = requests.shift(); // pop a pending acquire request\n if (pendingRequest_1) {\n this._acquire(address)\n .catch(function (error) {\n // failed to acquire/create a new connection to resolve the pending acquire request\n // propagate the error by failing the pending request\n pendingRequest_1.reject(error);\n return null;\n })\n .then(function (resource) {\n if (resource) {\n // managed to acquire a valid resource from the pool\n if (pendingRequest_1.isCompleted()) {\n // request has been completed, most likely failed by a timeout\n // return the acquired resource back to the pool\n _this._release(poolState, address, resource);\n }\n else {\n // request is still pending and can be resolved with the newly acquired resource\n pendingRequest_1.resolve(resource); // resolve the pending request with the acquired resource\n }\n }\n });\n }\n else {\n delete this._acquireRequests[key];\n }\n }\n };\n return Pool;\n}());\n/**\n * Increment active (checked out of the pool) resource counter.\n * @param {string} key the resource group identifier (server address for connections).\n * @param {Object.} activeResourceCounts the object holding active counts per key.\n */\nfunction resourceAcquired(key, activeResourceCounts) {\n var currentCount = activeResourceCounts[key] || 0;\n activeResourceCounts[key] = currentCount + 1;\n}\n/**\n * Decrement active (checked out of the pool) resource counter.\n * @param {string} key the resource group identifier (server address for connections).\n * @param {Object.} activeResourceCounts the object holding active counts per key.\n */\nfunction resourceReleased(key, activeResourceCounts) {\n var currentCount = activeResourceCounts[key] || 0;\n var nextCount = currentCount - 1;\n if (nextCount > 0) {\n activeResourceCounts[key] = nextCount;\n }\n else {\n delete activeResourceCounts[key];\n }\n}\nvar PendingRequest = /** @class */ (function () {\n function PendingRequest(key, resolve, reject, timeoutId, log) {\n this._key = key;\n this._resolve = resolve;\n this._reject = reject;\n this._timeoutId = timeoutId;\n this._log = log;\n this._completed = false;\n }\n PendingRequest.prototype.isCompleted = function () {\n return this._completed;\n };\n PendingRequest.prototype.resolve = function (resource) {\n if (this._completed) {\n return;\n }\n this._completed = true;\n clearTimeout(this._timeoutId);\n if (this._log.isDebugEnabled()) {\n this._log.debug(resource + \" acquired from the pool \" + this._key);\n }\n this._resolve(resource);\n };\n PendingRequest.prototype.reject = function (error) {\n if (this._completed) {\n return;\n }\n this._completed = true;\n clearTimeout(this._timeoutId);\n this._reject(error);\n };\n return PendingRequest;\n}());\nvar PoolState = /** @class */ (function () {\n function PoolState() {\n this._active = true;\n }\n PoolState.prototype.isActive = function () {\n return this._active;\n };\n PoolState.prototype.close = function () {\n this._active = false;\n };\n return PoolState;\n}());\nexports.default = Pool;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RoutingTable = exports.Rediscovery = void 0;\nvar rediscovery_1 = __importDefault(require(\"./rediscovery\"));\nexports.Rediscovery = rediscovery_1.default;\nvar routing_table_1 = __importDefault(require(\"./routing-table\"));\nexports.RoutingTable = routing_table_1.default;\nexports.default = rediscovery_1.default;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar routing_table_1 = __importDefault(require(\"./routing-table\"));\nvar bolt_1 = require(\"../bolt\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar SERVICE_UNAVAILABLE = neo4j_driver_core_1.error.SERVICE_UNAVAILABLE;\nvar PROCEDURE_NOT_FOUND_CODE = 'Neo.ClientError.Procedure.ProcedureNotFound';\nvar DATABASE_NOT_FOUND_CODE = 'Neo.ClientError.Database.DatabaseNotFound';\nvar Rediscovery = /** @class */ (function () {\n /**\n * @constructor\n * @param {object} routingContext\n */\n function Rediscovery(routingContext) {\n this._routingContext = routingContext;\n }\n /**\n * Try to fetch new routing table from the given router.\n * @param {Session} session the session to use.\n * @param {string} database the database for which to lookup routing table.\n * @param {ServerAddress} routerAddress the URL of the router.\n * @param {string} impersonatedUser The impersonated user\n * @return {Promise} promise resolved with new routing table or null when connection error happened.\n */\n Rediscovery.prototype.lookupRoutingTableOnRouter = function (session, database, routerAddress, impersonatedUser) {\n var _this = this;\n return session._acquireConnection(function (connection) {\n return _this._requestRawRoutingTable(connection, session, database, routerAddress, impersonatedUser).then(function (rawRoutingTable) {\n if (rawRoutingTable.isNull) {\n return null;\n }\n return routing_table_1.default.fromRawRoutingTable(database, routerAddress, rawRoutingTable);\n });\n });\n };\n Rediscovery.prototype._requestRawRoutingTable = function (connection, session, database, routerAddress, impersonatedUser) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n connection.protocol().requestRoutingInformation({\n routingContext: _this._routingContext,\n databaseName: database,\n impersonatedUser: impersonatedUser,\n sessionContext: {\n bookmark: session._lastBookmark,\n mode: session._mode,\n database: session._database,\n afterComplete: session._onComplete\n },\n onCompleted: resolve,\n onError: function (error) {\n if (error.code === DATABASE_NOT_FOUND_CODE) {\n reject(error);\n }\n else if (error.code === PROCEDURE_NOT_FOUND_CODE) {\n // throw when getServers procedure not found because this is clearly a configuration issue\n reject((0, neo4j_driver_core_1.newError)(\"Server at \" + routerAddress.asHostPort() + \" can't perform routing. Make sure you are connecting to a causal cluster\", SERVICE_UNAVAILABLE));\n }\n else {\n // return nothing when failed to connect because code higher in the callstack is still able to retry with a\n // different session towards a different router\n resolve(bolt_1.RawRoutingTable.ofNull());\n }\n }\n });\n });\n };\n return Rediscovery;\n}());\nexports.default = Rediscovery;\n","\"use strict\";\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createValidRoutingTable = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar _a = neo4j_driver_core_1.internal.constants, WRITE = _a.ACCESS_MODE_WRITE, READ = _a.ACCESS_MODE_READ, ServerAddress = neo4j_driver_core_1.internal.serverAddress.ServerAddress;\nvar PROTOCOL_ERROR = neo4j_driver_core_1.error.PROTOCOL_ERROR;\nvar MIN_ROUTERS = 1;\n/**\n * The routing table object used to determine the role of the servers in the driver.\n */\nvar RoutingTable = /** @class */ (function () {\n function RoutingTable(_a) {\n var _b = _a === void 0 ? {} : _a, database = _b.database, routers = _b.routers, readers = _b.readers, writers = _b.writers, expirationTime = _b.expirationTime, ttl = _b.ttl;\n this.database = database || null;\n this.databaseName = database || 'default database';\n this.routers = routers || [];\n this.readers = readers || [];\n this.writers = writers || [];\n this.expirationTime = expirationTime || (0, neo4j_driver_core_1.int)(0);\n this.ttl = ttl;\n }\n /**\n * Create a valid routing table from a raw object\n *\n * @param {string} database the database name. It is used for logging purposes\n * @param {ServerAddress} routerAddress The router address, it is used for loggin purposes\n * @param {RawRoutingTable} rawRoutingTable Method used to get the raw routing table to be processed\n * @param {RoutingTable} The valid Routing Table\n */\n RoutingTable.fromRawRoutingTable = function (database, routerAddress, rawRoutingTable) {\n return createValidRoutingTable(database, routerAddress, rawRoutingTable);\n };\n RoutingTable.prototype.forget = function (address) {\n // Don't remove it from the set of routers, since that might mean we lose our ability to re-discover,\n // just remove it from the set of readers and writers, so that we don't use it for actual work without\n // performing discovery first.\n this.readers = removeFromArray(this.readers, address);\n this.writers = removeFromArray(this.writers, address);\n };\n RoutingTable.prototype.forgetRouter = function (address) {\n this.routers = removeFromArray(this.routers, address);\n };\n RoutingTable.prototype.forgetWriter = function (address) {\n this.writers = removeFromArray(this.writers, address);\n };\n /**\n * Check if this routing table is fresh to perform the required operation.\n * @param {string} accessMode the type of operation. Allowed values are {@link READ} and {@link WRITE}.\n * @return {boolean} `true` when this table contains servers to serve the required operation, `false` otherwise.\n */\n RoutingTable.prototype.isStaleFor = function (accessMode) {\n return (this.expirationTime.lessThan(Date.now()) ||\n this.routers.length < MIN_ROUTERS ||\n (accessMode === READ && this.readers.length === 0) ||\n (accessMode === WRITE && this.writers.length === 0));\n };\n /**\n * Check if this routing table is expired for specified amount of duration\n *\n * @param {Integer} duration amount of duration in milliseconds to check for expiration\n * @returns {boolean}\n */\n RoutingTable.prototype.isExpiredFor = function (duration) {\n return this.expirationTime.add(duration).lessThan(Date.now());\n };\n RoutingTable.prototype.allServers = function () {\n return __spreadArray(__spreadArray(__spreadArray([], __read(this.routers), false), __read(this.readers), false), __read(this.writers), false);\n };\n RoutingTable.prototype.toString = function () {\n return ('RoutingTable[' +\n (\"database=\" + this.databaseName + \", \") +\n (\"expirationTime=\" + this.expirationTime + \", \") +\n (\"currentTime=\" + Date.now() + \", \") +\n (\"routers=[\" + this.routers + \"], \") +\n (\"readers=[\" + this.readers + \"], \") +\n (\"writers=[\" + this.writers + \"]]\"));\n };\n return RoutingTable;\n}());\nexports.default = RoutingTable;\n/**\n * Remove all occurrences of the element in the array.\n * @param {Array} array the array to filter.\n * @param {Object} element the element to remove.\n * @return {Array} new filtered array.\n */\nfunction removeFromArray(array, element) {\n return array.filter(function (item) { return item.asKey() !== element.asKey(); });\n}\n/**\n * Create a valid routing table from a raw object\n *\n * @param {string} db the database name. It is used for logging purposes\n * @param {ServerAddress} routerAddress The router address, it is used for loggin purposes\n * @param {RawRoutingTable} rawRoutingTable Method used to get the raw routing table to be processed\n * @param {RoutingTable} The valid Routing Table\n */\nfunction createValidRoutingTable(database, routerAddress, rawRoutingTable) {\n var ttl = rawRoutingTable.ttl;\n var expirationTime = calculateExpirationTime(rawRoutingTable, routerAddress);\n var _a = parseServers(rawRoutingTable, routerAddress), routers = _a.routers, readers = _a.readers, writers = _a.writers;\n assertNonEmpty(routers, 'routers', routerAddress);\n assertNonEmpty(readers, 'readers', routerAddress);\n return new RoutingTable({\n database: database || rawRoutingTable.db,\n routers: routers,\n readers: readers,\n writers: writers,\n expirationTime: expirationTime,\n ttl: ttl\n });\n}\nexports.createValidRoutingTable = createValidRoutingTable;\n/**\n * Parse server from the RawRoutingTable.\n *\n * @param {RawRoutingTable} rawRoutingTable the raw routing table\n * @param {string} routerAddress the router address\n * @returns {Object} The object with the list of routers, readers and writers\n */\nfunction parseServers(rawRoutingTable, routerAddress) {\n try {\n var routers_1 = [];\n var readers_1 = [];\n var writers_1 = [];\n rawRoutingTable.servers.forEach(function (server) {\n var role = server.role;\n var addresses = server.addresses;\n if (role === 'ROUTE') {\n routers_1 = parseArray(addresses).map(function (address) {\n return ServerAddress.fromUrl(address);\n });\n }\n else if (role === 'WRITE') {\n writers_1 = parseArray(addresses).map(function (address) {\n return ServerAddress.fromUrl(address);\n });\n }\n else if (role === 'READ') {\n readers_1 = parseArray(addresses).map(function (address) {\n return ServerAddress.fromUrl(address);\n });\n }\n });\n return {\n routers: routers_1,\n readers: readers_1,\n writers: writers_1\n };\n }\n catch (error) {\n throw (0, neo4j_driver_core_1.newError)(\"Unable to parse servers entry from router \" + routerAddress + \" from addresses:\\n\" + neo4j_driver_core_1.json.stringify(rawRoutingTable.servers) + \"\\nError message: \" + error.message, PROTOCOL_ERROR);\n }\n}\n/**\n * Call the expiration time using the ttls from the raw routing table and return it\n *\n * @param {RawRoutingTable} rawRoutingTable the routing table\n * @param {string} routerAddress the router address\n * @returns {number} the ttl\n */\nfunction calculateExpirationTime(rawRoutingTable, routerAddress) {\n try {\n var now = (0, neo4j_driver_core_1.int)(Date.now());\n var expires = (0, neo4j_driver_core_1.int)(rawRoutingTable.ttl)\n .multiply(1000)\n .add(now);\n // if the server uses a really big expire time like Long.MAX_VALUE this may have overflowed\n if (expires.lessThan(now)) {\n return neo4j_driver_core_1.Integer.MAX_VALUE;\n }\n return expires;\n }\n catch (error) {\n throw (0, neo4j_driver_core_1.newError)(\"Unable to parse TTL entry from router \" + routerAddress + \" from raw routing table:\\n\" + neo4j_driver_core_1.json.stringify(rawRoutingTable) + \"\\nError message: \" + error.message, PROTOCOL_ERROR);\n }\n}\n/**\n * Assert if serverAddressesArray is not empty, throws and PROTOCOL_ERROR otherwise\n *\n * @param {string[]} serverAddressesArray array of addresses\n * @param {string} serversName the server name\n * @param {string} routerAddress the router address\n */\nfunction assertNonEmpty(serverAddressesArray, serversName, routerAddress) {\n if (serverAddressesArray.length === 0) {\n throw (0, neo4j_driver_core_1.newError)('Received no ' + serversName + ' from router ' + routerAddress, PROTOCOL_ERROR);\n }\n}\nfunction parseArray(addresses) {\n if (!Array.isArray(addresses)) {\n throw new TypeError('Array expected but got: ' + addresses);\n }\n return Array.from(addresses);\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * @property {function(username: string, password: string, realm: ?string)} basic the function to create a\n * basic authentication token.\n * @property {function(base64EncodedTicket: string)} kerberos the function to create a Kerberos authentication token.\n * Accepts a single string argument - base64 encoded Kerberos ticket.\n * @property {function(base64EncodedTicket: string)} bearer the function to create a Bearer authentication token.\n * Accepts a single string argument - base64 encoded Bearer ticket.\n * @property {function(principal: string, credentials: string, realm: string, scheme: string, parameters: ?object)} custom\n * the function to create a custom authentication token.\n */\nvar auth = {\n basic: function (username, password, realm) {\n if (realm) {\n return {\n scheme: 'basic',\n principal: username,\n credentials: password,\n realm: realm\n };\n }\n else {\n return { scheme: 'basic', principal: username, credentials: password };\n }\n },\n kerberos: function (base64EncodedTicket) {\n return {\n scheme: 'kerberos',\n principal: '',\n credentials: base64EncodedTicket\n };\n },\n bearer: function (base64EncodedToken) {\n return {\n scheme: 'bearer',\n credentials: base64EncodedToken\n };\n },\n custom: function (principal, credentials, realm, scheme, parameters) {\n if (parameters) {\n return {\n scheme: scheme,\n principal: principal,\n credentials: credentials,\n realm: realm,\n parameters: parameters\n };\n }\n else {\n return {\n scheme: scheme,\n principal: principal,\n credentials: credentials,\n realm: realm\n };\n }\n }\n};\nexports.default = auth;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Inteface define a common way to acquire a connection\n *\n * @private\n */\nvar ConnectionProvider = /** @class */ (function () {\n function ConnectionProvider() {\n }\n /**\n * This method acquires a connection against the specified database.\n *\n * Access mode and Bookmarks only applies to routing driver. Access mode only\n * differentiates the target server for the connection, where WRITE selects a\n * WRITER server, whereas READ selects a READ server. Bookmarks, when specified,\n * is only passed to the routing discovery procedure, for the system database to\n * synchronize on creation of databases and is never used in direct drivers.\n *\n * @param {object} param - object parameter\n * @property {string} param.accessMode - the access mode for the to-be-acquired connection\n * @property {string} param.database - the target database for the to-be-acquired connection\n * @property {Bookmark} param.bookmarks - the bookmarks to send to routing discovery\n * @property {string} param.impersonatedUser - the impersonated user\n * @property {function (databaseName:string?)} param.onDatabaseNameResolved - Callback called when the database name get resolved\n */\n ConnectionProvider.prototype.acquireConnection = function (param) {\n throw Error('Not implemented');\n };\n /**\n * This method checks whether the backend database supports multi database functionality\n * by checking protocol handshake result.\n *\n * @returns {Promise}\n */\n ConnectionProvider.prototype.supportsMultiDb = function () {\n throw Error('Not implemented');\n };\n /**\n * This method checks whether the backend database supports transaction config functionality\n * by checking protocol handshake result.\n *\n * @returns {Promise}\n */\n ConnectionProvider.prototype.supportsTransactionConfig = function () {\n throw Error('Not implemented');\n };\n /**\n * This method checks whether the backend database supports transaction config functionality\n * by checking protocol handshake result.\n *\n * @returns {Promise}\n */\n ConnectionProvider.prototype.supportsUserImpersonation = function () {\n throw Error('Not implemented');\n };\n /**\n * Closes this connection provider along with its internals (connections, pools, etc.)\n *\n * @returns {Promise}\n */\n ConnectionProvider.prototype.close = function () {\n throw Error('Not implemented');\n };\n return ConnectionProvider;\n}());\nexports.default = ConnectionProvider;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Interface which defines the raw connection with the database\n * @private\n */\nvar Connection = /** @class */ (function () {\n function Connection() {\n this.id = \"\";\n this.databaseId = \"\";\n }\n /**\n * @returns {boolean} whether this connection is in a working condition\n */\n Connection.prototype.isOpen = function () {\n return false;\n };\n /**\n * @todo be removed and internalize the methods\n * @returns {any} the underlying bolt protocol assigned to this connection\n */\n Connection.prototype.protocol = function () {\n throw Error('Not implemented');\n };\n /**\n * Connect to the target address, negotiate Bolt protocol and send initialization message.\n * @param {string} userAgent the user agent for this driver.\n * @param {Object} authToken the object containing auth information.\n * @return {Promise} promise resolved with the current connection if connection is successful. Rejected promise otherwise.\n */\n Connection.prototype.connect = function (userAgent, authToken) {\n throw Error('Not implemented');\n };\n /**\n * Write a message to the network channel.\n * @param {RequestMessage} message the message to write.\n * @param {ResultStreamObserver} observer the response observer.\n * @param {boolean} flush `true` if flush should happen after the message is written to the buffer.\n */\n Connection.prototype.write = function (message, observer, flush) {\n throw Error('Not implemented');\n };\n /**\n * Send a RESET-message to the database. Message is immediately flushed to the network.\n * @return {Promise} promise resolved when SUCCESS-message response arrives, or failed when other response messages arrives.\n */\n Connection.prototype.resetAndFlush = function () {\n throw Error('Not implemented');\n };\n /**\n * Call close on the channel.\n * @returns {Promise} - A promise that will be resolved when the connection is closed.\n *\n */\n Connection.prototype.close = function () {\n throw Error('Not implemented');\n };\n /**\n * Called to release the connection\n */\n Connection.prototype._release = function () {\n return Promise.resolve();\n };\n return Connection;\n}());\nexports.default = Connection;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WRITE = exports.READ = exports.Driver = void 0;\nvar bookmark_1 = require(\"./internal/bookmark\");\nvar connectivity_verifier_1 = require(\"./internal/connectivity-verifier\");\nvar configured_custom_resolver_1 = __importDefault(require(\"./internal/resolver/configured-custom-resolver\"));\nvar constants_1 = require(\"./internal/constants\");\nvar logger_1 = require(\"./internal/logger\");\nvar session_1 = __importDefault(require(\"./session\"));\nvar util_1 = require(\"./internal/util\");\nvar DEFAULT_MAX_CONNECTION_LIFETIME = 60 * 60 * 1000; // 1 hour\n/**\n * The default record fetch size. This is used in Bolt V4 protocol to pull query execution result in batches.\n * @type {number}\n */\nvar DEFAULT_FETCH_SIZE = 1000;\n/**\n * Constant that represents read session access mode.\n * Should be used like this: `driver.session({ defaultAccessMode: neo4j.session.READ })`.\n * @type {string}\n */\nvar READ = constants_1.ACCESS_MODE_READ;\nexports.READ = READ;\n/**\n * Constant that represents write session access mode.\n * Should be used like this: `driver.session({ defaultAccessMode: neo4j.session.WRITE })`.\n * @type {string}\n */\nvar WRITE = constants_1.ACCESS_MODE_WRITE;\nexports.WRITE = WRITE;\nvar idGenerator = 0;\n/**\n * A driver maintains one or more {@link Session}s with a remote\n * Neo4j instance. Through the {@link Session}s you can send queries\n * and retrieve results from the database.\n *\n * Drivers are reasonably expensive to create - you should strive to keep one\n * driver instance around per Neo4j Instance you connect to.\n *\n * @access public\n */\nvar Driver = /** @class */ (function () {\n /**\n * You should not be calling this directly, instead use {@link driver}.\n * @constructor\n * @protected\n * @param {Object} meta Metainformation about the driver\n * @param {Object} config\n * @param {function(id: number, config:Object, log:Logger, hostNameResolver: ConfiguredCustomResolver): ConnectionProvider } createConnectonProvider Creates the connection provider\n * @param {function(args): Session } createSession Creates the a session\n */\n function Driver(meta, config, createConnectonProvider, createSession) {\n if (config === void 0) { config = {}; }\n if (createSession === void 0) { createSession = function (args) { return new session_1.default(args); }; }\n sanitizeConfig(config);\n validateConfig(config);\n this._id = idGenerator++;\n this._meta = meta;\n this._config = config;\n this._log = logger_1.Logger.create(config);\n this._createConnectionProvider = createConnectonProvider;\n this._createSession = createSession;\n /**\n * Reference to the connection provider. Initialized lazily by {@link _getOrCreateConnectionProvider}.\n * @type {ConnectionProvider}\n * @protected\n */\n this._connectionProvider = null;\n this._afterConstruction();\n }\n /**\n * Verifies connectivity of this driver by trying to open a connection with the provided driver options.\n *\n * @public\n * @param {Object} param - The object parameter\n * @param {string} param.database - The target database to verify connectivity for.\n * @returns {Promise} promise resolved with server info or rejected with error.\n */\n Driver.prototype.verifyConnectivity = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.database, database = _c === void 0 ? '' : _c;\n var connectionProvider = this._getOrCreateConnectionProvider();\n var connectivityVerifier = new connectivity_verifier_1.ConnectivityVerifier(connectionProvider);\n return connectivityVerifier.verify({ database: database });\n };\n /**\n * Returns whether the server supports multi database capabilities based on the protocol\n * version negotiated via handshake.\n *\n * Note that this function call _always_ causes a round-trip to the server.\n *\n * @returns {Promise} promise resolved with a boolean or rejected with error.\n */\n Driver.prototype.supportsMultiDb = function () {\n var connectionProvider = this._getOrCreateConnectionProvider();\n return connectionProvider.supportsMultiDb();\n };\n /**\n * Returns whether the server supports transaction config capabilities based on the protocol\n * version negotiated via handshake.\n *\n * Note that this function call _always_ causes a round-trip to the server.\n *\n * @returns {Promise} promise resolved with a boolean or rejected with error.\n */\n Driver.prototype.supportsTransactionConfig = function () {\n var connectionProvider = this._getOrCreateConnectionProvider();\n return connectionProvider.supportsTransactionConfig();\n };\n /**\n * Returns whether the server supports user impersonation capabilities based on the protocol\n * version negotiated via handshake.\n *\n * Note that this function call _always_ causes a round-trip to the server.\n *\n * @returns {Promise} promise resolved with a boolean or rejected with error.\n */\n Driver.prototype.supportsUserImpersonation = function () {\n var connectionProvider = this._getOrCreateConnectionProvider();\n return connectionProvider.supportsUserImpersonation();\n };\n /**\n * @protected\n * @returns {boolean}\n */\n Driver.prototype._supportsRouting = function () {\n return this._meta.routing;\n };\n /**\n * Returns boolean to indicate if driver has been configured with encryption enabled.\n *\n * @protected\n * @returns {boolean}\n */\n Driver.prototype._isEncrypted = function () {\n return this._config.encrypted === util_1.ENCRYPTION_ON;\n };\n /**\n * Returns the configured trust strategy that the driver has been configured with.\n *\n * @protected\n * @returns {TrustStrategy}\n */\n Driver.prototype._getTrust = function () {\n return this._config.trust;\n };\n /**\n * Acquire a session to communicate with the database. The session will\n * borrow connections from the underlying connection pool as required and\n * should be considered lightweight and disposable.\n *\n * This comes with some responsibility - make sure you always call\n * {@link close} when you are done using a session, and likewise,\n * make sure you don't close your session before you are done using it. Once\n * it is closed, the underlying connection will be released to the connection\n * pool and made available for others to use.\n *\n * @public\n * @param {Object} param - The object parameter\n * @param {string} param.defaultAccessMode=WRITE - The access mode of this session, allowed values are {@link READ} and {@link WRITE}.\n * @param {string|string[]} param.bookmarks - The initial reference or references to some previous\n * transactions. Value is optional and absence indicates that that the bookmarks do not exist or are unknown.\n * @param {number} param.fetchSize - The record fetch size of each batch of this session.\n * Use {@link FETCH_ALL} to always pull all records in one batch. This will override the config value set on driver config.\n * @param {string} param.database - The database this session will operate on.\n * @param {string} param.impersonatedUser - The username which the user wants to impersonate for the duration of the session.\n * @return {Session} new session.\n */\n Driver.prototype.session = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.defaultAccessMode, defaultAccessMode = _c === void 0 ? WRITE : _c, bookmarkOrBookmarks = _b.bookmarks, _d = _b.database, database = _d === void 0 ? '' : _d, impersonatedUser = _b.impersonatedUser, fetchSize = _b.fetchSize;\n return this._newSession({\n defaultAccessMode: defaultAccessMode,\n bookmarkOrBookmarks: bookmarkOrBookmarks,\n database: database,\n reactive: false,\n impersonatedUser: impersonatedUser,\n fetchSize: validateFetchSizeValue(fetchSize, this._config.fetchSize)\n });\n };\n /**\n * Close all open sessions and other associated resources. You should\n * make sure to use this when you are done with this driver instance.\n * @public\n * @return {Promise} promise resolved when the driver is closed.\n */\n Driver.prototype.close = function () {\n this._log.info(\"Driver \" + this._id + \" closing\");\n if (this._connectionProvider) {\n return this._connectionProvider.close();\n }\n return Promise.resolve();\n };\n /**\n * @protected\n */\n Driver.prototype._afterConstruction = function () {\n this._log.info(this._meta.typename + \" driver \" + this._id + \" created for server address \" + this._meta.address);\n };\n /**\n * @private\n */\n Driver.prototype._newSession = function (_a) {\n var defaultAccessMode = _a.defaultAccessMode, bookmarkOrBookmarks = _a.bookmarkOrBookmarks, database = _a.database, reactive = _a.reactive, impersonatedUser = _a.impersonatedUser, fetchSize = _a.fetchSize;\n var sessionMode = session_1.default._validateSessionMode(defaultAccessMode);\n var connectionProvider = this._getOrCreateConnectionProvider();\n var bookmark = bookmarkOrBookmarks\n ? new bookmark_1.Bookmark(bookmarkOrBookmarks)\n : bookmark_1.Bookmark.empty();\n return this._createSession({\n mode: sessionMode,\n database: database || '',\n connectionProvider: connectionProvider,\n bookmark: bookmark,\n config: this._config,\n reactive: reactive,\n impersonatedUser: impersonatedUser,\n fetchSize: fetchSize\n });\n };\n /**\n * @private\n */\n Driver.prototype._getOrCreateConnectionProvider = function () {\n if (!this._connectionProvider) {\n this._connectionProvider = this._createConnectionProvider(this._id, this._config, this._log, createHostNameResolver(this._config));\n }\n return this._connectionProvider;\n };\n return Driver;\n}());\nexports.Driver = Driver;\n/**\n * @private\n * @returns {Object} the given config.\n */\nfunction validateConfig(config) {\n var resolver = config.resolver;\n if (resolver && typeof resolver !== 'function') {\n throw new TypeError(\"Configured resolver should be a function. Got: \" + resolver);\n }\n return config;\n}\n/**\n * @private\n */\nfunction sanitizeConfig(config) {\n config.maxConnectionLifetime = sanitizeIntValue(config.maxConnectionLifetime, DEFAULT_MAX_CONNECTION_LIFETIME);\n config.maxConnectionPoolSize = sanitizeIntValue(config.maxConnectionPoolSize, constants_1.DEFAULT_POOL_MAX_SIZE);\n config.connectionAcquisitionTimeout = sanitizeIntValue(config.connectionAcquisitionTimeout, constants_1.DEFAULT_POOL_ACQUISITION_TIMEOUT);\n config.fetchSize = validateFetchSizeValue(config.fetchSize, DEFAULT_FETCH_SIZE);\n}\n/**\n * @private\n */\nfunction sanitizeIntValue(rawValue, defaultWhenAbsent) {\n var sanitizedValue = parseInt(rawValue, 10);\n if (sanitizedValue > 0 || sanitizedValue === 0) {\n return sanitizedValue;\n }\n else if (sanitizedValue < 0) {\n return Number.MAX_SAFE_INTEGER;\n }\n else {\n return defaultWhenAbsent;\n }\n}\n/**\n * @private\n */\nfunction validateFetchSizeValue(rawValue, defaultWhenAbsent) {\n var fetchSize = parseInt(rawValue, 10);\n if (fetchSize > 0 || fetchSize === constants_1.FETCH_ALL) {\n return fetchSize;\n }\n else if (fetchSize === 0 || fetchSize < 0) {\n throw new Error(\"The fetch size can only be a positive value or \" + constants_1.FETCH_ALL + \" for ALL. However fetchSize = \" + fetchSize);\n }\n else {\n return defaultWhenAbsent;\n }\n}\n/**\n * @private\n * @returns {ConfiguredCustomResolver} new custom resolver that wraps the passed-in resolver function.\n * If resolved function is not specified, it defaults to an identity resolver.\n */\nfunction createHostNameResolver(config) {\n return new configured_custom_resolver_1.default(config.resolver);\n}\nexports.default = Driver;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PROTOCOL_ERROR = exports.SESSION_EXPIRED = exports.SERVICE_UNAVAILABLE = exports.Neo4jError = exports.newError = void 0;\n// A common place for constructing error objects, to keep them\n// uniform across the driver surface.\n/**\n * Error code representing complete loss of service. Used by {@link Neo4jError#code}.\n * @type {string}\n */\nvar SERVICE_UNAVAILABLE = 'ServiceUnavailable';\nexports.SERVICE_UNAVAILABLE = SERVICE_UNAVAILABLE;\n/**\n * Error code representing transient loss of service. Used by {@link Neo4jError#code}.\n * @type {string}\n */\nvar SESSION_EXPIRED = 'SessionExpired';\nexports.SESSION_EXPIRED = SESSION_EXPIRED;\n/**\n * Error code representing serialization/deserialization issue in the Bolt protocol. Used by {@link Neo4jError#code}.\n * @type {string}\n */\nvar PROTOCOL_ERROR = 'ProtocolError';\nexports.PROTOCOL_ERROR = PROTOCOL_ERROR;\n/**\n * Error code representing an no classified error. Used by {@link Neo4jError#code}.\n * @type {string}\n */\nvar NOT_AVAILABLE = 'N/A';\n/// TODO: Remove definitions of this.constructor and this.__proto__\n/**\n * Class for all errors thrown/returned by the driver.\n */\nvar Neo4jError = /** @class */ (function (_super) {\n __extends(Neo4jError, _super);\n /**\n * @constructor\n * @param {string} message - the error message\n * @param {string} code - Optional error code. Will be populated when error originates in the database.\n */\n function Neo4jError(message, code) {\n var _this = _super.call(this, message) || this;\n _this.constructor = Neo4jError;\n // eslint-disable-next-line no-proto\n _this.__proto__ = Neo4jError.prototype;\n _this.code = code;\n _this.name = 'Neo4jError';\n return _this;\n }\n return Neo4jError;\n}(Error));\nexports.Neo4jError = Neo4jError;\n/**\n * Create a new error from a message and error code\n * @param message the error message\n * @param code the error code\n * @return {Neo4jError} an {@link Neo4jError}\n * @private\n */\nfunction newError(message, code) {\n return new Neo4jError(message, code !== null && code !== void 0 ? code : NOT_AVAILABLE);\n}\nexports.newError = newError;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isPathSegment = exports.PathSegment = exports.isPath = exports.Path = exports.isUnboundRelationship = exports.UnboundRelationship = exports.isRelationship = exports.Relationship = exports.isNode = exports.Node = void 0;\nvar json_1 = require(\"./json\");\nvar IDENTIFIER_PROPERTY_ATTRIBUTES = {\n value: true,\n enumerable: false,\n configurable: false,\n writable: false\n};\nvar NODE_IDENTIFIER_PROPERTY = '__isNode__';\nvar RELATIONSHIP_IDENTIFIER_PROPERTY = '__isRelationship__';\nvar UNBOUND_RELATIONSHIP_IDENTIFIER_PROPERTY = '__isUnboundRelationship__';\nvar PATH_IDENTIFIER_PROPERTY = '__isPath__';\nvar PATH_SEGMENT_IDENTIFIER_PROPERTY = '__isPathSegment__';\nfunction hasIdentifierProperty(obj, property) {\n return (obj && obj[property]) === true;\n}\n/**\n * Class for Node Type.\n */\nvar Node = /** @class */ (function () {\n /**\n * @constructor\n * @protected\n * @param {Integer|number} identity - Unique identity\n * @param {Array} labels - Array for all labels\n * @param {Properties} properties - Map with node properties\n */\n function Node(identity, labels, properties) {\n /**\n * Identity of the node.\n * @type {Integer|number}\n */\n this.identity = identity;\n /**\n * Labels of the node.\n * @type {string[]}\n */\n this.labels = labels;\n /**\n * Properties of the node.\n * @type {Properties}\n */\n this.properties = properties;\n }\n /**\n * @ignore\n */\n Node.prototype.toString = function () {\n var s = '(' + this.identity;\n for (var i = 0; i < this.labels.length; i++) {\n s += ':' + this.labels[i];\n }\n var keys = Object.keys(this.properties);\n if (keys.length > 0) {\n s += ' {';\n for (var i = 0; i < keys.length; i++) {\n if (i > 0)\n s += ',';\n s += keys[i] + ':' + (0, json_1.stringify)(this.properties[keys[i]]);\n }\n s += '}';\n }\n s += ')';\n return s;\n };\n return Node;\n}());\nexports.Node = Node;\nObject.defineProperty(Node.prototype, NODE_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link Node} class.\n * @param {Object} obj the object to test.\n * @return {boolean} `true` if given object is a {@link Node}, `false` otherwise.\n */\nfunction isNode(obj) {\n return hasIdentifierProperty(obj, NODE_IDENTIFIER_PROPERTY);\n}\nexports.isNode = isNode;\n/**\n * Class for Relationship Type.\n */\nvar Relationship = /** @class */ (function () {\n /**\n * @constructor\n * @protected\n * @param {Integer|number} identity - Unique identity\n * @param {Integer|number} start - Identity of start Node\n * @param {Integer|number} end - Identity of end Node\n * @param {string} type - Relationship type\n * @param {Properties} properties - Map with relationship properties\n */\n function Relationship(identity, start, end, type, properties) {\n /**\n * Identity of the relationship.\n * @type {Integer|number}\n */\n this.identity = identity;\n /**\n * Identity of the start node.\n * @type {Integer|number}\n */\n this.start = start;\n /**\n * Identity of the end node.\n * @type {Integer|number}\n */\n this.end = end;\n /**\n * Type of the relationship.\n * @type {string}\n */\n this.type = type;\n /**\n * Properties of the relationship.\n * @type {Properties}\n */\n this.properties = properties;\n }\n /**\n * @ignore\n */\n Relationship.prototype.toString = function () {\n var s = '(' + this.start + ')-[:' + this.type;\n var keys = Object.keys(this.properties);\n if (keys.length > 0) {\n s += ' {';\n for (var i = 0; i < keys.length; i++) {\n if (i > 0)\n s += ',';\n s += keys[i] + ':' + (0, json_1.stringify)(this.properties[keys[i]]);\n }\n s += '}';\n }\n s += ']->(' + this.end + ')';\n return s;\n };\n return Relationship;\n}());\nexports.Relationship = Relationship;\nObject.defineProperty(Relationship.prototype, RELATIONSHIP_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link Relationship} class.\n * @param {Object} obj the object to test.\n * @return {boolean} `true` if given object is a {@link Relationship}, `false` otherwise.\n */\nfunction isRelationship(obj) {\n return hasIdentifierProperty(obj, RELATIONSHIP_IDENTIFIER_PROPERTY);\n}\nexports.isRelationship = isRelationship;\n/**\n * Class for UnboundRelationship Type.\n * @access private\n */\nvar UnboundRelationship = /** @class */ (function () {\n /**\n * @constructor\n * @protected\n * @param {Integer|number} identity - Unique identity\n * @param {string} type - Relationship type\n * @param {Properties} properties - Map with relationship properties\n */\n function UnboundRelationship(identity, type, properties) {\n /**\n * Identity of the relationship.\n * @type {Integer|number}\n */\n this.identity = identity;\n /**\n * Type of the relationship.\n * @type {string}\n */\n this.type = type;\n /**\n * Properties of the relationship.\n * @type {Properties}\n */\n this.properties = properties;\n }\n /**\n * Bind relationship\n *\n * @protected\n * @param {Integer} start - Identity of start node\n * @param {Integer} end - Identity of end node\n * @return {Relationship} - Created relationship\n */\n UnboundRelationship.prototype.bind = function (start, end) {\n return new Relationship(this.identity, start, end, this.type, this.properties);\n };\n /**\n * @ignore\n */\n UnboundRelationship.prototype.toString = function () {\n var s = '-[:' + this.type;\n var keys = Object.keys(this.properties);\n if (keys.length > 0) {\n s += ' {';\n for (var i = 0; i < keys.length; i++) {\n if (i > 0)\n s += ',';\n s += keys[i] + ':' + (0, json_1.stringify)(this.properties[keys[i]]);\n }\n s += '}';\n }\n s += ']->';\n return s;\n };\n return UnboundRelationship;\n}());\nexports.UnboundRelationship = UnboundRelationship;\nObject.defineProperty(UnboundRelationship.prototype, UNBOUND_RELATIONSHIP_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link UnboundRelationship} class.\n * @param {Object} obj the object to test.\n * @return {boolean} `true` if given object is a {@link UnboundRelationship}, `false` otherwise.\n */\nfunction isUnboundRelationship(obj) {\n return hasIdentifierProperty(obj, UNBOUND_RELATIONSHIP_IDENTIFIER_PROPERTY);\n}\nexports.isUnboundRelationship = isUnboundRelationship;\n/**\n * Class for PathSegment Type.\n */\nvar PathSegment = /** @class */ (function () {\n /**\n * @constructor\n * @protected\n * @param {Node} start - start node\n * @param {Relationship} rel - relationship that connects start and end node\n * @param {Node} end - end node\n */\n function PathSegment(start, rel, end) {\n /**\n * Start node.\n * @type {Node}\n */\n this.start = start;\n /**\n * Relationship.\n * @type {Relationship}\n */\n this.relationship = rel;\n /**\n * End node.\n * @type {Node}\n */\n this.end = end;\n }\n return PathSegment;\n}());\nexports.PathSegment = PathSegment;\nObject.defineProperty(PathSegment.prototype, PATH_SEGMENT_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link PathSegment} class.\n * @param {Object} obj the object to test.\n * @return {boolean} `true` if given object is a {@link PathSegment}, `false` otherwise.\n */\nfunction isPathSegment(obj) {\n return hasIdentifierProperty(obj, PATH_SEGMENT_IDENTIFIER_PROPERTY);\n}\nexports.isPathSegment = isPathSegment;\n/**\n * Class for Path Type.\n */\nvar Path = /** @class */ (function () {\n /**\n * @constructor\n * @protected\n * @param {Node} start - start node\n * @param {Node} end - end node\n * @param {Array} segments - Array of Segments\n */\n function Path(start, end, segments) {\n /**\n * Start node.\n * @type {Node}\n */\n this.start = start;\n /**\n * End node.\n * @type {Node}\n */\n this.end = end;\n /**\n * Segments.\n * @type {Array}\n */\n this.segments = segments;\n /**\n * Length of the segments.\n * @type {Number}\n */\n this.length = segments.length;\n }\n return Path;\n}());\nexports.Path = Path;\nObject.defineProperty(Path.prototype, PATH_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link Path} class.\n * @param {Object} obj the object to test.\n * @return {boolean} `true` if given object is a {@link Path}, `false` otherwise.\n */\nfunction isPath(obj) {\n return hasIdentifierProperty(obj, PATH_IDENTIFIER_PROPERTY);\n}\nexports.isPath = isPath;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.types = exports.Driver = exports.Session = exports.Transaction = exports.Connection = exports.ConnectionProvider = exports.Result = exports.Stats = exports.QueryStatistics = exports.ProfiledPlan = exports.Plan = exports.Notification = exports.ServerInfo = exports.queryType = exports.ResultSummary = exports.Record = exports.isPathSegment = exports.PathSegment = exports.isPath = exports.Path = exports.isUnboundRelationship = exports.UnboundRelationship = exports.isRelationship = exports.Relationship = exports.isNode = exports.Node = exports.Time = exports.LocalTime = exports.LocalDateTime = exports.isTime = exports.isLocalTime = exports.isLocalDateTime = exports.isDuration = exports.isDateTime = exports.isDate = exports.Duration = exports.DateTime = exports.Date = exports.Point = exports.isPoint = exports.internal = exports.toString = exports.toNumber = exports.inSafeRange = exports.isInt = exports.int = exports.Integer = exports.error = exports.Neo4jError = exports.newError = void 0;\nexports.auth = exports.json = exports.driver = void 0;\nvar error_1 = require(\"./error\");\nObject.defineProperty(exports, \"newError\", { enumerable: true, get: function () { return error_1.newError; } });\nObject.defineProperty(exports, \"Neo4jError\", { enumerable: true, get: function () { return error_1.Neo4jError; } });\nvar integer_1 = __importStar(require(\"./integer\"));\nexports.Integer = integer_1.default;\nObject.defineProperty(exports, \"int\", { enumerable: true, get: function () { return integer_1.int; } });\nObject.defineProperty(exports, \"isInt\", { enumerable: true, get: function () { return integer_1.isInt; } });\nObject.defineProperty(exports, \"inSafeRange\", { enumerable: true, get: function () { return integer_1.inSafeRange; } });\nObject.defineProperty(exports, \"toNumber\", { enumerable: true, get: function () { return integer_1.toNumber; } });\nObject.defineProperty(exports, \"toString\", { enumerable: true, get: function () { return integer_1.toString; } });\nvar temporal_types_1 = require(\"./temporal-types\");\nObject.defineProperty(exports, \"Date\", { enumerable: true, get: function () { return temporal_types_1.Date; } });\nObject.defineProperty(exports, \"DateTime\", { enumerable: true, get: function () { return temporal_types_1.DateTime; } });\nObject.defineProperty(exports, \"Duration\", { enumerable: true, get: function () { return temporal_types_1.Duration; } });\nObject.defineProperty(exports, \"isDate\", { enumerable: true, get: function () { return temporal_types_1.isDate; } });\nObject.defineProperty(exports, \"isDateTime\", { enumerable: true, get: function () { return temporal_types_1.isDateTime; } });\nObject.defineProperty(exports, \"isDuration\", { enumerable: true, get: function () { return temporal_types_1.isDuration; } });\nObject.defineProperty(exports, \"isLocalDateTime\", { enumerable: true, get: function () { return temporal_types_1.isLocalDateTime; } });\nObject.defineProperty(exports, \"isLocalTime\", { enumerable: true, get: function () { return temporal_types_1.isLocalTime; } });\nObject.defineProperty(exports, \"isTime\", { enumerable: true, get: function () { return temporal_types_1.isTime; } });\nObject.defineProperty(exports, \"LocalDateTime\", { enumerable: true, get: function () { return temporal_types_1.LocalDateTime; } });\nObject.defineProperty(exports, \"LocalTime\", { enumerable: true, get: function () { return temporal_types_1.LocalTime; } });\nObject.defineProperty(exports, \"Time\", { enumerable: true, get: function () { return temporal_types_1.Time; } });\nvar graph_types_1 = require(\"./graph-types\");\nObject.defineProperty(exports, \"Node\", { enumerable: true, get: function () { return graph_types_1.Node; } });\nObject.defineProperty(exports, \"isNode\", { enumerable: true, get: function () { return graph_types_1.isNode; } });\nObject.defineProperty(exports, \"Relationship\", { enumerable: true, get: function () { return graph_types_1.Relationship; } });\nObject.defineProperty(exports, \"isRelationship\", { enumerable: true, get: function () { return graph_types_1.isRelationship; } });\nObject.defineProperty(exports, \"UnboundRelationship\", { enumerable: true, get: function () { return graph_types_1.UnboundRelationship; } });\nObject.defineProperty(exports, \"isUnboundRelationship\", { enumerable: true, get: function () { return graph_types_1.isUnboundRelationship; } });\nObject.defineProperty(exports, \"Path\", { enumerable: true, get: function () { return graph_types_1.Path; } });\nObject.defineProperty(exports, \"isPath\", { enumerable: true, get: function () { return graph_types_1.isPath; } });\nObject.defineProperty(exports, \"PathSegment\", { enumerable: true, get: function () { return graph_types_1.PathSegment; } });\nObject.defineProperty(exports, \"isPathSegment\", { enumerable: true, get: function () { return graph_types_1.isPathSegment; } });\nvar record_1 = __importDefault(require(\"./record\"));\nexports.Record = record_1.default;\nvar spatial_types_1 = require(\"./spatial-types\");\nObject.defineProperty(exports, \"isPoint\", { enumerable: true, get: function () { return spatial_types_1.isPoint; } });\nObject.defineProperty(exports, \"Point\", { enumerable: true, get: function () { return spatial_types_1.Point; } });\nvar result_summary_1 = __importStar(require(\"./result-summary\"));\nexports.ResultSummary = result_summary_1.default;\nObject.defineProperty(exports, \"queryType\", { enumerable: true, get: function () { return result_summary_1.queryType; } });\nObject.defineProperty(exports, \"ServerInfo\", { enumerable: true, get: function () { return result_summary_1.ServerInfo; } });\nObject.defineProperty(exports, \"Notification\", { enumerable: true, get: function () { return result_summary_1.Notification; } });\nObject.defineProperty(exports, \"Plan\", { enumerable: true, get: function () { return result_summary_1.Plan; } });\nObject.defineProperty(exports, \"ProfiledPlan\", { enumerable: true, get: function () { return result_summary_1.ProfiledPlan; } });\nObject.defineProperty(exports, \"QueryStatistics\", { enumerable: true, get: function () { return result_summary_1.QueryStatistics; } });\nObject.defineProperty(exports, \"Stats\", { enumerable: true, get: function () { return result_summary_1.Stats; } });\nvar result_1 = __importDefault(require(\"./result\"));\nexports.Result = result_1.default;\nvar connection_provider_1 = __importDefault(require(\"./connection-provider\"));\nexports.ConnectionProvider = connection_provider_1.default;\nvar connection_1 = __importDefault(require(\"./connection\"));\nexports.Connection = connection_1.default;\nvar transaction_1 = __importDefault(require(\"./transaction\"));\nexports.Transaction = transaction_1.default;\nvar session_1 = __importDefault(require(\"./session\"));\nexports.Session = session_1.default;\nvar driver_1 = __importStar(require(\"./driver\")), driver = driver_1;\nexports.Driver = driver_1.default;\nexports.driver = driver;\nvar auth_1 = __importDefault(require(\"./auth\"));\nexports.auth = auth_1.default;\nvar types = __importStar(require(\"./types\"));\nexports.types = types;\nvar json = __importStar(require(\"./json\"));\nexports.json = json;\nvar internal = __importStar(require(\"./internal\")); // todo: removed afterwards\nexports.internal = internal;\n/**\n * Object containing string constants representing predefined {@link Neo4jError} codes.\n */\nvar error = {\n SERVICE_UNAVAILABLE: error_1.SERVICE_UNAVAILABLE,\n SESSION_EXPIRED: error_1.SESSION_EXPIRED,\n PROTOCOL_ERROR: error_1.PROTOCOL_ERROR\n};\nexports.error = error;\n/**\n * @private\n */\nvar forExport = {\n newError: error_1.newError,\n Neo4jError: error_1.Neo4jError,\n error: error,\n Integer: integer_1.default,\n int: integer_1.int,\n isInt: integer_1.isInt,\n inSafeRange: integer_1.inSafeRange,\n toNumber: integer_1.toNumber,\n toString: integer_1.toString,\n internal: internal,\n isPoint: spatial_types_1.isPoint,\n Point: spatial_types_1.Point,\n Date: temporal_types_1.Date,\n DateTime: temporal_types_1.DateTime,\n Duration: temporal_types_1.Duration,\n isDate: temporal_types_1.isDate,\n isDateTime: temporal_types_1.isDateTime,\n isDuration: temporal_types_1.isDuration,\n isLocalDateTime: temporal_types_1.isLocalDateTime,\n isLocalTime: temporal_types_1.isLocalTime,\n isTime: temporal_types_1.isTime,\n LocalDateTime: temporal_types_1.LocalDateTime,\n LocalTime: temporal_types_1.LocalTime,\n Time: temporal_types_1.Time,\n Node: graph_types_1.Node,\n isNode: graph_types_1.isNode,\n Relationship: graph_types_1.Relationship,\n isRelationship: graph_types_1.isRelationship,\n UnboundRelationship: graph_types_1.UnboundRelationship,\n isUnboundRelationship: graph_types_1.isUnboundRelationship,\n Path: graph_types_1.Path,\n isPath: graph_types_1.isPath,\n PathSegment: graph_types_1.PathSegment,\n isPathSegment: graph_types_1.isPathSegment,\n Record: record_1.default,\n ResultSummary: result_summary_1.default,\n queryType: result_summary_1.queryType,\n ServerInfo: result_summary_1.ServerInfo,\n Notification: result_summary_1.Notification,\n Plan: result_summary_1.Plan,\n ProfiledPlan: result_summary_1.ProfiledPlan,\n QueryStatistics: result_summary_1.QueryStatistics,\n Stats: result_summary_1.Stats,\n Result: result_1.default,\n Transaction: transaction_1.default,\n Session: session_1.default,\n Driver: driver_1.default,\n Connection: connection_1.default,\n types: types,\n driver: driver,\n json: json,\n auth: auth_1.default\n};\nexports.default = forExport;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toString = exports.toNumber = exports.inSafeRange = exports.isInt = exports.int = void 0;\n// 64-bit Integer library, originally from Long.js by dcodeIO\n// https://github.com/dcodeIO/Long.js\n// License Apache 2\nvar error_1 = require(\"./error\");\n/**\n * A cache of the Integer representations of small integer values.\n * @type {!Object}\n * @inner\n * @private\n */\n// eslint-disable-next-line no-use-before-define\nvar INT_CACHE = new Map();\n/**\n * Constructs a 64 bit two's-complement integer, given its low and high 32 bit values as *signed* integers.\n * See exported functions for more convenient ways of operating integers.\n * Use `int()` function to create new integers, `isInt()` to check if given object is integer,\n * `inSafeRange()` to check if it is safe to convert given value to native number,\n * `toNumber()` and `toString()` to convert given integer to number or string respectively.\n * @access public\n * @exports Integer\n * @class A Integer class for representing a 64 bit two's-complement integer value.\n * @param {number} low The low (signed) 32 bits of the long\n * @param {number} high The high (signed) 32 bits of the long\n *\n * @constructor\n */\nvar Integer = /** @class */ (function () {\n function Integer(low, high) {\n /**\n * The low 32 bits as a signed value.\n * @type {number}\n * @expose\n */\n this.low = low || 0;\n /**\n * The high 32 bits as a signed value.\n * @type {number}\n * @expose\n */\n this.high = high || 0;\n }\n // The internal representation of an Integer is the two given signed, 32-bit values.\n // We use 32-bit pieces because these are the size of integers on which\n // JavaScript performs bit-operations. For operations like addition and\n // multiplication, we split each number into 16 bit pieces, which can easily be\n // multiplied within JavaScript's floating-point representation without overflow\n // or change in sign.\n //\n // In the algorithms below, we frequently reduce the negative case to the\n // positive case by negating the input(s) and then post-processing the result.\n // Note that we must ALWAYS check specially whether those values are MIN_VALUE\n // (-2^63) because -MIN_VALUE == MIN_VALUE (since 2^63 cannot be represented as\n // a positive number, it overflows back into a negative). Not handling this\n // case would often result in infinite recursion.\n //\n // Common constant values ZERO, ONE, NEG_ONE, etc. are defined below the from*\n // methods on which they depend.\n Integer.prototype.inSafeRange = function () {\n return (this.greaterThanOrEqual(Integer.MIN_SAFE_VALUE) &&\n this.lessThanOrEqual(Integer.MAX_SAFE_VALUE));\n };\n /**\n * Converts the Integer to an exact javascript Number, assuming it is a 32 bit integer.\n * @returns {number}\n * @expose\n */\n Integer.prototype.toInt = function () {\n return this.low;\n };\n /**\n * Converts the Integer to a the nearest floating-point representation of this value (double, 53 bit mantissa).\n * @returns {number}\n * @expose\n */\n Integer.prototype.toNumber = function () {\n return this.high * TWO_PWR_32_DBL + (this.low >>> 0);\n };\n /**\n * Converts the Integer to a BigInt representation of this value\n * @returns {bigint}\n * @expose\n */\n Integer.prototype.toBigInt = function () {\n if (this.isZero()) {\n return BigInt(0);\n }\n else if (this.isPositive()) {\n return (BigInt(this.high >>> 0) * BigInt(TWO_PWR_32_DBL) +\n BigInt(this.low >>> 0));\n }\n else {\n var negate = this.negate();\n return (BigInt(-1) *\n (BigInt(negate.high >>> 0) * BigInt(TWO_PWR_32_DBL) +\n BigInt(negate.low >>> 0)));\n }\n };\n /**\n * Converts the Integer to native number or -Infinity/+Infinity when it does not fit.\n * @return {number}\n * @package\n */\n Integer.prototype.toNumberOrInfinity = function () {\n if (this.lessThan(Integer.MIN_SAFE_VALUE)) {\n return Number.NEGATIVE_INFINITY;\n }\n else if (this.greaterThan(Integer.MAX_SAFE_VALUE)) {\n return Number.POSITIVE_INFINITY;\n }\n else {\n return this.toNumber();\n }\n };\n /**\n * Converts the Integer to a string written in the specified radix.\n * @param {number=} radix Radix (2-36), defaults to 10\n * @returns {string}\n * @override\n * @throws {RangeError} If `radix` is out of range\n * @expose\n */\n Integer.prototype.toString = function (radix) {\n radix = radix || 10;\n if (radix < 2 || radix > 36) {\n throw RangeError('radix out of range: ' + radix);\n }\n if (this.isZero()) {\n return '0';\n }\n var rem;\n if (this.isNegative()) {\n if (this.equals(Integer.MIN_VALUE)) {\n // We need to change the Integer value before it can be negated, so we remove\n // the bottom-most digit in this base and then recurse to do the rest.\n var radixInteger = Integer.fromNumber(radix);\n var div = this.div(radixInteger);\n rem = div.multiply(radixInteger).subtract(this);\n return div.toString(radix) + rem.toInt().toString(radix);\n }\n else {\n return '-' + this.negate().toString(radix);\n }\n }\n // Do several (6) digits each time through the loop, so as to\n // minimize the calls to the very expensive emulated div.\n var radixToPower = Integer.fromNumber(Math.pow(radix, 6));\n rem = this;\n var result = '';\n while (true) {\n var remDiv = rem.div(radixToPower);\n var intval = rem.subtract(remDiv.multiply(radixToPower)).toInt() >>> 0;\n var digits = intval.toString(radix);\n rem = remDiv;\n if (rem.isZero()) {\n return digits + result;\n }\n else {\n while (digits.length < 6) {\n digits = '0' + digits;\n }\n result = '' + digits + result;\n }\n }\n };\n /**\n * Gets the high 32 bits as a signed integer.\n * @returns {number} Signed high bits\n * @expose\n */\n Integer.prototype.getHighBits = function () {\n return this.high;\n };\n /**\n * Gets the low 32 bits as a signed integer.\n * @returns {number} Signed low bits\n * @expose\n */\n Integer.prototype.getLowBits = function () {\n return this.low;\n };\n /**\n * Gets the number of bits needed to represent the absolute value of this Integer.\n * @returns {number}\n * @expose\n */\n Integer.prototype.getNumBitsAbs = function () {\n if (this.isNegative()) {\n return this.equals(Integer.MIN_VALUE) ? 64 : this.negate().getNumBitsAbs();\n }\n var val = this.high !== 0 ? this.high : this.low;\n for (var bit = 31; bit > 0; bit--) {\n if ((val & (1 << bit)) !== 0) {\n break;\n }\n }\n return this.high !== 0 ? bit + 33 : bit + 1;\n };\n /**\n * Tests if this Integer's value equals zero.\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.isZero = function () {\n return this.high === 0 && this.low === 0;\n };\n /**\n * Tests if this Integer's value is negative.\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.isNegative = function () {\n return this.high < 0;\n };\n /**\n * Tests if this Integer's value is positive.\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.isPositive = function () {\n return this.high >= 0;\n };\n /**\n * Tests if this Integer's value is odd.\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.isOdd = function () {\n return (this.low & 1) === 1;\n };\n /**\n * Tests if this Integer's value is even.\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.isEven = function () {\n return (this.low & 1) === 0;\n };\n /**\n * Tests if this Integer's value equals the specified's.\n * @param {!Integer|number|string} other Other value\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.equals = function (other) {\n var theOther = Integer.fromValue(other);\n return this.high === theOther.high && this.low === theOther.low;\n };\n /**\n * Tests if this Integer's value differs from the specified's.\n * @param {!Integer|number|string} other Other value\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.notEquals = function (other) {\n return !this.equals(/* validates */ other);\n };\n /**\n * Tests if this Integer's value is less than the specified's.\n * @param {!Integer|number|string} other Other value\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.lessThan = function (other) {\n return this.compare(/* validates */ other) < 0;\n };\n /**\n * Tests if this Integer's value is less than or equal the specified's.\n * @param {!Integer|number|string} other Other value\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.lessThanOrEqual = function (other) {\n return this.compare(/* validates */ other) <= 0;\n };\n /**\n * Tests if this Integer's value is greater than the specified's.\n * @param {!Integer|number|string} other Other value\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.greaterThan = function (other) {\n return this.compare(/* validates */ other) > 0;\n };\n /**\n * Tests if this Integer's value is greater than or equal the specified's.\n * @param {!Integer|number|string} other Other value\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.greaterThanOrEqual = function (other) {\n return this.compare(/* validates */ other) >= 0;\n };\n /**\n * Compares this Integer's value with the specified's.\n * @param {!Integer|number|string} other Other value\n * @returns {number} 0 if they are the same, 1 if the this is greater and -1\n * if the given one is greater\n * @expose\n */\n Integer.prototype.compare = function (other) {\n var theOther = Integer.fromValue(other);\n if (this.equals(theOther)) {\n return 0;\n }\n var thisNeg = this.isNegative();\n var otherNeg = theOther.isNegative();\n if (thisNeg && !otherNeg) {\n return -1;\n }\n if (!thisNeg && otherNeg) {\n return 1;\n }\n // At this point the sign bits are the same\n return this.subtract(theOther).isNegative() ? -1 : 1;\n };\n /**\n * Negates this Integer's value.\n * @returns {!Integer} Negated Integer\n * @expose\n */\n Integer.prototype.negate = function () {\n if (this.equals(Integer.MIN_VALUE)) {\n return Integer.MIN_VALUE;\n }\n return this.not().add(Integer.ONE);\n };\n /**\n * Returns the sum of this and the specified Integer.\n * @param {!Integer|number|string} addend Addend\n * @returns {!Integer} Sum\n * @expose\n */\n Integer.prototype.add = function (addend) {\n var theAddend = Integer.fromValue(addend);\n // Divide each number into 4 chunks of 16 bits, and then sum the chunks.\n var a48 = this.high >>> 16;\n var a32 = this.high & 0xffff;\n var a16 = this.low >>> 16;\n var a00 = this.low & 0xffff;\n var b48 = theAddend.high >>> 16;\n var b32 = theAddend.high & 0xffff;\n var b16 = theAddend.low >>> 16;\n var b00 = theAddend.low & 0xffff;\n var c48 = 0;\n var c32 = 0;\n var c16 = 0;\n var c00 = 0;\n c00 += a00 + b00;\n c16 += c00 >>> 16;\n c00 &= 0xffff;\n c16 += a16 + b16;\n c32 += c16 >>> 16;\n c16 &= 0xffff;\n c32 += a32 + b32;\n c48 += c32 >>> 16;\n c32 &= 0xffff;\n c48 += a48 + b48;\n c48 &= 0xffff;\n return Integer.fromBits((c16 << 16) | c00, (c48 << 16) | c32);\n };\n /**\n * Returns the difference of this and the specified Integer.\n * @param {!Integer|number|string} subtrahend Subtrahend\n * @returns {!Integer} Difference\n * @expose\n */\n Integer.prototype.subtract = function (subtrahend) {\n var theSubtrahend = Integer.fromValue(subtrahend);\n return this.add(theSubtrahend.negate());\n };\n /**\n * Returns the product of this and the specified Integer.\n * @param {!Integer|number|string} multiplier Multiplier\n * @returns {!Integer} Product\n * @expose\n */\n Integer.prototype.multiply = function (multiplier) {\n if (this.isZero()) {\n return Integer.ZERO;\n }\n var theMultiplier = Integer.fromValue(multiplier);\n if (theMultiplier.isZero()) {\n return Integer.ZERO;\n }\n if (this.equals(Integer.MIN_VALUE)) {\n return theMultiplier.isOdd() ? Integer.MIN_VALUE : Integer.ZERO;\n }\n if (theMultiplier.equals(Integer.MIN_VALUE)) {\n return this.isOdd() ? Integer.MIN_VALUE : Integer.ZERO;\n }\n if (this.isNegative()) {\n if (theMultiplier.isNegative()) {\n return this.negate().multiply(theMultiplier.negate());\n }\n else {\n return this.negate()\n .multiply(theMultiplier)\n .negate();\n }\n }\n else if (theMultiplier.isNegative()) {\n return this.multiply(theMultiplier.negate()).negate();\n }\n // If both longs are small, use float multiplication\n if (this.lessThan(TWO_PWR_24) && theMultiplier.lessThan(TWO_PWR_24)) {\n return Integer.fromNumber(this.toNumber() * theMultiplier.toNumber());\n }\n // Divide each long into 4 chunks of 16 bits, and then add up 4x4 products.\n // We can skip products that would overflow.\n var a48 = this.high >>> 16;\n var a32 = this.high & 0xffff;\n var a16 = this.low >>> 16;\n var a00 = this.low & 0xffff;\n var b48 = theMultiplier.high >>> 16;\n var b32 = theMultiplier.high & 0xffff;\n var b16 = theMultiplier.low >>> 16;\n var b00 = theMultiplier.low & 0xffff;\n var c48 = 0;\n var c32 = 0;\n var c16 = 0;\n var c00 = 0;\n c00 += a00 * b00;\n c16 += c00 >>> 16;\n c00 &= 0xffff;\n c16 += a16 * b00;\n c32 += c16 >>> 16;\n c16 &= 0xffff;\n c16 += a00 * b16;\n c32 += c16 >>> 16;\n c16 &= 0xffff;\n c32 += a32 * b00;\n c48 += c32 >>> 16;\n c32 &= 0xffff;\n c32 += a16 * b16;\n c48 += c32 >>> 16;\n c32 &= 0xffff;\n c32 += a00 * b32;\n c48 += c32 >>> 16;\n c32 &= 0xffff;\n c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;\n c48 &= 0xffff;\n return Integer.fromBits((c16 << 16) | c00, (c48 << 16) | c32);\n };\n /**\n * Returns this Integer divided by the specified.\n * @param {!Integer|number|string} divisor Divisor\n * @returns {!Integer} Quotient\n * @expose\n */\n Integer.prototype.div = function (divisor) {\n var theDivisor = Integer.fromValue(divisor);\n if (theDivisor.isZero()) {\n throw (0, error_1.newError)('division by zero');\n }\n if (this.isZero()) {\n return Integer.ZERO;\n }\n var approx, rem, res;\n if (this.equals(Integer.MIN_VALUE)) {\n if (theDivisor.equals(Integer.ONE) ||\n theDivisor.equals(Integer.NEG_ONE)) {\n return Integer.MIN_VALUE;\n }\n if (theDivisor.equals(Integer.MIN_VALUE)) {\n return Integer.ONE;\n }\n else {\n // At this point, we have |other| >= 2, so |this/other| < |MIN_VALUE|.\n var halfThis = this.shiftRight(1);\n approx = halfThis.div(theDivisor).shiftLeft(1);\n if (approx.equals(Integer.ZERO)) {\n return theDivisor.isNegative() ? Integer.ONE : Integer.NEG_ONE;\n }\n else {\n rem = this.subtract(theDivisor.multiply(approx));\n res = approx.add(rem.div(theDivisor));\n return res;\n }\n }\n }\n else if (theDivisor.equals(Integer.MIN_VALUE)) {\n return Integer.ZERO;\n }\n if (this.isNegative()) {\n if (theDivisor.isNegative()) {\n return this.negate().div(theDivisor.negate());\n }\n return this.negate()\n .div(theDivisor)\n .negate();\n }\n else if (theDivisor.isNegative()) {\n return this.div(theDivisor.negate()).negate();\n }\n // Repeat the following until the remainder is less than other: find a\n // floating-point that approximates remainder / other *from below*, add this\n // into the result, and subtract it from the remainder. It is critical that\n // the approximate value is less than or equal to the real value so that the\n // remainder never becomes negative.\n res = Integer.ZERO;\n rem = this;\n while (rem.greaterThanOrEqual(theDivisor)) {\n // Approximate the result of division. This may be a little greater or\n // smaller than the actual value.\n approx = Math.max(1, Math.floor(rem.toNumber() / theDivisor.toNumber()));\n // We will tweak the approximate result by changing it in the 48-th digit or\n // the smallest non-fractional digit, whichever is larger.\n var log2 = Math.ceil(Math.log(approx) / Math.LN2);\n var delta = log2 <= 48 ? 1 : Math.pow(2, log2 - 48);\n // Decrease the approximation until it is smaller than the remainder. Note\n // that if it is too large, the product overflows and is negative.\n var approxRes = Integer.fromNumber(approx);\n var approxRem = approxRes.multiply(theDivisor);\n while (approxRem.isNegative() || approxRem.greaterThan(rem)) {\n approx -= delta;\n approxRes = Integer.fromNumber(approx);\n approxRem = approxRes.multiply(theDivisor);\n }\n // We know the answer can't be zero... and actually, zero would cause\n // infinite recursion since we would make no progress.\n if (approxRes.isZero()) {\n approxRes = Integer.ONE;\n }\n res = res.add(approxRes);\n rem = rem.subtract(approxRem);\n }\n return res;\n };\n /**\n * Returns this Integer modulo the specified.\n * @param {!Integer|number|string} divisor Divisor\n * @returns {!Integer} Remainder\n * @expose\n */\n Integer.prototype.modulo = function (divisor) {\n var theDivisor = Integer.fromValue(divisor);\n return this.subtract(this.div(theDivisor).multiply(theDivisor));\n };\n /**\n * Returns the bitwise NOT of this Integer.\n * @returns {!Integer}\n * @expose\n */\n Integer.prototype.not = function () {\n return Integer.fromBits(~this.low, ~this.high);\n };\n /**\n * Returns the bitwise AND of this Integer and the specified.\n * @param {!Integer|number|string} other Other Integer\n * @returns {!Integer}\n * @expose\n */\n Integer.prototype.and = function (other) {\n var theOther = Integer.fromValue(other);\n return Integer.fromBits(this.low & theOther.low, this.high & theOther.high);\n };\n /**\n * Returns the bitwise OR of this Integer and the specified.\n * @param {!Integer|number|string} other Other Integer\n * @returns {!Integer}\n * @expose\n */\n Integer.prototype.or = function (other) {\n var theOther = Integer.fromValue(other);\n return Integer.fromBits(this.low | theOther.low, this.high | theOther.high);\n };\n /**\n * Returns the bitwise XOR of this Integer and the given one.\n * @param {!Integer|number|string} other Other Integer\n * @returns {!Integer}\n * @expose\n */\n Integer.prototype.xor = function (other) {\n var theOther = Integer.fromValue(other);\n return Integer.fromBits(this.low ^ theOther.low, this.high ^ theOther.high);\n };\n /**\n * Returns this Integer with bits shifted to the left by the given amount.\n * @param {number|!Integer} numBits Number of bits\n * @returns {!Integer} Shifted Integer\n * @expose\n */\n Integer.prototype.shiftLeft = function (numBits) {\n var bitsCount = Integer.toNumber(numBits);\n if ((bitsCount &= 63) === 0) {\n return Integer.ZERO;\n }\n else if (bitsCount < 32) {\n return Integer.fromBits(this.low << bitsCount, (this.high << bitsCount) | (this.low >>> (32 - bitsCount)));\n }\n else {\n return Integer.fromBits(0, this.low << (bitsCount - 32));\n }\n };\n /**\n * Returns this Integer with bits arithmetically shifted to the right by the given amount.\n * @param {number|!Integer} numBits Number of bits\n * @returns {!Integer} Shifted Integer\n * @expose\n */\n Integer.prototype.shiftRight = function (numBits) {\n var bitsCount = Integer.toNumber(numBits);\n if ((bitsCount &= 63) === 0) {\n return Integer.ZERO;\n }\n else if (numBits < 32) {\n return Integer.fromBits((this.low >>> bitsCount) | (this.high << (32 - bitsCount)), this.high >> bitsCount);\n }\n else {\n return Integer.fromBits(this.high >> (bitsCount - 32), this.high >= 0 ? 0 : -1);\n }\n };\n /**\n * Tests if the specified object is a Integer.\n * @access private\n * @param {*} obj Object\n * @returns {boolean}\n * @expose\n */\n Integer.isInteger = function (obj) {\n return (obj && obj.__isInteger__) === true;\n };\n /**\n * Returns a Integer representing the given 32 bit integer value.\n * @access private\n * @param {number} value The 32 bit integer in question\n * @returns {!Integer} The corresponding Integer value\n * @expose\n */\n Integer.fromInt = function (value) {\n var obj, cachedObj;\n value = value | 0;\n if (value >= -128 && value < 128) {\n cachedObj = INT_CACHE.get(value);\n if (cachedObj) {\n return cachedObj;\n }\n }\n obj = new Integer(value, value < 0 ? -1 : 0);\n if (value >= -128 && value < 128) {\n INT_CACHE.set(value, obj);\n }\n return obj;\n };\n /**\n * Returns a Integer representing the 64 bit integer that comes by concatenating the given low and high bits. Each is\n * assumed to use 32 bits.\n * @access private\n * @param {number} lowBits The low 32 bits\n * @param {number} highBits The high 32 bits\n * @returns {!Integer} The corresponding Integer value\n * @expose\n */\n Integer.fromBits = function (lowBits, highBits) {\n return new Integer(lowBits, highBits);\n };\n /**\n * Returns a Integer representing the given value, provided that it is a finite number. Otherwise, zero is returned.\n * @access private\n * @param {number} value The number in question\n * @returns {!Integer} The corresponding Integer value\n * @expose\n */\n Integer.fromNumber = function (value) {\n if (isNaN(value) || !isFinite(value)) {\n return Integer.ZERO;\n }\n if (value <= -TWO_PWR_63_DBL) {\n return Integer.MIN_VALUE;\n }\n if (value + 1 >= TWO_PWR_63_DBL) {\n return Integer.MAX_VALUE;\n }\n if (value < 0) {\n return Integer.fromNumber(-value).negate();\n }\n return new Integer(value % TWO_PWR_32_DBL | 0, (value / TWO_PWR_32_DBL) | 0);\n };\n /**\n * Returns a Integer representation of the given string, written using the specified radix.\n * @access private\n * @param {string} str The textual representation of the Integer\n * @param {number=} radix The radix in which the text is written (2-36), defaults to 10\n * @param {Object} [opts={}] Configuration options\n * @param {boolean} [opts.strictStringValidation=false] Enable strict validation generated Integer.\n * @returns {!Integer} The corresponding Integer value\n * @expose\n */\n Integer.fromString = function (str, radix, _a) {\n var _b = _a === void 0 ? {} : _a, strictStringValidation = _b.strictStringValidation;\n if (str.length === 0) {\n throw (0, error_1.newError)('number format error: empty string');\n }\n if (str === 'NaN' ||\n str === 'Infinity' ||\n str === '+Infinity' ||\n str === '-Infinity') {\n return Integer.ZERO;\n }\n radix = radix || 10;\n if (radix < 2 || radix > 36) {\n throw (0, error_1.newError)('radix out of range: ' + radix);\n }\n var p;\n if ((p = str.indexOf('-')) > 0) {\n throw (0, error_1.newError)('number format error: interior \"-\" character: ' + str);\n }\n else if (p === 0) {\n return Integer.fromString(str.substring(1), radix).negate();\n }\n // Do several (8) digits each time through the loop, so as to\n // minimize the calls to the very expensive emulated div.\n var radixToPower = Integer.fromNumber(Math.pow(radix, 8));\n var result = Integer.ZERO;\n for (var i = 0; i < str.length; i += 8) {\n var size = Math.min(8, str.length - i);\n var valueString = str.substring(i, i + size);\n var value = parseInt(valueString, radix);\n if (strictStringValidation === true && !_isValidNumberFromString(valueString, value, radix)) {\n throw (0, error_1.newError)(\"number format error: \\\"\" + valueString + \"\\\" is NaN in radix \" + radix + \": \" + str);\n }\n if (size < 8) {\n var power = Integer.fromNumber(Math.pow(radix, size));\n result = result.multiply(power).add(Integer.fromNumber(value));\n }\n else {\n result = result.multiply(radixToPower);\n result = result.add(Integer.fromNumber(value));\n }\n }\n return result;\n };\n /**\n * Converts the specified value to a Integer.\n * @access private\n * @param {!Integer|number|string|bigint|!{low: number, high: number}} val Value\n * @param {Object} [opts={}] Configuration options\n * @param {boolean} [opts.strictStringValidation=false] Enable strict validation generated Integer.\n * @returns {!Integer}\n * @expose\n */\n Integer.fromValue = function (val, opts) {\n if (opts === void 0) { opts = {}; }\n if (val /* is compatible */ instanceof Integer) {\n return val;\n }\n if (typeof val === 'number') {\n return Integer.fromNumber(val);\n }\n if (typeof val === 'string') {\n return Integer.fromString(val, undefined, opts);\n }\n if (typeof val === 'bigint') {\n return Integer.fromString(val.toString());\n }\n // Throws for non-objects, converts non-instanceof Integer:\n return new Integer(val.low, val.high);\n };\n /**\n * Converts the specified value to a number.\n * @access private\n * @param {!Integer|number|string|!{low: number, high: number}} val Value\n * @returns {number}\n * @expose\n */\n Integer.toNumber = function (val) {\n switch (typeof val) {\n case 'number':\n return val;\n case 'bigint':\n return Number(val);\n default:\n return Integer.fromValue(val).toNumber();\n }\n };\n /**\n * Converts the specified value to a string.\n * @access private\n * @param {!Integer|number|string|!{low: number, high: number}} val Value\n * @param {number} radix optional radix for string conversion, defaults to 10\n * @returns {string}\n * @expose\n */\n Integer.toString = function (val, radix) {\n return Integer.fromValue(val).toString(radix);\n };\n /**\n * Checks if the given value is in the safe range in order to be converted to a native number\n * @access private\n * @param {!Integer|number|string|!{low: number, high: number}} val Value\n * @param {number} radix optional radix for string conversion, defaults to 10\n * @returns {boolean}\n * @expose\n */\n Integer.inSafeRange = function (val) {\n return Integer.fromValue(val).inSafeRange();\n };\n /**\n * Signed zero.\n * @type {!Integer}\n * @expose\n */\n Integer.ZERO = Integer.fromInt(0);\n /**\n * Signed one.\n * @type {!Integer}\n * @expose\n */\n Integer.ONE = Integer.fromInt(1);\n /**\n * Signed negative one.\n * @type {!Integer}\n * @expose\n */\n Integer.NEG_ONE = Integer.fromInt(-1);\n /**\n * Maximum signed value.\n * @type {!Integer}\n * @expose\n */\n Integer.MAX_VALUE = Integer.fromBits(0xffffffff | 0, 0x7fffffff | 0);\n /**\n * Minimum signed value.\n * @type {!Integer}\n * @expose\n */\n Integer.MIN_VALUE = Integer.fromBits(0, 0x80000000 | 0);\n /**\n * Minimum safe value.\n * @type {!Integer}\n * @expose\n */\n Integer.MIN_SAFE_VALUE = Integer.fromBits(0x1 | 0, 0xffffffffffe00000 | 0);\n /**\n * Maximum safe value.\n * @type {!Integer}\n * @expose\n */\n Integer.MAX_SAFE_VALUE = Integer.fromBits(0xffffffff | 0, 0x1fffff | 0);\n /**\n * An indicator used to reliably determine if an object is a Integer or not.\n * @type {boolean}\n * @const\n * @expose\n * @private\n */\n Integer.__isInteger__ = true;\n return Integer;\n}());\n/**\n * @private\n * @param num\n * @param radix\n * @param minSize\n * @returns {string}\n */\nfunction _convertNumberToString(num, radix, minSize) {\n var theNumberString = num.toString(radix);\n var paddingLength = Math.max(minSize - theNumberString.length, 0);\n var padding = '0'.repeat(paddingLength);\n return \"\" + padding + theNumberString;\n}\n/**\n *\n * @private\n * @param theString\n * @param theNumber\n * @param radix\n * @return {boolean} True if valid\n */\nfunction _isValidNumberFromString(theString, theNumber, radix) {\n return !Number.isNaN(theString) &&\n !Number.isNaN(theNumber) &&\n _convertNumberToString(theNumber, radix, theString.length) === theString.toLowerCase();\n}\nObject.defineProperty(Integer.prototype, '__isInteger__', {\n value: true,\n enumerable: false,\n configurable: false\n});\n/**\n * @type {number}\n * @const\n * @inner\n * @private\n */\nvar TWO_PWR_16_DBL = 1 << 16;\n/**\n * @type {number}\n * @const\n * @inner\n * @private\n */\nvar TWO_PWR_24_DBL = 1 << 24;\n/**\n * @type {number}\n * @const\n * @inner\n * @private\n */\nvar TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL;\n/**\n * @type {number}\n * @const\n * @inner\n * @private\n */\nvar TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL;\n/**\n * @type {number}\n * @const\n * @inner\n * @private\n */\nvar TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2;\n/**\n * @type {!Integer}\n * @const\n * @inner\n * @private\n */\nvar TWO_PWR_24 = Integer.fromInt(TWO_PWR_24_DBL);\n/**\n * Cast value to Integer type.\n * @access public\n * @param {Mixed} value - The value to use.\n * @param {Object} [opts={}] Configuration options\n * @param {boolean} [opts.strictStringValidation=false] Enable strict validation generated Integer.\n * @return {Integer} - An object of type Integer.\n */\nvar int = Integer.fromValue;\nexports.int = int;\n/**\n * Check if a variable is of Integer type.\n * @access public\n * @param {Mixed} value - The variable to check.\n * @return {Boolean} - Is it of the Integer type?\n */\nvar isInt = Integer.isInteger;\nexports.isInt = isInt;\n/**\n * Check if a variable can be safely converted to a number\n * @access public\n * @param {Mixed} value - The variable to check\n * @return {Boolean} - true if it is safe to call toNumber on variable otherwise false\n */\nvar inSafeRange = Integer.inSafeRange;\nexports.inSafeRange = inSafeRange;\n/**\n * Converts a variable to a number\n * @access public\n * @param {Mixed} value - The variable to convert\n * @return {number} - the variable as a number\n */\nvar toNumber = Integer.toNumber;\nexports.toNumber = toNumber;\n/**\n * Converts the integer to a string representation\n * @access public\n * @param {Mixed} value - The variable to convert\n * @param {number} radix - radix to use in string conversion, defaults to 10\n * @return {string} - returns a string representation of the integer\n */\nvar toString = Integer.toString;\nexports.toString = toString;\nexports.default = Integer;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Bookmark = void 0;\nvar util = __importStar(require(\"./util\"));\nvar BOOKMARKS_KEY = 'bookmarks';\nvar Bookmark = /** @class */ (function () {\n /**\n * @constructor\n * @param {string|string[]} values single bookmark as string or multiple bookmarks as a string array.\n */\n function Bookmark(values) {\n this._values = asStringArray(values);\n }\n Bookmark.empty = function () {\n return EMPTY_BOOKMARK;\n };\n /**\n * Check if the given bookmark is meaningful and can be send to the database.\n * @return {boolean} returns `true` bookmark has a value, `false` otherwise.\n */\n Bookmark.prototype.isEmpty = function () {\n return this._values.length === 0;\n };\n /**\n * Get all bookmark values as an array.\n * @return {string[]} all values.\n */\n Bookmark.prototype.values = function () {\n return this._values;\n };\n /**\n * Get this bookmark as an object for begin transaction call.\n * @return {Object} the value of this bookmark as object.\n */\n Bookmark.prototype.asBeginTransactionParameters = function () {\n var _a;\n if (this.isEmpty()) {\n return {};\n }\n // Driver sends {bookmark: \"max\", bookmarks: [\"one\", \"two\", \"max\"]} instead of simple\n // {bookmarks: [\"one\", \"two\", \"max\"]} for backwards compatibility reasons. Old servers can only accept single\n // bookmark that is why driver has to parse and compare given list of bookmarks. This functionality will\n // eventually be removed.\n return _a = {},\n _a[BOOKMARKS_KEY] = this._values,\n _a;\n };\n return Bookmark;\n}());\nexports.Bookmark = Bookmark;\nvar EMPTY_BOOKMARK = new Bookmark(null);\n/**\n * Converts given value to an array.\n * @param {string|string[]|Array} [value=undefined] argument to convert.\n * @return {string[]} value converted to an array.\n */\nfunction asStringArray(value) {\n if (!value) {\n return [];\n }\n if (util.isString(value)) {\n return [value];\n }\n if (Array.isArray(value)) {\n var result = [];\n var flattenedValue = flattenArray(value);\n for (var i = 0; i < flattenedValue.length; i++) {\n var element = flattenedValue[i];\n // if it is undefined or null, ignore it\n if (element !== undefined && element !== null) {\n if (!util.isString(element)) {\n throw new TypeError(\"Bookmark value should be a string, given: '\" + element + \"'\");\n }\n result.push(element);\n }\n }\n return result;\n }\n throw new TypeError(\"Bookmark should either be a string or a string array, given: '\" + value + \"'\");\n}\n/**\n * Recursively flattens an array so that the result becomes a single array\n * of values, which does not include any sub-arrays\n *\n * @param {Array} value\n */\nfunction flattenArray(values) {\n return values.reduce(function (dest, value) {\n return Array.isArray(value)\n ? dest.concat(flattenArray(value))\n : dest.concat(value);\n }, []);\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.EMPTY_CONNECTION_HOLDER = exports.ReadOnlyConnectionHolder = exports.ConnectionHolder = void 0;\nvar error_1 = require(\"../error\");\nvar util_1 = require(\"./util\");\nvar constants_1 = require(\"./constants\");\nvar bookmark_1 = require(\"./bookmark\");\n/**\n * Utility to lazily initialize connections and return them back to the pool when unused.\n * @private\n */\nvar ConnectionHolder = /** @class */ (function () {\n /**\n * @constructor\n * @param {object} params\n * @property {string} params.mode - the access mode for new connection holder.\n * @property {string} params.database - the target database name.\n * @property {Bookmark} params.bookmark - the last bookmark\n * @property {ConnectionProvider} params.connectionProvider - the connection provider to acquire connections from.\n * @property {string?} params.impersonatedUser - the user which will be impersonated\n * @property {function(databaseName:string)} params.onDatabaseNameResolved - callback called when the database name is resolved\n */\n function ConnectionHolder(_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.mode, mode = _c === void 0 ? constants_1.ACCESS_MODE_WRITE : _c, _d = _b.database, database = _d === void 0 ? '' : _d, bookmark = _b.bookmark, connectionProvider = _b.connectionProvider, impersonatedUser = _b.impersonatedUser, onDatabaseNameResolved = _b.onDatabaseNameResolved;\n this._mode = mode;\n this._database = database ? (0, util_1.assertString)(database, 'database') : '';\n this._bookmark = bookmark || bookmark_1.Bookmark.empty();\n this._connectionProvider = connectionProvider;\n this._impersonatedUser = impersonatedUser;\n this._referenceCount = 0;\n this._connectionPromise = Promise.resolve();\n this._onDatabaseNameResolved = onDatabaseNameResolved;\n }\n ConnectionHolder.prototype.mode = function () {\n return this._mode;\n };\n ConnectionHolder.prototype.database = function () {\n return this._database;\n };\n ConnectionHolder.prototype.setDatabase = function (database) {\n this._database = database;\n };\n ConnectionHolder.prototype.bookmark = function () {\n return this._bookmark;\n };\n ConnectionHolder.prototype.connectionProvider = function () {\n return this._connectionProvider;\n };\n ConnectionHolder.prototype.referenceCount = function () {\n return this._referenceCount;\n };\n ConnectionHolder.prototype.initializeConnection = function () {\n if (this._referenceCount === 0 && this._connectionProvider) {\n this._connectionPromise = this._connectionProvider.acquireConnection({\n accessMode: this._mode,\n database: this._database,\n bookmarks: this._bookmark,\n impersonatedUser: this._impersonatedUser,\n onDatabaseNameResolved: this._onDatabaseNameResolved\n });\n }\n else {\n this._referenceCount++;\n return false;\n }\n this._referenceCount++;\n return true;\n };\n ConnectionHolder.prototype.getConnection = function () {\n return this._connectionPromise;\n };\n ConnectionHolder.prototype.releaseConnection = function () {\n if (this._referenceCount === 0) {\n return this._connectionPromise;\n }\n this._referenceCount--;\n if (this._referenceCount === 0) {\n return this._releaseConnection();\n }\n return this._connectionPromise;\n };\n ConnectionHolder.prototype.close = function () {\n if (this._referenceCount === 0) {\n return this._connectionPromise;\n }\n this._referenceCount = 0;\n return this._releaseConnection();\n };\n /**\n * Return the current pooled connection instance to the connection pool.\n * We don't pool Session instances, to avoid users using the Session after they've called close.\n * The `Session` object is just a thin wrapper around Connection anyway, so it makes little difference.\n * @return {Promise} - promise resolved then connection is returned to the pool.\n * @private\n */\n ConnectionHolder.prototype._releaseConnection = function () {\n this._connectionPromise = this._connectionPromise\n .then(function (connection) {\n if (connection) {\n if (connection.isOpen()) {\n return connection\n .resetAndFlush()\n .catch(ignoreError)\n .then(function () { return connection._release(); });\n }\n return connection._release();\n }\n else {\n return Promise.resolve();\n }\n })\n .catch(ignoreError);\n return this._connectionPromise;\n };\n return ConnectionHolder;\n}());\nexports.ConnectionHolder = ConnectionHolder;\n/**\n * Provides a interaction with a ConnectionHolder without change it state by\n * releasing or initilizing\n */\nvar ReadOnlyConnectionHolder = /** @class */ (function (_super) {\n __extends(ReadOnlyConnectionHolder, _super);\n /**\n * Contructor\n * @param {ConnectionHolder} connectionHolder the connection holder which will treat the requests\n */\n function ReadOnlyConnectionHolder(connectionHolder) {\n var _this = _super.call(this, {\n mode: connectionHolder.mode(),\n database: connectionHolder.database(),\n bookmark: connectionHolder.bookmark(),\n connectionProvider: connectionHolder.connectionProvider()\n }) || this;\n _this._connectionHolder = connectionHolder;\n return _this;\n }\n /**\n * Return the true if the connection is suppose to be initilized with the command.\n *\n * @return {boolean}\n */\n ReadOnlyConnectionHolder.prototype.initializeConnection = function () {\n if (this._connectionHolder.referenceCount() === 0) {\n return false;\n }\n return true;\n };\n /**\n * Get the current connection promise.\n * @return {Promise} promise resolved with the current connection.\n */\n ReadOnlyConnectionHolder.prototype.getConnection = function () {\n return this._connectionHolder.getConnection();\n };\n /**\n * Get the current connection promise, doesn't performs the release\n * @return {Promise} promise with the resolved current connection\n */\n ReadOnlyConnectionHolder.prototype.releaseConnection = function () {\n return this._connectionHolder.getConnection().catch(function () { return Promise.resolve(); });\n };\n /**\n * Get the current connection promise, doesn't performs the connection close\n * @return {Promise} promise with the resolved current connection\n */\n ReadOnlyConnectionHolder.prototype.close = function () {\n return this._connectionHolder.getConnection().catch(function () { return Promise.resolve(); });\n };\n return ReadOnlyConnectionHolder;\n}(ConnectionHolder));\nexports.ReadOnlyConnectionHolder = ReadOnlyConnectionHolder;\nexports.default = ReadOnlyConnectionHolder;\nvar EmptyConnectionHolder = /** @class */ (function (_super) {\n __extends(EmptyConnectionHolder, _super);\n function EmptyConnectionHolder() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n EmptyConnectionHolder.prototype.mode = function () {\n return undefined;\n };\n EmptyConnectionHolder.prototype.database = function () {\n return undefined;\n };\n EmptyConnectionHolder.prototype.initializeConnection = function () {\n // nothing to initialize\n return true;\n };\n EmptyConnectionHolder.prototype.getConnection = function () {\n return Promise.reject((0, error_1.newError)('This connection holder does not serve connections'));\n };\n EmptyConnectionHolder.prototype.releaseConnection = function () {\n return Promise.resolve();\n };\n EmptyConnectionHolder.prototype.close = function () {\n return Promise.resolve();\n };\n return EmptyConnectionHolder;\n}(ConnectionHolder));\n/**\n * Connection holder that does not manage any connections.\n * @type {ConnectionHolder}\n * @private\n */\nvar EMPTY_CONNECTION_HOLDER = new EmptyConnectionHolder();\nexports.EMPTY_CONNECTION_HOLDER = EMPTY_CONNECTION_HOLDER;\n// eslint-disable-next-line handle-callback-err\nfunction ignoreError(error) { }\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ConnectivityVerifier = void 0;\nvar connection_holder_1 = require(\"./connection-holder\");\nvar constants_1 = require(\"./constants\");\nvar error_1 = require(\"../error\");\n/**\n * Verifies connectivity using the given connection provider.\n */\nvar ConnectivityVerifier = /** @class */ (function () {\n /**\n * @constructor\n * @param {ConnectionProvider} connectionProvider the provider to obtain connections from.\n */\n function ConnectivityVerifier(connectionProvider) {\n this._connectionProvider = connectionProvider;\n }\n /**\n * Try to obtain a working connection from the connection provider.\n * @returns {Promise} promise resolved with server info or rejected with error.\n */\n ConnectivityVerifier.prototype.verify = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.database, database = _c === void 0 ? '' : _c;\n return acquireAndReleaseDummyConnection(this._connectionProvider, database);\n };\n return ConnectivityVerifier;\n}());\nexports.ConnectivityVerifier = ConnectivityVerifier;\n/**\n * @private\n * @param {ConnectionProvider} connectionProvider the provider to obtain connections from.\n * @param {string|undefined} database The database name\n * @return {Promise} promise resolved with server info or rejected with error.\n */\nfunction acquireAndReleaseDummyConnection(connectionProvider, database) {\n var connectionHolder = new connection_holder_1.ConnectionHolder({\n mode: constants_1.ACCESS_MODE_READ,\n database: database,\n connectionProvider: connectionProvider\n });\n connectionHolder.initializeConnection();\n return connectionHolder\n .getConnection()\n .then(function (connection) {\n // able to establish a connection\n if (!connection) {\n throw (0, error_1.newError)('Unexpected error acquiring transaction');\n }\n return connectionHolder.close().then(function () { return connection.server; });\n })\n .catch(function (error) {\n // failed to establish a connection\n return connectionHolder\n .close()\n .catch(function (ignoredError) {\n // ignore connection release error\n })\n .then(function () {\n return Promise.reject(error);\n });\n });\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BOLT_PROTOCOL_V4_4 = exports.BOLT_PROTOCOL_V4_3 = exports.BOLT_PROTOCOL_V4_2 = exports.BOLT_PROTOCOL_V4_1 = exports.BOLT_PROTOCOL_V4_0 = exports.BOLT_PROTOCOL_V3 = exports.BOLT_PROTOCOL_V2 = exports.BOLT_PROTOCOL_V1 = exports.DEFAULT_POOL_MAX_SIZE = exports.DEFAULT_POOL_ACQUISITION_TIMEOUT = exports.ACCESS_MODE_WRITE = exports.ACCESS_MODE_READ = exports.FETCH_ALL = void 0;\nvar FETCH_ALL = -1;\nexports.FETCH_ALL = FETCH_ALL;\nvar DEFAULT_POOL_ACQUISITION_TIMEOUT = 60 * 1000; // 60 seconds\nexports.DEFAULT_POOL_ACQUISITION_TIMEOUT = DEFAULT_POOL_ACQUISITION_TIMEOUT;\nvar DEFAULT_POOL_MAX_SIZE = 100;\nexports.DEFAULT_POOL_MAX_SIZE = DEFAULT_POOL_MAX_SIZE;\nvar ACCESS_MODE_READ = 'READ';\nexports.ACCESS_MODE_READ = ACCESS_MODE_READ;\nvar ACCESS_MODE_WRITE = 'WRITE';\nexports.ACCESS_MODE_WRITE = ACCESS_MODE_WRITE;\nvar BOLT_PROTOCOL_V1 = 1;\nexports.BOLT_PROTOCOL_V1 = BOLT_PROTOCOL_V1;\nvar BOLT_PROTOCOL_V2 = 2;\nexports.BOLT_PROTOCOL_V2 = BOLT_PROTOCOL_V2;\nvar BOLT_PROTOCOL_V3 = 3;\nexports.BOLT_PROTOCOL_V3 = BOLT_PROTOCOL_V3;\nvar BOLT_PROTOCOL_V4_0 = 4.0;\nexports.BOLT_PROTOCOL_V4_0 = BOLT_PROTOCOL_V4_0;\nvar BOLT_PROTOCOL_V4_1 = 4.1;\nexports.BOLT_PROTOCOL_V4_1 = BOLT_PROTOCOL_V4_1;\nvar BOLT_PROTOCOL_V4_2 = 4.2;\nexports.BOLT_PROTOCOL_V4_2 = BOLT_PROTOCOL_V4_2;\nvar BOLT_PROTOCOL_V4_3 = 4.3;\nexports.BOLT_PROTOCOL_V4_3 = BOLT_PROTOCOL_V4_3;\nvar BOLT_PROTOCOL_V4_4 = 4.4;\nexports.BOLT_PROTOCOL_V4_4 = BOLT_PROTOCOL_V4_4;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.objectUtil = exports.retryStrategy = exports.resolver = exports.serverAddress = exports.urlUtil = exports.logger = exports.connectivityVerifier = exports.transactionExecutor = exports.txConfig = exports.connectionHolder = exports.constants = exports.bookmark = exports.observer = exports.temporalUtil = exports.util = void 0;\nvar util = __importStar(require(\"./util\"));\nexports.util = util;\nvar temporalUtil = __importStar(require(\"./temporal-util\"));\nexports.temporalUtil = temporalUtil;\nvar observer = __importStar(require(\"./observers\"));\nexports.observer = observer;\nvar bookmark = __importStar(require(\"./bookmark\"));\nexports.bookmark = bookmark;\nvar constants = __importStar(require(\"./constants\"));\nexports.constants = constants;\nvar connectionHolder = __importStar(require(\"./connection-holder\"));\nexports.connectionHolder = connectionHolder;\nvar txConfig = __importStar(require(\"./tx-config\"));\nexports.txConfig = txConfig;\nvar transactionExecutor = __importStar(require(\"./transaction-executor\"));\nexports.transactionExecutor = transactionExecutor;\nvar connectivityVerifier = __importStar(require(\"./connectivity-verifier\"));\nexports.connectivityVerifier = connectivityVerifier;\nvar logger = __importStar(require(\"./logger\"));\nexports.logger = logger;\nvar urlUtil = __importStar(require(\"./url-util\"));\nexports.urlUtil = urlUtil;\nvar serverAddress = __importStar(require(\"./server-address\"));\nexports.serverAddress = serverAddress;\nvar resolver = __importStar(require(\"./resolver\"));\nexports.resolver = resolver;\nvar retryStrategy = __importStar(require(\"./retry-strategy\"));\nexports.retryStrategy = retryStrategy;\nvar objectUtil = __importStar(require(\"./object-util\"));\nexports.objectUtil = objectUtil;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Logger = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar error_1 = require(\"../error\");\nvar ERROR = 'error';\nvar WARN = 'warn';\nvar INFO = 'info';\nvar DEBUG = 'debug';\nvar DEFAULT_LEVEL = INFO;\nvar levels = (_a = {},\n _a[ERROR] = 0,\n _a[WARN] = 1,\n _a[INFO] = 2,\n _a[DEBUG] = 3,\n _a);\n/**\n * Logger used by the driver to notify about various internal events. Single logger should be used per driver.\n */\nvar Logger = /** @class */ (function () {\n /**\n * @constructor\n * @param {string} level the enabled logging level.\n * @param {function(level: string, message: string)} loggerFunction the function to write the log level and message.\n */\n function Logger(level, loggerFunction) {\n this._level = level;\n this._loggerFunction = loggerFunction;\n }\n /**\n * Create a new logger based on the given driver configuration.\n * @param {Object} driverConfig the driver configuration as supplied by the user.\n * @return {Logger} a new logger instance or a no-op logger when not configured.\n */\n Logger.create = function (driverConfig) {\n if (driverConfig && driverConfig.logging) {\n var loggingConfig = driverConfig.logging;\n var level = extractConfiguredLevel(loggingConfig);\n var loggerFunction = extractConfiguredLogger(loggingConfig);\n return new Logger(level, loggerFunction);\n }\n return this.noOp();\n };\n /**\n * Create a no-op logger implementation.\n * @return {Logger} the no-op logger implementation.\n */\n Logger.noOp = function () {\n return noOpLogger;\n };\n /**\n * Check if error logging is enabled, i.e. it is not a no-op implementation.\n * @return {boolean} `true` when enabled, `false` otherwise.\n */\n Logger.prototype.isErrorEnabled = function () {\n return isLevelEnabled(this._level, ERROR);\n };\n /**\n * Log an error message.\n * @param {string} message the message to log.\n */\n Logger.prototype.error = function (message) {\n if (this.isErrorEnabled()) {\n this._loggerFunction(ERROR, message);\n }\n };\n /**\n * Check if warn logging is enabled, i.e. it is not a no-op implementation.\n * @return {boolean} `true` when enabled, `false` otherwise.\n */\n Logger.prototype.isWarnEnabled = function () {\n return isLevelEnabled(this._level, WARN);\n };\n /**\n * Log an warning message.\n * @param {string} message the message to log.\n */\n Logger.prototype.warn = function (message) {\n if (this.isWarnEnabled()) {\n this._loggerFunction(WARN, message);\n }\n };\n /**\n * Check if info logging is enabled, i.e. it is not a no-op implementation.\n * @return {boolean} `true` when enabled, `false` otherwise.\n */\n Logger.prototype.isInfoEnabled = function () {\n return isLevelEnabled(this._level, INFO);\n };\n /**\n * Log an info message.\n * @param {string} message the message to log.\n */\n Logger.prototype.info = function (message) {\n if (this.isInfoEnabled()) {\n this._loggerFunction(INFO, message);\n }\n };\n /**\n * Check if debug logging is enabled, i.e. it is not a no-op implementation.\n * @return {boolean} `true` when enabled, `false` otherwise.\n */\n Logger.prototype.isDebugEnabled = function () {\n return isLevelEnabled(this._level, DEBUG);\n };\n /**\n * Log a debug message.\n * @param {string} message the message to log.\n */\n Logger.prototype.debug = function (message) {\n if (this.isDebugEnabled()) {\n this._loggerFunction(DEBUG, message);\n }\n };\n return Logger;\n}());\nexports.Logger = Logger;\nvar NoOpLogger = /** @class */ (function (_super) {\n __extends(NoOpLogger, _super);\n function NoOpLogger() {\n return _super.call(this, INFO, function (level, message) { }) || this;\n }\n NoOpLogger.prototype.isErrorEnabled = function () {\n return false;\n };\n NoOpLogger.prototype.error = function (message) { };\n NoOpLogger.prototype.isWarnEnabled = function () {\n return false;\n };\n NoOpLogger.prototype.warn = function (message) { };\n NoOpLogger.prototype.isInfoEnabled = function () {\n return false;\n };\n NoOpLogger.prototype.info = function (message) { };\n NoOpLogger.prototype.isDebugEnabled = function () {\n return false;\n };\n NoOpLogger.prototype.debug = function (message) { };\n return NoOpLogger;\n}(Logger));\nvar noOpLogger = new NoOpLogger();\n/**\n * Check if the given logging level is enabled.\n * @param {string} configuredLevel the configured level.\n * @param {string} targetLevel the level to check.\n * @return {boolean} value of `true` when enabled, `false` otherwise.\n */\nfunction isLevelEnabled(configuredLevel, targetLevel) {\n return levels[configuredLevel] >= levels[targetLevel];\n}\n/**\n * Extract the configured logging level from the driver's logging configuration.\n * @param {Object} loggingConfig the logging configuration.\n * @return {string} the configured log level or default when none configured.\n */\nfunction extractConfiguredLevel(loggingConfig) {\n if (loggingConfig && loggingConfig.level) {\n var configuredLevel = loggingConfig.level;\n var value = levels[configuredLevel];\n if (!value && value !== 0) {\n throw (0, error_1.newError)(\"Illegal logging level: \" + configuredLevel + \". Supported levels are: \" + Object.keys(levels));\n }\n return configuredLevel;\n }\n return DEFAULT_LEVEL;\n}\n/**\n * Extract the configured logger function from the driver's logging configuration.\n * @param {Object} loggingConfig the logging configuration.\n * @return {function(level: string, message: string)} the configured logging function.\n */\nfunction extractConfiguredLogger(loggingConfig) {\n if (loggingConfig && loggingConfig.logger) {\n var configuredLogger = loggingConfig.logger;\n if (configuredLogger && typeof configuredLogger === 'function') {\n return configuredLogger;\n }\n }\n throw (0, error_1.newError)(\"Illegal logger function: \" + loggingConfig.logger);\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getBrokenObjectReason = exports.isBrokenObject = exports.createBrokenObject = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nvar __isBrokenObject__ = '__isBrokenObject__';\n// eslint-disable-next-line @typescript-eslint/naming-convention\nvar __reason__ = '__reason__';\n/**\n * Creates a object on which all method calls will throw the given error\n *\n * @param {Error} error The error\n * @param {any} object The object. Default: {}\n * @returns {any} A broken object\n */\nfunction createBrokenObject(error, object) {\n if (object === void 0) { object = {}; }\n var fail = function () {\n throw error;\n };\n return new Proxy(object, {\n get: function (_, p) {\n if (p === __isBrokenObject__) {\n return true;\n }\n else if (p === __reason__) {\n return error;\n }\n else if (p === 'toJSON') {\n return undefined;\n }\n fail();\n },\n set: fail,\n apply: fail,\n construct: fail,\n defineProperty: fail,\n deleteProperty: fail,\n getOwnPropertyDescriptor: fail,\n getPrototypeOf: fail,\n has: fail,\n isExtensible: fail,\n ownKeys: fail,\n preventExtensions: fail,\n setPrototypeOf: fail\n });\n}\nexports.createBrokenObject = createBrokenObject;\n/**\n * Verifies if it is a Broken Object\n * @param {any} object The object\n * @returns {boolean} If it was created with createBrokenObject\n */\nfunction isBrokenObject(object) {\n return object !== null && typeof object === 'object' && object[__isBrokenObject__] === true;\n}\nexports.isBrokenObject = isBrokenObject;\n/**\n * Returns if the reason the object is broken.\n *\n * This method should only be called with instances create with {@link createBrokenObject}\n *\n * @param {any} object The object\n * @returns {Error} The reason the object is broken\n */\nfunction getBrokenObjectReason(object) {\n return object[__reason__];\n}\nexports.getBrokenObjectReason = getBrokenObjectReason;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.FailedObserver = exports.CompletedObserver = void 0;\nvar CompletedObserver = /** @class */ (function () {\n function CompletedObserver() {\n }\n CompletedObserver.prototype.subscribe = function (observer) {\n apply(observer, observer.onKeys, []);\n apply(observer, observer.onCompleted, {});\n };\n CompletedObserver.prototype.cancel = function () {\n // do nothing\n };\n CompletedObserver.prototype.prepareToHandleSingleResponse = function () {\n // do nothing\n };\n CompletedObserver.prototype.markCompleted = function () {\n // do nothing\n };\n CompletedObserver.prototype.onError = function (error) {\n // nothing to do, already finished\n throw Error('CompletedObserver not supposed to call onError');\n };\n return CompletedObserver;\n}());\nexports.CompletedObserver = CompletedObserver;\nvar FailedObserver = /** @class */ (function () {\n function FailedObserver(_a) {\n var error = _a.error, onError = _a.onError;\n this._error = error;\n this._beforeError = onError;\n this._observers = [];\n this.onError(error);\n }\n FailedObserver.prototype.subscribe = function (observer) {\n apply(observer, observer.onError, this._error);\n this._observers.push(observer);\n };\n FailedObserver.prototype.onError = function (error) {\n var _this = this;\n Promise.resolve(apply(this, this._beforeError, error)).then(function () {\n return _this._observers.forEach(function (o) { return apply(o, o.onError, error); });\n });\n };\n FailedObserver.prototype.cancel = function () {\n // do nothing\n };\n FailedObserver.prototype.prepareToHandleSingleResponse = function () {\n // do nothing\n };\n FailedObserver.prototype.markCompleted = function () {\n // do nothing\n };\n return FailedObserver;\n}());\nexports.FailedObserver = FailedObserver;\nfunction apply(thisArg, func, param) {\n if (func) {\n func.bind(thisArg)(param);\n }\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar BaseHostNameResolver = /** @class */ (function () {\n function BaseHostNameResolver() {\n }\n BaseHostNameResolver.prototype.resolve = function () {\n throw new Error('Abstract function');\n };\n /**\n * @protected\n */\n BaseHostNameResolver.prototype._resolveToItself = function (address) {\n return Promise.resolve([address]);\n };\n return BaseHostNameResolver;\n}());\nexports.default = BaseHostNameResolver;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar server_address_1 = require(\"../server-address\");\nfunction resolveToSelf(address) {\n return Promise.resolve([address]);\n}\nvar ConfiguredCustomResolver = /** @class */ (function () {\n function ConfiguredCustomResolver(resolverFunction) {\n this._resolverFunction = resolverFunction || resolveToSelf;\n }\n ConfiguredCustomResolver.prototype.resolve = function (seedRouter) {\n var _this = this;\n return new Promise(function (resolve) {\n return resolve(_this._resolverFunction(seedRouter.asHostPort()));\n }).then(function (resolved) {\n if (!Array.isArray(resolved)) {\n throw new TypeError('Configured resolver function should either return an array of addresses or a Promise resolved with an array of addresses.' +\n (\"Each address is ':'. Got: \" + resolved));\n }\n return resolved.map(function (r) { return server_address_1.ServerAddress.fromUrl(r); });\n });\n };\n return ConfiguredCustomResolver;\n}());\nexports.default = ConfiguredCustomResolver;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ConfiguredCustomResolver = exports.BaseHostNameResolver = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar base_host_name_resolver_1 = __importDefault(require(\"./base-host-name-resolver\"));\nexports.BaseHostNameResolver = base_host_name_resolver_1.default;\nvar configured_custom_resolver_1 = __importDefault(require(\"./configured-custom-resolver\"));\nexports.ConfiguredCustomResolver = configured_custom_resolver_1.default;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.canRetryOn = void 0;\nvar error_1 = require(\"../error\");\n/**\n * Verified error and returns if it could be retried or not\n *\n * @param _error The error\n * @returns If the transaction could be retried.\n */\nfunction canRetryOn(_error) {\n return (_error &&\n _error instanceof error_1.Neo4jError &&\n _error.code &&\n (_error.code === error_1.SERVICE_UNAVAILABLE ||\n _error.code === error_1.SESSION_EXPIRED ||\n _isAuthorizationExpired(_error) ||\n _isTransientError(_error)));\n}\nexports.canRetryOn = canRetryOn;\nfunction _isTransientError(error) {\n // Retries should not happen when transaction was explicitly terminated by the user.\n // Termination of transaction might result in two different error codes depending on where it was\n // terminated. These are really client errors but classification on the server is not entirely correct and\n // they are classified as transient.\n var code = error.code;\n if (code.indexOf('TransientError') >= 0) {\n if (code === 'Neo.TransientError.Transaction.Terminated' ||\n code === 'Neo.TransientError.Transaction.LockClientStopped') {\n return false;\n }\n return true;\n }\n return false;\n}\nfunction _isAuthorizationExpired(error) {\n return error.code === 'Neo.ClientError.Security.AuthorizationExpired';\n}\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ServerAddress = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar util_1 = require(\"./util\");\nvar urlUtil = __importStar(require(\"./url-util\"));\nvar ServerAddress = /** @class */ (function () {\n function ServerAddress(host, resolved, port, hostPort) {\n this._host = (0, util_1.assertString)(host, 'host');\n this._resolved = resolved ? (0, util_1.assertString)(resolved, 'resolved') : null;\n this._port = (0, util_1.assertNumber)(port, 'port');\n this._hostPort = hostPort;\n this._stringValue = resolved ? hostPort + \"(\" + resolved + \")\" : \"\" + hostPort;\n }\n ServerAddress.prototype.host = function () {\n return this._host;\n };\n ServerAddress.prototype.resolvedHost = function () {\n return this._resolved ? this._resolved : this._host;\n };\n ServerAddress.prototype.port = function () {\n return this._port;\n };\n ServerAddress.prototype.resolveWith = function (resolved) {\n return new ServerAddress(this._host, resolved, this._port, this._hostPort);\n };\n ServerAddress.prototype.asHostPort = function () {\n return this._hostPort;\n };\n ServerAddress.prototype.asKey = function () {\n return this._hostPort;\n };\n ServerAddress.prototype.toString = function () {\n return this._stringValue;\n };\n ServerAddress.fromUrl = function (url) {\n var urlParsed = urlUtil.parseDatabaseUrl(url);\n return new ServerAddress(urlParsed.host, null, urlParsed.port, urlParsed.hostAndPort);\n };\n return ServerAddress;\n}());\nexports.ServerAddress = ServerAddress;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.floorMod = exports.floorDiv = exports.assertValidZoneId = exports.assertValidNanosecond = exports.assertValidSecond = exports.assertValidMinute = exports.assertValidHour = exports.assertValidDay = exports.assertValidMonth = exports.assertValidYear = exports.timeZoneOffsetInSeconds = exports.totalNanoseconds = exports.newDate = exports.toStandardDate = exports.isoStringToStandardDate = exports.dateToIsoString = exports.timeZoneOffsetToIsoString = exports.timeToIsoString = exports.durationToIsoString = exports.dateToEpochDay = exports.localDateTimeToEpochSecond = exports.localTimeToNanoOfDay = exports.normalizeNanosecondsForDuration = exports.normalizeSecondsForDuration = exports.SECONDS_PER_DAY = exports.DAYS_PER_400_YEAR_CYCLE = exports.DAYS_0000_TO_1970 = exports.NANOS_PER_HOUR = exports.NANOS_PER_MINUTE = exports.NANOS_PER_MILLISECOND = exports.NANOS_PER_SECOND = exports.SECONDS_PER_HOUR = exports.SECONDS_PER_MINUTE = exports.MINUTES_PER_HOUR = exports.NANOSECOND_OF_SECOND_RANGE = exports.SECOND_OF_MINUTE_RANGE = exports.MINUTE_OF_HOUR_RANGE = exports.HOUR_OF_DAY_RANGE = exports.DAY_OF_MONTH_RANGE = exports.MONTH_OF_YEAR_RANGE = exports.YEAR_RANGE = void 0;\nvar integer_1 = __importStar(require(\"../integer\"));\nvar error_1 = require(\"../error\");\nvar util_1 = require(\"./util\");\n/*\n Code in this util should be compatible with code in the database that uses JSR-310 java.time APIs.\n\n It is based on a library called ThreeTen (https://github.com/ThreeTen/threetenbp) which was derived\n from JSR-310 reference implementation previously hosted on GitHub. Code uses `Integer` type everywhere\n to correctly handle large integer values that are greater than `Number.MAX_SAFE_INTEGER`.\n\n Please consult either ThreeTen or js-joda (https://github.com/js-joda/js-joda) when working with the\n conversion functions.\n */\nvar ValueRange = /** @class */ (function () {\n function ValueRange(min, max) {\n this._minNumber = min;\n this._maxNumber = max;\n this._minInteger = (0, integer_1.int)(min);\n this._maxInteger = (0, integer_1.int)(max);\n }\n ValueRange.prototype.contains = function (value) {\n if ((0, integer_1.isInt)(value) && value instanceof integer_1.default) {\n return (value.greaterThanOrEqual(this._minInteger) &&\n value.lessThanOrEqual(this._maxInteger));\n }\n else if (typeof value === 'bigint') {\n var intValue = (0, integer_1.int)(value);\n return (intValue.greaterThanOrEqual(this._minInteger) &&\n intValue.lessThanOrEqual(this._maxInteger));\n }\n else {\n return value >= this._minNumber && value <= this._maxNumber;\n }\n };\n ValueRange.prototype.toString = function () {\n return \"[\" + this._minNumber + \", \" + this._maxNumber + \"]\";\n };\n return ValueRange;\n}());\nexports.YEAR_RANGE = new ValueRange(-999999999, 999999999);\nexports.MONTH_OF_YEAR_RANGE = new ValueRange(1, 12);\nexports.DAY_OF_MONTH_RANGE = new ValueRange(1, 31);\nexports.HOUR_OF_DAY_RANGE = new ValueRange(0, 23);\nexports.MINUTE_OF_HOUR_RANGE = new ValueRange(0, 59);\nexports.SECOND_OF_MINUTE_RANGE = new ValueRange(0, 59);\nexports.NANOSECOND_OF_SECOND_RANGE = new ValueRange(0, 999999999);\nexports.MINUTES_PER_HOUR = 60;\nexports.SECONDS_PER_MINUTE = 60;\nexports.SECONDS_PER_HOUR = exports.SECONDS_PER_MINUTE * exports.MINUTES_PER_HOUR;\nexports.NANOS_PER_SECOND = 1000000000;\nexports.NANOS_PER_MILLISECOND = 1000000;\nexports.NANOS_PER_MINUTE = exports.NANOS_PER_SECOND * exports.SECONDS_PER_MINUTE;\nexports.NANOS_PER_HOUR = exports.NANOS_PER_MINUTE * exports.MINUTES_PER_HOUR;\nexports.DAYS_0000_TO_1970 = 719528;\nexports.DAYS_PER_400_YEAR_CYCLE = 146097;\nexports.SECONDS_PER_DAY = 86400;\nfunction normalizeSecondsForDuration(seconds, nanoseconds) {\n return (0, integer_1.int)(seconds).add(floorDiv(nanoseconds, exports.NANOS_PER_SECOND));\n}\nexports.normalizeSecondsForDuration = normalizeSecondsForDuration;\nfunction normalizeNanosecondsForDuration(nanoseconds) {\n return floorMod(nanoseconds, exports.NANOS_PER_SECOND);\n}\nexports.normalizeNanosecondsForDuration = normalizeNanosecondsForDuration;\n/**\n * Converts given local time into a single integer representing this same time in nanoseconds of the day.\n * @param {Integer|number|string} hour the hour of the local time to convert.\n * @param {Integer|number|string} minute the minute of the local time to convert.\n * @param {Integer|number|string} second the second of the local time to convert.\n * @param {Integer|number|string} nanosecond the nanosecond of the local time to convert.\n * @return {Integer} nanoseconds representing the given local time.\n */\nfunction localTimeToNanoOfDay(hour, minute, second, nanosecond) {\n hour = (0, integer_1.int)(hour);\n minute = (0, integer_1.int)(minute);\n second = (0, integer_1.int)(second);\n nanosecond = (0, integer_1.int)(nanosecond);\n var totalNanos = hour.multiply(exports.NANOS_PER_HOUR);\n totalNanos = totalNanos.add(minute.multiply(exports.NANOS_PER_MINUTE));\n totalNanos = totalNanos.add(second.multiply(exports.NANOS_PER_SECOND));\n return totalNanos.add(nanosecond);\n}\nexports.localTimeToNanoOfDay = localTimeToNanoOfDay;\n/**\n * Converts given local date time into a single integer representing this same time in epoch seconds UTC.\n * @param {Integer|number|string} year the year of the local date-time to convert.\n * @param {Integer|number|string} month the month of the local date-time to convert.\n * @param {Integer|number|string} day the day of the local date-time to convert.\n * @param {Integer|number|string} hour the hour of the local date-time to convert.\n * @param {Integer|number|string} minute the minute of the local date-time to convert.\n * @param {Integer|number|string} second the second of the local date-time to convert.\n * @param {Integer|number|string} nanosecond the nanosecond of the local date-time to convert.\n * @return {Integer} epoch second in UTC representing the given local date time.\n */\nfunction localDateTimeToEpochSecond(year, month, day, hour, minute, second, nanosecond) {\n var epochDay = dateToEpochDay(year, month, day);\n var localTimeSeconds = localTimeToSecondOfDay(hour, minute, second);\n return epochDay.multiply(exports.SECONDS_PER_DAY).add(localTimeSeconds);\n}\nexports.localDateTimeToEpochSecond = localDateTimeToEpochSecond;\n/**\n * Converts given local date into a single integer representing it's epoch day.\n * @param {Integer|number|string} year the year of the local date to convert.\n * @param {Integer|number|string} month the month of the local date to convert.\n * @param {Integer|number|string} day the day of the local date to convert.\n * @return {Integer} epoch day representing the given date.\n */\nfunction dateToEpochDay(year, month, day) {\n year = (0, integer_1.int)(year);\n month = (0, integer_1.int)(month);\n day = (0, integer_1.int)(day);\n var epochDay = year.multiply(365);\n if (year.greaterThanOrEqual(0)) {\n epochDay = epochDay.add(year\n .add(3)\n .div(4)\n .subtract(year.add(99).div(100))\n .add(year.add(399).div(400)));\n }\n else {\n epochDay = epochDay.subtract(year\n .div(-4)\n .subtract(year.div(-100))\n .add(year.div(-400)));\n }\n epochDay = epochDay.add(month\n .multiply(367)\n .subtract(362)\n .div(12));\n epochDay = epochDay.add(day.subtract(1));\n if (month.greaterThan(2)) {\n epochDay = epochDay.subtract(1);\n if (!isLeapYear(year)) {\n epochDay = epochDay.subtract(1);\n }\n }\n return epochDay.subtract(exports.DAYS_0000_TO_1970);\n}\nexports.dateToEpochDay = dateToEpochDay;\n/**\n * Format given duration to an ISO 8601 string.\n * @param {Integer|number|string} months the number of months.\n * @param {Integer|number|string} days the number of days.\n * @param {Integer|number|string} seconds the number of seconds.\n * @param {Integer|number|string} nanoseconds the number of nanoseconds.\n * @return {string} ISO string that represents given duration.\n */\nfunction durationToIsoString(months, days, seconds, nanoseconds) {\n var monthsString = formatNumber(months);\n var daysString = formatNumber(days);\n var secondsAndNanosecondsString = formatSecondsAndNanosecondsForDuration(seconds, nanoseconds);\n return \"P\" + monthsString + \"M\" + daysString + \"DT\" + secondsAndNanosecondsString + \"S\";\n}\nexports.durationToIsoString = durationToIsoString;\n/**\n * Formats given time to an ISO 8601 string.\n * @param {Integer|number|string} hour the hour value.\n * @param {Integer|number|string} minute the minute value.\n * @param {Integer|number|string} second the second value.\n * @param {Integer|number|string} nanosecond the nanosecond value.\n * @return {string} ISO string that represents given time.\n */\nfunction timeToIsoString(hour, minute, second, nanosecond) {\n var hourString = formatNumber(hour, 2);\n var minuteString = formatNumber(minute, 2);\n var secondString = formatNumber(second, 2);\n var nanosecondString = formatNanosecond(nanosecond);\n return hourString + \":\" + minuteString + \":\" + secondString + nanosecondString;\n}\nexports.timeToIsoString = timeToIsoString;\n/**\n * Formats given time zone offset in seconds to string representation like '±HH:MM', '±HH:MM:SS' or 'Z' for UTC.\n * @param {Integer|number|string} offsetSeconds the offset in seconds.\n * @return {string} ISO string that represents given offset.\n */\nfunction timeZoneOffsetToIsoString(offsetSeconds) {\n offsetSeconds = (0, integer_1.int)(offsetSeconds);\n if (offsetSeconds.equals(0)) {\n return 'Z';\n }\n var isNegative = offsetSeconds.isNegative();\n if (isNegative) {\n offsetSeconds = offsetSeconds.multiply(-1);\n }\n var signPrefix = isNegative ? '-' : '+';\n var hours = formatNumber(offsetSeconds.div(exports.SECONDS_PER_HOUR), 2);\n var minutes = formatNumber(offsetSeconds.div(exports.SECONDS_PER_MINUTE).modulo(exports.MINUTES_PER_HOUR), 2);\n var secondsValue = offsetSeconds.modulo(exports.SECONDS_PER_MINUTE);\n var seconds = secondsValue.equals(0) ? null : formatNumber(secondsValue, 2);\n return seconds\n ? \"\" + signPrefix + hours + \":\" + minutes + \":\" + seconds\n : \"\" + signPrefix + hours + \":\" + minutes;\n}\nexports.timeZoneOffsetToIsoString = timeZoneOffsetToIsoString;\n/**\n * Formats given date to an ISO 8601 string.\n * @param {Integer|number|string} year the date year.\n * @param {Integer|number|string} month the date month.\n * @param {Integer|number|string} day the date day.\n * @return {string} ISO string that represents given date.\n */\nfunction dateToIsoString(year, month, day) {\n var yearString = formatYear(year);\n var monthString = formatNumber(month, 2);\n var dayString = formatNumber(day, 2);\n return yearString + \"-\" + monthString + \"-\" + dayString;\n}\nexports.dateToIsoString = dateToIsoString;\n/**\n * Convert the given iso date string to a JavaScript Date object\n *\n * @param {string} isoString The iso date string\n * @returns {Date} the date\n */\nfunction isoStringToStandardDate(isoString) {\n return new Date(isoString);\n}\nexports.isoStringToStandardDate = isoStringToStandardDate;\n/**\n * Convert the given utc timestamp to a JavaScript Date object\n *\n * @param {number} utc Timestamp in UTC\n * @returns {Date} the date\n */\nfunction toStandardDate(utc) {\n return new Date(utc);\n}\nexports.toStandardDate = toStandardDate;\n/**\n * Shortcut for creating a new StandardDate\n * @param date\n * @returns {Date} the standard date\n */\nfunction newDate(date) {\n return new Date(date);\n}\nexports.newDate = newDate;\n/**\n * Get the total number of nanoseconds from the milliseconds of the given standard JavaScript date and optional nanosecond part.\n * @param {global.Date} standardDate the standard JavaScript date.\n * @param {Integer|number|bigint|undefined} nanoseconds the optional number of nanoseconds.\n * @return {Integer|number|bigint} the total amount of nanoseconds.\n */\nfunction totalNanoseconds(standardDate, nanoseconds) {\n nanoseconds = nanoseconds || 0;\n var nanosFromMillis = standardDate.getMilliseconds() * exports.NANOS_PER_MILLISECOND;\n return add(nanoseconds, nanosFromMillis);\n}\nexports.totalNanoseconds = totalNanoseconds;\n/**\n * Get the time zone offset in seconds from the given standard JavaScript date.\n *\n * Implementation note:\n * Time zone offset returned by the standard JavaScript date is the difference, in minutes, from local time to UTC.\n * So positive value means offset is behind UTC and negative value means it is ahead.\n * For Neo4j temporal types, like `Time` or `DateTime` offset is in seconds and represents difference from UTC to local time.\n * This is different from standard JavaScript dates and that's why implementation negates the returned value.\n *\n * @param {global.Date} standardDate the standard JavaScript date.\n * @return {number} the time zone offset in seconds.\n */\nfunction timeZoneOffsetInSeconds(standardDate) {\n var secondsPortion = standardDate.getSeconds() >= standardDate.getUTCSeconds()\n ? standardDate.getSeconds() - standardDate.getUTCSeconds()\n : standardDate.getSeconds() - standardDate.getUTCSeconds() + 60;\n var offsetInMinutes = standardDate.getTimezoneOffset();\n if (offsetInMinutes === 0) {\n return 0 + secondsPortion;\n }\n return -1 * offsetInMinutes * exports.SECONDS_PER_MINUTE + secondsPortion;\n}\nexports.timeZoneOffsetInSeconds = timeZoneOffsetInSeconds;\n/**\n * Assert that the year value is valid.\n * @param {Integer|number} year the value to check.\n * @return {Integer|number} the value of the year if it is valid. Exception is thrown otherwise.\n */\nfunction assertValidYear(year) {\n return assertValidTemporalValue(year, exports.YEAR_RANGE, 'Year');\n}\nexports.assertValidYear = assertValidYear;\n/**\n * Assert that the month value is valid.\n * @param {Integer|number} month the value to check.\n * @return {Integer|number} the value of the month if it is valid. Exception is thrown otherwise.\n */\nfunction assertValidMonth(month) {\n return assertValidTemporalValue(month, exports.MONTH_OF_YEAR_RANGE, 'Month');\n}\nexports.assertValidMonth = assertValidMonth;\n/**\n * Assert that the day value is valid.\n * @param {Integer|number} day the value to check.\n * @return {Integer|number} the value of the day if it is valid. Exception is thrown otherwise.\n */\nfunction assertValidDay(day) {\n return assertValidTemporalValue(day, exports.DAY_OF_MONTH_RANGE, 'Day');\n}\nexports.assertValidDay = assertValidDay;\n/**\n * Assert that the hour value is valid.\n * @param {Integer|number} hour the value to check.\n * @return {Integer|number} the value of the hour if it is valid. Exception is thrown otherwise.\n */\nfunction assertValidHour(hour) {\n return assertValidTemporalValue(hour, exports.HOUR_OF_DAY_RANGE, 'Hour');\n}\nexports.assertValidHour = assertValidHour;\n/**\n * Assert that the minute value is valid.\n * @param {Integer|number} minute the value to check.\n * @return {Integer|number} the value of the minute if it is valid. Exception is thrown otherwise.\n */\nfunction assertValidMinute(minute) {\n return assertValidTemporalValue(minute, exports.MINUTE_OF_HOUR_RANGE, 'Minute');\n}\nexports.assertValidMinute = assertValidMinute;\n/**\n * Assert that the second value is valid.\n * @param {Integer|number} second the value to check.\n * @return {Integer|number} the value of the second if it is valid. Exception is thrown otherwise.\n */\nfunction assertValidSecond(second) {\n return assertValidTemporalValue(second, exports.SECOND_OF_MINUTE_RANGE, 'Second');\n}\nexports.assertValidSecond = assertValidSecond;\n/**\n * Assert that the nanosecond value is valid.\n * @param {Integer|number} nanosecond the value to check.\n * @return {Integer|number} the value of the nanosecond if it is valid. Exception is thrown otherwise.\n */\nfunction assertValidNanosecond(nanosecond) {\n return assertValidTemporalValue(nanosecond, exports.NANOSECOND_OF_SECOND_RANGE, 'Nanosecond');\n}\nexports.assertValidNanosecond = assertValidNanosecond;\nfunction assertValidZoneId(fieldName, zoneId) {\n try {\n Intl.DateTimeFormat(undefined, { timeZone: zoneId });\n }\n catch (e) {\n throw (0, error_1.newError)(fieldName + \" is expected to be a valid ZoneId but was: \\\"\" + zoneId + \"\\\"\");\n }\n}\nexports.assertValidZoneId = assertValidZoneId;\n/**\n * Check if the given value is of expected type and is in the expected range.\n * @param {Integer|number} value the value to check.\n * @param {ValueRange} range the range.\n * @param {string} name the name of the value.\n * @return {Integer|number} the value if valid. Exception is thrown otherwise.\n */\nfunction assertValidTemporalValue(value, range, name) {\n (0, util_1.assertNumberOrInteger)(value, name);\n if (!range.contains(value)) {\n throw (0, error_1.newError)(name + \" is expected to be in range \" + range + \" but was: \" + value);\n }\n return value;\n}\n/**\n * Converts given local time into a single integer representing this same time in seconds of the day. Nanoseconds are skipped.\n * @param {Integer|number|string} hour the hour of the local time.\n * @param {Integer|number|string} minute the minute of the local time.\n * @param {Integer|number|string} second the second of the local time.\n * @return {Integer} seconds representing the given local time.\n */\nfunction localTimeToSecondOfDay(hour, minute, second) {\n hour = (0, integer_1.int)(hour);\n minute = (0, integer_1.int)(minute);\n second = (0, integer_1.int)(second);\n var totalSeconds = hour.multiply(exports.SECONDS_PER_HOUR);\n totalSeconds = totalSeconds.add(minute.multiply(exports.SECONDS_PER_MINUTE));\n return totalSeconds.add(second);\n}\n/**\n * Check if given year is a leap year. Uses algorithm described here {@link https://en.wikipedia.org/wiki/Leap_year#Algorithm}.\n * @param {Integer|number|string} year the year to check. Will be converted to {@link Integer} for all calculations.\n * @return {boolean} `true` if given year is a leap year, `false` otherwise.\n */\nfunction isLeapYear(year) {\n year = (0, integer_1.int)(year);\n if (!year.modulo(4).equals(0)) {\n return false;\n }\n else if (!year.modulo(100).equals(0)) {\n return true;\n }\n else if (!year.modulo(400).equals(0)) {\n return false;\n }\n else {\n return true;\n }\n}\n/**\n * @param {Integer|number|string} x the divident.\n * @param {Integer|number|string} y the divisor.\n * @return {Integer} the result.\n */\nfunction floorDiv(x, y) {\n x = (0, integer_1.int)(x);\n y = (0, integer_1.int)(y);\n var result = x.div(y);\n if (x.isPositive() !== y.isPositive() && result.multiply(y).notEquals(x)) {\n result = result.subtract(1);\n }\n return result;\n}\nexports.floorDiv = floorDiv;\n/**\n * @param {Integer|number|string} x the divident.\n * @param {Integer|number|string} y the divisor.\n * @return {Integer} the result.\n */\nfunction floorMod(x, y) {\n x = (0, integer_1.int)(x);\n y = (0, integer_1.int)(y);\n return x.subtract(floorDiv(x, y).multiply(y));\n}\nexports.floorMod = floorMod;\n/**\n * @param {Integer|number|string} seconds the number of seconds to format.\n * @param {Integer|number|string} nanoseconds the number of nanoseconds to format.\n * @return {string} formatted value.\n */\nfunction formatSecondsAndNanosecondsForDuration(seconds, nanoseconds) {\n seconds = (0, integer_1.int)(seconds);\n nanoseconds = (0, integer_1.int)(nanoseconds);\n var secondsString;\n var nanosecondsString;\n var secondsNegative = seconds.isNegative();\n var nanosecondsGreaterThanZero = nanoseconds.greaterThan(0);\n if (secondsNegative && nanosecondsGreaterThanZero) {\n if (seconds.equals(-1)) {\n secondsString = '-0';\n }\n else {\n secondsString = seconds.add(1).toString();\n }\n }\n else {\n secondsString = seconds.toString();\n }\n if (nanosecondsGreaterThanZero) {\n if (secondsNegative) {\n nanosecondsString = formatNanosecond(nanoseconds\n .negate()\n .add(2 * exports.NANOS_PER_SECOND)\n .modulo(exports.NANOS_PER_SECOND));\n }\n else {\n nanosecondsString = formatNanosecond(nanoseconds.add(exports.NANOS_PER_SECOND).modulo(exports.NANOS_PER_SECOND));\n }\n }\n return nanosecondsString ? secondsString + nanosecondsString : secondsString;\n}\n/**\n * @param {Integer|number|string} value the number of nanoseconds to format.\n * @return {string} formatted and possibly left-padded nanoseconds part as string.\n */\nfunction formatNanosecond(value) {\n value = (0, integer_1.int)(value);\n return value.equals(0) ? '' : '.' + formatNumber(value, 9);\n}\n/**\n *\n * @param {Integer|number|string} year The year to be formatted\n * @return {string} formatted year\n */\nfunction formatYear(year) {\n var yearInteger = (0, integer_1.int)(year);\n if (yearInteger.isNegative() || yearInteger.greaterThan(9999)) {\n return formatNumber(yearInteger, 6, { usePositiveSign: true });\n }\n return formatNumber(yearInteger, 4);\n}\n/**\n * @param {Integer|number|string} num the number to format.\n * @param {number} [stringLength=undefined] the string length to left-pad to.\n * @return {string} formatted and possibly left-padded number as string.\n */\nfunction formatNumber(num, stringLength, params) {\n num = (0, integer_1.int)(num);\n var isNegative = num.isNegative();\n if (isNegative) {\n num = num.negate();\n }\n var numString = num.toString();\n if (stringLength) {\n // left pad the string with zeroes\n while (numString.length < stringLength) {\n numString = '0' + numString;\n }\n }\n if (isNegative) {\n return '-' + numString;\n }\n else if ((params === null || params === void 0 ? void 0 : params.usePositiveSign) === true) {\n return '+' + numString;\n }\n return numString;\n}\nfunction add(x, y) {\n if (x instanceof integer_1.default) {\n return x.add(y);\n }\n else if (typeof x === 'bigint') {\n return x + BigInt(y);\n }\n return x + y;\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TransactionExecutor = void 0;\nvar error_1 = require(\"../error\");\nvar retry_strategy_1 = require(\"./retry-strategy\");\nvar DEFAULT_MAX_RETRY_TIME_MS = 30 * 1000; // 30 seconds\nvar DEFAULT_INITIAL_RETRY_DELAY_MS = 1000; // 1 seconds\nvar DEFAULT_RETRY_DELAY_MULTIPLIER = 2.0;\nvar DEFAULT_RETRY_DELAY_JITTER_FACTOR = 0.2;\nvar TransactionExecutor = /** @class */ (function () {\n function TransactionExecutor(maxRetryTimeMs, initialRetryDelayMs, multiplier, jitterFactor) {\n this._maxRetryTimeMs = _valueOrDefault(maxRetryTimeMs, DEFAULT_MAX_RETRY_TIME_MS);\n this._initialRetryDelayMs = _valueOrDefault(initialRetryDelayMs, DEFAULT_INITIAL_RETRY_DELAY_MS);\n this._multiplier = _valueOrDefault(multiplier, DEFAULT_RETRY_DELAY_MULTIPLIER);\n this._jitterFactor = _valueOrDefault(jitterFactor, DEFAULT_RETRY_DELAY_JITTER_FACTOR);\n this._inFlightTimeoutIds = [];\n this._verifyAfterConstruction();\n }\n TransactionExecutor.prototype.execute = function (transactionCreator, transactionWork) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n _this._executeTransactionInsidePromise(transactionCreator, transactionWork, resolve, reject);\n }).catch(function (error) {\n var retryStartTimeMs = Date.now();\n var retryDelayMs = _this._initialRetryDelayMs;\n return _this._retryTransactionPromise(transactionCreator, transactionWork, error, retryStartTimeMs, retryDelayMs);\n });\n };\n TransactionExecutor.prototype.close = function () {\n // cancel all existing timeouts to prevent further retries\n this._inFlightTimeoutIds.forEach(function (timeoutId) { return clearTimeout(timeoutId); });\n this._inFlightTimeoutIds = [];\n };\n TransactionExecutor.prototype._retryTransactionPromise = function (transactionCreator, transactionWork, error, retryStartTime, retryDelayMs) {\n var _this = this;\n var elapsedTimeMs = Date.now() - retryStartTime;\n if (elapsedTimeMs > this._maxRetryTimeMs || !(0, retry_strategy_1.canRetryOn)(error)) {\n return Promise.reject(error);\n }\n return new Promise(function (resolve, reject) {\n var nextRetryTime = _this._computeDelayWithJitter(retryDelayMs);\n var timeoutId = setTimeout(function () {\n // filter out this timeoutId when time has come and function is being executed\n _this._inFlightTimeoutIds = _this._inFlightTimeoutIds.filter(function (id) { return id !== timeoutId; });\n _this._executeTransactionInsidePromise(transactionCreator, transactionWork, resolve, reject);\n }, nextRetryTime);\n // add newly created timeoutId to the list of all in-flight timeouts\n _this._inFlightTimeoutIds.push(timeoutId);\n }).catch(function (error) {\n var nextRetryDelayMs = retryDelayMs * _this._multiplier;\n return _this._retryTransactionPromise(transactionCreator, transactionWork, error, retryStartTime, nextRetryDelayMs);\n });\n };\n TransactionExecutor.prototype._executeTransactionInsidePromise = function (transactionCreator, transactionWork, resolve, reject) {\n var _this = this;\n var tx;\n try {\n tx = transactionCreator();\n }\n catch (error) {\n // failed to create a transaction\n reject(error);\n return;\n }\n var resultPromise = this._safeExecuteTransactionWork(tx, transactionWork);\n resultPromise\n .then(function (result) {\n return _this._handleTransactionWorkSuccess(result, tx, resolve, reject);\n })\n .catch(function (error) { return _this._handleTransactionWorkFailure(error, tx, reject); });\n };\n TransactionExecutor.prototype._safeExecuteTransactionWork = function (tx, transactionWork) {\n try {\n var result = transactionWork(tx);\n // user defined callback is supposed to return a promise, but it might not; so to protect against an\n // incorrect API usage we wrap the returned value with a resolved promise; this is effectively a\n // validation step without type checks\n return Promise.resolve(result);\n }\n catch (error) {\n return Promise.reject(error);\n }\n };\n TransactionExecutor.prototype._handleTransactionWorkSuccess = function (result, tx, resolve, reject) {\n if (tx.isOpen()) {\n // transaction work returned resolved promise and transaction has not been committed/rolled back\n // try to commit the transaction\n tx.commit()\n .then(function () {\n // transaction was committed, return result to the user\n resolve(result);\n })\n .catch(function (error) {\n // transaction failed to commit, propagate the failure\n reject(error);\n });\n }\n else {\n // transaction work returned resolved promise and transaction is already committed/rolled back\n // return the result returned by given transaction work\n resolve(result);\n }\n };\n TransactionExecutor.prototype._handleTransactionWorkFailure = function (error, tx, reject) {\n if (tx.isOpen()) {\n // transaction work failed and the transaction is still open, roll it back and propagate the failure\n tx.rollback()\n .catch(function (ignore) {\n // ignore the rollback error\n })\n .then(function () { return reject(error); }); // propagate the original error we got from the transaction work\n }\n else {\n // transaction is already rolled back, propagate the error\n reject(error);\n }\n };\n TransactionExecutor.prototype._computeDelayWithJitter = function (delayMs) {\n var jitter = delayMs * this._jitterFactor;\n var min = delayMs - jitter;\n var max = delayMs + jitter;\n return Math.random() * (max - min) + min;\n };\n TransactionExecutor.prototype._verifyAfterConstruction = function () {\n if (this._maxRetryTimeMs < 0) {\n throw (0, error_1.newError)('Max retry time should be >= 0: ' + this._maxRetryTimeMs);\n }\n if (this._initialRetryDelayMs < 0) {\n throw (0, error_1.newError)('Initial retry delay should >= 0: ' + this._initialRetryDelayMs);\n }\n if (this._multiplier < 1.0) {\n throw (0, error_1.newError)('Multiplier should be >= 1.0: ' + this._multiplier);\n }\n if (this._jitterFactor < 0 || this._jitterFactor > 1) {\n throw (0, error_1.newError)('Jitter factor should be in [0.0, 1.0]: ' + this._jitterFactor);\n }\n };\n return TransactionExecutor;\n}());\nexports.TransactionExecutor = TransactionExecutor;\nfunction _valueOrDefault(value, defaultValue) {\n if (value || value === 0) {\n return value;\n }\n return defaultValue;\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TxConfig = void 0;\nvar util = __importStar(require(\"./util\"));\nvar error_1 = require(\"../error\");\nvar integer_1 = require(\"../integer\");\n/**\n * Internal holder of the transaction configuration.\n * It performs input validation and value conversion for further serialization by the Bolt protocol layer.\n * Users of the driver provide transaction configuration as regular objects `{timeout: 10, metadata: {key: 'value'}}`.\n * Driver converts such objects to {@link TxConfig} immediately and uses converted values everywhere.\n */\nvar TxConfig = /** @class */ (function () {\n /**\n * @constructor\n * @param {Object} config the raw configuration object.\n */\n function TxConfig(config) {\n assertValidConfig(config);\n this.timeout = extractTimeout(config);\n this.metadata = extractMetadata(config);\n }\n /**\n * Get an empty config object.\n * @return {TxConfig} an empty config.\n */\n TxConfig.empty = function () {\n return EMPTY_CONFIG;\n };\n /**\n * Check if this config object is empty. I.e. has no configuration values specified.\n * @return {boolean} `true` if this object is empty, `false` otherwise.\n */\n TxConfig.prototype.isEmpty = function () {\n return Object.values(this).every(function (value) { return value == null; });\n };\n return TxConfig;\n}());\nexports.TxConfig = TxConfig;\nvar EMPTY_CONFIG = new TxConfig({});\n/**\n * @return {Integer|null}\n */\nfunction extractTimeout(config) {\n if (util.isObject(config) && (config.timeout || config.timeout === 0)) {\n util.assertNumberOrInteger(config.timeout, 'Transaction timeout');\n var timeout = (0, integer_1.int)(config.timeout);\n if (timeout.isZero()) {\n throw (0, error_1.newError)('Transaction timeout should not be zero');\n }\n if (timeout.isNegative()) {\n throw (0, error_1.newError)('Transaction timeout should not be negative');\n }\n return timeout;\n }\n return null;\n}\n/**\n * @return {object|null}\n */\nfunction extractMetadata(config) {\n if (util.isObject(config) && config.metadata) {\n var metadata = config.metadata;\n util.assertObject(metadata, 'config.metadata');\n if (Object.keys(metadata).length !== 0) {\n // not an empty object\n return metadata;\n }\n }\n return null;\n}\nfunction assertValidConfig(config) {\n if (config) {\n util.assertObject(config, 'Transaction config');\n }\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Url = exports.formatIPv6Address = exports.formatIPv4Address = exports.defaultPortForScheme = exports.parseDatabaseUrl = void 0;\nvar util_1 = require(\"./util\");\nvar DEFAULT_BOLT_PORT = 7687;\nvar DEFAULT_HTTP_PORT = 7474;\nvar DEFAULT_HTTPS_PORT = 7473;\nvar Url = /** @class */ (function () {\n function Url(scheme, host, port, hostAndPort, query) {\n /**\n * Nullable scheme (protocol) of the URL.\n * Example: 'bolt', 'neo4j', 'http', 'https', etc.\n * @type {string}\n */\n this.scheme = scheme;\n /**\n * Nonnull host name or IP address. IPv6 not wrapped in square brackets.\n * Example: 'neo4j.com', 'localhost', '127.0.0.1', '192.168.10.15', '::1', '2001:4860:4860::8844', etc.\n * @type {string}\n */\n this.host = host;\n /**\n * Nonnull number representing port. Default port for the given scheme is used if given URL string\n * does not contain port. Example: 7687 for bolt, 7474 for HTTP and 7473 for HTTPS.\n * @type {number}\n */\n this.port = port;\n /**\n * Nonnull host name or IP address plus port, separated by ':'. IPv6 wrapped in square brackets.\n * Example: 'neo4j.com', 'neo4j.com:7687', '127.0.0.1', '127.0.0.1:8080', '[2001:4860:4860::8844]',\n * '[2001:4860:4860::8844]:9090', etc.\n * @type {string}\n */\n this.hostAndPort = hostAndPort;\n /**\n * Nonnull object representing parsed query string key-value pairs. Duplicated keys not supported.\n * Example: '{}', '{'key1': 'value1', 'key2': 'value2'}', etc.\n * @type {Object}\n */\n this.query = query;\n }\n return Url;\n}());\nexports.Url = Url;\nfunction parseDatabaseUrl(url) {\n (0, util_1.assertString)(url, 'URL');\n var sanitized = sanitizeUrl(url);\n var parsedUrl = uriJsParse(sanitized.url);\n var scheme = sanitized.schemeMissing\n ? null\n : extractScheme(parsedUrl.scheme);\n var host = extractHost(parsedUrl.host); // no square brackets for IPv6\n var formattedHost = formatHost(host); // has square brackets for IPv6\n var port = extractPort(parsedUrl.port, scheme);\n var hostAndPort = formattedHost + \":\" + port;\n var query = extractQuery(\n // @ts-ignore\n parsedUrl.query || extractResourceQueryString(parsedUrl.resourceName), url);\n return new Url(scheme, host, port, hostAndPort, query);\n}\nexports.parseDatabaseUrl = parseDatabaseUrl;\nfunction extractResourceQueryString(resource) {\n if (typeof resource !== 'string') {\n return null;\n }\n var _a = __read(resource.split('?'), 2), _ = _a[0], query = _a[1];\n return query;\n}\nfunction sanitizeUrl(url) {\n url = url.trim();\n if (url.indexOf('://') === -1) {\n // url does not contain scheme, add dummy 'none://' to make parser work correctly\n return { schemeMissing: true, url: \"none://\" + url };\n }\n return { schemeMissing: false, url: url };\n}\nfunction extractScheme(scheme) {\n if (scheme) {\n scheme = scheme.trim();\n if (scheme.charAt(scheme.length - 1) === ':') {\n scheme = scheme.substring(0, scheme.length - 1);\n }\n return scheme;\n }\n return null;\n}\nfunction extractHost(host, url) {\n if (!host) {\n throw new Error(\"Unable to extract host from \" + url);\n }\n return host.trim();\n}\nfunction extractPort(portString, scheme) {\n var port = typeof portString === 'string' ? parseInt(portString, 10) : portString;\n return port === 0 || port ? port : defaultPortForScheme(scheme);\n}\nfunction extractQuery(queryString, url) {\n var query = queryString ? trimAndSanitizeQuery(queryString) : null;\n var context = {};\n if (query) {\n query.split('&').forEach(function (pair) {\n var keyValue = pair.split('=');\n if (keyValue.length !== 2) {\n throw new Error(\"Invalid parameters: '\" + keyValue + \"' in URL '\" + url + \"'.\");\n }\n var key = trimAndVerifyQueryElement(keyValue[0], 'key', url);\n var value = trimAndVerifyQueryElement(keyValue[1], 'value', url);\n if (context[key]) {\n throw new Error(\"Duplicated query parameters with key '\" + key + \"' in URL '\" + url + \"'\");\n }\n context[key] = value;\n });\n }\n return context;\n}\nfunction trimAndSanitizeQuery(query) {\n query = (query || '').trim();\n if (query && query.charAt(0) === '?') {\n query = query.substring(1, query.length);\n }\n return query;\n}\nfunction trimAndVerifyQueryElement(element, name, url) {\n element = (element || '').trim();\n if (!element) {\n throw new Error(\"Illegal empty \" + name + \" in URL query '\" + url + \"'\");\n }\n return element;\n}\nfunction escapeIPv6Address(address) {\n var startsWithSquareBracket = address.charAt(0) === '[';\n var endsWithSquareBracket = address.charAt(address.length - 1) === ']';\n if (!startsWithSquareBracket && !endsWithSquareBracket) {\n return \"[\" + address + \"]\";\n }\n else if (startsWithSquareBracket && endsWithSquareBracket) {\n return address;\n }\n else {\n throw new Error(\"Illegal IPv6 address \" + address);\n }\n}\nfunction formatHost(host) {\n if (!host) {\n throw new Error(\"Illegal host \" + host);\n }\n var isIPv6Address = host.indexOf(':') >= 0;\n return isIPv6Address ? escapeIPv6Address(host) : host;\n}\nfunction formatIPv4Address(address, port) {\n return address + \":\" + port;\n}\nexports.formatIPv4Address = formatIPv4Address;\nfunction formatIPv6Address(address, port) {\n var escapedAddress = escapeIPv6Address(address);\n return escapedAddress + \":\" + port;\n}\nexports.formatIPv6Address = formatIPv6Address;\nfunction defaultPortForScheme(scheme) {\n if (scheme === 'http') {\n return DEFAULT_HTTP_PORT;\n }\n else if (scheme === 'https') {\n return DEFAULT_HTTPS_PORT;\n }\n else {\n return DEFAULT_BOLT_PORT;\n }\n}\nexports.defaultPortForScheme = defaultPortForScheme;\nfunction uriJsParse(value) {\n // JS version of Python partition function\n function partition(s, delimiter) {\n var i = s.indexOf(delimiter);\n if (i >= 0)\n return [s.substring(0, i), s[i], s.substring(i + 1)];\n else\n return [s, '', ''];\n }\n // JS version of Python rpartition function\n function rpartition(s, delimiter) {\n var i = s.lastIndexOf(delimiter);\n if (i >= 0)\n return [s.substring(0, i), s[i], s.substring(i + 1)];\n else\n return ['', '', s];\n }\n function between(s, ldelimiter, rdelimiter) {\n var lpartition = partition(s, ldelimiter);\n var rpartition = partition(lpartition[2], rdelimiter);\n return [rpartition[0], rpartition[2]];\n }\n // Parse an authority string into an object\n // with the following keys:\n // - userInfo (optional, might contain both user name and password)\n // - host\n // - port (optional, included only as a string)\n function parseAuthority(value) {\n var parsed = {}, parts;\n // Parse user info\n parts = rpartition(value, '@');\n if (parts[1] === '@') {\n parsed.userInfo = decodeURIComponent(parts[0]);\n value = parts[2];\n }\n // Parse host and port\n var _a = __read(between(value, \"[\", \"]\"), 2), ipv6Host = _a[0], rest = _a[1];\n if (ipv6Host !== '') {\n parsed.host = ipv6Host;\n parts = partition(rest, ':');\n }\n else {\n parts = partition(value, ':');\n parsed.host = parts[0];\n }\n if (parts[1] === ':') {\n parsed.port = parts[2];\n }\n return parsed;\n }\n var parsed = {}, parts;\n // Parse scheme\n parts = partition(value, ':');\n if (parts[1] === ':') {\n parsed.scheme = decodeURIComponent(parts[0]);\n value = parts[2];\n }\n // Parse fragment\n parts = partition(value, '#');\n if (parts[1] === '#') {\n parsed.fragment = decodeURIComponent(parts[2]);\n value = parts[0];\n }\n // Parse query\n parts = partition(value, '?');\n if (parts[1] === '?') {\n parsed.query = parts[2];\n value = parts[0];\n }\n // Parse authority and path\n if (value.startsWith('//')) {\n parts = partition(value.substr(2), '/');\n parsed = __assign(__assign({}, parsed), parseAuthority(parts[0]));\n parsed.path = parts[1] + parts[2];\n }\n else {\n parsed.path = value;\n }\n return parsed;\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ENCRYPTION_OFF = exports.ENCRYPTION_ON = exports.validateQueryAndParameters = exports.assertValidDate = exports.assertNumberOrInteger = exports.assertNumber = exports.assertString = exports.assertObject = exports.isString = exports.isObject = exports.isEmptyObjectOrNull = void 0;\nvar integer_1 = require(\"../integer\");\nvar json_1 = require(\"../json\");\nvar ENCRYPTION_ON = 'ENCRYPTION_ON';\nexports.ENCRYPTION_ON = ENCRYPTION_ON;\nvar ENCRYPTION_OFF = 'ENCRYPTION_OFF';\nexports.ENCRYPTION_OFF = ENCRYPTION_OFF;\n/**\n * Verifies if the object is null or empty\n * @param obj The subject object\n * @returns {boolean} True if it's empty object or null\n */\nfunction isEmptyObjectOrNull(obj) {\n if (obj === null) {\n return true;\n }\n if (!isObject(obj)) {\n return false;\n }\n for (var prop in obj) {\n if (Object.prototype.hasOwnProperty.bind(obj, prop)) {\n return false;\n }\n }\n return true;\n}\nexports.isEmptyObjectOrNull = isEmptyObjectOrNull;\n/**\n * Verify if it's an object\n * @param obj The subject\n * @returns {boolean} True if it's an object\n */\nfunction isObject(obj) {\n return typeof obj === 'object' && !Array.isArray(obj) && obj !== null;\n}\nexports.isObject = isObject;\n/**\n * Check and normalize given query and parameters.\n * @param {string|{text: string, parameters: Object}} query the query to check.\n * @param {Object} parameters\n * @return {{validatedQuery: string|{text: string, parameters: Object}, params: Object}} the normalized query with parameters.\n * @throws TypeError when either given query or parameters are invalid.\n */\nfunction validateQueryAndParameters(query, parameters, opt) {\n var validatedQuery = '';\n var params = parameters || {};\n var skipAsserts = (opt === null || opt === void 0 ? void 0 : opt.skipAsserts) || false;\n if (typeof query === 'string') {\n validatedQuery = query;\n }\n else if (query instanceof String) {\n validatedQuery = query.toString();\n }\n else if (typeof query === 'object' && query.text) {\n validatedQuery = query.text;\n params = query.parameters || {};\n }\n if (!skipAsserts) {\n assertCypherQuery(validatedQuery);\n assertQueryParameters(params);\n }\n return { validatedQuery: validatedQuery, params: params };\n}\nexports.validateQueryAndParameters = validateQueryAndParameters;\n/**\n * Assert it's a object\n * @param {any} obj The subject\n * @param {string} objName The object name\n * @returns {object} The subject object\n * @throws {TypeError} when the supplied param is not an object\n */\nfunction assertObject(obj, objName) {\n if (!isObject(obj)) {\n throw new TypeError(objName + ' expected to be an object but was: ' + (0, json_1.stringify)(obj));\n }\n return obj;\n}\nexports.assertObject = assertObject;\n/**\n * Assert it's a string\n * @param {any} obj The subject\n * @param {string} objName The object name\n * @returns {string} The subject string\n * @throws {TypeError} when the supplied param is not a string\n */\nfunction assertString(obj, objName) {\n if (!isString(obj)) {\n throw new TypeError(objName + ' expected to be string but was: ' + (0, json_1.stringify)(obj));\n }\n return obj;\n}\nexports.assertString = assertString;\n/**\n * Assert it's a number\n * @param {any} obj The subject\n * @param {string} objName The object name\n * @returns {number} The number\n * @throws {TypeError} when the supplied param is not a number\n */\nfunction assertNumber(obj, objName) {\n if (typeof obj !== 'number') {\n throw new TypeError(objName + ' expected to be a number but was: ' + (0, json_1.stringify)(obj));\n }\n return obj;\n}\nexports.assertNumber = assertNumber;\n/**\n * Assert it's a number or integer\n * @param {any} obj The subject\n * @param {string} objName The object name\n * @returns {number|Integer} The subject object\n * @throws {TypeError} when the supplied param is not a number or integer\n */\nfunction assertNumberOrInteger(obj, objName) {\n if (typeof obj !== 'number' && typeof obj !== 'bigint' && !(0, integer_1.isInt)(obj)) {\n throw new TypeError(objName +\n ' expected to be either a number or an Integer object but was: ' +\n (0, json_1.stringify)(obj));\n }\n return obj;\n}\nexports.assertNumberOrInteger = assertNumberOrInteger;\n/**\n * Assert it's a valid datae\n * @param {any} obj The subject\n * @param {string} objName The object name\n * @returns {Date} The valida date\n * @throws {TypeError} when the supplied param is not a valid date\n */\nfunction assertValidDate(obj, objName) {\n if (Object.prototype.toString.call(obj) !== '[object Date]') {\n throw new TypeError(objName +\n ' expected to be a standard JavaScript Date but was: ' +\n (0, json_1.stringify)(obj));\n }\n if (Number.isNaN(obj.getTime())) {\n throw new TypeError(objName +\n ' expected to be valid JavaScript Date but its time was NaN: ' +\n (0, json_1.stringify)(obj));\n }\n return obj;\n}\nexports.assertValidDate = assertValidDate;\n/**\n * Validates a cypher query string\n * @param {any} obj The query\n * @returns {void}\n * @throws {TypeError} if the query is not valid\n */\nfunction assertCypherQuery(obj) {\n assertString(obj, 'Cypher query');\n if (obj.trim().length === 0) {\n throw new TypeError('Cypher query is expected to be a non-empty string.');\n }\n}\n/**\n * Validates if the query parameters is an object\n * @param {any} obj The parameters\n * @returns {void}\n * @throws {TypeError} if the parameters is not valid\n */\nfunction assertQueryParameters(obj) {\n if (!isObject(obj)) {\n // objects created with `Object.create(null)` do not have a constructor property\n var constructor = obj.constructor ? ' ' + obj.constructor.name : '';\n throw new TypeError(\"Query parameters are expected to either be undefined/null or an object, given:\" + constructor + \" \" + obj);\n }\n}\n/**\n * Verify if the supplied object is a string\n *\n * @param str The string\n * @returns {boolean} True if the supplied object is an string\n */\nfunction isString(str) {\n return Object.prototype.toString.call(str) === '[object String]';\n}\nexports.isString = isString;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.stringify = void 0;\nvar object_util_1 = require(\"./internal/object-util\");\n/**\n * Custom version on JSON.stringify that can handle values that normally don't support serialization, such as BigInt.\n * @private\n * @param val A JavaScript value, usually an object or array, to be converted.\n * @returns A JSON string representing the given value.\n */\nfunction stringify(val) {\n return JSON.stringify(val, function (_, value) {\n if ((0, object_util_1.isBrokenObject)(value)) {\n return {\n __isBrokenObject__: true,\n __reason__: (0, object_util_1.getBrokenObjectReason)(value)\n };\n }\n if (typeof value === 'bigint') {\n return value + \"n\";\n }\n return value;\n });\n}\nexports.stringify = stringify;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar error_1 = require(\"./error\");\nfunction generateFieldLookup(keys) {\n var lookup = {};\n keys.forEach(function (name, idx) {\n lookup[name] = idx;\n });\n return lookup;\n}\n/**\n * Records make up the contents of the {@link Result}, and is how you access\n * the output of a query. A simple query might yield a result stream\n * with a single record, for instance:\n *\n * MATCH (u:User) RETURN u.name, u.age\n *\n * This returns a stream of records with two fields, named `u.name` and `u.age`,\n * each record represents one user found by the query above. You can access\n * the values of each field either by name:\n *\n * record.get(\"u.name\")\n *\n * Or by it's position:\n *\n * record.get(0)\n *\n * @access public\n */\nvar Record = /** @class */ (function () {\n /**\n * Create a new record object.\n * @constructor\n * @protected\n * @param {string[]} keys An array of field keys, in the order the fields appear in the record\n * @param {Array} fields An array of field values\n * @param {Object} fieldLookup An object of fieldName -> value index, used to map\n * field names to values. If this is null, one will be\n * generated.\n */\n function Record(keys, fields, fieldLookup) {\n /**\n * Field keys, in the order the fields appear in the record.\n * @type {string[]}\n */\n this.keys = keys;\n /**\n * Number of fields\n * @type {Number}\n */\n this.length = keys.length;\n this._fields = fields;\n this._fieldLookup = fieldLookup || generateFieldLookup(keys);\n }\n /**\n * Run the given function for each field in this record. The function\n * will get three arguments - the value, the key and this record, in that\n * order.\n *\n * @param {function(value: Object, key: string, record: Record)} visitor the function to apply to each field.\n * @returns {void} Nothing\n */\n Record.prototype.forEach = function (visitor) {\n var e_1, _a;\n try {\n for (var _b = __values(this.entries()), _c = _b.next(); !_c.done; _c = _b.next()) {\n var _d = __read(_c.value, 2), key = _d[0], value = _d[1];\n visitor(value, key, this);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n };\n /**\n * Run the given function for each field in this record. The function\n * will get three arguments - the value, the key and this record, in that\n * order.\n *\n * @param {function(value: Object, key: string, record: Record)} visitor the function to apply on each field\n * and return a value that is saved to the returned Array.\n *\n * @returns {Array}\n */\n Record.prototype.map = function (visitor) {\n var e_2, _a;\n var resultArray = [];\n try {\n for (var _b = __values(this.entries()), _c = _b.next(); !_c.done; _c = _b.next()) {\n var _d = __read(_c.value, 2), key = _d[0], value = _d[1];\n resultArray.push(visitor(value, key, this));\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_2) throw e_2.error; }\n }\n return resultArray;\n };\n /**\n * Iterate over results. Each iteration will yield an array\n * of exactly two items - the key, and the value (in order).\n *\n * @generator\n * @returns {IterableIterator}\n */\n Record.prototype.entries = function () {\n var i;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n i = 0;\n _a.label = 1;\n case 1:\n if (!(i < this.keys.length)) return [3 /*break*/, 4];\n return [4 /*yield*/, [this.keys[i], this._fields[i]]];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3:\n i++;\n return [3 /*break*/, 1];\n case 4: return [2 /*return*/];\n }\n });\n };\n /**\n * Iterate over values.\n *\n * @generator\n * @returns {IterableIterator}\n */\n Record.prototype.values = function () {\n var i;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n i = 0;\n _a.label = 1;\n case 1:\n if (!(i < this.keys.length)) return [3 /*break*/, 4];\n return [4 /*yield*/, this._fields[i]];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3:\n i++;\n return [3 /*break*/, 1];\n case 4: return [2 /*return*/];\n }\n });\n };\n /**\n * Iterate over values. Delegates to {@link Record#values}\n *\n * @generator\n * @returns {IterableIterator}\n */\n Record.prototype[Symbol.iterator] = function () {\n var i;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n i = 0;\n _a.label = 1;\n case 1:\n if (!(i < this.keys.length)) return [3 /*break*/, 4];\n return [4 /*yield*/, this._fields[i]];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3:\n i++;\n return [3 /*break*/, 1];\n case 4: return [2 /*return*/];\n }\n });\n };\n /**\n * Generates an object out of the current Record\n *\n * @returns {Object}\n */\n Record.prototype.toObject = function () {\n var e_3, _a;\n var obj = {};\n try {\n for (var _b = __values(this.entries()), _c = _b.next(); !_c.done; _c = _b.next()) {\n var _d = __read(_c.value, 2), key = _d[0], value = _d[1];\n obj[key] = value;\n }\n }\n catch (e_3_1) { e_3 = { error: e_3_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_3) throw e_3.error; }\n }\n return obj;\n };\n /**\n * Get a value from this record, either by index or by field key.\n *\n * @param {string|Number} key Field key, or the index of the field.\n * @returns {*}\n */\n Record.prototype.get = function (key) {\n var index;\n if (!(typeof key === 'number')) {\n index = this._fieldLookup[key];\n if (index === undefined) {\n throw (0, error_1.newError)(\"This record has no field with key '\" +\n key +\n \"', available key are: [\" +\n this.keys +\n '].');\n }\n }\n else {\n index = key;\n }\n if (index > this._fields.length - 1 || index < 0) {\n throw (0, error_1.newError)(\"This record has no field with index '\" +\n index +\n \"'. Remember that indexes start at `0`, \" +\n 'and make sure your query returns records in the shape you meant it to.');\n }\n return this._fields[index];\n };\n /**\n * Check if a value from this record, either by index or by field key, exists.\n *\n * @param {string|Number} key Field key, or the index of the field.\n * @returns {boolean}\n */\n Record.prototype.has = function (key) {\n // if key is a number, we check if it is in the _fields array\n if (typeof key === 'number') {\n return key >= 0 && key < this._fields.length;\n }\n // if it's not a number, we check _fieldLookup dictionary directly\n return this._fieldLookup[key] !== undefined;\n };\n return Record;\n}());\nexports.default = Record;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Stats = exports.QueryStatistics = exports.ProfiledPlan = exports.Plan = exports.Notification = exports.ServerInfo = exports.queryType = void 0;\nvar integer_1 = __importStar(require(\"./integer\"));\n/**\n * A ResultSummary instance contains structured metadata for a {@link Result}.\n * @access public\n */\nvar ResultSummary = /** @class */ (function () {\n /**\n * @constructor\n * @param {string} query - The query this summary is for\n * @param {Object} parameters - Parameters for the query\n * @param {Object} metadata - Query metadata\n * @param {number|undefined} protocolVersion - Bolt Protocol Version\n */\n function ResultSummary(query, parameters, metadata, protocolVersion) {\n /**\n * The query and parameters this summary is for.\n * @type {{text: string, parameters: Object}}\n * @public\n */\n this.query = { text: query, parameters: parameters };\n /**\n * The type of query executed. Can be \"r\" for read-only query, \"rw\" for read-write query,\n * \"w\" for write-only query and \"s\" for schema-write query.\n * String constants are available in {@link queryType} object.\n * @type {string}\n * @public\n */\n this.queryType = metadata.type;\n /**\n * Counters for operations the query triggered.\n * @type {QueryStatistics}\n * @public\n */\n this.counters = new QueryStatistics(metadata.stats || {});\n // for backwards compatibility, remove in future version\n /**\n * Use {@link ResultSummary.counters} instead.\n * @type {QueryStatistics}\n * @deprecated\n */\n this.updateStatistics = this.counters;\n /**\n * This describes how the database will execute the query.\n * Query plan for the executed query if available, otherwise undefined.\n * Will only be populated for queries that start with \"EXPLAIN\".\n * @type {Plan|false}\n * @public\n */\n this.plan =\n metadata.plan || metadata.profile\n ? new Plan(metadata.plan || metadata.profile)\n : false;\n /**\n * This describes how the database did execute your query. This will contain detailed information about what\n * each step of the plan did. Profiled query plan for the executed query if available, otherwise undefined.\n * Will only be populated for queries that start with \"PROFILE\".\n * @type {ProfiledPlan}\n * @public\n */\n this.profile = metadata.profile ? new ProfiledPlan(metadata.profile) : false;\n /**\n * An array of notifications that might arise when executing the query. Notifications can be warnings about\n * problematic queries or other valuable information that can be presented in a client. Unlike failures\n * or errors, notifications do not affect the execution of a query.\n * @type {Array}\n * @public\n */\n this.notifications = this._buildNotifications(metadata.notifications);\n /**\n * The basic information of the server where the result is obtained from.\n * @type {ServerInfo}\n * @public\n */\n this.server = new ServerInfo(metadata.server, protocolVersion);\n /**\n * The time it took the server to consume the result.\n * @type {number}\n * @public\n */\n this.resultConsumedAfter = metadata.result_consumed_after;\n /**\n * The time it took the server to make the result available for consumption in milliseconds.\n * @type {number}\n * @public\n */\n this.resultAvailableAfter = metadata.result_available_after;\n /**\n * The database name where this summary is obtained from.\n * @type {{name: string}}\n * @public\n */\n this.database = { name: metadata.db || null };\n }\n ResultSummary.prototype._buildNotifications = function (notifications) {\n if (!notifications) {\n return [];\n }\n return notifications.map(function (n) {\n return new Notification(n);\n });\n };\n /**\n * Check if the result summary has a plan\n * @return {boolean}\n */\n ResultSummary.prototype.hasPlan = function () {\n return this.plan instanceof Plan;\n };\n /**\n * Check if the result summary has a profile\n * @return {boolean}\n */\n ResultSummary.prototype.hasProfile = function () {\n return this.profile instanceof ProfiledPlan;\n };\n return ResultSummary;\n}());\n/**\n * Class for execution plan received by prepending Cypher with EXPLAIN.\n * @access public\n */\nvar Plan = /** @class */ (function () {\n /**\n * Create a Plan instance\n * @constructor\n * @param {Object} plan - Object with plan data\n */\n function Plan(plan) {\n this.operatorType = plan.operatorType;\n this.identifiers = plan.identifiers;\n this.arguments = plan.args;\n this.children = plan.children\n ? plan.children.map(function (child) { return new Plan(child); })\n : [];\n }\n return Plan;\n}());\nexports.Plan = Plan;\n/**\n * Class for execution plan received by prepending Cypher with PROFILE.\n * @access public\n */\nvar ProfiledPlan = /** @class */ (function () {\n /**\n * Create a ProfiledPlan instance\n * @constructor\n * @param {Object} profile - Object with profile data\n */\n function ProfiledPlan(profile) {\n this.operatorType = profile.operatorType;\n this.identifiers = profile.identifiers;\n this.arguments = profile.args;\n this.dbHits = valueOrDefault('dbHits', profile);\n this.rows = valueOrDefault('rows', profile);\n this.pageCacheMisses = valueOrDefault('pageCacheMisses', profile);\n this.pageCacheHits = valueOrDefault('pageCacheHits', profile);\n this.pageCacheHitRatio = valueOrDefault('pageCacheHitRatio', profile);\n this.time = valueOrDefault('time', profile);\n this.children = profile.children\n ? profile.children.map(function (child) { return new ProfiledPlan(child); })\n : [];\n }\n ProfiledPlan.prototype.hasPageCacheStats = function () {\n return (this.pageCacheMisses > 0 ||\n this.pageCacheHits > 0 ||\n this.pageCacheHitRatio > 0);\n };\n return ProfiledPlan;\n}());\nexports.ProfiledPlan = ProfiledPlan;\n/**\n * Stats Query statistics dictionary for a {@link QueryStatistics}\n * @public\n */\nvar Stats = /** @class */ (function () {\n /**\n * @constructor\n * @private\n */\n function Stats() {\n /**\n * nodes created\n * @type {number}\n * @public\n */\n this.nodesCreated = 0;\n /**\n * nodes deleted\n * @type {number}\n * @public\n */\n this.nodesDeleted = 0;\n /**\n * relationships created\n * @type {number}\n * @public\n */\n this.relationshipsCreated = 0;\n /**\n * relationships deleted\n * @type {number}\n * @public\n */\n this.relationshipsDeleted = 0;\n /**\n * properties set\n * @type {number}\n * @public\n */\n this.propertiesSet = 0;\n /**\n * labels added\n * @type {number}\n * @public\n */\n this.labelsAdded = 0;\n /**\n * labels removed\n * @type {number}\n * @public\n */\n this.labelsRemoved = 0;\n /**\n * indexes added\n * @type {number}\n * @public\n */\n this.indexesAdded = 0;\n /**\n * indexes removed\n * @type {number}\n * @public\n */\n this.indexesRemoved = 0;\n /**\n * constraints added\n * @type {number}\n * @public\n */\n this.constraintsAdded = 0;\n /**\n * constraints removed\n * @type {number}\n * @public\n */\n this.constraintsRemoved = 0;\n }\n return Stats;\n}());\nexports.Stats = Stats;\n/**\n * Get statistical information for a {@link Result}.\n * @access public\n */\nvar QueryStatistics = /** @class */ (function () {\n /**\n * Structurize the statistics\n * @constructor\n * @param {Object} statistics - Result statistics\n */\n function QueryStatistics(statistics) {\n var _this = this;\n this._stats = {\n nodesCreated: 0,\n nodesDeleted: 0,\n relationshipsCreated: 0,\n relationshipsDeleted: 0,\n propertiesSet: 0,\n labelsAdded: 0,\n labelsRemoved: 0,\n indexesAdded: 0,\n indexesRemoved: 0,\n constraintsAdded: 0,\n constraintsRemoved: 0,\n };\n this._systemUpdates = 0;\n Object.keys(statistics).forEach(function (index) {\n // To camelCase\n var camelCaseIndex = index.replace(/(-\\w)/g, function (m) { return m[1].toUpperCase(); });\n if (camelCaseIndex in _this._stats) {\n _this._stats[camelCaseIndex] = intValue(statistics[index]);\n }\n else if (camelCaseIndex === 'systemUpdates') {\n _this._systemUpdates = intValue(statistics[index]);\n }\n else if (camelCaseIndex === 'containsSystemUpdates') {\n _this._containsSystemUpdates = statistics[index];\n }\n else if (camelCaseIndex === 'containsUpdates') {\n _this._containsUpdates = statistics[index];\n }\n });\n this._stats = Object.freeze(this._stats);\n }\n /**\n * Did the database get updated?\n * @return {boolean}\n */\n QueryStatistics.prototype.containsUpdates = function () {\n var _this = this;\n return this._containsUpdates !== undefined ?\n this._containsUpdates : (Object.keys(this._stats).reduce(function (last, current) {\n return last + _this._stats[current];\n }, 0) > 0);\n };\n /**\n * Returns the query statistics updates in a dictionary.\n * @returns {Stats}\n */\n QueryStatistics.prototype.updates = function () {\n return this._stats;\n };\n /**\n * Return true if the system database get updated, otherwise false\n * @returns {boolean} - If the system database get updated or not.\n */\n QueryStatistics.prototype.containsSystemUpdates = function () {\n return this._containsSystemUpdates !== undefined ?\n this._containsSystemUpdates : this._systemUpdates > 0;\n };\n /**\n * @returns {number} - Number of system updates\n */\n QueryStatistics.prototype.systemUpdates = function () {\n return this._systemUpdates;\n };\n return QueryStatistics;\n}());\nexports.QueryStatistics = QueryStatistics;\n/**\n * Class for Cypher notifications\n * @access public\n */\nvar Notification = /** @class */ (function () {\n /**\n * Create a Notification instance\n * @constructor\n * @param {Object} notification - Object with notification data\n */\n function Notification(notification) {\n this.code = notification.code;\n this.title = notification.title;\n this.description = notification.description;\n this.severity = notification.severity;\n this.position = Notification._constructPosition(notification.position);\n }\n Notification._constructPosition = function (pos) {\n if (!pos) {\n return {};\n }\n return {\n offset: intValue(pos.offset),\n line: intValue(pos.line),\n column: intValue(pos.column)\n };\n };\n return Notification;\n}());\nexports.Notification = Notification;\n/**\n * Class for exposing server info from a result.\n * @access public\n */\nvar ServerInfo = /** @class */ (function () {\n /**\n * Create a ServerInfo instance\n * @constructor\n * @param {Object} serverMeta - Object with serverMeta data\n * @param {Object} connectionInfo - Bolt connection info\n * @param {number} protocolVersion - Bolt Protocol Version\n */\n function ServerInfo(serverMeta, protocolVersion) {\n if (serverMeta) {\n /**\n * The server adress\n * @type {string}\n * @public\n */\n this.address = serverMeta.address;\n /**\n * The server version string.\n *\n * See {@link ServerInfo#protocolVersion} and {@link ServerInfo#agent}\n * @type {string}\n * @deprecated in 4.3, please use ServerInfo#agent, ServerInfo#protocolVersion, or call the dbms.components procedure instead.\n * Method might be removed in the next major release.\n \n * @public\n */\n this.version = serverMeta.version;\n /**\n * The server user agent string\n * @type {string}\n * @public\n */\n this.agent = serverMeta.version;\n }\n /**\n * The protocol version used by the connection\n * @type {number}\n * @public\n */\n this.protocolVersion = protocolVersion;\n }\n return ServerInfo;\n}());\nexports.ServerInfo = ServerInfo;\nfunction intValue(value) {\n if (value instanceof integer_1.default) {\n return value.toInt();\n }\n else if (typeof value == 'bigint') {\n return (0, integer_1.int)(value).toInt();\n }\n else {\n return value;\n }\n}\nfunction valueOrDefault(key, values, defaultValue) {\n if (defaultValue === void 0) { defaultValue = 0; }\n if (key in values) {\n var value = values[key];\n return intValue(value);\n }\n else {\n return defaultValue;\n }\n}\n/**\n * The constants for query types\n * @type {{SCHEMA_WRITE: string, WRITE_ONLY: string, READ_ONLY: string, READ_WRITE: string}}\n */\nvar queryType = {\n READ_ONLY: 'r',\n READ_WRITE: 'rw',\n WRITE_ONLY: 'w',\n SCHEMA_WRITE: 's'\n};\nexports.queryType = queryType;\nexports.default = ResultSummary;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar result_summary_1 = __importDefault(require(\"./result-summary\"));\nvar internal_1 = require(\"./internal\");\nvar EMPTY_CONNECTION_HOLDER = internal_1.connectionHolder.EMPTY_CONNECTION_HOLDER;\n/**\n * @private\n * @param {Error} error The error\n * @returns {void}\n */\nvar DEFAULT_ON_ERROR = function (error) {\n console.log('Uncaught error when processing result: ' + error);\n};\n/**\n * @private\n * @param {ResultSummary} summary\n * @returns {void}\n */\nvar DEFAULT_ON_COMPLETED = function (summary) { };\n/**\n * A stream of {@link Record} representing the result of a query.\n * Can be consumed eagerly as {@link Promise} resolved with array of records and {@link ResultSummary}\n * summary, or rejected with error that contains {@link string} code and {@link string} message.\n * Alternatively can be consumed lazily using {@link Result#subscribe} function.\n * @access public\n */\nvar Result = /** @class */ (function () {\n /**\n * Inject the observer to be used.\n * @constructor\n * @access private\n * @param {Promise} streamObserverPromise\n * @param {mixed} query - Cypher query to execute\n * @param {Object} parameters - Map with parameters to use in query\n * @param {ConnectionHolder} connectionHolder - to be notified when result is either fully consumed or error happened.\n */\n function Result(streamObserverPromise, query, parameters, connectionHolder) {\n this._stack = captureStacktrace();\n this._streamObserverPromise = streamObserverPromise;\n this._p = null;\n this._query = query;\n this._parameters = parameters || {};\n this._connectionHolder = connectionHolder || EMPTY_CONNECTION_HOLDER;\n }\n /**\n * Returns a promise for the field keys.\n *\n * *Should not be combined with {@link Result#subscribe} function.*\n *\n * @public\n * @returns {Promise} - Field keys, in the order they will appear in records.\n }\n */\n Result.prototype.keys = function () {\n var _this = this;\n return new Promise(function (resolve, reject) {\n _this._streamObserverPromise\n .then(function (observer) {\n return observer.subscribe({\n onKeys: function (keys) { return resolve(keys); },\n onError: function (err) { return reject(err); }\n });\n })\n .catch(reject);\n });\n };\n /**\n * Returns a promise for the result summary.\n *\n * *Should not be combined with {@link Result#subscribe} function.*\n *\n * @public\n * @returns {Promise} - Result summary.\n *\n */\n Result.prototype.summary = function () {\n var _this = this;\n return new Promise(function (resolve, reject) {\n _this._streamObserverPromise\n .then(function (o) {\n o.cancel();\n o.subscribe({\n onCompleted: function (metadata) {\n return _this._createSummary(metadata).then(resolve, reject);\n },\n onError: function (err) { return reject(err); }\n });\n })\n .catch(reject);\n });\n };\n /**\n * Create and return new Promise\n *\n * @private\n * @return {Promise} new Promise.\n */\n Result.prototype._getOrCreatePromise = function () {\n var _this = this;\n if (!this._p) {\n this._p = new Promise(function (resolve, reject) {\n var records = [];\n var observer = {\n onNext: function (record) {\n records.push(record);\n },\n onCompleted: function (summary) {\n resolve({ records: records, summary: summary });\n },\n onError: function (error) {\n reject(error);\n }\n };\n _this.subscribe(observer);\n });\n }\n return this._p;\n };\n /**\n * Waits for all results and calls the passed in function with the results.\n *\n * *Should not be combined with {@link Result#subscribe} function.*\n *\n * @param {function(result: {records:Array, summary: ResultSummary})} onFulfilled - function to be called\n * when finished.\n * @param {function(error: {message:string, code:string})} onRejected - function to be called upon errors.\n * @return {Promise} promise.\n */\n Result.prototype.then = function (onFulfilled, onRejected) {\n return this._getOrCreatePromise().then(onFulfilled, onRejected);\n };\n /**\n * Catch errors when using promises.\n *\n * *Should not be combined with {@link Result#subscribe} function.*\n *\n * @param {function(error: Neo4jError)} onRejected - Function to be called upon errors.\n * @return {Promise} promise.\n */\n Result.prototype.catch = function (onRejected) {\n return this._getOrCreatePromise().catch(onRejected);\n };\n Result.prototype.finally = function (onfinally) {\n return this._getOrCreatePromise().finally(onfinally);\n };\n /**\n * Stream records to observer as they come in, this is a more efficient method\n * of handling the results, and allows you to handle arbitrarily large results.\n *\n * @param {Object} observer - Observer object\n * @param {function(keys: string[])} observer.onKeys - handle stream head, the field keys.\n * @param {function(record: Record)} observer.onNext - handle records, one by one.\n * @param {function(summary: ResultSummary)} observer.onCompleted - handle stream tail, the result summary.\n * @param {function(error: {message:string, code:string})} observer.onError - handle errors.\n * @return {void}\n */\n Result.prototype.subscribe = function (observer) {\n var _this = this;\n var onCompletedOriginal = observer.onCompleted || DEFAULT_ON_COMPLETED;\n var onCompletedWrapper = function (metadata) {\n _this._createSummary(metadata).then(function (summary) {\n return onCompletedOriginal.call(observer, summary);\n });\n };\n observer.onCompleted = onCompletedWrapper;\n var onErrorOriginal = observer.onError || DEFAULT_ON_ERROR;\n var onErrorWrapper = function (error) {\n // notify connection holder that the used connection is not needed any more because error happened\n // and result can't bee consumed any further; call the original onError callback after that\n _this._connectionHolder.releaseConnection().then(function () {\n replaceStacktrace(error, _this._stack);\n onErrorOriginal.call(observer, error);\n });\n };\n observer.onError = onErrorWrapper;\n this._streamObserverPromise\n .then(function (o) {\n return o.subscribe(observer);\n })\n .catch(function (error) { return observer.onError(error); });\n };\n /**\n * Signals the stream observer that the future records should be discarded on the server.\n *\n * @protected\n * @since 4.0.0\n * @returns {void}\n */\n Result.prototype._cancel = function () {\n this._streamObserverPromise.then(function (o) { return o.cancel(); });\n };\n Result.prototype._createSummary = function (metadata) {\n var _a = internal_1.util.validateQueryAndParameters(this._query, this._parameters, {\n skipAsserts: true\n }), query = _a.validatedQuery, parameters = _a.params;\n var connectionHolder = this._connectionHolder;\n return connectionHolder\n .getConnection()\n .then(\n // onFulfilled:\n function (connection) {\n return connectionHolder\n .releaseConnection()\n .then(function () {\n return connection ? connection.protocol().version : undefined;\n });\n }, \n // onRejected:\n function (_) { return undefined; })\n .then(function (protocolVersion) {\n return new result_summary_1.default(query, parameters, metadata, protocolVersion);\n });\n };\n return Result;\n}());\nSymbol.toStringTag;\nfunction captureStacktrace() {\n var error = new Error('');\n if (error.stack) {\n return error.stack.replace(/^Error(\\n\\r)*/, ''); // we don't need the 'Error\\n' part, if only it exists\n }\n return null;\n}\n/**\n * @private\n * @param {Error} error The error\n * @param {string| null} newStack The newStack\n * @returns {void}\n */\nfunction replaceStacktrace(error, newStack) {\n if (newStack) {\n // Error.prototype.toString() concatenates error.name and error.message nicely\n // then we add the rest of the stack trace\n error.stack = error.toString() + '\\n' + newStack;\n }\n}\nexports.default = Result;\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar observers_1 = require(\"./internal/observers\");\nvar util_1 = require(\"./internal/util\");\nvar error_1 = require(\"./error\");\nvar result_1 = __importDefault(require(\"./result\"));\nvar transaction_1 = __importDefault(require(\"./transaction\"));\nvar connection_holder_1 = require(\"./internal/connection-holder\");\nvar constants_1 = require(\"./internal/constants\");\nvar transaction_executor_1 = require(\"./internal/transaction-executor\");\nvar bookmark_1 = require(\"./internal/bookmark\");\nvar tx_config_1 = require(\"./internal/tx-config\");\n/**\n * A Session instance is used for handling the connection and\n * sending queries through the connection.\n * In a single session, multiple queries will be executed serially.\n * In order to execute parallel queries, multiple sessions are required.\n * @access public\n */\nvar Session = /** @class */ (function () {\n /**\n * @constructor\n * @protected\n * @param {Object} args\n * @param {string} args.mode the default access mode for this session.\n * @param {ConnectionProvider} args.connectionProvider - The connection provider to acquire connections from.\n * @param {Bookmark} args.bookmark - The initial bookmark for this session.\n * @param {string} args.database the database name\n * @param {Object} args.config={} - This driver configuration.\n * @param {boolean} args.reactive - Whether this session should create reactive streams\n * @param {number} args.fetchSize - Defines how many records is pulled in each pulling batch\n * @param {string} args.impersonatedUser - The username which the user wants to impersonate for the duration of the session.\n */\n function Session(_a) {\n var mode = _a.mode, connectionProvider = _a.connectionProvider, bookmark = _a.bookmark, database = _a.database, config = _a.config, reactive = _a.reactive, fetchSize = _a.fetchSize, impersonatedUser = _a.impersonatedUser;\n this._mode = mode;\n this._database = database;\n this._reactive = reactive;\n this._fetchSize = fetchSize;\n this._onDatabaseNameResolved = this._onDatabaseNameResolved.bind(this);\n this._readConnectionHolder = new connection_holder_1.ConnectionHolder({\n mode: constants_1.ACCESS_MODE_READ,\n database: database,\n bookmark: bookmark,\n connectionProvider: connectionProvider,\n impersonatedUser: impersonatedUser,\n onDatabaseNameResolved: this._onDatabaseNameResolved\n });\n this._writeConnectionHolder = new connection_holder_1.ConnectionHolder({\n mode: constants_1.ACCESS_MODE_WRITE,\n database: database,\n bookmark: bookmark,\n connectionProvider: connectionProvider,\n impersonatedUser: impersonatedUser,\n onDatabaseNameResolved: this._onDatabaseNameResolved\n });\n this._open = true;\n this._hasTx = false;\n this._impersonatedUser = impersonatedUser;\n this._lastBookmark = bookmark || bookmark_1.Bookmark.empty();\n this._transactionExecutor = _createTransactionExecutor(config);\n this._onComplete = this._onCompleteCallback.bind(this);\n this._databaseNameResolved = this._database !== '';\n }\n /**\n * Run Cypher query\n * Could be called with a query object i.e.: `{text: \"MATCH ...\", parameters: {param: 1}}`\n * or with the query and parameters as separate arguments.\n *\n * @public\n * @param {mixed} query - Cypher query to execute\n * @param {Object} parameters - Map with parameters to use in query\n * @param {TransactionConfig} [transactionConfig] - Configuration for the new auto-commit transaction.\n * @return {Result} New Result.\n */\n Session.prototype.run = function (query, parameters, transactionConfig) {\n var _this = this;\n var _a = (0, util_1.validateQueryAndParameters)(query, parameters), validatedQuery = _a.validatedQuery, params = _a.params;\n var autoCommitTxConfig = transactionConfig\n ? new tx_config_1.TxConfig(transactionConfig)\n : tx_config_1.TxConfig.empty();\n return this._run(validatedQuery, params, function (connection) {\n _this._assertSessionIsOpen();\n return connection.protocol().run(validatedQuery, params, {\n bookmark: _this._lastBookmark,\n txConfig: autoCommitTxConfig,\n mode: _this._mode,\n database: _this._database,\n impersonatedUser: _this._impersonatedUser,\n afterComplete: _this._onComplete,\n reactive: _this._reactive,\n fetchSize: _this._fetchSize\n });\n });\n };\n Session.prototype._run = function (query, parameters, customRunner) {\n var connectionHolder = this._connectionHolderWithMode(this._mode);\n var observerPromise;\n if (!this._open) {\n observerPromise = Promise.resolve(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Cannot run query in a closed session.')\n }));\n }\n else if (!this._hasTx && connectionHolder.initializeConnection()) {\n observerPromise = connectionHolder\n .getConnection()\n .then(function (connection) { return customRunner(connection); })\n .catch(function (error) { return Promise.resolve(new observers_1.FailedObserver({ error: error })); });\n }\n else {\n observerPromise = Promise.resolve(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Queries cannot be run directly on a ' +\n 'session with an open transaction; either run from within the ' +\n 'transaction or use a different session.')\n }));\n }\n return new result_1.default(observerPromise, query, parameters, connectionHolder);\n };\n Session.prototype._acquireConnection = function (connectionConsumer) {\n return __awaiter(this, void 0, void 0, function () {\n var promise, connectionHolder;\n var _this = this;\n return __generator(this, function (_a) {\n connectionHolder = this._connectionHolderWithMode(this._mode);\n if (!this._open) {\n promise = Promise.reject((0, error_1.newError)('Cannot run query in a closed session.'));\n }\n else if (!this._hasTx && connectionHolder.initializeConnection()) {\n promise = connectionHolder\n .getConnection()\n .then(function (connection) { return connectionConsumer(connection); })\n .then(function (result) { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, connectionHolder.releaseConnection()];\n case 1:\n _a.sent();\n return [2 /*return*/, result];\n }\n });\n }); });\n }\n else {\n promise = Promise.reject((0, error_1.newError)('Queries cannot be run directly on a ' +\n 'session with an open transaction; either run from within the ' +\n 'transaction or use a different session.'));\n }\n return [2 /*return*/, promise];\n });\n });\n };\n /**\n * Begin a new transaction in this session. A session can have at most one transaction running at a time, if you\n * want to run multiple concurrent transactions, you should use multiple concurrent sessions.\n *\n * While a transaction is open the session cannot be used to run queries outside the transaction.\n *\n * @param {TransactionConfig} [transactionConfig] - Configuration for the new auto-commit transaction.\n * @returns {Transaction} New Transaction.\n */\n Session.prototype.beginTransaction = function (transactionConfig) {\n // this function needs to support bookmarks parameter for backwards compatibility\n // parameter was of type {string|string[]} and represented either a single or multiple bookmarks\n // that's why we need to check parameter type and decide how to interpret the value\n var arg = transactionConfig;\n var txConfig = tx_config_1.TxConfig.empty();\n if (arg) {\n txConfig = new tx_config_1.TxConfig(arg);\n }\n return this._beginTransaction(this._mode, txConfig);\n };\n Session.prototype._beginTransaction = function (accessMode, txConfig) {\n if (!this._open) {\n throw (0, error_1.newError)('Cannot begin a transaction on a closed session.');\n }\n if (this._hasTx) {\n throw (0, error_1.newError)('You cannot begin a transaction on a session with an open transaction; ' +\n 'either run from within the transaction or use a different session.');\n }\n var mode = Session._validateSessionMode(accessMode);\n var connectionHolder = this._connectionHolderWithMode(mode);\n connectionHolder.initializeConnection();\n this._hasTx = true;\n var tx = new transaction_1.default({\n connectionHolder: connectionHolder,\n impersonatedUser: this._impersonatedUser,\n onClose: this._transactionClosed.bind(this),\n onBookmark: this._updateBookmark.bind(this),\n onConnection: this._assertSessionIsOpen.bind(this),\n reactive: this._reactive,\n fetchSize: this._fetchSize\n });\n tx._begin(this._lastBookmark, txConfig);\n return tx;\n };\n /**\n * @private\n * @returns {void}\n */\n Session.prototype._assertSessionIsOpen = function () {\n if (!this._open) {\n throw (0, error_1.newError)('You cannot run more transactions on a closed session.');\n }\n };\n /**\n * @private\n * @returns {void}\n */\n Session.prototype._transactionClosed = function () {\n this._hasTx = false;\n };\n /**\n * Return the bookmark received following the last completed {@link Transaction}.\n *\n * @return {string[]} A reference to a previous transaction.\n */\n Session.prototype.lastBookmark = function () {\n return this._lastBookmark.values();\n };\n /**\n * Execute given unit of work in a {@link READ} transaction.\n *\n * Transaction will automatically be committed unless the given function throws or returns a rejected promise.\n * Some failures of the given function or the commit itself will be retried with exponential backoff with initial\n * delay of 1 second and maximum retry time of 30 seconds. Maximum retry time is configurable via driver config's\n * `maxTransactionRetryTime` property in milliseconds.\n *\n * @param {function(tx: Transaction): Promise} transactionWork - Callback that executes operations against\n * a given {@link Transaction}.\n * @param {TransactionConfig} [transactionConfig] - Configuration for all transactions started to execute the unit of work.\n * @return {Promise} Resolved promise as returned by the given function or rejected promise when given\n * function or commit fails.\n */\n Session.prototype.readTransaction = function (transactionWork, transactionConfig) {\n var config = new tx_config_1.TxConfig(transactionConfig);\n return this._runTransaction(constants_1.ACCESS_MODE_READ, config, transactionWork);\n };\n /**\n * Execute given unit of work in a {@link WRITE} transaction.\n *\n * Transaction will automatically be committed unless the given function throws or returns a rejected promise.\n * Some failures of the given function or the commit itself will be retried with exponential backoff with initial\n * delay of 1 second and maximum retry time of 30 seconds. Maximum retry time is configurable via driver config's\n * `maxTransactionRetryTime` property in milliseconds.\n *\n * @param {function(tx: Transaction): Promise} transactionWork - Callback that executes operations against\n * a given {@link Transaction}.\n * @param {TransactionConfig} [transactionConfig] - Configuration for all transactions started to execute the unit of work.\n * @return {Promise} Resolved promise as returned by the given function or rejected promise when given\n * function or commit fails.\n */\n Session.prototype.writeTransaction = function (transactionWork, transactionConfig) {\n var config = new tx_config_1.TxConfig(transactionConfig);\n return this._runTransaction(constants_1.ACCESS_MODE_WRITE, config, transactionWork);\n };\n Session.prototype._runTransaction = function (accessMode, transactionConfig, transactionWork) {\n var _this = this;\n return this._transactionExecutor.execute(function () { return _this._beginTransaction(accessMode, transactionConfig); }, transactionWork);\n };\n /**\n * Sets the resolved database name in the session context.\n * @private\n * @param {string|undefined} database The resolved database name\n * @returns {void}\n */\n Session.prototype._onDatabaseNameResolved = function (database) {\n if (!this._databaseNameResolved) {\n var normalizedDatabase = database || '';\n this._database = normalizedDatabase;\n this._readConnectionHolder.setDatabase(normalizedDatabase);\n this._writeConnectionHolder.setDatabase(normalizedDatabase);\n this._databaseNameResolved = true;\n }\n };\n /**\n * Update value of the last bookmark.\n * @private\n * @param {Bookmark} newBookmark - The new bookmark.\n * @returns {void}\n */\n Session.prototype._updateBookmark = function (newBookmark) {\n if (newBookmark && !newBookmark.isEmpty()) {\n this._lastBookmark = newBookmark;\n }\n };\n /**\n * Close this session.\n * @return {Promise}\n */\n Session.prototype.close = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!this._open) return [3 /*break*/, 3];\n this._open = false;\n this._transactionExecutor.close();\n return [4 /*yield*/, this._readConnectionHolder.close()];\n case 1:\n _a.sent();\n return [4 /*yield*/, this._writeConnectionHolder.close()];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3: return [2 /*return*/];\n }\n });\n });\n };\n Session.prototype._connectionHolderWithMode = function (mode) {\n if (mode === constants_1.ACCESS_MODE_READ) {\n return this._readConnectionHolder;\n }\n else if (mode === constants_1.ACCESS_MODE_WRITE) {\n return this._writeConnectionHolder;\n }\n else {\n throw (0, error_1.newError)('Unknown access mode: ' + mode);\n }\n };\n /**\n * @private\n * @param {Object} meta Connection metadatada\n * @returns {void}\n */\n Session.prototype._onCompleteCallback = function (meta) {\n this._updateBookmark(new bookmark_1.Bookmark(meta.bookmark));\n };\n /**\n * @protected\n */\n Session._validateSessionMode = function (rawMode) {\n var mode = rawMode || constants_1.ACCESS_MODE_WRITE;\n if (mode !== constants_1.ACCESS_MODE_READ && mode !== constants_1.ACCESS_MODE_WRITE) {\n throw (0, error_1.newError)('Illegal session mode ' + mode);\n }\n return mode;\n };\n return Session;\n}());\n/**\n * @private\n * @param {object} config\n * @returns {TransactionExecutor} The transaction executor\n */\nfunction _createTransactionExecutor(config) {\n var maxRetryTimeMs = config && config.maxTransactionRetryTime\n ? config.maxTransactionRetryTime\n : null;\n return new transaction_executor_1.TransactionExecutor(maxRetryTimeMs);\n}\nexports.default = Session;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isPoint = exports.Point = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar util_1 = require(\"./internal/util\");\nvar POINT_IDENTIFIER_PROPERTY = '__isPoint__';\n/**\n * Represents a single two or three-dimensional point in a particular coordinate reference system.\n * Created `Point` objects are frozen with `Object.freeze()` in constructor and thus immutable.\n */\nvar Point = /** @class */ (function () {\n /**\n * @constructor\n * @param {T} srid - The coordinate reference system identifier.\n * @param {number} x - The `x` coordinate of the point.\n * @param {number} y - The `y` coordinate of the point.\n * @param {number} [z=undefined] - The `z` coordinate of the point or `undefined` if point has 2 dimensions.\n */\n function Point(srid, x, y, z) {\n /**\n * The coordinate reference system identifier.\n * @type {T}\n */\n this.srid = (0, util_1.assertNumberOrInteger)(srid, 'SRID');\n /**\n * The `x` coordinate of the point.\n * @type {number}\n */\n this.x = (0, util_1.assertNumber)(x, 'X coordinate');\n /**\n * The `y` coordinate of the point.\n * @type {number}\n */\n this.y = (0, util_1.assertNumber)(y, 'Y coordinate');\n /**\n * The `z` coordinate of the point or `undefined` if point is 2-dimensional.\n * @type {number}\n */\n this.z = z === null || z === undefined ? z : (0, util_1.assertNumber)(z, 'Z coordinate');\n Object.freeze(this);\n }\n /**\n * @ignore\n */\n Point.prototype.toString = function () {\n return this.z || this.z === 0\n ? \"Point{srid=\" + formatAsFloat(this.srid) + \", x=\" + formatAsFloat(this.x) + \", y=\" + formatAsFloat(this.y) + \", z=\" + formatAsFloat(this.z) + \"}\"\n : \"Point{srid=\" + formatAsFloat(this.srid) + \", x=\" + formatAsFloat(this.x) + \", y=\" + formatAsFloat(this.y) + \"}\";\n };\n return Point;\n}());\nexports.Point = Point;\nfunction formatAsFloat(number) {\n return Number.isInteger(number) ? number + '.0' : number.toString();\n}\nObject.defineProperty(Point.prototype, POINT_IDENTIFIER_PROPERTY, {\n value: true,\n enumerable: false,\n configurable: false,\n writable: false\n});\n/**\n * Test if given object is an instance of {@link Point} class.\n * @param {Object} obj the object to test.\n * @return {boolean} `true` if given object is a {@link Point}, `false` otherwise.\n */\nfunction isPoint(obj) {\n return (obj && obj[POINT_IDENTIFIER_PROPERTY]) === true;\n}\nexports.isPoint = isPoint;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isDateTime = exports.DateTime = exports.isLocalDateTime = exports.LocalDateTime = exports.isDate = exports.Date = exports.isTime = exports.Time = exports.isLocalTime = exports.LocalTime = exports.isDuration = exports.Duration = void 0;\nvar util = __importStar(require(\"./internal/temporal-util\"));\nvar util_1 = require(\"./internal/util\");\nvar error_1 = require(\"./error\");\nvar integer_1 = __importStar(require(\"./integer\"));\nvar IDENTIFIER_PROPERTY_ATTRIBUTES = {\n value: true,\n enumerable: false,\n configurable: false,\n writable: false\n};\nvar DURATION_IDENTIFIER_PROPERTY = '__isDuration__';\nvar LOCAL_TIME_IDENTIFIER_PROPERTY = '__isLocalTime__';\nvar TIME_IDENTIFIER_PROPERTY = '__isTime__';\nvar DATE_IDENTIFIER_PROPERTY = '__isDate__';\nvar LOCAL_DATE_TIME_IDENTIFIER_PROPERTY = '__isLocalDateTime__';\nvar DATE_TIME_IDENTIFIER_PROPERTY = '__isDateTime__';\n/**\n * Represents an ISO 8601 duration. Contains both date-based values (years, months, days) and time-based values (seconds, nanoseconds).\n * Created `Duration` objects are frozen with `Object.freeze()` in constructor and thus immutable.\n */\nvar Duration = /** @class */ (function () {\n /**\n * @constructor\n * @param {NumberOrInteger} months - The number of months for the new duration.\n * @param {NumberOrInteger} days - The number of days for the new duration.\n * @param {NumberOrInteger} seconds - The number of seconds for the new duration.\n * @param {NumberOrInteger} nanoseconds - The number of nanoseconds for the new duration.\n */\n function Duration(months, days, seconds, nanoseconds) {\n /**\n * The number of months.\n * @type {NumberOrInteger}\n */\n this.months = (0, util_1.assertNumberOrInteger)(months, 'Months');\n /**\n * The number of days.\n * @type {NumberOrInteger}\n */\n this.days = (0, util_1.assertNumberOrInteger)(days, 'Days');\n (0, util_1.assertNumberOrInteger)(seconds, 'Seconds');\n (0, util_1.assertNumberOrInteger)(nanoseconds, 'Nanoseconds');\n /**\n * The number of seconds.\n * @type {NumberOrInteger}\n */\n this.seconds = util.normalizeSecondsForDuration(seconds, nanoseconds);\n /**\n * The number of nanoseconds.\n * @type {NumberOrInteger}\n */\n this.nanoseconds = util.normalizeNanosecondsForDuration(nanoseconds);\n Object.freeze(this);\n }\n /**\n * @ignore\n */\n Duration.prototype.toString = function () {\n return util.durationToIsoString(this.months, this.days, this.seconds, this.nanoseconds);\n };\n return Duration;\n}());\nexports.Duration = Duration;\nObject.defineProperty(Duration.prototype, DURATION_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link Duration} class.\n * @param {Object} obj the object to test.\n * @return {boolean} `true` if given object is a {@link Duration}, `false` otherwise.\n */\nfunction isDuration(obj) {\n return hasIdentifierProperty(obj, DURATION_IDENTIFIER_PROPERTY);\n}\nexports.isDuration = isDuration;\n/**\n * Represents an instant capturing the time of day, but not the date, nor the timezone.\n * Created {@link LocalTime} objects are frozen with `Object.freeze()` in constructor and thus immutable.\n */\nvar LocalTime = /** @class */ (function () {\n /**\n * @constructor\n * @param {NumberOrInteger} hour - The hour for the new local time.\n * @param {NumberOrInteger} minute - The minute for the new local time.\n * @param {NumberOrInteger} second - The second for the new local time.\n * @param {NumberOrInteger} nanosecond - The nanosecond for the new local time.\n */\n function LocalTime(hour, minute, second, nanosecond) {\n /**\n * The hour.\n * @type {NumberOrInteger}\n */\n this.hour = util.assertValidHour(hour);\n /**\n * The minute.\n * @type {NumberOrInteger}\n */\n this.minute = util.assertValidMinute(minute);\n /**\n * The second.\n * @type {NumberOrInteger}\n */\n this.second = util.assertValidSecond(second);\n /**\n * The nanosecond.\n * @type {NumberOrInteger}\n */\n this.nanosecond = util.assertValidNanosecond(nanosecond);\n Object.freeze(this);\n }\n /**\n * Create a {@link LocalTime} object from the given standard JavaScript `Date` and optional nanoseconds.\n * Year, month, day and time zone offset components of the given date are ignored.\n * @param {global.Date} standardDate - The standard JavaScript date to convert.\n * @param {NumberOrInteger|undefined} nanosecond - The optional amount of nanoseconds.\n * @return {LocalTime} New LocalTime.\n */\n LocalTime.fromStandardDate = function (standardDate, nanosecond) {\n verifyStandardDateAndNanos(standardDate, nanosecond);\n var totalNanoseconds = util.totalNanoseconds(standardDate, nanosecond);\n return new LocalTime(standardDate.getHours(), standardDate.getMinutes(), standardDate.getSeconds(), totalNanoseconds instanceof integer_1.default\n ? totalNanoseconds.toInt()\n : typeof totalNanoseconds === 'bigint'\n ? (0, integer_1.int)(totalNanoseconds).toInt()\n : totalNanoseconds);\n };\n /**\n * @ignore\n */\n LocalTime.prototype.toString = function () {\n return util.timeToIsoString(this.hour, this.minute, this.second, this.nanosecond);\n };\n return LocalTime;\n}());\nexports.LocalTime = LocalTime;\nObject.defineProperty(LocalTime.prototype, LOCAL_TIME_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link LocalTime} class.\n * @param {Object} obj the object to test.\n * @return {boolean} `true` if given object is a {@link LocalTime}, `false` otherwise.\n */\nfunction isLocalTime(obj) {\n return hasIdentifierProperty(obj, LOCAL_TIME_IDENTIFIER_PROPERTY);\n}\nexports.isLocalTime = isLocalTime;\n/**\n * Represents an instant capturing the time of day, and the timezone offset in seconds, but not the date.\n * Created {@link Time} objects are frozen with `Object.freeze()` in constructor and thus immutable.\n */\nvar Time = /** @class */ (function () {\n /**\n * @constructor\n * @param {NumberOrInteger} hour - The hour for the new local time.\n * @param {NumberOrInteger} minute - The minute for the new local time.\n * @param {NumberOrInteger} second - The second for the new local time.\n * @param {NumberOrInteger} nanosecond - The nanosecond for the new local time.\n * @param {NumberOrInteger} timeZoneOffsetSeconds - The time zone offset in seconds. Value represents the difference, in seconds, from UTC to local time.\n * This is different from standard JavaScript `Date.getTimezoneOffset()` which is the difference, in minutes, from local time to UTC.\n */\n function Time(hour, minute, second, nanosecond, timeZoneOffsetSeconds) {\n /**\n * The hour.\n * @type {NumberOrInteger}\n */\n this.hour = util.assertValidHour(hour);\n /**\n * The minute.\n * @type {NumberOrInteger}\n */\n this.minute = util.assertValidMinute(minute);\n /**\n * The second.\n * @type {NumberOrInteger}\n */\n this.second = util.assertValidSecond(second);\n /**\n * The nanosecond.\n * @type {NumberOrInteger}\n */\n this.nanosecond = util.assertValidNanosecond(nanosecond);\n /**\n * The time zone offset in seconds.\n * @type {NumberOrInteger}\n */\n this.timeZoneOffsetSeconds = (0, util_1.assertNumberOrInteger)(timeZoneOffsetSeconds, 'Time zone offset in seconds');\n Object.freeze(this);\n }\n /**\n * Create a {@link Time} object from the given standard JavaScript `Date` and optional nanoseconds.\n * Year, month and day components of the given date are ignored.\n * @param {global.Date} standardDate - The standard JavaScript date to convert.\n * @param {NumberOrInteger|undefined} nanosecond - The optional amount of nanoseconds.\n * @return {Time} New Time.\n */\n Time.fromStandardDate = function (standardDate, nanosecond) {\n verifyStandardDateAndNanos(standardDate, nanosecond);\n return new Time(standardDate.getHours(), standardDate.getMinutes(), standardDate.getSeconds(), (0, integer_1.toNumber)(util.totalNanoseconds(standardDate, nanosecond)), util.timeZoneOffsetInSeconds(standardDate));\n };\n /**\n * @ignore\n */\n Time.prototype.toString = function () {\n return (util.timeToIsoString(this.hour, this.minute, this.second, this.nanosecond) + util.timeZoneOffsetToIsoString(this.timeZoneOffsetSeconds));\n };\n return Time;\n}());\nexports.Time = Time;\nObject.defineProperty(Time.prototype, TIME_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link Time} class.\n * @param {Object} obj the object to test.\n * @return {boolean} `true` if given object is a {@link Time}, `false` otherwise.\n */\nfunction isTime(obj) {\n return hasIdentifierProperty(obj, TIME_IDENTIFIER_PROPERTY);\n}\nexports.isTime = isTime;\n/**\n * Represents an instant capturing the date, but not the time, nor the timezone.\n * Created {@link Date} objects are frozen with `Object.freeze()` in constructor and thus immutable.\n */\nvar Date = /** @class */ (function () {\n /**\n * @constructor\n * @param {NumberOrInteger} year - The year for the new local date.\n * @param {NumberOrInteger} month - The month for the new local date.\n * @param {NumberOrInteger} day - The day for the new local date.\n */\n function Date(year, month, day) {\n /**\n * The year.\n * @type {NumberOrInteger}\n */\n this.year = util.assertValidYear(year);\n /**\n * The month.\n * @type {NumberOrInteger}\n */\n this.month = util.assertValidMonth(month);\n /**\n * The day.\n * @type {NumberOrInteger}\n */\n this.day = util.assertValidDay(day);\n Object.freeze(this);\n }\n /**\n * Create a {@link Date} object from the given standard JavaScript `Date`.\n * Hour, minute, second, millisecond and time zone offset components of the given date are ignored.\n * @param {global.Date} standardDate - The standard JavaScript date to convert.\n * @return {Date} New Date.\n */\n Date.fromStandardDate = function (standardDate) {\n verifyStandardDateAndNanos(standardDate);\n return new Date(standardDate.getFullYear(), standardDate.getMonth() + 1, standardDate.getDate());\n };\n /**\n * @ignore\n */\n Date.prototype.toString = function () {\n return util.dateToIsoString(this.year, this.month, this.day);\n };\n return Date;\n}());\nexports.Date = Date;\nObject.defineProperty(Date.prototype, DATE_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link Date} class.\n * @param {Object} obj - The object to test.\n * @return {boolean} `true` if given object is a {@link Date}, `false` otherwise.\n */\nfunction isDate(obj) {\n return hasIdentifierProperty(obj, DATE_IDENTIFIER_PROPERTY);\n}\nexports.isDate = isDate;\n/**\n * Represents an instant capturing the date and the time, but not the timezone.\n * Created {@link LocalDateTime} objects are frozen with `Object.freeze()` in constructor and thus immutable.\n */\nvar LocalDateTime = /** @class */ (function () {\n /**\n * @constructor\n * @param {NumberOrInteger} year - The year for the new local date.\n * @param {NumberOrInteger} month - The month for the new local date.\n * @param {NumberOrInteger} day - The day for the new local date.\n * @param {NumberOrInteger} hour - The hour for the new local time.\n * @param {NumberOrInteger} minute - The minute for the new local time.\n * @param {NumberOrInteger} second - The second for the new local time.\n * @param {NumberOrInteger} nanosecond - The nanosecond for the new local time.\n */\n function LocalDateTime(year, month, day, hour, minute, second, nanosecond) {\n /**\n * The year.\n * @type {NumberOrInteger}\n */\n this.year = util.assertValidYear(year);\n /**\n * The month.\n * @type {NumberOrInteger}\n */\n this.month = util.assertValidMonth(month);\n /**\n * The day.\n * @type {NumberOrInteger}\n */\n this.day = util.assertValidDay(day);\n /**\n * The hour.\n * @type {NumberOrInteger}\n */\n this.hour = util.assertValidHour(hour);\n /**\n * The minute.\n * @type {NumberOrInteger}\n */\n this.minute = util.assertValidMinute(minute);\n /**\n * The second.\n * @type {NumberOrInteger}\n */\n this.second = util.assertValidSecond(second);\n /**\n * The nanosecond.\n * @type {NumberOrInteger}\n */\n this.nanosecond = util.assertValidNanosecond(nanosecond);\n Object.freeze(this);\n }\n /**\n * Create a {@link LocalDateTime} object from the given standard JavaScript `Date` and optional nanoseconds.\n * Time zone offset component of the given date is ignored.\n * @param {global.Date} standardDate - The standard JavaScript date to convert.\n * @param {NumberOrInteger|undefined} nanosecond - The optional amount of nanoseconds.\n * @return {LocalDateTime} New LocalDateTime.\n */\n LocalDateTime.fromStandardDate = function (standardDate, nanosecond) {\n verifyStandardDateAndNanos(standardDate, nanosecond);\n return new LocalDateTime(standardDate.getFullYear(), standardDate.getMonth() + 1, standardDate.getDate(), standardDate.getHours(), standardDate.getMinutes(), standardDate.getSeconds(), (0, integer_1.toNumber)(util.totalNanoseconds(standardDate, nanosecond)));\n };\n /**\n * @ignore\n */\n LocalDateTime.prototype.toString = function () {\n return localDateTimeToString(this.year, this.month, this.day, this.hour, this.minute, this.second, this.nanosecond);\n };\n return LocalDateTime;\n}());\nexports.LocalDateTime = LocalDateTime;\nObject.defineProperty(LocalDateTime.prototype, LOCAL_DATE_TIME_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link LocalDateTime} class.\n * @param {Object} obj - The object to test.\n * @return {boolean} `true` if given object is a {@link LocalDateTime}, `false` otherwise.\n */\nfunction isLocalDateTime(obj) {\n return hasIdentifierProperty(obj, LOCAL_DATE_TIME_IDENTIFIER_PROPERTY);\n}\nexports.isLocalDateTime = isLocalDateTime;\n/**\n * Represents an instant capturing the date, the time and the timezone identifier.\n * Created {@ DateTime} objects are frozen with `Object.freeze()` in constructor and thus immutable.\n */\nvar DateTime = /** @class */ (function () {\n /**\n * @constructor\n * @param {NumberOrInteger} year - The year for the new date-time.\n * @param {NumberOrInteger} month - The month for the new date-time.\n * @param {NumberOrInteger} day - The day for the new date-time.\n * @param {NumberOrInteger} hour - The hour for the new date-time.\n * @param {NumberOrInteger} minute - The minute for the new date-time.\n * @param {NumberOrInteger} second - The second for the new date-time.\n * @param {NumberOrInteger} nanosecond - The nanosecond for the new date-time.\n * @param {NumberOrInteger} timeZoneOffsetSeconds - The time zone offset in seconds. Either this argument or `timeZoneId` should be defined.\n * Value represents the difference, in seconds, from UTC to local time.\n * This is different from standard JavaScript `Date.getTimezoneOffset()` which is the difference, in minutes, from local time to UTC.\n * @param {string|null} timeZoneId - The time zone id for the new date-time. Either this argument or `timeZoneOffsetSeconds` should be defined.\n */\n function DateTime(year, month, day, hour, minute, second, nanosecond, timeZoneOffsetSeconds, timeZoneId) {\n /**\n * The year.\n * @type {NumberOrInteger}\n */\n this.year = util.assertValidYear(year);\n /**\n * The month.\n * @type {NumberOrInteger}\n */\n this.month = util.assertValidMonth(month);\n /**\n * The day.\n * @type {NumberOrInteger}\n */\n this.day = util.assertValidDay(day);\n /**\n * The hour.\n * @type {NumberOrInteger}\n */\n this.hour = util.assertValidHour(hour);\n /**\n * The minute.\n * @type {NumberOrInteger}\n */\n this.minute = util.assertValidMinute(minute);\n /**\n * The second.\n * @type {NumberOrInteger}\n */\n this.second = util.assertValidSecond(second);\n /**\n * The nanosecond.\n * @type {NumberOrInteger}\n */\n this.nanosecond = util.assertValidNanosecond(nanosecond);\n var _a = __read(verifyTimeZoneArguments(timeZoneOffsetSeconds, timeZoneId), 2), offset = _a[0], id = _a[1];\n /**\n * The time zone offset in seconds.\n *\n * *Either this or {@link timeZoneId} is defined.*\n *\n * @type {NumberOrInteger}\n */\n this.timeZoneOffsetSeconds = offset;\n /**\n * The time zone id.\n *\n * *Either this or {@link timeZoneOffsetSeconds} is defined.*\n *\n * @type {string}\n */\n this.timeZoneId = id || undefined;\n Object.freeze(this);\n }\n /**\n * Create a {@link DateTime} object from the given standard JavaScript `Date` and optional nanoseconds.\n * @param {global.Date} standardDate - The standard JavaScript date to convert.\n * @param {NumberOrInteger|undefined} nanosecond - The optional amount of nanoseconds.\n * @return {DateTime} New DateTime.\n */\n DateTime.fromStandardDate = function (standardDate, nanosecond) {\n verifyStandardDateAndNanos(standardDate, nanosecond);\n return new DateTime(standardDate.getFullYear(), standardDate.getMonth() + 1, standardDate.getDate(), standardDate.getHours(), standardDate.getMinutes(), standardDate.getSeconds(), (0, integer_1.toNumber)(util.totalNanoseconds(standardDate, nanosecond)), util.timeZoneOffsetInSeconds(standardDate), null /* no time zone id */);\n };\n /**\n * @ignore\n */\n DateTime.prototype.toString = function () {\n var localDateTimeStr = localDateTimeToString(this.year, this.month, this.day, this.hour, this.minute, this.second, this.nanosecond);\n var timeZoneStr = this.timeZoneId\n ? \"[\" + this.timeZoneId + \"]\"\n : util.timeZoneOffsetToIsoString(this.timeZoneOffsetSeconds || 0);\n return localDateTimeStr + timeZoneStr;\n };\n return DateTime;\n}());\nexports.DateTime = DateTime;\nObject.defineProperty(DateTime.prototype, DATE_TIME_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link DateTime} class.\n * @param {Object} obj - The object to test.\n * @return {boolean} `true` if given object is a {@link DateTime}, `false` otherwise.\n */\nfunction isDateTime(obj) {\n return hasIdentifierProperty(obj, DATE_TIME_IDENTIFIER_PROPERTY);\n}\nexports.isDateTime = isDateTime;\nfunction hasIdentifierProperty(obj, property) {\n return (obj && obj[property]) === true;\n}\nfunction localDateTimeToString(year, month, day, hour, minute, second, nanosecond) {\n return (util.dateToIsoString(year, month, day) +\n 'T' +\n util.timeToIsoString(hour, minute, second, nanosecond));\n}\n/**\n * @private\n * @param {NumberOrInteger} timeZoneOffsetSeconds\n * @param {string | null } timeZoneId\n * @returns {Array}\n */\nfunction verifyTimeZoneArguments(timeZoneOffsetSeconds, timeZoneId) {\n var offsetDefined = timeZoneOffsetSeconds || timeZoneOffsetSeconds === 0;\n var idDefined = timeZoneId && timeZoneId !== '';\n if (!offsetDefined && !idDefined) {\n throw (0, error_1.newError)(\n // eslint-disable-next-line @typescript-eslint/restrict-template-expressions\n \"Unable to create DateTime without either time zone offset or id. Please specify either of them. Given offset: \" + timeZoneOffsetSeconds + \" and id: \" + timeZoneId);\n }\n var result = [undefined, undefined];\n if (offsetDefined) {\n (0, util_1.assertNumberOrInteger)(timeZoneOffsetSeconds, 'Time zone offset in seconds');\n result[0] = timeZoneOffsetSeconds;\n }\n if (idDefined) {\n (0, util_1.assertString)(timeZoneId, 'Time zone ID');\n util.assertValidZoneId('Time zone ID', timeZoneId);\n result[1] = timeZoneId;\n }\n return result;\n}\n/**\n * @private\n * @param {StandardDate} standardDate\n * @param {NumberOrInteger} nanosecond\n * @returns {void}\n */\nfunction verifyStandardDateAndNanos(standardDate, nanosecond) {\n (0, util_1.assertValidDate)(standardDate, 'Standard date');\n if (nanosecond !== null && nanosecond !== undefined) {\n (0, util_1.assertNumberOrInteger)(nanosecond, 'Nanosecond');\n }\n}\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar util_1 = require(\"./internal/util\");\nvar connection_holder_1 = require(\"./internal/connection-holder\");\nvar bookmark_1 = require(\"./internal/bookmark\");\nvar tx_config_1 = require(\"./internal/tx-config\");\nvar observers_1 = require(\"./internal/observers\");\nvar error_1 = require(\"./error\");\nvar result_1 = __importDefault(require(\"./result\"));\n/**\n * Represents a transaction in the Neo4j database.\n *\n * @access public\n */\nvar Transaction = /** @class */ (function () {\n /**\n * @constructor\n * @param {ConnectionHolder} connectionHolder - the connection holder to get connection from.\n * @param {function()} onClose - Function to be called when transaction is committed or rolled back.\n * @param {function(bookmark: Bookmark)} onBookmark callback invoked when new bookmark is produced.\n * * @param {function()} onConnection - Function to be called when a connection is obtained to ensure the conneciton\n * is not yet released.\n * @param {boolean} reactive whether this transaction generates reactive streams\n * @param {number} fetchSize - the record fetch size in each pulling batch.\n * @param {string} impersonatedUser - The name of the user which should be impersonated for the duration of the session.\n */\n function Transaction(_a) {\n var connectionHolder = _a.connectionHolder, onClose = _a.onClose, onBookmark = _a.onBookmark, onConnection = _a.onConnection, reactive = _a.reactive, fetchSize = _a.fetchSize, impersonatedUser = _a.impersonatedUser;\n this._connectionHolder = connectionHolder;\n this._reactive = reactive;\n this._state = _states.ACTIVE;\n this._onClose = onClose;\n this._onBookmark = onBookmark;\n this._onConnection = onConnection;\n this._onError = this._onErrorCallback.bind(this);\n this._onComplete = this._onCompleteCallback.bind(this);\n this._fetchSize = fetchSize;\n this._results = [];\n this._impersonatedUser = impersonatedUser;\n }\n /**\n * @private\n * @param {Bookmark | string | string []} bookmark\n * @param {TxConfig} txConfig\n * @returns {void}\n */\n Transaction.prototype._begin = function (bookmark, txConfig) {\n var _this = this;\n this._connectionHolder\n .getConnection()\n .then(function (connection) {\n _this._onConnection();\n if (connection) {\n return connection.protocol().beginTransaction({\n bookmark: bookmark,\n txConfig: txConfig,\n mode: _this._connectionHolder.mode(),\n database: _this._connectionHolder.database(),\n impersonatedUser: _this._impersonatedUser,\n beforeError: _this._onError,\n afterComplete: _this._onComplete\n });\n }\n else {\n throw (0, error_1.newError)('No connection available');\n }\n })\n .catch(function (error) { return _this._onError(error); });\n };\n /**\n * Run Cypher query\n * Could be called with a query object i.e.: `{text: \"MATCH ...\", parameters: {param: 1}}`\n * or with the query and parameters as separate arguments.\n * @param {mixed} query - Cypher query to execute\n * @param {Object} parameters - Map with parameters to use in query\n * @return {Result} New Result\n */\n Transaction.prototype.run = function (query, parameters) {\n var _a = (0, util_1.validateQueryAndParameters)(query, parameters), validatedQuery = _a.validatedQuery, params = _a.params;\n var result = this._state.run(validatedQuery, params, {\n connectionHolder: this._connectionHolder,\n onError: this._onError,\n onComplete: this._onComplete,\n onConnection: this._onConnection,\n reactive: this._reactive,\n fetchSize: this._fetchSize\n });\n this._results.push(result);\n return result;\n };\n /**\n * Commits the transaction and returns the result.\n *\n * After committing the transaction can no longer be used.\n *\n * @returns {Promise} An empty promise if committed successfully or error if any error happened during commit.\n */\n Transaction.prototype.commit = function () {\n var committed = this._state.commit({\n connectionHolder: this._connectionHolder,\n onError: this._onError,\n onComplete: this._onComplete,\n onConnection: this._onConnection,\n pendingResults: this._results\n });\n this._state = committed.state;\n // clean up\n this._onClose();\n return new Promise(function (resolve, reject) {\n committed.result.subscribe({\n onCompleted: function () { return resolve(); },\n onError: function (error) { return reject(error); }\n });\n });\n };\n /**\n * Rollbacks the transaction.\n *\n * After rolling back, the transaction can no longer be used.\n *\n * @returns {Promise} An empty promise if rolled back successfully or error if any error happened during\n * rollback.\n */\n Transaction.prototype.rollback = function () {\n var rolledback = this._state.rollback({\n connectionHolder: this._connectionHolder,\n onError: this._onError,\n onComplete: this._onComplete,\n onConnection: this._onConnection,\n pendingResults: this._results\n });\n this._state = rolledback.state;\n // clean up\n this._onClose();\n return new Promise(function (resolve, reject) {\n rolledback.result.subscribe({\n onCompleted: function () { return resolve(); },\n onError: function (error) { return reject(error); }\n });\n });\n };\n /**\n * Check if this transaction is active, which means commit and rollback did not happen.\n * @return {boolean} `true` when not committed and not rolled back, `false` otherwise.\n */\n Transaction.prototype.isOpen = function () {\n return this._state === _states.ACTIVE;\n };\n /**\n * Closes the transaction\n *\n * This method will roll back the transaction if it is not already committed or rolled back.\n *\n * @returns {Promise} An empty promise if closed successfully or error if any error happened during\n */\n Transaction.prototype.close = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!this.isOpen()) return [3 /*break*/, 2];\n return [4 /*yield*/, this.rollback()];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n });\n };\n Transaction.prototype._onErrorCallback = function (err) {\n // error will be \"acknowledged\" by sending a RESET message\n // database will then forget about this transaction and cleanup all corresponding resources\n // it is thus safe to move this transaction to a FAILED state and disallow any further interactions with it\n this._state = _states.FAILED;\n this._onClose();\n // release connection back to the pool\n return this._connectionHolder.releaseConnection();\n };\n /**\n * @private\n * @param {object} meta The meta with bookmark\n * @returns {void}\n */\n Transaction.prototype._onCompleteCallback = function (meta) {\n this._onBookmark(new bookmark_1.Bookmark(meta.bookmark));\n };\n return Transaction;\n}());\nvar _states = {\n // The transaction is running with no explicit success or failure marked\n ACTIVE: {\n commit: function (_a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete, onConnection = _a.onConnection, pendingResults = _a.pendingResults;\n return {\n result: finishTransaction(true, connectionHolder, onError, onComplete, onConnection, pendingResults),\n state: _states.SUCCEEDED\n };\n },\n rollback: function (_a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete, onConnection = _a.onConnection, pendingResults = _a.pendingResults;\n return {\n result: finishTransaction(false, connectionHolder, onError, onComplete, onConnection, pendingResults),\n state: _states.ROLLED_BACK\n };\n },\n run: function (query, parameters, _a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete, onConnection = _a.onConnection, reactive = _a.reactive, fetchSize = _a.fetchSize;\n // RUN in explicit transaction can't contain bookmarks and transaction configuration\n // No need to include mode and database name as it shall be inclued in begin\n var observerPromise = connectionHolder\n .getConnection()\n .then(function (conn) {\n onConnection();\n if (conn) {\n return conn.protocol().run(query, parameters, {\n bookmark: bookmark_1.Bookmark.empty(),\n txConfig: tx_config_1.TxConfig.empty(),\n beforeError: onError,\n afterComplete: onComplete,\n reactive: reactive,\n fetchSize: fetchSize,\n });\n }\n else {\n throw (0, error_1.newError)('No connection available');\n }\n })\n .catch(function (error) { return new observers_1.FailedObserver({ error: error, onError: onError }); });\n return newCompletedResult(observerPromise, query, parameters, connectionHolder);\n }\n },\n // An error has occurred, transaction can no longer be used and no more messages will\n // be sent for this transaction.\n FAILED: {\n commit: function (_a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete;\n return {\n result: newCompletedResult(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Cannot commit this transaction, because it has been rolled back either because of an error or explicit termination.'),\n onError: onError\n }), 'COMMIT', {}, connectionHolder),\n state: _states.FAILED\n };\n },\n rollback: function (_a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete;\n return {\n result: newCompletedResult(new observers_1.CompletedObserver(), 'ROLLBACK', {}, connectionHolder),\n state: _states.FAILED\n };\n },\n run: function (query, parameters, _a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete;\n return newCompletedResult(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Cannot run query in this transaction, because it has been rolled back either because of an error or explicit termination.'),\n onError: onError\n }), query, parameters, connectionHolder);\n }\n },\n // This transaction has successfully committed\n SUCCEEDED: {\n commit: function (_a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete;\n return {\n result: newCompletedResult(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Cannot commit this transaction, because it has already been committed.'),\n onError: onError\n }), 'COMMIT', {}),\n state: _states.SUCCEEDED,\n connectionHolder: connectionHolder\n };\n },\n rollback: function (_a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete;\n return {\n result: newCompletedResult(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Cannot rollback this transaction, because it has already been committed.'),\n onError: onError\n }), 'ROLLBACK', {}),\n state: _states.SUCCEEDED,\n connectionHolder: connectionHolder\n };\n },\n run: function (query, parameters, _a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete;\n return newCompletedResult(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Cannot run query in this transaction, because it has already been committed.'),\n onError: onError\n }), query, parameters, connectionHolder);\n }\n },\n // This transaction has been rolled back\n ROLLED_BACK: {\n commit: function (_a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete;\n return {\n result: newCompletedResult(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Cannot commit this transaction, because it has already been rolled back.'),\n onError: onError\n }), 'COMMIT', {}, connectionHolder),\n state: _states.ROLLED_BACK\n };\n },\n rollback: function (_a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete;\n return {\n result: newCompletedResult(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Cannot rollback this transaction, because it has already been rolled back.')\n }), 'ROLLBACK', {}, connectionHolder),\n state: _states.ROLLED_BACK\n };\n },\n run: function (query, parameters, _a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete;\n return newCompletedResult(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Cannot run query in this transaction, because it has already been rolled back.'),\n onError: onError\n }), query, parameters, connectionHolder);\n }\n }\n};\n/**\n *\n * @param {boolean} commit\n * @param {ConnectionHolder} connectionHolder\n * @param {function(err:Error): any} onError\n * @param {function(metadata:object): any} onComplete\n * @param {function() : any} onConnection\n * @param {list>}pendingResults all run results in this transaction\n */\nfunction finishTransaction(commit, connectionHolder, onError, onComplete, onConnection, pendingResults) {\n var observerPromise = connectionHolder\n .getConnection()\n .then(function (connection) {\n onConnection();\n pendingResults.forEach(function (r) { return r._cancel(); });\n return Promise.all(pendingResults).then(function (results) {\n if (connection) {\n if (commit) {\n return connection.protocol().commitTransaction({\n beforeError: onError,\n afterComplete: onComplete\n });\n }\n else {\n return connection.protocol().rollbackTransaction({\n beforeError: onError,\n afterComplete: onComplete\n });\n }\n }\n else {\n throw (0, error_1.newError)('No connection available');\n }\n });\n })\n .catch(function (error) { return new observers_1.FailedObserver({ error: error, onError: onError }); });\n // for commit & rollback we need result that uses real connection holder and notifies it when\n // connection is not needed and can be safely released to the pool\n return new result_1.default(observerPromise, commit ? 'COMMIT' : 'ROLLBACK', {}, connectionHolder);\n}\n/**\n * Creates a {@link Result} with empty connection holder.\n * For cases when result represents an intermediate or failed action, does not require any metadata and does not\n * need to influence real connection holder to release connections.\n * @param {ResultStreamObserver} observer - an observer for the created result.\n * @param {string} query - the cypher query that produced the result.\n * @param {Object} parameters - the parameters for cypher query that produced the result.\n * @param {ConnectionHolder} connectionHolder - the connection holder used to get the result\n * @return {Result} new result.\n * @private\n */\nfunction newCompletedResult(observerPromise, query, parameters, connectionHolder) {\n if (connectionHolder === void 0) { connectionHolder = connection_holder_1.EMPTY_CONNECTION_HOLDER; }\n return new result_1.default(Promise.resolve(observerPromise), query, parameters, new connection_holder_1.ReadOnlyConnectionHolder(connectionHolder || connection_holder_1.EMPTY_CONNECTION_HOLDER));\n}\nexports.default = Transaction;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = exports.WRITE = exports.READ = exports.Driver = void 0;\n\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));\n\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createClass\"));\n\nvar _inherits2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inherits\"));\n\nvar _possibleConstructorReturn2 = _interopRequireDefault(require(\"@babel/runtime/helpers/possibleConstructorReturn\"));\n\nvar _getPrototypeOf2 = _interopRequireDefault(require(\"@babel/runtime/helpers/getPrototypeOf\"));\n\nvar _neo4jDriverCore = require(\"neo4j-driver-core\");\n\nvar _sessionRx = _interopRequireDefault(require(\"./session-rx\"));\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2[\"default\"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2[\"default\"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2[\"default\"])(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nvar FETCH_ALL = _neo4jDriverCore.internal.constants.FETCH_ALL;\nvar READ = _neo4jDriverCore.driver.READ,\n WRITE = _neo4jDriverCore.driver.WRITE;\n/**\n * A driver maintains one or more {@link Session}s with a remote\n * Neo4j instance. Through the {@link Session}s you can send queries\n * and retrieve results from the database.\n *\n * Drivers are reasonably expensive to create - you should strive to keep one\n * driver instance around per Neo4j Instance you connect to.\n *\n * @access public\n */\n\nexports.WRITE = WRITE;\nexports.READ = READ;\n\nvar Driver = /*#__PURE__*/function (_CoreDriver) {\n (0, _inherits2[\"default\"])(Driver, _CoreDriver);\n\n var _super = _createSuper(Driver);\n\n function Driver() {\n (0, _classCallCheck2[\"default\"])(this, Driver);\n return _super.apply(this, arguments);\n }\n\n (0, _createClass2[\"default\"])(Driver, [{\n key: \"rxSession\",\n value:\n /**\n * Acquire a reactive session to communicate with the database. The session will\n * borrow connections from the underlying connection pool as required and\n * should be considered lightweight and disposable.\n *\n * This comes with some responsibility - make sure you always call\n * {@link close} when you are done using a session, and likewise,\n * make sure you don't close your session before you are done using it. Once\n * it is closed, the underlying connection will be released to the connection\n * pool and made available for others to use.\n *\n * @public\n * @param {Object} param\n * @param {string} param.defaultAccessMode=WRITE - The access mode of this session, allowed values are {@link READ} and {@link WRITE}.\n * @param {string|string[]} param.bookmarks - The initial reference or references to some previous transactions. Value is optional and\n * absence indicates that the bookmarks do not exist or are unknown.\n * @param {string} param.database - The database this session will operate on.\n * @param {string} param.impersonatedUser - The name of the user which should be impersonated for the duration of the session.\n * @returns {RxSession} new reactive session.\n */\n function rxSession() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref$defaultAccessMod = _ref.defaultAccessMode,\n defaultAccessMode = _ref$defaultAccessMod === void 0 ? WRITE : _ref$defaultAccessMod,\n bookmarks = _ref.bookmarks,\n _ref$database = _ref.database,\n database = _ref$database === void 0 ? '' : _ref$database,\n fetchSize = _ref.fetchSize,\n impersonatedUser = _ref.impersonatedUser;\n\n return new _sessionRx[\"default\"]({\n session: this._newSession({\n defaultAccessMode: defaultAccessMode,\n bookmarkOrBookmarks: bookmarks,\n database: database,\n impersonatedUser: impersonatedUser,\n reactive: true,\n fetchSize: validateFetchSizeValue(fetchSize, this._config.fetchSize)\n }),\n config: this._config\n });\n }\n }]);\n return Driver;\n}(_neo4jDriverCore.Driver);\n/**\n * @private\n */\n\n\nexports.Driver = Driver;\n\nfunction validateFetchSizeValue(rawValue, defaultWhenAbsent) {\n var fetchSize = parseInt(rawValue, 10);\n\n if (fetchSize > 0 || fetchSize === FETCH_ALL) {\n return fetchSize;\n } else if (fetchSize === 0 || fetchSize < 0) {\n throw new Error(\"The fetch size can only be a positive value or \".concat(FETCH_ALL, \" for ALL. However fetchSize = \").concat(fetchSize));\n } else {\n return defaultWhenAbsent;\n }\n}\n\nvar _default = Driver;\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.driver = driver;\nObject.defineProperty(exports, \"Driver\", {\n enumerable: true,\n get: function get() {\n return _driver.Driver;\n }\n});\nObject.defineProperty(exports, \"Neo4jError\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Neo4jError;\n }\n});\nObject.defineProperty(exports, \"error\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.error;\n }\n});\nObject.defineProperty(exports, \"Integer\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Integer;\n }\n});\nObject.defineProperty(exports, \"int\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore[\"int\"];\n }\n});\nObject.defineProperty(exports, \"isInt\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.isInt;\n }\n});\nObject.defineProperty(exports, \"isPoint\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.isPoint;\n }\n});\nObject.defineProperty(exports, \"Point\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Point;\n }\n});\nObject.defineProperty(exports, \"Date\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Date;\n }\n});\nObject.defineProperty(exports, \"DateTime\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.DateTime;\n }\n});\nObject.defineProperty(exports, \"Duration\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Duration;\n }\n});\nObject.defineProperty(exports, \"isDate\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.isDate;\n }\n});\nObject.defineProperty(exports, \"isDateTime\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.isDateTime;\n }\n});\nObject.defineProperty(exports, \"isDuration\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.isDuration;\n }\n});\nObject.defineProperty(exports, \"isLocalDateTime\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.isLocalDateTime;\n }\n});\nObject.defineProperty(exports, \"isLocalTime\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.isLocalTime;\n }\n});\nObject.defineProperty(exports, \"isTime\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.isTime;\n }\n});\nObject.defineProperty(exports, \"LocalDateTime\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.LocalDateTime;\n }\n});\nObject.defineProperty(exports, \"LocalTime\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.LocalTime;\n }\n});\nObject.defineProperty(exports, \"Time\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Time;\n }\n});\nObject.defineProperty(exports, \"Node\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Node;\n }\n});\nObject.defineProperty(exports, \"Path\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Path;\n }\n});\nObject.defineProperty(exports, \"PathSegment\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.PathSegment;\n }\n});\nObject.defineProperty(exports, \"Relationship\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Relationship;\n }\n});\nObject.defineProperty(exports, \"UnboundRelationship\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.UnboundRelationship;\n }\n});\nObject.defineProperty(exports, \"Record\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Record;\n }\n});\nObject.defineProperty(exports, \"ResultSummary\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.ResultSummary;\n }\n});\nObject.defineProperty(exports, \"Plan\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Plan;\n }\n});\nObject.defineProperty(exports, \"ProfiledPlan\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.ProfiledPlan;\n }\n});\nObject.defineProperty(exports, \"QueryStatistics\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.QueryStatistics;\n }\n});\nObject.defineProperty(exports, \"Notification\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Notification;\n }\n});\nObject.defineProperty(exports, \"ServerInfo\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.ServerInfo;\n }\n});\nObject.defineProperty(exports, \"Result\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Result;\n }\n});\nObject.defineProperty(exports, \"auth\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.auth;\n }\n});\nObject.defineProperty(exports, \"Session\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Session;\n }\n});\nObject.defineProperty(exports, \"Transaction\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Transaction;\n }\n});\nObject.defineProperty(exports, \"RxSession\", {\n enumerable: true,\n get: function get() {\n return _sessionRx[\"default\"];\n }\n});\nObject.defineProperty(exports, \"RxTransaction\", {\n enumerable: true,\n get: function get() {\n return _transactionRx[\"default\"];\n }\n});\nObject.defineProperty(exports, \"RxResult\", {\n enumerable: true,\n get: function get() {\n return _resultRx[\"default\"];\n }\n});\nexports[\"default\"] = exports.temporal = exports.spatial = exports.session = exports.types = exports.logging = exports.integer = void 0;\n\nvar _driver = require(\"./driver\");\n\nvar _version = _interopRequireDefault(require(\"./version\"));\n\nvar _neo4jDriverCore = require(\"neo4j-driver-core\");\n\nvar _neo4jDriverBoltConnection = require(\"neo4j-driver-bolt-connection\");\n\nvar _sessionRx = _interopRequireDefault(require(\"./session-rx\"));\n\nvar _transactionRx = _interopRequireDefault(require(\"./transaction-rx\"));\n\nvar _resultRx = _interopRequireDefault(require(\"./result-rx\"));\n\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar _internal$util = _neo4jDriverCore.internal.util,\n ENCRYPTION_ON = _internal$util.ENCRYPTION_ON,\n ENCRYPTION_OFF = _internal$util.ENCRYPTION_OFF,\n assertString = _internal$util.assertString,\n isEmptyObjectOrNull = _internal$util.isEmptyObjectOrNull,\n ServerAddress = _neo4jDriverCore.internal.serverAddress.ServerAddress,\n urlUtil = _neo4jDriverCore.internal.urlUtil;\n/**\n * Construct a new Neo4j Driver. This is your main entry point for this\n * library.\n *\n * ## Configuration\n *\n * This function optionally takes a configuration argument. Available configuration\n * options are as follows:\n *\n * {\n * // Encryption level: ENCRYPTION_ON or ENCRYPTION_OFF.\n * encrypted: ENCRYPTION_ON|ENCRYPTION_OFF\n *\n * // Trust strategy to use if encryption is enabled. There is no mode to disable\n * // trust other than disabling encryption altogether. The reason for\n * // this is that if you don't know who you are talking to, it is easy for an\n * // attacker to hijack your encrypted connection, rendering encryption pointless.\n * //\n * // TRUST_SYSTEM_CA_SIGNED_CERTIFICATES is the default choice. For NodeJS environments, this\n * // means that you trust whatever certificates are in the default trusted certificate\n * // store of the underlying system. For Browser environments, the trusted certificate\n * // store is usually managed by the browser. Refer to your system or browser documentation\n * // if you want to explicitly add a certificate as trusted.\n * //\n * // TRUST_CUSTOM_CA_SIGNED_CERTIFICATES is another option for trust verification -\n * // whenever we establish an encrypted connection, we ensure the host is using\n * // an encryption certificate that is in, or is signed by, a certificate given\n * // as trusted through configuration. This option is only available for NodeJS environments.\n * //\n * // TRUST_ALL_CERTIFICATES means that you trust everything without any verifications\n * // steps carried out. This option is only available for NodeJS environments and should not\n * // be used on production systems.\n * trust: \"TRUST_SYSTEM_CA_SIGNED_CERTIFICATES\" | \"TRUST_CUSTOM_CA_SIGNED_CERTIFICATES\" |\n * \"TRUST_ALL_CERTIFICATES\",\n *\n * // List of one or more paths to trusted encryption certificates. This only\n * // works in the NodeJS bundle, and only matters if you use \"TRUST_CUSTOM_CA_SIGNED_CERTIFICATES\".\n * // The certificate files should be in regular X.509 PEM format.\n * // For instance, ['./trusted.pem']\n * trustedCertificates: [],\n *\n * // The maximum total number of connections allowed to be managed by the connection pool, per host.\n * // This includes both in-use and idle connections. No maximum connection pool size is imposed\n * // by default.\n * maxConnectionPoolSize: 100,\n *\n * // The maximum allowed lifetime for a pooled connection in milliseconds. Pooled connections older than this\n * // threshold will be closed and removed from the pool. Such discarding happens during connection acquisition\n * // so that new session is never backed by an old connection. Setting this option to a low value will cause\n * // a high connection churn and might result in a performance hit. It is recommended to set maximum lifetime\n * // to a slightly smaller value than the one configured in network equipment (load balancer, proxy, firewall,\n * // etc. can also limit maximum connection lifetime). No maximum lifetime limit is imposed by default. Zero\n * // and negative values result in lifetime not being checked.\n * maxConnectionLifetime: 60 * 60 * 1000, // 1 hour\n *\n * // The maximum amount of time to wait to acquire a connection from the pool (to either create a new\n * // connection or borrow an existing one.\n * connectionAcquisitionTimeout: 60000, // 1 minute\n *\n * // Specify the maximum time in milliseconds transactions are allowed to retry via\n * // `Session#readTransaction()` and `Session#writeTransaction()` functions.\n * // These functions will retry the given unit of work on `ServiceUnavailable`, `SessionExpired` and transient\n * // errors with exponential backoff using initial delay of 1 second.\n * // Default value is 30000 which is 30 seconds.\n * maxTransactionRetryTime: 30000, // 30 seconds\n *\n * // Specify socket connection timeout in milliseconds. Numeric values are expected. Negative and zero values\n * // result in no timeout being applied. Connection establishment will be then bound by the timeout configured\n * // on the operating system level. Default value is 30000, which is 30 seconds.\n * connectionTimeout: 30000, // 30 seconds\n *\n * // Make this driver always return native JavaScript numbers for integer values, instead of the\n * // dedicated {@link Integer} class. Values that do not fit in native number bit range will be represented as\n * // `Number.NEGATIVE_INFINITY` or `Number.POSITIVE_INFINITY`.\n * // **Warning:** ResultSummary It is not always safe to enable this setting when JavaScript applications are not the only ones\n * // interacting with the database. Stored numbers might in such case be not representable by native\n * // {@link Number} type and thus driver will return lossy values. This might also happen when data was\n * // initially imported using neo4j import tool and contained numbers larger than\n * // `Number.MAX_SAFE_INTEGER`. Driver will then return positive infinity, which is lossy.\n * // Default value for this option is `false` because native JavaScript numbers might result\n * // in loss of precision in the general case.\n * disableLosslessIntegers: false,\n *\n * // Make this driver always return native Javascript {@link BigInt} for integer values, instead of the dedicated {@link Integer} class or {@link Number}.\n * //\n * // Default value for this option is `false` for backwards compatibility.\n * //\n * // **Warning:** `BigInt` doesn't implement the method `toJSON`. In maner of serialize it as `json`, It's needed to add a custom implementation of the `toJSON` on the\n * // `BigInt.prototype` {@see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt#use_within_json}\n * useBigInt: false,\n *\n * // Specify the logging configuration for the driver. Object should have two properties `level` and `logger`.\n * //\n * // Property `level` represents the logging level which should be one of: 'error', 'warn', 'info' or 'debug'. This property is optional and\n * // its default value is 'info'. Levels have priorities: 'error': 0, 'warn': 1, 'info': 2, 'debug': 3. Enabling a certain level also enables all\n * // levels with lower priority. For example: 'error', 'warn' and 'info' will be logged when 'info' level is configured.\n * //\n * // Property `logger` represents the logging function which will be invoked for every log call with an acceptable level. The function should\n * // take two string arguments `level` and `message`. The function should not execute any blocking or long-running operations\n * // because it is often executed on a hot path.\n * //\n * // No logging is done by default. See `neo4j.logging` object that contains predefined logging implementations.\n * logging: {\n * level: 'info',\n * logger: (level, message) => console.log(level + ' ' + message)\n * },\n *\n * // Specify a custom server address resolver function used by the routing driver to resolve the initial address used to create the driver.\n * // Such resolution happens:\n * // * during the very first rediscovery when driver is created\n * // * when all the known routers from the current routing table have failed and driver needs to fallback to the initial address\n * //\n * // In NodeJS environment driver defaults to performing a DNS resolution of the initial address using 'dns' module.\n * // In browser environment driver uses the initial address as-is.\n * // Value should be a function that takes a single string argument - the initial address. It should return an array of new addresses.\n * // Address is a string of shape ':'. Provided function can return either a Promise resolved with an array of addresses\n * // or array of addresses directly.\n * resolver: function(address) {\n * return ['127.0.0.1:8888', 'fallback.db.com:7687'];\n * },\n *\n * // Optionally override the default user agent name.\n * userAgent: USER_AGENT\n * }\n *\n * @param {string} url The URL for the Neo4j database, for instance \"neo4j://localhost\" and/or \"bolt://localhost\"\n * @param {Map} authToken Authentication credentials. See {@link auth} for helpers.\n * @param {Object} config Configuration object. See the configuration section above for details.\n * @returns {Driver}\n */\n\nfunction driver(url, authToken) {\n var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n assertString(url, 'Bolt URL');\n var parsedUrl = urlUtil.parseDatabaseUrl(url); // Determine entryption/trust options from the URL.\n\n var routing = false;\n var encrypted = false;\n var trust;\n\n switch (parsedUrl.scheme) {\n case 'bolt':\n break;\n\n case 'bolt+s':\n encrypted = true;\n trust = 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES';\n break;\n\n case 'bolt+ssc':\n encrypted = true;\n trust = 'TRUST_ALL_CERTIFICATES';\n break;\n\n case 'neo4j':\n routing = true;\n break;\n\n case 'neo4j+s':\n encrypted = true;\n trust = 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES';\n routing = true;\n break;\n\n case 'neo4j+ssc':\n encrypted = true;\n trust = 'TRUST_ALL_CERTIFICATES';\n routing = true;\n break;\n\n default:\n throw new Error(\"Unknown scheme: \".concat(parsedUrl.scheme));\n } // Encryption enabled on URL, propagate trust to the config.\n\n\n if (encrypted) {\n // Check for configuration conflict between URL and config.\n if ('encrypted' in config || 'trust' in config) {\n throw new Error('Encryption/trust can only be configured either through URL or config, not both');\n }\n\n config.encrypted = ENCRYPTION_ON;\n config.trust = trust;\n } // Sanitize authority token. Nicer error from server when a scheme is set.\n\n\n authToken = authToken || {};\n authToken.scheme = authToken.scheme || 'none'; // Use default user agent or user agent specified by user.\n\n config.userAgent = config.userAgent || USER_AGENT;\n var address = ServerAddress.fromUrl(parsedUrl.hostAndPort);\n var meta = {\n address: address,\n typename: routing ? 'Routing' : 'Direct',\n routing: routing\n };\n return new _driver.Driver(meta, config, createConnectionProviderFunction());\n\n function createConnectionProviderFunction() {\n if (routing) {\n return function (id, config, log, hostNameResolver) {\n return new _neo4jDriverBoltConnection.RoutingConnectionProvider({\n id: id,\n config: config,\n log: log,\n hostNameResolver: hostNameResolver,\n authToken: authToken,\n address: address,\n userAgent: config.userAgent,\n routingContext: parsedUrl.query\n });\n };\n } else {\n if (!isEmptyObjectOrNull(parsedUrl.query)) {\n throw new Error(\"Parameters are not supported with none routed scheme. Given URL: '\".concat(url, \"'\"));\n }\n\n return function (id, config, log) {\n return new _neo4jDriverBoltConnection.DirectConnectionProvider({\n id: id,\n config: config,\n log: log,\n authToken: authToken,\n address: address,\n userAgent: config.userAgent\n });\n };\n }\n }\n}\n\nvar USER_AGENT = 'neo4j-javascript/' + _version[\"default\"];\n/**\n * Object containing predefined logging configurations. These are expected to be used as values of the driver config's `logging` property.\n * @property {function(level: ?string): object} console the function to create a logging config that prints all messages to `console.log` with\n * timestamp, level and message. It takes an optional `level` parameter which represents the maximum log level to be logged. Default value is 'info'.\n */\n\nvar logging = {\n console: function (_console) {\n function console(_x) {\n return _console.apply(this, arguments);\n }\n\n console.toString = function () {\n return _console.toString();\n };\n\n return console;\n }(function (level) {\n return {\n level: level,\n logger: function logger(level, message) {\n return console.log(\"\".concat(global.Date.now(), \" \").concat(level.toUpperCase(), \" \").concat(message));\n }\n };\n })\n};\n/**\n * Object containing constructors for all neo4j types.\n */\n\nexports.logging = logging;\nvar types = {\n Node: _neo4jDriverCore.Node,\n Relationship: _neo4jDriverCore.Relationship,\n UnboundRelationship: _neo4jDriverCore.UnboundRelationship,\n PathSegment: _neo4jDriverCore.PathSegment,\n Path: _neo4jDriverCore.Path,\n Result: _neo4jDriverCore.Result,\n ResultSummary: _neo4jDriverCore.ResultSummary,\n Record: _neo4jDriverCore.Record,\n Point: _neo4jDriverCore.Point,\n Date: _neo4jDriverCore.Date,\n DateTime: _neo4jDriverCore.DateTime,\n Duration: _neo4jDriverCore.Duration,\n LocalDateTime: _neo4jDriverCore.LocalDateTime,\n LocalTime: _neo4jDriverCore.LocalTime,\n Time: _neo4jDriverCore.Time,\n Integer: _neo4jDriverCore.Integer\n};\n/**\n * Object containing string constants representing session access modes.\n */\n\nexports.types = types;\nvar session = {\n READ: _driver.READ,\n WRITE: _driver.WRITE\n};\n/**\n * Object containing functions to work with {@link Integer} objects.\n */\n\nexports.session = session;\nvar integer = {\n toNumber: _neo4jDriverCore.toNumber,\n toString: _neo4jDriverCore.toString,\n inSafeRange: _neo4jDriverCore.inSafeRange\n};\n/**\n * Object containing functions to work with spatial types, like {@link Point}.\n */\n\nexports.integer = integer;\nvar spatial = {\n isPoint: _neo4jDriverCore.isPoint\n};\n/**\n * Object containing functions to work with temporal types, like {@link Time} or {@link Duration}.\n */\n\nexports.spatial = spatial;\nvar temporal = {\n isDuration: _neo4jDriverCore.isDuration,\n isLocalTime: _neo4jDriverCore.isLocalTime,\n isTime: _neo4jDriverCore.isTime,\n isDate: _neo4jDriverCore.isDate,\n isLocalDateTime: _neo4jDriverCore.isLocalDateTime,\n isDateTime: _neo4jDriverCore.isDateTime\n};\n/**\n * @private\n */\n\nexports.temporal = temporal;\nvar forExport = {\n driver: driver,\n \"int\": _neo4jDriverCore[\"int\"],\n isInt: _neo4jDriverCore.isInt,\n isPoint: _neo4jDriverCore.isPoint,\n isDuration: _neo4jDriverCore.isDuration,\n isLocalTime: _neo4jDriverCore.isLocalTime,\n isTime: _neo4jDriverCore.isTime,\n isDate: _neo4jDriverCore.isDate,\n isLocalDateTime: _neo4jDriverCore.isLocalDateTime,\n isDateTime: _neo4jDriverCore.isDateTime,\n integer: integer,\n Neo4jError: _neo4jDriverCore.Neo4jError,\n auth: _neo4jDriverCore.auth,\n logging: logging,\n types: types,\n session: session,\n error: _neo4jDriverCore.error,\n spatial: spatial,\n temporal: temporal,\n Driver: _driver.Driver,\n Session: _neo4jDriverCore.Session,\n Transaction: _neo4jDriverCore.Transaction,\n Result: _neo4jDriverCore.Result,\n RxSession: _sessionRx[\"default\"],\n RxTransaction: _transactionRx[\"default\"],\n RxResult: _resultRx[\"default\"],\n ResultSummary: _neo4jDriverCore.ResultSummary,\n Plan: _neo4jDriverCore.Plan,\n ProfiledPlan: _neo4jDriverCore.ProfiledPlan,\n QueryStatistics: _neo4jDriverCore.QueryStatistics,\n Notification: _neo4jDriverCore.Notification,\n ServerInfo: _neo4jDriverCore.ServerInfo,\n Record: _neo4jDriverCore.Record,\n Node: _neo4jDriverCore.Node,\n Relationship: _neo4jDriverCore.Relationship,\n UnboundRelationship: _neo4jDriverCore.UnboundRelationship,\n Path: _neo4jDriverCore.Path,\n PathSegment: _neo4jDriverCore.PathSegment,\n Point: _neo4jDriverCore.Point,\n Integer: _neo4jDriverCore.Integer,\n Duration: _neo4jDriverCore.Duration,\n LocalTime: _neo4jDriverCore.LocalTime,\n Time: _neo4jDriverCore.Time,\n Date: _neo4jDriverCore.Date,\n LocalDateTime: _neo4jDriverCore.LocalDateTime,\n DateTime: _neo4jDriverCore.DateTime\n};\nvar _default = forExport;\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));\n\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createClass\"));\n\nvar _neo4jDriverCore = require(\"neo4j-driver-core\");\n\nvar _rxjs = require(\"rxjs\");\n\nvar _operators = require(\"rxjs/operators\");\n\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar Logger = _neo4jDriverCore.internal.logger.Logger,\n canRetryOn = _neo4jDriverCore.internal.retryStrategy.canRetryOn;\nvar SERVICE_UNAVAILABLE = _neo4jDriverCore.error.SERVICE_UNAVAILABLE,\n SESSION_EXPIRED = _neo4jDriverCore.error.SESSION_EXPIRED;\nvar DEFAULT_MAX_RETRY_TIME_MS = 30 * 1000; // 30 seconds\n\nvar DEFAULT_INITIAL_RETRY_DELAY_MS = 1000; // 1 seconds\n\nvar DEFAULT_RETRY_DELAY_MULTIPLIER = 2.0;\nvar DEFAULT_RETRY_DELAY_JITTER_FACTOR = 0.2;\n\nvar RxRetryLogic = /*#__PURE__*/function () {\n /**\n *\n * @param {Object} args\n * @param {Logger} args.logger\n */\n function RxRetryLogic() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref$maxRetryTimeout = _ref.maxRetryTimeout,\n maxRetryTimeout = _ref$maxRetryTimeout === void 0 ? DEFAULT_MAX_RETRY_TIME_MS : _ref$maxRetryTimeout,\n _ref$initialDelay = _ref.initialDelay,\n initialDelay = _ref$initialDelay === void 0 ? DEFAULT_INITIAL_RETRY_DELAY_MS : _ref$initialDelay,\n _ref$delayMultiplier = _ref.delayMultiplier,\n delayMultiplier = _ref$delayMultiplier === void 0 ? DEFAULT_RETRY_DELAY_MULTIPLIER : _ref$delayMultiplier,\n _ref$delayJitter = _ref.delayJitter,\n delayJitter = _ref$delayJitter === void 0 ? DEFAULT_RETRY_DELAY_JITTER_FACTOR : _ref$delayJitter,\n _ref$logger = _ref.logger,\n logger = _ref$logger === void 0 ? null : _ref$logger;\n\n (0, _classCallCheck2[\"default\"])(this, RxRetryLogic);\n this._maxRetryTimeout = valueOrDefault(maxRetryTimeout, DEFAULT_MAX_RETRY_TIME_MS);\n this._initialDelay = valueOrDefault(initialDelay, DEFAULT_INITIAL_RETRY_DELAY_MS);\n this._delayMultiplier = valueOrDefault(delayMultiplier, DEFAULT_RETRY_DELAY_MULTIPLIER);\n this._delayJitter = valueOrDefault(delayJitter, DEFAULT_RETRY_DELAY_JITTER_FACTOR);\n this._logger = logger;\n }\n /**\n *\n * @param {Observable} work\n */\n\n\n (0, _createClass2[\"default\"])(RxRetryLogic, [{\n key: \"retry\",\n value: function retry(work) {\n var _this = this;\n\n return work.pipe((0, _operators.retryWhen)(function (failedWork) {\n var handledExceptions = [];\n var startTime = Date.now();\n var retryCount = 1;\n var delayDuration = _this._initialDelay;\n return failedWork.pipe((0, _operators.flatMap)(function (err) {\n if (!canRetryOn(err)) {\n return (0, _rxjs.throwError)(err);\n }\n\n handledExceptions.push(err);\n\n if (retryCount >= 2 && Date.now() - startTime >= _this._maxRetryTimeout) {\n var _error = (0, _neo4jDriverCore.newError)(\"Failed after retried for \".concat(retryCount, \" times in \").concat(_this._maxRetryTimeout, \" ms. Make sure that your database is online and retry again.\"), SERVICE_UNAVAILABLE);\n\n _error.seenErrors = handledExceptions;\n return (0, _rxjs.throwError)(_error);\n }\n\n var nextDelayDuration = _this._computeNextDelay(delayDuration);\n\n delayDuration = delayDuration * _this._delayMultiplier;\n retryCount++;\n\n if (_this._logger) {\n _this._logger.warn(\"Transaction failed and will be retried in \".concat(nextDelayDuration));\n }\n\n return (0, _rxjs.of)(1).pipe((0, _operators.delay)(nextDelayDuration));\n }));\n }));\n }\n }, {\n key: \"_computeNextDelay\",\n value: function _computeNextDelay(delay) {\n var jitter = delay * this._delayJitter;\n return delay - jitter + 2 * jitter * Math.random();\n }\n }]);\n return RxRetryLogic;\n}();\n\nexports[\"default\"] = RxRetryLogic;\n\nfunction valueOrDefault(value, defaultValue) {\n if (value || value === 0) {\n return value;\n }\n\n return defaultValue;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));\n\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createClass\"));\n\nvar _neo4jDriverCore = require(\"neo4j-driver-core\");\n\nvar _rxjs = require(\"rxjs\");\n\nvar _operators = require(\"rxjs/operators\");\n\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar States = {\n READY: 0,\n STREAMING: 1,\n COMPLETED: 2\n};\n/**\n * The reactive result interface.\n */\n\nvar RxResult = /*#__PURE__*/function () {\n /**\n * @constructor\n * @protected\n * @param {Observable} result - An observable of single Result instance to relay requests.\n */\n function RxResult(result) {\n (0, _classCallCheck2[\"default\"])(this, RxResult);\n var replayedResult = result.pipe((0, _operators.publishReplay)(1), (0, _operators.refCount)());\n this._result = replayedResult;\n this._keys = replayedResult.pipe((0, _operators.flatMap)(function (r) {\n return (0, _rxjs.from)(r.keys());\n }), (0, _operators.publishReplay)(1), (0, _operators.refCount)());\n this._records = new _rxjs.Subject();\n this._summary = new _rxjs.ReplaySubject();\n this._state = States.READY;\n }\n /**\n * Returns an observable that exposes a single item containing field names\n * returned by the executing query.\n *\n * Errors raised by actual query execution can surface on the returned\n * observable stream.\n *\n * @public\n * @returns {Observable} - An observable stream (with exactly one element) of field names.\n */\n\n\n (0, _createClass2[\"default\"])(RxResult, [{\n key: \"keys\",\n value: function keys() {\n return this._keys;\n }\n /**\n * Returns an observable that exposes each record returned by the executing query.\n *\n * Errors raised during the streaming phase can surface on the returned observable stream.\n *\n * @public\n * @returns {Observable} - An observable stream of records.\n */\n\n }, {\n key: \"records\",\n value: function records() {\n var _this = this;\n\n return this._result.pipe((0, _operators.flatMap)(function (result) {\n return new _rxjs.Observable(function (recordsObserver) {\n return _this._startStreaming({\n result: result,\n recordsObserver: recordsObserver\n });\n });\n }));\n }\n /**\n * Returns an observable that exposes a single item of {@link ResultSummary} that is generated by\n * the server after the streaming of the executing query is completed.\n *\n * *Subscribing to this stream before subscribing to records() stream causes the results to be discarded on the server.*\n *\n * @public\n * @returns {Observable} - An observable stream (with exactly one element) of result summary.\n */\n\n }, {\n key: \"consume\",\n value: function consume() {\n var _this2 = this;\n\n return this._result.pipe((0, _operators.flatMap)(function (result) {\n return new _rxjs.Observable(function (summaryObserver) {\n return _this2._startStreaming({\n result: result,\n summaryObserver: summaryObserver\n });\n });\n }));\n }\n }, {\n key: \"_startStreaming\",\n value: function _startStreaming() {\n var _this3 = this;\n\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n result = _ref.result,\n _ref$recordsObserver = _ref.recordsObserver,\n recordsObserver = _ref$recordsObserver === void 0 ? null : _ref$recordsObserver,\n _ref$summaryObserver = _ref.summaryObserver,\n summaryObserver = _ref$summaryObserver === void 0 ? null : _ref$summaryObserver;\n\n var subscriptions = [];\n\n if (summaryObserver) {\n subscriptions.push(this._summary.subscribe(summaryObserver));\n }\n\n if (this._state < States.STREAMING) {\n this._state = States.STREAMING;\n\n if (recordsObserver) {\n subscriptions.push(this._records.subscribe(recordsObserver));\n }\n\n subscriptions.push({\n unsubscribe: function unsubscribe() {\n if (result._cancel) {\n result._cancel();\n }\n }\n });\n\n if (this._records.observers.length === 0) {\n result._cancel();\n }\n\n result.subscribe({\n onNext: function onNext(record) {\n _this3._records.next(record);\n },\n onCompleted: function onCompleted(summary) {\n _this3._records.complete();\n\n _this3._summary.next(summary);\n\n _this3._summary.complete();\n\n _this3._state = States.COMPLETED;\n },\n onError: function onError(err) {\n _this3._records.error(err);\n\n _this3._summary.error(err);\n\n _this3._state = States.COMPLETED;\n }\n });\n } else if (recordsObserver) {\n recordsObserver.error((0, _neo4jDriverCore.newError)('Streaming has already started/consumed with a previous records or summary subscription.'));\n }\n\n return function () {\n subscriptions.forEach(function (s) {\n return s.unsubscribe();\n });\n };\n }\n }]);\n return RxResult;\n}();\n\nexports[\"default\"] = RxResult;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));\n\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createClass\"));\n\nvar _rxjs = require(\"rxjs\");\n\nvar _operators = require(\"rxjs/operators\");\n\nvar _resultRx = _interopRequireDefault(require(\"./result-rx\"));\n\nvar _neo4jDriverCore = require(\"neo4j-driver-core\");\n\nvar _transactionRx = _interopRequireDefault(require(\"./transaction-rx\"));\n\nvar _retryLogicRx = _interopRequireDefault(require(\"./internal/retry-logic-rx\"));\n\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar _internal$constants = _neo4jDriverCore.internal.constants,\n ACCESS_MODE_READ = _internal$constants.ACCESS_MODE_READ,\n ACCESS_MODE_WRITE = _internal$constants.ACCESS_MODE_WRITE,\n TxConfig = _neo4jDriverCore.internal.txConfig.TxConfig;\n/**\n * A Reactive session, which provides the same functionality as {@link Session} but through a Reactive API.\n */\n\nvar RxSession = /*#__PURE__*/function () {\n /**\n * Constructs a reactive session with given default session instance and provided driver configuration.\n *\n * @protected\n * @param {Object} param - Object parameter\n * @param {Session} param.session - The underlying session instance to relay requests\n */\n function RxSession() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n session = _ref.session,\n config = _ref.config;\n\n (0, _classCallCheck2[\"default\"])(this, RxSession);\n this._session = session;\n this._retryLogic = _createRetryLogic(config);\n }\n /**\n * Creates a reactive result that will execute the query with the provided parameters and the provided\n * transaction configuration that applies to the underlying auto-commit transaction.\n *\n * @public\n * @param {string} query - Query to be executed.\n * @param {Object} parameters - Parameter values to use in query execution.\n * @param {TransactionConfig} transactionConfig - Configuration for the new auto-commit transaction.\n * @returns {RxResult} - A reactive result\n */\n\n\n (0, _createClass2[\"default\"])(RxSession, [{\n key: \"run\",\n value: function run(query, parameters, transactionConfig) {\n var _this = this;\n\n return new _resultRx[\"default\"](new _rxjs.Observable(function (observer) {\n try {\n observer.next(_this._session.run(query, parameters, transactionConfig));\n observer.complete();\n } catch (err) {\n observer.error(err);\n }\n\n return function () {};\n }));\n }\n /**\n * Starts a new explicit transaction with the provided transaction configuration.\n *\n * @public\n * @param {TransactionConfig} transactionConfig - Configuration for the new transaction.\n * @returns {Observable} - A reactive stream that will generate at most **one** RxTransaction instance.\n */\n\n }, {\n key: \"beginTransaction\",\n value: function beginTransaction(transactionConfig) {\n return this._beginTransaction(this._session._mode, transactionConfig);\n }\n /**\n * Executes the provided unit of work in a {@link READ} reactive transaction which is created with the provided\n * transaction configuration.\n * @public\n * @param {function(txc: RxTransaction): Observable} work - A unit of work to be executed.\n * @param {TransactionConfig} transactionConfig - Configuration for the enclosing transaction created by the driver.\n * @returns {Observable} - A reactive stream returned by the unit of work.\n */\n\n }, {\n key: \"readTransaction\",\n value: function readTransaction(work, transactionConfig) {\n return this._runTransaction(ACCESS_MODE_READ, work, transactionConfig);\n }\n /**\n * Executes the provided unit of work in a {@link WRITE} reactive transaction which is created with the provided\n * transaction configuration.\n * @public\n * @param {function(txc: RxTransaction): Observable} work - A unit of work to be executed.\n * @param {TransactionConfig} transactionConfig - Configuration for the enclosing transaction created by the driver.\n * @returns {Observable} - A reactive stream returned by the unit of work.\n */\n\n }, {\n key: \"writeTransaction\",\n value: function writeTransaction(work, transactionConfig) {\n return this._runTransaction(ACCESS_MODE_WRITE, work, transactionConfig);\n }\n /**\n * Closes this reactive session.\n *\n * @public\n * @returns {Observable} - An empty reactive stream\n */\n\n }, {\n key: \"close\",\n value: function close() {\n var _this2 = this;\n\n return new _rxjs.Observable(function (observer) {\n _this2._session.close().then(function () {\n observer.complete();\n })[\"catch\"](function (err) {\n return observer.error(err);\n });\n });\n }\n /**\n * Returns the bookmark received following the last successfully completed query, which is executed\n * either in an {@link RxTransaction} obtained from this session instance or directly through one of\n * the {@link RxSession#run} method of this session instance.\n *\n * If no bookmark was received or if this transaction was rolled back, the bookmark value will not be\n * changed.\n *\n * @public\n * @returns {string}\n */\n\n }, {\n key: \"lastBookmark\",\n value: function lastBookmark() {\n return this._session.lastBookmark();\n }\n /**\n * @private\n */\n\n }, {\n key: \"_beginTransaction\",\n value: function _beginTransaction(accessMode, transactionConfig) {\n var _this3 = this;\n\n var txConfig = TxConfig.empty();\n\n if (transactionConfig) {\n txConfig = new TxConfig(transactionConfig);\n }\n\n return new _rxjs.Observable(function (observer) {\n try {\n observer.next(new _transactionRx[\"default\"](_this3._session._beginTransaction(accessMode, txConfig)));\n observer.complete();\n } catch (err) {\n observer.error(err);\n }\n\n return function () {};\n });\n }\n /**\n * @private\n */\n\n }, {\n key: \"_runTransaction\",\n value: function _runTransaction(accessMode, work, transactionConfig) {\n var txConfig = TxConfig.empty();\n\n if (transactionConfig) {\n txConfig = new TxConfig(transactionConfig);\n }\n\n return this._retryLogic.retry(this._beginTransaction(accessMode, transactionConfig).pipe((0, _operators.flatMap)(function (txc) {\n return (0, _rxjs.defer)(function () {\n try {\n return work(txc);\n } catch (err) {\n return (0, _rxjs.throwError)(err);\n }\n }).pipe((0, _operators.catchError)(function (err) {\n return txc.rollback().pipe((0, _operators.concat)((0, _rxjs.throwError)(err)));\n }), (0, _operators.concat)(txc.commit()));\n })));\n }\n }]);\n return RxSession;\n}();\n\nexports[\"default\"] = RxSession;\n\nfunction _createRetryLogic(config) {\n var maxRetryTimeout = config && config.maxTransactionRetryTime ? config.maxTransactionRetryTime : null;\n return new _retryLogicRx[\"default\"]({\n maxRetryTimeout: maxRetryTimeout\n });\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));\n\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createClass\"));\n\nvar _rxjs = require(\"rxjs\");\n\nvar _resultRx = _interopRequireDefault(require(\"./result-rx\"));\n\nvar _neo4jDriverCore = _interopRequireDefault(require(\"neo4j-driver-core\"));\n\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * A reactive transaction, which provides the same functionality as {@link Transaction} but through a Reactive API.\n */\nvar RxTransaction = /*#__PURE__*/function () {\n /**\n * @constructor\n * @protected\n * @param {Transaction} txc - The underlying transaction instance to relay requests\n */\n function RxTransaction(txc) {\n (0, _classCallCheck2[\"default\"])(this, RxTransaction);\n this._txc = txc;\n }\n /**\n * Creates a reactive result that will execute the query in this transaction, with the provided parameters.\n *\n * @public\n * @param {string} query - Query to be executed.\n * @param {Object} parameters - Parameter values to use in query execution.\n * @returns {RxResult} - A reactive result\n */\n\n\n (0, _createClass2[\"default\"])(RxTransaction, [{\n key: \"run\",\n value: function run(query, parameters) {\n var _this = this;\n\n return new _resultRx[\"default\"](new _rxjs.Observable(function (observer) {\n try {\n observer.next(_this._txc.run(query, parameters));\n observer.complete();\n } catch (err) {\n observer.error(err);\n }\n\n return function () {};\n }));\n }\n /**\n * Commits the transaction.\n *\n * @public\n * @returns {Observable} - An empty observable\n */\n\n }, {\n key: \"commit\",\n value: function commit() {\n var _this2 = this;\n\n return new _rxjs.Observable(function (observer) {\n _this2._txc.commit().then(function () {\n observer.complete();\n })[\"catch\"](function (err) {\n return observer.error(err);\n });\n });\n }\n /**\n * Rolls back the transaction.\n *\n * @public\n * @returns {Observable} - An empty observable\n */\n\n }, {\n key: \"rollback\",\n value: function rollback() {\n var _this3 = this;\n\n return new _rxjs.Observable(function (observer) {\n _this3._txc.rollback().then(function () {\n observer.complete();\n })[\"catch\"](function (err) {\n return observer.error(err);\n });\n });\n }\n /**\n * Closes the transaction\n *\n * This method will roll back the transaction if it is not already committed or rolled back.\n *\n * @returns {Observable} - An empty observable\n */\n\n }, {\n key: \"close\",\n value: function close() {\n var _this4 = this;\n\n return new _rxjs.Observable(function (observer) {\n _this4._txc.close().then(function () {\n observer.complete();\n })[\"catch\"](function (err) {\n return observer.error(err);\n });\n });\n }\n }]);\n return RxTransaction;\n}();\n\nexports[\"default\"] = RxTransaction;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// DO NOT CHANGE THE VERSION BELOW HERE\n// This is set by the build system at release time, using\n//\n// gulp set --x \n//\n// This is set up this way to keep the version in the code in\n// sync with the npm package version, and to allow the build\n// system to control version names at packaging time.\nvar _default = '4.4.10';\nexports[\"default\"] = _default;","/** PURE_IMPORTS_START tslib,_AsyncAction PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { AsyncAction } from './AsyncAction';\nvar AnimationFrameAction = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AnimationFrameAction, _super);\n function AnimationFrameAction(scheduler, work) {\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n return _this;\n }\n AnimationFrameAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if (delay !== null && delay > 0) {\n return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);\n }\n scheduler.actions.push(this);\n return scheduler.scheduled || (scheduler.scheduled = requestAnimationFrame(function () { return scheduler.flush(null); }));\n };\n AnimationFrameAction.prototype.recycleAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {\n return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);\n }\n if (scheduler.actions.length === 0) {\n cancelAnimationFrame(id);\n scheduler.scheduled = undefined;\n }\n return undefined;\n };\n return AnimationFrameAction;\n}(AsyncAction));\nexport { AnimationFrameAction };\n//# sourceMappingURL=AnimationFrameAction.js.map\n","/** PURE_IMPORTS_START _AnimationFrameAction,_AnimationFrameScheduler PURE_IMPORTS_END */\nimport { AnimationFrameAction } from './AnimationFrameAction';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\nexport var animationFrameScheduler = /*@__PURE__*/ new AnimationFrameScheduler(AnimationFrameAction);\nexport var animationFrame = animationFrameScheduler;\n//# sourceMappingURL=animationFrame.js.map\n","/** PURE_IMPORTS_START tslib,_AsyncScheduler PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { AsyncScheduler } from './AsyncScheduler';\nvar AnimationFrameScheduler = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AnimationFrameScheduler, _super);\n function AnimationFrameScheduler() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n AnimationFrameScheduler.prototype.flush = function (action) {\n this.active = true;\n this.scheduled = undefined;\n var actions = this.actions;\n var error;\n var index = -1;\n var count = actions.length;\n action = action || actions.shift();\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while (++index < count && (action = actions.shift()));\n this.active = false;\n if (error) {\n while (++index < count && (action = actions.shift())) {\n action.unsubscribe();\n }\n throw error;\n }\n };\n return AnimationFrameScheduler;\n}(AsyncScheduler));\nexport { AnimationFrameScheduler };\n//# sourceMappingURL=AnimationFrameScheduler.js.map\n","/** PURE_IMPORTS_START tslib,_AsyncAction,_AsyncScheduler PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\nvar VirtualTimeScheduler = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(VirtualTimeScheduler, _super);\n function VirtualTimeScheduler(SchedulerAction, maxFrames) {\n if (SchedulerAction === void 0) {\n SchedulerAction = VirtualAction;\n }\n if (maxFrames === void 0) {\n maxFrames = Number.POSITIVE_INFINITY;\n }\n var _this = _super.call(this, SchedulerAction, function () { return _this.frame; }) || this;\n _this.maxFrames = maxFrames;\n _this.frame = 0;\n _this.index = -1;\n return _this;\n }\n VirtualTimeScheduler.prototype.flush = function () {\n var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;\n var error, action;\n while ((action = actions[0]) && action.delay <= maxFrames) {\n actions.shift();\n this.frame = action.delay;\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n }\n if (error) {\n while (action = actions.shift()) {\n action.unsubscribe();\n }\n throw error;\n }\n };\n VirtualTimeScheduler.frameTimeFactor = 10;\n return VirtualTimeScheduler;\n}(AsyncScheduler));\nexport { VirtualTimeScheduler };\nvar VirtualAction = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(VirtualAction, _super);\n function VirtualAction(scheduler, work, index) {\n if (index === void 0) {\n index = scheduler.index += 1;\n }\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n _this.index = index;\n _this.active = true;\n _this.index = scheduler.index = index;\n return _this;\n }\n VirtualAction.prototype.schedule = function (state, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if (!this.id) {\n return _super.prototype.schedule.call(this, state, delay);\n }\n this.active = false;\n var action = new VirtualAction(this.scheduler, this.work);\n this.add(action);\n return action.schedule(state, delay);\n };\n VirtualAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n this.delay = scheduler.frame + delay;\n var actions = scheduler.actions;\n actions.push(this);\n actions.sort(VirtualAction.sortActions);\n return true;\n };\n VirtualAction.prototype.recycleAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n return undefined;\n };\n VirtualAction.prototype._execute = function (state, delay) {\n if (this.active === true) {\n return _super.prototype._execute.call(this, state, delay);\n }\n };\n VirtualAction.sortActions = function (a, b) {\n if (a.delay === b.delay) {\n if (a.index === b.index) {\n return 0;\n }\n else if (a.index > b.index) {\n return 1;\n }\n else {\n return -1;\n }\n }\n else if (a.delay > b.delay) {\n return 1;\n }\n else {\n return -1;\n }\n };\n return VirtualAction;\n}(AsyncAction));\nexport { VirtualAction };\n//# sourceMappingURL=VirtualTimeScheduler.js.map\n","/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nexport function isObservable(obj) {\n return !!obj && (obj instanceof Observable || (typeof obj.lift === 'function' && typeof obj.subscribe === 'function'));\n}\n//# sourceMappingURL=isObservable.js.map\n","/** PURE_IMPORTS_START _Observable,_AsyncSubject,_operators_map,_util_canReportError,_util_isArray,_util_isScheduler PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { AsyncSubject } from '../AsyncSubject';\nimport { map } from '../operators/map';\nimport { canReportError } from '../util/canReportError';\nimport { isArray } from '../util/isArray';\nimport { isScheduler } from '../util/isScheduler';\nexport function bindCallback(callbackFunc, resultSelector, scheduler) {\n if (resultSelector) {\n if (isScheduler(resultSelector)) {\n scheduler = resultSelector;\n }\n else {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return bindCallback(callbackFunc, scheduler).apply(void 0, args).pipe(map(function (args) { return isArray(args) ? resultSelector.apply(void 0, args) : resultSelector(args); }));\n };\n }\n }\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var context = this;\n var subject;\n var params = {\n context: context,\n subject: subject,\n callbackFunc: callbackFunc,\n scheduler: scheduler,\n };\n return new Observable(function (subscriber) {\n if (!scheduler) {\n if (!subject) {\n subject = new AsyncSubject();\n var handler = function () {\n var innerArgs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n innerArgs[_i] = arguments[_i];\n }\n subject.next(innerArgs.length <= 1 ? innerArgs[0] : innerArgs);\n subject.complete();\n };\n try {\n callbackFunc.apply(context, args.concat([handler]));\n }\n catch (err) {\n if (canReportError(subject)) {\n subject.error(err);\n }\n else {\n console.warn(err);\n }\n }\n }\n return subject.subscribe(subscriber);\n }\n else {\n var state = {\n args: args, subscriber: subscriber, params: params,\n };\n return scheduler.schedule(dispatch, 0, state);\n }\n });\n };\n}\nfunction dispatch(state) {\n var _this = this;\n var self = this;\n var args = state.args, subscriber = state.subscriber, params = state.params;\n var callbackFunc = params.callbackFunc, context = params.context, scheduler = params.scheduler;\n var subject = params.subject;\n if (!subject) {\n subject = params.subject = new AsyncSubject();\n var handler = function () {\n var innerArgs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n innerArgs[_i] = arguments[_i];\n }\n var value = innerArgs.length <= 1 ? innerArgs[0] : innerArgs;\n _this.add(scheduler.schedule(dispatchNext, 0, { value: value, subject: subject }));\n };\n try {\n callbackFunc.apply(context, args.concat([handler]));\n }\n catch (err) {\n subject.error(err);\n }\n }\n this.add(subject.subscribe(subscriber));\n}\nfunction dispatchNext(state) {\n var value = state.value, subject = state.subject;\n subject.next(value);\n subject.complete();\n}\nfunction dispatchError(state) {\n var err = state.err, subject = state.subject;\n subject.error(err);\n}\n//# sourceMappingURL=bindCallback.js.map\n","/** PURE_IMPORTS_START _Observable,_AsyncSubject,_operators_map,_util_canReportError,_util_isScheduler,_util_isArray PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { AsyncSubject } from '../AsyncSubject';\nimport { map } from '../operators/map';\nimport { canReportError } from '../util/canReportError';\nimport { isScheduler } from '../util/isScheduler';\nimport { isArray } from '../util/isArray';\nexport function bindNodeCallback(callbackFunc, resultSelector, scheduler) {\n if (resultSelector) {\n if (isScheduler(resultSelector)) {\n scheduler = resultSelector;\n }\n else {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return bindNodeCallback(callbackFunc, scheduler).apply(void 0, args).pipe(map(function (args) { return isArray(args) ? resultSelector.apply(void 0, args) : resultSelector(args); }));\n };\n }\n }\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var params = {\n subject: undefined,\n args: args,\n callbackFunc: callbackFunc,\n scheduler: scheduler,\n context: this,\n };\n return new Observable(function (subscriber) {\n var context = params.context;\n var subject = params.subject;\n if (!scheduler) {\n if (!subject) {\n subject = params.subject = new AsyncSubject();\n var handler = function () {\n var innerArgs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n innerArgs[_i] = arguments[_i];\n }\n var err = innerArgs.shift();\n if (err) {\n subject.error(err);\n return;\n }\n subject.next(innerArgs.length <= 1 ? innerArgs[0] : innerArgs);\n subject.complete();\n };\n try {\n callbackFunc.apply(context, args.concat([handler]));\n }\n catch (err) {\n if (canReportError(subject)) {\n subject.error(err);\n }\n else {\n console.warn(err);\n }\n }\n }\n return subject.subscribe(subscriber);\n }\n else {\n return scheduler.schedule(dispatch, 0, { params: params, subscriber: subscriber, context: context });\n }\n });\n };\n}\nfunction dispatch(state) {\n var _this = this;\n var params = state.params, subscriber = state.subscriber, context = state.context;\n var callbackFunc = params.callbackFunc, args = params.args, scheduler = params.scheduler;\n var subject = params.subject;\n if (!subject) {\n subject = params.subject = new AsyncSubject();\n var handler = function () {\n var innerArgs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n innerArgs[_i] = arguments[_i];\n }\n var err = innerArgs.shift();\n if (err) {\n _this.add(scheduler.schedule(dispatchError, 0, { err: err, subject: subject }));\n }\n else {\n var value = innerArgs.length <= 1 ? innerArgs[0] : innerArgs;\n _this.add(scheduler.schedule(dispatchNext, 0, { value: value, subject: subject }));\n }\n };\n try {\n callbackFunc.apply(context, args.concat([handler]));\n }\n catch (err) {\n this.add(scheduler.schedule(dispatchError, 0, { err: err, subject: subject }));\n }\n }\n this.add(subject.subscribe(subscriber));\n}\nfunction dispatchNext(arg) {\n var value = arg.value, subject = arg.subject;\n subject.next(value);\n subject.complete();\n}\nfunction dispatchError(arg) {\n var err = arg.err, subject = arg.subject;\n subject.error(err);\n}\n//# sourceMappingURL=bindNodeCallback.js.map\n","/** PURE_IMPORTS_START _Observable,_util_isArray,_operators_map,_util_isObject,_from PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { isArray } from '../util/isArray';\nimport { map } from '../operators/map';\nimport { isObject } from '../util/isObject';\nimport { from } from './from';\nexport function forkJoin() {\n var sources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n sources[_i] = arguments[_i];\n }\n if (sources.length === 1) {\n var first_1 = sources[0];\n if (isArray(first_1)) {\n return forkJoinInternal(first_1, null);\n }\n if (isObject(first_1) && Object.getPrototypeOf(first_1) === Object.prototype) {\n var keys = Object.keys(first_1);\n return forkJoinInternal(keys.map(function (key) { return first_1[key]; }), keys);\n }\n }\n if (typeof sources[sources.length - 1] === 'function') {\n var resultSelector_1 = sources.pop();\n sources = (sources.length === 1 && isArray(sources[0])) ? sources[0] : sources;\n return forkJoinInternal(sources, null).pipe(map(function (args) { return resultSelector_1.apply(void 0, args); }));\n }\n return forkJoinInternal(sources, null);\n}\nfunction forkJoinInternal(sources, keys) {\n return new Observable(function (subscriber) {\n var len = sources.length;\n if (len === 0) {\n subscriber.complete();\n return;\n }\n var values = new Array(len);\n var completed = 0;\n var emitted = 0;\n var _loop_1 = function (i) {\n var source = from(sources[i]);\n var hasValue = false;\n subscriber.add(source.subscribe({\n next: function (value) {\n if (!hasValue) {\n hasValue = true;\n emitted++;\n }\n values[i] = value;\n },\n error: function (err) { return subscriber.error(err); },\n complete: function () {\n completed++;\n if (completed === len || !hasValue) {\n if (emitted === len) {\n subscriber.next(keys ?\n keys.reduce(function (result, key, i) { return (result[key] = values[i], result); }, {}) :\n values);\n }\n subscriber.complete();\n }\n }\n }));\n };\n for (var i = 0; i < len; i++) {\n _loop_1(i);\n }\n });\n}\n//# sourceMappingURL=forkJoin.js.map\n","/** PURE_IMPORTS_START _Observable,_util_isArray,_util_isFunction,_operators_map PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { isArray } from '../util/isArray';\nimport { isFunction } from '../util/isFunction';\nimport { map } from '../operators/map';\nvar toString = /*@__PURE__*/ (function () { return Object.prototype.toString; })();\nexport function fromEvent(target, eventName, options, resultSelector) {\n if (isFunction(options)) {\n resultSelector = options;\n options = undefined;\n }\n if (resultSelector) {\n return fromEvent(target, eventName, options).pipe(map(function (args) { return isArray(args) ? resultSelector.apply(void 0, args) : resultSelector(args); }));\n }\n return new Observable(function (subscriber) {\n function handler(e) {\n if (arguments.length > 1) {\n subscriber.next(Array.prototype.slice.call(arguments));\n }\n else {\n subscriber.next(e);\n }\n }\n setupSubscription(target, eventName, handler, subscriber, options);\n });\n}\nfunction setupSubscription(sourceObj, eventName, handler, subscriber, options) {\n var unsubscribe;\n if (isEventTarget(sourceObj)) {\n var source_1 = sourceObj;\n sourceObj.addEventListener(eventName, handler, options);\n unsubscribe = function () { return source_1.removeEventListener(eventName, handler, options); };\n }\n else if (isJQueryStyleEventEmitter(sourceObj)) {\n var source_2 = sourceObj;\n sourceObj.on(eventName, handler);\n unsubscribe = function () { return source_2.off(eventName, handler); };\n }\n else if (isNodeStyleEventEmitter(sourceObj)) {\n var source_3 = sourceObj;\n sourceObj.addListener(eventName, handler);\n unsubscribe = function () { return source_3.removeListener(eventName, handler); };\n }\n else if (sourceObj && sourceObj.length) {\n for (var i = 0, len = sourceObj.length; i < len; i++) {\n setupSubscription(sourceObj[i], eventName, handler, subscriber, options);\n }\n }\n else {\n throw new TypeError('Invalid event target');\n }\n subscriber.add(unsubscribe);\n}\nfunction isNodeStyleEventEmitter(sourceObj) {\n return sourceObj && typeof sourceObj.addListener === 'function' && typeof sourceObj.removeListener === 'function';\n}\nfunction isJQueryStyleEventEmitter(sourceObj) {\n return sourceObj && typeof sourceObj.on === 'function' && typeof sourceObj.off === 'function';\n}\nfunction isEventTarget(sourceObj) {\n return sourceObj && typeof sourceObj.addEventListener === 'function' && typeof sourceObj.removeEventListener === 'function';\n}\n//# sourceMappingURL=fromEvent.js.map\n","/** PURE_IMPORTS_START _Observable,_util_isArray,_util_isFunction,_operators_map PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { isArray } from '../util/isArray';\nimport { isFunction } from '../util/isFunction';\nimport { map } from '../operators/map';\nexport function fromEventPattern(addHandler, removeHandler, resultSelector) {\n if (resultSelector) {\n return fromEventPattern(addHandler, removeHandler).pipe(map(function (args) { return isArray(args) ? resultSelector.apply(void 0, args) : resultSelector(args); }));\n }\n return new Observable(function (subscriber) {\n var handler = function () {\n var e = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n e[_i] = arguments[_i];\n }\n return subscriber.next(e.length === 1 ? e[0] : e);\n };\n var retValue;\n try {\n retValue = addHandler(handler);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n if (!isFunction(removeHandler)) {\n return undefined;\n }\n return function () { return removeHandler(handler, retValue); };\n });\n}\n//# sourceMappingURL=fromEventPattern.js.map\n","/** PURE_IMPORTS_START _Observable,_util_identity,_util_isScheduler PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { identity } from '../util/identity';\nimport { isScheduler } from '../util/isScheduler';\nexport function generate(initialStateOrOptions, condition, iterate, resultSelectorOrObservable, scheduler) {\n var resultSelector;\n var initialState;\n if (arguments.length == 1) {\n var options = initialStateOrOptions;\n initialState = options.initialState;\n condition = options.condition;\n iterate = options.iterate;\n resultSelector = options.resultSelector || identity;\n scheduler = options.scheduler;\n }\n else if (resultSelectorOrObservable === undefined || isScheduler(resultSelectorOrObservable)) {\n initialState = initialStateOrOptions;\n resultSelector = identity;\n scheduler = resultSelectorOrObservable;\n }\n else {\n initialState = initialStateOrOptions;\n resultSelector = resultSelectorOrObservable;\n }\n return new Observable(function (subscriber) {\n var state = initialState;\n if (scheduler) {\n return scheduler.schedule(dispatch, 0, {\n subscriber: subscriber,\n iterate: iterate,\n condition: condition,\n resultSelector: resultSelector,\n state: state\n });\n }\n do {\n if (condition) {\n var conditionResult = void 0;\n try {\n conditionResult = condition(state);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n if (!conditionResult) {\n subscriber.complete();\n break;\n }\n }\n var value = void 0;\n try {\n value = resultSelector(state);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n subscriber.next(value);\n if (subscriber.closed) {\n break;\n }\n try {\n state = iterate(state);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n } while (true);\n return undefined;\n });\n}\nfunction dispatch(state) {\n var subscriber = state.subscriber, condition = state.condition;\n if (subscriber.closed) {\n return undefined;\n }\n if (state.needIterate) {\n try {\n state.state = state.iterate(state.state);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n }\n else {\n state.needIterate = true;\n }\n if (condition) {\n var conditionResult = void 0;\n try {\n conditionResult = condition(state.state);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n if (!conditionResult) {\n subscriber.complete();\n return undefined;\n }\n if (subscriber.closed) {\n return undefined;\n }\n }\n var value;\n try {\n value = state.resultSelector(state.state);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n if (subscriber.closed) {\n return undefined;\n }\n subscriber.next(value);\n if (subscriber.closed) {\n return undefined;\n }\n return this.schedule(state);\n}\n//# sourceMappingURL=generate.js.map\n","/** PURE_IMPORTS_START _defer,_empty PURE_IMPORTS_END */\nimport { defer } from './defer';\nimport { EMPTY } from './empty';\nexport function iif(condition, trueResult, falseResult) {\n if (trueResult === void 0) {\n trueResult = EMPTY;\n }\n if (falseResult === void 0) {\n falseResult = EMPTY;\n }\n return defer(function () { return condition() ? trueResult : falseResult; });\n}\n//# sourceMappingURL=iif.js.map\n","/** PURE_IMPORTS_START _Observable,_scheduler_async,_util_isNumeric PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { async } from '../scheduler/async';\nimport { isNumeric } from '../util/isNumeric';\nexport function interval(period, scheduler) {\n if (period === void 0) {\n period = 0;\n }\n if (scheduler === void 0) {\n scheduler = async;\n }\n if (!isNumeric(period) || period < 0) {\n period = 0;\n }\n if (!scheduler || typeof scheduler.schedule !== 'function') {\n scheduler = async;\n }\n return new Observable(function (subscriber) {\n subscriber.add(scheduler.schedule(dispatch, period, { subscriber: subscriber, counter: 0, period: period }));\n return subscriber;\n });\n}\nfunction dispatch(state) {\n var subscriber = state.subscriber, counter = state.counter, period = state.period;\n subscriber.next(counter);\n this.schedule({ subscriber: subscriber, counter: counter + 1, period: period }, period);\n}\n//# sourceMappingURL=interval.js.map\n","/** PURE_IMPORTS_START _Observable,_util_noop PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { noop } from '../util/noop';\nexport var NEVER = /*@__PURE__*/ new Observable(noop);\nexport function never() {\n return NEVER;\n}\n//# sourceMappingURL=never.js.map\n","/** PURE_IMPORTS_START _Observable,_from,_util_isArray,_empty PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { from } from './from';\nimport { isArray } from '../util/isArray';\nimport { EMPTY } from './empty';\nexport function onErrorResumeNext() {\n var sources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n sources[_i] = arguments[_i];\n }\n if (sources.length === 0) {\n return EMPTY;\n }\n var first = sources[0], remainder = sources.slice(1);\n if (sources.length === 1 && isArray(first)) {\n return onErrorResumeNext.apply(void 0, first);\n }\n return new Observable(function (subscriber) {\n var subNext = function () { return subscriber.add(onErrorResumeNext.apply(void 0, remainder).subscribe(subscriber)); };\n return from(first).subscribe({\n next: function (value) { subscriber.next(value); },\n error: subNext,\n complete: subNext,\n });\n });\n}\n//# sourceMappingURL=onErrorResumeNext.js.map\n","/** PURE_IMPORTS_START _Observable,_Subscription PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nexport function pairs(obj, scheduler) {\n if (!scheduler) {\n return new Observable(function (subscriber) {\n var keys = Object.keys(obj);\n for (var i = 0; i < keys.length && !subscriber.closed; i++) {\n var key = keys[i];\n if (obj.hasOwnProperty(key)) {\n subscriber.next([key, obj[key]]);\n }\n }\n subscriber.complete();\n });\n }\n else {\n return new Observable(function (subscriber) {\n var keys = Object.keys(obj);\n var subscription = new Subscription();\n subscription.add(scheduler.schedule(dispatch, 0, { keys: keys, index: 0, subscriber: subscriber, subscription: subscription, obj: obj }));\n return subscription;\n });\n }\n}\nexport function dispatch(state) {\n var keys = state.keys, index = state.index, subscriber = state.subscriber, subscription = state.subscription, obj = state.obj;\n if (!subscriber.closed) {\n if (index < keys.length) {\n var key = keys[index];\n subscriber.next([key, obj[key]]);\n subscription.add(this.schedule({ keys: keys, index: index + 1, subscriber: subscriber, subscription: subscription, obj: obj }));\n }\n else {\n subscriber.complete();\n }\n }\n}\n//# sourceMappingURL=pairs.js.map\n","/** PURE_IMPORTS_START _util_not,_util_subscribeTo,_operators_filter,_Observable PURE_IMPORTS_END */\nimport { not } from '../util/not';\nimport { subscribeTo } from '../util/subscribeTo';\nimport { filter } from '../operators/filter';\nimport { Observable } from '../Observable';\nexport function partition(source, predicate, thisArg) {\n return [\n filter(predicate, thisArg)(new Observable(subscribeTo(source))),\n filter(not(predicate, thisArg))(new Observable(subscribeTo(source)))\n ];\n}\n//# sourceMappingURL=partition.js.map\n","/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nexport function range(start, count, scheduler) {\n if (start === void 0) {\n start = 0;\n }\n return new Observable(function (subscriber) {\n if (count === undefined) {\n count = start;\n start = 0;\n }\n var index = 0;\n var current = start;\n if (scheduler) {\n return scheduler.schedule(dispatch, 0, {\n index: index, count: count, start: start, subscriber: subscriber\n });\n }\n else {\n do {\n if (index++ >= count) {\n subscriber.complete();\n break;\n }\n subscriber.next(current++);\n if (subscriber.closed) {\n break;\n }\n } while (true);\n }\n return undefined;\n });\n}\nexport function dispatch(state) {\n var start = state.start, index = state.index, count = state.count, subscriber = state.subscriber;\n if (index >= count) {\n subscriber.complete();\n return;\n }\n subscriber.next(start);\n if (subscriber.closed) {\n return;\n }\n state.index = index + 1;\n state.start = start + 1;\n this.schedule(state);\n}\n//# sourceMappingURL=range.js.map\n","/** PURE_IMPORTS_START _Observable,_from,_empty PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { from } from './from';\nimport { EMPTY } from './empty';\nexport function using(resourceFactory, observableFactory) {\n return new Observable(function (subscriber) {\n var resource;\n try {\n resource = resourceFactory();\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n var result;\n try {\n result = observableFactory(resource);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n var source = result ? from(result) : EMPTY;\n var subscription = source.subscribe(subscriber);\n return function () {\n subscription.unsubscribe();\n if (resource) {\n resource.unsubscribe();\n }\n };\n });\n}\n//# sourceMappingURL=using.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_Subscription PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subject } from './Subject';\nimport { Subscription } from './Subscription';\nvar AsyncSubject = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AsyncSubject, _super);\n function AsyncSubject() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.value = null;\n _this.hasNext = false;\n _this.hasCompleted = false;\n return _this;\n }\n AsyncSubject.prototype._subscribe = function (subscriber) {\n if (this.hasError) {\n subscriber.error(this.thrownError);\n return Subscription.EMPTY;\n }\n else if (this.hasCompleted && this.hasNext) {\n subscriber.next(this.value);\n subscriber.complete();\n return Subscription.EMPTY;\n }\n return _super.prototype._subscribe.call(this, subscriber);\n };\n AsyncSubject.prototype.next = function (value) {\n if (!this.hasCompleted) {\n this.value = value;\n this.hasNext = true;\n }\n };\n AsyncSubject.prototype.error = function (error) {\n if (!this.hasCompleted) {\n _super.prototype.error.call(this, error);\n }\n };\n AsyncSubject.prototype.complete = function () {\n this.hasCompleted = true;\n if (this.hasNext) {\n _super.prototype.next.call(this, this.value);\n }\n _super.prototype.complete.call(this);\n };\n return AsyncSubject;\n}(Subject));\nexport { AsyncSubject };\n//# sourceMappingURL=AsyncSubject.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_util_ObjectUnsubscribedError PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subject } from './Subject';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nvar BehaviorSubject = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(BehaviorSubject, _super);\n function BehaviorSubject(_value) {\n var _this = _super.call(this) || this;\n _this._value = _value;\n return _this;\n }\n Object.defineProperty(BehaviorSubject.prototype, \"value\", {\n get: function () {\n return this.getValue();\n },\n enumerable: true,\n configurable: true\n });\n BehaviorSubject.prototype._subscribe = function (subscriber) {\n var subscription = _super.prototype._subscribe.call(this, subscriber);\n if (subscription && !subscription.closed) {\n subscriber.next(this._value);\n }\n return subscription;\n };\n BehaviorSubject.prototype.getValue = function () {\n if (this.hasError) {\n throw this.thrownError;\n }\n else if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else {\n return this._value;\n }\n };\n BehaviorSubject.prototype.next = function (value) {\n _super.prototype.next.call(this, this._value = value);\n };\n return BehaviorSubject;\n}(Subject));\nexport { BehaviorSubject };\n//# sourceMappingURL=BehaviorSubject.js.map\n","/** PURE_IMPORTS_START _observable_empty,_observable_of,_observable_throwError PURE_IMPORTS_END */\nimport { empty } from './observable/empty';\nimport { of } from './observable/of';\nimport { throwError } from './observable/throwError';\nexport var NotificationKind;\n/*@__PURE__*/ (function (NotificationKind) {\n NotificationKind[\"NEXT\"] = \"N\";\n NotificationKind[\"ERROR\"] = \"E\";\n NotificationKind[\"COMPLETE\"] = \"C\";\n})(NotificationKind || (NotificationKind = {}));\nvar Notification = /*@__PURE__*/ (function () {\n function Notification(kind, value, error) {\n this.kind = kind;\n this.value = value;\n this.error = error;\n this.hasValue = kind === 'N';\n }\n Notification.prototype.observe = function (observer) {\n switch (this.kind) {\n case 'N':\n return observer.next && observer.next(this.value);\n case 'E':\n return observer.error && observer.error(this.error);\n case 'C':\n return observer.complete && observer.complete();\n }\n };\n Notification.prototype.do = function (next, error, complete) {\n var kind = this.kind;\n switch (kind) {\n case 'N':\n return next && next(this.value);\n case 'E':\n return error && error(this.error);\n case 'C':\n return complete && complete();\n }\n };\n Notification.prototype.accept = function (nextOrObserver, error, complete) {\n if (nextOrObserver && typeof nextOrObserver.next === 'function') {\n return this.observe(nextOrObserver);\n }\n else {\n return this.do(nextOrObserver, error, complete);\n }\n };\n Notification.prototype.toObservable = function () {\n var kind = this.kind;\n switch (kind) {\n case 'N':\n return of(this.value);\n case 'E':\n return throwError(this.error);\n case 'C':\n return empty();\n }\n throw new Error('unexpected notification kind value');\n };\n Notification.createNext = function (value) {\n if (typeof value !== 'undefined') {\n return new Notification('N', value);\n }\n return Notification.undefinedValueNotification;\n };\n Notification.createError = function (err) {\n return new Notification('E', undefined, err);\n };\n Notification.createComplete = function () {\n return Notification.completeNotification;\n };\n Notification.completeNotification = new Notification('C');\n Notification.undefinedValueNotification = new Notification('N', undefined);\n return Notification;\n}());\nexport { Notification };\n//# sourceMappingURL=Notification.js.map\n","/** PURE_IMPORTS_START _util_canReportError,_util_toSubscriber,_symbol_observable,_util_pipe,_config PURE_IMPORTS_END */\nimport { canReportError } from './util/canReportError';\nimport { toSubscriber } from './util/toSubscriber';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nvar Observable = /*@__PURE__*/ (function () {\n function Observable(subscribe) {\n this._isScalar = false;\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n Observable.prototype.lift = function (operator) {\n var observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n };\n Observable.prototype.subscribe = function (observerOrNext, error, complete) {\n var operator = this.operator;\n var sink = toSubscriber(observerOrNext, error, complete);\n if (operator) {\n sink.add(operator.call(sink, this.source));\n }\n else {\n sink.add(this.source || (config.useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable) ?\n this._subscribe(sink) :\n this._trySubscribe(sink));\n }\n if (config.useDeprecatedSynchronousErrorHandling) {\n if (sink.syncErrorThrowable) {\n sink.syncErrorThrowable = false;\n if (sink.syncErrorThrown) {\n throw sink.syncErrorValue;\n }\n }\n }\n return sink;\n };\n Observable.prototype._trySubscribe = function (sink) {\n try {\n return this._subscribe(sink);\n }\n catch (err) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n sink.syncErrorThrown = true;\n sink.syncErrorValue = err;\n }\n if (canReportError(sink)) {\n sink.error(err);\n }\n else {\n console.warn(err);\n }\n }\n };\n Observable.prototype.forEach = function (next, promiseCtor) {\n var _this = this;\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor(function (resolve, reject) {\n var subscription;\n subscription = _this.subscribe(function (value) {\n try {\n next(value);\n }\n catch (err) {\n reject(err);\n if (subscription) {\n subscription.unsubscribe();\n }\n }\n }, reject, resolve);\n });\n };\n Observable.prototype._subscribe = function (subscriber) {\n var source = this.source;\n return source && source.subscribe(subscriber);\n };\n Observable.prototype[Symbol_observable] = function () {\n return this;\n };\n Observable.prototype.pipe = function () {\n var operations = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n operations[_i] = arguments[_i];\n }\n if (operations.length === 0) {\n return this;\n }\n return pipeFromArray(operations)(this);\n };\n Observable.prototype.toPromise = function (promiseCtor) {\n var _this = this;\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor(function (resolve, reject) {\n var value;\n _this.subscribe(function (x) { return value = x; }, function (err) { return reject(err); }, function () { return resolve(value); });\n });\n };\n Observable.create = function (subscribe) {\n return new Observable(subscribe);\n };\n return Observable;\n}());\nexport { Observable };\nfunction getPromiseCtor(promiseCtor) {\n if (!promiseCtor) {\n promiseCtor = config.Promise || Promise;\n }\n if (!promiseCtor) {\n throw new Error('no Promise impl found');\n }\n return promiseCtor;\n}\n//# sourceMappingURL=Observable.js.map\n","/** PURE_IMPORTS_START _Subscriber,_symbol_rxSubscriber,_Observer PURE_IMPORTS_END */\nimport { Subscriber } from '../Subscriber';\nimport { rxSubscriber as rxSubscriberSymbol } from '../symbol/rxSubscriber';\nimport { empty as emptyObserver } from '../Observer';\nexport function toSubscriber(nextOrObserver, error, complete) {\n if (nextOrObserver) {\n if (nextOrObserver instanceof Subscriber) {\n return nextOrObserver;\n }\n if (nextOrObserver[rxSubscriberSymbol]) {\n return nextOrObserver[rxSubscriberSymbol]();\n }\n }\n if (!nextOrObserver && !error && !complete) {\n return new Subscriber(emptyObserver);\n }\n return new Subscriber(nextOrObserver, error, complete);\n}\n//# sourceMappingURL=toSubscriber.js.map\n","/** PURE_IMPORTS_START _config,_util_hostReportError PURE_IMPORTS_END */\nimport { config } from './config';\nimport { hostReportError } from './util/hostReportError';\nexport var empty = {\n closed: true,\n next: function (value) { },\n error: function (err) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n throw err;\n }\n else {\n hostReportError(err);\n }\n },\n complete: function () { }\n};\n//# sourceMappingURL=Observer.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from './Subscriber';\nvar OuterSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(OuterSubscriber, _super);\n function OuterSubscriber() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n OuterSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n this.destination.next(innerValue);\n };\n OuterSubscriber.prototype.notifyError = function (error, innerSub) {\n this.destination.error(error);\n };\n OuterSubscriber.prototype.notifyComplete = function (innerSub) {\n this.destination.complete();\n };\n return OuterSubscriber;\n}(Subscriber));\nexport { OuterSubscriber };\n//# sourceMappingURL=OuterSubscriber.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_scheduler_queue,_Subscription,_operators_observeOn,_util_ObjectUnsubscribedError,_SubjectSubscription PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subject } from './Subject';\nimport { queue } from './scheduler/queue';\nimport { Subscription } from './Subscription';\nimport { ObserveOnSubscriber } from './operators/observeOn';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { SubjectSubscription } from './SubjectSubscription';\nvar ReplaySubject = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ReplaySubject, _super);\n function ReplaySubject(bufferSize, windowTime, scheduler) {\n if (bufferSize === void 0) {\n bufferSize = Number.POSITIVE_INFINITY;\n }\n if (windowTime === void 0) {\n windowTime = Number.POSITIVE_INFINITY;\n }\n var _this = _super.call(this) || this;\n _this.scheduler = scheduler;\n _this._events = [];\n _this._infiniteTimeWindow = false;\n _this._bufferSize = bufferSize < 1 ? 1 : bufferSize;\n _this._windowTime = windowTime < 1 ? 1 : windowTime;\n if (windowTime === Number.POSITIVE_INFINITY) {\n _this._infiniteTimeWindow = true;\n _this.next = _this.nextInfiniteTimeWindow;\n }\n else {\n _this.next = _this.nextTimeWindow;\n }\n return _this;\n }\n ReplaySubject.prototype.nextInfiniteTimeWindow = function (value) {\n if (!this.isStopped) {\n var _events = this._events;\n _events.push(value);\n if (_events.length > this._bufferSize) {\n _events.shift();\n }\n }\n _super.prototype.next.call(this, value);\n };\n ReplaySubject.prototype.nextTimeWindow = function (value) {\n if (!this.isStopped) {\n this._events.push(new ReplayEvent(this._getNow(), value));\n this._trimBufferThenGetEvents();\n }\n _super.prototype.next.call(this, value);\n };\n ReplaySubject.prototype._subscribe = function (subscriber) {\n var _infiniteTimeWindow = this._infiniteTimeWindow;\n var _events = _infiniteTimeWindow ? this._events : this._trimBufferThenGetEvents();\n var scheduler = this.scheduler;\n var len = _events.length;\n var subscription;\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else if (this.isStopped || this.hasError) {\n subscription = Subscription.EMPTY;\n }\n else {\n this.observers.push(subscriber);\n subscription = new SubjectSubscription(this, subscriber);\n }\n if (scheduler) {\n subscriber.add(subscriber = new ObserveOnSubscriber(subscriber, scheduler));\n }\n if (_infiniteTimeWindow) {\n for (var i = 0; i < len && !subscriber.closed; i++) {\n subscriber.next(_events[i]);\n }\n }\n else {\n for (var i = 0; i < len && !subscriber.closed; i++) {\n subscriber.next(_events[i].value);\n }\n }\n if (this.hasError) {\n subscriber.error(this.thrownError);\n }\n else if (this.isStopped) {\n subscriber.complete();\n }\n return subscription;\n };\n ReplaySubject.prototype._getNow = function () {\n return (this.scheduler || queue).now();\n };\n ReplaySubject.prototype._trimBufferThenGetEvents = function () {\n var now = this._getNow();\n var _bufferSize = this._bufferSize;\n var _windowTime = this._windowTime;\n var _events = this._events;\n var eventsCount = _events.length;\n var spliceCount = 0;\n while (spliceCount < eventsCount) {\n if ((now - _events[spliceCount].time) < _windowTime) {\n break;\n }\n spliceCount++;\n }\n if (eventsCount > _bufferSize) {\n spliceCount = Math.max(spliceCount, eventsCount - _bufferSize);\n }\n if (spliceCount > 0) {\n _events.splice(0, spliceCount);\n }\n return _events;\n };\n return ReplaySubject;\n}(Subject));\nexport { ReplaySubject };\nvar ReplayEvent = /*@__PURE__*/ (function () {\n function ReplayEvent(time, value) {\n this.time = time;\n this.value = value;\n }\n return ReplayEvent;\n}());\n//# sourceMappingURL=ReplaySubject.js.map\n","var Scheduler = /*@__PURE__*/ (function () {\n function Scheduler(SchedulerAction, now) {\n if (now === void 0) {\n now = Scheduler.now;\n }\n this.SchedulerAction = SchedulerAction;\n this.now = now;\n }\n Scheduler.prototype.schedule = function (work, delay, state) {\n if (delay === void 0) {\n delay = 0;\n }\n return new this.SchedulerAction(this, work).schedule(state, delay);\n };\n Scheduler.now = function () { return Date.now(); };\n return Scheduler;\n}());\nexport { Scheduler };\n//# sourceMappingURL=Scheduler.js.map\n","/** PURE_IMPORTS_START tslib,_Observable,_Subscriber,_Subscription,_util_ObjectUnsubscribedError,_SubjectSubscription,_internal_symbol_rxSubscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Observable } from './Observable';\nimport { Subscriber } from './Subscriber';\nimport { Subscription } from './Subscription';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { SubjectSubscription } from './SubjectSubscription';\nimport { rxSubscriber as rxSubscriberSymbol } from '../internal/symbol/rxSubscriber';\nvar SubjectSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SubjectSubscriber, _super);\n function SubjectSubscriber(destination) {\n var _this = _super.call(this, destination) || this;\n _this.destination = destination;\n return _this;\n }\n return SubjectSubscriber;\n}(Subscriber));\nexport { SubjectSubscriber };\nvar Subject = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(Subject, _super);\n function Subject() {\n var _this = _super.call(this) || this;\n _this.observers = [];\n _this.closed = false;\n _this.isStopped = false;\n _this.hasError = false;\n _this.thrownError = null;\n return _this;\n }\n Subject.prototype[rxSubscriberSymbol] = function () {\n return new SubjectSubscriber(this);\n };\n Subject.prototype.lift = function (operator) {\n var subject = new AnonymousSubject(this, this);\n subject.operator = operator;\n return subject;\n };\n Subject.prototype.next = function (value) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n if (!this.isStopped) {\n var observers = this.observers;\n var len = observers.length;\n var copy = observers.slice();\n for (var i = 0; i < len; i++) {\n copy[i].next(value);\n }\n }\n };\n Subject.prototype.error = function (err) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n this.hasError = true;\n this.thrownError = err;\n this.isStopped = true;\n var observers = this.observers;\n var len = observers.length;\n var copy = observers.slice();\n for (var i = 0; i < len; i++) {\n copy[i].error(err);\n }\n this.observers.length = 0;\n };\n Subject.prototype.complete = function () {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n this.isStopped = true;\n var observers = this.observers;\n var len = observers.length;\n var copy = observers.slice();\n for (var i = 0; i < len; i++) {\n copy[i].complete();\n }\n this.observers.length = 0;\n };\n Subject.prototype.unsubscribe = function () {\n this.isStopped = true;\n this.closed = true;\n this.observers = null;\n };\n Subject.prototype._trySubscribe = function (subscriber) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else {\n return _super.prototype._trySubscribe.call(this, subscriber);\n }\n };\n Subject.prototype._subscribe = function (subscriber) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else if (this.hasError) {\n subscriber.error(this.thrownError);\n return Subscription.EMPTY;\n }\n else if (this.isStopped) {\n subscriber.complete();\n return Subscription.EMPTY;\n }\n else {\n this.observers.push(subscriber);\n return new SubjectSubscription(this, subscriber);\n }\n };\n Subject.prototype.asObservable = function () {\n var observable = new Observable();\n observable.source = this;\n return observable;\n };\n Subject.create = function (destination, source) {\n return new AnonymousSubject(destination, source);\n };\n return Subject;\n}(Observable));\nexport { Subject };\nvar AnonymousSubject = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AnonymousSubject, _super);\n function AnonymousSubject(destination, source) {\n var _this = _super.call(this) || this;\n _this.destination = destination;\n _this.source = source;\n return _this;\n }\n AnonymousSubject.prototype.next = function (value) {\n var destination = this.destination;\n if (destination && destination.next) {\n destination.next(value);\n }\n };\n AnonymousSubject.prototype.error = function (err) {\n var destination = this.destination;\n if (destination && destination.error) {\n this.destination.error(err);\n }\n };\n AnonymousSubject.prototype.complete = function () {\n var destination = this.destination;\n if (destination && destination.complete) {\n this.destination.complete();\n }\n };\n AnonymousSubject.prototype._subscribe = function (subscriber) {\n var source = this.source;\n if (source) {\n return this.source.subscribe(subscriber);\n }\n else {\n return Subscription.EMPTY;\n }\n };\n return AnonymousSubject;\n}(Subject));\nexport { AnonymousSubject };\n//# sourceMappingURL=Subject.js.map\n","/** PURE_IMPORTS_START tslib,_Subscription PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscription } from './Subscription';\nvar SubjectSubscription = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SubjectSubscription, _super);\n function SubjectSubscription(subject, subscriber) {\n var _this = _super.call(this) || this;\n _this.subject = subject;\n _this.subscriber = subscriber;\n _this.closed = false;\n return _this;\n }\n SubjectSubscription.prototype.unsubscribe = function () {\n if (this.closed) {\n return;\n }\n this.closed = true;\n var subject = this.subject;\n var observers = subject.observers;\n this.subject = null;\n if (!observers || observers.length === 0 || subject.isStopped || subject.closed) {\n return;\n }\n var subscriberIndex = observers.indexOf(this.subscriber);\n if (subscriberIndex !== -1) {\n observers.splice(subscriberIndex, 1);\n }\n };\n return SubjectSubscription;\n}(Subscription));\nexport { SubjectSubscription };\n//# sourceMappingURL=SubjectSubscription.js.map\n","/** PURE_IMPORTS_START tslib,_util_isFunction,_Observer,_Subscription,_internal_symbol_rxSubscriber,_config,_util_hostReportError PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { isFunction } from './util/isFunction';\nimport { empty as emptyObserver } from './Observer';\nimport { Subscription } from './Subscription';\nimport { rxSubscriber as rxSubscriberSymbol } from '../internal/symbol/rxSubscriber';\nimport { config } from './config';\nimport { hostReportError } from './util/hostReportError';\nvar Subscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(Subscriber, _super);\n function Subscriber(destinationOrNext, error, complete) {\n var _this = _super.call(this) || this;\n _this.syncErrorValue = null;\n _this.syncErrorThrown = false;\n _this.syncErrorThrowable = false;\n _this.isStopped = false;\n switch (arguments.length) {\n case 0:\n _this.destination = emptyObserver;\n break;\n case 1:\n if (!destinationOrNext) {\n _this.destination = emptyObserver;\n break;\n }\n if (typeof destinationOrNext === 'object') {\n if (destinationOrNext instanceof Subscriber) {\n _this.syncErrorThrowable = destinationOrNext.syncErrorThrowable;\n _this.destination = destinationOrNext;\n destinationOrNext.add(_this);\n }\n else {\n _this.syncErrorThrowable = true;\n _this.destination = new SafeSubscriber(_this, destinationOrNext);\n }\n break;\n }\n default:\n _this.syncErrorThrowable = true;\n _this.destination = new SafeSubscriber(_this, destinationOrNext, error, complete);\n break;\n }\n return _this;\n }\n Subscriber.prototype[rxSubscriberSymbol] = function () { return this; };\n Subscriber.create = function (next, error, complete) {\n var subscriber = new Subscriber(next, error, complete);\n subscriber.syncErrorThrowable = false;\n return subscriber;\n };\n Subscriber.prototype.next = function (value) {\n if (!this.isStopped) {\n this._next(value);\n }\n };\n Subscriber.prototype.error = function (err) {\n if (!this.isStopped) {\n this.isStopped = true;\n this._error(err);\n }\n };\n Subscriber.prototype.complete = function () {\n if (!this.isStopped) {\n this.isStopped = true;\n this._complete();\n }\n };\n Subscriber.prototype.unsubscribe = function () {\n if (this.closed) {\n return;\n }\n this.isStopped = true;\n _super.prototype.unsubscribe.call(this);\n };\n Subscriber.prototype._next = function (value) {\n this.destination.next(value);\n };\n Subscriber.prototype._error = function (err) {\n this.destination.error(err);\n this.unsubscribe();\n };\n Subscriber.prototype._complete = function () {\n this.destination.complete();\n this.unsubscribe();\n };\n Subscriber.prototype._unsubscribeAndRecycle = function () {\n var _parentOrParents = this._parentOrParents;\n this._parentOrParents = null;\n this.unsubscribe();\n this.closed = false;\n this.isStopped = false;\n this._parentOrParents = _parentOrParents;\n return this;\n };\n return Subscriber;\n}(Subscription));\nexport { Subscriber };\nvar SafeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SafeSubscriber, _super);\n function SafeSubscriber(_parentSubscriber, observerOrNext, error, complete) {\n var _this = _super.call(this) || this;\n _this._parentSubscriber = _parentSubscriber;\n var next;\n var context = _this;\n if (isFunction(observerOrNext)) {\n next = observerOrNext;\n }\n else if (observerOrNext) {\n next = observerOrNext.next;\n error = observerOrNext.error;\n complete = observerOrNext.complete;\n if (observerOrNext !== emptyObserver) {\n context = Object.create(observerOrNext);\n if (isFunction(context.unsubscribe)) {\n _this.add(context.unsubscribe.bind(context));\n }\n context.unsubscribe = _this.unsubscribe.bind(_this);\n }\n }\n _this._context = context;\n _this._next = next;\n _this._error = error;\n _this._complete = complete;\n return _this;\n }\n SafeSubscriber.prototype.next = function (value) {\n if (!this.isStopped && this._next) {\n var _parentSubscriber = this._parentSubscriber;\n if (!config.useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {\n this.__tryOrUnsub(this._next, value);\n }\n else if (this.__tryOrSetError(_parentSubscriber, this._next, value)) {\n this.unsubscribe();\n }\n }\n };\n SafeSubscriber.prototype.error = function (err) {\n if (!this.isStopped) {\n var _parentSubscriber = this._parentSubscriber;\n var useDeprecatedSynchronousErrorHandling = config.useDeprecatedSynchronousErrorHandling;\n if (this._error) {\n if (!useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {\n this.__tryOrUnsub(this._error, err);\n this.unsubscribe();\n }\n else {\n this.__tryOrSetError(_parentSubscriber, this._error, err);\n this.unsubscribe();\n }\n }\n else if (!_parentSubscriber.syncErrorThrowable) {\n this.unsubscribe();\n if (useDeprecatedSynchronousErrorHandling) {\n throw err;\n }\n hostReportError(err);\n }\n else {\n if (useDeprecatedSynchronousErrorHandling) {\n _parentSubscriber.syncErrorValue = err;\n _parentSubscriber.syncErrorThrown = true;\n }\n else {\n hostReportError(err);\n }\n this.unsubscribe();\n }\n }\n };\n SafeSubscriber.prototype.complete = function () {\n var _this = this;\n if (!this.isStopped) {\n var _parentSubscriber = this._parentSubscriber;\n if (this._complete) {\n var wrappedComplete = function () { return _this._complete.call(_this._context); };\n if (!config.useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {\n this.__tryOrUnsub(wrappedComplete);\n this.unsubscribe();\n }\n else {\n this.__tryOrSetError(_parentSubscriber, wrappedComplete);\n this.unsubscribe();\n }\n }\n else {\n this.unsubscribe();\n }\n }\n };\n SafeSubscriber.prototype.__tryOrUnsub = function (fn, value) {\n try {\n fn.call(this._context, value);\n }\n catch (err) {\n this.unsubscribe();\n if (config.useDeprecatedSynchronousErrorHandling) {\n throw err;\n }\n else {\n hostReportError(err);\n }\n }\n };\n SafeSubscriber.prototype.__tryOrSetError = function (parent, fn, value) {\n if (!config.useDeprecatedSynchronousErrorHandling) {\n throw new Error('bad call');\n }\n try {\n fn.call(this._context, value);\n }\n catch (err) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n parent.syncErrorValue = err;\n parent.syncErrorThrown = true;\n return true;\n }\n else {\n hostReportError(err);\n return true;\n }\n }\n return false;\n };\n SafeSubscriber.prototype._unsubscribe = function () {\n var _parentSubscriber = this._parentSubscriber;\n this._context = null;\n this._parentSubscriber = null;\n _parentSubscriber.unsubscribe();\n };\n return SafeSubscriber;\n}(Subscriber));\nexport { SafeSubscriber };\n//# sourceMappingURL=Subscriber.js.map\n","/** PURE_IMPORTS_START _util_isArray,_util_isObject,_util_isFunction,_util_UnsubscriptionError PURE_IMPORTS_END */\nimport { isArray } from './util/isArray';\nimport { isObject } from './util/isObject';\nimport { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nvar Subscription = /*@__PURE__*/ (function () {\n function Subscription(unsubscribe) {\n this.closed = false;\n this._parentOrParents = null;\n this._subscriptions = null;\n if (unsubscribe) {\n this._ctorUnsubscribe = true;\n this._unsubscribe = unsubscribe;\n }\n }\n Subscription.prototype.unsubscribe = function () {\n var errors;\n if (this.closed) {\n return;\n }\n var _a = this, _parentOrParents = _a._parentOrParents, _ctorUnsubscribe = _a._ctorUnsubscribe, _unsubscribe = _a._unsubscribe, _subscriptions = _a._subscriptions;\n this.closed = true;\n this._parentOrParents = null;\n this._subscriptions = null;\n if (_parentOrParents instanceof Subscription) {\n _parentOrParents.remove(this);\n }\n else if (_parentOrParents !== null) {\n for (var index = 0; index < _parentOrParents.length; ++index) {\n var parent_1 = _parentOrParents[index];\n parent_1.remove(this);\n }\n }\n if (isFunction(_unsubscribe)) {\n if (_ctorUnsubscribe) {\n this._unsubscribe = undefined;\n }\n try {\n _unsubscribe.call(this);\n }\n catch (e) {\n errors = e instanceof UnsubscriptionError ? flattenUnsubscriptionErrors(e.errors) : [e];\n }\n }\n if (isArray(_subscriptions)) {\n var index = -1;\n var len = _subscriptions.length;\n while (++index < len) {\n var sub = _subscriptions[index];\n if (isObject(sub)) {\n try {\n sub.unsubscribe();\n }\n catch (e) {\n errors = errors || [];\n if (e instanceof UnsubscriptionError) {\n errors = errors.concat(flattenUnsubscriptionErrors(e.errors));\n }\n else {\n errors.push(e);\n }\n }\n }\n }\n }\n if (errors) {\n throw new UnsubscriptionError(errors);\n }\n };\n Subscription.prototype.add = function (teardown) {\n var subscription = teardown;\n if (!teardown) {\n return Subscription.EMPTY;\n }\n switch (typeof teardown) {\n case 'function':\n subscription = new Subscription(teardown);\n case 'object':\n if (subscription === this || subscription.closed || typeof subscription.unsubscribe !== 'function') {\n return subscription;\n }\n else if (this.closed) {\n subscription.unsubscribe();\n return subscription;\n }\n else if (!(subscription instanceof Subscription)) {\n var tmp = subscription;\n subscription = new Subscription();\n subscription._subscriptions = [tmp];\n }\n break;\n default: {\n throw new Error('unrecognized teardown ' + teardown + ' added to Subscription.');\n }\n }\n var _parentOrParents = subscription._parentOrParents;\n if (_parentOrParents === null) {\n subscription._parentOrParents = this;\n }\n else if (_parentOrParents instanceof Subscription) {\n if (_parentOrParents === this) {\n return subscription;\n }\n subscription._parentOrParents = [_parentOrParents, this];\n }\n else if (_parentOrParents.indexOf(this) === -1) {\n _parentOrParents.push(this);\n }\n else {\n return subscription;\n }\n var subscriptions = this._subscriptions;\n if (subscriptions === null) {\n this._subscriptions = [subscription];\n }\n else {\n subscriptions.push(subscription);\n }\n return subscription;\n };\n Subscription.prototype.remove = function (subscription) {\n var subscriptions = this._subscriptions;\n if (subscriptions) {\n var subscriptionIndex = subscriptions.indexOf(subscription);\n if (subscriptionIndex !== -1) {\n subscriptions.splice(subscriptionIndex, 1);\n }\n }\n };\n Subscription.EMPTY = (function (empty) {\n empty.closed = true;\n return empty;\n }(new Subscription()));\n return Subscription;\n}());\nexport { Subscription };\nfunction flattenUnsubscriptionErrors(errors) {\n return errors.reduce(function (errs, err) { return errs.concat((err instanceof UnsubscriptionError) ? err.errors : err); }, []);\n}\n//# sourceMappingURL=Subscription.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nvar _enable_super_gross_mode_that_will_cause_bad_things = false;\nexport var config = {\n Promise: undefined,\n set useDeprecatedSynchronousErrorHandling(value) {\n if (value) {\n var error = /*@__PURE__*/ new Error();\n /*@__PURE__*/ console.warn('DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \\n' + error.stack);\n }\n else if (_enable_super_gross_mode_that_will_cause_bad_things) {\n /*@__PURE__*/ console.log('RxJS: Back to a better error behavior. Thank you. <3');\n }\n _enable_super_gross_mode_that_will_cause_bad_things = value;\n },\n get useDeprecatedSynchronousErrorHandling() {\n return _enable_super_gross_mode_that_will_cause_bad_things;\n },\n};\n//# sourceMappingURL=config.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_Observable,_util_subscribeTo PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from './Subscriber';\nimport { Observable } from './Observable';\nimport { subscribeTo } from './util/subscribeTo';\nvar SimpleInnerSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SimpleInnerSubscriber, _super);\n function SimpleInnerSubscriber(parent) {\n var _this = _super.call(this) || this;\n _this.parent = parent;\n return _this;\n }\n SimpleInnerSubscriber.prototype._next = function (value) {\n this.parent.notifyNext(value);\n };\n SimpleInnerSubscriber.prototype._error = function (error) {\n this.parent.notifyError(error);\n this.unsubscribe();\n };\n SimpleInnerSubscriber.prototype._complete = function () {\n this.parent.notifyComplete();\n this.unsubscribe();\n };\n return SimpleInnerSubscriber;\n}(Subscriber));\nexport { SimpleInnerSubscriber };\nvar ComplexInnerSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ComplexInnerSubscriber, _super);\n function ComplexInnerSubscriber(parent, outerValue, outerIndex) {\n var _this = _super.call(this) || this;\n _this.parent = parent;\n _this.outerValue = outerValue;\n _this.outerIndex = outerIndex;\n return _this;\n }\n ComplexInnerSubscriber.prototype._next = function (value) {\n this.parent.notifyNext(this.outerValue, value, this.outerIndex, this);\n };\n ComplexInnerSubscriber.prototype._error = function (error) {\n this.parent.notifyError(error);\n this.unsubscribe();\n };\n ComplexInnerSubscriber.prototype._complete = function () {\n this.parent.notifyComplete(this);\n this.unsubscribe();\n };\n return ComplexInnerSubscriber;\n}(Subscriber));\nexport { ComplexInnerSubscriber };\nvar SimpleOuterSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SimpleOuterSubscriber, _super);\n function SimpleOuterSubscriber() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n SimpleOuterSubscriber.prototype.notifyNext = function (innerValue) {\n this.destination.next(innerValue);\n };\n SimpleOuterSubscriber.prototype.notifyError = function (err) {\n this.destination.error(err);\n };\n SimpleOuterSubscriber.prototype.notifyComplete = function () {\n this.destination.complete();\n };\n return SimpleOuterSubscriber;\n}(Subscriber));\nexport { SimpleOuterSubscriber };\nvar ComplexOuterSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ComplexOuterSubscriber, _super);\n function ComplexOuterSubscriber() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n ComplexOuterSubscriber.prototype.notifyNext = function (_outerValue, innerValue, _outerIndex, _innerSub) {\n this.destination.next(innerValue);\n };\n ComplexOuterSubscriber.prototype.notifyError = function (error) {\n this.destination.error(error);\n };\n ComplexOuterSubscriber.prototype.notifyComplete = function (_innerSub) {\n this.destination.complete();\n };\n return ComplexOuterSubscriber;\n}(Subscriber));\nexport { ComplexOuterSubscriber };\nexport function innerSubscribe(result, innerSubscriber) {\n if (innerSubscriber.closed) {\n return undefined;\n }\n if (result instanceof Observable) {\n return result.subscribe(innerSubscriber);\n }\n var subscription;\n try {\n subscription = subscribeTo(result)(innerSubscriber);\n }\n catch (error) {\n innerSubscriber.error(error);\n }\n return subscription;\n}\n//# sourceMappingURL=innerSubscribe.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_Observable,_Subscriber,_Subscription,_operators_refCount PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SubjectSubscriber } from '../Subject';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { refCount as higherOrderRefCount } from '../operators/refCount';\nvar ConnectableObservable = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ConnectableObservable, _super);\n function ConnectableObservable(source, subjectFactory) {\n var _this = _super.call(this) || this;\n _this.source = source;\n _this.subjectFactory = subjectFactory;\n _this._refCount = 0;\n _this._isComplete = false;\n return _this;\n }\n ConnectableObservable.prototype._subscribe = function (subscriber) {\n return this.getSubject().subscribe(subscriber);\n };\n ConnectableObservable.prototype.getSubject = function () {\n var subject = this._subject;\n if (!subject || subject.isStopped) {\n this._subject = this.subjectFactory();\n }\n return this._subject;\n };\n ConnectableObservable.prototype.connect = function () {\n var connection = this._connection;\n if (!connection) {\n this._isComplete = false;\n connection = this._connection = new Subscription();\n connection.add(this.source\n .subscribe(new ConnectableSubscriber(this.getSubject(), this)));\n if (connection.closed) {\n this._connection = null;\n connection = Subscription.EMPTY;\n }\n }\n return connection;\n };\n ConnectableObservable.prototype.refCount = function () {\n return higherOrderRefCount()(this);\n };\n return ConnectableObservable;\n}(Observable));\nexport { ConnectableObservable };\nexport var connectableObservableDescriptor = /*@__PURE__*/ (function () {\n var connectableProto = ConnectableObservable.prototype;\n return {\n operator: { value: null },\n _refCount: { value: 0, writable: true },\n _subject: { value: null, writable: true },\n _connection: { value: null, writable: true },\n _subscribe: { value: connectableProto._subscribe },\n _isComplete: { value: connectableProto._isComplete, writable: true },\n getSubject: { value: connectableProto.getSubject },\n connect: { value: connectableProto.connect },\n refCount: { value: connectableProto.refCount }\n };\n})();\nvar ConnectableSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ConnectableSubscriber, _super);\n function ConnectableSubscriber(destination, connectable) {\n var _this = _super.call(this, destination) || this;\n _this.connectable = connectable;\n return _this;\n }\n ConnectableSubscriber.prototype._error = function (err) {\n this._unsubscribe();\n _super.prototype._error.call(this, err);\n };\n ConnectableSubscriber.prototype._complete = function () {\n this.connectable._isComplete = true;\n this._unsubscribe();\n _super.prototype._complete.call(this);\n };\n ConnectableSubscriber.prototype._unsubscribe = function () {\n var connectable = this.connectable;\n if (connectable) {\n this.connectable = null;\n var connection = connectable._connection;\n connectable._refCount = 0;\n connectable._subject = null;\n connectable._connection = null;\n if (connection) {\n connection.unsubscribe();\n }\n }\n };\n return ConnectableSubscriber;\n}(SubjectSubscriber));\nvar RefCountOperator = /*@__PURE__*/ (function () {\n function RefCountOperator(connectable) {\n this.connectable = connectable;\n }\n RefCountOperator.prototype.call = function (subscriber, source) {\n var connectable = this.connectable;\n connectable._refCount++;\n var refCounter = new RefCountSubscriber(subscriber, connectable);\n var subscription = source.subscribe(refCounter);\n if (!refCounter.closed) {\n refCounter.connection = connectable.connect();\n }\n return subscription;\n };\n return RefCountOperator;\n}());\nvar RefCountSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(RefCountSubscriber, _super);\n function RefCountSubscriber(destination, connectable) {\n var _this = _super.call(this, destination) || this;\n _this.connectable = connectable;\n return _this;\n }\n RefCountSubscriber.prototype._unsubscribe = function () {\n var connectable = this.connectable;\n if (!connectable) {\n this.connection = null;\n return;\n }\n this.connectable = null;\n var refCount = connectable._refCount;\n if (refCount <= 0) {\n this.connection = null;\n return;\n }\n connectable._refCount = refCount - 1;\n if (refCount > 1) {\n this.connection = null;\n return;\n }\n var connection = this.connection;\n var sharedConnection = connectable._connection;\n this.connection = null;\n if (sharedConnection && (!connection || sharedConnection === connection)) {\n sharedConnection.unsubscribe();\n }\n };\n return RefCountSubscriber;\n}(Subscriber));\n//# sourceMappingURL=ConnectableObservable.js.map\n","/** PURE_IMPORTS_START tslib,_util_isScheduler,_util_isArray,_OuterSubscriber,_util_subscribeToResult,_fromArray PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { isScheduler } from '../util/isScheduler';\nimport { isArray } from '../util/isArray';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { fromArray } from './fromArray';\nvar NONE = {};\nexport function combineLatest() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n var resultSelector = undefined;\n var scheduler = undefined;\n if (isScheduler(observables[observables.length - 1])) {\n scheduler = observables.pop();\n }\n if (typeof observables[observables.length - 1] === 'function') {\n resultSelector = observables.pop();\n }\n if (observables.length === 1 && isArray(observables[0])) {\n observables = observables[0];\n }\n return fromArray(observables, scheduler).lift(new CombineLatestOperator(resultSelector));\n}\nvar CombineLatestOperator = /*@__PURE__*/ (function () {\n function CombineLatestOperator(resultSelector) {\n this.resultSelector = resultSelector;\n }\n CombineLatestOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new CombineLatestSubscriber(subscriber, this.resultSelector));\n };\n return CombineLatestOperator;\n}());\nexport { CombineLatestOperator };\nvar CombineLatestSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(CombineLatestSubscriber, _super);\n function CombineLatestSubscriber(destination, resultSelector) {\n var _this = _super.call(this, destination) || this;\n _this.resultSelector = resultSelector;\n _this.active = 0;\n _this.values = [];\n _this.observables = [];\n return _this;\n }\n CombineLatestSubscriber.prototype._next = function (observable) {\n this.values.push(NONE);\n this.observables.push(observable);\n };\n CombineLatestSubscriber.prototype._complete = function () {\n var observables = this.observables;\n var len = observables.length;\n if (len === 0) {\n this.destination.complete();\n }\n else {\n this.active = len;\n this.toRespond = len;\n for (var i = 0; i < len; i++) {\n var observable = observables[i];\n this.add(subscribeToResult(this, observable, undefined, i));\n }\n }\n };\n CombineLatestSubscriber.prototype.notifyComplete = function (unused) {\n if ((this.active -= 1) === 0) {\n this.destination.complete();\n }\n };\n CombineLatestSubscriber.prototype.notifyNext = function (_outerValue, innerValue, outerIndex) {\n var values = this.values;\n var oldVal = values[outerIndex];\n var toRespond = !this.toRespond\n ? 0\n : oldVal === NONE ? --this.toRespond : this.toRespond;\n values[outerIndex] = innerValue;\n if (toRespond === 0) {\n if (this.resultSelector) {\n this._tryResultSelector(values);\n }\n else {\n this.destination.next(values.slice());\n }\n }\n };\n CombineLatestSubscriber.prototype._tryResultSelector = function (values) {\n var result;\n try {\n result = this.resultSelector.apply(this, values);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(result);\n };\n return CombineLatestSubscriber;\n}(OuterSubscriber));\nexport { CombineLatestSubscriber };\n//# sourceMappingURL=combineLatest.js.map\n","/** PURE_IMPORTS_START _of,_operators_concatAll PURE_IMPORTS_END */\nimport { of } from './of';\nimport { concatAll } from '../operators/concatAll';\nexport function concat() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n return concatAll()(of.apply(void 0, observables));\n}\n//# sourceMappingURL=concat.js.map\n","/** PURE_IMPORTS_START _Observable,_from,_empty PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { from } from './from';\nimport { empty } from './empty';\nexport function defer(observableFactory) {\n return new Observable(function (subscriber) {\n var input;\n try {\n input = observableFactory();\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n var source = input ? from(input) : empty();\n return source.subscribe(subscriber);\n });\n}\n//# sourceMappingURL=defer.js.map\n","/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nexport var EMPTY = /*@__PURE__*/ new Observable(function (subscriber) { return subscriber.complete(); });\nexport function empty(scheduler) {\n return scheduler ? emptyScheduled(scheduler) : EMPTY;\n}\nfunction emptyScheduled(scheduler) {\n return new Observable(function (subscriber) { return scheduler.schedule(function () { return subscriber.complete(); }); });\n}\n//# sourceMappingURL=empty.js.map\n","/** PURE_IMPORTS_START _Observable,_util_subscribeTo,_scheduled_scheduled PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { subscribeTo } from '../util/subscribeTo';\nimport { scheduled } from '../scheduled/scheduled';\nexport function from(input, scheduler) {\n if (!scheduler) {\n if (input instanceof Observable) {\n return input;\n }\n return new Observable(subscribeTo(input));\n }\n else {\n return scheduled(input, scheduler);\n }\n}\n//# sourceMappingURL=from.js.map\n","/** PURE_IMPORTS_START _Observable,_util_subscribeToArray,_scheduled_scheduleArray PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { subscribeToArray } from '../util/subscribeToArray';\nimport { scheduleArray } from '../scheduled/scheduleArray';\nexport function fromArray(input, scheduler) {\n if (!scheduler) {\n return new Observable(subscribeToArray(input));\n }\n else {\n return scheduleArray(input, scheduler);\n }\n}\n//# sourceMappingURL=fromArray.js.map\n","/** PURE_IMPORTS_START _Observable,_util_isScheduler,_operators_mergeAll,_fromArray PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { isScheduler } from '../util/isScheduler';\nimport { mergeAll } from '../operators/mergeAll';\nimport { fromArray } from './fromArray';\nexport function merge() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n var concurrent = Number.POSITIVE_INFINITY;\n var scheduler = null;\n var last = observables[observables.length - 1];\n if (isScheduler(last)) {\n scheduler = observables.pop();\n if (observables.length > 1 && typeof observables[observables.length - 1] === 'number') {\n concurrent = observables.pop();\n }\n }\n else if (typeof last === 'number') {\n concurrent = observables.pop();\n }\n if (scheduler === null && observables.length === 1 && observables[0] instanceof Observable) {\n return observables[0];\n }\n return mergeAll(concurrent)(fromArray(observables, scheduler));\n}\n//# sourceMappingURL=merge.js.map\n","/** PURE_IMPORTS_START _util_isScheduler,_fromArray,_scheduled_scheduleArray PURE_IMPORTS_END */\nimport { isScheduler } from '../util/isScheduler';\nimport { fromArray } from './fromArray';\nimport { scheduleArray } from '../scheduled/scheduleArray';\nexport function of() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var scheduler = args[args.length - 1];\n if (isScheduler(scheduler)) {\n args.pop();\n return scheduleArray(args, scheduler);\n }\n else {\n return fromArray(args);\n }\n}\n//# sourceMappingURL=of.js.map\n","/** PURE_IMPORTS_START tslib,_util_isArray,_fromArray,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { isArray } from '../util/isArray';\nimport { fromArray } from './fromArray';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nexport function race() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n if (observables.length === 1) {\n if (isArray(observables[0])) {\n observables = observables[0];\n }\n else {\n return observables[0];\n }\n }\n return fromArray(observables, undefined).lift(new RaceOperator());\n}\nvar RaceOperator = /*@__PURE__*/ (function () {\n function RaceOperator() {\n }\n RaceOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new RaceSubscriber(subscriber));\n };\n return RaceOperator;\n}());\nexport { RaceOperator };\nvar RaceSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(RaceSubscriber, _super);\n function RaceSubscriber(destination) {\n var _this = _super.call(this, destination) || this;\n _this.hasFirst = false;\n _this.observables = [];\n _this.subscriptions = [];\n return _this;\n }\n RaceSubscriber.prototype._next = function (observable) {\n this.observables.push(observable);\n };\n RaceSubscriber.prototype._complete = function () {\n var observables = this.observables;\n var len = observables.length;\n if (len === 0) {\n this.destination.complete();\n }\n else {\n for (var i = 0; i < len && !this.hasFirst; i++) {\n var observable = observables[i];\n var subscription = subscribeToResult(this, observable, undefined, i);\n if (this.subscriptions) {\n this.subscriptions.push(subscription);\n }\n this.add(subscription);\n }\n this.observables = null;\n }\n };\n RaceSubscriber.prototype.notifyNext = function (_outerValue, innerValue, outerIndex) {\n if (!this.hasFirst) {\n this.hasFirst = true;\n for (var i = 0; i < this.subscriptions.length; i++) {\n if (i !== outerIndex) {\n var subscription = this.subscriptions[i];\n subscription.unsubscribe();\n this.remove(subscription);\n }\n }\n this.subscriptions = null;\n }\n this.destination.next(innerValue);\n };\n return RaceSubscriber;\n}(OuterSubscriber));\nexport { RaceSubscriber };\n//# sourceMappingURL=race.js.map\n","/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nexport function throwError(error, scheduler) {\n if (!scheduler) {\n return new Observable(function (subscriber) { return subscriber.error(error); });\n }\n else {\n return new Observable(function (subscriber) { return scheduler.schedule(dispatch, 0, { error: error, subscriber: subscriber }); });\n }\n}\nfunction dispatch(_a) {\n var error = _a.error, subscriber = _a.subscriber;\n subscriber.error(error);\n}\n//# sourceMappingURL=throwError.js.map\n","/** PURE_IMPORTS_START _Observable,_scheduler_async,_util_isNumeric,_util_isScheduler PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { async } from '../scheduler/async';\nimport { isNumeric } from '../util/isNumeric';\nimport { isScheduler } from '../util/isScheduler';\nexport function timer(dueTime, periodOrScheduler, scheduler) {\n if (dueTime === void 0) {\n dueTime = 0;\n }\n var period = -1;\n if (isNumeric(periodOrScheduler)) {\n period = Number(periodOrScheduler) < 1 && 1 || Number(periodOrScheduler);\n }\n else if (isScheduler(periodOrScheduler)) {\n scheduler = periodOrScheduler;\n }\n if (!isScheduler(scheduler)) {\n scheduler = async;\n }\n return new Observable(function (subscriber) {\n var due = isNumeric(dueTime)\n ? dueTime\n : (+dueTime - scheduler.now());\n return scheduler.schedule(dispatch, due, {\n index: 0, period: period, subscriber: subscriber\n });\n });\n}\nfunction dispatch(state) {\n var index = state.index, period = state.period, subscriber = state.subscriber;\n subscriber.next(index);\n if (subscriber.closed) {\n return;\n }\n else if (period === -1) {\n return subscriber.complete();\n }\n state.index = index + 1;\n this.schedule(state, period);\n}\n//# sourceMappingURL=timer.js.map\n","/** PURE_IMPORTS_START tslib,_fromArray,_util_isArray,_Subscriber,_.._internal_symbol_iterator,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { fromArray } from './fromArray';\nimport { isArray } from '../util/isArray';\nimport { Subscriber } from '../Subscriber';\nimport { iterator as Symbol_iterator } from '../../internal/symbol/iterator';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function zip() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n var resultSelector = observables[observables.length - 1];\n if (typeof resultSelector === 'function') {\n observables.pop();\n }\n return fromArray(observables, undefined).lift(new ZipOperator(resultSelector));\n}\nvar ZipOperator = /*@__PURE__*/ (function () {\n function ZipOperator(resultSelector) {\n this.resultSelector = resultSelector;\n }\n ZipOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new ZipSubscriber(subscriber, this.resultSelector));\n };\n return ZipOperator;\n}());\nexport { ZipOperator };\nvar ZipSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ZipSubscriber, _super);\n function ZipSubscriber(destination, resultSelector, values) {\n if (values === void 0) {\n values = Object.create(null);\n }\n var _this = _super.call(this, destination) || this;\n _this.resultSelector = resultSelector;\n _this.iterators = [];\n _this.active = 0;\n _this.resultSelector = (typeof resultSelector === 'function') ? resultSelector : undefined;\n return _this;\n }\n ZipSubscriber.prototype._next = function (value) {\n var iterators = this.iterators;\n if (isArray(value)) {\n iterators.push(new StaticArrayIterator(value));\n }\n else if (typeof value[Symbol_iterator] === 'function') {\n iterators.push(new StaticIterator(value[Symbol_iterator]()));\n }\n else {\n iterators.push(new ZipBufferIterator(this.destination, this, value));\n }\n };\n ZipSubscriber.prototype._complete = function () {\n var iterators = this.iterators;\n var len = iterators.length;\n this.unsubscribe();\n if (len === 0) {\n this.destination.complete();\n return;\n }\n this.active = len;\n for (var i = 0; i < len; i++) {\n var iterator = iterators[i];\n if (iterator.stillUnsubscribed) {\n var destination = this.destination;\n destination.add(iterator.subscribe());\n }\n else {\n this.active--;\n }\n }\n };\n ZipSubscriber.prototype.notifyInactive = function () {\n this.active--;\n if (this.active === 0) {\n this.destination.complete();\n }\n };\n ZipSubscriber.prototype.checkIterators = function () {\n var iterators = this.iterators;\n var len = iterators.length;\n var destination = this.destination;\n for (var i = 0; i < len; i++) {\n var iterator = iterators[i];\n if (typeof iterator.hasValue === 'function' && !iterator.hasValue()) {\n return;\n }\n }\n var shouldComplete = false;\n var args = [];\n for (var i = 0; i < len; i++) {\n var iterator = iterators[i];\n var result = iterator.next();\n if (iterator.hasCompleted()) {\n shouldComplete = true;\n }\n if (result.done) {\n destination.complete();\n return;\n }\n args.push(result.value);\n }\n if (this.resultSelector) {\n this._tryresultSelector(args);\n }\n else {\n destination.next(args);\n }\n if (shouldComplete) {\n destination.complete();\n }\n };\n ZipSubscriber.prototype._tryresultSelector = function (args) {\n var result;\n try {\n result = this.resultSelector.apply(this, args);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(result);\n };\n return ZipSubscriber;\n}(Subscriber));\nexport { ZipSubscriber };\nvar StaticIterator = /*@__PURE__*/ (function () {\n function StaticIterator(iterator) {\n this.iterator = iterator;\n this.nextResult = iterator.next();\n }\n StaticIterator.prototype.hasValue = function () {\n return true;\n };\n StaticIterator.prototype.next = function () {\n var result = this.nextResult;\n this.nextResult = this.iterator.next();\n return result;\n };\n StaticIterator.prototype.hasCompleted = function () {\n var nextResult = this.nextResult;\n return Boolean(nextResult && nextResult.done);\n };\n return StaticIterator;\n}());\nvar StaticArrayIterator = /*@__PURE__*/ (function () {\n function StaticArrayIterator(array) {\n this.array = array;\n this.index = 0;\n this.length = 0;\n this.length = array.length;\n }\n StaticArrayIterator.prototype[Symbol_iterator] = function () {\n return this;\n };\n StaticArrayIterator.prototype.next = function (value) {\n var i = this.index++;\n var array = this.array;\n return i < this.length ? { value: array[i], done: false } : { value: null, done: true };\n };\n StaticArrayIterator.prototype.hasValue = function () {\n return this.array.length > this.index;\n };\n StaticArrayIterator.prototype.hasCompleted = function () {\n return this.array.length === this.index;\n };\n return StaticArrayIterator;\n}());\nvar ZipBufferIterator = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ZipBufferIterator, _super);\n function ZipBufferIterator(destination, parent, observable) {\n var _this = _super.call(this, destination) || this;\n _this.parent = parent;\n _this.observable = observable;\n _this.stillUnsubscribed = true;\n _this.buffer = [];\n _this.isComplete = false;\n return _this;\n }\n ZipBufferIterator.prototype[Symbol_iterator] = function () {\n return this;\n };\n ZipBufferIterator.prototype.next = function () {\n var buffer = this.buffer;\n if (buffer.length === 0 && this.isComplete) {\n return { value: null, done: true };\n }\n else {\n return { value: buffer.shift(), done: false };\n }\n };\n ZipBufferIterator.prototype.hasValue = function () {\n return this.buffer.length > 0;\n };\n ZipBufferIterator.prototype.hasCompleted = function () {\n return this.buffer.length === 0 && this.isComplete;\n };\n ZipBufferIterator.prototype.notifyComplete = function () {\n if (this.buffer.length > 0) {\n this.isComplete = true;\n this.parent.notifyInactive();\n }\n else {\n this.destination.complete();\n }\n };\n ZipBufferIterator.prototype.notifyNext = function (innerValue) {\n this.buffer.push(innerValue);\n this.parent.checkIterators();\n };\n ZipBufferIterator.prototype.subscribe = function () {\n return innerSubscribe(this.observable, new SimpleInnerSubscriber(this));\n };\n return ZipBufferIterator;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=zip.js.map\n","/** PURE_IMPORTS_START _mergeAll PURE_IMPORTS_END */\nimport { mergeAll } from './mergeAll';\nexport function concatAll() {\n return mergeAll(1);\n}\n//# sourceMappingURL=concatAll.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function filter(predicate, thisArg) {\n return function filterOperatorFunction(source) {\n return source.lift(new FilterOperator(predicate, thisArg));\n };\n}\nvar FilterOperator = /*@__PURE__*/ (function () {\n function FilterOperator(predicate, thisArg) {\n this.predicate = predicate;\n this.thisArg = thisArg;\n }\n FilterOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new FilterSubscriber(subscriber, this.predicate, this.thisArg));\n };\n return FilterOperator;\n}());\nvar FilterSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(FilterSubscriber, _super);\n function FilterSubscriber(destination, predicate, thisArg) {\n var _this = _super.call(this, destination) || this;\n _this.predicate = predicate;\n _this.thisArg = thisArg;\n _this.count = 0;\n return _this;\n }\n FilterSubscriber.prototype._next = function (value) {\n var result;\n try {\n result = this.predicate.call(this.thisArg, value, this.count++);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n if (result) {\n this.destination.next(value);\n }\n };\n return FilterSubscriber;\n}(Subscriber));\n//# sourceMappingURL=filter.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_Subscription,_Observable,_Subject PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { Observable } from '../Observable';\nimport { Subject } from '../Subject';\nexport function groupBy(keySelector, elementSelector, durationSelector, subjectSelector) {\n return function (source) {\n return source.lift(new GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector));\n };\n}\nvar GroupByOperator = /*@__PURE__*/ (function () {\n function GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector) {\n this.keySelector = keySelector;\n this.elementSelector = elementSelector;\n this.durationSelector = durationSelector;\n this.subjectSelector = subjectSelector;\n }\n GroupByOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new GroupBySubscriber(subscriber, this.keySelector, this.elementSelector, this.durationSelector, this.subjectSelector));\n };\n return GroupByOperator;\n}());\nvar GroupBySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(GroupBySubscriber, _super);\n function GroupBySubscriber(destination, keySelector, elementSelector, durationSelector, subjectSelector) {\n var _this = _super.call(this, destination) || this;\n _this.keySelector = keySelector;\n _this.elementSelector = elementSelector;\n _this.durationSelector = durationSelector;\n _this.subjectSelector = subjectSelector;\n _this.groups = null;\n _this.attemptedToUnsubscribe = false;\n _this.count = 0;\n return _this;\n }\n GroupBySubscriber.prototype._next = function (value) {\n var key;\n try {\n key = this.keySelector(value);\n }\n catch (err) {\n this.error(err);\n return;\n }\n this._group(value, key);\n };\n GroupBySubscriber.prototype._group = function (value, key) {\n var groups = this.groups;\n if (!groups) {\n groups = this.groups = new Map();\n }\n var group = groups.get(key);\n var element;\n if (this.elementSelector) {\n try {\n element = this.elementSelector(value);\n }\n catch (err) {\n this.error(err);\n }\n }\n else {\n element = value;\n }\n if (!group) {\n group = (this.subjectSelector ? this.subjectSelector() : new Subject());\n groups.set(key, group);\n var groupedObservable = new GroupedObservable(key, group, this);\n this.destination.next(groupedObservable);\n if (this.durationSelector) {\n var duration = void 0;\n try {\n duration = this.durationSelector(new GroupedObservable(key, group));\n }\n catch (err) {\n this.error(err);\n return;\n }\n this.add(duration.subscribe(new GroupDurationSubscriber(key, group, this)));\n }\n }\n if (!group.closed) {\n group.next(element);\n }\n };\n GroupBySubscriber.prototype._error = function (err) {\n var groups = this.groups;\n if (groups) {\n groups.forEach(function (group, key) {\n group.error(err);\n });\n groups.clear();\n }\n this.destination.error(err);\n };\n GroupBySubscriber.prototype._complete = function () {\n var groups = this.groups;\n if (groups) {\n groups.forEach(function (group, key) {\n group.complete();\n });\n groups.clear();\n }\n this.destination.complete();\n };\n GroupBySubscriber.prototype.removeGroup = function (key) {\n this.groups.delete(key);\n };\n GroupBySubscriber.prototype.unsubscribe = function () {\n if (!this.closed) {\n this.attemptedToUnsubscribe = true;\n if (this.count === 0) {\n _super.prototype.unsubscribe.call(this);\n }\n }\n };\n return GroupBySubscriber;\n}(Subscriber));\nvar GroupDurationSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(GroupDurationSubscriber, _super);\n function GroupDurationSubscriber(key, group, parent) {\n var _this = _super.call(this, group) || this;\n _this.key = key;\n _this.group = group;\n _this.parent = parent;\n return _this;\n }\n GroupDurationSubscriber.prototype._next = function (value) {\n this.complete();\n };\n GroupDurationSubscriber.prototype._unsubscribe = function () {\n var _a = this, parent = _a.parent, key = _a.key;\n this.key = this.parent = null;\n if (parent) {\n parent.removeGroup(key);\n }\n };\n return GroupDurationSubscriber;\n}(Subscriber));\nvar GroupedObservable = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(GroupedObservable, _super);\n function GroupedObservable(key, groupSubject, refCountSubscription) {\n var _this = _super.call(this) || this;\n _this.key = key;\n _this.groupSubject = groupSubject;\n _this.refCountSubscription = refCountSubscription;\n return _this;\n }\n GroupedObservable.prototype._subscribe = function (subscriber) {\n var subscription = new Subscription();\n var _a = this, refCountSubscription = _a.refCountSubscription, groupSubject = _a.groupSubject;\n if (refCountSubscription && !refCountSubscription.closed) {\n subscription.add(new InnerRefCountSubscription(refCountSubscription));\n }\n subscription.add(groupSubject.subscribe(subscriber));\n return subscription;\n };\n return GroupedObservable;\n}(Observable));\nexport { GroupedObservable };\nvar InnerRefCountSubscription = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(InnerRefCountSubscription, _super);\n function InnerRefCountSubscription(parent) {\n var _this = _super.call(this) || this;\n _this.parent = parent;\n parent.count++;\n return _this;\n }\n InnerRefCountSubscription.prototype.unsubscribe = function () {\n var parent = this.parent;\n if (!parent.closed && !this.closed) {\n _super.prototype.unsubscribe.call(this);\n parent.count -= 1;\n if (parent.count === 0 && parent.attemptedToUnsubscribe) {\n parent.unsubscribe();\n }\n }\n };\n return InnerRefCountSubscription;\n}(Subscription));\n//# sourceMappingURL=groupBy.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function map(project, thisArg) {\n return function mapOperation(source) {\n if (typeof project !== 'function') {\n throw new TypeError('argument is not a function. Are you looking for `mapTo()`?');\n }\n return source.lift(new MapOperator(project, thisArg));\n };\n}\nvar MapOperator = /*@__PURE__*/ (function () {\n function MapOperator(project, thisArg) {\n this.project = project;\n this.thisArg = thisArg;\n }\n MapOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new MapSubscriber(subscriber, this.project, this.thisArg));\n };\n return MapOperator;\n}());\nexport { MapOperator };\nvar MapSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(MapSubscriber, _super);\n function MapSubscriber(destination, project, thisArg) {\n var _this = _super.call(this, destination) || this;\n _this.project = project;\n _this.count = 0;\n _this.thisArg = thisArg || _this;\n return _this;\n }\n MapSubscriber.prototype._next = function (value) {\n var result;\n try {\n result = this.project.call(this.thisArg, value, this.count++);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(result);\n };\n return MapSubscriber;\n}(Subscriber));\n//# sourceMappingURL=map.js.map\n","/** PURE_IMPORTS_START _mergeMap,_util_identity PURE_IMPORTS_END */\nimport { mergeMap } from './mergeMap';\nimport { identity } from '../util/identity';\nexport function mergeAll(concurrent) {\n if (concurrent === void 0) {\n concurrent = Number.POSITIVE_INFINITY;\n }\n return mergeMap(identity, concurrent);\n}\n//# sourceMappingURL=mergeAll.js.map\n","/** PURE_IMPORTS_START tslib,_map,_observable_from,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { map } from './map';\nimport { from } from '../observable/from';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function mergeMap(project, resultSelector, concurrent) {\n if (concurrent === void 0) {\n concurrent = Number.POSITIVE_INFINITY;\n }\n if (typeof resultSelector === 'function') {\n return function (source) { return source.pipe(mergeMap(function (a, i) { return from(project(a, i)).pipe(map(function (b, ii) { return resultSelector(a, b, i, ii); })); }, concurrent)); };\n }\n else if (typeof resultSelector === 'number') {\n concurrent = resultSelector;\n }\n return function (source) { return source.lift(new MergeMapOperator(project, concurrent)); };\n}\nvar MergeMapOperator = /*@__PURE__*/ (function () {\n function MergeMapOperator(project, concurrent) {\n if (concurrent === void 0) {\n concurrent = Number.POSITIVE_INFINITY;\n }\n this.project = project;\n this.concurrent = concurrent;\n }\n MergeMapOperator.prototype.call = function (observer, source) {\n return source.subscribe(new MergeMapSubscriber(observer, this.project, this.concurrent));\n };\n return MergeMapOperator;\n}());\nexport { MergeMapOperator };\nvar MergeMapSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(MergeMapSubscriber, _super);\n function MergeMapSubscriber(destination, project, concurrent) {\n if (concurrent === void 0) {\n concurrent = Number.POSITIVE_INFINITY;\n }\n var _this = _super.call(this, destination) || this;\n _this.project = project;\n _this.concurrent = concurrent;\n _this.hasCompleted = false;\n _this.buffer = [];\n _this.active = 0;\n _this.index = 0;\n return _this;\n }\n MergeMapSubscriber.prototype._next = function (value) {\n if (this.active < this.concurrent) {\n this._tryNext(value);\n }\n else {\n this.buffer.push(value);\n }\n };\n MergeMapSubscriber.prototype._tryNext = function (value) {\n var result;\n var index = this.index++;\n try {\n result = this.project(value, index);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.active++;\n this._innerSub(result);\n };\n MergeMapSubscriber.prototype._innerSub = function (ish) {\n var innerSubscriber = new SimpleInnerSubscriber(this);\n var destination = this.destination;\n destination.add(innerSubscriber);\n var innerSubscription = innerSubscribe(ish, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n destination.add(innerSubscription);\n }\n };\n MergeMapSubscriber.prototype._complete = function () {\n this.hasCompleted = true;\n if (this.active === 0 && this.buffer.length === 0) {\n this.destination.complete();\n }\n this.unsubscribe();\n };\n MergeMapSubscriber.prototype.notifyNext = function (innerValue) {\n this.destination.next(innerValue);\n };\n MergeMapSubscriber.prototype.notifyComplete = function () {\n var buffer = this.buffer;\n this.active--;\n if (buffer.length > 0) {\n this._next(buffer.shift());\n }\n else if (this.active === 0 && this.hasCompleted) {\n this.destination.complete();\n }\n };\n return MergeMapSubscriber;\n}(SimpleOuterSubscriber));\nexport { MergeMapSubscriber };\nexport var flatMap = mergeMap;\n//# sourceMappingURL=mergeMap.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_Notification PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { Notification } from '../Notification';\nexport function observeOn(scheduler, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n return function observeOnOperatorFunction(source) {\n return source.lift(new ObserveOnOperator(scheduler, delay));\n };\n}\nvar ObserveOnOperator = /*@__PURE__*/ (function () {\n function ObserveOnOperator(scheduler, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n this.scheduler = scheduler;\n this.delay = delay;\n }\n ObserveOnOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new ObserveOnSubscriber(subscriber, this.scheduler, this.delay));\n };\n return ObserveOnOperator;\n}());\nexport { ObserveOnOperator };\nvar ObserveOnSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ObserveOnSubscriber, _super);\n function ObserveOnSubscriber(destination, scheduler, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n var _this = _super.call(this, destination) || this;\n _this.scheduler = scheduler;\n _this.delay = delay;\n return _this;\n }\n ObserveOnSubscriber.dispatch = function (arg) {\n var notification = arg.notification, destination = arg.destination;\n notification.observe(destination);\n this.unsubscribe();\n };\n ObserveOnSubscriber.prototype.scheduleMessage = function (notification) {\n var destination = this.destination;\n destination.add(this.scheduler.schedule(ObserveOnSubscriber.dispatch, this.delay, new ObserveOnMessage(notification, this.destination)));\n };\n ObserveOnSubscriber.prototype._next = function (value) {\n this.scheduleMessage(Notification.createNext(value));\n };\n ObserveOnSubscriber.prototype._error = function (err) {\n this.scheduleMessage(Notification.createError(err));\n this.unsubscribe();\n };\n ObserveOnSubscriber.prototype._complete = function () {\n this.scheduleMessage(Notification.createComplete());\n this.unsubscribe();\n };\n return ObserveOnSubscriber;\n}(Subscriber));\nexport { ObserveOnSubscriber };\nvar ObserveOnMessage = /*@__PURE__*/ (function () {\n function ObserveOnMessage(notification, destination) {\n this.notification = notification;\n this.destination = destination;\n }\n return ObserveOnMessage;\n}());\nexport { ObserveOnMessage };\n//# sourceMappingURL=observeOn.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function refCount() {\n return function refCountOperatorFunction(source) {\n return source.lift(new RefCountOperator(source));\n };\n}\nvar RefCountOperator = /*@__PURE__*/ (function () {\n function RefCountOperator(connectable) {\n this.connectable = connectable;\n }\n RefCountOperator.prototype.call = function (subscriber, source) {\n var connectable = this.connectable;\n connectable._refCount++;\n var refCounter = new RefCountSubscriber(subscriber, connectable);\n var subscription = source.subscribe(refCounter);\n if (!refCounter.closed) {\n refCounter.connection = connectable.connect();\n }\n return subscription;\n };\n return RefCountOperator;\n}());\nvar RefCountSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(RefCountSubscriber, _super);\n function RefCountSubscriber(destination, connectable) {\n var _this = _super.call(this, destination) || this;\n _this.connectable = connectable;\n return _this;\n }\n RefCountSubscriber.prototype._unsubscribe = function () {\n var connectable = this.connectable;\n if (!connectable) {\n this.connection = null;\n return;\n }\n this.connectable = null;\n var refCount = connectable._refCount;\n if (refCount <= 0) {\n this.connection = null;\n return;\n }\n connectable._refCount = refCount - 1;\n if (refCount > 1) {\n this.connection = null;\n return;\n }\n var connection = this.connection;\n var sharedConnection = connectable._connection;\n this.connection = null;\n if (sharedConnection && (!connection || sharedConnection === connection)) {\n sharedConnection.unsubscribe();\n }\n };\n return RefCountSubscriber;\n}(Subscriber));\n//# sourceMappingURL=refCount.js.map\n","/** PURE_IMPORTS_START _Observable,_Subscription PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nexport function scheduleArray(input, scheduler) {\n return new Observable(function (subscriber) {\n var sub = new Subscription();\n var i = 0;\n sub.add(scheduler.schedule(function () {\n if (i === input.length) {\n subscriber.complete();\n return;\n }\n subscriber.next(input[i++]);\n if (!subscriber.closed) {\n sub.add(this.schedule());\n }\n }));\n return sub;\n });\n}\n//# sourceMappingURL=scheduleArray.js.map\n","/** PURE_IMPORTS_START _scheduleObservable,_schedulePromise,_scheduleArray,_scheduleIterable,_util_isInteropObservable,_util_isPromise,_util_isArrayLike,_util_isIterable PURE_IMPORTS_END */\nimport { scheduleObservable } from './scheduleObservable';\nimport { schedulePromise } from './schedulePromise';\nimport { scheduleArray } from './scheduleArray';\nimport { scheduleIterable } from './scheduleIterable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isPromise } from '../util/isPromise';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isIterable } from '../util/isIterable';\nexport function scheduled(input, scheduler) {\n if (input != null) {\n if (isInteropObservable(input)) {\n return scheduleObservable(input, scheduler);\n }\n else if (isPromise(input)) {\n return schedulePromise(input, scheduler);\n }\n else if (isArrayLike(input)) {\n return scheduleArray(input, scheduler);\n }\n else if (isIterable(input) || typeof input === 'string') {\n return scheduleIterable(input, scheduler);\n }\n }\n throw new TypeError((input !== null && typeof input || input) + ' is not observable');\n}\n//# sourceMappingURL=scheduled.js.map\n","/** PURE_IMPORTS_START _symbol_observable PURE_IMPORTS_END */\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport function isInteropObservable(input) {\n return input && typeof input[Symbol_observable] === 'function';\n}\n//# sourceMappingURL=isInteropObservable.js.map\n","/** PURE_IMPORTS_START _Observable,_Subscription,_symbol_observable PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport function scheduleObservable(input, scheduler) {\n return new Observable(function (subscriber) {\n var sub = new Subscription();\n sub.add(scheduler.schedule(function () {\n var observable = input[Symbol_observable]();\n sub.add(observable.subscribe({\n next: function (value) { sub.add(scheduler.schedule(function () { return subscriber.next(value); })); },\n error: function (err) { sub.add(scheduler.schedule(function () { return subscriber.error(err); })); },\n complete: function () { sub.add(scheduler.schedule(function () { return subscriber.complete(); })); },\n }));\n }));\n return sub;\n });\n}\n//# sourceMappingURL=scheduleObservable.js.map\n","/** PURE_IMPORTS_START _Observable,_Subscription PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nexport function schedulePromise(input, scheduler) {\n return new Observable(function (subscriber) {\n var sub = new Subscription();\n sub.add(scheduler.schedule(function () {\n return input.then(function (value) {\n sub.add(scheduler.schedule(function () {\n subscriber.next(value);\n sub.add(scheduler.schedule(function () { return subscriber.complete(); }));\n }));\n }, function (err) {\n sub.add(scheduler.schedule(function () { return subscriber.error(err); }));\n });\n }));\n return sub;\n });\n}\n//# sourceMappingURL=schedulePromise.js.map\n","/** PURE_IMPORTS_START _symbol_iterator PURE_IMPORTS_END */\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nexport function isIterable(input) {\n return input && typeof input[Symbol_iterator] === 'function';\n}\n//# sourceMappingURL=isIterable.js.map\n","/** PURE_IMPORTS_START _Observable,_Subscription,_symbol_iterator PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nexport function scheduleIterable(input, scheduler) {\n if (!input) {\n throw new Error('Iterable cannot be null');\n }\n return new Observable(function (subscriber) {\n var sub = new Subscription();\n var iterator;\n sub.add(function () {\n if (iterator && typeof iterator.return === 'function') {\n iterator.return();\n }\n });\n sub.add(scheduler.schedule(function () {\n iterator = input[Symbol_iterator]();\n sub.add(scheduler.schedule(function () {\n if (subscriber.closed) {\n return;\n }\n var value;\n var done;\n try {\n var result = iterator.next();\n value = result.value;\n done = result.done;\n }\n catch (err) {\n subscriber.error(err);\n return;\n }\n if (done) {\n subscriber.complete();\n }\n else {\n subscriber.next(value);\n this.schedule();\n }\n }));\n }));\n return sub;\n });\n}\n//# sourceMappingURL=scheduleIterable.js.map\n","/** PURE_IMPORTS_START tslib,_Action PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Action } from './Action';\nvar AsyncAction = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AsyncAction, _super);\n function AsyncAction(scheduler, work) {\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n _this.pending = false;\n return _this;\n }\n AsyncAction.prototype.schedule = function (state, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if (this.closed) {\n return this;\n }\n this.state = state;\n var id = this.id;\n var scheduler = this.scheduler;\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, delay);\n }\n this.pending = true;\n this.delay = delay;\n this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);\n return this;\n };\n AsyncAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n return setInterval(scheduler.flush.bind(scheduler, this), delay);\n };\n AsyncAction.prototype.recycleAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if (delay !== null && this.delay === delay && this.pending === false) {\n return id;\n }\n clearInterval(id);\n return undefined;\n };\n AsyncAction.prototype.execute = function (state, delay) {\n if (this.closed) {\n return new Error('executing a cancelled action');\n }\n this.pending = false;\n var error = this._execute(state, delay);\n if (error) {\n return error;\n }\n else if (this.pending === false && this.id != null) {\n this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n }\n };\n AsyncAction.prototype._execute = function (state, delay) {\n var errored = false;\n var errorValue = undefined;\n try {\n this.work(state);\n }\n catch (e) {\n errored = true;\n errorValue = !!e && e || new Error(e);\n }\n if (errored) {\n this.unsubscribe();\n return errorValue;\n }\n };\n AsyncAction.prototype._unsubscribe = function () {\n var id = this.id;\n var scheduler = this.scheduler;\n var actions = scheduler.actions;\n var index = actions.indexOf(this);\n this.work = null;\n this.state = null;\n this.pending = false;\n this.scheduler = null;\n if (index !== -1) {\n actions.splice(index, 1);\n }\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, null);\n }\n this.delay = null;\n };\n return AsyncAction;\n}(Action));\nexport { AsyncAction };\n//# sourceMappingURL=AsyncAction.js.map\n","/** PURE_IMPORTS_START tslib,_Subscription PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscription } from '../Subscription';\nvar Action = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(Action, _super);\n function Action(scheduler, work) {\n return _super.call(this) || this;\n }\n Action.prototype.schedule = function (state, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n return this;\n };\n return Action;\n}(Subscription));\nexport { Action };\n//# sourceMappingURL=Action.js.map\n","/** PURE_IMPORTS_START tslib,_Scheduler PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Scheduler } from '../Scheduler';\nvar AsyncScheduler = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AsyncScheduler, _super);\n function AsyncScheduler(SchedulerAction, now) {\n if (now === void 0) {\n now = Scheduler.now;\n }\n var _this = _super.call(this, SchedulerAction, function () {\n if (AsyncScheduler.delegate && AsyncScheduler.delegate !== _this) {\n return AsyncScheduler.delegate.now();\n }\n else {\n return now();\n }\n }) || this;\n _this.actions = [];\n _this.active = false;\n _this.scheduled = undefined;\n return _this;\n }\n AsyncScheduler.prototype.schedule = function (work, delay, state) {\n if (delay === void 0) {\n delay = 0;\n }\n if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) {\n return AsyncScheduler.delegate.schedule(work, delay, state);\n }\n else {\n return _super.prototype.schedule.call(this, work, delay, state);\n }\n };\n AsyncScheduler.prototype.flush = function (action) {\n var actions = this.actions;\n if (this.active) {\n actions.push(action);\n return;\n }\n var error;\n this.active = true;\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while (action = actions.shift());\n this.active = false;\n if (error) {\n while (action = actions.shift()) {\n action.unsubscribe();\n }\n throw error;\n }\n };\n return AsyncScheduler;\n}(Scheduler));\nexport { AsyncScheduler };\n//# sourceMappingURL=AsyncScheduler.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nvar nextHandle = 1;\nvar RESOLVED = /*@__PURE__*/ (function () { return /*@__PURE__*/ Promise.resolve(); })();\nvar activeHandles = {};\nfunction findAndClearHandle(handle) {\n if (handle in activeHandles) {\n delete activeHandles[handle];\n return true;\n }\n return false;\n}\nexport var Immediate = {\n setImmediate: function (cb) {\n var handle = nextHandle++;\n activeHandles[handle] = true;\n RESOLVED.then(function () { return findAndClearHandle(handle) && cb(); });\n return handle;\n },\n clearImmediate: function (handle) {\n findAndClearHandle(handle);\n },\n};\nexport var TestTools = {\n pending: function () {\n return Object.keys(activeHandles).length;\n }\n};\n//# sourceMappingURL=Immediate.js.map\n","/** PURE_IMPORTS_START tslib,_util_Immediate,_AsyncAction PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Immediate } from '../util/Immediate';\nimport { AsyncAction } from './AsyncAction';\nvar AsapAction = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AsapAction, _super);\n function AsapAction(scheduler, work) {\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n return _this;\n }\n AsapAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if (delay !== null && delay > 0) {\n return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);\n }\n scheduler.actions.push(this);\n return scheduler.scheduled || (scheduler.scheduled = Immediate.setImmediate(scheduler.flush.bind(scheduler, null)));\n };\n AsapAction.prototype.recycleAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {\n return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);\n }\n if (scheduler.actions.length === 0) {\n Immediate.clearImmediate(id);\n scheduler.scheduled = undefined;\n }\n return undefined;\n };\n return AsapAction;\n}(AsyncAction));\nexport { AsapAction };\n//# sourceMappingURL=AsapAction.js.map\n","/** PURE_IMPORTS_START _AsapAction,_AsapScheduler PURE_IMPORTS_END */\nimport { AsapAction } from './AsapAction';\nimport { AsapScheduler } from './AsapScheduler';\nexport var asapScheduler = /*@__PURE__*/ new AsapScheduler(AsapAction);\nexport var asap = asapScheduler;\n//# sourceMappingURL=asap.js.map\n","/** PURE_IMPORTS_START tslib,_AsyncScheduler PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { AsyncScheduler } from './AsyncScheduler';\nvar AsapScheduler = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AsapScheduler, _super);\n function AsapScheduler() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n AsapScheduler.prototype.flush = function (action) {\n this.active = true;\n this.scheduled = undefined;\n var actions = this.actions;\n var error;\n var index = -1;\n var count = actions.length;\n action = action || actions.shift();\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while (++index < count && (action = actions.shift()));\n this.active = false;\n if (error) {\n while (++index < count && (action = actions.shift())) {\n action.unsubscribe();\n }\n throw error;\n }\n };\n return AsapScheduler;\n}(AsyncScheduler));\nexport { AsapScheduler };\n//# sourceMappingURL=AsapScheduler.js.map\n","/** PURE_IMPORTS_START _AsyncAction,_AsyncScheduler PURE_IMPORTS_END */\nimport { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\nexport var asyncScheduler = /*@__PURE__*/ new AsyncScheduler(AsyncAction);\nexport var async = asyncScheduler;\n//# sourceMappingURL=async.js.map\n","/** PURE_IMPORTS_START tslib,_AsyncAction PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { AsyncAction } from './AsyncAction';\nvar QueueAction = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(QueueAction, _super);\n function QueueAction(scheduler, work) {\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n return _this;\n }\n QueueAction.prototype.schedule = function (state, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if (delay > 0) {\n return _super.prototype.schedule.call(this, state, delay);\n }\n this.delay = delay;\n this.state = state;\n this.scheduler.flush(this);\n return this;\n };\n QueueAction.prototype.execute = function (state, delay) {\n return (delay > 0 || this.closed) ?\n _super.prototype.execute.call(this, state, delay) :\n this._execute(state, delay);\n };\n QueueAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {\n return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);\n }\n return scheduler.flush(this);\n };\n return QueueAction;\n}(AsyncAction));\nexport { QueueAction };\n//# sourceMappingURL=QueueAction.js.map\n","/** PURE_IMPORTS_START _QueueAction,_QueueScheduler PURE_IMPORTS_END */\nimport { QueueAction } from './QueueAction';\nimport { QueueScheduler } from './QueueScheduler';\nexport var queueScheduler = /*@__PURE__*/ new QueueScheduler(QueueAction);\nexport var queue = queueScheduler;\n//# sourceMappingURL=queue.js.map\n","/** PURE_IMPORTS_START tslib,_AsyncScheduler PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { AsyncScheduler } from './AsyncScheduler';\nvar QueueScheduler = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(QueueScheduler, _super);\n function QueueScheduler() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n return QueueScheduler;\n}(AsyncScheduler));\nexport { QueueScheduler };\n//# sourceMappingURL=QueueScheduler.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function getSymbolIterator() {\n if (typeof Symbol !== 'function' || !Symbol.iterator) {\n return '@@iterator';\n }\n return Symbol.iterator;\n}\nexport var iterator = /*@__PURE__*/ getSymbolIterator();\nexport var $$iterator = iterator;\n//# sourceMappingURL=iterator.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport var observable = /*@__PURE__*/ (function () { return typeof Symbol === 'function' && Symbol.observable || '@@observable'; })();\n//# sourceMappingURL=observable.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport var rxSubscriber = /*@__PURE__*/ (function () {\n return typeof Symbol === 'function'\n ? /*@__PURE__*/ Symbol('rxSubscriber')\n : '@@rxSubscriber_' + /*@__PURE__*/ Math.random();\n})();\nexport var $$rxSubscriber = rxSubscriber;\n//# sourceMappingURL=rxSubscriber.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nvar ArgumentOutOfRangeErrorImpl = /*@__PURE__*/ (function () {\n function ArgumentOutOfRangeErrorImpl() {\n Error.call(this);\n this.message = 'argument out of range';\n this.name = 'ArgumentOutOfRangeError';\n return this;\n }\n ArgumentOutOfRangeErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);\n return ArgumentOutOfRangeErrorImpl;\n})();\nexport var ArgumentOutOfRangeError = ArgumentOutOfRangeErrorImpl;\n//# sourceMappingURL=ArgumentOutOfRangeError.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nvar EmptyErrorImpl = /*@__PURE__*/ (function () {\n function EmptyErrorImpl() {\n Error.call(this);\n this.message = 'no elements in sequence';\n this.name = 'EmptyError';\n return this;\n }\n EmptyErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);\n return EmptyErrorImpl;\n})();\nexport var EmptyError = EmptyErrorImpl;\n//# sourceMappingURL=EmptyError.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nvar ObjectUnsubscribedErrorImpl = /*@__PURE__*/ (function () {\n function ObjectUnsubscribedErrorImpl() {\n Error.call(this);\n this.message = 'object unsubscribed';\n this.name = 'ObjectUnsubscribedError';\n return this;\n }\n ObjectUnsubscribedErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);\n return ObjectUnsubscribedErrorImpl;\n})();\nexport var ObjectUnsubscribedError = ObjectUnsubscribedErrorImpl;\n//# sourceMappingURL=ObjectUnsubscribedError.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nvar TimeoutErrorImpl = /*@__PURE__*/ (function () {\n function TimeoutErrorImpl() {\n Error.call(this);\n this.message = 'Timeout has occurred';\n this.name = 'TimeoutError';\n return this;\n }\n TimeoutErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);\n return TimeoutErrorImpl;\n})();\nexport var TimeoutError = TimeoutErrorImpl;\n//# sourceMappingURL=TimeoutError.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nvar UnsubscriptionErrorImpl = /*@__PURE__*/ (function () {\n function UnsubscriptionErrorImpl(errors) {\n Error.call(this);\n this.message = errors ?\n errors.length + \" errors occurred during unsubscription:\\n\" + errors.map(function (err, i) { return i + 1 + \") \" + err.toString(); }).join('\\n ') : '';\n this.name = 'UnsubscriptionError';\n this.errors = errors;\n return this;\n }\n UnsubscriptionErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);\n return UnsubscriptionErrorImpl;\n})();\nexport var UnsubscriptionError = UnsubscriptionErrorImpl;\n//# sourceMappingURL=UnsubscriptionError.js.map\n","/** PURE_IMPORTS_START _Subscriber PURE_IMPORTS_END */\nimport { Subscriber } from '../Subscriber';\nexport function canReportError(observer) {\n while (observer) {\n var _a = observer, closed_1 = _a.closed, destination = _a.destination, isStopped = _a.isStopped;\n if (closed_1 || isStopped) {\n return false;\n }\n else if (destination && destination instanceof Subscriber) {\n observer = destination;\n }\n else {\n observer = null;\n }\n }\n return true;\n}\n//# sourceMappingURL=canReportError.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function hostReportError(err) {\n setTimeout(function () { throw err; }, 0);\n}\n//# sourceMappingURL=hostReportError.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function identity(x) {\n return x;\n}\n//# sourceMappingURL=identity.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport var isArray = /*@__PURE__*/ (function () { return Array.isArray || (function (x) { return x && typeof x.length === 'number'; }); })();\n//# sourceMappingURL=isArray.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport var isArrayLike = (function (x) { return x && typeof x.length === 'number' && typeof x !== 'function'; });\n//# sourceMappingURL=isArrayLike.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function isFunction(x) {\n return typeof x === 'function';\n}\n//# sourceMappingURL=isFunction.js.map\n","/** PURE_IMPORTS_START _isArray PURE_IMPORTS_END */\nimport { isArray } from './isArray';\nexport function isNumeric(val) {\n return !isArray(val) && (val - parseFloat(val) + 1) >= 0;\n}\n//# sourceMappingURL=isNumeric.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function isObject(x) {\n return x !== null && typeof x === 'object';\n}\n//# sourceMappingURL=isObject.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function isPromise(value) {\n return !!value && typeof value.subscribe !== 'function' && typeof value.then === 'function';\n}\n//# sourceMappingURL=isPromise.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function isScheduler(value) {\n return value && typeof value.schedule === 'function';\n}\n//# sourceMappingURL=isScheduler.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function noop() { }\n//# sourceMappingURL=noop.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function not(pred, thisArg) {\n function notPred() {\n return !(notPred.pred.apply(notPred.thisArg, arguments));\n }\n notPred.pred = pred;\n notPred.thisArg = thisArg;\n return notPred;\n}\n//# sourceMappingURL=not.js.map\n","/** PURE_IMPORTS_START _identity PURE_IMPORTS_END */\nimport { identity } from './identity';\nexport function pipe() {\n var fns = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n fns[_i] = arguments[_i];\n }\n return pipeFromArray(fns);\n}\nexport function pipeFromArray(fns) {\n if (fns.length === 0) {\n return identity;\n }\n if (fns.length === 1) {\n return fns[0];\n }\n return function piped(input) {\n return fns.reduce(function (prev, fn) { return fn(prev); }, input);\n };\n}\n//# sourceMappingURL=pipe.js.map\n","/** PURE_IMPORTS_START _subscribeToArray,_subscribeToPromise,_subscribeToIterable,_subscribeToObservable,_isArrayLike,_isPromise,_isObject,_symbol_iterator,_symbol_observable PURE_IMPORTS_END */\nimport { subscribeToArray } from './subscribeToArray';\nimport { subscribeToPromise } from './subscribeToPromise';\nimport { subscribeToIterable } from './subscribeToIterable';\nimport { subscribeToObservable } from './subscribeToObservable';\nimport { isArrayLike } from './isArrayLike';\nimport { isPromise } from './isPromise';\nimport { isObject } from './isObject';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport var subscribeTo = function (result) {\n if (!!result && typeof result[Symbol_observable] === 'function') {\n return subscribeToObservable(result);\n }\n else if (isArrayLike(result)) {\n return subscribeToArray(result);\n }\n else if (isPromise(result)) {\n return subscribeToPromise(result);\n }\n else if (!!result && typeof result[Symbol_iterator] === 'function') {\n return subscribeToIterable(result);\n }\n else {\n var value = isObject(result) ? 'an invalid object' : \"'\" + result + \"'\";\n var msg = \"You provided \" + value + \" where a stream was expected.\"\n + ' You can provide an Observable, Promise, Array, or Iterable.';\n throw new TypeError(msg);\n }\n};\n//# sourceMappingURL=subscribeTo.js.map\n","/** PURE_IMPORTS_START _symbol_observable PURE_IMPORTS_END */\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport var subscribeToObservable = function (obj) {\n return function (subscriber) {\n var obs = obj[Symbol_observable]();\n if (typeof obs.subscribe !== 'function') {\n throw new TypeError('Provided object does not correctly implement Symbol.observable');\n }\n else {\n return obs.subscribe(subscriber);\n }\n };\n};\n//# sourceMappingURL=subscribeToObservable.js.map\n","/** PURE_IMPORTS_START _hostReportError PURE_IMPORTS_END */\nimport { hostReportError } from './hostReportError';\nexport var subscribeToPromise = function (promise) {\n return function (subscriber) {\n promise.then(function (value) {\n if (!subscriber.closed) {\n subscriber.next(value);\n subscriber.complete();\n }\n }, function (err) { return subscriber.error(err); })\n .then(null, hostReportError);\n return subscriber;\n };\n};\n//# sourceMappingURL=subscribeToPromise.js.map\n","/** PURE_IMPORTS_START _symbol_iterator PURE_IMPORTS_END */\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nexport var subscribeToIterable = function (iterable) {\n return function (subscriber) {\n var iterator = iterable[Symbol_iterator]();\n do {\n var item = void 0;\n try {\n item = iterator.next();\n }\n catch (err) {\n subscriber.error(err);\n return subscriber;\n }\n if (item.done) {\n subscriber.complete();\n break;\n }\n subscriber.next(item.value);\n if (subscriber.closed) {\n break;\n }\n } while (true);\n if (typeof iterator.return === 'function') {\n subscriber.add(function () {\n if (iterator.return) {\n iterator.return();\n }\n });\n }\n return subscriber;\n };\n};\n//# sourceMappingURL=subscribeToIterable.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport var subscribeToArray = function (array) {\n return function (subscriber) {\n for (var i = 0, len = array.length; i < len && !subscriber.closed; i++) {\n subscriber.next(array[i]);\n }\n subscriber.complete();\n };\n};\n//# sourceMappingURL=subscribeToArray.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from './Subscriber';\nvar InnerSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(InnerSubscriber, _super);\n function InnerSubscriber(parent, outerValue, outerIndex) {\n var _this = _super.call(this) || this;\n _this.parent = parent;\n _this.outerValue = outerValue;\n _this.outerIndex = outerIndex;\n _this.index = 0;\n return _this;\n }\n InnerSubscriber.prototype._next = function (value) {\n this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this);\n };\n InnerSubscriber.prototype._error = function (error) {\n this.parent.notifyError(error, this);\n this.unsubscribe();\n };\n InnerSubscriber.prototype._complete = function () {\n this.parent.notifyComplete(this);\n this.unsubscribe();\n };\n return InnerSubscriber;\n}(Subscriber));\nexport { InnerSubscriber };\n//# sourceMappingURL=InnerSubscriber.js.map\n","/** PURE_IMPORTS_START _InnerSubscriber,_subscribeTo,_Observable PURE_IMPORTS_END */\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeTo } from './subscribeTo';\nimport { Observable } from '../Observable';\nexport function subscribeToResult(outerSubscriber, result, outerValue, outerIndex, innerSubscriber) {\n if (innerSubscriber === void 0) {\n innerSubscriber = new InnerSubscriber(outerSubscriber, outerValue, outerIndex);\n }\n if (innerSubscriber.closed) {\n return undefined;\n }\n if (result instanceof Observable) {\n return result.subscribe(innerSubscriber);\n }\n return subscribeTo(result)(innerSubscriber);\n}\n//# sourceMappingURL=subscribeToResult.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function audit(durationSelector) {\n return function auditOperatorFunction(source) {\n return source.lift(new AuditOperator(durationSelector));\n };\n}\nvar AuditOperator = /*@__PURE__*/ (function () {\n function AuditOperator(durationSelector) {\n this.durationSelector = durationSelector;\n }\n AuditOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new AuditSubscriber(subscriber, this.durationSelector));\n };\n return AuditOperator;\n}());\nvar AuditSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AuditSubscriber, _super);\n function AuditSubscriber(destination, durationSelector) {\n var _this = _super.call(this, destination) || this;\n _this.durationSelector = durationSelector;\n _this.hasValue = false;\n return _this;\n }\n AuditSubscriber.prototype._next = function (value) {\n this.value = value;\n this.hasValue = true;\n if (!this.throttled) {\n var duration = void 0;\n try {\n var durationSelector = this.durationSelector;\n duration = durationSelector(value);\n }\n catch (err) {\n return this.destination.error(err);\n }\n var innerSubscription = innerSubscribe(duration, new SimpleInnerSubscriber(this));\n if (!innerSubscription || innerSubscription.closed) {\n this.clearThrottle();\n }\n else {\n this.add(this.throttled = innerSubscription);\n }\n }\n };\n AuditSubscriber.prototype.clearThrottle = function () {\n var _a = this, value = _a.value, hasValue = _a.hasValue, throttled = _a.throttled;\n if (throttled) {\n this.remove(throttled);\n this.throttled = undefined;\n throttled.unsubscribe();\n }\n if (hasValue) {\n this.value = undefined;\n this.hasValue = false;\n this.destination.next(value);\n }\n };\n AuditSubscriber.prototype.notifyNext = function () {\n this.clearThrottle();\n };\n AuditSubscriber.prototype.notifyComplete = function () {\n this.clearThrottle();\n };\n return AuditSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=audit.js.map\n","/** PURE_IMPORTS_START _scheduler_async,_audit,_observable_timer PURE_IMPORTS_END */\nimport { async } from '../scheduler/async';\nimport { audit } from './audit';\nimport { timer } from '../observable/timer';\nexport function auditTime(duration, scheduler) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n return audit(function () { return timer(duration, scheduler); });\n}\n//# sourceMappingURL=auditTime.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function buffer(closingNotifier) {\n return function bufferOperatorFunction(source) {\n return source.lift(new BufferOperator(closingNotifier));\n };\n}\nvar BufferOperator = /*@__PURE__*/ (function () {\n function BufferOperator(closingNotifier) {\n this.closingNotifier = closingNotifier;\n }\n BufferOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new BufferSubscriber(subscriber, this.closingNotifier));\n };\n return BufferOperator;\n}());\nvar BufferSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(BufferSubscriber, _super);\n function BufferSubscriber(destination, closingNotifier) {\n var _this = _super.call(this, destination) || this;\n _this.buffer = [];\n _this.add(innerSubscribe(closingNotifier, new SimpleInnerSubscriber(_this)));\n return _this;\n }\n BufferSubscriber.prototype._next = function (value) {\n this.buffer.push(value);\n };\n BufferSubscriber.prototype.notifyNext = function () {\n var buffer = this.buffer;\n this.buffer = [];\n this.destination.next(buffer);\n };\n return BufferSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=buffer.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function bufferCount(bufferSize, startBufferEvery) {\n if (startBufferEvery === void 0) {\n startBufferEvery = null;\n }\n return function bufferCountOperatorFunction(source) {\n return source.lift(new BufferCountOperator(bufferSize, startBufferEvery));\n };\n}\nvar BufferCountOperator = /*@__PURE__*/ (function () {\n function BufferCountOperator(bufferSize, startBufferEvery) {\n this.bufferSize = bufferSize;\n this.startBufferEvery = startBufferEvery;\n if (!startBufferEvery || bufferSize === startBufferEvery) {\n this.subscriberClass = BufferCountSubscriber;\n }\n else {\n this.subscriberClass = BufferSkipCountSubscriber;\n }\n }\n BufferCountOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new this.subscriberClass(subscriber, this.bufferSize, this.startBufferEvery));\n };\n return BufferCountOperator;\n}());\nvar BufferCountSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(BufferCountSubscriber, _super);\n function BufferCountSubscriber(destination, bufferSize) {\n var _this = _super.call(this, destination) || this;\n _this.bufferSize = bufferSize;\n _this.buffer = [];\n return _this;\n }\n BufferCountSubscriber.prototype._next = function (value) {\n var buffer = this.buffer;\n buffer.push(value);\n if (buffer.length == this.bufferSize) {\n this.destination.next(buffer);\n this.buffer = [];\n }\n };\n BufferCountSubscriber.prototype._complete = function () {\n var buffer = this.buffer;\n if (buffer.length > 0) {\n this.destination.next(buffer);\n }\n _super.prototype._complete.call(this);\n };\n return BufferCountSubscriber;\n}(Subscriber));\nvar BufferSkipCountSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(BufferSkipCountSubscriber, _super);\n function BufferSkipCountSubscriber(destination, bufferSize, startBufferEvery) {\n var _this = _super.call(this, destination) || this;\n _this.bufferSize = bufferSize;\n _this.startBufferEvery = startBufferEvery;\n _this.buffers = [];\n _this.count = 0;\n return _this;\n }\n BufferSkipCountSubscriber.prototype._next = function (value) {\n var _a = this, bufferSize = _a.bufferSize, startBufferEvery = _a.startBufferEvery, buffers = _a.buffers, count = _a.count;\n this.count++;\n if (count % startBufferEvery === 0) {\n buffers.push([]);\n }\n for (var i = buffers.length; i--;) {\n var buffer = buffers[i];\n buffer.push(value);\n if (buffer.length === bufferSize) {\n buffers.splice(i, 1);\n this.destination.next(buffer);\n }\n }\n };\n BufferSkipCountSubscriber.prototype._complete = function () {\n var _a = this, buffers = _a.buffers, destination = _a.destination;\n while (buffers.length > 0) {\n var buffer = buffers.shift();\n if (buffer.length > 0) {\n destination.next(buffer);\n }\n }\n _super.prototype._complete.call(this);\n };\n return BufferSkipCountSubscriber;\n}(Subscriber));\n//# sourceMappingURL=bufferCount.js.map\n","/** PURE_IMPORTS_START tslib,_scheduler_async,_Subscriber,_util_isScheduler PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { async } from '../scheduler/async';\nimport { Subscriber } from '../Subscriber';\nimport { isScheduler } from '../util/isScheduler';\nexport function bufferTime(bufferTimeSpan) {\n var length = arguments.length;\n var scheduler = async;\n if (isScheduler(arguments[arguments.length - 1])) {\n scheduler = arguments[arguments.length - 1];\n length--;\n }\n var bufferCreationInterval = null;\n if (length >= 2) {\n bufferCreationInterval = arguments[1];\n }\n var maxBufferSize = Number.POSITIVE_INFINITY;\n if (length >= 3) {\n maxBufferSize = arguments[2];\n }\n return function bufferTimeOperatorFunction(source) {\n return source.lift(new BufferTimeOperator(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler));\n };\n}\nvar BufferTimeOperator = /*@__PURE__*/ (function () {\n function BufferTimeOperator(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) {\n this.bufferTimeSpan = bufferTimeSpan;\n this.bufferCreationInterval = bufferCreationInterval;\n this.maxBufferSize = maxBufferSize;\n this.scheduler = scheduler;\n }\n BufferTimeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new BufferTimeSubscriber(subscriber, this.bufferTimeSpan, this.bufferCreationInterval, this.maxBufferSize, this.scheduler));\n };\n return BufferTimeOperator;\n}());\nvar Context = /*@__PURE__*/ (function () {\n function Context() {\n this.buffer = [];\n }\n return Context;\n}());\nvar BufferTimeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(BufferTimeSubscriber, _super);\n function BufferTimeSubscriber(destination, bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) {\n var _this = _super.call(this, destination) || this;\n _this.bufferTimeSpan = bufferTimeSpan;\n _this.bufferCreationInterval = bufferCreationInterval;\n _this.maxBufferSize = maxBufferSize;\n _this.scheduler = scheduler;\n _this.contexts = [];\n var context = _this.openContext();\n _this.timespanOnly = bufferCreationInterval == null || bufferCreationInterval < 0;\n if (_this.timespanOnly) {\n var timeSpanOnlyState = { subscriber: _this, context: context, bufferTimeSpan: bufferTimeSpan };\n _this.add(context.closeAction = scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));\n }\n else {\n var closeState = { subscriber: _this, context: context };\n var creationState = { bufferTimeSpan: bufferTimeSpan, bufferCreationInterval: bufferCreationInterval, subscriber: _this, scheduler: scheduler };\n _this.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, closeState));\n _this.add(scheduler.schedule(dispatchBufferCreation, bufferCreationInterval, creationState));\n }\n return _this;\n }\n BufferTimeSubscriber.prototype._next = function (value) {\n var contexts = this.contexts;\n var len = contexts.length;\n var filledBufferContext;\n for (var i = 0; i < len; i++) {\n var context_1 = contexts[i];\n var buffer = context_1.buffer;\n buffer.push(value);\n if (buffer.length == this.maxBufferSize) {\n filledBufferContext = context_1;\n }\n }\n if (filledBufferContext) {\n this.onBufferFull(filledBufferContext);\n }\n };\n BufferTimeSubscriber.prototype._error = function (err) {\n this.contexts.length = 0;\n _super.prototype._error.call(this, err);\n };\n BufferTimeSubscriber.prototype._complete = function () {\n var _a = this, contexts = _a.contexts, destination = _a.destination;\n while (contexts.length > 0) {\n var context_2 = contexts.shift();\n destination.next(context_2.buffer);\n }\n _super.prototype._complete.call(this);\n };\n BufferTimeSubscriber.prototype._unsubscribe = function () {\n this.contexts = null;\n };\n BufferTimeSubscriber.prototype.onBufferFull = function (context) {\n this.closeContext(context);\n var closeAction = context.closeAction;\n closeAction.unsubscribe();\n this.remove(closeAction);\n if (!this.closed && this.timespanOnly) {\n context = this.openContext();\n var bufferTimeSpan = this.bufferTimeSpan;\n var timeSpanOnlyState = { subscriber: this, context: context, bufferTimeSpan: bufferTimeSpan };\n this.add(context.closeAction = this.scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));\n }\n };\n BufferTimeSubscriber.prototype.openContext = function () {\n var context = new Context();\n this.contexts.push(context);\n return context;\n };\n BufferTimeSubscriber.prototype.closeContext = function (context) {\n this.destination.next(context.buffer);\n var contexts = this.contexts;\n var spliceIndex = contexts ? contexts.indexOf(context) : -1;\n if (spliceIndex >= 0) {\n contexts.splice(contexts.indexOf(context), 1);\n }\n };\n return BufferTimeSubscriber;\n}(Subscriber));\nfunction dispatchBufferTimeSpanOnly(state) {\n var subscriber = state.subscriber;\n var prevContext = state.context;\n if (prevContext) {\n subscriber.closeContext(prevContext);\n }\n if (!subscriber.closed) {\n state.context = subscriber.openContext();\n state.context.closeAction = this.schedule(state, state.bufferTimeSpan);\n }\n}\nfunction dispatchBufferCreation(state) {\n var bufferCreationInterval = state.bufferCreationInterval, bufferTimeSpan = state.bufferTimeSpan, subscriber = state.subscriber, scheduler = state.scheduler;\n var context = subscriber.openContext();\n var action = this;\n if (!subscriber.closed) {\n subscriber.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, { subscriber: subscriber, context: context }));\n action.schedule(state, bufferCreationInterval);\n }\n}\nfunction dispatchBufferClose(arg) {\n var subscriber = arg.subscriber, context = arg.context;\n subscriber.closeContext(context);\n}\n//# sourceMappingURL=bufferTime.js.map\n","/** PURE_IMPORTS_START tslib,_Subscription,_util_subscribeToResult,_OuterSubscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscription } from '../Subscription';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OuterSubscriber } from '../OuterSubscriber';\nexport function bufferToggle(openings, closingSelector) {\n return function bufferToggleOperatorFunction(source) {\n return source.lift(new BufferToggleOperator(openings, closingSelector));\n };\n}\nvar BufferToggleOperator = /*@__PURE__*/ (function () {\n function BufferToggleOperator(openings, closingSelector) {\n this.openings = openings;\n this.closingSelector = closingSelector;\n }\n BufferToggleOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new BufferToggleSubscriber(subscriber, this.openings, this.closingSelector));\n };\n return BufferToggleOperator;\n}());\nvar BufferToggleSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(BufferToggleSubscriber, _super);\n function BufferToggleSubscriber(destination, openings, closingSelector) {\n var _this = _super.call(this, destination) || this;\n _this.closingSelector = closingSelector;\n _this.contexts = [];\n _this.add(subscribeToResult(_this, openings));\n return _this;\n }\n BufferToggleSubscriber.prototype._next = function (value) {\n var contexts = this.contexts;\n var len = contexts.length;\n for (var i = 0; i < len; i++) {\n contexts[i].buffer.push(value);\n }\n };\n BufferToggleSubscriber.prototype._error = function (err) {\n var contexts = this.contexts;\n while (contexts.length > 0) {\n var context_1 = contexts.shift();\n context_1.subscription.unsubscribe();\n context_1.buffer = null;\n context_1.subscription = null;\n }\n this.contexts = null;\n _super.prototype._error.call(this, err);\n };\n BufferToggleSubscriber.prototype._complete = function () {\n var contexts = this.contexts;\n while (contexts.length > 0) {\n var context_2 = contexts.shift();\n this.destination.next(context_2.buffer);\n context_2.subscription.unsubscribe();\n context_2.buffer = null;\n context_2.subscription = null;\n }\n this.contexts = null;\n _super.prototype._complete.call(this);\n };\n BufferToggleSubscriber.prototype.notifyNext = function (outerValue, innerValue) {\n outerValue ? this.closeBuffer(outerValue) : this.openBuffer(innerValue);\n };\n BufferToggleSubscriber.prototype.notifyComplete = function (innerSub) {\n this.closeBuffer(innerSub.context);\n };\n BufferToggleSubscriber.prototype.openBuffer = function (value) {\n try {\n var closingSelector = this.closingSelector;\n var closingNotifier = closingSelector.call(this, value);\n if (closingNotifier) {\n this.trySubscribe(closingNotifier);\n }\n }\n catch (err) {\n this._error(err);\n }\n };\n BufferToggleSubscriber.prototype.closeBuffer = function (context) {\n var contexts = this.contexts;\n if (contexts && context) {\n var buffer = context.buffer, subscription = context.subscription;\n this.destination.next(buffer);\n contexts.splice(contexts.indexOf(context), 1);\n this.remove(subscription);\n subscription.unsubscribe();\n }\n };\n BufferToggleSubscriber.prototype.trySubscribe = function (closingNotifier) {\n var contexts = this.contexts;\n var buffer = [];\n var subscription = new Subscription();\n var context = { buffer: buffer, subscription: subscription };\n contexts.push(context);\n var innerSubscription = subscribeToResult(this, closingNotifier, context);\n if (!innerSubscription || innerSubscription.closed) {\n this.closeBuffer(context);\n }\n else {\n innerSubscription.context = context;\n this.add(innerSubscription);\n subscription.add(innerSubscription);\n }\n };\n return BufferToggleSubscriber;\n}(OuterSubscriber));\n//# sourceMappingURL=bufferToggle.js.map\n","/** PURE_IMPORTS_START tslib,_Subscription,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscription } from '../Subscription';\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function bufferWhen(closingSelector) {\n return function (source) {\n return source.lift(new BufferWhenOperator(closingSelector));\n };\n}\nvar BufferWhenOperator = /*@__PURE__*/ (function () {\n function BufferWhenOperator(closingSelector) {\n this.closingSelector = closingSelector;\n }\n BufferWhenOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new BufferWhenSubscriber(subscriber, this.closingSelector));\n };\n return BufferWhenOperator;\n}());\nvar BufferWhenSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(BufferWhenSubscriber, _super);\n function BufferWhenSubscriber(destination, closingSelector) {\n var _this = _super.call(this, destination) || this;\n _this.closingSelector = closingSelector;\n _this.subscribing = false;\n _this.openBuffer();\n return _this;\n }\n BufferWhenSubscriber.prototype._next = function (value) {\n this.buffer.push(value);\n };\n BufferWhenSubscriber.prototype._complete = function () {\n var buffer = this.buffer;\n if (buffer) {\n this.destination.next(buffer);\n }\n _super.prototype._complete.call(this);\n };\n BufferWhenSubscriber.prototype._unsubscribe = function () {\n this.buffer = undefined;\n this.subscribing = false;\n };\n BufferWhenSubscriber.prototype.notifyNext = function () {\n this.openBuffer();\n };\n BufferWhenSubscriber.prototype.notifyComplete = function () {\n if (this.subscribing) {\n this.complete();\n }\n else {\n this.openBuffer();\n }\n };\n BufferWhenSubscriber.prototype.openBuffer = function () {\n var closingSubscription = this.closingSubscription;\n if (closingSubscription) {\n this.remove(closingSubscription);\n closingSubscription.unsubscribe();\n }\n var buffer = this.buffer;\n if (this.buffer) {\n this.destination.next(buffer);\n }\n this.buffer = [];\n var closingNotifier;\n try {\n var closingSelector = this.closingSelector;\n closingNotifier = closingSelector();\n }\n catch (err) {\n return this.error(err);\n }\n closingSubscription = new Subscription();\n this.closingSubscription = closingSubscription;\n this.add(closingSubscription);\n this.subscribing = true;\n closingSubscription.add(innerSubscribe(closingNotifier, new SimpleInnerSubscriber(this)));\n this.subscribing = false;\n };\n return BufferWhenSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=bufferWhen.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function catchError(selector) {\n return function catchErrorOperatorFunction(source) {\n var operator = new CatchOperator(selector);\n var caught = source.lift(operator);\n return (operator.caught = caught);\n };\n}\nvar CatchOperator = /*@__PURE__*/ (function () {\n function CatchOperator(selector) {\n this.selector = selector;\n }\n CatchOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new CatchSubscriber(subscriber, this.selector, this.caught));\n };\n return CatchOperator;\n}());\nvar CatchSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(CatchSubscriber, _super);\n function CatchSubscriber(destination, selector, caught) {\n var _this = _super.call(this, destination) || this;\n _this.selector = selector;\n _this.caught = caught;\n return _this;\n }\n CatchSubscriber.prototype.error = function (err) {\n if (!this.isStopped) {\n var result = void 0;\n try {\n result = this.selector(err, this.caught);\n }\n catch (err2) {\n _super.prototype.error.call(this, err2);\n return;\n }\n this._unsubscribeAndRecycle();\n var innerSubscriber = new SimpleInnerSubscriber(this);\n this.add(innerSubscriber);\n var innerSubscription = innerSubscribe(result, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n this.add(innerSubscription);\n }\n }\n };\n return CatchSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=catchError.js.map\n","/** PURE_IMPORTS_START _observable_combineLatest PURE_IMPORTS_END */\nimport { CombineLatestOperator } from '../observable/combineLatest';\nexport function combineAll(project) {\n return function (source) { return source.lift(new CombineLatestOperator(project)); };\n}\n//# sourceMappingURL=combineAll.js.map\n","/** PURE_IMPORTS_START _util_isArray,_observable_combineLatest,_observable_from PURE_IMPORTS_END */\nimport { isArray } from '../util/isArray';\nimport { CombineLatestOperator } from '../observable/combineLatest';\nimport { from } from '../observable/from';\nvar none = {};\nexport function combineLatest() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n var project = null;\n if (typeof observables[observables.length - 1] === 'function') {\n project = observables.pop();\n }\n if (observables.length === 1 && isArray(observables[0])) {\n observables = observables[0].slice();\n }\n return function (source) { return source.lift.call(from([source].concat(observables)), new CombineLatestOperator(project)); };\n}\n//# sourceMappingURL=combineLatest.js.map\n","/** PURE_IMPORTS_START _observable_concat PURE_IMPORTS_END */\nimport { concat as concatStatic } from '../observable/concat';\nexport function concat() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n return function (source) { return source.lift.call(concatStatic.apply(void 0, [source].concat(observables))); };\n}\n//# sourceMappingURL=concat.js.map\n","/** PURE_IMPORTS_START _mergeMap PURE_IMPORTS_END */\nimport { mergeMap } from './mergeMap';\nexport function concatMap(project, resultSelector) {\n return mergeMap(project, resultSelector, 1);\n}\n//# sourceMappingURL=concatMap.js.map\n","/** PURE_IMPORTS_START _concatMap PURE_IMPORTS_END */\nimport { concatMap } from './concatMap';\nexport function concatMapTo(innerObservable, resultSelector) {\n return concatMap(function () { return innerObservable; }, resultSelector);\n}\n//# sourceMappingURL=concatMapTo.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function count(predicate) {\n return function (source) { return source.lift(new CountOperator(predicate, source)); };\n}\nvar CountOperator = /*@__PURE__*/ (function () {\n function CountOperator(predicate, source) {\n this.predicate = predicate;\n this.source = source;\n }\n CountOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new CountSubscriber(subscriber, this.predicate, this.source));\n };\n return CountOperator;\n}());\nvar CountSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(CountSubscriber, _super);\n function CountSubscriber(destination, predicate, source) {\n var _this = _super.call(this, destination) || this;\n _this.predicate = predicate;\n _this.source = source;\n _this.count = 0;\n _this.index = 0;\n return _this;\n }\n CountSubscriber.prototype._next = function (value) {\n if (this.predicate) {\n this._tryPredicate(value);\n }\n else {\n this.count++;\n }\n };\n CountSubscriber.prototype._tryPredicate = function (value) {\n var result;\n try {\n result = this.predicate(value, this.index++, this.source);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n if (result) {\n this.count++;\n }\n };\n CountSubscriber.prototype._complete = function () {\n this.destination.next(this.count);\n this.destination.complete();\n };\n return CountSubscriber;\n}(Subscriber));\n//# sourceMappingURL=count.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function debounce(durationSelector) {\n return function (source) { return source.lift(new DebounceOperator(durationSelector)); };\n}\nvar DebounceOperator = /*@__PURE__*/ (function () {\n function DebounceOperator(durationSelector) {\n this.durationSelector = durationSelector;\n }\n DebounceOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DebounceSubscriber(subscriber, this.durationSelector));\n };\n return DebounceOperator;\n}());\nvar DebounceSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(DebounceSubscriber, _super);\n function DebounceSubscriber(destination, durationSelector) {\n var _this = _super.call(this, destination) || this;\n _this.durationSelector = durationSelector;\n _this.hasValue = false;\n return _this;\n }\n DebounceSubscriber.prototype._next = function (value) {\n try {\n var result = this.durationSelector.call(this, value);\n if (result) {\n this._tryNext(value, result);\n }\n }\n catch (err) {\n this.destination.error(err);\n }\n };\n DebounceSubscriber.prototype._complete = function () {\n this.emitValue();\n this.destination.complete();\n };\n DebounceSubscriber.prototype._tryNext = function (value, duration) {\n var subscription = this.durationSubscription;\n this.value = value;\n this.hasValue = true;\n if (subscription) {\n subscription.unsubscribe();\n this.remove(subscription);\n }\n subscription = innerSubscribe(duration, new SimpleInnerSubscriber(this));\n if (subscription && !subscription.closed) {\n this.add(this.durationSubscription = subscription);\n }\n };\n DebounceSubscriber.prototype.notifyNext = function () {\n this.emitValue();\n };\n DebounceSubscriber.prototype.notifyComplete = function () {\n this.emitValue();\n };\n DebounceSubscriber.prototype.emitValue = function () {\n if (this.hasValue) {\n var value = this.value;\n var subscription = this.durationSubscription;\n if (subscription) {\n this.durationSubscription = undefined;\n subscription.unsubscribe();\n this.remove(subscription);\n }\n this.value = undefined;\n this.hasValue = false;\n _super.prototype._next.call(this, value);\n }\n };\n return DebounceSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=debounce.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_scheduler_async PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { async } from '../scheduler/async';\nexport function debounceTime(dueTime, scheduler) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n return function (source) { return source.lift(new DebounceTimeOperator(dueTime, scheduler)); };\n}\nvar DebounceTimeOperator = /*@__PURE__*/ (function () {\n function DebounceTimeOperator(dueTime, scheduler) {\n this.dueTime = dueTime;\n this.scheduler = scheduler;\n }\n DebounceTimeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DebounceTimeSubscriber(subscriber, this.dueTime, this.scheduler));\n };\n return DebounceTimeOperator;\n}());\nvar DebounceTimeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(DebounceTimeSubscriber, _super);\n function DebounceTimeSubscriber(destination, dueTime, scheduler) {\n var _this = _super.call(this, destination) || this;\n _this.dueTime = dueTime;\n _this.scheduler = scheduler;\n _this.debouncedSubscription = null;\n _this.lastValue = null;\n _this.hasValue = false;\n return _this;\n }\n DebounceTimeSubscriber.prototype._next = function (value) {\n this.clearDebounce();\n this.lastValue = value;\n this.hasValue = true;\n this.add(this.debouncedSubscription = this.scheduler.schedule(dispatchNext, this.dueTime, this));\n };\n DebounceTimeSubscriber.prototype._complete = function () {\n this.debouncedNext();\n this.destination.complete();\n };\n DebounceTimeSubscriber.prototype.debouncedNext = function () {\n this.clearDebounce();\n if (this.hasValue) {\n var lastValue = this.lastValue;\n this.lastValue = null;\n this.hasValue = false;\n this.destination.next(lastValue);\n }\n };\n DebounceTimeSubscriber.prototype.clearDebounce = function () {\n var debouncedSubscription = this.debouncedSubscription;\n if (debouncedSubscription !== null) {\n this.remove(debouncedSubscription);\n debouncedSubscription.unsubscribe();\n this.debouncedSubscription = null;\n }\n };\n return DebounceTimeSubscriber;\n}(Subscriber));\nfunction dispatchNext(subscriber) {\n subscriber.debouncedNext();\n}\n//# sourceMappingURL=debounceTime.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function defaultIfEmpty(defaultValue) {\n if (defaultValue === void 0) {\n defaultValue = null;\n }\n return function (source) { return source.lift(new DefaultIfEmptyOperator(defaultValue)); };\n}\nvar DefaultIfEmptyOperator = /*@__PURE__*/ (function () {\n function DefaultIfEmptyOperator(defaultValue) {\n this.defaultValue = defaultValue;\n }\n DefaultIfEmptyOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DefaultIfEmptySubscriber(subscriber, this.defaultValue));\n };\n return DefaultIfEmptyOperator;\n}());\nvar DefaultIfEmptySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(DefaultIfEmptySubscriber, _super);\n function DefaultIfEmptySubscriber(destination, defaultValue) {\n var _this = _super.call(this, destination) || this;\n _this.defaultValue = defaultValue;\n _this.isEmpty = true;\n return _this;\n }\n DefaultIfEmptySubscriber.prototype._next = function (value) {\n this.isEmpty = false;\n this.destination.next(value);\n };\n DefaultIfEmptySubscriber.prototype._complete = function () {\n if (this.isEmpty) {\n this.destination.next(this.defaultValue);\n }\n this.destination.complete();\n };\n return DefaultIfEmptySubscriber;\n}(Subscriber));\n//# sourceMappingURL=defaultIfEmpty.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function isDate(value) {\n return value instanceof Date && !isNaN(+value);\n}\n//# sourceMappingURL=isDate.js.map\n","/** PURE_IMPORTS_START tslib,_scheduler_async,_util_isDate,_Subscriber,_Notification PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { async } from '../scheduler/async';\nimport { isDate } from '../util/isDate';\nimport { Subscriber } from '../Subscriber';\nimport { Notification } from '../Notification';\nexport function delay(delay, scheduler) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n var absoluteDelay = isDate(delay);\n var delayFor = absoluteDelay ? (+delay - scheduler.now()) : Math.abs(delay);\n return function (source) { return source.lift(new DelayOperator(delayFor, scheduler)); };\n}\nvar DelayOperator = /*@__PURE__*/ (function () {\n function DelayOperator(delay, scheduler) {\n this.delay = delay;\n this.scheduler = scheduler;\n }\n DelayOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DelaySubscriber(subscriber, this.delay, this.scheduler));\n };\n return DelayOperator;\n}());\nvar DelaySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(DelaySubscriber, _super);\n function DelaySubscriber(destination, delay, scheduler) {\n var _this = _super.call(this, destination) || this;\n _this.delay = delay;\n _this.scheduler = scheduler;\n _this.queue = [];\n _this.active = false;\n _this.errored = false;\n return _this;\n }\n DelaySubscriber.dispatch = function (state) {\n var source = state.source;\n var queue = source.queue;\n var scheduler = state.scheduler;\n var destination = state.destination;\n while (queue.length > 0 && (queue[0].time - scheduler.now()) <= 0) {\n queue.shift().notification.observe(destination);\n }\n if (queue.length > 0) {\n var delay_1 = Math.max(0, queue[0].time - scheduler.now());\n this.schedule(state, delay_1);\n }\n else {\n this.unsubscribe();\n source.active = false;\n }\n };\n DelaySubscriber.prototype._schedule = function (scheduler) {\n this.active = true;\n var destination = this.destination;\n destination.add(scheduler.schedule(DelaySubscriber.dispatch, this.delay, {\n source: this, destination: this.destination, scheduler: scheduler\n }));\n };\n DelaySubscriber.prototype.scheduleNotification = function (notification) {\n if (this.errored === true) {\n return;\n }\n var scheduler = this.scheduler;\n var message = new DelayMessage(scheduler.now() + this.delay, notification);\n this.queue.push(message);\n if (this.active === false) {\n this._schedule(scheduler);\n }\n };\n DelaySubscriber.prototype._next = function (value) {\n this.scheduleNotification(Notification.createNext(value));\n };\n DelaySubscriber.prototype._error = function (err) {\n this.errored = true;\n this.queue = [];\n this.destination.error(err);\n this.unsubscribe();\n };\n DelaySubscriber.prototype._complete = function () {\n this.scheduleNotification(Notification.createComplete());\n this.unsubscribe();\n };\n return DelaySubscriber;\n}(Subscriber));\nvar DelayMessage = /*@__PURE__*/ (function () {\n function DelayMessage(time, notification) {\n this.time = time;\n this.notification = notification;\n }\n return DelayMessage;\n}());\n//# sourceMappingURL=delay.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_Observable,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nexport function delayWhen(delayDurationSelector, subscriptionDelay) {\n if (subscriptionDelay) {\n return function (source) {\n return new SubscriptionDelayObservable(source, subscriptionDelay)\n .lift(new DelayWhenOperator(delayDurationSelector));\n };\n }\n return function (source) { return source.lift(new DelayWhenOperator(delayDurationSelector)); };\n}\nvar DelayWhenOperator = /*@__PURE__*/ (function () {\n function DelayWhenOperator(delayDurationSelector) {\n this.delayDurationSelector = delayDurationSelector;\n }\n DelayWhenOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DelayWhenSubscriber(subscriber, this.delayDurationSelector));\n };\n return DelayWhenOperator;\n}());\nvar DelayWhenSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(DelayWhenSubscriber, _super);\n function DelayWhenSubscriber(destination, delayDurationSelector) {\n var _this = _super.call(this, destination) || this;\n _this.delayDurationSelector = delayDurationSelector;\n _this.completed = false;\n _this.delayNotifierSubscriptions = [];\n _this.index = 0;\n return _this;\n }\n DelayWhenSubscriber.prototype.notifyNext = function (outerValue, _innerValue, _outerIndex, _innerIndex, innerSub) {\n this.destination.next(outerValue);\n this.removeSubscription(innerSub);\n this.tryComplete();\n };\n DelayWhenSubscriber.prototype.notifyError = function (error, innerSub) {\n this._error(error);\n };\n DelayWhenSubscriber.prototype.notifyComplete = function (innerSub) {\n var value = this.removeSubscription(innerSub);\n if (value) {\n this.destination.next(value);\n }\n this.tryComplete();\n };\n DelayWhenSubscriber.prototype._next = function (value) {\n var index = this.index++;\n try {\n var delayNotifier = this.delayDurationSelector(value, index);\n if (delayNotifier) {\n this.tryDelay(delayNotifier, value);\n }\n }\n catch (err) {\n this.destination.error(err);\n }\n };\n DelayWhenSubscriber.prototype._complete = function () {\n this.completed = true;\n this.tryComplete();\n this.unsubscribe();\n };\n DelayWhenSubscriber.prototype.removeSubscription = function (subscription) {\n subscription.unsubscribe();\n var subscriptionIdx = this.delayNotifierSubscriptions.indexOf(subscription);\n if (subscriptionIdx !== -1) {\n this.delayNotifierSubscriptions.splice(subscriptionIdx, 1);\n }\n return subscription.outerValue;\n };\n DelayWhenSubscriber.prototype.tryDelay = function (delayNotifier, value) {\n var notifierSubscription = subscribeToResult(this, delayNotifier, value);\n if (notifierSubscription && !notifierSubscription.closed) {\n var destination = this.destination;\n destination.add(notifierSubscription);\n this.delayNotifierSubscriptions.push(notifierSubscription);\n }\n };\n DelayWhenSubscriber.prototype.tryComplete = function () {\n if (this.completed && this.delayNotifierSubscriptions.length === 0) {\n this.destination.complete();\n }\n };\n return DelayWhenSubscriber;\n}(OuterSubscriber));\nvar SubscriptionDelayObservable = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SubscriptionDelayObservable, _super);\n function SubscriptionDelayObservable(source, subscriptionDelay) {\n var _this = _super.call(this) || this;\n _this.source = source;\n _this.subscriptionDelay = subscriptionDelay;\n return _this;\n }\n SubscriptionDelayObservable.prototype._subscribe = function (subscriber) {\n this.subscriptionDelay.subscribe(new SubscriptionDelaySubscriber(subscriber, this.source));\n };\n return SubscriptionDelayObservable;\n}(Observable));\nvar SubscriptionDelaySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SubscriptionDelaySubscriber, _super);\n function SubscriptionDelaySubscriber(parent, source) {\n var _this = _super.call(this) || this;\n _this.parent = parent;\n _this.source = source;\n _this.sourceSubscribed = false;\n return _this;\n }\n SubscriptionDelaySubscriber.prototype._next = function (unused) {\n this.subscribeToSource();\n };\n SubscriptionDelaySubscriber.prototype._error = function (err) {\n this.unsubscribe();\n this.parent.error(err);\n };\n SubscriptionDelaySubscriber.prototype._complete = function () {\n this.unsubscribe();\n this.subscribeToSource();\n };\n SubscriptionDelaySubscriber.prototype.subscribeToSource = function () {\n if (!this.sourceSubscribed) {\n this.sourceSubscribed = true;\n this.unsubscribe();\n this.source.subscribe(this.parent);\n }\n };\n return SubscriptionDelaySubscriber;\n}(Subscriber));\n//# sourceMappingURL=delayWhen.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function dematerialize() {\n return function dematerializeOperatorFunction(source) {\n return source.lift(new DeMaterializeOperator());\n };\n}\nvar DeMaterializeOperator = /*@__PURE__*/ (function () {\n function DeMaterializeOperator() {\n }\n DeMaterializeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DeMaterializeSubscriber(subscriber));\n };\n return DeMaterializeOperator;\n}());\nvar DeMaterializeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(DeMaterializeSubscriber, _super);\n function DeMaterializeSubscriber(destination) {\n return _super.call(this, destination) || this;\n }\n DeMaterializeSubscriber.prototype._next = function (value) {\n value.observe(this.destination);\n };\n return DeMaterializeSubscriber;\n}(Subscriber));\n//# sourceMappingURL=dematerialize.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function distinct(keySelector, flushes) {\n return function (source) { return source.lift(new DistinctOperator(keySelector, flushes)); };\n}\nvar DistinctOperator = /*@__PURE__*/ (function () {\n function DistinctOperator(keySelector, flushes) {\n this.keySelector = keySelector;\n this.flushes = flushes;\n }\n DistinctOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DistinctSubscriber(subscriber, this.keySelector, this.flushes));\n };\n return DistinctOperator;\n}());\nvar DistinctSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(DistinctSubscriber, _super);\n function DistinctSubscriber(destination, keySelector, flushes) {\n var _this = _super.call(this, destination) || this;\n _this.keySelector = keySelector;\n _this.values = new Set();\n if (flushes) {\n _this.add(innerSubscribe(flushes, new SimpleInnerSubscriber(_this)));\n }\n return _this;\n }\n DistinctSubscriber.prototype.notifyNext = function () {\n this.values.clear();\n };\n DistinctSubscriber.prototype.notifyError = function (error) {\n this._error(error);\n };\n DistinctSubscriber.prototype._next = function (value) {\n if (this.keySelector) {\n this._useKeySelector(value);\n }\n else {\n this._finalizeNext(value, value);\n }\n };\n DistinctSubscriber.prototype._useKeySelector = function (value) {\n var key;\n var destination = this.destination;\n try {\n key = this.keySelector(value);\n }\n catch (err) {\n destination.error(err);\n return;\n }\n this._finalizeNext(key, value);\n };\n DistinctSubscriber.prototype._finalizeNext = function (key, value) {\n var values = this.values;\n if (!values.has(key)) {\n values.add(key);\n this.destination.next(value);\n }\n };\n return DistinctSubscriber;\n}(SimpleOuterSubscriber));\nexport { DistinctSubscriber };\n//# sourceMappingURL=distinct.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function distinctUntilChanged(compare, keySelector) {\n return function (source) { return source.lift(new DistinctUntilChangedOperator(compare, keySelector)); };\n}\nvar DistinctUntilChangedOperator = /*@__PURE__*/ (function () {\n function DistinctUntilChangedOperator(compare, keySelector) {\n this.compare = compare;\n this.keySelector = keySelector;\n }\n DistinctUntilChangedOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DistinctUntilChangedSubscriber(subscriber, this.compare, this.keySelector));\n };\n return DistinctUntilChangedOperator;\n}());\nvar DistinctUntilChangedSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(DistinctUntilChangedSubscriber, _super);\n function DistinctUntilChangedSubscriber(destination, compare, keySelector) {\n var _this = _super.call(this, destination) || this;\n _this.keySelector = keySelector;\n _this.hasKey = false;\n if (typeof compare === 'function') {\n _this.compare = compare;\n }\n return _this;\n }\n DistinctUntilChangedSubscriber.prototype.compare = function (x, y) {\n return x === y;\n };\n DistinctUntilChangedSubscriber.prototype._next = function (value) {\n var key;\n try {\n var keySelector = this.keySelector;\n key = keySelector ? keySelector(value) : value;\n }\n catch (err) {\n return this.destination.error(err);\n }\n var result = false;\n if (this.hasKey) {\n try {\n var compare = this.compare;\n result = compare(this.key, key);\n }\n catch (err) {\n return this.destination.error(err);\n }\n }\n else {\n this.hasKey = true;\n }\n if (!result) {\n this.key = key;\n this.destination.next(value);\n }\n };\n return DistinctUntilChangedSubscriber;\n}(Subscriber));\n//# sourceMappingURL=distinctUntilChanged.js.map\n","/** PURE_IMPORTS_START _distinctUntilChanged PURE_IMPORTS_END */\nimport { distinctUntilChanged } from './distinctUntilChanged';\nexport function distinctUntilKeyChanged(key, compare) {\n return distinctUntilChanged(function (x, y) { return compare ? compare(x[key], y[key]) : x[key] === y[key]; });\n}\n//# sourceMappingURL=distinctUntilKeyChanged.js.map\n","/** PURE_IMPORTS_START tslib,_util_EmptyError,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { EmptyError } from '../util/EmptyError';\nimport { Subscriber } from '../Subscriber';\nexport function throwIfEmpty(errorFactory) {\n if (errorFactory === void 0) {\n errorFactory = defaultErrorFactory;\n }\n return function (source) {\n return source.lift(new ThrowIfEmptyOperator(errorFactory));\n };\n}\nvar ThrowIfEmptyOperator = /*@__PURE__*/ (function () {\n function ThrowIfEmptyOperator(errorFactory) {\n this.errorFactory = errorFactory;\n }\n ThrowIfEmptyOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new ThrowIfEmptySubscriber(subscriber, this.errorFactory));\n };\n return ThrowIfEmptyOperator;\n}());\nvar ThrowIfEmptySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ThrowIfEmptySubscriber, _super);\n function ThrowIfEmptySubscriber(destination, errorFactory) {\n var _this = _super.call(this, destination) || this;\n _this.errorFactory = errorFactory;\n _this.hasValue = false;\n return _this;\n }\n ThrowIfEmptySubscriber.prototype._next = function (value) {\n this.hasValue = true;\n this.destination.next(value);\n };\n ThrowIfEmptySubscriber.prototype._complete = function () {\n if (!this.hasValue) {\n var err = void 0;\n try {\n err = this.errorFactory();\n }\n catch (e) {\n err = e;\n }\n this.destination.error(err);\n }\n else {\n return this.destination.complete();\n }\n };\n return ThrowIfEmptySubscriber;\n}(Subscriber));\nfunction defaultErrorFactory() {\n return new EmptyError();\n}\n//# sourceMappingURL=throwIfEmpty.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_util_ArgumentOutOfRangeError,_observable_empty PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { empty } from '../observable/empty';\nexport function take(count) {\n return function (source) {\n if (count === 0) {\n return empty();\n }\n else {\n return source.lift(new TakeOperator(count));\n }\n };\n}\nvar TakeOperator = /*@__PURE__*/ (function () {\n function TakeOperator(total) {\n this.total = total;\n if (this.total < 0) {\n throw new ArgumentOutOfRangeError;\n }\n }\n TakeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new TakeSubscriber(subscriber, this.total));\n };\n return TakeOperator;\n}());\nvar TakeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(TakeSubscriber, _super);\n function TakeSubscriber(destination, total) {\n var _this = _super.call(this, destination) || this;\n _this.total = total;\n _this.count = 0;\n return _this;\n }\n TakeSubscriber.prototype._next = function (value) {\n var total = this.total;\n var count = ++this.count;\n if (count <= total) {\n this.destination.next(value);\n if (count === total) {\n this.destination.complete();\n this.unsubscribe();\n }\n }\n };\n return TakeSubscriber;\n}(Subscriber));\n//# sourceMappingURL=take.js.map\n","/** PURE_IMPORTS_START _util_ArgumentOutOfRangeError,_filter,_throwIfEmpty,_defaultIfEmpty,_take PURE_IMPORTS_END */\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { filter } from './filter';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { take } from './take';\nexport function elementAt(index, defaultValue) {\n if (index < 0) {\n throw new ArgumentOutOfRangeError();\n }\n var hasDefaultValue = arguments.length >= 2;\n return function (source) {\n return source.pipe(filter(function (v, i) { return i === index; }), take(1), hasDefaultValue\n ? defaultIfEmpty(defaultValue)\n : throwIfEmpty(function () { return new ArgumentOutOfRangeError(); }));\n };\n}\n//# sourceMappingURL=elementAt.js.map\n","/** PURE_IMPORTS_START _observable_concat,_observable_of PURE_IMPORTS_END */\nimport { concat } from '../observable/concat';\nimport { of } from '../observable/of';\nexport function endWith() {\n var array = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n array[_i] = arguments[_i];\n }\n return function (source) { return concat(source, of.apply(void 0, array)); };\n}\n//# sourceMappingURL=endWith.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function every(predicate, thisArg) {\n return function (source) { return source.lift(new EveryOperator(predicate, thisArg, source)); };\n}\nvar EveryOperator = /*@__PURE__*/ (function () {\n function EveryOperator(predicate, thisArg, source) {\n this.predicate = predicate;\n this.thisArg = thisArg;\n this.source = source;\n }\n EveryOperator.prototype.call = function (observer, source) {\n return source.subscribe(new EverySubscriber(observer, this.predicate, this.thisArg, this.source));\n };\n return EveryOperator;\n}());\nvar EverySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(EverySubscriber, _super);\n function EverySubscriber(destination, predicate, thisArg, source) {\n var _this = _super.call(this, destination) || this;\n _this.predicate = predicate;\n _this.thisArg = thisArg;\n _this.source = source;\n _this.index = 0;\n _this.thisArg = thisArg || _this;\n return _this;\n }\n EverySubscriber.prototype.notifyComplete = function (everyValueMatch) {\n this.destination.next(everyValueMatch);\n this.destination.complete();\n };\n EverySubscriber.prototype._next = function (value) {\n var result = false;\n try {\n result = this.predicate.call(this.thisArg, value, this.index++, this.source);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n if (!result) {\n this.notifyComplete(false);\n }\n };\n EverySubscriber.prototype._complete = function () {\n this.notifyComplete(true);\n };\n return EverySubscriber;\n}(Subscriber));\n//# sourceMappingURL=every.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function exhaust() {\n return function (source) { return source.lift(new SwitchFirstOperator()); };\n}\nvar SwitchFirstOperator = /*@__PURE__*/ (function () {\n function SwitchFirstOperator() {\n }\n SwitchFirstOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new SwitchFirstSubscriber(subscriber));\n };\n return SwitchFirstOperator;\n}());\nvar SwitchFirstSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SwitchFirstSubscriber, _super);\n function SwitchFirstSubscriber(destination) {\n var _this = _super.call(this, destination) || this;\n _this.hasCompleted = false;\n _this.hasSubscription = false;\n return _this;\n }\n SwitchFirstSubscriber.prototype._next = function (value) {\n if (!this.hasSubscription) {\n this.hasSubscription = true;\n this.add(innerSubscribe(value, new SimpleInnerSubscriber(this)));\n }\n };\n SwitchFirstSubscriber.prototype._complete = function () {\n this.hasCompleted = true;\n if (!this.hasSubscription) {\n this.destination.complete();\n }\n };\n SwitchFirstSubscriber.prototype.notifyComplete = function () {\n this.hasSubscription = false;\n if (this.hasCompleted) {\n this.destination.complete();\n }\n };\n return SwitchFirstSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=exhaust.js.map\n","/** PURE_IMPORTS_START tslib,_map,_observable_from,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { map } from './map';\nimport { from } from '../observable/from';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function exhaustMap(project, resultSelector) {\n if (resultSelector) {\n return function (source) { return source.pipe(exhaustMap(function (a, i) { return from(project(a, i)).pipe(map(function (b, ii) { return resultSelector(a, b, i, ii); })); })); };\n }\n return function (source) {\n return source.lift(new ExhaustMapOperator(project));\n };\n}\nvar ExhaustMapOperator = /*@__PURE__*/ (function () {\n function ExhaustMapOperator(project) {\n this.project = project;\n }\n ExhaustMapOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new ExhaustMapSubscriber(subscriber, this.project));\n };\n return ExhaustMapOperator;\n}());\nvar ExhaustMapSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ExhaustMapSubscriber, _super);\n function ExhaustMapSubscriber(destination, project) {\n var _this = _super.call(this, destination) || this;\n _this.project = project;\n _this.hasSubscription = false;\n _this.hasCompleted = false;\n _this.index = 0;\n return _this;\n }\n ExhaustMapSubscriber.prototype._next = function (value) {\n if (!this.hasSubscription) {\n this.tryNext(value);\n }\n };\n ExhaustMapSubscriber.prototype.tryNext = function (value) {\n var result;\n var index = this.index++;\n try {\n result = this.project(value, index);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.hasSubscription = true;\n this._innerSub(result);\n };\n ExhaustMapSubscriber.prototype._innerSub = function (result) {\n var innerSubscriber = new SimpleInnerSubscriber(this);\n var destination = this.destination;\n destination.add(innerSubscriber);\n var innerSubscription = innerSubscribe(result, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n destination.add(innerSubscription);\n }\n };\n ExhaustMapSubscriber.prototype._complete = function () {\n this.hasCompleted = true;\n if (!this.hasSubscription) {\n this.destination.complete();\n }\n this.unsubscribe();\n };\n ExhaustMapSubscriber.prototype.notifyNext = function (innerValue) {\n this.destination.next(innerValue);\n };\n ExhaustMapSubscriber.prototype.notifyError = function (err) {\n this.destination.error(err);\n };\n ExhaustMapSubscriber.prototype.notifyComplete = function () {\n this.hasSubscription = false;\n if (this.hasCompleted) {\n this.destination.complete();\n }\n };\n return ExhaustMapSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=exhaustMap.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function expand(project, concurrent, scheduler) {\n if (concurrent === void 0) {\n concurrent = Number.POSITIVE_INFINITY;\n }\n concurrent = (concurrent || 0) < 1 ? Number.POSITIVE_INFINITY : concurrent;\n return function (source) { return source.lift(new ExpandOperator(project, concurrent, scheduler)); };\n}\nvar ExpandOperator = /*@__PURE__*/ (function () {\n function ExpandOperator(project, concurrent, scheduler) {\n this.project = project;\n this.concurrent = concurrent;\n this.scheduler = scheduler;\n }\n ExpandOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new ExpandSubscriber(subscriber, this.project, this.concurrent, this.scheduler));\n };\n return ExpandOperator;\n}());\nexport { ExpandOperator };\nvar ExpandSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ExpandSubscriber, _super);\n function ExpandSubscriber(destination, project, concurrent, scheduler) {\n var _this = _super.call(this, destination) || this;\n _this.project = project;\n _this.concurrent = concurrent;\n _this.scheduler = scheduler;\n _this.index = 0;\n _this.active = 0;\n _this.hasCompleted = false;\n if (concurrent < Number.POSITIVE_INFINITY) {\n _this.buffer = [];\n }\n return _this;\n }\n ExpandSubscriber.dispatch = function (arg) {\n var subscriber = arg.subscriber, result = arg.result, value = arg.value, index = arg.index;\n subscriber.subscribeToProjection(result, value, index);\n };\n ExpandSubscriber.prototype._next = function (value) {\n var destination = this.destination;\n if (destination.closed) {\n this._complete();\n return;\n }\n var index = this.index++;\n if (this.active < this.concurrent) {\n destination.next(value);\n try {\n var project = this.project;\n var result = project(value, index);\n if (!this.scheduler) {\n this.subscribeToProjection(result, value, index);\n }\n else {\n var state = { subscriber: this, result: result, value: value, index: index };\n var destination_1 = this.destination;\n destination_1.add(this.scheduler.schedule(ExpandSubscriber.dispatch, 0, state));\n }\n }\n catch (e) {\n destination.error(e);\n }\n }\n else {\n this.buffer.push(value);\n }\n };\n ExpandSubscriber.prototype.subscribeToProjection = function (result, value, index) {\n this.active++;\n var destination = this.destination;\n destination.add(innerSubscribe(result, new SimpleInnerSubscriber(this)));\n };\n ExpandSubscriber.prototype._complete = function () {\n this.hasCompleted = true;\n if (this.hasCompleted && this.active === 0) {\n this.destination.complete();\n }\n this.unsubscribe();\n };\n ExpandSubscriber.prototype.notifyNext = function (innerValue) {\n this._next(innerValue);\n };\n ExpandSubscriber.prototype.notifyComplete = function () {\n var buffer = this.buffer;\n this.active--;\n if (buffer && buffer.length > 0) {\n this._next(buffer.shift());\n }\n if (this.hasCompleted && this.active === 0) {\n this.destination.complete();\n }\n };\n return ExpandSubscriber;\n}(SimpleOuterSubscriber));\nexport { ExpandSubscriber };\n//# sourceMappingURL=expand.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_Subscription PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nexport function finalize(callback) {\n return function (source) { return source.lift(new FinallyOperator(callback)); };\n}\nvar FinallyOperator = /*@__PURE__*/ (function () {\n function FinallyOperator(callback) {\n this.callback = callback;\n }\n FinallyOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new FinallySubscriber(subscriber, this.callback));\n };\n return FinallyOperator;\n}());\nvar FinallySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(FinallySubscriber, _super);\n function FinallySubscriber(destination, callback) {\n var _this = _super.call(this, destination) || this;\n _this.add(new Subscription(callback));\n return _this;\n }\n return FinallySubscriber;\n}(Subscriber));\n//# sourceMappingURL=finalize.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function find(predicate, thisArg) {\n if (typeof predicate !== 'function') {\n throw new TypeError('predicate is not a function');\n }\n return function (source) { return source.lift(new FindValueOperator(predicate, source, false, thisArg)); };\n}\nvar FindValueOperator = /*@__PURE__*/ (function () {\n function FindValueOperator(predicate, source, yieldIndex, thisArg) {\n this.predicate = predicate;\n this.source = source;\n this.yieldIndex = yieldIndex;\n this.thisArg = thisArg;\n }\n FindValueOperator.prototype.call = function (observer, source) {\n return source.subscribe(new FindValueSubscriber(observer, this.predicate, this.source, this.yieldIndex, this.thisArg));\n };\n return FindValueOperator;\n}());\nexport { FindValueOperator };\nvar FindValueSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(FindValueSubscriber, _super);\n function FindValueSubscriber(destination, predicate, source, yieldIndex, thisArg) {\n var _this = _super.call(this, destination) || this;\n _this.predicate = predicate;\n _this.source = source;\n _this.yieldIndex = yieldIndex;\n _this.thisArg = thisArg;\n _this.index = 0;\n return _this;\n }\n FindValueSubscriber.prototype.notifyComplete = function (value) {\n var destination = this.destination;\n destination.next(value);\n destination.complete();\n this.unsubscribe();\n };\n FindValueSubscriber.prototype._next = function (value) {\n var _a = this, predicate = _a.predicate, thisArg = _a.thisArg;\n var index = this.index++;\n try {\n var result = predicate.call(thisArg || this, value, index, this.source);\n if (result) {\n this.notifyComplete(this.yieldIndex ? index : value);\n }\n }\n catch (err) {\n this.destination.error(err);\n }\n };\n FindValueSubscriber.prototype._complete = function () {\n this.notifyComplete(this.yieldIndex ? -1 : undefined);\n };\n return FindValueSubscriber;\n}(Subscriber));\nexport { FindValueSubscriber };\n//# sourceMappingURL=find.js.map\n","/** PURE_IMPORTS_START _operators_find PURE_IMPORTS_END */\nimport { FindValueOperator } from '../operators/find';\nexport function findIndex(predicate, thisArg) {\n return function (source) { return source.lift(new FindValueOperator(predicate, source, true, thisArg)); };\n}\n//# sourceMappingURL=findIndex.js.map\n","/** PURE_IMPORTS_START _util_EmptyError,_filter,_take,_defaultIfEmpty,_throwIfEmpty,_util_identity PURE_IMPORTS_END */\nimport { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { take } from './take';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { identity } from '../util/identity';\nexport function first(predicate, defaultValue) {\n var hasDefaultValue = arguments.length >= 2;\n return function (source) { return source.pipe(predicate ? filter(function (v, i) { return predicate(v, i, source); }) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function () { return new EmptyError(); })); };\n}\n//# sourceMappingURL=first.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function ignoreElements() {\n return function ignoreElementsOperatorFunction(source) {\n return source.lift(new IgnoreElementsOperator());\n };\n}\nvar IgnoreElementsOperator = /*@__PURE__*/ (function () {\n function IgnoreElementsOperator() {\n }\n IgnoreElementsOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new IgnoreElementsSubscriber(subscriber));\n };\n return IgnoreElementsOperator;\n}());\nvar IgnoreElementsSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(IgnoreElementsSubscriber, _super);\n function IgnoreElementsSubscriber() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n IgnoreElementsSubscriber.prototype._next = function (unused) {\n };\n return IgnoreElementsSubscriber;\n}(Subscriber));\n//# sourceMappingURL=ignoreElements.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function isEmpty() {\n return function (source) { return source.lift(new IsEmptyOperator()); };\n}\nvar IsEmptyOperator = /*@__PURE__*/ (function () {\n function IsEmptyOperator() {\n }\n IsEmptyOperator.prototype.call = function (observer, source) {\n return source.subscribe(new IsEmptySubscriber(observer));\n };\n return IsEmptyOperator;\n}());\nvar IsEmptySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(IsEmptySubscriber, _super);\n function IsEmptySubscriber(destination) {\n return _super.call(this, destination) || this;\n }\n IsEmptySubscriber.prototype.notifyComplete = function (isEmpty) {\n var destination = this.destination;\n destination.next(isEmpty);\n destination.complete();\n };\n IsEmptySubscriber.prototype._next = function (value) {\n this.notifyComplete(false);\n };\n IsEmptySubscriber.prototype._complete = function () {\n this.notifyComplete(true);\n };\n return IsEmptySubscriber;\n}(Subscriber));\n//# sourceMappingURL=isEmpty.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_util_ArgumentOutOfRangeError,_observable_empty PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { empty } from '../observable/empty';\nexport function takeLast(count) {\n return function takeLastOperatorFunction(source) {\n if (count === 0) {\n return empty();\n }\n else {\n return source.lift(new TakeLastOperator(count));\n }\n };\n}\nvar TakeLastOperator = /*@__PURE__*/ (function () {\n function TakeLastOperator(total) {\n this.total = total;\n if (this.total < 0) {\n throw new ArgumentOutOfRangeError;\n }\n }\n TakeLastOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new TakeLastSubscriber(subscriber, this.total));\n };\n return TakeLastOperator;\n}());\nvar TakeLastSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(TakeLastSubscriber, _super);\n function TakeLastSubscriber(destination, total) {\n var _this = _super.call(this, destination) || this;\n _this.total = total;\n _this.ring = new Array();\n _this.count = 0;\n return _this;\n }\n TakeLastSubscriber.prototype._next = function (value) {\n var ring = this.ring;\n var total = this.total;\n var count = this.count++;\n if (ring.length < total) {\n ring.push(value);\n }\n else {\n var index = count % total;\n ring[index] = value;\n }\n };\n TakeLastSubscriber.prototype._complete = function () {\n var destination = this.destination;\n var count = this.count;\n if (count > 0) {\n var total = this.count >= this.total ? this.total : this.count;\n var ring = this.ring;\n for (var i = 0; i < total; i++) {\n var idx = (count++) % total;\n destination.next(ring[idx]);\n }\n }\n destination.complete();\n };\n return TakeLastSubscriber;\n}(Subscriber));\n//# sourceMappingURL=takeLast.js.map\n","/** PURE_IMPORTS_START _util_EmptyError,_filter,_takeLast,_throwIfEmpty,_defaultIfEmpty,_util_identity PURE_IMPORTS_END */\nimport { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { takeLast } from './takeLast';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { identity } from '../util/identity';\nexport function last(predicate, defaultValue) {\n var hasDefaultValue = arguments.length >= 2;\n return function (source) { return source.pipe(predicate ? filter(function (v, i) { return predicate(v, i, source); }) : identity, takeLast(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function () { return new EmptyError(); })); };\n}\n//# sourceMappingURL=last.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function mapTo(value) {\n return function (source) { return source.lift(new MapToOperator(value)); };\n}\nvar MapToOperator = /*@__PURE__*/ (function () {\n function MapToOperator(value) {\n this.value = value;\n }\n MapToOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new MapToSubscriber(subscriber, this.value));\n };\n return MapToOperator;\n}());\nvar MapToSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(MapToSubscriber, _super);\n function MapToSubscriber(destination, value) {\n var _this = _super.call(this, destination) || this;\n _this.value = value;\n return _this;\n }\n MapToSubscriber.prototype._next = function (x) {\n this.destination.next(this.value);\n };\n return MapToSubscriber;\n}(Subscriber));\n//# sourceMappingURL=mapTo.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_Notification PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { Notification } from '../Notification';\nexport function materialize() {\n return function materializeOperatorFunction(source) {\n return source.lift(new MaterializeOperator());\n };\n}\nvar MaterializeOperator = /*@__PURE__*/ (function () {\n function MaterializeOperator() {\n }\n MaterializeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new MaterializeSubscriber(subscriber));\n };\n return MaterializeOperator;\n}());\nvar MaterializeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(MaterializeSubscriber, _super);\n function MaterializeSubscriber(destination) {\n return _super.call(this, destination) || this;\n }\n MaterializeSubscriber.prototype._next = function (value) {\n this.destination.next(Notification.createNext(value));\n };\n MaterializeSubscriber.prototype._error = function (err) {\n var destination = this.destination;\n destination.next(Notification.createError(err));\n destination.complete();\n };\n MaterializeSubscriber.prototype._complete = function () {\n var destination = this.destination;\n destination.next(Notification.createComplete());\n destination.complete();\n };\n return MaterializeSubscriber;\n}(Subscriber));\n//# sourceMappingURL=materialize.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function scan(accumulator, seed) {\n var hasSeed = false;\n if (arguments.length >= 2) {\n hasSeed = true;\n }\n return function scanOperatorFunction(source) {\n return source.lift(new ScanOperator(accumulator, seed, hasSeed));\n };\n}\nvar ScanOperator = /*@__PURE__*/ (function () {\n function ScanOperator(accumulator, seed, hasSeed) {\n if (hasSeed === void 0) {\n hasSeed = false;\n }\n this.accumulator = accumulator;\n this.seed = seed;\n this.hasSeed = hasSeed;\n }\n ScanOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new ScanSubscriber(subscriber, this.accumulator, this.seed, this.hasSeed));\n };\n return ScanOperator;\n}());\nvar ScanSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ScanSubscriber, _super);\n function ScanSubscriber(destination, accumulator, _seed, hasSeed) {\n var _this = _super.call(this, destination) || this;\n _this.accumulator = accumulator;\n _this._seed = _seed;\n _this.hasSeed = hasSeed;\n _this.index = 0;\n return _this;\n }\n Object.defineProperty(ScanSubscriber.prototype, \"seed\", {\n get: function () {\n return this._seed;\n },\n set: function (value) {\n this.hasSeed = true;\n this._seed = value;\n },\n enumerable: true,\n configurable: true\n });\n ScanSubscriber.prototype._next = function (value) {\n if (!this.hasSeed) {\n this.seed = value;\n this.destination.next(value);\n }\n else {\n return this._tryNext(value);\n }\n };\n ScanSubscriber.prototype._tryNext = function (value) {\n var index = this.index++;\n var result;\n try {\n result = this.accumulator(this.seed, value, index);\n }\n catch (err) {\n this.destination.error(err);\n }\n this.seed = result;\n this.destination.next(result);\n };\n return ScanSubscriber;\n}(Subscriber));\n//# sourceMappingURL=scan.js.map\n","/** PURE_IMPORTS_START _scan,_takeLast,_defaultIfEmpty,_util_pipe PURE_IMPORTS_END */\nimport { scan } from './scan';\nimport { takeLast } from './takeLast';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { pipe } from '../util/pipe';\nexport function reduce(accumulator, seed) {\n if (arguments.length >= 2) {\n return function reduceOperatorFunctionWithSeed(source) {\n return pipe(scan(accumulator, seed), takeLast(1), defaultIfEmpty(seed))(source);\n };\n }\n return function reduceOperatorFunction(source) {\n return pipe(scan(function (acc, value, index) { return accumulator(acc, value, index + 1); }), takeLast(1))(source);\n };\n}\n//# sourceMappingURL=reduce.js.map\n","/** PURE_IMPORTS_START _reduce PURE_IMPORTS_END */\nimport { reduce } from './reduce';\nexport function max(comparer) {\n var max = (typeof comparer === 'function')\n ? function (x, y) { return comparer(x, y) > 0 ? x : y; }\n : function (x, y) { return x > y ? x : y; };\n return reduce(max);\n}\n//# sourceMappingURL=max.js.map\n","/** PURE_IMPORTS_START _observable_merge PURE_IMPORTS_END */\nimport { merge as mergeStatic } from '../observable/merge';\nexport function merge() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n return function (source) { return source.lift.call(mergeStatic.apply(void 0, [source].concat(observables))); };\n}\n//# sourceMappingURL=merge.js.map\n","/** PURE_IMPORTS_START _mergeMap PURE_IMPORTS_END */\nimport { mergeMap } from './mergeMap';\nexport function mergeMapTo(innerObservable, resultSelector, concurrent) {\n if (concurrent === void 0) {\n concurrent = Number.POSITIVE_INFINITY;\n }\n if (typeof resultSelector === 'function') {\n return mergeMap(function () { return innerObservable; }, resultSelector, concurrent);\n }\n if (typeof resultSelector === 'number') {\n concurrent = resultSelector;\n }\n return mergeMap(function () { return innerObservable; }, concurrent);\n}\n//# sourceMappingURL=mergeMapTo.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function mergeScan(accumulator, seed, concurrent) {\n if (concurrent === void 0) {\n concurrent = Number.POSITIVE_INFINITY;\n }\n return function (source) { return source.lift(new MergeScanOperator(accumulator, seed, concurrent)); };\n}\nvar MergeScanOperator = /*@__PURE__*/ (function () {\n function MergeScanOperator(accumulator, seed, concurrent) {\n this.accumulator = accumulator;\n this.seed = seed;\n this.concurrent = concurrent;\n }\n MergeScanOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new MergeScanSubscriber(subscriber, this.accumulator, this.seed, this.concurrent));\n };\n return MergeScanOperator;\n}());\nexport { MergeScanOperator };\nvar MergeScanSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(MergeScanSubscriber, _super);\n function MergeScanSubscriber(destination, accumulator, acc, concurrent) {\n var _this = _super.call(this, destination) || this;\n _this.accumulator = accumulator;\n _this.acc = acc;\n _this.concurrent = concurrent;\n _this.hasValue = false;\n _this.hasCompleted = false;\n _this.buffer = [];\n _this.active = 0;\n _this.index = 0;\n return _this;\n }\n MergeScanSubscriber.prototype._next = function (value) {\n if (this.active < this.concurrent) {\n var index = this.index++;\n var destination = this.destination;\n var ish = void 0;\n try {\n var accumulator = this.accumulator;\n ish = accumulator(this.acc, value, index);\n }\n catch (e) {\n return destination.error(e);\n }\n this.active++;\n this._innerSub(ish);\n }\n else {\n this.buffer.push(value);\n }\n };\n MergeScanSubscriber.prototype._innerSub = function (ish) {\n var innerSubscriber = new SimpleInnerSubscriber(this);\n var destination = this.destination;\n destination.add(innerSubscriber);\n var innerSubscription = innerSubscribe(ish, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n destination.add(innerSubscription);\n }\n };\n MergeScanSubscriber.prototype._complete = function () {\n this.hasCompleted = true;\n if (this.active === 0 && this.buffer.length === 0) {\n if (this.hasValue === false) {\n this.destination.next(this.acc);\n }\n this.destination.complete();\n }\n this.unsubscribe();\n };\n MergeScanSubscriber.prototype.notifyNext = function (innerValue) {\n var destination = this.destination;\n this.acc = innerValue;\n this.hasValue = true;\n destination.next(innerValue);\n };\n MergeScanSubscriber.prototype.notifyComplete = function () {\n var buffer = this.buffer;\n this.active--;\n if (buffer.length > 0) {\n this._next(buffer.shift());\n }\n else if (this.active === 0 && this.hasCompleted) {\n if (this.hasValue === false) {\n this.destination.next(this.acc);\n }\n this.destination.complete();\n }\n };\n return MergeScanSubscriber;\n}(SimpleOuterSubscriber));\nexport { MergeScanSubscriber };\n//# sourceMappingURL=mergeScan.js.map\n","/** PURE_IMPORTS_START _reduce PURE_IMPORTS_END */\nimport { reduce } from './reduce';\nexport function min(comparer) {\n var min = (typeof comparer === 'function')\n ? function (x, y) { return comparer(x, y) < 0 ? x : y; }\n : function (x, y) { return x < y ? x : y; };\n return reduce(min);\n}\n//# sourceMappingURL=min.js.map\n","/** PURE_IMPORTS_START _observable_ConnectableObservable PURE_IMPORTS_END */\nimport { connectableObservableDescriptor } from '../observable/ConnectableObservable';\nexport function multicast(subjectOrSubjectFactory, selector) {\n return function multicastOperatorFunction(source) {\n var subjectFactory;\n if (typeof subjectOrSubjectFactory === 'function') {\n subjectFactory = subjectOrSubjectFactory;\n }\n else {\n subjectFactory = function subjectFactory() {\n return subjectOrSubjectFactory;\n };\n }\n if (typeof selector === 'function') {\n return source.lift(new MulticastOperator(subjectFactory, selector));\n }\n var connectable = Object.create(source, connectableObservableDescriptor);\n connectable.source = source;\n connectable.subjectFactory = subjectFactory;\n return connectable;\n };\n}\nvar MulticastOperator = /*@__PURE__*/ (function () {\n function MulticastOperator(subjectFactory, selector) {\n this.subjectFactory = subjectFactory;\n this.selector = selector;\n }\n MulticastOperator.prototype.call = function (subscriber, source) {\n var selector = this.selector;\n var subject = this.subjectFactory();\n var subscription = selector(subject).subscribe(subscriber);\n subscription.add(source.subscribe(subject));\n return subscription;\n };\n return MulticastOperator;\n}());\nexport { MulticastOperator };\n//# sourceMappingURL=multicast.js.map\n","/** PURE_IMPORTS_START tslib,_observable_from,_util_isArray,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { from } from '../observable/from';\nimport { isArray } from '../util/isArray';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function onErrorResumeNext() {\n var nextSources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n nextSources[_i] = arguments[_i];\n }\n if (nextSources.length === 1 && isArray(nextSources[0])) {\n nextSources = nextSources[0];\n }\n return function (source) { return source.lift(new OnErrorResumeNextOperator(nextSources)); };\n}\nexport function onErrorResumeNextStatic() {\n var nextSources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n nextSources[_i] = arguments[_i];\n }\n var source = undefined;\n if (nextSources.length === 1 && isArray(nextSources[0])) {\n nextSources = nextSources[0];\n }\n source = nextSources.shift();\n return from(source).lift(new OnErrorResumeNextOperator(nextSources));\n}\nvar OnErrorResumeNextOperator = /*@__PURE__*/ (function () {\n function OnErrorResumeNextOperator(nextSources) {\n this.nextSources = nextSources;\n }\n OnErrorResumeNextOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new OnErrorResumeNextSubscriber(subscriber, this.nextSources));\n };\n return OnErrorResumeNextOperator;\n}());\nvar OnErrorResumeNextSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(OnErrorResumeNextSubscriber, _super);\n function OnErrorResumeNextSubscriber(destination, nextSources) {\n var _this = _super.call(this, destination) || this;\n _this.destination = destination;\n _this.nextSources = nextSources;\n return _this;\n }\n OnErrorResumeNextSubscriber.prototype.notifyError = function () {\n this.subscribeToNextSource();\n };\n OnErrorResumeNextSubscriber.prototype.notifyComplete = function () {\n this.subscribeToNextSource();\n };\n OnErrorResumeNextSubscriber.prototype._error = function (err) {\n this.subscribeToNextSource();\n this.unsubscribe();\n };\n OnErrorResumeNextSubscriber.prototype._complete = function () {\n this.subscribeToNextSource();\n this.unsubscribe();\n };\n OnErrorResumeNextSubscriber.prototype.subscribeToNextSource = function () {\n var next = this.nextSources.shift();\n if (!!next) {\n var innerSubscriber = new SimpleInnerSubscriber(this);\n var destination = this.destination;\n destination.add(innerSubscriber);\n var innerSubscription = innerSubscribe(next, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n destination.add(innerSubscription);\n }\n }\n else {\n this.destination.complete();\n }\n };\n return OnErrorResumeNextSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=onErrorResumeNext.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function pairwise() {\n return function (source) { return source.lift(new PairwiseOperator()); };\n}\nvar PairwiseOperator = /*@__PURE__*/ (function () {\n function PairwiseOperator() {\n }\n PairwiseOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new PairwiseSubscriber(subscriber));\n };\n return PairwiseOperator;\n}());\nvar PairwiseSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(PairwiseSubscriber, _super);\n function PairwiseSubscriber(destination) {\n var _this = _super.call(this, destination) || this;\n _this.hasPrev = false;\n return _this;\n }\n PairwiseSubscriber.prototype._next = function (value) {\n var pair;\n if (this.hasPrev) {\n pair = [this.prev, value];\n }\n else {\n this.hasPrev = true;\n }\n this.prev = value;\n if (pair) {\n this.destination.next(pair);\n }\n };\n return PairwiseSubscriber;\n}(Subscriber));\n//# sourceMappingURL=pairwise.js.map\n","/** PURE_IMPORTS_START _util_not,_filter PURE_IMPORTS_END */\nimport { not } from '../util/not';\nimport { filter } from './filter';\nexport function partition(predicate, thisArg) {\n return function (source) {\n return [\n filter(predicate, thisArg)(source),\n filter(not(predicate, thisArg))(source)\n ];\n };\n}\n//# sourceMappingURL=partition.js.map\n","/** PURE_IMPORTS_START _map PURE_IMPORTS_END */\nimport { map } from './map';\nexport function pluck() {\n var properties = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n properties[_i] = arguments[_i];\n }\n var length = properties.length;\n if (length === 0) {\n throw new Error('list of properties cannot be empty.');\n }\n return function (source) { return map(plucker(properties, length))(source); };\n}\nfunction plucker(props, length) {\n var mapper = function (x) {\n var currentProp = x;\n for (var i = 0; i < length; i++) {\n var p = currentProp != null ? currentProp[props[i]] : undefined;\n if (p !== void 0) {\n currentProp = p;\n }\n else {\n return undefined;\n }\n }\n return currentProp;\n };\n return mapper;\n}\n//# sourceMappingURL=pluck.js.map\n","/** PURE_IMPORTS_START _Subject,_multicast PURE_IMPORTS_END */\nimport { Subject } from '../Subject';\nimport { multicast } from './multicast';\nexport function publish(selector) {\n return selector ?\n multicast(function () { return new Subject(); }, selector) :\n multicast(new Subject());\n}\n//# sourceMappingURL=publish.js.map\n","/** PURE_IMPORTS_START _BehaviorSubject,_multicast PURE_IMPORTS_END */\nimport { BehaviorSubject } from '../BehaviorSubject';\nimport { multicast } from './multicast';\nexport function publishBehavior(value) {\n return function (source) { return multicast(new BehaviorSubject(value))(source); };\n}\n//# sourceMappingURL=publishBehavior.js.map\n","/** PURE_IMPORTS_START _AsyncSubject,_multicast PURE_IMPORTS_END */\nimport { AsyncSubject } from '../AsyncSubject';\nimport { multicast } from './multicast';\nexport function publishLast() {\n return function (source) { return multicast(new AsyncSubject())(source); };\n}\n//# sourceMappingURL=publishLast.js.map\n","/** PURE_IMPORTS_START _ReplaySubject,_multicast PURE_IMPORTS_END */\nimport { ReplaySubject } from '../ReplaySubject';\nimport { multicast } from './multicast';\nexport function publishReplay(bufferSize, windowTime, selectorOrScheduler, scheduler) {\n if (selectorOrScheduler && typeof selectorOrScheduler !== 'function') {\n scheduler = selectorOrScheduler;\n }\n var selector = typeof selectorOrScheduler === 'function' ? selectorOrScheduler : undefined;\n var subject = new ReplaySubject(bufferSize, windowTime, scheduler);\n return function (source) { return multicast(function () { return subject; }, selector)(source); };\n}\n//# sourceMappingURL=publishReplay.js.map\n","/** PURE_IMPORTS_START _util_isArray,_observable_race PURE_IMPORTS_END */\nimport { isArray } from '../util/isArray';\nimport { race as raceStatic } from '../observable/race';\nexport function race() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n return function raceOperatorFunction(source) {\n if (observables.length === 1 && isArray(observables[0])) {\n observables = observables[0];\n }\n return source.lift.call(raceStatic.apply(void 0, [source].concat(observables)));\n };\n}\n//# sourceMappingURL=race.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_observable_empty PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { empty } from '../observable/empty';\nexport function repeat(count) {\n if (count === void 0) {\n count = -1;\n }\n return function (source) {\n if (count === 0) {\n return empty();\n }\n else if (count < 0) {\n return source.lift(new RepeatOperator(-1, source));\n }\n else {\n return source.lift(new RepeatOperator(count - 1, source));\n }\n };\n}\nvar RepeatOperator = /*@__PURE__*/ (function () {\n function RepeatOperator(count, source) {\n this.count = count;\n this.source = source;\n }\n RepeatOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new RepeatSubscriber(subscriber, this.count, this.source));\n };\n return RepeatOperator;\n}());\nvar RepeatSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(RepeatSubscriber, _super);\n function RepeatSubscriber(destination, count, source) {\n var _this = _super.call(this, destination) || this;\n _this.count = count;\n _this.source = source;\n return _this;\n }\n RepeatSubscriber.prototype.complete = function () {\n if (!this.isStopped) {\n var _a = this, source = _a.source, count = _a.count;\n if (count === 0) {\n return _super.prototype.complete.call(this);\n }\n else if (count > -1) {\n this.count = count - 1;\n }\n source.subscribe(this._unsubscribeAndRecycle());\n }\n };\n return RepeatSubscriber;\n}(Subscriber));\n//# sourceMappingURL=repeat.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subject } from '../Subject';\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function repeatWhen(notifier) {\n return function (source) { return source.lift(new RepeatWhenOperator(notifier)); };\n}\nvar RepeatWhenOperator = /*@__PURE__*/ (function () {\n function RepeatWhenOperator(notifier) {\n this.notifier = notifier;\n }\n RepeatWhenOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new RepeatWhenSubscriber(subscriber, this.notifier, source));\n };\n return RepeatWhenOperator;\n}());\nvar RepeatWhenSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(RepeatWhenSubscriber, _super);\n function RepeatWhenSubscriber(destination, notifier, source) {\n var _this = _super.call(this, destination) || this;\n _this.notifier = notifier;\n _this.source = source;\n _this.sourceIsBeingSubscribedTo = true;\n return _this;\n }\n RepeatWhenSubscriber.prototype.notifyNext = function () {\n this.sourceIsBeingSubscribedTo = true;\n this.source.subscribe(this);\n };\n RepeatWhenSubscriber.prototype.notifyComplete = function () {\n if (this.sourceIsBeingSubscribedTo === false) {\n return _super.prototype.complete.call(this);\n }\n };\n RepeatWhenSubscriber.prototype.complete = function () {\n this.sourceIsBeingSubscribedTo = false;\n if (!this.isStopped) {\n if (!this.retries) {\n this.subscribeToRetries();\n }\n if (!this.retriesSubscription || this.retriesSubscription.closed) {\n return _super.prototype.complete.call(this);\n }\n this._unsubscribeAndRecycle();\n this.notifications.next(undefined);\n }\n };\n RepeatWhenSubscriber.prototype._unsubscribe = function () {\n var _a = this, notifications = _a.notifications, retriesSubscription = _a.retriesSubscription;\n if (notifications) {\n notifications.unsubscribe();\n this.notifications = undefined;\n }\n if (retriesSubscription) {\n retriesSubscription.unsubscribe();\n this.retriesSubscription = undefined;\n }\n this.retries = undefined;\n };\n RepeatWhenSubscriber.prototype._unsubscribeAndRecycle = function () {\n var _unsubscribe = this._unsubscribe;\n this._unsubscribe = null;\n _super.prototype._unsubscribeAndRecycle.call(this);\n this._unsubscribe = _unsubscribe;\n return this;\n };\n RepeatWhenSubscriber.prototype.subscribeToRetries = function () {\n this.notifications = new Subject();\n var retries;\n try {\n var notifier = this.notifier;\n retries = notifier(this.notifications);\n }\n catch (e) {\n return _super.prototype.complete.call(this);\n }\n this.retries = retries;\n this.retriesSubscription = innerSubscribe(retries, new SimpleInnerSubscriber(this));\n };\n return RepeatWhenSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=repeatWhen.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function retry(count) {\n if (count === void 0) {\n count = -1;\n }\n return function (source) { return source.lift(new RetryOperator(count, source)); };\n}\nvar RetryOperator = /*@__PURE__*/ (function () {\n function RetryOperator(count, source) {\n this.count = count;\n this.source = source;\n }\n RetryOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new RetrySubscriber(subscriber, this.count, this.source));\n };\n return RetryOperator;\n}());\nvar RetrySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(RetrySubscriber, _super);\n function RetrySubscriber(destination, count, source) {\n var _this = _super.call(this, destination) || this;\n _this.count = count;\n _this.source = source;\n return _this;\n }\n RetrySubscriber.prototype.error = function (err) {\n if (!this.isStopped) {\n var _a = this, source = _a.source, count = _a.count;\n if (count === 0) {\n return _super.prototype.error.call(this, err);\n }\n else if (count > -1) {\n this.count = count - 1;\n }\n source.subscribe(this._unsubscribeAndRecycle());\n }\n };\n return RetrySubscriber;\n}(Subscriber));\n//# sourceMappingURL=retry.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subject } from '../Subject';\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function retryWhen(notifier) {\n return function (source) { return source.lift(new RetryWhenOperator(notifier, source)); };\n}\nvar RetryWhenOperator = /*@__PURE__*/ (function () {\n function RetryWhenOperator(notifier, source) {\n this.notifier = notifier;\n this.source = source;\n }\n RetryWhenOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new RetryWhenSubscriber(subscriber, this.notifier, this.source));\n };\n return RetryWhenOperator;\n}());\nvar RetryWhenSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(RetryWhenSubscriber, _super);\n function RetryWhenSubscriber(destination, notifier, source) {\n var _this = _super.call(this, destination) || this;\n _this.notifier = notifier;\n _this.source = source;\n return _this;\n }\n RetryWhenSubscriber.prototype.error = function (err) {\n if (!this.isStopped) {\n var errors = this.errors;\n var retries = this.retries;\n var retriesSubscription = this.retriesSubscription;\n if (!retries) {\n errors = new Subject();\n try {\n var notifier = this.notifier;\n retries = notifier(errors);\n }\n catch (e) {\n return _super.prototype.error.call(this, e);\n }\n retriesSubscription = innerSubscribe(retries, new SimpleInnerSubscriber(this));\n }\n else {\n this.errors = undefined;\n this.retriesSubscription = undefined;\n }\n this._unsubscribeAndRecycle();\n this.errors = errors;\n this.retries = retries;\n this.retriesSubscription = retriesSubscription;\n errors.next(err);\n }\n };\n RetryWhenSubscriber.prototype._unsubscribe = function () {\n var _a = this, errors = _a.errors, retriesSubscription = _a.retriesSubscription;\n if (errors) {\n errors.unsubscribe();\n this.errors = undefined;\n }\n if (retriesSubscription) {\n retriesSubscription.unsubscribe();\n this.retriesSubscription = undefined;\n }\n this.retries = undefined;\n };\n RetryWhenSubscriber.prototype.notifyNext = function () {\n var _unsubscribe = this._unsubscribe;\n this._unsubscribe = null;\n this._unsubscribeAndRecycle();\n this._unsubscribe = _unsubscribe;\n this.source.subscribe(this);\n };\n return RetryWhenSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=retryWhen.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function sample(notifier) {\n return function (source) { return source.lift(new SampleOperator(notifier)); };\n}\nvar SampleOperator = /*@__PURE__*/ (function () {\n function SampleOperator(notifier) {\n this.notifier = notifier;\n }\n SampleOperator.prototype.call = function (subscriber, source) {\n var sampleSubscriber = new SampleSubscriber(subscriber);\n var subscription = source.subscribe(sampleSubscriber);\n subscription.add(innerSubscribe(this.notifier, new SimpleInnerSubscriber(sampleSubscriber)));\n return subscription;\n };\n return SampleOperator;\n}());\nvar SampleSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SampleSubscriber, _super);\n function SampleSubscriber() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.hasValue = false;\n return _this;\n }\n SampleSubscriber.prototype._next = function (value) {\n this.value = value;\n this.hasValue = true;\n };\n SampleSubscriber.prototype.notifyNext = function () {\n this.emitValue();\n };\n SampleSubscriber.prototype.notifyComplete = function () {\n this.emitValue();\n };\n SampleSubscriber.prototype.emitValue = function () {\n if (this.hasValue) {\n this.hasValue = false;\n this.destination.next(this.value);\n }\n };\n return SampleSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=sample.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_scheduler_async PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { async } from '../scheduler/async';\nexport function sampleTime(period, scheduler) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n return function (source) { return source.lift(new SampleTimeOperator(period, scheduler)); };\n}\nvar SampleTimeOperator = /*@__PURE__*/ (function () {\n function SampleTimeOperator(period, scheduler) {\n this.period = period;\n this.scheduler = scheduler;\n }\n SampleTimeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new SampleTimeSubscriber(subscriber, this.period, this.scheduler));\n };\n return SampleTimeOperator;\n}());\nvar SampleTimeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SampleTimeSubscriber, _super);\n function SampleTimeSubscriber(destination, period, scheduler) {\n var _this = _super.call(this, destination) || this;\n _this.period = period;\n _this.scheduler = scheduler;\n _this.hasValue = false;\n _this.add(scheduler.schedule(dispatchNotification, period, { subscriber: _this, period: period }));\n return _this;\n }\n SampleTimeSubscriber.prototype._next = function (value) {\n this.lastValue = value;\n this.hasValue = true;\n };\n SampleTimeSubscriber.prototype.notifyNext = function () {\n if (this.hasValue) {\n this.hasValue = false;\n this.destination.next(this.lastValue);\n }\n };\n return SampleTimeSubscriber;\n}(Subscriber));\nfunction dispatchNotification(state) {\n var subscriber = state.subscriber, period = state.period;\n subscriber.notifyNext();\n this.schedule(state, period);\n}\n//# sourceMappingURL=sampleTime.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function sequenceEqual(compareTo, comparator) {\n return function (source) { return source.lift(new SequenceEqualOperator(compareTo, comparator)); };\n}\nvar SequenceEqualOperator = /*@__PURE__*/ (function () {\n function SequenceEqualOperator(compareTo, comparator) {\n this.compareTo = compareTo;\n this.comparator = comparator;\n }\n SequenceEqualOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new SequenceEqualSubscriber(subscriber, this.compareTo, this.comparator));\n };\n return SequenceEqualOperator;\n}());\nexport { SequenceEqualOperator };\nvar SequenceEqualSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SequenceEqualSubscriber, _super);\n function SequenceEqualSubscriber(destination, compareTo, comparator) {\n var _this = _super.call(this, destination) || this;\n _this.compareTo = compareTo;\n _this.comparator = comparator;\n _this._a = [];\n _this._b = [];\n _this._oneComplete = false;\n _this.destination.add(compareTo.subscribe(new SequenceEqualCompareToSubscriber(destination, _this)));\n return _this;\n }\n SequenceEqualSubscriber.prototype._next = function (value) {\n if (this._oneComplete && this._b.length === 0) {\n this.emit(false);\n }\n else {\n this._a.push(value);\n this.checkValues();\n }\n };\n SequenceEqualSubscriber.prototype._complete = function () {\n if (this._oneComplete) {\n this.emit(this._a.length === 0 && this._b.length === 0);\n }\n else {\n this._oneComplete = true;\n }\n this.unsubscribe();\n };\n SequenceEqualSubscriber.prototype.checkValues = function () {\n var _c = this, _a = _c._a, _b = _c._b, comparator = _c.comparator;\n while (_a.length > 0 && _b.length > 0) {\n var a = _a.shift();\n var b = _b.shift();\n var areEqual = false;\n try {\n areEqual = comparator ? comparator(a, b) : a === b;\n }\n catch (e) {\n this.destination.error(e);\n }\n if (!areEqual) {\n this.emit(false);\n }\n }\n };\n SequenceEqualSubscriber.prototype.emit = function (value) {\n var destination = this.destination;\n destination.next(value);\n destination.complete();\n };\n SequenceEqualSubscriber.prototype.nextB = function (value) {\n if (this._oneComplete && this._a.length === 0) {\n this.emit(false);\n }\n else {\n this._b.push(value);\n this.checkValues();\n }\n };\n SequenceEqualSubscriber.prototype.completeB = function () {\n if (this._oneComplete) {\n this.emit(this._a.length === 0 && this._b.length === 0);\n }\n else {\n this._oneComplete = true;\n }\n };\n return SequenceEqualSubscriber;\n}(Subscriber));\nexport { SequenceEqualSubscriber };\nvar SequenceEqualCompareToSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SequenceEqualCompareToSubscriber, _super);\n function SequenceEqualCompareToSubscriber(destination, parent) {\n var _this = _super.call(this, destination) || this;\n _this.parent = parent;\n return _this;\n }\n SequenceEqualCompareToSubscriber.prototype._next = function (value) {\n this.parent.nextB(value);\n };\n SequenceEqualCompareToSubscriber.prototype._error = function (err) {\n this.parent.error(err);\n this.unsubscribe();\n };\n SequenceEqualCompareToSubscriber.prototype._complete = function () {\n this.parent.completeB();\n this.unsubscribe();\n };\n return SequenceEqualCompareToSubscriber;\n}(Subscriber));\n//# sourceMappingURL=sequenceEqual.js.map\n","/** PURE_IMPORTS_START _multicast,_refCount,_Subject PURE_IMPORTS_END */\nimport { multicast } from './multicast';\nimport { refCount } from './refCount';\nimport { Subject } from '../Subject';\nfunction shareSubjectFactory() {\n return new Subject();\n}\nexport function share() {\n return function (source) { return refCount()(multicast(shareSubjectFactory)(source)); };\n}\n//# sourceMappingURL=share.js.map\n","/** PURE_IMPORTS_START _ReplaySubject PURE_IMPORTS_END */\nimport { ReplaySubject } from '../ReplaySubject';\nexport function shareReplay(configOrBufferSize, windowTime, scheduler) {\n var config;\n if (configOrBufferSize && typeof configOrBufferSize === 'object') {\n config = configOrBufferSize;\n }\n else {\n config = {\n bufferSize: configOrBufferSize,\n windowTime: windowTime,\n refCount: false,\n scheduler: scheduler,\n };\n }\n return function (source) { return source.lift(shareReplayOperator(config)); };\n}\nfunction shareReplayOperator(_a) {\n var _b = _a.bufferSize, bufferSize = _b === void 0 ? Number.POSITIVE_INFINITY : _b, _c = _a.windowTime, windowTime = _c === void 0 ? Number.POSITIVE_INFINITY : _c, useRefCount = _a.refCount, scheduler = _a.scheduler;\n var subject;\n var refCount = 0;\n var subscription;\n var hasError = false;\n var isComplete = false;\n return function shareReplayOperation(source) {\n refCount++;\n var innerSub;\n if (!subject || hasError) {\n hasError = false;\n subject = new ReplaySubject(bufferSize, windowTime, scheduler);\n innerSub = subject.subscribe(this);\n subscription = source.subscribe({\n next: function (value) {\n subject.next(value);\n },\n error: function (err) {\n hasError = true;\n subject.error(err);\n },\n complete: function () {\n isComplete = true;\n subscription = undefined;\n subject.complete();\n },\n });\n if (isComplete) {\n subscription = undefined;\n }\n }\n else {\n innerSub = subject.subscribe(this);\n }\n this.add(function () {\n refCount--;\n innerSub.unsubscribe();\n innerSub = undefined;\n if (subscription && !isComplete && useRefCount && refCount === 0) {\n subscription.unsubscribe();\n subscription = undefined;\n subject = undefined;\n }\n });\n };\n}\n//# sourceMappingURL=shareReplay.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_util_EmptyError PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { EmptyError } from '../util/EmptyError';\nexport function single(predicate) {\n return function (source) { return source.lift(new SingleOperator(predicate, source)); };\n}\nvar SingleOperator = /*@__PURE__*/ (function () {\n function SingleOperator(predicate, source) {\n this.predicate = predicate;\n this.source = source;\n }\n SingleOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new SingleSubscriber(subscriber, this.predicate, this.source));\n };\n return SingleOperator;\n}());\nvar SingleSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SingleSubscriber, _super);\n function SingleSubscriber(destination, predicate, source) {\n var _this = _super.call(this, destination) || this;\n _this.predicate = predicate;\n _this.source = source;\n _this.seenValue = false;\n _this.index = 0;\n return _this;\n }\n SingleSubscriber.prototype.applySingleValue = function (value) {\n if (this.seenValue) {\n this.destination.error('Sequence contains more than one element');\n }\n else {\n this.seenValue = true;\n this.singleValue = value;\n }\n };\n SingleSubscriber.prototype._next = function (value) {\n var index = this.index++;\n if (this.predicate) {\n this.tryNext(value, index);\n }\n else {\n this.applySingleValue(value);\n }\n };\n SingleSubscriber.prototype.tryNext = function (value, index) {\n try {\n if (this.predicate(value, index, this.source)) {\n this.applySingleValue(value);\n }\n }\n catch (err) {\n this.destination.error(err);\n }\n };\n SingleSubscriber.prototype._complete = function () {\n var destination = this.destination;\n if (this.index > 0) {\n destination.next(this.seenValue ? this.singleValue : undefined);\n destination.complete();\n }\n else {\n destination.error(new EmptyError);\n }\n };\n return SingleSubscriber;\n}(Subscriber));\n//# sourceMappingURL=single.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function skip(count) {\n return function (source) { return source.lift(new SkipOperator(count)); };\n}\nvar SkipOperator = /*@__PURE__*/ (function () {\n function SkipOperator(total) {\n this.total = total;\n }\n SkipOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new SkipSubscriber(subscriber, this.total));\n };\n return SkipOperator;\n}());\nvar SkipSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SkipSubscriber, _super);\n function SkipSubscriber(destination, total) {\n var _this = _super.call(this, destination) || this;\n _this.total = total;\n _this.count = 0;\n return _this;\n }\n SkipSubscriber.prototype._next = function (x) {\n if (++this.count > this.total) {\n this.destination.next(x);\n }\n };\n return SkipSubscriber;\n}(Subscriber));\n//# sourceMappingURL=skip.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_util_ArgumentOutOfRangeError PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nexport function skipLast(count) {\n return function (source) { return source.lift(new SkipLastOperator(count)); };\n}\nvar SkipLastOperator = /*@__PURE__*/ (function () {\n function SkipLastOperator(_skipCount) {\n this._skipCount = _skipCount;\n if (this._skipCount < 0) {\n throw new ArgumentOutOfRangeError;\n }\n }\n SkipLastOperator.prototype.call = function (subscriber, source) {\n if (this._skipCount === 0) {\n return source.subscribe(new Subscriber(subscriber));\n }\n else {\n return source.subscribe(new SkipLastSubscriber(subscriber, this._skipCount));\n }\n };\n return SkipLastOperator;\n}());\nvar SkipLastSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SkipLastSubscriber, _super);\n function SkipLastSubscriber(destination, _skipCount) {\n var _this = _super.call(this, destination) || this;\n _this._skipCount = _skipCount;\n _this._count = 0;\n _this._ring = new Array(_skipCount);\n return _this;\n }\n SkipLastSubscriber.prototype._next = function (value) {\n var skipCount = this._skipCount;\n var count = this._count++;\n if (count < skipCount) {\n this._ring[count] = value;\n }\n else {\n var currentIndex = count % skipCount;\n var ring = this._ring;\n var oldValue = ring[currentIndex];\n ring[currentIndex] = value;\n this.destination.next(oldValue);\n }\n };\n return SkipLastSubscriber;\n}(Subscriber));\n//# sourceMappingURL=skipLast.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function skipUntil(notifier) {\n return function (source) { return source.lift(new SkipUntilOperator(notifier)); };\n}\nvar SkipUntilOperator = /*@__PURE__*/ (function () {\n function SkipUntilOperator(notifier) {\n this.notifier = notifier;\n }\n SkipUntilOperator.prototype.call = function (destination, source) {\n return source.subscribe(new SkipUntilSubscriber(destination, this.notifier));\n };\n return SkipUntilOperator;\n}());\nvar SkipUntilSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SkipUntilSubscriber, _super);\n function SkipUntilSubscriber(destination, notifier) {\n var _this = _super.call(this, destination) || this;\n _this.hasValue = false;\n var innerSubscriber = new SimpleInnerSubscriber(_this);\n _this.add(innerSubscriber);\n _this.innerSubscription = innerSubscriber;\n var innerSubscription = innerSubscribe(notifier, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n _this.add(innerSubscription);\n _this.innerSubscription = innerSubscription;\n }\n return _this;\n }\n SkipUntilSubscriber.prototype._next = function (value) {\n if (this.hasValue) {\n _super.prototype._next.call(this, value);\n }\n };\n SkipUntilSubscriber.prototype.notifyNext = function () {\n this.hasValue = true;\n if (this.innerSubscription) {\n this.innerSubscription.unsubscribe();\n }\n };\n SkipUntilSubscriber.prototype.notifyComplete = function () {\n };\n return SkipUntilSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=skipUntil.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function skipWhile(predicate) {\n return function (source) { return source.lift(new SkipWhileOperator(predicate)); };\n}\nvar SkipWhileOperator = /*@__PURE__*/ (function () {\n function SkipWhileOperator(predicate) {\n this.predicate = predicate;\n }\n SkipWhileOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new SkipWhileSubscriber(subscriber, this.predicate));\n };\n return SkipWhileOperator;\n}());\nvar SkipWhileSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SkipWhileSubscriber, _super);\n function SkipWhileSubscriber(destination, predicate) {\n var _this = _super.call(this, destination) || this;\n _this.predicate = predicate;\n _this.skipping = true;\n _this.index = 0;\n return _this;\n }\n SkipWhileSubscriber.prototype._next = function (value) {\n var destination = this.destination;\n if (this.skipping) {\n this.tryCallPredicate(value);\n }\n if (!this.skipping) {\n destination.next(value);\n }\n };\n SkipWhileSubscriber.prototype.tryCallPredicate = function (value) {\n try {\n var result = this.predicate(value, this.index++);\n this.skipping = Boolean(result);\n }\n catch (err) {\n this.destination.error(err);\n }\n };\n return SkipWhileSubscriber;\n}(Subscriber));\n//# sourceMappingURL=skipWhile.js.map\n","/** PURE_IMPORTS_START _observable_concat,_util_isScheduler PURE_IMPORTS_END */\nimport { concat } from '../observable/concat';\nimport { isScheduler } from '../util/isScheduler';\nexport function startWith() {\n var array = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n array[_i] = arguments[_i];\n }\n var scheduler = array[array.length - 1];\n if (isScheduler(scheduler)) {\n array.pop();\n return function (source) { return concat(array, source, scheduler); };\n }\n else {\n return function (source) { return concat(array, source); };\n }\n}\n//# sourceMappingURL=startWith.js.map\n","/** PURE_IMPORTS_START tslib,_Observable,_scheduler_asap,_util_isNumeric PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Observable } from '../Observable';\nimport { asap } from '../scheduler/asap';\nimport { isNumeric } from '../util/isNumeric';\nvar SubscribeOnObservable = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SubscribeOnObservable, _super);\n function SubscribeOnObservable(source, delayTime, scheduler) {\n if (delayTime === void 0) {\n delayTime = 0;\n }\n if (scheduler === void 0) {\n scheduler = asap;\n }\n var _this = _super.call(this) || this;\n _this.source = source;\n _this.delayTime = delayTime;\n _this.scheduler = scheduler;\n if (!isNumeric(delayTime) || delayTime < 0) {\n _this.delayTime = 0;\n }\n if (!scheduler || typeof scheduler.schedule !== 'function') {\n _this.scheduler = asap;\n }\n return _this;\n }\n SubscribeOnObservable.create = function (source, delay, scheduler) {\n if (delay === void 0) {\n delay = 0;\n }\n if (scheduler === void 0) {\n scheduler = asap;\n }\n return new SubscribeOnObservable(source, delay, scheduler);\n };\n SubscribeOnObservable.dispatch = function (arg) {\n var source = arg.source, subscriber = arg.subscriber;\n return this.add(source.subscribe(subscriber));\n };\n SubscribeOnObservable.prototype._subscribe = function (subscriber) {\n var delay = this.delayTime;\n var source = this.source;\n var scheduler = this.scheduler;\n return scheduler.schedule(SubscribeOnObservable.dispatch, delay, {\n source: source, subscriber: subscriber\n });\n };\n return SubscribeOnObservable;\n}(Observable));\nexport { SubscribeOnObservable };\n//# sourceMappingURL=SubscribeOnObservable.js.map\n","/** PURE_IMPORTS_START _observable_SubscribeOnObservable PURE_IMPORTS_END */\nimport { SubscribeOnObservable } from '../observable/SubscribeOnObservable';\nexport function subscribeOn(scheduler, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n return function subscribeOnOperatorFunction(source) {\n return source.lift(new SubscribeOnOperator(scheduler, delay));\n };\n}\nvar SubscribeOnOperator = /*@__PURE__*/ (function () {\n function SubscribeOnOperator(scheduler, delay) {\n this.scheduler = scheduler;\n this.delay = delay;\n }\n SubscribeOnOperator.prototype.call = function (subscriber, source) {\n return new SubscribeOnObservable(source, this.delay, this.scheduler).subscribe(subscriber);\n };\n return SubscribeOnOperator;\n}());\n//# sourceMappingURL=subscribeOn.js.map\n","/** PURE_IMPORTS_START tslib,_map,_observable_from,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { map } from './map';\nimport { from } from '../observable/from';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function switchMap(project, resultSelector) {\n if (typeof resultSelector === 'function') {\n return function (source) { return source.pipe(switchMap(function (a, i) { return from(project(a, i)).pipe(map(function (b, ii) { return resultSelector(a, b, i, ii); })); })); };\n }\n return function (source) { return source.lift(new SwitchMapOperator(project)); };\n}\nvar SwitchMapOperator = /*@__PURE__*/ (function () {\n function SwitchMapOperator(project) {\n this.project = project;\n }\n SwitchMapOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new SwitchMapSubscriber(subscriber, this.project));\n };\n return SwitchMapOperator;\n}());\nvar SwitchMapSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SwitchMapSubscriber, _super);\n function SwitchMapSubscriber(destination, project) {\n var _this = _super.call(this, destination) || this;\n _this.project = project;\n _this.index = 0;\n return _this;\n }\n SwitchMapSubscriber.prototype._next = function (value) {\n var result;\n var index = this.index++;\n try {\n result = this.project(value, index);\n }\n catch (error) {\n this.destination.error(error);\n return;\n }\n this._innerSub(result);\n };\n SwitchMapSubscriber.prototype._innerSub = function (result) {\n var innerSubscription = this.innerSubscription;\n if (innerSubscription) {\n innerSubscription.unsubscribe();\n }\n var innerSubscriber = new SimpleInnerSubscriber(this);\n var destination = this.destination;\n destination.add(innerSubscriber);\n this.innerSubscription = innerSubscribe(result, innerSubscriber);\n if (this.innerSubscription !== innerSubscriber) {\n destination.add(this.innerSubscription);\n }\n };\n SwitchMapSubscriber.prototype._complete = function () {\n var innerSubscription = this.innerSubscription;\n if (!innerSubscription || innerSubscription.closed) {\n _super.prototype._complete.call(this);\n }\n this.unsubscribe();\n };\n SwitchMapSubscriber.prototype._unsubscribe = function () {\n this.innerSubscription = undefined;\n };\n SwitchMapSubscriber.prototype.notifyComplete = function () {\n this.innerSubscription = undefined;\n if (this.isStopped) {\n _super.prototype._complete.call(this);\n }\n };\n SwitchMapSubscriber.prototype.notifyNext = function (innerValue) {\n this.destination.next(innerValue);\n };\n return SwitchMapSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=switchMap.js.map\n","/** PURE_IMPORTS_START _switchMap,_util_identity PURE_IMPORTS_END */\nimport { switchMap } from './switchMap';\nimport { identity } from '../util/identity';\nexport function switchAll() {\n return switchMap(identity);\n}\n//# sourceMappingURL=switchAll.js.map\n","/** PURE_IMPORTS_START _switchMap PURE_IMPORTS_END */\nimport { switchMap } from './switchMap';\nexport function switchMapTo(innerObservable, resultSelector) {\n return resultSelector ? switchMap(function () { return innerObservable; }, resultSelector) : switchMap(function () { return innerObservable; });\n}\n//# sourceMappingURL=switchMapTo.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { innerSubscribe, SimpleInnerSubscriber, SimpleOuterSubscriber } from '../innerSubscribe';\nexport function takeUntil(notifier) {\n return function (source) { return source.lift(new TakeUntilOperator(notifier)); };\n}\nvar TakeUntilOperator = /*@__PURE__*/ (function () {\n function TakeUntilOperator(notifier) {\n this.notifier = notifier;\n }\n TakeUntilOperator.prototype.call = function (subscriber, source) {\n var takeUntilSubscriber = new TakeUntilSubscriber(subscriber);\n var notifierSubscription = innerSubscribe(this.notifier, new SimpleInnerSubscriber(takeUntilSubscriber));\n if (notifierSubscription && !takeUntilSubscriber.seenValue) {\n takeUntilSubscriber.add(notifierSubscription);\n return source.subscribe(takeUntilSubscriber);\n }\n return takeUntilSubscriber;\n };\n return TakeUntilOperator;\n}());\nvar TakeUntilSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(TakeUntilSubscriber, _super);\n function TakeUntilSubscriber(destination) {\n var _this = _super.call(this, destination) || this;\n _this.seenValue = false;\n return _this;\n }\n TakeUntilSubscriber.prototype.notifyNext = function () {\n this.seenValue = true;\n this.complete();\n };\n TakeUntilSubscriber.prototype.notifyComplete = function () {\n };\n return TakeUntilSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=takeUntil.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function takeWhile(predicate, inclusive) {\n if (inclusive === void 0) {\n inclusive = false;\n }\n return function (source) {\n return source.lift(new TakeWhileOperator(predicate, inclusive));\n };\n}\nvar TakeWhileOperator = /*@__PURE__*/ (function () {\n function TakeWhileOperator(predicate, inclusive) {\n this.predicate = predicate;\n this.inclusive = inclusive;\n }\n TakeWhileOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new TakeWhileSubscriber(subscriber, this.predicate, this.inclusive));\n };\n return TakeWhileOperator;\n}());\nvar TakeWhileSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(TakeWhileSubscriber, _super);\n function TakeWhileSubscriber(destination, predicate, inclusive) {\n var _this = _super.call(this, destination) || this;\n _this.predicate = predicate;\n _this.inclusive = inclusive;\n _this.index = 0;\n return _this;\n }\n TakeWhileSubscriber.prototype._next = function (value) {\n var destination = this.destination;\n var result;\n try {\n result = this.predicate(value, this.index++);\n }\n catch (err) {\n destination.error(err);\n return;\n }\n this.nextOrComplete(value, result);\n };\n TakeWhileSubscriber.prototype.nextOrComplete = function (value, predicateResult) {\n var destination = this.destination;\n if (Boolean(predicateResult)) {\n destination.next(value);\n }\n else {\n if (this.inclusive) {\n destination.next(value);\n }\n destination.complete();\n }\n };\n return TakeWhileSubscriber;\n}(Subscriber));\n//# sourceMappingURL=takeWhile.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_util_noop,_util_isFunction PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { noop } from '../util/noop';\nimport { isFunction } from '../util/isFunction';\nexport function tap(nextOrObserver, error, complete) {\n return function tapOperatorFunction(source) {\n return source.lift(new DoOperator(nextOrObserver, error, complete));\n };\n}\nvar DoOperator = /*@__PURE__*/ (function () {\n function DoOperator(nextOrObserver, error, complete) {\n this.nextOrObserver = nextOrObserver;\n this.error = error;\n this.complete = complete;\n }\n DoOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new TapSubscriber(subscriber, this.nextOrObserver, this.error, this.complete));\n };\n return DoOperator;\n}());\nvar TapSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(TapSubscriber, _super);\n function TapSubscriber(destination, observerOrNext, error, complete) {\n var _this = _super.call(this, destination) || this;\n _this._tapNext = noop;\n _this._tapError = noop;\n _this._tapComplete = noop;\n _this._tapError = error || noop;\n _this._tapComplete = complete || noop;\n if (isFunction(observerOrNext)) {\n _this._context = _this;\n _this._tapNext = observerOrNext;\n }\n else if (observerOrNext) {\n _this._context = observerOrNext;\n _this._tapNext = observerOrNext.next || noop;\n _this._tapError = observerOrNext.error || noop;\n _this._tapComplete = observerOrNext.complete || noop;\n }\n return _this;\n }\n TapSubscriber.prototype._next = function (value) {\n try {\n this._tapNext.call(this._context, value);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(value);\n };\n TapSubscriber.prototype._error = function (err) {\n try {\n this._tapError.call(this._context, err);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.error(err);\n };\n TapSubscriber.prototype._complete = function () {\n try {\n this._tapComplete.call(this._context);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n return this.destination.complete();\n };\n return TapSubscriber;\n}(Subscriber));\n//# sourceMappingURL=tap.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport var defaultThrottleConfig = {\n leading: true,\n trailing: false\n};\nexport function throttle(durationSelector, config) {\n if (config === void 0) {\n config = defaultThrottleConfig;\n }\n return function (source) { return source.lift(new ThrottleOperator(durationSelector, !!config.leading, !!config.trailing)); };\n}\nvar ThrottleOperator = /*@__PURE__*/ (function () {\n function ThrottleOperator(durationSelector, leading, trailing) {\n this.durationSelector = durationSelector;\n this.leading = leading;\n this.trailing = trailing;\n }\n ThrottleOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new ThrottleSubscriber(subscriber, this.durationSelector, this.leading, this.trailing));\n };\n return ThrottleOperator;\n}());\nvar ThrottleSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ThrottleSubscriber, _super);\n function ThrottleSubscriber(destination, durationSelector, _leading, _trailing) {\n var _this = _super.call(this, destination) || this;\n _this.destination = destination;\n _this.durationSelector = durationSelector;\n _this._leading = _leading;\n _this._trailing = _trailing;\n _this._hasValue = false;\n return _this;\n }\n ThrottleSubscriber.prototype._next = function (value) {\n this._hasValue = true;\n this._sendValue = value;\n if (!this._throttled) {\n if (this._leading) {\n this.send();\n }\n else {\n this.throttle(value);\n }\n }\n };\n ThrottleSubscriber.prototype.send = function () {\n var _a = this, _hasValue = _a._hasValue, _sendValue = _a._sendValue;\n if (_hasValue) {\n this.destination.next(_sendValue);\n this.throttle(_sendValue);\n }\n this._hasValue = false;\n this._sendValue = undefined;\n };\n ThrottleSubscriber.prototype.throttle = function (value) {\n var duration = this.tryDurationSelector(value);\n if (!!duration) {\n this.add(this._throttled = innerSubscribe(duration, new SimpleInnerSubscriber(this)));\n }\n };\n ThrottleSubscriber.prototype.tryDurationSelector = function (value) {\n try {\n return this.durationSelector(value);\n }\n catch (err) {\n this.destination.error(err);\n return null;\n }\n };\n ThrottleSubscriber.prototype.throttlingDone = function () {\n var _a = this, _throttled = _a._throttled, _trailing = _a._trailing;\n if (_throttled) {\n _throttled.unsubscribe();\n }\n this._throttled = undefined;\n if (_trailing) {\n this.send();\n }\n };\n ThrottleSubscriber.prototype.notifyNext = function () {\n this.throttlingDone();\n };\n ThrottleSubscriber.prototype.notifyComplete = function () {\n this.throttlingDone();\n };\n return ThrottleSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=throttle.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_scheduler_async,_throttle PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { async } from '../scheduler/async';\nimport { defaultThrottleConfig } from './throttle';\nexport function throttleTime(duration, scheduler, config) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n if (config === void 0) {\n config = defaultThrottleConfig;\n }\n return function (source) { return source.lift(new ThrottleTimeOperator(duration, scheduler, config.leading, config.trailing)); };\n}\nvar ThrottleTimeOperator = /*@__PURE__*/ (function () {\n function ThrottleTimeOperator(duration, scheduler, leading, trailing) {\n this.duration = duration;\n this.scheduler = scheduler;\n this.leading = leading;\n this.trailing = trailing;\n }\n ThrottleTimeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new ThrottleTimeSubscriber(subscriber, this.duration, this.scheduler, this.leading, this.trailing));\n };\n return ThrottleTimeOperator;\n}());\nvar ThrottleTimeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ThrottleTimeSubscriber, _super);\n function ThrottleTimeSubscriber(destination, duration, scheduler, leading, trailing) {\n var _this = _super.call(this, destination) || this;\n _this.duration = duration;\n _this.scheduler = scheduler;\n _this.leading = leading;\n _this.trailing = trailing;\n _this._hasTrailingValue = false;\n _this._trailingValue = null;\n return _this;\n }\n ThrottleTimeSubscriber.prototype._next = function (value) {\n if (this.throttled) {\n if (this.trailing) {\n this._trailingValue = value;\n this._hasTrailingValue = true;\n }\n }\n else {\n this.add(this.throttled = this.scheduler.schedule(dispatchNext, this.duration, { subscriber: this }));\n if (this.leading) {\n this.destination.next(value);\n }\n else if (this.trailing) {\n this._trailingValue = value;\n this._hasTrailingValue = true;\n }\n }\n };\n ThrottleTimeSubscriber.prototype._complete = function () {\n if (this._hasTrailingValue) {\n this.destination.next(this._trailingValue);\n this.destination.complete();\n }\n else {\n this.destination.complete();\n }\n };\n ThrottleTimeSubscriber.prototype.clearThrottle = function () {\n var throttled = this.throttled;\n if (throttled) {\n if (this.trailing && this._hasTrailingValue) {\n this.destination.next(this._trailingValue);\n this._trailingValue = null;\n this._hasTrailingValue = false;\n }\n throttled.unsubscribe();\n this.remove(throttled);\n this.throttled = null;\n }\n };\n return ThrottleTimeSubscriber;\n}(Subscriber));\nfunction dispatchNext(arg) {\n var subscriber = arg.subscriber;\n subscriber.clearThrottle();\n}\n//# sourceMappingURL=throttleTime.js.map\n","/** PURE_IMPORTS_START _scheduler_async,_scan,_observable_defer,_map PURE_IMPORTS_END */\nimport { async } from '../scheduler/async';\nimport { scan } from './scan';\nimport { defer } from '../observable/defer';\nimport { map } from './map';\nexport function timeInterval(scheduler) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n return function (source) {\n return defer(function () {\n return source.pipe(scan(function (_a, value) {\n var current = _a.current;\n return ({ value: value, current: scheduler.now(), last: current });\n }, { current: scheduler.now(), value: undefined, last: undefined }), map(function (_a) {\n var current = _a.current, last = _a.last, value = _a.value;\n return new TimeInterval(value, current - last);\n }));\n });\n };\n}\nvar TimeInterval = /*@__PURE__*/ (function () {\n function TimeInterval(value, interval) {\n this.value = value;\n this.interval = interval;\n }\n return TimeInterval;\n}());\nexport { TimeInterval };\n//# sourceMappingURL=timeInterval.js.map\n","/** PURE_IMPORTS_START tslib,_scheduler_async,_util_isDate,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { async } from '../scheduler/async';\nimport { isDate } from '../util/isDate';\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function timeoutWith(due, withObservable, scheduler) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n return function (source) {\n var absoluteTimeout = isDate(due);\n var waitFor = absoluteTimeout ? (+due - scheduler.now()) : Math.abs(due);\n return source.lift(new TimeoutWithOperator(waitFor, absoluteTimeout, withObservable, scheduler));\n };\n}\nvar TimeoutWithOperator = /*@__PURE__*/ (function () {\n function TimeoutWithOperator(waitFor, absoluteTimeout, withObservable, scheduler) {\n this.waitFor = waitFor;\n this.absoluteTimeout = absoluteTimeout;\n this.withObservable = withObservable;\n this.scheduler = scheduler;\n }\n TimeoutWithOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new TimeoutWithSubscriber(subscriber, this.absoluteTimeout, this.waitFor, this.withObservable, this.scheduler));\n };\n return TimeoutWithOperator;\n}());\nvar TimeoutWithSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(TimeoutWithSubscriber, _super);\n function TimeoutWithSubscriber(destination, absoluteTimeout, waitFor, withObservable, scheduler) {\n var _this = _super.call(this, destination) || this;\n _this.absoluteTimeout = absoluteTimeout;\n _this.waitFor = waitFor;\n _this.withObservable = withObservable;\n _this.scheduler = scheduler;\n _this.scheduleTimeout();\n return _this;\n }\n TimeoutWithSubscriber.dispatchTimeout = function (subscriber) {\n var withObservable = subscriber.withObservable;\n subscriber._unsubscribeAndRecycle();\n subscriber.add(innerSubscribe(withObservable, new SimpleInnerSubscriber(subscriber)));\n };\n TimeoutWithSubscriber.prototype.scheduleTimeout = function () {\n var action = this.action;\n if (action) {\n this.action = action.schedule(this, this.waitFor);\n }\n else {\n this.add(this.action = this.scheduler.schedule(TimeoutWithSubscriber.dispatchTimeout, this.waitFor, this));\n }\n };\n TimeoutWithSubscriber.prototype._next = function (value) {\n if (!this.absoluteTimeout) {\n this.scheduleTimeout();\n }\n _super.prototype._next.call(this, value);\n };\n TimeoutWithSubscriber.prototype._unsubscribe = function () {\n this.action = undefined;\n this.scheduler = null;\n this.withObservable = null;\n };\n return TimeoutWithSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=timeoutWith.js.map\n","/** PURE_IMPORTS_START _scheduler_async,_util_TimeoutError,_timeoutWith,_observable_throwError PURE_IMPORTS_END */\nimport { async } from '../scheduler/async';\nimport { TimeoutError } from '../util/TimeoutError';\nimport { timeoutWith } from './timeoutWith';\nimport { throwError } from '../observable/throwError';\nexport function timeout(due, scheduler) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n return timeoutWith(due, throwError(new TimeoutError()), scheduler);\n}\n//# sourceMappingURL=timeout.js.map\n","/** PURE_IMPORTS_START _scheduler_async,_map PURE_IMPORTS_END */\nimport { async } from '../scheduler/async';\nimport { map } from './map';\nexport function timestamp(scheduler) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n return map(function (value) { return new Timestamp(value, scheduler.now()); });\n}\nvar Timestamp = /*@__PURE__*/ (function () {\n function Timestamp(value, timestamp) {\n this.value = value;\n this.timestamp = timestamp;\n }\n return Timestamp;\n}());\nexport { Timestamp };\n//# sourceMappingURL=timestamp.js.map\n","/** PURE_IMPORTS_START _reduce PURE_IMPORTS_END */\nimport { reduce } from './reduce';\nfunction toArrayReducer(arr, item, index) {\n if (index === 0) {\n return [item];\n }\n arr.push(item);\n return arr;\n}\nexport function toArray() {\n return reduce(toArrayReducer, []);\n}\n//# sourceMappingURL=toArray.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subject } from '../Subject';\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function window(windowBoundaries) {\n return function windowOperatorFunction(source) {\n return source.lift(new WindowOperator(windowBoundaries));\n };\n}\nvar WindowOperator = /*@__PURE__*/ (function () {\n function WindowOperator(windowBoundaries) {\n this.windowBoundaries = windowBoundaries;\n }\n WindowOperator.prototype.call = function (subscriber, source) {\n var windowSubscriber = new WindowSubscriber(subscriber);\n var sourceSubscription = source.subscribe(windowSubscriber);\n if (!sourceSubscription.closed) {\n windowSubscriber.add(innerSubscribe(this.windowBoundaries, new SimpleInnerSubscriber(windowSubscriber)));\n }\n return sourceSubscription;\n };\n return WindowOperator;\n}());\nvar WindowSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(WindowSubscriber, _super);\n function WindowSubscriber(destination) {\n var _this = _super.call(this, destination) || this;\n _this.window = new Subject();\n destination.next(_this.window);\n return _this;\n }\n WindowSubscriber.prototype.notifyNext = function () {\n this.openWindow();\n };\n WindowSubscriber.prototype.notifyError = function (error) {\n this._error(error);\n };\n WindowSubscriber.prototype.notifyComplete = function () {\n this._complete();\n };\n WindowSubscriber.prototype._next = function (value) {\n this.window.next(value);\n };\n WindowSubscriber.prototype._error = function (err) {\n this.window.error(err);\n this.destination.error(err);\n };\n WindowSubscriber.prototype._complete = function () {\n this.window.complete();\n this.destination.complete();\n };\n WindowSubscriber.prototype._unsubscribe = function () {\n this.window = null;\n };\n WindowSubscriber.prototype.openWindow = function () {\n var prevWindow = this.window;\n if (prevWindow) {\n prevWindow.complete();\n }\n var destination = this.destination;\n var newWindow = this.window = new Subject();\n destination.next(newWindow);\n };\n return WindowSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=window.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_Subject PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { Subject } from '../Subject';\nexport function windowCount(windowSize, startWindowEvery) {\n if (startWindowEvery === void 0) {\n startWindowEvery = 0;\n }\n return function windowCountOperatorFunction(source) {\n return source.lift(new WindowCountOperator(windowSize, startWindowEvery));\n };\n}\nvar WindowCountOperator = /*@__PURE__*/ (function () {\n function WindowCountOperator(windowSize, startWindowEvery) {\n this.windowSize = windowSize;\n this.startWindowEvery = startWindowEvery;\n }\n WindowCountOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new WindowCountSubscriber(subscriber, this.windowSize, this.startWindowEvery));\n };\n return WindowCountOperator;\n}());\nvar WindowCountSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(WindowCountSubscriber, _super);\n function WindowCountSubscriber(destination, windowSize, startWindowEvery) {\n var _this = _super.call(this, destination) || this;\n _this.destination = destination;\n _this.windowSize = windowSize;\n _this.startWindowEvery = startWindowEvery;\n _this.windows = [new Subject()];\n _this.count = 0;\n destination.next(_this.windows[0]);\n return _this;\n }\n WindowCountSubscriber.prototype._next = function (value) {\n var startWindowEvery = (this.startWindowEvery > 0) ? this.startWindowEvery : this.windowSize;\n var destination = this.destination;\n var windowSize = this.windowSize;\n var windows = this.windows;\n var len = windows.length;\n for (var i = 0; i < len && !this.closed; i++) {\n windows[i].next(value);\n }\n var c = this.count - windowSize + 1;\n if (c >= 0 && c % startWindowEvery === 0 && !this.closed) {\n windows.shift().complete();\n }\n if (++this.count % startWindowEvery === 0 && !this.closed) {\n var window_1 = new Subject();\n windows.push(window_1);\n destination.next(window_1);\n }\n };\n WindowCountSubscriber.prototype._error = function (err) {\n var windows = this.windows;\n if (windows) {\n while (windows.length > 0 && !this.closed) {\n windows.shift().error(err);\n }\n }\n this.destination.error(err);\n };\n WindowCountSubscriber.prototype._complete = function () {\n var windows = this.windows;\n if (windows) {\n while (windows.length > 0 && !this.closed) {\n windows.shift().complete();\n }\n }\n this.destination.complete();\n };\n WindowCountSubscriber.prototype._unsubscribe = function () {\n this.count = 0;\n this.windows = null;\n };\n return WindowCountSubscriber;\n}(Subscriber));\n//# sourceMappingURL=windowCount.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_scheduler_async,_Subscriber,_util_isNumeric,_util_isScheduler PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subject } from '../Subject';\nimport { async } from '../scheduler/async';\nimport { Subscriber } from '../Subscriber';\nimport { isNumeric } from '../util/isNumeric';\nimport { isScheduler } from '../util/isScheduler';\nexport function windowTime(windowTimeSpan) {\n var scheduler = async;\n var windowCreationInterval = null;\n var maxWindowSize = Number.POSITIVE_INFINITY;\n if (isScheduler(arguments[3])) {\n scheduler = arguments[3];\n }\n if (isScheduler(arguments[2])) {\n scheduler = arguments[2];\n }\n else if (isNumeric(arguments[2])) {\n maxWindowSize = Number(arguments[2]);\n }\n if (isScheduler(arguments[1])) {\n scheduler = arguments[1];\n }\n else if (isNumeric(arguments[1])) {\n windowCreationInterval = Number(arguments[1]);\n }\n return function windowTimeOperatorFunction(source) {\n return source.lift(new WindowTimeOperator(windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler));\n };\n}\nvar WindowTimeOperator = /*@__PURE__*/ (function () {\n function WindowTimeOperator(windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler) {\n this.windowTimeSpan = windowTimeSpan;\n this.windowCreationInterval = windowCreationInterval;\n this.maxWindowSize = maxWindowSize;\n this.scheduler = scheduler;\n }\n WindowTimeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new WindowTimeSubscriber(subscriber, this.windowTimeSpan, this.windowCreationInterval, this.maxWindowSize, this.scheduler));\n };\n return WindowTimeOperator;\n}());\nvar CountedSubject = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(CountedSubject, _super);\n function CountedSubject() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this._numberOfNextedValues = 0;\n return _this;\n }\n CountedSubject.prototype.next = function (value) {\n this._numberOfNextedValues++;\n _super.prototype.next.call(this, value);\n };\n Object.defineProperty(CountedSubject.prototype, \"numberOfNextedValues\", {\n get: function () {\n return this._numberOfNextedValues;\n },\n enumerable: true,\n configurable: true\n });\n return CountedSubject;\n}(Subject));\nvar WindowTimeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(WindowTimeSubscriber, _super);\n function WindowTimeSubscriber(destination, windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler) {\n var _this = _super.call(this, destination) || this;\n _this.destination = destination;\n _this.windowTimeSpan = windowTimeSpan;\n _this.windowCreationInterval = windowCreationInterval;\n _this.maxWindowSize = maxWindowSize;\n _this.scheduler = scheduler;\n _this.windows = [];\n var window = _this.openWindow();\n if (windowCreationInterval !== null && windowCreationInterval >= 0) {\n var closeState = { subscriber: _this, window: window, context: null };\n var creationState = { windowTimeSpan: windowTimeSpan, windowCreationInterval: windowCreationInterval, subscriber: _this, scheduler: scheduler };\n _this.add(scheduler.schedule(dispatchWindowClose, windowTimeSpan, closeState));\n _this.add(scheduler.schedule(dispatchWindowCreation, windowCreationInterval, creationState));\n }\n else {\n var timeSpanOnlyState = { subscriber: _this, window: window, windowTimeSpan: windowTimeSpan };\n _this.add(scheduler.schedule(dispatchWindowTimeSpanOnly, windowTimeSpan, timeSpanOnlyState));\n }\n return _this;\n }\n WindowTimeSubscriber.prototype._next = function (value) {\n var windows = this.windows;\n var len = windows.length;\n for (var i = 0; i < len; i++) {\n var window_1 = windows[i];\n if (!window_1.closed) {\n window_1.next(value);\n if (window_1.numberOfNextedValues >= this.maxWindowSize) {\n this.closeWindow(window_1);\n }\n }\n }\n };\n WindowTimeSubscriber.prototype._error = function (err) {\n var windows = this.windows;\n while (windows.length > 0) {\n windows.shift().error(err);\n }\n this.destination.error(err);\n };\n WindowTimeSubscriber.prototype._complete = function () {\n var windows = this.windows;\n while (windows.length > 0) {\n var window_2 = windows.shift();\n if (!window_2.closed) {\n window_2.complete();\n }\n }\n this.destination.complete();\n };\n WindowTimeSubscriber.prototype.openWindow = function () {\n var window = new CountedSubject();\n this.windows.push(window);\n var destination = this.destination;\n destination.next(window);\n return window;\n };\n WindowTimeSubscriber.prototype.closeWindow = function (window) {\n window.complete();\n var windows = this.windows;\n windows.splice(windows.indexOf(window), 1);\n };\n return WindowTimeSubscriber;\n}(Subscriber));\nfunction dispatchWindowTimeSpanOnly(state) {\n var subscriber = state.subscriber, windowTimeSpan = state.windowTimeSpan, window = state.window;\n if (window) {\n subscriber.closeWindow(window);\n }\n state.window = subscriber.openWindow();\n this.schedule(state, windowTimeSpan);\n}\nfunction dispatchWindowCreation(state) {\n var windowTimeSpan = state.windowTimeSpan, subscriber = state.subscriber, scheduler = state.scheduler, windowCreationInterval = state.windowCreationInterval;\n var window = subscriber.openWindow();\n var action = this;\n var context = { action: action, subscription: null };\n var timeSpanState = { subscriber: subscriber, window: window, context: context };\n context.subscription = scheduler.schedule(dispatchWindowClose, windowTimeSpan, timeSpanState);\n action.add(context.subscription);\n action.schedule(state, windowCreationInterval);\n}\nfunction dispatchWindowClose(state) {\n var subscriber = state.subscriber, window = state.window, context = state.context;\n if (context && context.action && context.subscription) {\n context.action.remove(context.subscription);\n }\n subscriber.closeWindow(window);\n}\n//# sourceMappingURL=windowTime.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_Subscription,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subject } from '../Subject';\nimport { Subscription } from '../Subscription';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nexport function windowToggle(openings, closingSelector) {\n return function (source) { return source.lift(new WindowToggleOperator(openings, closingSelector)); };\n}\nvar WindowToggleOperator = /*@__PURE__*/ (function () {\n function WindowToggleOperator(openings, closingSelector) {\n this.openings = openings;\n this.closingSelector = closingSelector;\n }\n WindowToggleOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new WindowToggleSubscriber(subscriber, this.openings, this.closingSelector));\n };\n return WindowToggleOperator;\n}());\nvar WindowToggleSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(WindowToggleSubscriber, _super);\n function WindowToggleSubscriber(destination, openings, closingSelector) {\n var _this = _super.call(this, destination) || this;\n _this.openings = openings;\n _this.closingSelector = closingSelector;\n _this.contexts = [];\n _this.add(_this.openSubscription = subscribeToResult(_this, openings, openings));\n return _this;\n }\n WindowToggleSubscriber.prototype._next = function (value) {\n var contexts = this.contexts;\n if (contexts) {\n var len = contexts.length;\n for (var i = 0; i < len; i++) {\n contexts[i].window.next(value);\n }\n }\n };\n WindowToggleSubscriber.prototype._error = function (err) {\n var contexts = this.contexts;\n this.contexts = null;\n if (contexts) {\n var len = contexts.length;\n var index = -1;\n while (++index < len) {\n var context_1 = contexts[index];\n context_1.window.error(err);\n context_1.subscription.unsubscribe();\n }\n }\n _super.prototype._error.call(this, err);\n };\n WindowToggleSubscriber.prototype._complete = function () {\n var contexts = this.contexts;\n this.contexts = null;\n if (contexts) {\n var len = contexts.length;\n var index = -1;\n while (++index < len) {\n var context_2 = contexts[index];\n context_2.window.complete();\n context_2.subscription.unsubscribe();\n }\n }\n _super.prototype._complete.call(this);\n };\n WindowToggleSubscriber.prototype._unsubscribe = function () {\n var contexts = this.contexts;\n this.contexts = null;\n if (contexts) {\n var len = contexts.length;\n var index = -1;\n while (++index < len) {\n var context_3 = contexts[index];\n context_3.window.unsubscribe();\n context_3.subscription.unsubscribe();\n }\n }\n };\n WindowToggleSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n if (outerValue === this.openings) {\n var closingNotifier = void 0;\n try {\n var closingSelector = this.closingSelector;\n closingNotifier = closingSelector(innerValue);\n }\n catch (e) {\n return this.error(e);\n }\n var window_1 = new Subject();\n var subscription = new Subscription();\n var context_4 = { window: window_1, subscription: subscription };\n this.contexts.push(context_4);\n var innerSubscription = subscribeToResult(this, closingNotifier, context_4);\n if (innerSubscription.closed) {\n this.closeWindow(this.contexts.length - 1);\n }\n else {\n innerSubscription.context = context_4;\n subscription.add(innerSubscription);\n }\n this.destination.next(window_1);\n }\n else {\n this.closeWindow(this.contexts.indexOf(outerValue));\n }\n };\n WindowToggleSubscriber.prototype.notifyError = function (err) {\n this.error(err);\n };\n WindowToggleSubscriber.prototype.notifyComplete = function (inner) {\n if (inner !== this.openSubscription) {\n this.closeWindow(this.contexts.indexOf(inner.context));\n }\n };\n WindowToggleSubscriber.prototype.closeWindow = function (index) {\n if (index === -1) {\n return;\n }\n var contexts = this.contexts;\n var context = contexts[index];\n var window = context.window, subscription = context.subscription;\n contexts.splice(index, 1);\n window.complete();\n subscription.unsubscribe();\n };\n return WindowToggleSubscriber;\n}(OuterSubscriber));\n//# sourceMappingURL=windowToggle.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subject } from '../Subject';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nexport function windowWhen(closingSelector) {\n return function windowWhenOperatorFunction(source) {\n return source.lift(new WindowOperator(closingSelector));\n };\n}\nvar WindowOperator = /*@__PURE__*/ (function () {\n function WindowOperator(closingSelector) {\n this.closingSelector = closingSelector;\n }\n WindowOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new WindowSubscriber(subscriber, this.closingSelector));\n };\n return WindowOperator;\n}());\nvar WindowSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(WindowSubscriber, _super);\n function WindowSubscriber(destination, closingSelector) {\n var _this = _super.call(this, destination) || this;\n _this.destination = destination;\n _this.closingSelector = closingSelector;\n _this.openWindow();\n return _this;\n }\n WindowSubscriber.prototype.notifyNext = function (_outerValue, _innerValue, _outerIndex, _innerIndex, innerSub) {\n this.openWindow(innerSub);\n };\n WindowSubscriber.prototype.notifyError = function (error) {\n this._error(error);\n };\n WindowSubscriber.prototype.notifyComplete = function (innerSub) {\n this.openWindow(innerSub);\n };\n WindowSubscriber.prototype._next = function (value) {\n this.window.next(value);\n };\n WindowSubscriber.prototype._error = function (err) {\n this.window.error(err);\n this.destination.error(err);\n this.unsubscribeClosingNotification();\n };\n WindowSubscriber.prototype._complete = function () {\n this.window.complete();\n this.destination.complete();\n this.unsubscribeClosingNotification();\n };\n WindowSubscriber.prototype.unsubscribeClosingNotification = function () {\n if (this.closingNotification) {\n this.closingNotification.unsubscribe();\n }\n };\n WindowSubscriber.prototype.openWindow = function (innerSub) {\n if (innerSub === void 0) {\n innerSub = null;\n }\n if (innerSub) {\n this.remove(innerSub);\n innerSub.unsubscribe();\n }\n var prevWindow = this.window;\n if (prevWindow) {\n prevWindow.complete();\n }\n var window = this.window = new Subject();\n this.destination.next(window);\n var closingNotifier;\n try {\n var closingSelector = this.closingSelector;\n closingNotifier = closingSelector();\n }\n catch (e) {\n this.destination.error(e);\n this.window.error(e);\n return;\n }\n this.add(this.closingNotification = subscribeToResult(this, closingNotifier));\n };\n return WindowSubscriber;\n}(OuterSubscriber));\n//# sourceMappingURL=windowWhen.js.map\n","/** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nexport function withLatestFrom() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return function (source) {\n var project;\n if (typeof args[args.length - 1] === 'function') {\n project = args.pop();\n }\n var observables = args;\n return source.lift(new WithLatestFromOperator(observables, project));\n };\n}\nvar WithLatestFromOperator = /*@__PURE__*/ (function () {\n function WithLatestFromOperator(observables, project) {\n this.observables = observables;\n this.project = project;\n }\n WithLatestFromOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new WithLatestFromSubscriber(subscriber, this.observables, this.project));\n };\n return WithLatestFromOperator;\n}());\nvar WithLatestFromSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(WithLatestFromSubscriber, _super);\n function WithLatestFromSubscriber(destination, observables, project) {\n var _this = _super.call(this, destination) || this;\n _this.observables = observables;\n _this.project = project;\n _this.toRespond = [];\n var len = observables.length;\n _this.values = new Array(len);\n for (var i = 0; i < len; i++) {\n _this.toRespond.push(i);\n }\n for (var i = 0; i < len; i++) {\n var observable = observables[i];\n _this.add(subscribeToResult(_this, observable, undefined, i));\n }\n return _this;\n }\n WithLatestFromSubscriber.prototype.notifyNext = function (_outerValue, innerValue, outerIndex) {\n this.values[outerIndex] = innerValue;\n var toRespond = this.toRespond;\n if (toRespond.length > 0) {\n var found = toRespond.indexOf(outerIndex);\n if (found !== -1) {\n toRespond.splice(found, 1);\n }\n }\n };\n WithLatestFromSubscriber.prototype.notifyComplete = function () {\n };\n WithLatestFromSubscriber.prototype._next = function (value) {\n if (this.toRespond.length === 0) {\n var args = [value].concat(this.values);\n if (this.project) {\n this._tryProject(args);\n }\n else {\n this.destination.next(args);\n }\n }\n };\n WithLatestFromSubscriber.prototype._tryProject = function (args) {\n var result;\n try {\n result = this.project.apply(this, args);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(result);\n };\n return WithLatestFromSubscriber;\n}(OuterSubscriber));\n//# sourceMappingURL=withLatestFrom.js.map\n","/** PURE_IMPORTS_START _observable_zip PURE_IMPORTS_END */\nimport { zip as zipStatic } from '../observable/zip';\nexport function zip() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n return function zipOperatorFunction(source) {\n return source.lift.call(zipStatic.apply(void 0, [source].concat(observables)));\n };\n}\n//# sourceMappingURL=zip.js.map\n","/** PURE_IMPORTS_START _observable_zip PURE_IMPORTS_END */\nimport { ZipOperator } from '../observable/zip';\nexport function zipAll(project) {\n return function (source) { return source.lift(new ZipOperator(project)); };\n}\n//# sourceMappingURL=zipAll.js.map\n","/*! safe-buffer. MIT License. Feross Aboukhadijeh */\n/* eslint-disable node/no-deprecated-api */\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.prototype = Object.create(Buffer.prototype)\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\n/**/\n\nvar isEncoding = Buffer.isEncoding || function (encoding) {\n encoding = '' + encoding;\n switch (encoding && encoding.toLowerCase()) {\n case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':\n return true;\n default:\n return false;\n }\n};\n\nfunction _normalizeEncoding(enc) {\n if (!enc) return 'utf8';\n var retried;\n while (true) {\n switch (enc) {\n case 'utf8':\n case 'utf-8':\n return 'utf8';\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return 'utf16le';\n case 'latin1':\n case 'binary':\n return 'latin1';\n case 'base64':\n case 'ascii':\n case 'hex':\n return enc;\n default:\n if (retried) return; // undefined\n enc = ('' + enc).toLowerCase();\n retried = true;\n }\n }\n};\n\n// Do not cache `Buffer.isEncoding` when checking encoding names as some\n// modules monkey-patch it to support additional encodings\nfunction normalizeEncoding(enc) {\n var nenc = _normalizeEncoding(enc);\n if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);\n return nenc || enc;\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters.\nexports.StringDecoder = StringDecoder;\nfunction StringDecoder(encoding) {\n this.encoding = normalizeEncoding(encoding);\n var nb;\n switch (this.encoding) {\n case 'utf16le':\n this.text = utf16Text;\n this.end = utf16End;\n nb = 4;\n break;\n case 'utf8':\n this.fillLast = utf8FillLast;\n nb = 4;\n break;\n case 'base64':\n this.text = base64Text;\n this.end = base64End;\n nb = 3;\n break;\n default:\n this.write = simpleWrite;\n this.end = simpleEnd;\n return;\n }\n this.lastNeed = 0;\n this.lastTotal = 0;\n this.lastChar = Buffer.allocUnsafe(nb);\n}\n\nStringDecoder.prototype.write = function (buf) {\n if (buf.length === 0) return '';\n var r;\n var i;\n if (this.lastNeed) {\n r = this.fillLast(buf);\n if (r === undefined) return '';\n i = this.lastNeed;\n this.lastNeed = 0;\n } else {\n i = 0;\n }\n if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);\n return r || '';\n};\n\nStringDecoder.prototype.end = utf8End;\n\n// Returns only complete characters in a Buffer\nStringDecoder.prototype.text = utf8Text;\n\n// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer\nStringDecoder.prototype.fillLast = function (buf) {\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);\n this.lastNeed -= buf.length;\n};\n\n// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a\n// continuation byte. If an invalid byte is detected, -2 is returned.\nfunction utf8CheckByte(byte) {\n if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;\n return byte >> 6 === 0x02 ? -1 : -2;\n}\n\n// Checks at most 3 bytes at the end of a Buffer in order to detect an\n// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)\n// needed to complete the UTF-8 character (if applicable) are returned.\nfunction utf8CheckIncomplete(self, buf, i) {\n var j = buf.length - 1;\n if (j < i) return 0;\n var nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 1;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 2;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) {\n if (nb === 2) nb = 0;else self.lastNeed = nb - 3;\n }\n return nb;\n }\n return 0;\n}\n\n// Validates as many continuation bytes for a multi-byte UTF-8 character as\n// needed or are available. If we see a non-continuation byte where we expect\n// one, we \"replace\" the validated continuation bytes we've seen so far with\n// a single UTF-8 replacement character ('\\ufffd'), to match v8's UTF-8 decoding\n// behavior. The continuation byte check is included three times in the case\n// where all of the continuation bytes for a character exist in the same buffer.\n// It is also done this way as a slight performance increase instead of using a\n// loop.\nfunction utf8CheckExtraBytes(self, buf, p) {\n if ((buf[0] & 0xC0) !== 0x80) {\n self.lastNeed = 0;\n return '\\ufffd';\n }\n if (self.lastNeed > 1 && buf.length > 1) {\n if ((buf[1] & 0xC0) !== 0x80) {\n self.lastNeed = 1;\n return '\\ufffd';\n }\n if (self.lastNeed > 2 && buf.length > 2) {\n if ((buf[2] & 0xC0) !== 0x80) {\n self.lastNeed = 2;\n return '\\ufffd';\n }\n }\n }\n}\n\n// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.\nfunction utf8FillLast(buf) {\n var p = this.lastTotal - this.lastNeed;\n var r = utf8CheckExtraBytes(this, buf, p);\n if (r !== undefined) return r;\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, p, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, p, 0, buf.length);\n this.lastNeed -= buf.length;\n}\n\n// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a\n// partial character, the character's bytes are buffered until the required\n// number of bytes are available.\nfunction utf8Text(buf, i) {\n var total = utf8CheckIncomplete(this, buf, i);\n if (!this.lastNeed) return buf.toString('utf8', i);\n this.lastTotal = total;\n var end = buf.length - (total - this.lastNeed);\n buf.copy(this.lastChar, 0, end);\n return buf.toString('utf8', i, end);\n}\n\n// For UTF-8, a replacement character is added when ending on a partial\n// character.\nfunction utf8End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + '\\ufffd';\n return r;\n}\n\n// UTF-16LE typically needs two bytes per character, but even if we have an even\n// number of bytes available, we need to check if we end on a leading/high\n// surrogate. In that case, we need to wait for the next two bytes in order to\n// decode the last character properly.\nfunction utf16Text(buf, i) {\n if ((buf.length - i) % 2 === 0) {\n var r = buf.toString('utf16le', i);\n if (r) {\n var c = r.charCodeAt(r.length - 1);\n if (c >= 0xD800 && c <= 0xDBFF) {\n this.lastNeed = 2;\n this.lastTotal = 4;\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n return r.slice(0, -1);\n }\n }\n return r;\n }\n this.lastNeed = 1;\n this.lastTotal = 2;\n this.lastChar[0] = buf[buf.length - 1];\n return buf.toString('utf16le', i, buf.length - 1);\n}\n\n// For UTF-16LE we do not explicitly append special replacement characters if we\n// end on a partial character, we simply let v8 handle that.\nfunction utf16End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) {\n var end = this.lastTotal - this.lastNeed;\n return r + this.lastChar.toString('utf16le', 0, end);\n }\n return r;\n}\n\nfunction base64Text(buf, i) {\n var n = (buf.length - i) % 3;\n if (n === 0) return buf.toString('base64', i);\n this.lastNeed = 3 - n;\n this.lastTotal = 3;\n if (n === 1) {\n this.lastChar[0] = buf[buf.length - 1];\n } else {\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n }\n return buf.toString('base64', i, buf.length - n);\n}\n\nfunction base64End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);\n return r;\n}\n\n// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)\nfunction simpleWrite(buf) {\n return buf.toString(this.encoding);\n}\n\nfunction simpleEnd(buf) {\n return buf && buf.length ? this.write(buf) : '';\n}","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","module.exports = require(\"core-js-pure/stable/array/is-array\");","module.exports = require(\"core-js-pure/stable/instance/concat\");","module.exports = require(\"core-js-pure/stable/instance/for-each\");","module.exports = require(\"core-js-pure/stable/instance/map\");","module.exports = require(\"core-js-pure/stable/instance/reduce\");","module.exports = require(\"core-js-pure/stable/object/entries\");","module.exports = require(\"core-js-pure/stable/object/keys\");","module.exports = require(\"core-js-pure/stable/promise\");","module.exports = require(\"core-js-pure/stable/set-timeout\");","module.exports = require(\"core-js-pure/stable/symbol\");","module.exports = require(\"core-js-pure/stable/weak-map\");","module.exports = require(\"core-js-pure/stable/weak-set\");","module.exports = require(\"core-js-pure/features/object/define-property\");","module.exports = require(\"core-js-pure/features/symbol\");","module.exports = require(\"core-js-pure/features/symbol/iterator\");","module.exports = require(\"core-js-pure/features/symbol/to-primitive\");","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nmodule.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nmodule.exports = _classCallCheck, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\nmodule.exports = _createClass, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _getPrototypeOf(o);\n}\nmodule.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var setPrototypeOf = require(\"./setPrototypeOf.js\");\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\nmodule.exports = _inherits, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar assertThisInitialized = require(\"./assertThisInitialized.js\");\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return assertThisInitialized(self);\n}\nmodule.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _setPrototypeOf(o, p);\n}\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}\nmodule.exports = _toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}\nmodule.exports = _toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(obj);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import _Symbol from \"@babel/runtime-corejs3/core-js/symbol\";\nimport _Symbol$iterator from \"@babel/runtime-corejs3/core-js/symbol/iterator\";\nexport default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof _Symbol && \"symbol\" == typeof _Symbol$iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof _Symbol && obj.constructor === _Symbol && obj !== _Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","import _Object$defineProperty from \"@babel/runtime-corejs3/core-js/object/define-property\";\nimport toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n _Object$defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import _typeof from \"./typeof.js\";\nimport _Symbol$toPrimitive from \"@babel/runtime-corejs3/core-js/symbol/to-primitive\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[_Symbol$toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","export default function _classExtractFieldDescriptor(receiver, privateMap, action) {\n if (!privateMap.has(receiver)) {\n throw new TypeError(\"attempted to \" + action + \" private field on non-instance\");\n }\n return privateMap.get(receiver);\n}","import classApplyDescriptorSet from \"./classApplyDescriptorSet.js\";\nimport classExtractFieldDescriptor from \"./classExtractFieldDescriptor.js\";\nexport default function _classPrivateFieldSet(receiver, privateMap, value) {\n var descriptor = classExtractFieldDescriptor(receiver, privateMap, \"set\");\n classApplyDescriptorSet(receiver, descriptor, value);\n return value;\n}","export default function _classApplyDescriptorSet(receiver, descriptor, value) {\n if (descriptor.set) {\n descriptor.set.call(receiver, value);\n } else {\n if (!descriptor.writable) {\n throw new TypeError(\"attempted to set read only private field\");\n }\n descriptor.value = value;\n }\n}","import classApplyDescriptorGet from \"./classApplyDescriptorGet.js\";\nimport classExtractFieldDescriptor from \"./classExtractFieldDescriptor.js\";\nexport default function _classPrivateFieldGet(receiver, privateMap) {\n var descriptor = classExtractFieldDescriptor(receiver, privateMap, \"get\");\n return classApplyDescriptorGet(receiver, descriptor);\n}","export default function _classApplyDescriptorGet(receiver, descriptor) {\n if (descriptor.get) {\n return descriptor.get.call(receiver);\n }\n return descriptor.value;\n}","/**\n * vis-network\n * https://visjs.github.io/vis-network/\n *\n * A dynamic, browser-based visualization library.\n *\n * @version 9.1.6\n * @date 2023-03-23T21:31:19.223Z\n *\n * @copyright (c) 2011-2017 Almende B.V, http://almende.com\n * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs\n *\n * @license\n * vis.js is dual licensed under both\n *\n * 1. The Apache 2.0 License\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * and\n *\n * 2. The MIT License\n * http://opensource.org/licenses/MIT\n *\n * vis.js may be distributed under either license.\n */\n\nvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nfunction getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nvar assignExports = {};\nvar assign$5 = {\n get exports(){ return assignExports; },\n set exports(v){ assignExports = v; },\n};\n\nvar check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global$q =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n\nvar fails$z = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n\nvar fails$y = fails$z;\n\nvar functionBindNative = !fails$y(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n\nvar NATIVE_BIND$4 = functionBindNative;\n\nvar FunctionPrototype$3 = Function.prototype;\nvar apply$6 = FunctionPrototype$3.apply;\nvar call$l = FunctionPrototype$3.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nvar functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$4 ? call$l.bind(apply$6) : function () {\n return call$l.apply(apply$6, arguments);\n});\n\nvar NATIVE_BIND$3 = functionBindNative;\n\nvar FunctionPrototype$2 = Function.prototype;\nvar call$k = FunctionPrototype$2.call;\nvar uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$k, call$k);\n\nvar functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {\n return function () {\n return call$k.apply(fn, arguments);\n };\n};\n\nvar uncurryThis$z = functionUncurryThis;\n\nvar toString$d = uncurryThis$z({}.toString);\nvar stringSlice$1 = uncurryThis$z(''.slice);\n\nvar classofRaw$2 = function (it) {\n return stringSlice$1(toString$d(it), 8, -1);\n};\n\nvar classofRaw$1 = classofRaw$2;\nvar uncurryThis$y = functionUncurryThis;\n\nvar functionUncurryThisClause = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw$1(fn) === 'Function') return uncurryThis$y(fn);\n};\n\nvar documentAll$2 = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;\n\nvar documentAll_1 = {\n all: documentAll$2,\n IS_HTMLDDA: IS_HTMLDDA\n};\n\nvar $documentAll$1 = documentAll_1;\n\nvar documentAll$1 = $documentAll$1.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nvar isCallable$m = $documentAll$1.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll$1;\n} : function (argument) {\n return typeof argument == 'function';\n};\n\nvar objectGetOwnPropertyDescriptor = {};\n\nvar fails$x = fails$z;\n\n// Detect IE8's incomplete defineProperty implementation\nvar descriptors = !fails$x(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n\nvar NATIVE_BIND$2 = functionBindNative;\n\nvar call$j = Function.prototype.call;\n\nvar functionCall = NATIVE_BIND$2 ? call$j.bind(call$j) : function () {\n return call$j.apply(call$j, arguments);\n};\n\nvar objectPropertyIsEnumerable = {};\n\nvar $propertyIsEnumerable$2 = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor$b = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor$b && !$propertyIsEnumerable$2.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nobjectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor$b(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable$2;\n\nvar createPropertyDescriptor$7 = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\nvar uncurryThis$x = functionUncurryThis;\nvar fails$w = fails$z;\nvar classof$g = classofRaw$2;\n\nvar $Object$5 = Object;\nvar split = uncurryThis$x(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar indexedObject = fails$w(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object$5('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof$g(it) == 'String' ? split(it, '') : $Object$5(it);\n} : $Object$5;\n\n// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nvar isNullOrUndefined$6 = function (it) {\n return it === null || it === undefined;\n};\n\nvar isNullOrUndefined$5 = isNullOrUndefined$6;\n\nvar $TypeError$h = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nvar requireObjectCoercible$5 = function (it) {\n if (isNullOrUndefined$5(it)) throw $TypeError$h(\"Can't call method on \" + it);\n return it;\n};\n\n// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject$3 = indexedObject;\nvar requireObjectCoercible$4 = requireObjectCoercible$5;\n\nvar toIndexedObject$b = function (it) {\n return IndexedObject$3(requireObjectCoercible$4(it));\n};\n\nvar isCallable$l = isCallable$m;\nvar $documentAll = documentAll_1;\n\nvar documentAll = $documentAll.all;\n\nvar isObject$m = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable$l(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable$l(it);\n};\n\nvar path$z = {};\n\nvar path$y = path$z;\nvar global$p = global$q;\nvar isCallable$k = isCallable$m;\n\nvar aFunction = function (variable) {\n return isCallable$k(variable) ? variable : undefined;\n};\n\nvar getBuiltIn$f = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path$y[namespace]) || aFunction(global$p[namespace])\n : path$y[namespace] && path$y[namespace][method] || global$p[namespace] && global$p[namespace][method];\n};\n\nvar uncurryThis$w = functionUncurryThis;\n\nvar objectIsPrototypeOf = uncurryThis$w({}.isPrototypeOf);\n\nvar engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n\nvar global$o = global$q;\nvar userAgent$5 = engineUserAgent;\n\nvar process$4 = global$o.process;\nvar Deno$1 = global$o.Deno;\nvar versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent$5) {\n match = userAgent$5.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent$5.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nvar engineV8Version = version;\n\n/* eslint-disable es/no-symbol -- required for testing */\n\nvar V8_VERSION$3 = engineV8Version;\nvar fails$v = fails$z;\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nvar symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$v(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION$3 && V8_VERSION$3 < 41;\n});\n\n/* eslint-disable es/no-symbol -- required for testing */\n\nvar NATIVE_SYMBOL$5 = symbolConstructorDetection;\n\nvar useSymbolAsUid = NATIVE_SYMBOL$5\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n\nvar getBuiltIn$e = getBuiltIn$f;\nvar isCallable$j = isCallable$m;\nvar isPrototypeOf$o = objectIsPrototypeOf;\nvar USE_SYMBOL_AS_UID$1 = useSymbolAsUid;\n\nvar $Object$4 = Object;\n\nvar isSymbol$5 = USE_SYMBOL_AS_UID$1 ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn$e('Symbol');\n return isCallable$j($Symbol) && isPrototypeOf$o($Symbol.prototype, $Object$4(it));\n};\n\nvar $String$4 = String;\n\nvar tryToString$6 = function (argument) {\n try {\n return $String$4(argument);\n } catch (error) {\n return 'Object';\n }\n};\n\nvar isCallable$i = isCallable$m;\nvar tryToString$5 = tryToString$6;\n\nvar $TypeError$g = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nvar aCallable$e = function (argument) {\n if (isCallable$i(argument)) return argument;\n throw $TypeError$g(tryToString$5(argument) + ' is not a function');\n};\n\nvar aCallable$d = aCallable$e;\nvar isNullOrUndefined$4 = isNullOrUndefined$6;\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nvar getMethod$3 = function (V, P) {\n var func = V[P];\n return isNullOrUndefined$4(func) ? undefined : aCallable$d(func);\n};\n\nvar call$i = functionCall;\nvar isCallable$h = isCallable$m;\nvar isObject$l = isObject$m;\n\nvar $TypeError$f = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nvar ordinaryToPrimitive$1 = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable$h(fn = input.toString) && !isObject$l(val = call$i(fn, input))) return val;\n if (isCallable$h(fn = input.valueOf) && !isObject$l(val = call$i(fn, input))) return val;\n if (pref !== 'string' && isCallable$h(fn = input.toString) && !isObject$l(val = call$i(fn, input))) return val;\n throw $TypeError$f(\"Can't convert object to primitive value\");\n};\n\nvar sharedExports = {};\nvar shared$7 = {\n get exports(){ return sharedExports; },\n set exports(v){ sharedExports = v; },\n};\n\nvar isPure = true;\n\nvar global$n = global$q;\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty$f = Object.defineProperty;\n\nvar defineGlobalProperty$1 = function (key, value) {\n try {\n defineProperty$f(global$n, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global$n[key] = value;\n } return value;\n};\n\nvar global$m = global$q;\nvar defineGlobalProperty = defineGlobalProperty$1;\n\nvar SHARED = '__core-js_shared__';\nvar store$3 = global$m[SHARED] || defineGlobalProperty(SHARED, {});\n\nvar sharedStore = store$3;\n\nvar store$2 = sharedStore;\n\n(shared$7.exports = function (key, value) {\n return store$2[key] || (store$2[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.29.0',\n mode: 'pure' ,\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n\nvar requireObjectCoercible$3 = requireObjectCoercible$5;\n\nvar $Object$3 = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nvar toObject$e = function (argument) {\n return $Object$3(requireObjectCoercible$3(argument));\n};\n\nvar uncurryThis$v = functionUncurryThis;\nvar toObject$d = toObject$e;\n\nvar hasOwnProperty = uncurryThis$v({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nvar hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject$d(it), key);\n};\n\nvar uncurryThis$u = functionUncurryThis;\n\nvar id$2 = 0;\nvar postfix = Math.random();\nvar toString$c = uncurryThis$u(1.0.toString);\n\nvar uid$4 = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$c(++id$2 + postfix, 36);\n};\n\nvar global$l = global$q;\nvar shared$6 = sharedExports;\nvar hasOwn$l = hasOwnProperty_1;\nvar uid$3 = uid$4;\nvar NATIVE_SYMBOL$4 = symbolConstructorDetection;\nvar USE_SYMBOL_AS_UID = useSymbolAsUid;\n\nvar Symbol$5 = global$l.Symbol;\nvar WellKnownSymbolsStore$2 = shared$6('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$5['for'] || Symbol$5 : Symbol$5 && Symbol$5.withoutSetter || uid$3;\n\nvar wellKnownSymbol$o = function (name) {\n if (!hasOwn$l(WellKnownSymbolsStore$2, name)) {\n WellKnownSymbolsStore$2[name] = NATIVE_SYMBOL$4 && hasOwn$l(Symbol$5, name)\n ? Symbol$5[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore$2[name];\n};\n\nvar call$h = functionCall;\nvar isObject$k = isObject$m;\nvar isSymbol$4 = isSymbol$5;\nvar getMethod$2 = getMethod$3;\nvar ordinaryToPrimitive = ordinaryToPrimitive$1;\nvar wellKnownSymbol$n = wellKnownSymbol$o;\n\nvar $TypeError$e = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol$n('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nvar toPrimitive$7 = function (input, pref) {\n if (!isObject$k(input) || isSymbol$4(input)) return input;\n var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call$h(exoticToPrim, input, pref);\n if (!isObject$k(result) || isSymbol$4(result)) return result;\n throw $TypeError$e(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n\nvar toPrimitive$6 = toPrimitive$7;\nvar isSymbol$3 = isSymbol$5;\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nvar toPropertyKey$4 = function (argument) {\n var key = toPrimitive$6(argument, 'string');\n return isSymbol$3(key) ? key : key + '';\n};\n\nvar global$k = global$q;\nvar isObject$j = isObject$m;\n\nvar document$3 = global$k.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS$1 = isObject$j(document$3) && isObject$j(document$3.createElement);\n\nvar documentCreateElement$1 = function (it) {\n return EXISTS$1 ? document$3.createElement(it) : {};\n};\n\nvar DESCRIPTORS$i = descriptors;\nvar fails$u = fails$z;\nvar createElement$1 = documentCreateElement$1;\n\n// Thanks to IE8 for its funny defineProperty\nvar ie8DomDefine = !DESCRIPTORS$i && !fails$u(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement$1('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n\nvar DESCRIPTORS$h = descriptors;\nvar call$g = functionCall;\nvar propertyIsEnumerableModule$2 = objectPropertyIsEnumerable;\nvar createPropertyDescriptor$6 = createPropertyDescriptor$7;\nvar toIndexedObject$a = toIndexedObject$b;\nvar toPropertyKey$3 = toPropertyKey$4;\nvar hasOwn$k = hasOwnProperty_1;\nvar IE8_DOM_DEFINE$1 = ie8DomDefine;\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nobjectGetOwnPropertyDescriptor.f = DESCRIPTORS$h ? $getOwnPropertyDescriptor$2 : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject$a(O);\n P = toPropertyKey$3(P);\n if (IE8_DOM_DEFINE$1) try {\n return $getOwnPropertyDescriptor$2(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn$k(O, P)) return createPropertyDescriptor$6(!call$g(propertyIsEnumerableModule$2.f, O, P), O[P]);\n};\n\nvar fails$t = fails$z;\nvar isCallable$g = isCallable$m;\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced$2 = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable$g(detection) ? fails$t(detection)\n : !!detection;\n};\n\nvar normalize = isForced$2.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced$2.data = {};\nvar NATIVE = isForced$2.NATIVE = 'N';\nvar POLYFILL = isForced$2.POLYFILL = 'P';\n\nvar isForced_1 = isForced$2;\n\nvar uncurryThis$t = functionUncurryThisClause;\nvar aCallable$c = aCallable$e;\nvar NATIVE_BIND$1 = functionBindNative;\n\nvar bind$j = uncurryThis$t(uncurryThis$t.bind);\n\n// optional / simple context binding\nvar functionBindContext = function (fn, that) {\n aCallable$c(fn);\n return that === undefined ? fn : NATIVE_BIND$1 ? bind$j(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\nvar objectDefineProperty = {};\n\nvar DESCRIPTORS$g = descriptors;\nvar fails$s = fails$z;\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nvar v8PrototypeDefineBug = DESCRIPTORS$g && fails$s(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n\nvar isObject$i = isObject$m;\n\nvar $String$3 = String;\nvar $TypeError$d = TypeError;\n\n// `Assert: Type(argument) is Object`\nvar anObject$f = function (argument) {\n if (isObject$i(argument)) return argument;\n throw $TypeError$d($String$3(argument) + ' is not an object');\n};\n\nvar DESCRIPTORS$f = descriptors;\nvar IE8_DOM_DEFINE = ie8DomDefine;\nvar V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;\nvar anObject$e = anObject$f;\nvar toPropertyKey$2 = toPropertyKey$4;\n\nvar $TypeError$c = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty$1 = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE$1 = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nobjectDefineProperty.f = DESCRIPTORS$f ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {\n anObject$e(O);\n P = toPropertyKey$2(P);\n anObject$e(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor$1(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty$1(O, P, Attributes);\n} : $defineProperty$1 : function defineProperty(O, P, Attributes) {\n anObject$e(O);\n P = toPropertyKey$2(P);\n anObject$e(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty$1(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError$c('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\nvar DESCRIPTORS$e = descriptors;\nvar definePropertyModule$4 = objectDefineProperty;\nvar createPropertyDescriptor$5 = createPropertyDescriptor$7;\n\nvar createNonEnumerableProperty$9 = DESCRIPTORS$e ? function (object, key, value) {\n return definePropertyModule$4.f(object, key, createPropertyDescriptor$5(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\nvar global$j = global$q;\nvar apply$5 = functionApply;\nvar uncurryThis$s = functionUncurryThisClause;\nvar isCallable$f = isCallable$m;\nvar getOwnPropertyDescriptor$a = objectGetOwnPropertyDescriptor.f;\nvar isForced$1 = isForced_1;\nvar path$x = path$z;\nvar bind$i = functionBindContext;\nvar createNonEnumerableProperty$8 = createNonEnumerableProperty$9;\nvar hasOwn$j = hasOwnProperty_1;\n\nvar wrapConstructor = function (NativeConstructor) {\n var Wrapper = function (a, b, c) {\n if (this instanceof Wrapper) {\n switch (arguments.length) {\n case 0: return new NativeConstructor();\n case 1: return new NativeConstructor(a);\n case 2: return new NativeConstructor(a, b);\n } return new NativeConstructor(a, b, c);\n } return apply$5(NativeConstructor, this, arguments);\n };\n Wrapper.prototype = NativeConstructor.prototype;\n return Wrapper;\n};\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nvar _export = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var PROTO = options.proto;\n\n var nativeSource = GLOBAL ? global$j : STATIC ? global$j[TARGET] : (global$j[TARGET] || {}).prototype;\n\n var target = GLOBAL ? path$x : path$x[TARGET] || createNonEnumerableProperty$8(path$x, TARGET, {})[TARGET];\n var targetPrototype = target.prototype;\n\n var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;\n var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;\n\n for (key in source) {\n FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contains in native\n USE_NATIVE = !FORCED && nativeSource && hasOwn$j(nativeSource, key);\n\n targetProperty = target[key];\n\n if (USE_NATIVE) if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor$a(nativeSource, key);\n nativeProperty = descriptor && descriptor.value;\n } else nativeProperty = nativeSource[key];\n\n // export native or implementation\n sourceProperty = (USE_NATIVE && nativeProperty) ? nativeProperty : source[key];\n\n if (USE_NATIVE && typeof targetProperty == typeof sourceProperty) continue;\n\n // bind methods to global for calling from export context\n if (options.bind && USE_NATIVE) resultProperty = bind$i(sourceProperty, global$j);\n // wrap global constructors for prevent changes in this version\n else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);\n // make static versions for prototype methods\n else if (PROTO && isCallable$f(sourceProperty)) resultProperty = uncurryThis$s(sourceProperty);\n // default case\n else resultProperty = sourceProperty;\n\n // add a flag to not completely full polyfills\n if (options.sham || (sourceProperty && sourceProperty.sham) || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty$8(resultProperty, 'sham', true);\n }\n\n createNonEnumerableProperty$8(target, key, resultProperty);\n\n if (PROTO) {\n VIRTUAL_PROTOTYPE = TARGET + 'Prototype';\n if (!hasOwn$j(path$x, VIRTUAL_PROTOTYPE)) {\n createNonEnumerableProperty$8(path$x, VIRTUAL_PROTOTYPE, {});\n }\n // export virtual prototype methods\n createNonEnumerableProperty$8(path$x[VIRTUAL_PROTOTYPE], key, sourceProperty);\n // export real prototype methods\n if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) {\n createNonEnumerableProperty$8(targetPrototype, key, sourceProperty);\n }\n }\n }\n};\n\nvar ceil = Math.ceil;\nvar floor$1 = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nvar mathTrunc = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor$1 : ceil)(n);\n};\n\nvar trunc = mathTrunc;\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nvar toIntegerOrInfinity$4 = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n\nvar toIntegerOrInfinity$3 = toIntegerOrInfinity$4;\n\nvar max$3 = Math.max;\nvar min$2 = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nvar toAbsoluteIndex$5 = function (index, length) {\n var integer = toIntegerOrInfinity$3(index);\n return integer < 0 ? max$3(integer + length, 0) : min$2(integer, length);\n};\n\nvar toIntegerOrInfinity$2 = toIntegerOrInfinity$4;\n\nvar min$1 = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nvar toLength$1 = function (argument) {\n return argument > 0 ? min$1(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n\nvar toLength = toLength$1;\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nvar lengthOfArrayLike$d = function (obj) {\n return toLength(obj.length);\n};\n\nvar toIndexedObject$9 = toIndexedObject$b;\nvar toAbsoluteIndex$4 = toAbsoluteIndex$5;\nvar lengthOfArrayLike$c = lengthOfArrayLike$d;\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod$5 = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject$9($this);\n var length = lengthOfArrayLike$c(O);\n var index = toAbsoluteIndex$4(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nvar arrayIncludes = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod$5(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod$5(false)\n};\n\nvar hiddenKeys$6 = {};\n\nvar uncurryThis$r = functionUncurryThis;\nvar hasOwn$i = hasOwnProperty_1;\nvar toIndexedObject$8 = toIndexedObject$b;\nvar indexOf$4 = arrayIncludes.indexOf;\nvar hiddenKeys$5 = hiddenKeys$6;\n\nvar push$7 = uncurryThis$r([].push);\n\nvar objectKeysInternal = function (object, names) {\n var O = toIndexedObject$8(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn$i(hiddenKeys$5, key) && hasOwn$i(O, key) && push$7(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn$i(O, key = names[i++])) {\n ~indexOf$4(result, key) || push$7(result, key);\n }\n return result;\n};\n\n// IE8- don't enum bug keys\nvar enumBugKeys$3 = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n\nvar internalObjectKeys$1 = objectKeysInternal;\nvar enumBugKeys$2 = enumBugKeys$3;\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nvar objectKeys$4 = Object.keys || function keys(O) {\n return internalObjectKeys$1(O, enumBugKeys$2);\n};\n\nvar objectGetOwnPropertySymbols = {};\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nobjectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;\n\nvar DESCRIPTORS$d = descriptors;\nvar uncurryThis$q = functionUncurryThis;\nvar call$f = functionCall;\nvar fails$r = fails$z;\nvar objectKeys$3 = objectKeys$4;\nvar getOwnPropertySymbolsModule$3 = objectGetOwnPropertySymbols;\nvar propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;\nvar toObject$c = toObject$e;\nvar IndexedObject$2 = indexedObject;\n\n// eslint-disable-next-line es/no-object-assign -- safe\nvar $assign = Object.assign;\n// eslint-disable-next-line es/no-object-defineproperty -- required for testing\nvar defineProperty$e = Object.defineProperty;\nvar concat$6 = uncurryThis$q([].concat);\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\nvar objectAssign = !$assign || fails$r(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS$d && $assign({ b: 1 }, $assign(defineProperty$e({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty$e(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), { b: 2 })).b !== 1) return true;\n // should work with symbols and should have deterministic property order (V8 bug)\n var A = {};\n var B = {};\n // eslint-disable-next-line es/no-symbol -- safe\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) { B[chr] = chr; });\n return $assign({}, A)[symbol] != 7 || objectKeys$3($assign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`\n var T = toObject$c(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule$3.f;\n var propertyIsEnumerable = propertyIsEnumerableModule$1.f;\n while (argumentsLength > index) {\n var S = IndexedObject$2(arguments[index++]);\n var keys = getOwnPropertySymbols ? concat$6(objectKeys$3(S), getOwnPropertySymbols(S)) : objectKeys$3(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS$d || call$f(propertyIsEnumerable, S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n\nvar $$_ = _export;\nvar assign$4 = objectAssign;\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\n// eslint-disable-next-line es/no-object-assign -- required for testing\n$$_({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$4 }, {\n assign: assign$4\n});\n\nvar path$w = path$z;\n\nvar assign$3 = path$w.Object.assign;\n\nvar parent$1o = assign$3;\n\nvar assign$2 = parent$1o;\n\n(function (module) {\n\tmodule.exports = assign$2;\n} (assign$5));\n\nvar _Object$assign = /*@__PURE__*/getDefaultExportFromCjs(assignExports);\n\nvar bindExports$2 = {};\nvar bind$h = {\n get exports(){ return bindExports$2; },\n set exports(v){ bindExports$2 = v; },\n};\n\nvar uncurryThis$p = functionUncurryThis;\n\nvar arraySlice$6 = uncurryThis$p([].slice);\n\nvar uncurryThis$o = functionUncurryThis;\nvar aCallable$b = aCallable$e;\nvar isObject$h = isObject$m;\nvar hasOwn$h = hasOwnProperty_1;\nvar arraySlice$5 = arraySlice$6;\nvar NATIVE_BIND = functionBindNative;\n\nvar $Function = Function;\nvar concat$5 = uncurryThis$o([].concat);\nvar join = uncurryThis$o([].join);\nvar factories = {};\n\nvar construct$4 = function (C, argsLength, args) {\n if (!hasOwn$h(factories, argsLength)) {\n for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';\n factories[argsLength] = $Function('C,a', 'return new C(' + join(list, ',') + ')');\n } return factories[argsLength](C, args);\n};\n\n// `Function.prototype.bind` method implementation\n// https://tc39.es/ecma262/#sec-function.prototype.bind\n// eslint-disable-next-line es/no-function-prototype-bind -- detection\nvar functionBind = NATIVE_BIND ? $Function.bind : function bind(that /* , ...args */) {\n var F = aCallable$b(this);\n var Prototype = F.prototype;\n var partArgs = arraySlice$5(arguments, 1);\n var boundFunction = function bound(/* args... */) {\n var args = concat$5(partArgs, arraySlice$5(arguments));\n return this instanceof boundFunction ? construct$4(F, args.length, args) : F.apply(that, args);\n };\n if (isObject$h(Prototype)) boundFunction.prototype = Prototype;\n return boundFunction;\n};\n\n// TODO: Remove from `core-js@4`\nvar $$Z = _export;\nvar bind$g = functionBind;\n\n// `Function.prototype.bind` method\n// https://tc39.es/ecma262/#sec-function.prototype.bind\n// eslint-disable-next-line es/no-function-prototype-bind -- detection\n$$Z({ target: 'Function', proto: true, forced: Function.bind !== bind$g }, {\n bind: bind$g\n});\n\nvar path$v = path$z;\n\nvar entryVirtual$l = function (CONSTRUCTOR) {\n return path$v[CONSTRUCTOR + 'Prototype'];\n};\n\nvar entryVirtual$k = entryVirtual$l;\n\nvar bind$f = entryVirtual$k('Function').bind;\n\nvar isPrototypeOf$n = objectIsPrototypeOf;\nvar method$i = bind$f;\n\nvar FunctionPrototype$1 = Function.prototype;\n\nvar bind$e = function (it) {\n var own = it.bind;\n return it === FunctionPrototype$1 || (isPrototypeOf$n(FunctionPrototype$1, it) && own === FunctionPrototype$1.bind) ? method$i : own;\n};\n\nvar parent$1n = bind$e;\n\nvar bind$d = parent$1n;\n\n(function (module) {\n\tmodule.exports = bind$d;\n} (bind$h));\n\nvar _bindInstanceProperty$1 = /*@__PURE__*/getDefaultExportFromCjs(bindExports$2);\n\n/**\r\n * Draw a circle.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param r - The radius of the circle.\r\n */\nfunction drawCircle(ctx, x, y, r) {\n ctx.beginPath();\n ctx.arc(x, y, r, 0, 2 * Math.PI, false);\n ctx.closePath();\n}\n/**\r\n * Draw a square.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param r - Half of the width and height of the square.\r\n */\nfunction drawSquare(ctx, x, y, r) {\n ctx.beginPath();\n ctx.rect(x - r, y - r, r * 2, r * 2);\n ctx.closePath();\n}\n/**\r\n * Draw an equilateral triangle standing on a side.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param r - Half of the length of the sides.\r\n * @remarks\r\n * http://en.wikipedia.org/wiki/Equilateral_triangle\r\n */\nfunction drawTriangle(ctx, x, y, r) {\n ctx.beginPath();\n // the change in radius and the offset is here to center the shape\n r *= 1.15;\n y += 0.275 * r;\n var s = r * 2;\n var s2 = s / 2;\n var ir = Math.sqrt(3) / 6 * s; // radius of inner circle\n var h = Math.sqrt(s * s - s2 * s2); // height\n ctx.moveTo(x, y - (h - ir));\n ctx.lineTo(x + s2, y + ir);\n ctx.lineTo(x - s2, y + ir);\n ctx.lineTo(x, y - (h - ir));\n ctx.closePath();\n}\n/**\r\n * Draw an equilateral triangle standing on a vertex.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param r - Half of the length of the sides.\r\n * @remarks\r\n * http://en.wikipedia.org/wiki/Equilateral_triangle\r\n */\nfunction drawTriangleDown(ctx, x, y, r) {\n ctx.beginPath();\n // the change in radius and the offset is here to center the shape\n r *= 1.15;\n y -= 0.275 * r;\n var s = r * 2;\n var s2 = s / 2;\n var ir = Math.sqrt(3) / 6 * s; // radius of inner circle\n var h = Math.sqrt(s * s - s2 * s2); // height\n ctx.moveTo(x, y + (h - ir));\n ctx.lineTo(x + s2, y - ir);\n ctx.lineTo(x - s2, y - ir);\n ctx.lineTo(x, y + (h - ir));\n ctx.closePath();\n}\n/**\r\n * Draw a star.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param r - The outer radius of the star.\r\n */\nfunction drawStar(ctx, x, y, r) {\n // http://www.html5canvastutorials.com/labs/html5-canvas-star-spinner/\n ctx.beginPath();\n // the change in radius and the offset is here to center the shape\n r *= 0.82;\n y += 0.1 * r;\n for (var n = 0; n < 10; n++) {\n var radius = n % 2 === 0 ? r * 1.3 : r * 0.5;\n ctx.lineTo(x + radius * Math.sin(n * 2 * Math.PI / 10), y - radius * Math.cos(n * 2 * Math.PI / 10));\n }\n ctx.closePath();\n}\n/**\r\n * Draw a diamond.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param r - Half of the width and height of the diamond.\r\n * @remarks\r\n * http://www.html5canvastutorials.com/labs/html5-canvas-star-spinner/\r\n */\nfunction drawDiamond(ctx, x, y, r) {\n ctx.beginPath();\n ctx.lineTo(x, y + r);\n ctx.lineTo(x + r, y);\n ctx.lineTo(x, y - r);\n ctx.lineTo(x - r, y);\n ctx.closePath();\n}\n/**\r\n * Draw a rectangle with rounded corners.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param w - The width of the rectangle.\r\n * @param h - The height of the rectangle.\r\n * @param r - The radius of the corners.\r\n * @remarks\r\n * http://stackoverflow.com/questions/1255512/how-to-draw-a-rounded-rectangle-on-html-canvas\r\n */\nfunction drawRoundRect(ctx, x, y, w, h, r) {\n var r2d = Math.PI / 180;\n if (w - 2 * r < 0) {\n r = w / 2;\n } //ensure that the radius isn't too large for x\n if (h - 2 * r < 0) {\n r = h / 2;\n } //ensure that the radius isn't too large for y\n ctx.beginPath();\n ctx.moveTo(x + r, y);\n ctx.lineTo(x + w - r, y);\n ctx.arc(x + w - r, y + r, r, r2d * 270, r2d * 360, false);\n ctx.lineTo(x + w, y + h - r);\n ctx.arc(x + w - r, y + h - r, r, 0, r2d * 90, false);\n ctx.lineTo(x + r, y + h);\n ctx.arc(x + r, y + h - r, r, r2d * 90, r2d * 180, false);\n ctx.lineTo(x, y + r);\n ctx.arc(x + r, y + r, r, r2d * 180, r2d * 270, false);\n ctx.closePath();\n}\n/**\r\n * Draw an ellipse.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param w - The width of the ellipse.\r\n * @param h - The height of the ellipse.\r\n * @remarks\r\n * http://stackoverflow.com/questions/2172798/how-to-draw-an-oval-in-html5-canvas\r\n *\r\n * Postfix '_vis' added to discern it from standard method ellipse().\r\n */\nfunction drawEllipse(ctx, x, y, w, h) {\n var kappa = 0.5522848,\n ox = w / 2 * kappa,\n // control point offset horizontal\n oy = h / 2 * kappa,\n // control point offset vertical\n xe = x + w,\n // x-end\n ye = y + h,\n // y-end\n xm = x + w / 2,\n // x-middle\n ym = y + h / 2; // y-middle\n ctx.beginPath();\n ctx.moveTo(x, ym);\n ctx.bezierCurveTo(x, ym - oy, xm - ox, y, xm, y);\n ctx.bezierCurveTo(xm + ox, y, xe, ym - oy, xe, ym);\n ctx.bezierCurveTo(xe, ym + oy, xm + ox, ye, xm, ye);\n ctx.bezierCurveTo(xm - ox, ye, x, ym + oy, x, ym);\n ctx.closePath();\n}\n/**\r\n * Draw an isometric cylinder.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param w - The width of the database.\r\n * @param h - The height of the database.\r\n * @remarks\r\n * http://stackoverflow.com/questions/2172798/how-to-draw-an-oval-in-html5-canvas\r\n */\nfunction drawDatabase(ctx, x, y, w, h) {\n var f = 1 / 3;\n var wEllipse = w;\n var hEllipse = h * f;\n var kappa = 0.5522848,\n ox = wEllipse / 2 * kappa,\n // control point offset horizontal\n oy = hEllipse / 2 * kappa,\n // control point offset vertical\n xe = x + wEllipse,\n // x-end\n ye = y + hEllipse,\n // y-end\n xm = x + wEllipse / 2,\n // x-middle\n ym = y + hEllipse / 2,\n // y-middle\n ymb = y + (h - hEllipse / 2),\n // y-midlle, bottom ellipse\n yeb = y + h; // y-end, bottom ellipse\n ctx.beginPath();\n ctx.moveTo(xe, ym);\n ctx.bezierCurveTo(xe, ym + oy, xm + ox, ye, xm, ye);\n ctx.bezierCurveTo(xm - ox, ye, x, ym + oy, x, ym);\n ctx.bezierCurveTo(x, ym - oy, xm - ox, y, xm, y);\n ctx.bezierCurveTo(xm + ox, y, xe, ym - oy, xe, ym);\n ctx.lineTo(xe, ymb);\n ctx.bezierCurveTo(xe, ymb + oy, xm + ox, yeb, xm, yeb);\n ctx.bezierCurveTo(xm - ox, yeb, x, ymb + oy, x, ymb);\n ctx.lineTo(x, ym);\n}\n/**\r\n * Draw a dashed line.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The start position on the x axis.\r\n * @param y - The start position on the y axis.\r\n * @param x2 - The end position on the x axis.\r\n * @param y2 - The end position on the y axis.\r\n * @param pattern - List of lengths starting with line and then alternating between space and line.\r\n * @author David Jordan\r\n * @remarks\r\n * date 2012-08-08\r\n * http://stackoverflow.com/questions/4576724/dotted-stroke-in-canvas\r\n */\nfunction drawDashedLine(ctx, x, y, x2, y2, pattern) {\n ctx.beginPath();\n ctx.moveTo(x, y);\n var patternLength = pattern.length;\n var dx = x2 - x;\n var dy = y2 - y;\n var slope = dy / dx;\n var distRemaining = Math.sqrt(dx * dx + dy * dy);\n var patternIndex = 0;\n var draw = true;\n var xStep = 0;\n var dashLength = +pattern[0];\n while (distRemaining >= 0.1) {\n dashLength = +pattern[patternIndex++ % patternLength];\n if (dashLength > distRemaining) {\n dashLength = distRemaining;\n }\n xStep = Math.sqrt(dashLength * dashLength / (1 + slope * slope));\n xStep = dx < 0 ? -xStep : xStep;\n x += xStep;\n y += slope * xStep;\n if (draw === true) {\n ctx.lineTo(x, y);\n } else {\n ctx.moveTo(x, y);\n }\n distRemaining -= dashLength;\n draw = !draw;\n }\n}\n/**\r\n * Draw a hexagon.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param r - The radius of the hexagon.\r\n */\nfunction drawHexagon(ctx, x, y, r) {\n ctx.beginPath();\n var sides = 6;\n var a = Math.PI * 2 / sides;\n ctx.moveTo(x + r, y);\n for (var i = 1; i < sides; i++) {\n ctx.lineTo(x + r * Math.cos(a * i), y + r * Math.sin(a * i));\n }\n ctx.closePath();\n}\nvar shapeMap = {\n circle: drawCircle,\n dashedLine: drawDashedLine,\n database: drawDatabase,\n diamond: drawDiamond,\n ellipse: drawEllipse,\n ellipse_vis: drawEllipse,\n hexagon: drawHexagon,\n roundRect: drawRoundRect,\n square: drawSquare,\n star: drawStar,\n triangle: drawTriangle,\n triangleDown: drawTriangleDown\n};\n/**\r\n * Returns either custom or native drawing function base on supplied name.\r\n *\r\n * @param name - The name of the function. Either the name of a\r\n * CanvasRenderingContext2D property or an export from shapes.ts without the\r\n * draw prefix.\r\n * @returns The function that can be used for rendering. In case of native\r\n * CanvasRenderingContext2D function the API is normalized to\r\n * `(ctx: CanvasRenderingContext2D, ...originalArgs) => void`.\r\n */\nfunction getShape(name) {\n if (Object.prototype.hasOwnProperty.call(shapeMap, name)) {\n return shapeMap[name];\n } else {\n return function (ctx) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n CanvasRenderingContext2D.prototype[name].call(ctx, args);\n };\n }\n}\n\nfunction styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nvar css_248z$6 = \".vis-overlay {\\n position: absolute;\\n top: 0px;\\n right: 0px;\\n bottom: 0px;\\n left: 0px;\\n\\n /* Must be displayed above for example selected Timeline items */\\n z-index: 10;\\n}\\n\\n.vis-active {\\n box-shadow: 0 0 10px #86d5f8;\\n}\\n\";\nstyleInject(css_248z$6);\n\nvar css_248z$5 = \"/* override some bootstrap styles screwing up the timelines css */\\n\\n.vis [class*=\\\"span\\\"] {\\n min-height: 0;\\n width: auto;\\n}\\n\";\nstyleInject(css_248z$5);\n\nvar css_248z$4 = \"div.vis-color-picker {\\n position: absolute;\\n top: 0px;\\n left: 30px;\\n margin-top: -140px;\\n margin-left: 30px;\\n width: 310px;\\n height: 444px;\\n z-index: 1;\\n padding: 10px;\\n border-radius: 15px;\\n background-color: #ffffff;\\n display: none;\\n box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 10px 0px;\\n}\\n\\ndiv.vis-color-picker div.vis-arrow {\\n position: absolute;\\n top: 147px;\\n left: 5px;\\n}\\n\\ndiv.vis-color-picker div.vis-arrow::after,\\ndiv.vis-color-picker div.vis-arrow::before {\\n right: 100%;\\n top: 50%;\\n border: solid transparent;\\n content: \\\" \\\";\\n height: 0;\\n width: 0;\\n position: absolute;\\n pointer-events: none;\\n}\\n\\ndiv.vis-color-picker div.vis-arrow:after {\\n border-color: rgba(255, 255, 255, 0);\\n border-right-color: #ffffff;\\n border-width: 30px;\\n margin-top: -30px;\\n}\\n\\ndiv.vis-color-picker div.vis-color {\\n position: absolute;\\n width: 289px;\\n height: 289px;\\n cursor: pointer;\\n}\\n\\ndiv.vis-color-picker div.vis-brightness {\\n position: absolute;\\n top: 313px;\\n}\\n\\ndiv.vis-color-picker div.vis-opacity {\\n position: absolute;\\n top: 350px;\\n}\\n\\ndiv.vis-color-picker div.vis-selector {\\n position: absolute;\\n top: 137px;\\n left: 137px;\\n width: 15px;\\n height: 15px;\\n border-radius: 15px;\\n border: 1px solid #ffffff;\\n background: #4c4c4c; /* Old browsers */\\n background: -moz-linear-gradient(\\n top,\\n #4c4c4c 0%,\\n #595959 12%,\\n #666666 25%,\\n #474747 39%,\\n #2c2c2c 50%,\\n #000000 51%,\\n #111111 60%,\\n #2b2b2b 76%,\\n #1c1c1c 91%,\\n #131313 100%\\n ); /* FF3.6+ */\\n background: -webkit-gradient(\\n linear,\\n left top,\\n left bottom,\\n color-stop(0%, #4c4c4c),\\n color-stop(12%, #595959),\\n color-stop(25%, #666666),\\n color-stop(39%, #474747),\\n color-stop(50%, #2c2c2c),\\n color-stop(51%, #000000),\\n color-stop(60%, #111111),\\n color-stop(76%, #2b2b2b),\\n color-stop(91%, #1c1c1c),\\n color-stop(100%, #131313)\\n ); /* Chrome,Safari4+ */\\n background: -webkit-linear-gradient(\\n top,\\n #4c4c4c 0%,\\n #595959 12%,\\n #666666 25%,\\n #474747 39%,\\n #2c2c2c 50%,\\n #000000 51%,\\n #111111 60%,\\n #2b2b2b 76%,\\n #1c1c1c 91%,\\n #131313 100%\\n ); /* Chrome10+,Safari5.1+ */\\n background: -o-linear-gradient(\\n top,\\n #4c4c4c 0%,\\n #595959 12%,\\n #666666 25%,\\n #474747 39%,\\n #2c2c2c 50%,\\n #000000 51%,\\n #111111 60%,\\n #2b2b2b 76%,\\n #1c1c1c 91%,\\n #131313 100%\\n ); /* Opera 11.10+ */\\n background: -ms-linear-gradient(\\n top,\\n #4c4c4c 0%,\\n #595959 12%,\\n #666666 25%,\\n #474747 39%,\\n #2c2c2c 50%,\\n #000000 51%,\\n #111111 60%,\\n #2b2b2b 76%,\\n #1c1c1c 91%,\\n #131313 100%\\n ); /* IE10+ */\\n background: linear-gradient(\\n to bottom,\\n #4c4c4c 0%,\\n #595959 12%,\\n #666666 25%,\\n #474747 39%,\\n #2c2c2c 50%,\\n #000000 51%,\\n #111111 60%,\\n #2b2b2b 76%,\\n #1c1c1c 91%,\\n #131313 100%\\n ); /* W3C */\\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#131313',GradientType=0 ); /* IE6-9 */\\n}\\n\\ndiv.vis-color-picker div.vis-new-color {\\n position: absolute;\\n width: 140px;\\n height: 20px;\\n border: 1px solid rgba(0, 0, 0, 0.1);\\n border-radius: 5px;\\n top: 380px;\\n left: 159px;\\n text-align: right;\\n padding-right: 2px;\\n font-size: 10px;\\n color: rgba(0, 0, 0, 0.4);\\n vertical-align: middle;\\n line-height: 20px;\\n}\\n\\ndiv.vis-color-picker div.vis-initial-color {\\n position: absolute;\\n width: 140px;\\n height: 20px;\\n border: 1px solid rgba(0, 0, 0, 0.1);\\n border-radius: 5px;\\n top: 380px;\\n left: 10px;\\n text-align: left;\\n padding-left: 2px;\\n font-size: 10px;\\n color: rgba(0, 0, 0, 0.4);\\n vertical-align: middle;\\n line-height: 20px;\\n}\\n\\ndiv.vis-color-picker div.vis-label {\\n position: absolute;\\n width: 300px;\\n left: 10px;\\n}\\n\\ndiv.vis-color-picker div.vis-label.vis-brightness {\\n top: 300px;\\n}\\n\\ndiv.vis-color-picker div.vis-label.vis-opacity {\\n top: 338px;\\n}\\n\\ndiv.vis-color-picker div.vis-button {\\n position: absolute;\\n width: 68px;\\n height: 25px;\\n border-radius: 10px;\\n vertical-align: middle;\\n text-align: center;\\n line-height: 25px;\\n top: 410px;\\n border: 2px solid #d9d9d9;\\n background-color: #f7f7f7;\\n cursor: pointer;\\n}\\n\\ndiv.vis-color-picker div.vis-button.vis-cancel {\\n /*border:2px solid #ff4e33;*/\\n /*background-color: #ff7761;*/\\n left: 5px;\\n}\\ndiv.vis-color-picker div.vis-button.vis-load {\\n /*border:2px solid #a153e6;*/\\n /*background-color: #cb8dff;*/\\n left: 82px;\\n}\\ndiv.vis-color-picker div.vis-button.vis-apply {\\n /*border:2px solid #4588e6;*/\\n /*background-color: #82b6ff;*/\\n left: 159px;\\n}\\ndiv.vis-color-picker div.vis-button.vis-save {\\n /*border:2px solid #45e655;*/\\n /*background-color: #6dff7c;*/\\n left: 236px;\\n}\\n\\ndiv.vis-color-picker input.vis-range {\\n width: 290px;\\n height: 20px;\\n}\\n\\n/* TODO: is this redundant?\\ndiv.vis-color-picker input.vis-range-brightness {\\n width: 289px !important;\\n}\\n\\n\\ndiv.vis-color-picker input.vis-saturation-range {\\n width: 289px !important;\\n}*/\\n\";\nstyleInject(css_248z$4);\n\nvar css_248z$3 = \"div.vis-configuration {\\n position: relative;\\n display: block;\\n float: left;\\n font-size: 12px;\\n}\\n\\ndiv.vis-configuration-wrapper {\\n display: block;\\n width: 700px;\\n}\\n\\ndiv.vis-configuration-wrapper::after {\\n clear: both;\\n content: \\\"\\\";\\n display: block;\\n}\\n\\ndiv.vis-configuration.vis-config-option-container {\\n display: block;\\n width: 495px;\\n background-color: #ffffff;\\n border: 2px solid #f7f8fa;\\n border-radius: 4px;\\n margin-top: 20px;\\n left: 10px;\\n padding-left: 5px;\\n}\\n\\ndiv.vis-configuration.vis-config-button {\\n display: block;\\n width: 495px;\\n height: 25px;\\n vertical-align: middle;\\n line-height: 25px;\\n background-color: #f7f8fa;\\n border: 2px solid #ceced0;\\n border-radius: 4px;\\n margin-top: 20px;\\n left: 10px;\\n padding-left: 5px;\\n cursor: pointer;\\n margin-bottom: 30px;\\n}\\n\\ndiv.vis-configuration.vis-config-button.hover {\\n background-color: #4588e6;\\n border: 2px solid #214373;\\n color: #ffffff;\\n}\\n\\ndiv.vis-configuration.vis-config-item {\\n display: block;\\n float: left;\\n width: 495px;\\n height: 25px;\\n vertical-align: middle;\\n line-height: 25px;\\n}\\n\\ndiv.vis-configuration.vis-config-item.vis-config-s2 {\\n left: 10px;\\n background-color: #f7f8fa;\\n padding-left: 5px;\\n border-radius: 3px;\\n}\\ndiv.vis-configuration.vis-config-item.vis-config-s3 {\\n left: 20px;\\n background-color: #e4e9f0;\\n padding-left: 5px;\\n border-radius: 3px;\\n}\\ndiv.vis-configuration.vis-config-item.vis-config-s4 {\\n left: 30px;\\n background-color: #cfd8e6;\\n padding-left: 5px;\\n border-radius: 3px;\\n}\\n\\ndiv.vis-configuration.vis-config-header {\\n font-size: 18px;\\n font-weight: bold;\\n}\\n\\ndiv.vis-configuration.vis-config-label {\\n width: 120px;\\n height: 25px;\\n line-height: 25px;\\n}\\n\\ndiv.vis-configuration.vis-config-label.vis-config-s3 {\\n width: 110px;\\n}\\ndiv.vis-configuration.vis-config-label.vis-config-s4 {\\n width: 100px;\\n}\\n\\ndiv.vis-configuration.vis-config-colorBlock {\\n top: 1px;\\n width: 30px;\\n height: 19px;\\n border: 1px solid #444444;\\n border-radius: 2px;\\n padding: 0px;\\n margin: 0px;\\n cursor: pointer;\\n}\\n\\ninput.vis-configuration.vis-config-checkbox {\\n left: -5px;\\n}\\n\\ninput.vis-configuration.vis-config-rangeinput {\\n position: relative;\\n top: -5px;\\n width: 60px;\\n /*height:13px;*/\\n padding: 1px;\\n margin: 0;\\n pointer-events: none;\\n}\\n\\ninput.vis-configuration.vis-config-range {\\n /*removes default webkit styles*/\\n -webkit-appearance: none;\\n\\n /*fix for FF unable to apply focus style bug */\\n border: 0px solid white;\\n background-color: rgba(0, 0, 0, 0);\\n\\n /*required for proper track sizing in FF*/\\n width: 300px;\\n height: 20px;\\n}\\ninput.vis-configuration.vis-config-range::-webkit-slider-runnable-track {\\n width: 300px;\\n height: 5px;\\n background: #dedede; /* Old browsers */\\n background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\\n background: -webkit-gradient(\\n linear,\\n left top,\\n left bottom,\\n color-stop(0%, #dedede),\\n color-stop(99%, #c8c8c8)\\n ); /* Chrome,Safari4+ */\\n background: -webkit-linear-gradient(\\n top,\\n #dedede 0%,\\n #c8c8c8 99%\\n ); /* Chrome10+,Safari5.1+ */\\n background: -o-linear-gradient(\\n top,\\n #dedede 0%,\\n #c8c8c8 99%\\n ); /* Opera 11.10+ */\\n background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */\\n background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */\\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\\n\\n border: 1px solid #999999;\\n box-shadow: #aaaaaa 0px 0px 3px 0px;\\n border-radius: 3px;\\n}\\ninput.vis-configuration.vis-config-range::-webkit-slider-thumb {\\n -webkit-appearance: none;\\n border: 1px solid #14334b;\\n height: 17px;\\n width: 17px;\\n border-radius: 50%;\\n background: #3876c2; /* Old browsers */\\n background: -moz-linear-gradient(top, #3876c2 0%, #385380 100%); /* FF3.6+ */\\n background: -webkit-gradient(\\n linear,\\n left top,\\n left bottom,\\n color-stop(0%, #3876c2),\\n color-stop(100%, #385380)\\n ); /* Chrome,Safari4+ */\\n background: -webkit-linear-gradient(\\n top,\\n #3876c2 0%,\\n #385380 100%\\n ); /* Chrome10+,Safari5.1+ */\\n background: -o-linear-gradient(\\n top,\\n #3876c2 0%,\\n #385380 100%\\n ); /* Opera 11.10+ */\\n background: -ms-linear-gradient(top, #3876c2 0%, #385380 100%); /* IE10+ */\\n background: linear-gradient(to bottom, #3876c2 0%, #385380 100%); /* W3C */\\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3876c2', endColorstr='#385380',GradientType=0 ); /* IE6-9 */\\n box-shadow: #111927 0px 0px 1px 0px;\\n margin-top: -7px;\\n}\\ninput.vis-configuration.vis-config-range:focus {\\n outline: none;\\n}\\ninput.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track {\\n background: #9d9d9d; /* Old browsers */\\n background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */\\n background: -webkit-gradient(\\n linear,\\n left top,\\n left bottom,\\n color-stop(0%, #9d9d9d),\\n color-stop(99%, #c8c8c8)\\n ); /* Chrome,Safari4+ */\\n background: -webkit-linear-gradient(\\n top,\\n #9d9d9d 0%,\\n #c8c8c8 99%\\n ); /* Chrome10+,Safari5.1+ */\\n background: -o-linear-gradient(\\n top,\\n #9d9d9d 0%,\\n #c8c8c8 99%\\n ); /* Opera 11.10+ */\\n background: -ms-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* IE10+ */\\n background: linear-gradient(to bottom, #9d9d9d 0%, #c8c8c8 99%); /* W3C */\\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9d9d9d', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\\n}\\n\\ninput.vis-configuration.vis-config-range::-moz-range-track {\\n width: 300px;\\n height: 10px;\\n background: #dedede; /* Old browsers */\\n background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\\n background: -webkit-gradient(\\n linear,\\n left top,\\n left bottom,\\n color-stop(0%, #dedede),\\n color-stop(99%, #c8c8c8)\\n ); /* Chrome,Safari4+ */\\n background: -webkit-linear-gradient(\\n top,\\n #dedede 0%,\\n #c8c8c8 99%\\n ); /* Chrome10+,Safari5.1+ */\\n background: -o-linear-gradient(\\n top,\\n #dedede 0%,\\n #c8c8c8 99%\\n ); /* Opera 11.10+ */\\n background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */\\n background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */\\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\\n\\n border: 1px solid #999999;\\n box-shadow: #aaaaaa 0px 0px 3px 0px;\\n border-radius: 3px;\\n}\\ninput.vis-configuration.vis-config-range::-moz-range-thumb {\\n border: none;\\n height: 16px;\\n width: 16px;\\n\\n border-radius: 50%;\\n background: #385380;\\n}\\n\\n/*hide the outline behind the border*/\\ninput.vis-configuration.vis-config-range:-moz-focusring {\\n outline: 1px solid white;\\n outline-offset: -1px;\\n}\\n\\ninput.vis-configuration.vis-config-range::-ms-track {\\n width: 300px;\\n height: 5px;\\n\\n /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */\\n background: transparent;\\n\\n /*leave room for the larger thumb to overflow with a transparent border */\\n border-color: transparent;\\n border-width: 6px 0;\\n\\n /*remove default tick marks*/\\n color: transparent;\\n}\\ninput.vis-configuration.vis-config-range::-ms-fill-lower {\\n background: #777;\\n border-radius: 10px;\\n}\\ninput.vis-configuration.vis-config-range::-ms-fill-upper {\\n background: #ddd;\\n border-radius: 10px;\\n}\\ninput.vis-configuration.vis-config-range::-ms-thumb {\\n border: none;\\n height: 16px;\\n width: 16px;\\n border-radius: 50%;\\n background: #385380;\\n}\\ninput.vis-configuration.vis-config-range:focus::-ms-fill-lower {\\n background: #888;\\n}\\ninput.vis-configuration.vis-config-range:focus::-ms-fill-upper {\\n background: #ccc;\\n}\\n\\n.vis-configuration-popup {\\n position: absolute;\\n background: rgba(57, 76, 89, 0.85);\\n border: 2px solid #f2faff;\\n line-height: 30px;\\n height: 30px;\\n width: 150px;\\n text-align: center;\\n color: #ffffff;\\n font-size: 14px;\\n border-radius: 4px;\\n -webkit-transition: opacity 0.3s ease-in-out;\\n -moz-transition: opacity 0.3s ease-in-out;\\n transition: opacity 0.3s ease-in-out;\\n}\\n.vis-configuration-popup:after,\\n.vis-configuration-popup:before {\\n left: 100%;\\n top: 50%;\\n border: solid transparent;\\n content: \\\" \\\";\\n height: 0;\\n width: 0;\\n position: absolute;\\n pointer-events: none;\\n}\\n\\n.vis-configuration-popup:after {\\n border-color: rgba(136, 183, 213, 0);\\n border-left-color: rgba(57, 76, 89, 0.85);\\n border-width: 8px;\\n margin-top: -8px;\\n}\\n.vis-configuration-popup:before {\\n border-color: rgba(194, 225, 245, 0);\\n border-left-color: #f2faff;\\n border-width: 12px;\\n margin-top: -12px;\\n}\\n\";\nstyleInject(css_248z$3);\n\nvar css_248z$2 = \"div.vis-tooltip {\\n position: absolute;\\n visibility: hidden;\\n padding: 5px;\\n white-space: nowrap;\\n\\n font-family: verdana;\\n font-size: 14px;\\n color: #000000;\\n background-color: #f5f4ed;\\n\\n -moz-border-radius: 3px;\\n -webkit-border-radius: 3px;\\n border-radius: 3px;\\n border: 1px solid #808074;\\n\\n box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);\\n pointer-events: none;\\n\\n z-index: 5;\\n}\\n\";\nstyleInject(css_248z$2);\n\nvar componentEmitterExports = {};\nvar componentEmitter = {\n get exports(){ return componentEmitterExports; },\n set exports(v){ componentEmitterExports = v; },\n};\n\n(function (module) {\n\t/**\r\n\t * Expose `Emitter`.\r\n\t */\r\n\r\n\t{\r\n\t module.exports = Emitter;\r\n\t}\r\n\r\n\t/**\r\n\t * Initialize a new `Emitter`.\r\n\t *\r\n\t * @api public\r\n\t */\r\n\r\n\tfunction Emitter(obj) {\r\n\t if (obj) return mixin(obj);\r\n\t}\r\n\t/**\r\n\t * Mixin the emitter properties.\r\n\t *\r\n\t * @param {Object} obj\r\n\t * @return {Object}\r\n\t * @api private\r\n\t */\r\n\r\n\tfunction mixin(obj) {\r\n\t for (var key in Emitter.prototype) {\r\n\t obj[key] = Emitter.prototype[key];\r\n\t }\r\n\t return obj;\r\n\t}\r\n\r\n\t/**\r\n\t * Listen on the given `event` with `fn`.\r\n\t *\r\n\t * @param {String} event\r\n\t * @param {Function} fn\r\n\t * @return {Emitter}\r\n\t * @api public\r\n\t */\r\n\r\n\tEmitter.prototype.on =\r\n\tEmitter.prototype.addEventListener = function(event, fn){\r\n\t this._callbacks = this._callbacks || {};\r\n\t (this._callbacks['$' + event] = this._callbacks['$' + event] || [])\r\n\t .push(fn);\r\n\t return this;\r\n\t};\r\n\r\n\t/**\r\n\t * Adds an `event` listener that will be invoked a single\r\n\t * time then automatically removed.\r\n\t *\r\n\t * @param {String} event\r\n\t * @param {Function} fn\r\n\t * @return {Emitter}\r\n\t * @api public\r\n\t */\r\n\r\n\tEmitter.prototype.once = function(event, fn){\r\n\t function on() {\r\n\t this.off(event, on);\r\n\t fn.apply(this, arguments);\r\n\t }\r\n\r\n\t on.fn = fn;\r\n\t this.on(event, on);\r\n\t return this;\r\n\t};\r\n\r\n\t/**\r\n\t * Remove the given callback for `event` or all\r\n\t * registered callbacks.\r\n\t *\r\n\t * @param {String} event\r\n\t * @param {Function} fn\r\n\t * @return {Emitter}\r\n\t * @api public\r\n\t */\r\n\r\n\tEmitter.prototype.off =\r\n\tEmitter.prototype.removeListener =\r\n\tEmitter.prototype.removeAllListeners =\r\n\tEmitter.prototype.removeEventListener = function(event, fn){\r\n\t this._callbacks = this._callbacks || {};\r\n\r\n\t // all\r\n\t if (0 == arguments.length) {\r\n\t this._callbacks = {};\r\n\t return this;\r\n\t }\r\n\r\n\t // specific event\r\n\t var callbacks = this._callbacks['$' + event];\r\n\t if (!callbacks) return this;\r\n\r\n\t // remove all handlers\r\n\t if (1 == arguments.length) {\r\n\t delete this._callbacks['$' + event];\r\n\t return this;\r\n\t }\r\n\r\n\t // remove specific handler\r\n\t var cb;\r\n\t for (var i = 0; i < callbacks.length; i++) {\r\n\t cb = callbacks[i];\r\n\t if (cb === fn || cb.fn === fn) {\r\n\t callbacks.splice(i, 1);\r\n\t break;\r\n\t }\r\n\t }\r\n\r\n\t // Remove event specific arrays for event types that no\r\n\t // one is subscribed for to avoid memory leak.\r\n\t if (callbacks.length === 0) {\r\n\t delete this._callbacks['$' + event];\r\n\t }\r\n\r\n\t return this;\r\n\t};\r\n\r\n\t/**\r\n\t * Emit `event` with the given args.\r\n\t *\r\n\t * @param {String} event\r\n\t * @param {Mixed} ...\r\n\t * @return {Emitter}\r\n\t */\r\n\r\n\tEmitter.prototype.emit = function(event){\r\n\t this._callbacks = this._callbacks || {};\r\n\r\n\t var args = new Array(arguments.length - 1)\r\n\t , callbacks = this._callbacks['$' + event];\r\n\r\n\t for (var i = 1; i < arguments.length; i++) {\r\n\t args[i - 1] = arguments[i];\r\n\t }\r\n\r\n\t if (callbacks) {\r\n\t callbacks = callbacks.slice(0);\r\n\t for (var i = 0, len = callbacks.length; i < len; ++i) {\r\n\t callbacks[i].apply(this, args);\r\n\t }\r\n\t }\r\n\r\n\t return this;\r\n\t};\r\n\r\n\t/**\r\n\t * Return array of callbacks for `event`.\r\n\t *\r\n\t * @param {String} event\r\n\t * @return {Array}\r\n\t * @api public\r\n\t */\r\n\r\n\tEmitter.prototype.listeners = function(event){\r\n\t this._callbacks = this._callbacks || {};\r\n\t return this._callbacks['$' + event] || [];\r\n\t};\r\n\r\n\t/**\r\n\t * Check if this emitter has `event` handlers.\r\n\t *\r\n\t * @param {String} event\r\n\t * @return {Boolean}\r\n\t * @api public\r\n\t */\r\n\r\n\tEmitter.prototype.hasListeners = function(event){\r\n\t return !! this.listeners(event).length;\r\n\t};\n} (componentEmitter));\n\nvar Emitter = componentEmitterExports;\n\nvar fromExports$2 = {};\nvar from$7 = {\n get exports(){ return fromExports$2; },\n set exports(v){ fromExports$2 = v; },\n};\n\nvar wellKnownSymbol$m = wellKnownSymbol$o;\n\nvar TO_STRING_TAG$4 = wellKnownSymbol$m('toStringTag');\nvar test$2 = {};\n\ntest$2[TO_STRING_TAG$4] = 'z';\n\nvar toStringTagSupport = String(test$2) === '[object z]';\n\nvar TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;\nvar isCallable$e = isCallable$m;\nvar classofRaw = classofRaw$2;\nvar wellKnownSymbol$l = wellKnownSymbol$o;\n\nvar TO_STRING_TAG$3 = wellKnownSymbol$l('toStringTag');\nvar $Object$2 = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nvar classof$f = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object$2(it), TO_STRING_TAG$3)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable$e(O.callee) ? 'Arguments' : result;\n};\n\nvar classof$e = classof$f;\n\nvar $String$2 = String;\n\nvar toString$b = function (argument) {\n if (classof$e(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String$2(argument);\n};\n\nvar uncurryThis$n = functionUncurryThis;\nvar toIntegerOrInfinity$1 = toIntegerOrInfinity$4;\nvar toString$a = toString$b;\nvar requireObjectCoercible$2 = requireObjectCoercible$5;\n\nvar charAt$3 = uncurryThis$n(''.charAt);\nvar charCodeAt$1 = uncurryThis$n(''.charCodeAt);\nvar stringSlice = uncurryThis$n(''.slice);\n\nvar createMethod$4 = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString$a(requireObjectCoercible$2($this));\n var position = toIntegerOrInfinity$1(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt$1(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt$3(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nvar stringMultibyte = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod$4(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod$4(true)\n};\n\nvar global$i = global$q;\nvar isCallable$d = isCallable$m;\n\nvar WeakMap$1 = global$i.WeakMap;\n\nvar weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));\n\nvar shared$5 = sharedExports;\nvar uid$2 = uid$4;\n\nvar keys$7 = shared$5('keys');\n\nvar sharedKey$4 = function (key) {\n return keys$7[key] || (keys$7[key] = uid$2(key));\n};\n\nvar NATIVE_WEAK_MAP$1 = weakMapBasicDetection;\nvar global$h = global$q;\nvar isObject$g = isObject$m;\nvar createNonEnumerableProperty$7 = createNonEnumerableProperty$9;\nvar hasOwn$g = hasOwnProperty_1;\nvar shared$4 = sharedStore;\nvar sharedKey$3 = sharedKey$4;\nvar hiddenKeys$4 = hiddenKeys$6;\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError$3 = global$h.TypeError;\nvar WeakMap = global$h.WeakMap;\nvar set$4, get$7, has;\n\nvar enforce = function (it) {\n return has(it) ? get$7(it) : set$4(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject$g(it) || (state = get$7(it)).type !== TYPE) {\n throw TypeError$3('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP$1 || shared$4.state) {\n var store$1 = shared$4.state || (shared$4.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store$1.get = store$1.get;\n store$1.has = store$1.has;\n store$1.set = store$1.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set$4 = function (it, metadata) {\n if (store$1.has(it)) throw TypeError$3(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store$1.set(it, metadata);\n return metadata;\n };\n get$7 = function (it) {\n return store$1.get(it) || {};\n };\n has = function (it) {\n return store$1.has(it);\n };\n} else {\n var STATE = sharedKey$3('state');\n hiddenKeys$4[STATE] = true;\n set$4 = function (it, metadata) {\n if (hasOwn$g(it, STATE)) throw TypeError$3(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty$7(it, STATE, metadata);\n return metadata;\n };\n get$7 = function (it) {\n return hasOwn$g(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn$g(it, STATE);\n };\n}\n\nvar internalState = {\n set: set$4,\n get: get$7,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n\nvar DESCRIPTORS$c = descriptors;\nvar hasOwn$f = hasOwnProperty_1;\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS$c && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn$f(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS$c || (DESCRIPTORS$c && getDescriptor(FunctionPrototype, 'name').configurable));\n\nvar functionName = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n\nvar objectDefineProperties = {};\n\nvar DESCRIPTORS$b = descriptors;\nvar V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;\nvar definePropertyModule$3 = objectDefineProperty;\nvar anObject$d = anObject$f;\nvar toIndexedObject$7 = toIndexedObject$b;\nvar objectKeys$2 = objectKeys$4;\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nobjectDefineProperties.f = DESCRIPTORS$b && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject$d(O);\n var props = toIndexedObject$7(Properties);\n var keys = objectKeys$2(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);\n return O;\n};\n\nvar getBuiltIn$d = getBuiltIn$f;\n\nvar html$2 = getBuiltIn$d('document', 'documentElement');\n\n/* global ActiveXObject -- old IE, WSH */\n\nvar anObject$c = anObject$f;\nvar definePropertiesModule$1 = objectDefineProperties;\nvar enumBugKeys$1 = enumBugKeys$3;\nvar hiddenKeys$3 = hiddenKeys$6;\nvar html$1 = html$2;\nvar documentCreateElement = documentCreateElement$1;\nvar sharedKey$2 = sharedKey$4;\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE$1 = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO$1 = sharedKey$2('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html$1.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys$1.length;\n while (length--) delete NullProtoObject[PROTOTYPE$1][enumBugKeys$1[length]];\n return NullProtoObject();\n};\n\nhiddenKeys$3[IE_PROTO$1] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nvar objectCreate = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE$1] = anObject$c(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE$1] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO$1] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule$1.f(result, Properties);\n};\n\nvar fails$q = fails$z;\n\nvar correctPrototypeGetter = !fails$q(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n\nvar hasOwn$e = hasOwnProperty_1;\nvar isCallable$c = isCallable$m;\nvar toObject$b = toObject$e;\nvar sharedKey$1 = sharedKey$4;\nvar CORRECT_PROTOTYPE_GETTER$1 = correctPrototypeGetter;\n\nvar IE_PROTO = sharedKey$1('IE_PROTO');\nvar $Object$1 = Object;\nvar ObjectPrototype$2 = $Object$1.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nvar objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER$1 ? $Object$1.getPrototypeOf : function (O) {\n var object = toObject$b(O);\n if (hasOwn$e(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable$c(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object$1 ? ObjectPrototype$2 : null;\n};\n\nvar createNonEnumerableProperty$6 = createNonEnumerableProperty$9;\n\nvar defineBuiltIn$6 = function (target, key, value, options) {\n if (options && options.enumerable) target[key] = value;\n else createNonEnumerableProperty$6(target, key, value);\n return target;\n};\n\nvar fails$p = fails$z;\nvar isCallable$b = isCallable$m;\nvar isObject$f = isObject$m;\nvar create$c = objectCreate;\nvar getPrototypeOf$a = objectGetPrototypeOf;\nvar defineBuiltIn$5 = defineBuiltIn$6;\nvar wellKnownSymbol$k = wellKnownSymbol$o;\n\nvar ITERATOR$6 = wellKnownSymbol$k('iterator');\nvar BUGGY_SAFARI_ITERATORS$1 = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype$1, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf$a(getPrototypeOf$a(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = !isObject$f(IteratorPrototype$1) || fails$p(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype$1[ITERATOR$6].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$1 = {};\nelse IteratorPrototype$1 = create$c(IteratorPrototype$1);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable$b(IteratorPrototype$1[ITERATOR$6])) {\n defineBuiltIn$5(IteratorPrototype$1, ITERATOR$6, function () {\n return this;\n });\n}\n\nvar iteratorsCore = {\n IteratorPrototype: IteratorPrototype$1,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1\n};\n\nvar TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;\nvar classof$d = classof$f;\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nvar objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {\n return '[object ' + classof$d(this) + ']';\n};\n\nvar TO_STRING_TAG_SUPPORT = toStringTagSupport;\nvar defineProperty$d = objectDefineProperty.f;\nvar createNonEnumerableProperty$5 = createNonEnumerableProperty$9;\nvar hasOwn$d = hasOwnProperty_1;\nvar toString$9 = objectToString;\nvar wellKnownSymbol$j = wellKnownSymbol$o;\n\nvar TO_STRING_TAG$2 = wellKnownSymbol$j('toStringTag');\n\nvar setToStringTag$7 = function (it, TAG, STATIC, SET_METHOD) {\n if (it) {\n var target = STATIC ? it : it.prototype;\n if (!hasOwn$d(target, TO_STRING_TAG$2)) {\n defineProperty$d(target, TO_STRING_TAG$2, { configurable: true, value: TAG });\n }\n if (SET_METHOD && !TO_STRING_TAG_SUPPORT) {\n createNonEnumerableProperty$5(target, 'toString', toString$9);\n }\n }\n};\n\nvar iterators = {};\n\nvar IteratorPrototype = iteratorsCore.IteratorPrototype;\nvar create$b = objectCreate;\nvar createPropertyDescriptor$4 = createPropertyDescriptor$7;\nvar setToStringTag$6 = setToStringTag$7;\nvar Iterators$5 = iterators;\n\nvar returnThis$1 = function () { return this; };\n\nvar iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create$b(IteratorPrototype, { next: createPropertyDescriptor$4(+!ENUMERABLE_NEXT, next) });\n setToStringTag$6(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators$5[TO_STRING_TAG] = returnThis$1;\n return IteratorConstructor;\n};\n\nvar uncurryThis$m = functionUncurryThis;\nvar aCallable$a = aCallable$e;\n\nvar functionUncurryThisAccessor = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis$m(aCallable$a(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n};\n\nvar isCallable$a = isCallable$m;\n\nvar $String$1 = String;\nvar $TypeError$b = TypeError;\n\nvar aPossiblePrototype$1 = function (argument) {\n if (typeof argument == 'object' || isCallable$a(argument)) return argument;\n throw $TypeError$b(\"Can't set \" + $String$1(argument) + ' as a prototype');\n};\n\n/* eslint-disable no-proto -- safe */\n\nvar uncurryThisAccessor = functionUncurryThisAccessor;\nvar anObject$b = anObject$f;\nvar aPossiblePrototype = aPossiblePrototype$1;\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nvar objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject$b(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n\nvar $$Y = _export;\nvar call$e = functionCall;\nvar FunctionName = functionName;\nvar createIteratorConstructor = iteratorCreateConstructor;\nvar getPrototypeOf$9 = objectGetPrototypeOf;\nvar setToStringTag$5 = setToStringTag$7;\nvar defineBuiltIn$4 = defineBuiltIn$6;\nvar wellKnownSymbol$i = wellKnownSymbol$o;\nvar Iterators$4 = iterators;\nvar IteratorsCore = iteratorsCore;\n\nvar PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR$5 = wellKnownSymbol$i('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nvar iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR$5]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf$9(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag$5(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n Iterators$4[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME$1 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call$e(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n defineBuiltIn$4(IterablePrototype, KEY, methods[KEY]);\n }\n } else $$Y({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((FORCED) && IterablePrototype[ITERATOR$5] !== defaultIterator) {\n defineBuiltIn$4(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });\n }\n Iterators$4[NAME] = defaultIterator;\n\n return methods;\n};\n\n// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nvar createIterResultObject$3 = function (value, done) {\n return { value: value, done: done };\n};\n\nvar charAt$2 = stringMultibyte.charAt;\nvar toString$8 = toString$b;\nvar InternalStateModule$6 = internalState;\nvar defineIterator$2 = iteratorDefine;\nvar createIterResultObject$2 = createIterResultObject$3;\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState$6 = InternalStateModule$6.set;\nvar getInternalState$2 = InternalStateModule$6.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator$2(String, 'String', function (iterated) {\n setInternalState$6(this, {\n type: STRING_ITERATOR,\n string: toString$8(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState$2(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return createIterResultObject$2(undefined, true);\n point = charAt$2(string, index);\n state.index += point.length;\n return createIterResultObject$2(point, false);\n});\n\nvar call$d = functionCall;\nvar anObject$a = anObject$f;\nvar getMethod$1 = getMethod$3;\n\nvar iteratorClose$2 = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject$a(iterator);\n try {\n innerResult = getMethod$1(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call$d(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject$a(innerResult);\n return value;\n};\n\nvar anObject$9 = anObject$f;\nvar iteratorClose$1 = iteratorClose$2;\n\n// call something on iterator step with safe closing on error\nvar callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {\n try {\n return ENTRIES ? fn(anObject$9(value)[0], value[1]) : fn(value);\n } catch (error) {\n iteratorClose$1(iterator, 'throw', error);\n }\n};\n\nvar wellKnownSymbol$h = wellKnownSymbol$o;\nvar Iterators$3 = iterators;\n\nvar ITERATOR$4 = wellKnownSymbol$h('iterator');\nvar ArrayPrototype$i = Array.prototype;\n\n// check on default Array iterator\nvar isArrayIteratorMethod$2 = function (it) {\n return it !== undefined && (Iterators$3.Array === it || ArrayPrototype$i[ITERATOR$4] === it);\n};\n\nvar uncurryThis$l = functionUncurryThis;\nvar isCallable$9 = isCallable$m;\nvar store = sharedStore;\n\nvar functionToString = uncurryThis$l(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable$9(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nvar inspectSource$2 = store.inspectSource;\n\nvar uncurryThis$k = functionUncurryThis;\nvar fails$o = fails$z;\nvar isCallable$8 = isCallable$m;\nvar classof$c = classof$f;\nvar getBuiltIn$c = getBuiltIn$f;\nvar inspectSource$1 = inspectSource$2;\n\nvar noop = function () { /* empty */ };\nvar empty = [];\nvar construct$3 = getBuiltIn$c('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec$2 = uncurryThis$k(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.exec(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable$8(argument)) return false;\n try {\n construct$3(noop, empty, argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable$8(argument)) return false;\n switch (classof$c(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource$1(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nvar isConstructor$4 = !construct$3 || fails$o(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n\nvar toPropertyKey$1 = toPropertyKey$4;\nvar definePropertyModule$2 = objectDefineProperty;\nvar createPropertyDescriptor$3 = createPropertyDescriptor$7;\n\nvar createProperty$6 = function (object, key, value) {\n var propertyKey = toPropertyKey$1(key);\n if (propertyKey in object) definePropertyModule$2.f(object, propertyKey, createPropertyDescriptor$3(0, value));\n else object[propertyKey] = value;\n};\n\nvar classof$b = classof$f;\nvar getMethod = getMethod$3;\nvar isNullOrUndefined$3 = isNullOrUndefined$6;\nvar Iterators$2 = iterators;\nvar wellKnownSymbol$g = wellKnownSymbol$o;\n\nvar ITERATOR$3 = wellKnownSymbol$g('iterator');\n\nvar getIteratorMethod$9 = function (it) {\n if (!isNullOrUndefined$3(it)) return getMethod(it, ITERATOR$3)\n || getMethod(it, '@@iterator')\n || Iterators$2[classof$b(it)];\n};\n\nvar call$c = functionCall;\nvar aCallable$9 = aCallable$e;\nvar anObject$8 = anObject$f;\nvar tryToString$4 = tryToString$6;\nvar getIteratorMethod$8 = getIteratorMethod$9;\n\nvar $TypeError$a = TypeError;\n\nvar getIterator$8 = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod$8(argument) : usingIterator;\n if (aCallable$9(iteratorMethod)) return anObject$8(call$c(iteratorMethod, argument));\n throw $TypeError$a(tryToString$4(argument) + ' is not iterable');\n};\n\nvar bind$c = functionBindContext;\nvar call$b = functionCall;\nvar toObject$a = toObject$e;\nvar callWithSafeIterationClosing = callWithSafeIterationClosing$1;\nvar isArrayIteratorMethod$1 = isArrayIteratorMethod$2;\nvar isConstructor$3 = isConstructor$4;\nvar lengthOfArrayLike$b = lengthOfArrayLike$d;\nvar createProperty$5 = createProperty$6;\nvar getIterator$7 = getIterator$8;\nvar getIteratorMethod$7 = getIteratorMethod$9;\n\nvar $Array$3 = Array;\n\n// `Array.from` method implementation\n// https://tc39.es/ecma262/#sec-array.from\nvar arrayFrom = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject$a(arrayLike);\n var IS_CONSTRUCTOR = isConstructor$3(this);\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n if (mapping) mapfn = bind$c(mapfn, argumentsLength > 2 ? arguments[2] : undefined);\n var iteratorMethod = getIteratorMethod$7(O);\n var index = 0;\n var length, result, step, iterator, next, value;\n // if the target is not iterable or it's an array with the default iterator - use a simple case\n if (iteratorMethod && !(this === $Array$3 && isArrayIteratorMethod$1(iteratorMethod))) {\n iterator = getIterator$7(O, iteratorMethod);\n next = iterator.next;\n result = IS_CONSTRUCTOR ? new this() : [];\n for (;!(step = call$b(next, iterator)).done; index++) {\n value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;\n createProperty$5(result, index, value);\n }\n } else {\n length = lengthOfArrayLike$b(O);\n result = IS_CONSTRUCTOR ? new this(length) : $Array$3(length);\n for (;length > index; index++) {\n value = mapping ? mapfn(O[index], index) : O[index];\n createProperty$5(result, index, value);\n }\n }\n result.length = index;\n return result;\n};\n\nvar wellKnownSymbol$f = wellKnownSymbol$o;\n\nvar ITERATOR$2 = wellKnownSymbol$f('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR$2] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nvar checkCorrectnessOfIteration$2 = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR$2] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n\nvar $$X = _export;\nvar from$6 = arrayFrom;\nvar checkCorrectnessOfIteration$1 = checkCorrectnessOfIteration$2;\n\nvar INCORRECT_ITERATION = !checkCorrectnessOfIteration$1(function (iterable) {\n // eslint-disable-next-line es/no-array-from -- required for testing\n Array.from(iterable);\n});\n\n// `Array.from` method\n// https://tc39.es/ecma262/#sec-array.from\n$$X({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {\n from: from$6\n});\n\nvar path$u = path$z;\n\nvar from$5 = path$u.Array.from;\n\nvar parent$1m = from$5;\n\nvar from$4 = parent$1m;\n\n(function (module) {\n\tmodule.exports = from$4;\n} (from$7));\n\nvar _Array$from$1 = /*@__PURE__*/getDefaultExportFromCjs(fromExports$2);\n\nvar getIteratorMethodExports$1 = {};\nvar getIteratorMethod$6 = {\n get exports(){ return getIteratorMethodExports$1; },\n set exports(v){ getIteratorMethodExports$1 = v; },\n};\n\nvar getIteratorMethodExports = {};\nvar getIteratorMethod$5 = {\n get exports(){ return getIteratorMethodExports; },\n set exports(v){ getIteratorMethodExports = v; },\n};\n\nvar toIndexedObject$6 = toIndexedObject$b;\nvar Iterators$1 = iterators;\nvar InternalStateModule$5 = internalState;\nobjectDefineProperty.f;\nvar defineIterator$1 = iteratorDefine;\nvar createIterResultObject$1 = createIterResultObject$3;\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState$5 = InternalStateModule$5.set;\nvar getInternalState$1 = InternalStateModule$5.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\ndefineIterator$1(Array, 'Array', function (iterated, kind) {\n setInternalState$5(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject$6(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState$1(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return createIterResultObject$1(undefined, true);\n }\n if (kind == 'keys') return createIterResultObject$1(index, false);\n if (kind == 'values') return createIterResultObject$1(target[index], false);\n return createIterResultObject$1([index, target[index]], false);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nIterators$1.Arguments = Iterators$1.Array;\n\nvar getIteratorMethod$4 = getIteratorMethod$9;\n\nvar getIteratorMethod_1 = getIteratorMethod$4;\n\n// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nvar domIterables = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n\nvar DOMIterables$4 = domIterables;\nvar global$g = global$q;\nvar classof$a = classof$f;\nvar createNonEnumerableProperty$4 = createNonEnumerableProperty$9;\nvar Iterators = iterators;\nvar wellKnownSymbol$e = wellKnownSymbol$o;\n\nvar TO_STRING_TAG$1 = wellKnownSymbol$e('toStringTag');\n\nfor (var COLLECTION_NAME in DOMIterables$4) {\n var Collection = global$g[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n if (CollectionPrototype && classof$a(CollectionPrototype) !== TO_STRING_TAG$1) {\n createNonEnumerableProperty$4(CollectionPrototype, TO_STRING_TAG$1, COLLECTION_NAME);\n }\n Iterators[COLLECTION_NAME] = Iterators.Array;\n}\n\nvar parent$1l = getIteratorMethod_1;\n\n\nvar getIteratorMethod$3 = parent$1l;\n\nvar parent$1k = getIteratorMethod$3;\n\nvar getIteratorMethod$2 = parent$1k;\n\nvar parent$1j = getIteratorMethod$2;\n\nvar getIteratorMethod$1 = parent$1j;\n\n(function (module) {\n\tmodule.exports = getIteratorMethod$1;\n} (getIteratorMethod$5));\n\n(function (module) {\n\tmodule.exports = getIteratorMethodExports;\n} (getIteratorMethod$6));\n\nvar _getIteratorMethod = /*@__PURE__*/getDefaultExportFromCjs(getIteratorMethodExports$1);\n\nvar getOwnPropertySymbolsExports = {};\nvar getOwnPropertySymbols$2 = {\n get exports(){ return getOwnPropertySymbolsExports; },\n set exports(v){ getOwnPropertySymbolsExports = v; },\n};\n\nvar objectGetOwnPropertyNames = {};\n\nvar internalObjectKeys = objectKeysInternal;\nvar enumBugKeys = enumBugKeys$3;\n\nvar hiddenKeys$2 = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nobjectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys$2);\n};\n\nvar objectGetOwnPropertyNamesExternal = {};\n\nvar toAbsoluteIndex$3 = toAbsoluteIndex$5;\nvar lengthOfArrayLike$a = lengthOfArrayLike$d;\nvar createProperty$4 = createProperty$6;\n\nvar $Array$2 = Array;\nvar max$2 = Math.max;\n\nvar arraySliceSimple = function (O, start, end) {\n var length = lengthOfArrayLike$a(O);\n var k = toAbsoluteIndex$3(start, length);\n var fin = toAbsoluteIndex$3(end === undefined ? length : end, length);\n var result = $Array$2(max$2(fin - k, 0));\n for (var n = 0; k < fin; k++, n++) createProperty$4(result, n, O[k]);\n result.length = n;\n return result;\n};\n\n/* eslint-disable es/no-object-getownpropertynames -- safe */\n\nvar classof$9 = classofRaw$2;\nvar toIndexedObject$5 = toIndexedObject$b;\nvar $getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;\nvar arraySlice$4 = arraySliceSimple;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames$1(it);\n } catch (error) {\n return arraySlice$4(windowNames);\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nobjectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames(it) {\n return windowNames && classof$9(it) == 'Window'\n ? getWindowNames(it)\n : $getOwnPropertyNames$1(toIndexedObject$5(it));\n};\n\nvar defineProperty$c = objectDefineProperty;\n\nvar defineBuiltInAccessor$3 = function (target, name, descriptor) {\n return defineProperty$c.f(target, name, descriptor);\n};\n\nvar wellKnownSymbolWrapped = {};\n\nvar wellKnownSymbol$d = wellKnownSymbol$o;\n\nwellKnownSymbolWrapped.f = wellKnownSymbol$d;\n\nvar path$t = path$z;\nvar hasOwn$c = hasOwnProperty_1;\nvar wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped;\nvar defineProperty$b = objectDefineProperty.f;\n\nvar wellKnownSymbolDefine = function (NAME) {\n var Symbol = path$t.Symbol || (path$t.Symbol = {});\n if (!hasOwn$c(Symbol, NAME)) defineProperty$b(Symbol, NAME, {\n value: wrappedWellKnownSymbolModule$1.f(NAME)\n });\n};\n\nvar call$a = functionCall;\nvar getBuiltIn$b = getBuiltIn$f;\nvar wellKnownSymbol$c = wellKnownSymbol$o;\nvar defineBuiltIn$3 = defineBuiltIn$6;\n\nvar symbolDefineToPrimitive = function () {\n var Symbol = getBuiltIn$b('Symbol');\n var SymbolPrototype = Symbol && Symbol.prototype;\n var valueOf = SymbolPrototype && SymbolPrototype.valueOf;\n var TO_PRIMITIVE = wellKnownSymbol$c('toPrimitive');\n\n if (SymbolPrototype && !SymbolPrototype[TO_PRIMITIVE]) {\n // `Symbol.prototype[@@toPrimitive]` method\n // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive\n // eslint-disable-next-line no-unused-vars -- required for .length\n defineBuiltIn$3(SymbolPrototype, TO_PRIMITIVE, function (hint) {\n return call$a(valueOf, this);\n }, { arity: 1 });\n }\n};\n\nvar classof$8 = classofRaw$2;\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nvar isArray$g = Array.isArray || function isArray(argument) {\n return classof$8(argument) == 'Array';\n};\n\nvar isArray$f = isArray$g;\nvar isConstructor$2 = isConstructor$4;\nvar isObject$e = isObject$m;\nvar wellKnownSymbol$b = wellKnownSymbol$o;\n\nvar SPECIES$5 = wellKnownSymbol$b('species');\nvar $Array$1 = Array;\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nvar arraySpeciesConstructor$1 = function (originalArray) {\n var C;\n if (isArray$f(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor$2(C) && (C === $Array$1 || isArray$f(C.prototype))) C = undefined;\n else if (isObject$e(C)) {\n C = C[SPECIES$5];\n if (C === null) C = undefined;\n }\n } return C === undefined ? $Array$1 : C;\n};\n\nvar arraySpeciesConstructor = arraySpeciesConstructor$1;\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nvar arraySpeciesCreate$4 = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n};\n\nvar bind$b = functionBindContext;\nvar uncurryThis$j = functionUncurryThis;\nvar IndexedObject$1 = indexedObject;\nvar toObject$9 = toObject$e;\nvar lengthOfArrayLike$9 = lengthOfArrayLike$d;\nvar arraySpeciesCreate$3 = arraySpeciesCreate$4;\n\nvar push$6 = uncurryThis$j([].push);\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation\nvar createMethod$3 = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var IS_FILTER_REJECT = TYPE == 7;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject$9($this);\n var self = IndexedObject$1(O);\n var boundFunction = bind$b(callbackfn, that);\n var length = lengthOfArrayLike$9(self);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate$3;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push$6(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push$6(target, value); // filterReject\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nvar arrayIteration = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod$3(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod$3(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod$3(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod$3(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod$3(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod$3(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod$3(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod$3(7)\n};\n\nvar $$W = _export;\nvar global$f = global$q;\nvar call$9 = functionCall;\nvar uncurryThis$i = functionUncurryThis;\nvar DESCRIPTORS$a = descriptors;\nvar NATIVE_SYMBOL$3 = symbolConstructorDetection;\nvar fails$n = fails$z;\nvar hasOwn$b = hasOwnProperty_1;\nvar isPrototypeOf$m = objectIsPrototypeOf;\nvar anObject$7 = anObject$f;\nvar toIndexedObject$4 = toIndexedObject$b;\nvar toPropertyKey = toPropertyKey$4;\nvar $toString = toString$b;\nvar createPropertyDescriptor$2 = createPropertyDescriptor$7;\nvar nativeObjectCreate = objectCreate;\nvar objectKeys$1 = objectKeys$4;\nvar getOwnPropertyNamesModule$2 = objectGetOwnPropertyNames;\nvar getOwnPropertyNamesExternal = objectGetOwnPropertyNamesExternal;\nvar getOwnPropertySymbolsModule$2 = objectGetOwnPropertySymbols;\nvar getOwnPropertyDescriptorModule$3 = objectGetOwnPropertyDescriptor;\nvar definePropertyModule$1 = objectDefineProperty;\nvar definePropertiesModule = objectDefineProperties;\nvar propertyIsEnumerableModule = objectPropertyIsEnumerable;\nvar defineBuiltIn$2 = defineBuiltIn$6;\nvar defineBuiltInAccessor$2 = defineBuiltInAccessor$3;\nvar shared$3 = sharedExports;\nvar sharedKey = sharedKey$4;\nvar hiddenKeys$1 = hiddenKeys$6;\nvar uid$1 = uid$4;\nvar wellKnownSymbol$a = wellKnownSymbol$o;\nvar wrappedWellKnownSymbolModule = wellKnownSymbolWrapped;\nvar defineWellKnownSymbol$l = wellKnownSymbolDefine;\nvar defineSymbolToPrimitive$1 = symbolDefineToPrimitive;\nvar setToStringTag$4 = setToStringTag$7;\nvar InternalStateModule$4 = internalState;\nvar $forEach$1 = arrayIteration.forEach;\n\nvar HIDDEN = sharedKey('hidden');\nvar SYMBOL = 'Symbol';\nvar PROTOTYPE = 'prototype';\n\nvar setInternalState$4 = InternalStateModule$4.set;\nvar getInternalState = InternalStateModule$4.getterFor(SYMBOL);\n\nvar ObjectPrototype$1 = Object[PROTOTYPE];\nvar $Symbol = global$f.Symbol;\nvar SymbolPrototype = $Symbol && $Symbol[PROTOTYPE];\nvar TypeError$2 = global$f.TypeError;\nvar QObject = global$f.QObject;\nvar nativeGetOwnPropertyDescriptor$1 = getOwnPropertyDescriptorModule$3.f;\nvar nativeDefineProperty = definePropertyModule$1.f;\nvar nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;\nvar nativePropertyIsEnumerable = propertyIsEnumerableModule.f;\nvar push$5 = uncurryThis$i([].push);\n\nvar AllSymbols = shared$3('symbols');\nvar ObjectPrototypeSymbols = shared$3('op-symbols');\nvar WellKnownSymbolsStore$1 = shared$3('wks');\n\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDescriptor = DESCRIPTORS$a && fails$n(function () {\n return nativeObjectCreate(nativeDefineProperty({}, 'a', {\n get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (O, P, Attributes) {\n var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype$1, P);\n if (ObjectPrototypeDescriptor) delete ObjectPrototype$1[P];\n nativeDefineProperty(O, P, Attributes);\n if (ObjectPrototypeDescriptor && O !== ObjectPrototype$1) {\n nativeDefineProperty(ObjectPrototype$1, P, ObjectPrototypeDescriptor);\n }\n} : nativeDefineProperty;\n\nvar wrap = function (tag, description) {\n var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype);\n setInternalState$4(symbol, {\n type: SYMBOL,\n tag: tag,\n description: description\n });\n if (!DESCRIPTORS$a) symbol.description = description;\n return symbol;\n};\n\nvar $defineProperty = function defineProperty(O, P, Attributes) {\n if (O === ObjectPrototype$1) $defineProperty(ObjectPrototypeSymbols, P, Attributes);\n anObject$7(O);\n var key = toPropertyKey(P);\n anObject$7(Attributes);\n if (hasOwn$b(AllSymbols, key)) {\n if (!Attributes.enumerable) {\n if (!hasOwn$b(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor$2(1, {}));\n O[HIDDEN][key] = true;\n } else {\n if (hasOwn$b(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;\n Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor$2(0, false) });\n } return setSymbolDescriptor(O, key, Attributes);\n } return nativeDefineProperty(O, key, Attributes);\n};\n\nvar $defineProperties = function defineProperties(O, Properties) {\n anObject$7(O);\n var properties = toIndexedObject$4(Properties);\n var keys = objectKeys$1(properties).concat($getOwnPropertySymbols(properties));\n $forEach$1(keys, function (key) {\n if (!DESCRIPTORS$a || call$9($propertyIsEnumerable$1, properties, key)) $defineProperty(O, key, properties[key]);\n });\n return O;\n};\n\nvar $create = function create(O, Properties) {\n return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);\n};\n\nvar $propertyIsEnumerable$1 = function propertyIsEnumerable(V) {\n var P = toPropertyKey(V);\n var enumerable = call$9(nativePropertyIsEnumerable, this, P);\n if (this === ObjectPrototype$1 && hasOwn$b(AllSymbols, P) && !hasOwn$b(ObjectPrototypeSymbols, P)) return false;\n return enumerable || !hasOwn$b(this, P) || !hasOwn$b(AllSymbols, P) || hasOwn$b(this, HIDDEN) && this[HIDDEN][P]\n ? enumerable : true;\n};\n\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {\n var it = toIndexedObject$4(O);\n var key = toPropertyKey(P);\n if (it === ObjectPrototype$1 && hasOwn$b(AllSymbols, key) && !hasOwn$b(ObjectPrototypeSymbols, key)) return;\n var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);\n if (descriptor && hasOwn$b(AllSymbols, key) && !(hasOwn$b(it, HIDDEN) && it[HIDDEN][key])) {\n descriptor.enumerable = true;\n }\n return descriptor;\n};\n\nvar $getOwnPropertyNames = function getOwnPropertyNames(O) {\n var names = nativeGetOwnPropertyNames(toIndexedObject$4(O));\n var result = [];\n $forEach$1(names, function (key) {\n if (!hasOwn$b(AllSymbols, key) && !hasOwn$b(hiddenKeys$1, key)) push$5(result, key);\n });\n return result;\n};\n\nvar $getOwnPropertySymbols = function (O) {\n var IS_OBJECT_PROTOTYPE = O === ObjectPrototype$1;\n var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject$4(O));\n var result = [];\n $forEach$1(names, function (key) {\n if (hasOwn$b(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn$b(ObjectPrototype$1, key))) {\n push$5(result, AllSymbols[key]);\n }\n });\n return result;\n};\n\n// `Symbol` constructor\n// https://tc39.es/ecma262/#sec-symbol-constructor\nif (!NATIVE_SYMBOL$3) {\n $Symbol = function Symbol() {\n if (isPrototypeOf$m(SymbolPrototype, this)) throw TypeError$2('Symbol is not a constructor');\n var description = !arguments.length || arguments[0] === undefined ? undefined : $toString(arguments[0]);\n var tag = uid$1(description);\n var setter = function (value) {\n if (this === ObjectPrototype$1) call$9(setter, ObjectPrototypeSymbols, value);\n if (hasOwn$b(this, HIDDEN) && hasOwn$b(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDescriptor(this, tag, createPropertyDescriptor$2(1, value));\n };\n if (DESCRIPTORS$a && USE_SETTER) setSymbolDescriptor(ObjectPrototype$1, tag, { configurable: true, set: setter });\n return wrap(tag, description);\n };\n\n SymbolPrototype = $Symbol[PROTOTYPE];\n\n defineBuiltIn$2(SymbolPrototype, 'toString', function toString() {\n return getInternalState(this).tag;\n });\n\n defineBuiltIn$2($Symbol, 'withoutSetter', function (description) {\n return wrap(uid$1(description), description);\n });\n\n propertyIsEnumerableModule.f = $propertyIsEnumerable$1;\n definePropertyModule$1.f = $defineProperty;\n definePropertiesModule.f = $defineProperties;\n getOwnPropertyDescriptorModule$3.f = $getOwnPropertyDescriptor;\n getOwnPropertyNamesModule$2.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;\n getOwnPropertySymbolsModule$2.f = $getOwnPropertySymbols;\n\n wrappedWellKnownSymbolModule.f = function (name) {\n return wrap(wellKnownSymbol$a(name), name);\n };\n\n if (DESCRIPTORS$a) {\n // https://github.com/tc39/proposal-Symbol-description\n defineBuiltInAccessor$2(SymbolPrototype, 'description', {\n configurable: true,\n get: function description() {\n return getInternalState(this).description;\n }\n });\n }\n}\n\n$$W({ global: true, constructor: true, wrap: true, forced: !NATIVE_SYMBOL$3, sham: !NATIVE_SYMBOL$3 }, {\n Symbol: $Symbol\n});\n\n$forEach$1(objectKeys$1(WellKnownSymbolsStore$1), function (name) {\n defineWellKnownSymbol$l(name);\n});\n\n$$W({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL$3 }, {\n useSetter: function () { USE_SETTER = true; },\n useSimple: function () { USE_SETTER = false; }\n});\n\n$$W({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL$3, sham: !DESCRIPTORS$a }, {\n // `Object.create` method\n // https://tc39.es/ecma262/#sec-object.create\n create: $create,\n // `Object.defineProperty` method\n // https://tc39.es/ecma262/#sec-object.defineproperty\n defineProperty: $defineProperty,\n // `Object.defineProperties` method\n // https://tc39.es/ecma262/#sec-object.defineproperties\n defineProperties: $defineProperties,\n // `Object.getOwnPropertyDescriptor` method\n // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor\n});\n\n$$W({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL$3 }, {\n // `Object.getOwnPropertyNames` method\n // https://tc39.es/ecma262/#sec-object.getownpropertynames\n getOwnPropertyNames: $getOwnPropertyNames\n});\n\n// `Symbol.prototype[@@toPrimitive]` method\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive\ndefineSymbolToPrimitive$1();\n\n// `Symbol.prototype[@@toStringTag]` property\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag\nsetToStringTag$4($Symbol, SYMBOL);\n\nhiddenKeys$1[HIDDEN] = true;\n\nvar NATIVE_SYMBOL$2 = symbolConstructorDetection;\n\n/* eslint-disable es/no-symbol -- safe */\nvar symbolRegistryDetection = NATIVE_SYMBOL$2 && !!Symbol['for'] && !!Symbol.keyFor;\n\nvar $$V = _export;\nvar getBuiltIn$a = getBuiltIn$f;\nvar hasOwn$a = hasOwnProperty_1;\nvar toString$7 = toString$b;\nvar shared$2 = sharedExports;\nvar NATIVE_SYMBOL_REGISTRY$1 = symbolRegistryDetection;\n\nvar StringToSymbolRegistry = shared$2('string-to-symbol-registry');\nvar SymbolToStringRegistry$1 = shared$2('symbol-to-string-registry');\n\n// `Symbol.for` method\n// https://tc39.es/ecma262/#sec-symbol.for\n$$V({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY$1 }, {\n 'for': function (key) {\n var string = toString$7(key);\n if (hasOwn$a(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];\n var symbol = getBuiltIn$a('Symbol')(string);\n StringToSymbolRegistry[string] = symbol;\n SymbolToStringRegistry$1[symbol] = string;\n return symbol;\n }\n});\n\nvar $$U = _export;\nvar hasOwn$9 = hasOwnProperty_1;\nvar isSymbol$2 = isSymbol$5;\nvar tryToString$3 = tryToString$6;\nvar shared$1 = sharedExports;\nvar NATIVE_SYMBOL_REGISTRY = symbolRegistryDetection;\n\nvar SymbolToStringRegistry = shared$1('symbol-to-string-registry');\n\n// `Symbol.keyFor` method\n// https://tc39.es/ecma262/#sec-symbol.keyfor\n$$U({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {\n keyFor: function keyFor(sym) {\n if (!isSymbol$2(sym)) throw TypeError(tryToString$3(sym) + ' is not a symbol');\n if (hasOwn$9(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];\n }\n});\n\nvar uncurryThis$h = functionUncurryThis;\nvar isArray$e = isArray$g;\nvar isCallable$7 = isCallable$m;\nvar classof$7 = classofRaw$2;\nvar toString$6 = toString$b;\n\nvar push$4 = uncurryThis$h([].push);\n\nvar getJsonReplacerFunction = function (replacer) {\n if (isCallable$7(replacer)) return replacer;\n if (!isArray$e(replacer)) return;\n var rawLength = replacer.length;\n var keys = [];\n for (var i = 0; i < rawLength; i++) {\n var element = replacer[i];\n if (typeof element == 'string') push$4(keys, element);\n else if (typeof element == 'number' || classof$7(element) == 'Number' || classof$7(element) == 'String') push$4(keys, toString$6(element));\n }\n var keysLength = keys.length;\n var root = true;\n return function (key, value) {\n if (root) {\n root = false;\n return value;\n }\n if (isArray$e(this)) return value;\n for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;\n };\n};\n\nvar $$T = _export;\nvar getBuiltIn$9 = getBuiltIn$f;\nvar apply$4 = functionApply;\nvar call$8 = functionCall;\nvar uncurryThis$g = functionUncurryThis;\nvar fails$m = fails$z;\nvar isCallable$6 = isCallable$m;\nvar isSymbol$1 = isSymbol$5;\nvar arraySlice$3 = arraySlice$6;\nvar getReplacerFunction = getJsonReplacerFunction;\nvar NATIVE_SYMBOL$1 = symbolConstructorDetection;\n\nvar $String = String;\nvar $stringify = getBuiltIn$9('JSON', 'stringify');\nvar exec$1 = uncurryThis$g(/./.exec);\nvar charAt$1 = uncurryThis$g(''.charAt);\nvar charCodeAt = uncurryThis$g(''.charCodeAt);\nvar replace$2 = uncurryThis$g(''.replace);\nvar numberToString = uncurryThis$g(1.0.toString);\n\nvar tester = /[\\uD800-\\uDFFF]/g;\nvar low = /^[\\uD800-\\uDBFF]$/;\nvar hi = /^[\\uDC00-\\uDFFF]$/;\n\nvar WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL$1 || fails$m(function () {\n var symbol = getBuiltIn$9('Symbol')();\n // MS Edge converts symbol values to JSON as {}\n return $stringify([symbol]) != '[null]'\n // WebKit converts symbol values to JSON as null\n || $stringify({ a: symbol }) != '{}'\n // V8 throws on boxed symbols\n || $stringify(Object(symbol)) != '{}';\n});\n\n// https://github.com/tc39/proposal-well-formed-stringify\nvar ILL_FORMED_UNICODE = fails$m(function () {\n return $stringify('\\uDF06\\uD834') !== '\"\\\\udf06\\\\ud834\"'\n || $stringify('\\uDEAD') !== '\"\\\\udead\"';\n});\n\nvar stringifyWithSymbolsFix = function (it, replacer) {\n var args = arraySlice$3(arguments);\n var $replacer = getReplacerFunction(replacer);\n if (!isCallable$6($replacer) && (it === undefined || isSymbol$1(it))) return; // IE8 returns string on undefined\n args[1] = function (key, value) {\n // some old implementations (like WebKit) could pass numbers as keys\n if (isCallable$6($replacer)) value = call$8($replacer, this, $String(key), value);\n if (!isSymbol$1(value)) return value;\n };\n return apply$4($stringify, null, args);\n};\n\nvar fixIllFormed = function (match, offset, string) {\n var prev = charAt$1(string, offset - 1);\n var next = charAt$1(string, offset + 1);\n if ((exec$1(low, match) && !exec$1(hi, next)) || (exec$1(hi, match) && !exec$1(low, prev))) {\n return '\\\\u' + numberToString(charCodeAt(match, 0), 16);\n } return match;\n};\n\nif ($stringify) {\n // `JSON.stringify` method\n // https://tc39.es/ecma262/#sec-json.stringify\n $$T({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n stringify: function stringify(it, replacer, space) {\n var args = arraySlice$3(arguments);\n var result = apply$4(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);\n return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$2(result, tester, fixIllFormed) : result;\n }\n });\n}\n\nvar $$S = _export;\nvar NATIVE_SYMBOL = symbolConstructorDetection;\nvar fails$l = fails$z;\nvar getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;\nvar toObject$8 = toObject$e;\n\n// V8 ~ Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\nvar FORCED$9 = !NATIVE_SYMBOL || fails$l(function () { getOwnPropertySymbolsModule$1.f(1); });\n\n// `Object.getOwnPropertySymbols` method\n// https://tc39.es/ecma262/#sec-object.getownpropertysymbols\n$$S({ target: 'Object', stat: true, forced: FORCED$9 }, {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n var $getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;\n return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject$8(it)) : [];\n }\n});\n\nvar path$s = path$z;\n\nvar getOwnPropertySymbols$1 = path$s.Object.getOwnPropertySymbols;\n\nvar parent$1i = getOwnPropertySymbols$1;\n\nvar getOwnPropertySymbols = parent$1i;\n\n(function (module) {\n\tmodule.exports = getOwnPropertySymbols;\n} (getOwnPropertySymbols$2));\n\nvar _Object$getOwnPropertySymbols = /*@__PURE__*/getDefaultExportFromCjs(getOwnPropertySymbolsExports);\n\nvar getOwnPropertyDescriptorExports$3 = {};\nvar getOwnPropertyDescriptor$9 = {\n get exports(){ return getOwnPropertyDescriptorExports$3; },\n set exports(v){ getOwnPropertyDescriptorExports$3 = v; },\n};\n\nvar getOwnPropertyDescriptorExports$2 = {};\nvar getOwnPropertyDescriptor$8 = {\n get exports(){ return getOwnPropertyDescriptorExports$2; },\n set exports(v){ getOwnPropertyDescriptorExports$2 = v; },\n};\n\nvar $$R = _export;\nvar fails$k = fails$z;\nvar toIndexedObject$3 = toIndexedObject$b;\nvar nativeGetOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;\nvar DESCRIPTORS$9 = descriptors;\n\nvar FORCED$8 = !DESCRIPTORS$9 || fails$k(function () { nativeGetOwnPropertyDescriptor(1); });\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\n$$R({ target: 'Object', stat: true, forced: FORCED$8, sham: !DESCRIPTORS$9 }, {\n getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {\n return nativeGetOwnPropertyDescriptor(toIndexedObject$3(it), key);\n }\n});\n\nvar path$r = path$z;\n\nvar Object$5 = path$r.Object;\n\nvar getOwnPropertyDescriptor$7 = getOwnPropertyDescriptor$8.exports = function getOwnPropertyDescriptor(it, key) {\n return Object$5.getOwnPropertyDescriptor(it, key);\n};\n\nif (Object$5.getOwnPropertyDescriptor.sham) getOwnPropertyDescriptor$7.sham = true;\n\nvar parent$1h = getOwnPropertyDescriptorExports$2;\n\nvar getOwnPropertyDescriptor$6 = parent$1h;\n\n(function (module) {\n\tmodule.exports = getOwnPropertyDescriptor$6;\n} (getOwnPropertyDescriptor$9));\n\nvar _Object$getOwnPropertyDescriptor$1 = /*@__PURE__*/getDefaultExportFromCjs(getOwnPropertyDescriptorExports$3);\n\nvar getOwnPropertyDescriptorsExports = {};\nvar getOwnPropertyDescriptors$2 = {\n get exports(){ return getOwnPropertyDescriptorsExports; },\n set exports(v){ getOwnPropertyDescriptorsExports = v; },\n};\n\nvar getBuiltIn$8 = getBuiltIn$f;\nvar uncurryThis$f = functionUncurryThis;\nvar getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames;\nvar getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;\nvar anObject$6 = anObject$f;\n\nvar concat$4 = uncurryThis$f([].concat);\n\n// all object keys, includes non-enumerable and symbols\nvar ownKeys$b = getBuiltIn$8('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule$1.f(anObject$6(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat$4(keys, getOwnPropertySymbols(it)) : keys;\n};\n\nvar $$Q = _export;\nvar DESCRIPTORS$8 = descriptors;\nvar ownKeys$a = ownKeys$b;\nvar toIndexedObject$2 = toIndexedObject$b;\nvar getOwnPropertyDescriptorModule$2 = objectGetOwnPropertyDescriptor;\nvar createProperty$3 = createProperty$6;\n\n// `Object.getOwnPropertyDescriptors` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors\n$$Q({ target: 'Object', stat: true, sham: !DESCRIPTORS$8 }, {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {\n var O = toIndexedObject$2(object);\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$2.f;\n var keys = ownKeys$a(O);\n var result = {};\n var index = 0;\n var key, descriptor;\n while (keys.length > index) {\n descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);\n if (descriptor !== undefined) createProperty$3(result, key, descriptor);\n }\n return result;\n }\n});\n\nvar path$q = path$z;\n\nvar getOwnPropertyDescriptors$1 = path$q.Object.getOwnPropertyDescriptors;\n\nvar parent$1g = getOwnPropertyDescriptors$1;\n\nvar getOwnPropertyDescriptors = parent$1g;\n\n(function (module) {\n\tmodule.exports = getOwnPropertyDescriptors;\n} (getOwnPropertyDescriptors$2));\n\nvar _Object$getOwnPropertyDescriptors = /*@__PURE__*/getDefaultExportFromCjs(getOwnPropertyDescriptorsExports);\n\nvar definePropertiesExports$1 = {};\nvar defineProperties$4 = {\n get exports(){ return definePropertiesExports$1; },\n set exports(v){ definePropertiesExports$1 = v; },\n};\n\nvar definePropertiesExports = {};\nvar defineProperties$3 = {\n get exports(){ return definePropertiesExports; },\n set exports(v){ definePropertiesExports = v; },\n};\n\nvar $$P = _export;\nvar DESCRIPTORS$7 = descriptors;\nvar defineProperties$2 = objectDefineProperties.f;\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\n$$P({ target: 'Object', stat: true, forced: Object.defineProperties !== defineProperties$2, sham: !DESCRIPTORS$7 }, {\n defineProperties: defineProperties$2\n});\n\nvar path$p = path$z;\n\nvar Object$4 = path$p.Object;\n\nvar defineProperties$1 = defineProperties$3.exports = function defineProperties(T, D) {\n return Object$4.defineProperties(T, D);\n};\n\nif (Object$4.defineProperties.sham) defineProperties$1.sham = true;\n\nvar parent$1f = definePropertiesExports;\n\nvar defineProperties = parent$1f;\n\n(function (module) {\n\tmodule.exports = defineProperties;\n} (defineProperties$4));\n\nvar _Object$defineProperties = /*@__PURE__*/getDefaultExportFromCjs(definePropertiesExports$1);\n\nvar definePropertyExports$3 = {};\nvar defineProperty$a = {\n get exports(){ return definePropertyExports$3; },\n set exports(v){ definePropertyExports$3 = v; },\n};\n\nvar definePropertyExports$2 = {};\nvar defineProperty$9 = {\n get exports(){ return definePropertyExports$2; },\n set exports(v){ definePropertyExports$2 = v; },\n};\n\nvar $$O = _export;\nvar DESCRIPTORS$6 = descriptors;\nvar defineProperty$8 = objectDefineProperty.f;\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\n// eslint-disable-next-line es/no-object-defineproperty -- safe\n$$O({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProperty$8, sham: !DESCRIPTORS$6 }, {\n defineProperty: defineProperty$8\n});\n\nvar path$o = path$z;\n\nvar Object$3 = path$o.Object;\n\nvar defineProperty$7 = defineProperty$9.exports = function defineProperty(it, key, desc) {\n return Object$3.defineProperty(it, key, desc);\n};\n\nif (Object$3.defineProperty.sham) defineProperty$7.sham = true;\n\nvar parent$1e = definePropertyExports$2;\n\nvar defineProperty$6 = parent$1e;\n\n(function (module) {\n\tmodule.exports = defineProperty$6;\n} (defineProperty$a));\n\nvar _Object$defineProperty$1 = /*@__PURE__*/getDefaultExportFromCjs(definePropertyExports$3);\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nvar definePropertyExports$1 = {};\nvar defineProperty$5 = {\n get exports(){ return definePropertyExports$1; },\n set exports(v){ definePropertyExports$1 = v; },\n};\n\nvar definePropertyExports = {};\nvar defineProperty$4 = {\n get exports(){ return definePropertyExports; },\n set exports(v){ definePropertyExports = v; },\n};\n\nvar parent$1d = defineProperty$6;\n\nvar defineProperty$3 = parent$1d;\n\nvar parent$1c = defineProperty$3;\n\nvar defineProperty$2 = parent$1c;\n\n(function (module) {\n\tmodule.exports = defineProperty$2;\n} (defineProperty$4));\n\n(function (module) {\n\tmodule.exports = definePropertyExports;\n} (defineProperty$5));\n\nvar _Object$defineProperty = /*@__PURE__*/getDefaultExportFromCjs(definePropertyExports$1);\n\nvar symbolExports$2 = {};\nvar symbol$6 = {\n get exports(){ return symbolExports$2; },\n set exports(v){ symbolExports$2 = v; },\n};\n\nvar symbolExports$1 = {};\nvar symbol$5 = {\n get exports(){ return symbolExports$1; },\n set exports(v){ symbolExports$1 = v; },\n};\n\nvar $TypeError$9 = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nvar doesNotExceedSafeInteger$3 = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError$9('Maximum allowed index exceeded');\n return it;\n};\n\nvar fails$j = fails$z;\nvar wellKnownSymbol$9 = wellKnownSymbol$o;\nvar V8_VERSION$2 = engineV8Version;\n\nvar SPECIES$4 = wellKnownSymbol$9('species');\n\nvar arrayMethodHasSpeciesSupport$5 = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION$2 >= 51 || !fails$j(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES$4] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n\nvar $$N = _export;\nvar fails$i = fails$z;\nvar isArray$d = isArray$g;\nvar isObject$d = isObject$m;\nvar toObject$7 = toObject$e;\nvar lengthOfArrayLike$8 = lengthOfArrayLike$d;\nvar doesNotExceedSafeInteger$2 = doesNotExceedSafeInteger$3;\nvar createProperty$2 = createProperty$6;\nvar arraySpeciesCreate$2 = arraySpeciesCreate$4;\nvar arrayMethodHasSpeciesSupport$4 = arrayMethodHasSpeciesSupport$5;\nvar wellKnownSymbol$8 = wellKnownSymbol$o;\nvar V8_VERSION$1 = engineV8Version;\n\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol$8('isConcatSpreadable');\n\n// We can't use this feature detection in V8 since it causes\n// deoptimization and serious performance degradation\n// https://github.com/zloirock/core-js/issues/679\nvar IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$i(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar isConcatSpreadable = function (O) {\n if (!isObject$d(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray$d(O);\n};\n\nvar FORCED$7 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport$4('concat');\n\n// `Array.prototype.concat` method\n// https://tc39.es/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$$N({ target: 'Array', proto: true, arity: 1, forced: FORCED$7 }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n concat: function concat(arg) {\n var O = toObject$7(this);\n var A = arraySpeciesCreate$2(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = lengthOfArrayLike$8(E);\n doesNotExceedSafeInteger$2(n + len);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty$2(A, n, E[k]);\n } else {\n doesNotExceedSafeInteger$2(n + 1);\n createProperty$2(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n\nvar defineWellKnownSymbol$k = wellKnownSymbolDefine;\n\n// `Symbol.asyncIterator` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.asynciterator\ndefineWellKnownSymbol$k('asyncIterator');\n\nvar defineWellKnownSymbol$j = wellKnownSymbolDefine;\n\n// `Symbol.hasInstance` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.hasinstance\ndefineWellKnownSymbol$j('hasInstance');\n\nvar defineWellKnownSymbol$i = wellKnownSymbolDefine;\n\n// `Symbol.isConcatSpreadable` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.isconcatspreadable\ndefineWellKnownSymbol$i('isConcatSpreadable');\n\nvar defineWellKnownSymbol$h = wellKnownSymbolDefine;\n\n// `Symbol.iterator` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.iterator\ndefineWellKnownSymbol$h('iterator');\n\nvar defineWellKnownSymbol$g = wellKnownSymbolDefine;\n\n// `Symbol.match` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.match\ndefineWellKnownSymbol$g('match');\n\nvar defineWellKnownSymbol$f = wellKnownSymbolDefine;\n\n// `Symbol.matchAll` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.matchall\ndefineWellKnownSymbol$f('matchAll');\n\nvar defineWellKnownSymbol$e = wellKnownSymbolDefine;\n\n// `Symbol.replace` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.replace\ndefineWellKnownSymbol$e('replace');\n\nvar defineWellKnownSymbol$d = wellKnownSymbolDefine;\n\n// `Symbol.search` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.search\ndefineWellKnownSymbol$d('search');\n\nvar defineWellKnownSymbol$c = wellKnownSymbolDefine;\n\n// `Symbol.species` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.species\ndefineWellKnownSymbol$c('species');\n\nvar defineWellKnownSymbol$b = wellKnownSymbolDefine;\n\n// `Symbol.split` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.split\ndefineWellKnownSymbol$b('split');\n\nvar defineWellKnownSymbol$a = wellKnownSymbolDefine;\nvar defineSymbolToPrimitive = symbolDefineToPrimitive;\n\n// `Symbol.toPrimitive` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.toprimitive\ndefineWellKnownSymbol$a('toPrimitive');\n\n// `Symbol.prototype[@@toPrimitive]` method\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive\ndefineSymbolToPrimitive();\n\nvar getBuiltIn$7 = getBuiltIn$f;\nvar defineWellKnownSymbol$9 = wellKnownSymbolDefine;\nvar setToStringTag$3 = setToStringTag$7;\n\n// `Symbol.toStringTag` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.tostringtag\ndefineWellKnownSymbol$9('toStringTag');\n\n// `Symbol.prototype[@@toStringTag]` property\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag\nsetToStringTag$3(getBuiltIn$7('Symbol'), 'Symbol');\n\nvar defineWellKnownSymbol$8 = wellKnownSymbolDefine;\n\n// `Symbol.unscopables` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.unscopables\ndefineWellKnownSymbol$8('unscopables');\n\nvar global$e = global$q;\nvar setToStringTag$2 = setToStringTag$7;\n\n// JSON[@@toStringTag] property\n// https://tc39.es/ecma262/#sec-json-@@tostringtag\nsetToStringTag$2(global$e.JSON, 'JSON', true);\n\nvar path$n = path$z;\n\nvar symbol$4 = path$n.Symbol;\n\nvar parent$1b = symbol$4;\n\n\nvar symbol$3 = parent$1b;\n\nvar defineWellKnownSymbol$7 = wellKnownSymbolDefine;\n\n// `Symbol.dispose` well-known symbol\n// https://github.com/tc39/proposal-explicit-resource-management\ndefineWellKnownSymbol$7('dispose');\n\nvar parent$1a = symbol$3;\n\n\n\nvar symbol$2 = parent$1a;\n\nvar defineWellKnownSymbol$6 = wellKnownSymbolDefine;\n\n// `Symbol.asyncDispose` well-known symbol\n// https://github.com/tc39/proposal-async-explicit-resource-management\ndefineWellKnownSymbol$6('asyncDispose');\n\nvar $$M = _export;\nvar getBuiltIn$6 = getBuiltIn$f;\nvar uncurryThis$e = functionUncurryThis;\n\nvar Symbol$4 = getBuiltIn$6('Symbol');\nvar keyFor = Symbol$4.keyFor;\nvar thisSymbolValue$1 = uncurryThis$e(Symbol$4.prototype.valueOf);\n\n// `Symbol.isRegistered` method\n// https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregistered\n$$M({ target: 'Symbol', stat: true }, {\n isRegistered: function isRegistered(value) {\n try {\n return keyFor(thisSymbolValue$1(value)) !== undefined;\n } catch (error) {\n return false;\n }\n }\n});\n\nvar $$L = _export;\nvar shared = sharedExports;\nvar getBuiltIn$5 = getBuiltIn$f;\nvar uncurryThis$d = functionUncurryThis;\nvar isSymbol = isSymbol$5;\nvar wellKnownSymbol$7 = wellKnownSymbol$o;\n\nvar Symbol$3 = getBuiltIn$5('Symbol');\nvar $isWellKnown = Symbol$3.isWellKnown;\nvar getOwnPropertyNames$4 = getBuiltIn$5('Object', 'getOwnPropertyNames');\nvar thisSymbolValue = uncurryThis$d(Symbol$3.prototype.valueOf);\nvar WellKnownSymbolsStore = shared('wks');\n\nfor (var i = 0, symbolKeys = getOwnPropertyNames$4(Symbol$3), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) {\n // some old engines throws on access to some keys like `arguments` or `caller`\n try {\n var symbolKey = symbolKeys[i];\n if (isSymbol(Symbol$3[symbolKey])) wellKnownSymbol$7(symbolKey);\n } catch (error) { /* empty */ }\n}\n\n// `Symbol.isWellKnown` method\n// https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknown\n// We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected\n$$L({ target: 'Symbol', stat: true, forced: true }, {\n isWellKnown: function isWellKnown(value) {\n if ($isWellKnown && $isWellKnown(value)) return true;\n try {\n var symbol = thisSymbolValue(value);\n for (var j = 0, keys = getOwnPropertyNames$4(WellKnownSymbolsStore), keysLength = keys.length; j < keysLength; j++) {\n if (WellKnownSymbolsStore[keys[j]] == symbol) return true;\n }\n } catch (error) { /* empty */ }\n return false;\n }\n});\n\nvar defineWellKnownSymbol$5 = wellKnownSymbolDefine;\n\n// `Symbol.matcher` well-known symbol\n// https://github.com/tc39/proposal-pattern-matching\ndefineWellKnownSymbol$5('matcher');\n\nvar defineWellKnownSymbol$4 = wellKnownSymbolDefine;\n\n// `Symbol.metadataKey` well-known symbol\n// https://github.com/tc39/proposal-decorator-metadata\ndefineWellKnownSymbol$4('metadataKey');\n\nvar defineWellKnownSymbol$3 = wellKnownSymbolDefine;\n\n// `Symbol.observable` well-known symbol\n// https://github.com/tc39/proposal-observable\ndefineWellKnownSymbol$3('observable');\n\n// TODO: Remove from `core-js@4`\nvar defineWellKnownSymbol$2 = wellKnownSymbolDefine;\n\n// `Symbol.metadata` well-known symbol\n// https://github.com/tc39/proposal-decorators\ndefineWellKnownSymbol$2('metadata');\n\n// TODO: remove from `core-js@4`\nvar defineWellKnownSymbol$1 = wellKnownSymbolDefine;\n\n// `Symbol.patternMatch` well-known symbol\n// https://github.com/tc39/proposal-pattern-matching\ndefineWellKnownSymbol$1('patternMatch');\n\n// TODO: remove from `core-js@4`\nvar defineWellKnownSymbol = wellKnownSymbolDefine;\n\ndefineWellKnownSymbol('replaceAll');\n\nvar parent$19 = symbol$2;\n\n\n\n\n\n\n// TODO: Remove from `core-js@4`\n\n\n\n\nvar symbol$1 = parent$19;\n\n(function (module) {\n\tmodule.exports = symbol$1;\n} (symbol$5));\n\n(function (module) {\n\tmodule.exports = symbolExports$1;\n} (symbol$6));\n\nvar _Symbol$1 = /*@__PURE__*/getDefaultExportFromCjs(symbolExports$2);\n\nvar iteratorExports$2 = {};\nvar iterator$6 = {\n get exports(){ return iteratorExports$2; },\n set exports(v){ iteratorExports$2 = v; },\n};\n\nvar iteratorExports$1 = {};\nvar iterator$5 = {\n get exports(){ return iteratorExports$1; },\n set exports(v){ iteratorExports$1 = v; },\n};\n\nvar WrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped;\n\nvar iterator$4 = WrappedWellKnownSymbolModule$1.f('iterator');\n\nvar parent$18 = iterator$4;\n\n\nvar iterator$3 = parent$18;\n\nvar parent$17 = iterator$3;\n\nvar iterator$2 = parent$17;\n\nvar parent$16 = iterator$2;\n\nvar iterator$1 = parent$16;\n\n(function (module) {\n\tmodule.exports = iterator$1;\n} (iterator$5));\n\n(function (module) {\n\tmodule.exports = iteratorExports$1;\n} (iterator$6));\n\nvar _Symbol$iterator$1 = /*@__PURE__*/getDefaultExportFromCjs(iteratorExports$2);\n\nfunction _typeof$1(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof$1 = \"function\" == typeof _Symbol$1 && \"symbol\" == typeof _Symbol$iterator$1 ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof _Symbol$1 && obj.constructor === _Symbol$1 && obj !== _Symbol$1.prototype ? \"symbol\" : typeof obj;\n }, _typeof$1(obj);\n}\n\nvar toPrimitiveExports$1 = {};\nvar toPrimitive$5 = {\n get exports(){ return toPrimitiveExports$1; },\n set exports(v){ toPrimitiveExports$1 = v; },\n};\n\nvar toPrimitiveExports = {};\nvar toPrimitive$4 = {\n get exports(){ return toPrimitiveExports; },\n set exports(v){ toPrimitiveExports = v; },\n};\n\nvar WrappedWellKnownSymbolModule = wellKnownSymbolWrapped;\n\nvar toPrimitive$3 = WrappedWellKnownSymbolModule.f('toPrimitive');\n\nvar parent$15 = toPrimitive$3;\n\nvar toPrimitive$2 = parent$15;\n\nvar parent$14 = toPrimitive$2;\n\nvar toPrimitive$1 = parent$14;\n\nvar parent$13 = toPrimitive$1;\n\nvar toPrimitive = parent$13;\n\n(function (module) {\n\tmodule.exports = toPrimitive;\n} (toPrimitive$4));\n\n(function (module) {\n\tmodule.exports = toPrimitiveExports;\n} (toPrimitive$5));\n\nvar _Symbol$toPrimitive = /*@__PURE__*/getDefaultExportFromCjs(toPrimitiveExports$1);\n\nfunction _toPrimitive(input, hint) {\n if (_typeof$1(input) !== \"object\" || input === null) return input;\n var prim = input[_Symbol$toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof$1(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}\n\nfunction _toPropertyKey(arg) {\n var key = _toPrimitive(arg, \"string\");\n return _typeof$1(key) === \"symbol\" ? key : String(key);\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n _Object$defineProperty(target, _toPropertyKey(descriptor.key), descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n _Object$defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _defineProperty(obj, key, value) {\n key = _toPropertyKey(key);\n if (key in obj) {\n _Object$defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\n\nvar isArrayExports$2 = {};\nvar isArray$c = {\n get exports(){ return isArrayExports$2; },\n set exports(v){ isArrayExports$2 = v; },\n};\n\nvar isArrayExports$1 = {};\nvar isArray$b = {\n get exports(){ return isArrayExports$1; },\n set exports(v){ isArrayExports$1 = v; },\n};\n\nvar $$K = _export;\nvar isArray$a = isArray$g;\n\n// `Array.isArray` method\n// https://tc39.es/ecma262/#sec-array.isarray\n$$K({ target: 'Array', stat: true }, {\n isArray: isArray$a\n});\n\nvar path$m = path$z;\n\nvar isArray$9 = path$m.Array.isArray;\n\nvar parent$12 = isArray$9;\n\nvar isArray$8 = parent$12;\n\nvar parent$11 = isArray$8;\n\nvar isArray$7 = parent$11;\n\nvar parent$10 = isArray$7;\n\nvar isArray$6 = parent$10;\n\n(function (module) {\n\tmodule.exports = isArray$6;\n} (isArray$b));\n\n(function (module) {\n\tmodule.exports = isArrayExports$1;\n} (isArray$c));\n\nvar _Array$isArray$1 = /*@__PURE__*/getDefaultExportFromCjs(isArrayExports$2);\n\nfunction _arrayWithHoles(arr) {\n if (_Array$isArray$1(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _i = null == arr ? null : \"undefined\" != typeof _Symbol$1 && _getIteratorMethod(arr) || arr[\"@@iterator\"];\n if (null != _i) {\n var _s,\n _e,\n _x,\n _r,\n _arr = [],\n _n = !0,\n _d = !1;\n try {\n if (_x = (_i = _i.call(arr)).next, 0 === i) {\n if (Object(_i) !== _i) return;\n _n = !1;\n } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);\n } catch (err) {\n _d = !0, _e = err;\n } finally {\n try {\n if (!_n && null != _i[\"return\"] && (_r = _i[\"return\"](), Object(_r) !== _r)) return;\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n}\n\nvar sliceExports$2 = {};\nvar slice$7 = {\n get exports(){ return sliceExports$2; },\n set exports(v){ sliceExports$2 = v; },\n};\n\nvar sliceExports$1 = {};\nvar slice$6 = {\n get exports(){ return sliceExports$1; },\n set exports(v){ sliceExports$1 = v; },\n};\n\nvar $$J = _export;\nvar isArray$5 = isArray$g;\nvar isConstructor$1 = isConstructor$4;\nvar isObject$c = isObject$m;\nvar toAbsoluteIndex$2 = toAbsoluteIndex$5;\nvar lengthOfArrayLike$7 = lengthOfArrayLike$d;\nvar toIndexedObject$1 = toIndexedObject$b;\nvar createProperty$1 = createProperty$6;\nvar wellKnownSymbol$6 = wellKnownSymbol$o;\nvar arrayMethodHasSpeciesSupport$3 = arrayMethodHasSpeciesSupport$5;\nvar nativeSlice = arraySlice$6;\n\nvar HAS_SPECIES_SUPPORT$3 = arrayMethodHasSpeciesSupport$3('slice');\n\nvar SPECIES$3 = wellKnownSymbol$6('species');\nvar $Array = Array;\nvar max$1 = Math.max;\n\n// `Array.prototype.slice` method\n// https://tc39.es/ecma262/#sec-array.prototype.slice\n// fallback for not array-like ES3 strings and DOM objects\n$$J({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {\n slice: function slice(start, end) {\n var O = toIndexedObject$1(this);\n var length = lengthOfArrayLike$7(O);\n var k = toAbsoluteIndex$2(start, length);\n var fin = toAbsoluteIndex$2(end === undefined ? length : end, length);\n // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible\n var Constructor, result, n;\n if (isArray$5(O)) {\n Constructor = O.constructor;\n // cross-realm fallback\n if (isConstructor$1(Constructor) && (Constructor === $Array || isArray$5(Constructor.prototype))) {\n Constructor = undefined;\n } else if (isObject$c(Constructor)) {\n Constructor = Constructor[SPECIES$3];\n if (Constructor === null) Constructor = undefined;\n }\n if (Constructor === $Array || Constructor === undefined) {\n return nativeSlice(O, k, fin);\n }\n }\n result = new (Constructor === undefined ? $Array : Constructor)(max$1(fin - k, 0));\n for (n = 0; k < fin; k++, n++) if (k in O) createProperty$1(result, n, O[k]);\n result.length = n;\n return result;\n }\n});\n\nvar entryVirtual$j = entryVirtual$l;\n\nvar slice$5 = entryVirtual$j('Array').slice;\n\nvar isPrototypeOf$l = objectIsPrototypeOf;\nvar method$h = slice$5;\n\nvar ArrayPrototype$h = Array.prototype;\n\nvar slice$4 = function (it) {\n var own = it.slice;\n return it === ArrayPrototype$h || (isPrototypeOf$l(ArrayPrototype$h, it) && own === ArrayPrototype$h.slice) ? method$h : own;\n};\n\nvar parent$$ = slice$4;\n\nvar slice$3 = parent$$;\n\nvar parent$_ = slice$3;\n\nvar slice$2 = parent$_;\n\nvar parent$Z = slice$2;\n\nvar slice$1 = parent$Z;\n\n(function (module) {\n\tmodule.exports = slice$1;\n} (slice$6));\n\n(function (module) {\n\tmodule.exports = sliceExports$1;\n} (slice$7));\n\nvar _sliceInstanceProperty$1 = /*@__PURE__*/getDefaultExportFromCjs(sliceExports$2);\n\nvar fromExports$1 = {};\nvar from$3 = {\n get exports(){ return fromExports$1; },\n set exports(v){ fromExports$1 = v; },\n};\n\nvar fromExports = {};\nvar from$2 = {\n get exports(){ return fromExports; },\n set exports(v){ fromExports = v; },\n};\n\nvar parent$Y = from$4;\n\nvar from$1 = parent$Y;\n\nvar parent$X = from$1;\n\nvar from = parent$X;\n\n(function (module) {\n\tmodule.exports = from;\n} (from$2));\n\n(function (module) {\n\tmodule.exports = fromExports;\n} (from$3));\n\nvar _Array$from = /*@__PURE__*/getDefaultExportFromCjs(fromExports$1);\n\nfunction _arrayLikeToArray$8(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\n\nfunction _unsupportedIterableToArray$8(o, minLen) {\n var _context;\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray$8(o, minLen);\n var n = _sliceInstanceProperty$1(_context = Object.prototype.toString.call(o)).call(_context, 8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return _Array$from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$8(o, minLen);\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$8(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (_Array$isArray$1(arr)) return _arrayLikeToArray$8(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof _Symbol$1 !== \"undefined\" && _getIteratorMethod(iter) != null || iter[\"@@iterator\"] != null) return _Array$from(iter);\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$8(arr) || _nonIterableSpread();\n}\n\nvar symbolExports = {};\nvar symbol = {\n get exports(){ return symbolExports; },\n set exports(v){ symbolExports = v; },\n};\n\n(function (module) {\n\tmodule.exports = symbol$3;\n} (symbol));\n\nvar _Symbol = /*@__PURE__*/getDefaultExportFromCjs(symbolExports);\n\nvar concatExports = {};\nvar concat$3 = {\n get exports(){ return concatExports; },\n set exports(v){ concatExports = v; },\n};\n\nvar entryVirtual$i = entryVirtual$l;\n\nvar concat$2 = entryVirtual$i('Array').concat;\n\nvar isPrototypeOf$k = objectIsPrototypeOf;\nvar method$g = concat$2;\n\nvar ArrayPrototype$g = Array.prototype;\n\nvar concat$1 = function (it) {\n var own = it.concat;\n return it === ArrayPrototype$g || (isPrototypeOf$k(ArrayPrototype$g, it) && own === ArrayPrototype$g.concat) ? method$g : own;\n};\n\nvar parent$W = concat$1;\n\nvar concat = parent$W;\n\n(function (module) {\n\tmodule.exports = concat;\n} (concat$3));\n\nvar _concatInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(concatExports);\n\nvar sliceExports = {};\nvar slice = {\n get exports(){ return sliceExports; },\n set exports(v){ sliceExports = v; },\n};\n\n(function (module) {\n\tmodule.exports = slice$3;\n} (slice));\n\nvar _sliceInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(sliceExports);\n\nvar ownKeysExports = {};\nvar ownKeys$9 = {\n get exports(){ return ownKeysExports; },\n set exports(v){ ownKeysExports = v; },\n};\n\nvar $$I = _export;\nvar ownKeys$8 = ownKeys$b;\n\n// `Reflect.ownKeys` method\n// https://tc39.es/ecma262/#sec-reflect.ownkeys\n$$I({ target: 'Reflect', stat: true }, {\n ownKeys: ownKeys$8\n});\n\nvar path$l = path$z;\n\nvar ownKeys$7 = path$l.Reflect.ownKeys;\n\nvar parent$V = ownKeys$7;\n\nvar ownKeys$6 = parent$V;\n\n(function (module) {\n\tmodule.exports = ownKeys$6;\n} (ownKeys$9));\n\nvar _Reflect$ownKeys = /*@__PURE__*/getDefaultExportFromCjs(ownKeysExports);\n\nvar isArrayExports = {};\nvar isArray$4 = {\n get exports(){ return isArrayExports; },\n set exports(v){ isArrayExports = v; },\n};\n\n(function (module) {\n\tmodule.exports = isArray$8;\n} (isArray$4));\n\nvar _Array$isArray = /*@__PURE__*/getDefaultExportFromCjs(isArrayExports);\n\nvar mapExports$1 = {};\nvar map$6 = {\n get exports(){ return mapExports$1; },\n set exports(v){ mapExports$1 = v; },\n};\n\nvar $$H = _export;\nvar $map = arrayIteration.map;\nvar arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$5;\n\nvar HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport$2('map');\n\n// `Array.prototype.map` method\n// https://tc39.es/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$$H({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\nvar entryVirtual$h = entryVirtual$l;\n\nvar map$5 = entryVirtual$h('Array').map;\n\nvar isPrototypeOf$j = objectIsPrototypeOf;\nvar method$f = map$5;\n\nvar ArrayPrototype$f = Array.prototype;\n\nvar map$4 = function (it) {\n var own = it.map;\n return it === ArrayPrototype$f || (isPrototypeOf$j(ArrayPrototype$f, it) && own === ArrayPrototype$f.map) ? method$f : own;\n};\n\nvar parent$U = map$4;\n\nvar map$3 = parent$U;\n\n(function (module) {\n\tmodule.exports = map$3;\n} (map$6));\n\nvar _mapInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(mapExports$1);\n\nvar keysExports$1 = {};\nvar keys$6 = {\n get exports(){ return keysExports$1; },\n set exports(v){ keysExports$1 = v; },\n};\n\nvar $$G = _export;\nvar toObject$6 = toObject$e;\nvar nativeKeys = objectKeys$4;\nvar fails$h = fails$z;\n\nvar FAILS_ON_PRIMITIVES$3 = fails$h(function () { nativeKeys(1); });\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n$$G({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$3 }, {\n keys: function keys(it) {\n return nativeKeys(toObject$6(it));\n }\n});\n\nvar path$k = path$z;\n\nvar keys$5 = path$k.Object.keys;\n\nvar parent$T = keys$5;\n\nvar keys$4 = parent$T;\n\n(function (module) {\n\tmodule.exports = keys$4;\n} (keys$6));\n\nvar _Object$keys = /*@__PURE__*/getDefaultExportFromCjs(keysExports$1);\n\nvar nowExports = {};\nvar now$3 = {\n get exports(){ return nowExports; },\n set exports(v){ nowExports = v; },\n};\n\n// TODO: Remove from `core-js@4`\nvar $$F = _export;\nvar uncurryThis$c = functionUncurryThis;\n\nvar $Date = Date;\nvar thisTimeValue = uncurryThis$c($Date.prototype.getTime);\n\n// `Date.now` method\n// https://tc39.es/ecma262/#sec-date.now\n$$F({ target: 'Date', stat: true }, {\n now: function now() {\n return thisTimeValue(new $Date());\n }\n});\n\nvar path$j = path$z;\n\nvar now$2 = path$j.Date.now;\n\nvar parent$S = now$2;\n\nvar now$1 = parent$S;\n\n(function (module) {\n\tmodule.exports = now$1;\n} (now$3));\n\nvar _Date$now = /*@__PURE__*/getDefaultExportFromCjs(nowExports);\n\nvar forEachExports$2 = {};\nvar forEach$a = {\n get exports(){ return forEachExports$2; },\n set exports(v){ forEachExports$2 = v; },\n};\n\nvar fails$g = fails$z;\n\nvar arrayMethodIsStrict$6 = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails$g(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n};\n\nvar $forEach = arrayIteration.forEach;\nvar arrayMethodIsStrict$5 = arrayMethodIsStrict$6;\n\nvar STRICT_METHOD$3 = arrayMethodIsStrict$5('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\nvar arrayForEach = !STRICT_METHOD$3 ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n} : [].forEach;\n\nvar $$E = _export;\nvar forEach$9 = arrayForEach;\n\n// `Array.prototype.forEach` method\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n$$E({ target: 'Array', proto: true, forced: [].forEach != forEach$9 }, {\n forEach: forEach$9\n});\n\nvar entryVirtual$g = entryVirtual$l;\n\nvar forEach$8 = entryVirtual$g('Array').forEach;\n\nvar parent$R = forEach$8;\n\nvar forEach$7 = parent$R;\n\nvar classof$6 = classof$f;\nvar hasOwn$8 = hasOwnProperty_1;\nvar isPrototypeOf$i = objectIsPrototypeOf;\nvar method$e = forEach$7;\n\nvar ArrayPrototype$e = Array.prototype;\n\nvar DOMIterables$3 = {\n DOMTokenList: true,\n NodeList: true\n};\n\nvar forEach$6 = function (it) {\n var own = it.forEach;\n return it === ArrayPrototype$e || (isPrototypeOf$i(ArrayPrototype$e, it) && own === ArrayPrototype$e.forEach)\n || hasOwn$8(DOMIterables$3, classof$6(it)) ? method$e : own;\n};\n\n(function (module) {\n\tmodule.exports = forEach$6;\n} (forEach$a));\n\nvar _forEachInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(forEachExports$2);\n\nvar reverseExports$2 = {};\nvar reverse$7 = {\n get exports(){ return reverseExports$2; },\n set exports(v){ reverseExports$2 = v; },\n};\n\nvar $$D = _export;\nvar uncurryThis$b = functionUncurryThis;\nvar isArray$3 = isArray$g;\n\nvar nativeReverse = uncurryThis$b([].reverse);\nvar test$1 = [1, 2];\n\n// `Array.prototype.reverse` method\n// https://tc39.es/ecma262/#sec-array.prototype.reverse\n// fix for Safari 12.0 bug\n// https://bugs.webkit.org/show_bug.cgi?id=188794\n$$D({ target: 'Array', proto: true, forced: String(test$1) === String(test$1.reverse()) }, {\n reverse: function reverse() {\n // eslint-disable-next-line no-self-assign -- dirty hack\n if (isArray$3(this)) this.length = this.length;\n return nativeReverse(this);\n }\n});\n\nvar entryVirtual$f = entryVirtual$l;\n\nvar reverse$6 = entryVirtual$f('Array').reverse;\n\nvar isPrototypeOf$h = objectIsPrototypeOf;\nvar method$d = reverse$6;\n\nvar ArrayPrototype$d = Array.prototype;\n\nvar reverse$5 = function (it) {\n var own = it.reverse;\n return it === ArrayPrototype$d || (isPrototypeOf$h(ArrayPrototype$d, it) && own === ArrayPrototype$d.reverse) ? method$d : own;\n};\n\nvar parent$Q = reverse$5;\n\nvar reverse$4 = parent$Q;\n\n(function (module) {\n\tmodule.exports = reverse$4;\n} (reverse$7));\n\nvar _reverseInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(reverseExports$2);\n\nvar spliceExports = {};\nvar splice$4 = {\n get exports(){ return spliceExports; },\n set exports(v){ spliceExports = v; },\n};\n\nvar DESCRIPTORS$5 = descriptors;\nvar isArray$2 = isArray$g;\n\nvar $TypeError$8 = TypeError;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor$5 = Object.getOwnPropertyDescriptor;\n\n// Safari < 13 does not throw an error in this case\nvar SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$5 && !function () {\n // makes no sense without proper strict mode support\n if (this !== undefined) return true;\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).length = 1;\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\nvar arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {\n if (isArray$2(O) && !getOwnPropertyDescriptor$5(O, 'length').writable) {\n throw $TypeError$8('Cannot set read only .length');\n } return O.length = length;\n} : function (O, length) {\n return O.length = length;\n};\n\nvar tryToString$2 = tryToString$6;\n\nvar $TypeError$7 = TypeError;\n\nvar deletePropertyOrThrow$2 = function (O, P) {\n if (!delete O[P]) throw $TypeError$7('Cannot delete property ' + tryToString$2(P) + ' of ' + tryToString$2(O));\n};\n\nvar $$C = _export;\nvar toObject$5 = toObject$e;\nvar toAbsoluteIndex$1 = toAbsoluteIndex$5;\nvar toIntegerOrInfinity = toIntegerOrInfinity$4;\nvar lengthOfArrayLike$6 = lengthOfArrayLike$d;\nvar setArrayLength = arraySetLength;\nvar doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$3;\nvar arraySpeciesCreate$1 = arraySpeciesCreate$4;\nvar createProperty = createProperty$6;\nvar deletePropertyOrThrow$1 = deletePropertyOrThrow$2;\nvar arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$5;\n\nvar HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('splice');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// `Array.prototype.splice` method\n// https://tc39.es/ecma262/#sec-array.prototype.splice\n// with adding support of @@species\n$$C({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {\n splice: function splice(start, deleteCount /* , ...items */) {\n var O = toObject$5(this);\n var len = lengthOfArrayLike$6(O);\n var actualStart = toAbsoluteIndex$1(start, len);\n var argumentsLength = arguments.length;\n var insertCount, actualDeleteCount, A, k, from, to;\n if (argumentsLength === 0) {\n insertCount = actualDeleteCount = 0;\n } else if (argumentsLength === 1) {\n insertCount = 0;\n actualDeleteCount = len - actualStart;\n } else {\n insertCount = argumentsLength - 2;\n actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);\n }\n doesNotExceedSafeInteger$1(len + insertCount - actualDeleteCount);\n A = arraySpeciesCreate$1(O, actualDeleteCount);\n for (k = 0; k < actualDeleteCount; k++) {\n from = actualStart + k;\n if (from in O) createProperty(A, k, O[from]);\n }\n A.length = actualDeleteCount;\n if (insertCount < actualDeleteCount) {\n for (k = actualStart; k < len - actualDeleteCount; k++) {\n from = k + actualDeleteCount;\n to = k + insertCount;\n if (from in O) O[to] = O[from];\n else deletePropertyOrThrow$1(O, to);\n }\n for (k = len; k > len - actualDeleteCount + insertCount; k--) deletePropertyOrThrow$1(O, k - 1);\n } else if (insertCount > actualDeleteCount) {\n for (k = len - actualDeleteCount; k > actualStart; k--) {\n from = k + actualDeleteCount - 1;\n to = k + insertCount - 1;\n if (from in O) O[to] = O[from];\n else deletePropertyOrThrow$1(O, to);\n }\n }\n for (k = 0; k < insertCount; k++) {\n O[k + actualStart] = arguments[k + 2];\n }\n setArrayLength(O, len - actualDeleteCount + insertCount);\n return A;\n }\n});\n\nvar entryVirtual$e = entryVirtual$l;\n\nvar splice$3 = entryVirtual$e('Array').splice;\n\nvar isPrototypeOf$g = objectIsPrototypeOf;\nvar method$c = splice$3;\n\nvar ArrayPrototype$c = Array.prototype;\n\nvar splice$2 = function (it) {\n var own = it.splice;\n return it === ArrayPrototype$c || (isPrototypeOf$g(ArrayPrototype$c, it) && own === ArrayPrototype$c.splice) ? method$c : own;\n};\n\nvar parent$P = splice$2;\n\nvar splice$1 = parent$P;\n\n(function (module) {\n\tmodule.exports = splice$1;\n} (splice$4));\n\nvar _spliceInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(spliceExports);\n\nvar includesExports = {};\nvar includes$4 = {\n get exports(){ return includesExports; },\n set exports(v){ includesExports = v; },\n};\n\nvar $$B = _export;\nvar $includes = arrayIncludes.includes;\nvar fails$f = fails$z;\n\n// FF99+ bug\nvar BROKEN_ON_SPARSE = fails$f(function () {\n // eslint-disable-next-line es/no-array-prototype-includes -- detection\n return !Array(1).includes();\n});\n\n// `Array.prototype.includes` method\n// https://tc39.es/ecma262/#sec-array.prototype.includes\n$$B({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\nvar entryVirtual$d = entryVirtual$l;\n\nvar includes$3 = entryVirtual$d('Array').includes;\n\nvar isObject$b = isObject$m;\nvar classof$5 = classofRaw$2;\nvar wellKnownSymbol$5 = wellKnownSymbol$o;\n\nvar MATCH$1 = wellKnownSymbol$5('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nvar isRegexp = function (it) {\n var isRegExp;\n return isObject$b(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$5(it) == 'RegExp');\n};\n\nvar isRegExp = isRegexp;\n\nvar $TypeError$6 = TypeError;\n\nvar notARegexp = function (it) {\n if (isRegExp(it)) {\n throw $TypeError$6(\"The method doesn't accept regular expressions\");\n } return it;\n};\n\nvar wellKnownSymbol$4 = wellKnownSymbol$o;\n\nvar MATCH = wellKnownSymbol$4('match');\n\nvar correctIsRegexpLogic = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (error1) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (error2) { /* empty */ }\n } return false;\n};\n\nvar $$A = _export;\nvar uncurryThis$a = functionUncurryThis;\nvar notARegExp = notARegexp;\nvar requireObjectCoercible$1 = requireObjectCoercible$5;\nvar toString$5 = toString$b;\nvar correctIsRegExpLogic = correctIsRegexpLogic;\n\nvar stringIndexOf = uncurryThis$a(''.indexOf);\n\n// `String.prototype.includes` method\n// https://tc39.es/ecma262/#sec-string.prototype.includes\n$$A({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~stringIndexOf(\n toString$5(requireObjectCoercible$1(this)),\n toString$5(notARegExp(searchString)),\n arguments.length > 1 ? arguments[1] : undefined\n );\n }\n});\n\nvar entryVirtual$c = entryVirtual$l;\n\nvar includes$2 = entryVirtual$c('String').includes;\n\nvar isPrototypeOf$f = objectIsPrototypeOf;\nvar arrayMethod = includes$3;\nvar stringMethod = includes$2;\n\nvar ArrayPrototype$b = Array.prototype;\nvar StringPrototype$1 = String.prototype;\n\nvar includes$1 = function (it) {\n var own = it.includes;\n if (it === ArrayPrototype$b || (isPrototypeOf$f(ArrayPrototype$b, it) && own === ArrayPrototype$b.includes)) return arrayMethod;\n if (typeof it == 'string' || it === StringPrototype$1 || (isPrototypeOf$f(StringPrototype$1, it) && own === StringPrototype$1.includes)) {\n return stringMethod;\n } return own;\n};\n\nvar parent$O = includes$1;\n\nvar includes = parent$O;\n\n(function (module) {\n\tmodule.exports = includes;\n} (includes$4));\n\nvar _includesInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(includesExports);\n\nvar getPrototypeOfExports$2 = {};\nvar getPrototypeOf$8 = {\n get exports(){ return getPrototypeOfExports$2; },\n set exports(v){ getPrototypeOfExports$2 = v; },\n};\n\nvar $$z = _export;\nvar fails$e = fails$z;\nvar toObject$4 = toObject$e;\nvar nativeGetPrototypeOf = objectGetPrototypeOf;\nvar CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;\n\nvar FAILS_ON_PRIMITIVES$2 = fails$e(function () { nativeGetPrototypeOf(1); });\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n$$z({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$2, sham: !CORRECT_PROTOTYPE_GETTER }, {\n getPrototypeOf: function getPrototypeOf(it) {\n return nativeGetPrototypeOf(toObject$4(it));\n }\n});\n\nvar path$i = path$z;\n\nvar getPrototypeOf$7 = path$i.Object.getPrototypeOf;\n\nvar parent$N = getPrototypeOf$7;\n\nvar getPrototypeOf$6 = parent$N;\n\n(function (module) {\n\tmodule.exports = getPrototypeOf$6;\n} (getPrototypeOf$8));\n\nvar _Object$getPrototypeOf$1 = /*@__PURE__*/getDefaultExportFromCjs(getPrototypeOfExports$2);\n\nvar filterExports = {};\nvar filter$3 = {\n get exports(){ return filterExports; },\n set exports(v){ filterExports = v; },\n};\n\nvar $$y = _export;\nvar $filter = arrayIteration.filter;\nvar arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$5;\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');\n\n// `Array.prototype.filter` method\n// https://tc39.es/ecma262/#sec-array.prototype.filter\n// with adding support of @@species\n$$y({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\nvar entryVirtual$b = entryVirtual$l;\n\nvar filter$2 = entryVirtual$b('Array').filter;\n\nvar isPrototypeOf$e = objectIsPrototypeOf;\nvar method$b = filter$2;\n\nvar ArrayPrototype$a = Array.prototype;\n\nvar filter$1 = function (it) {\n var own = it.filter;\n return it === ArrayPrototype$a || (isPrototypeOf$e(ArrayPrototype$a, it) && own === ArrayPrototype$a.filter) ? method$b : own;\n};\n\nvar parent$M = filter$1;\n\nvar filter = parent$M;\n\n(function (module) {\n\tmodule.exports = filter;\n} (filter$3));\n\nvar _filterInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(filterExports);\n\nvar valuesExports$1 = {};\nvar values$6 = {\n get exports(){ return valuesExports$1; },\n set exports(v){ valuesExports$1 = v; },\n};\n\nvar DESCRIPTORS$4 = descriptors;\nvar uncurryThis$9 = functionUncurryThis;\nvar objectKeys = objectKeys$4;\nvar toIndexedObject = toIndexedObject$b;\nvar $propertyIsEnumerable = objectPropertyIsEnumerable.f;\n\nvar propertyIsEnumerable = uncurryThis$9($propertyIsEnumerable);\nvar push$3 = uncurryThis$9([].push);\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod$2 = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS$4 || propertyIsEnumerable(O, key)) {\n push$3(result, TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nvar objectToArray = {\n // `Object.entries` method\n // https://tc39.es/ecma262/#sec-object.entries\n entries: createMethod$2(true),\n // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n values: createMethod$2(false)\n};\n\nvar $$x = _export;\nvar $values = objectToArray.values;\n\n// `Object.values` method\n// https://tc39.es/ecma262/#sec-object.values\n$$x({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n\nvar path$h = path$z;\n\nvar values$5 = path$h.Object.values;\n\nvar parent$L = values$5;\n\nvar values$4 = parent$L;\n\n(function (module) {\n\tmodule.exports = values$4;\n} (values$6));\n\nvar _parseIntExports = {};\nvar _parseInt$3 = {\n get exports(){ return _parseIntExports; },\n set exports(v){ _parseIntExports = v; },\n};\n\n// a string of all valid unicode whitespaces\nvar whitespaces$4 = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002' +\n '\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n\nvar uncurryThis$8 = functionUncurryThis;\nvar requireObjectCoercible = requireObjectCoercible$5;\nvar toString$4 = toString$b;\nvar whitespaces$3 = whitespaces$4;\n\nvar replace$1 = uncurryThis$8(''.replace);\nvar ltrim = RegExp('^[' + whitespaces$3 + ']+');\nvar rtrim = RegExp('(^|[^' + whitespaces$3 + '])[' + whitespaces$3 + ']+$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod$1 = function (TYPE) {\n return function ($this) {\n var string = toString$4(requireObjectCoercible($this));\n if (TYPE & 1) string = replace$1(string, ltrim, '');\n if (TYPE & 2) string = replace$1(string, rtrim, '$1');\n return string;\n };\n};\n\nvar stringTrim = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod$1(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod$1(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod$1(3)\n};\n\nvar global$d = global$q;\nvar fails$d = fails$z;\nvar uncurryThis$7 = functionUncurryThis;\nvar toString$3 = toString$b;\nvar trim$5 = stringTrim.trim;\nvar whitespaces$2 = whitespaces$4;\n\nvar $parseInt$1 = global$d.parseInt;\nvar Symbol$2 = global$d.Symbol;\nvar ITERATOR$1 = Symbol$2 && Symbol$2.iterator;\nvar hex = /^[+-]?0x/i;\nvar exec = uncurryThis$7(hex.exec);\nvar FORCED$6 = $parseInt$1(whitespaces$2 + '08') !== 8 || $parseInt$1(whitespaces$2 + '0x16') !== 22\n // MS Edge 18- broken with boxed symbols\n || (ITERATOR$1 && !fails$d(function () { $parseInt$1(Object(ITERATOR$1)); }));\n\n// `parseInt` method\n// https://tc39.es/ecma262/#sec-parseint-string-radix\nvar numberParseInt = FORCED$6 ? function parseInt(string, radix) {\n var S = trim$5(toString$3(string));\n return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));\n} : $parseInt$1;\n\nvar $$w = _export;\nvar $parseInt = numberParseInt;\n\n// `parseInt` method\n// https://tc39.es/ecma262/#sec-parseint-string-radix\n$$w({ global: true, forced: parseInt != $parseInt }, {\n parseInt: $parseInt\n});\n\nvar path$g = path$z;\n\nvar _parseInt$2 = path$g.parseInt;\n\nvar parent$K = _parseInt$2;\n\nvar _parseInt$1 = parent$K;\n\n(function (module) {\n\tmodule.exports = _parseInt$1;\n} (_parseInt$3));\n\nvar _parseInt = /*@__PURE__*/getDefaultExportFromCjs(_parseIntExports);\n\nvar indexOfExports = {};\nvar indexOf$3 = {\n get exports(){ return indexOfExports; },\n set exports(v){ indexOfExports = v; },\n};\n\n/* eslint-disable es/no-array-prototype-indexof -- required for testing */\nvar $$v = _export;\nvar uncurryThis$6 = functionUncurryThisClause;\nvar $indexOf = arrayIncludes.indexOf;\nvar arrayMethodIsStrict$4 = arrayMethodIsStrict$6;\n\nvar nativeIndexOf = uncurryThis$6([].indexOf);\n\nvar NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;\nvar FORCED$5 = NEGATIVE_ZERO || !arrayMethodIsStrict$4('indexOf');\n\n// `Array.prototype.indexOf` method\n// https://tc39.es/ecma262/#sec-array.prototype.indexof\n$$v({ target: 'Array', proto: true, forced: FORCED$5 }, {\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n var fromIndex = arguments.length > 1 ? arguments[1] : undefined;\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? nativeIndexOf(this, searchElement, fromIndex) || 0\n : $indexOf(this, searchElement, fromIndex);\n }\n});\n\nvar entryVirtual$a = entryVirtual$l;\n\nvar indexOf$2 = entryVirtual$a('Array').indexOf;\n\nvar isPrototypeOf$d = objectIsPrototypeOf;\nvar method$a = indexOf$2;\n\nvar ArrayPrototype$9 = Array.prototype;\n\nvar indexOf$1 = function (it) {\n var own = it.indexOf;\n return it === ArrayPrototype$9 || (isPrototypeOf$d(ArrayPrototype$9, it) && own === ArrayPrototype$9.indexOf) ? method$a : own;\n};\n\nvar parent$J = indexOf$1;\n\nvar indexOf = parent$J;\n\n(function (module) {\n\tmodule.exports = indexOf;\n} (indexOf$3));\n\nvar _indexOfInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(indexOfExports);\n\nvar trimExports = {};\nvar trim$4 = {\n get exports(){ return trimExports; },\n set exports(v){ trimExports = v; },\n};\n\nvar PROPER_FUNCTION_NAME = functionName.PROPER;\nvar fails$c = fails$z;\nvar whitespaces$1 = whitespaces$4;\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nvar stringTrimForced = function (METHOD_NAME) {\n return fails$c(function () {\n return !!whitespaces$1[METHOD_NAME]()\n || non[METHOD_NAME]() !== non\n || (PROPER_FUNCTION_NAME && whitespaces$1[METHOD_NAME].name !== METHOD_NAME);\n });\n};\n\nvar $$u = _export;\nvar $trim = stringTrim.trim;\nvar forcedStringTrimMethod = stringTrimForced;\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$$u({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n\nvar entryVirtual$9 = entryVirtual$l;\n\nvar trim$3 = entryVirtual$9('String').trim;\n\nvar isPrototypeOf$c = objectIsPrototypeOf;\nvar method$9 = trim$3;\n\nvar StringPrototype = String.prototype;\n\nvar trim$2 = function (it) {\n var own = it.trim;\n return typeof it == 'string' || it === StringPrototype\n || (isPrototypeOf$c(StringPrototype, it) && own === StringPrototype.trim) ? method$9 : own;\n};\n\nvar parent$I = trim$2;\n\nvar trim$1 = parent$I;\n\n(function (module) {\n\tmodule.exports = trim$1;\n} (trim$4));\n\nvar createExports$2 = {};\nvar create$a = {\n get exports(){ return createExports$2; },\n set exports(v){ createExports$2 = v; },\n};\n\n// TODO: Remove from `core-js@4`\nvar $$t = _export;\nvar DESCRIPTORS$3 = descriptors;\nvar create$9 = objectCreate;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n$$t({ target: 'Object', stat: true, sham: !DESCRIPTORS$3 }, {\n create: create$9\n});\n\nvar path$f = path$z;\n\nvar Object$2 = path$f.Object;\n\nvar create$8 = function create(P, D) {\n return Object$2.create(P, D);\n};\n\nvar parent$H = create$8;\n\nvar create$7 = parent$H;\n\n(function (module) {\n\tmodule.exports = create$7;\n} (create$a));\n\nvar _Object$create$1 = /*@__PURE__*/getDefaultExportFromCjs(createExports$2);\n\nvar stringifyExports = {};\nvar stringify$2 = {\n get exports(){ return stringifyExports; },\n set exports(v){ stringifyExports = v; },\n};\n\nvar path$e = path$z;\nvar apply$3 = functionApply;\n\n// eslint-disable-next-line es/no-json -- safe\nif (!path$e.JSON) path$e.JSON = { stringify: JSON.stringify };\n\n// eslint-disable-next-line no-unused-vars -- required for `.length`\nvar stringify$1 = function stringify(it, replacer, space) {\n return apply$3(path$e.JSON.stringify, null, arguments);\n};\n\nvar parent$G = stringify$1;\n\nvar stringify = parent$G;\n\n(function (module) {\n\tmodule.exports = stringify;\n} (stringify$2));\n\nvar _JSON$stringify = /*@__PURE__*/getDefaultExportFromCjs(stringifyExports);\n\nvar setTimeoutExports = {};\nvar setTimeout$3 = {\n get exports(){ return setTimeoutExports; },\n set exports(v){ setTimeoutExports = v; },\n};\n\n/* global Bun -- Deno case */\n\nvar engineIsBun = typeof Bun == 'function' && Bun && typeof Bun.version == 'string';\n\nvar $TypeError$5 = TypeError;\n\nvar validateArgumentsLength$2 = function (passed, required) {\n if (passed < required) throw $TypeError$5('Not enough arguments');\n return passed;\n};\n\nvar global$c = global$q;\nvar apply$2 = functionApply;\nvar isCallable$5 = isCallable$m;\nvar ENGINE_IS_BUN = engineIsBun;\nvar USER_AGENT = engineUserAgent;\nvar arraySlice$2 = arraySlice$6;\nvar validateArgumentsLength$1 = validateArgumentsLength$2;\n\nvar Function$2 = global$c.Function;\n// dirty IE9- and Bun 0.3.0- checks\nvar WRAP = /MSIE .\\./.test(USER_AGENT) || ENGINE_IS_BUN && (function () {\n var version = global$c.Bun.version.split('.');\n return version.length < 3 || version[0] == 0 && (version[1] < 3 || version[1] == 3 && version[2] == 0);\n})();\n\n// IE9- / Bun 0.3.0- setTimeout / setInterval / setImmediate additional parameters fix\n// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers\n// https://github.com/oven-sh/bun/issues/1633\nvar schedulersFix$2 = function (scheduler, hasTimeArg) {\n var firstParamIndex = hasTimeArg ? 2 : 1;\n return WRAP ? function (handler, timeout /* , ...arguments */) {\n var boundArgs = validateArgumentsLength$1(arguments.length, 1) > firstParamIndex;\n var fn = isCallable$5(handler) ? handler : Function$2(handler);\n var params = boundArgs ? arraySlice$2(arguments, firstParamIndex) : [];\n var callback = boundArgs ? function () {\n apply$2(fn, this, params);\n } : fn;\n return hasTimeArg ? scheduler(callback, timeout) : scheduler(callback);\n } : scheduler;\n};\n\nvar $$s = _export;\nvar global$b = global$q;\nvar schedulersFix$1 = schedulersFix$2;\n\nvar setInterval$2 = schedulersFix$1(global$b.setInterval, true);\n\n// Bun / IE9- setInterval additional parameters fix\n// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval\n$$s({ global: true, bind: true, forced: global$b.setInterval !== setInterval$2 }, {\n setInterval: setInterval$2\n});\n\nvar $$r = _export;\nvar global$a = global$q;\nvar schedulersFix = schedulersFix$2;\n\nvar setTimeout$2 = schedulersFix(global$a.setTimeout, true);\n\n// Bun / IE9- setTimeout additional parameters fix\n// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout\n$$r({ global: true, bind: true, forced: global$a.setTimeout !== setTimeout$2 }, {\n setTimeout: setTimeout$2\n});\n\nvar path$d = path$z;\n\nvar setTimeout$1 = path$d.setTimeout;\n\n(function (module) {\n\tmodule.exports = setTimeout$1;\n} (setTimeout$3));\n\nvar _setTimeout = /*@__PURE__*/getDefaultExportFromCjs(setTimeoutExports);\n\nvar fillExports = {};\nvar fill$4 = {\n get exports(){ return fillExports; },\n set exports(v){ fillExports = v; },\n};\n\nvar toObject$3 = toObject$e;\nvar toAbsoluteIndex = toAbsoluteIndex$5;\nvar lengthOfArrayLike$5 = lengthOfArrayLike$d;\n\n// `Array.prototype.fill` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.fill\nvar arrayFill = function fill(value /* , start = 0, end = @length */) {\n var O = toObject$3(this);\n var length = lengthOfArrayLike$5(O);\n var argumentsLength = arguments.length;\n var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : undefined, length);\n var end = argumentsLength > 2 ? arguments[2] : undefined;\n var endPos = end === undefined ? length : toAbsoluteIndex(end, length);\n while (endPos > index) O[index++] = value;\n return O;\n};\n\nvar $$q = _export;\nvar fill$3 = arrayFill;\n\n// `Array.prototype.fill` method\n// https://tc39.es/ecma262/#sec-array.prototype.fill\n$$q({ target: 'Array', proto: true }, {\n fill: fill$3\n});\n\nvar entryVirtual$8 = entryVirtual$l;\n\nvar fill$2 = entryVirtual$8('Array').fill;\n\nvar isPrototypeOf$b = objectIsPrototypeOf;\nvar method$8 = fill$2;\n\nvar ArrayPrototype$8 = Array.prototype;\n\nvar fill$1 = function (it) {\n var own = it.fill;\n return it === ArrayPrototype$8 || (isPrototypeOf$b(ArrayPrototype$8, it) && own === ArrayPrototype$8.fill) ? method$8 : own;\n};\n\nvar parent$F = fill$1;\n\nvar fill = parent$F;\n\n(function (module) {\n\tmodule.exports = fill;\n} (fill$4));\n\nvar _fillInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(fillExports);\n\n/*! Hammer.JS - v2.0.17-rc - 2019-12-16\n * http://naver.github.io/egjs\n *\n * Forked By Naver egjs\n * Copyright (c) hammerjs\n * Licensed under the MIT license */\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\nfunction _assertThisInitialized$1(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\n/**\n * @private\n * extend object.\n * means that properties in dest will be overwritten by the ones in src.\n * @param {Object} target\n * @param {...Object} objects_to_assign\n * @returns {Object} target\n */\nvar assign;\n\nif (typeof Object.assign !== 'function') {\n assign = function assign(target) {\n if (target === undefined || target === null) {\n throw new TypeError('Cannot convert undefined or null to object');\n }\n\n var output = Object(target);\n\n for (var index = 1; index < arguments.length; index++) {\n var source = arguments[index];\n\n if (source !== undefined && source !== null) {\n for (var nextKey in source) {\n if (source.hasOwnProperty(nextKey)) {\n output[nextKey] = source[nextKey];\n }\n }\n }\n }\n\n return output;\n };\n} else {\n assign = Object.assign;\n}\n\nvar assign$1 = assign;\n\nvar VENDOR_PREFIXES = ['', 'webkit', 'Moz', 'MS', 'ms', 'o'];\nvar TEST_ELEMENT = typeof document === \"undefined\" ? {\n style: {}\n} : document.createElement('div');\nvar TYPE_FUNCTION = 'function';\nvar round = Math.round,\n abs$1 = Math.abs;\nvar now = Date.now;\n\n/**\n * @private\n * get the prefixed property\n * @param {Object} obj\n * @param {String} property\n * @returns {String|Undefined} prefixed\n */\n\nfunction prefixed(obj, property) {\n var prefix;\n var prop;\n var camelProp = property[0].toUpperCase() + property.slice(1);\n var i = 0;\n\n while (i < VENDOR_PREFIXES.length) {\n prefix = VENDOR_PREFIXES[i];\n prop = prefix ? prefix + camelProp : property;\n\n if (prop in obj) {\n return prop;\n }\n\n i++;\n }\n\n return undefined;\n}\n\n/* eslint-disable no-new-func, no-nested-ternary */\nvar win;\n\nif (typeof window === \"undefined\") {\n // window is undefined in node.js\n win = {};\n} else {\n win = window;\n}\n\nvar PREFIXED_TOUCH_ACTION = prefixed(TEST_ELEMENT.style, 'touchAction');\nvar NATIVE_TOUCH_ACTION = PREFIXED_TOUCH_ACTION !== undefined;\nfunction getTouchActionProps() {\n if (!NATIVE_TOUCH_ACTION) {\n return false;\n }\n\n var touchMap = {};\n var cssSupports = win.CSS && win.CSS.supports;\n ['auto', 'manipulation', 'pan-y', 'pan-x', 'pan-x pan-y', 'none'].forEach(function (val) {\n // If css.supports is not supported but there is native touch-action assume it supports\n // all values. This is the case for IE 10 and 11.\n return touchMap[val] = cssSupports ? win.CSS.supports('touch-action', val) : true;\n });\n return touchMap;\n}\n\nvar TOUCH_ACTION_COMPUTE = 'compute';\nvar TOUCH_ACTION_AUTO = 'auto';\nvar TOUCH_ACTION_MANIPULATION = 'manipulation'; // not implemented\n\nvar TOUCH_ACTION_NONE = 'none';\nvar TOUCH_ACTION_PAN_X = 'pan-x';\nvar TOUCH_ACTION_PAN_Y = 'pan-y';\nvar TOUCH_ACTION_MAP = getTouchActionProps();\n\nvar MOBILE_REGEX = /mobile|tablet|ip(ad|hone|od)|android/i;\nvar SUPPORT_TOUCH = 'ontouchstart' in win;\nvar SUPPORT_POINTER_EVENTS = prefixed(win, 'PointerEvent') !== undefined;\nvar SUPPORT_ONLY_TOUCH = SUPPORT_TOUCH && MOBILE_REGEX.test(navigator.userAgent);\nvar INPUT_TYPE_TOUCH = 'touch';\nvar INPUT_TYPE_PEN = 'pen';\nvar INPUT_TYPE_MOUSE = 'mouse';\nvar INPUT_TYPE_KINECT = 'kinect';\nvar COMPUTE_INTERVAL = 25;\nvar INPUT_START = 1;\nvar INPUT_MOVE = 2;\nvar INPUT_END = 4;\nvar INPUT_CANCEL = 8;\nvar DIRECTION_NONE = 1;\nvar DIRECTION_LEFT = 2;\nvar DIRECTION_RIGHT = 4;\nvar DIRECTION_UP = 8;\nvar DIRECTION_DOWN = 16;\nvar DIRECTION_HORIZONTAL = DIRECTION_LEFT | DIRECTION_RIGHT;\nvar DIRECTION_VERTICAL = DIRECTION_UP | DIRECTION_DOWN;\nvar DIRECTION_ALL = DIRECTION_HORIZONTAL | DIRECTION_VERTICAL;\nvar PROPS_XY = ['x', 'y'];\nvar PROPS_CLIENT_XY = ['clientX', 'clientY'];\n\n/**\n * @private\n * walk objects and arrays\n * @param {Object} obj\n * @param {Function} iterator\n * @param {Object} context\n */\nfunction each(obj, iterator, context) {\n var i;\n\n if (!obj) {\n return;\n }\n\n if (obj.forEach) {\n obj.forEach(iterator, context);\n } else if (obj.length !== undefined) {\n i = 0;\n\n while (i < obj.length) {\n iterator.call(context, obj[i], i, obj);\n i++;\n }\n } else {\n for (i in obj) {\n obj.hasOwnProperty(i) && iterator.call(context, obj[i], i, obj);\n }\n }\n}\n\n/**\n * @private\n * let a boolean value also be a function that must return a boolean\n * this first item in args will be used as the context\n * @param {Boolean|Function} val\n * @param {Array} [args]\n * @returns {Boolean}\n */\n\nfunction boolOrFn(val, args) {\n if (typeof val === TYPE_FUNCTION) {\n return val.apply(args ? args[0] || undefined : undefined, args);\n }\n\n return val;\n}\n\n/**\n * @private\n * small indexOf wrapper\n * @param {String} str\n * @param {String} find\n * @returns {Boolean} found\n */\nfunction inStr(str, find) {\n return str.indexOf(find) > -1;\n}\n\n/**\n * @private\n * when the touchActions are collected they are not a valid value, so we need to clean things up. *\n * @param {String} actions\n * @returns {*}\n */\n\nfunction cleanTouchActions(actions) {\n // none\n if (inStr(actions, TOUCH_ACTION_NONE)) {\n return TOUCH_ACTION_NONE;\n }\n\n var hasPanX = inStr(actions, TOUCH_ACTION_PAN_X);\n var hasPanY = inStr(actions, TOUCH_ACTION_PAN_Y); // if both pan-x and pan-y are set (different recognizers\n // for different directions, e.g. horizontal pan but vertical swipe?)\n // we need none (as otherwise with pan-x pan-y combined none of these\n // recognizers will work, since the browser would handle all panning\n\n if (hasPanX && hasPanY) {\n return TOUCH_ACTION_NONE;\n } // pan-x OR pan-y\n\n\n if (hasPanX || hasPanY) {\n return hasPanX ? TOUCH_ACTION_PAN_X : TOUCH_ACTION_PAN_Y;\n } // manipulation\n\n\n if (inStr(actions, TOUCH_ACTION_MANIPULATION)) {\n return TOUCH_ACTION_MANIPULATION;\n }\n\n return TOUCH_ACTION_AUTO;\n}\n\n/**\n * @private\n * Touch Action\n * sets the touchAction property or uses the js alternative\n * @param {Manager} manager\n * @param {String} value\n * @constructor\n */\n\nvar TouchAction =\n/*#__PURE__*/\nfunction () {\n function TouchAction(manager, value) {\n this.manager = manager;\n this.set(value);\n }\n /**\n * @private\n * set the touchAction value on the element or enable the polyfill\n * @param {String} value\n */\n\n\n var _proto = TouchAction.prototype;\n\n _proto.set = function set(value) {\n // find out the touch-action by the event handlers\n if (value === TOUCH_ACTION_COMPUTE) {\n value = this.compute();\n }\n\n if (NATIVE_TOUCH_ACTION && this.manager.element.style && TOUCH_ACTION_MAP[value]) {\n this.manager.element.style[PREFIXED_TOUCH_ACTION] = value;\n }\n\n this.actions = value.toLowerCase().trim();\n };\n /**\n * @private\n * just re-set the touchAction value\n */\n\n\n _proto.update = function update() {\n this.set(this.manager.options.touchAction);\n };\n /**\n * @private\n * compute the value for the touchAction property based on the recognizer's settings\n * @returns {String} value\n */\n\n\n _proto.compute = function compute() {\n var actions = [];\n each(this.manager.recognizers, function (recognizer) {\n if (boolOrFn(recognizer.options.enable, [recognizer])) {\n actions = actions.concat(recognizer.getTouchAction());\n }\n });\n return cleanTouchActions(actions.join(' '));\n };\n /**\n * @private\n * this method is called on each input cycle and provides the preventing of the browser behavior\n * @param {Object} input\n */\n\n\n _proto.preventDefaults = function preventDefaults(input) {\n var srcEvent = input.srcEvent;\n var direction = input.offsetDirection; // if the touch action did prevented once this session\n\n if (this.manager.session.prevented) {\n srcEvent.preventDefault();\n return;\n }\n\n var actions = this.actions;\n var hasNone = inStr(actions, TOUCH_ACTION_NONE) && !TOUCH_ACTION_MAP[TOUCH_ACTION_NONE];\n var hasPanY = inStr(actions, TOUCH_ACTION_PAN_Y) && !TOUCH_ACTION_MAP[TOUCH_ACTION_PAN_Y];\n var hasPanX = inStr(actions, TOUCH_ACTION_PAN_X) && !TOUCH_ACTION_MAP[TOUCH_ACTION_PAN_X];\n\n if (hasNone) {\n // do not prevent defaults if this is a tap gesture\n var isTapPointer = input.pointers.length === 1;\n var isTapMovement = input.distance < 2;\n var isTapTouchTime = input.deltaTime < 250;\n\n if (isTapPointer && isTapMovement && isTapTouchTime) {\n return;\n }\n }\n\n if (hasPanX && hasPanY) {\n // `pan-x pan-y` means browser handles all scrolling/panning, do not prevent\n return;\n }\n\n if (hasNone || hasPanY && direction & DIRECTION_HORIZONTAL || hasPanX && direction & DIRECTION_VERTICAL) {\n return this.preventSrc(srcEvent);\n }\n };\n /**\n * @private\n * call preventDefault to prevent the browser's default behavior (scrolling in most cases)\n * @param {Object} srcEvent\n */\n\n\n _proto.preventSrc = function preventSrc(srcEvent) {\n this.manager.session.prevented = true;\n srcEvent.preventDefault();\n };\n\n return TouchAction;\n}();\n\n/**\n * @private\n * find if a node is in the given parent\n * @method hasParent\n * @param {HTMLElement} node\n * @param {HTMLElement} parent\n * @return {Boolean} found\n */\nfunction hasParent(node, parent) {\n while (node) {\n if (node === parent) {\n return true;\n }\n\n node = node.parentNode;\n }\n\n return false;\n}\n\n/**\n * @private\n * get the center of all the pointers\n * @param {Array} pointers\n * @return {Object} center contains `x` and `y` properties\n */\n\nfunction getCenter(pointers) {\n var pointersLength = pointers.length; // no need to loop when only one touch\n\n if (pointersLength === 1) {\n return {\n x: round(pointers[0].clientX),\n y: round(pointers[0].clientY)\n };\n }\n\n var x = 0;\n var y = 0;\n var i = 0;\n\n while (i < pointersLength) {\n x += pointers[i].clientX;\n y += pointers[i].clientY;\n i++;\n }\n\n return {\n x: round(x / pointersLength),\n y: round(y / pointersLength)\n };\n}\n\n/**\n * @private\n * create a simple clone from the input used for storage of firstInput and firstMultiple\n * @param {Object} input\n * @returns {Object} clonedInputData\n */\n\nfunction simpleCloneInputData(input) {\n // make a simple copy of the pointers because we will get a reference if we don't\n // we only need clientXY for the calculations\n var pointers = [];\n var i = 0;\n\n while (i < input.pointers.length) {\n pointers[i] = {\n clientX: round(input.pointers[i].clientX),\n clientY: round(input.pointers[i].clientY)\n };\n i++;\n }\n\n return {\n timeStamp: now(),\n pointers: pointers,\n center: getCenter(pointers),\n deltaX: input.deltaX,\n deltaY: input.deltaY\n };\n}\n\n/**\n * @private\n * calculate the absolute distance between two points\n * @param {Object} p1 {x, y}\n * @param {Object} p2 {x, y}\n * @param {Array} [props] containing x and y keys\n * @return {Number} distance\n */\n\nfunction getDistance(p1, p2, props) {\n if (!props) {\n props = PROPS_XY;\n }\n\n var x = p2[props[0]] - p1[props[0]];\n var y = p2[props[1]] - p1[props[1]];\n return Math.sqrt(x * x + y * y);\n}\n\n/**\n * @private\n * calculate the angle between two coordinates\n * @param {Object} p1\n * @param {Object} p2\n * @param {Array} [props] containing x and y keys\n * @return {Number} angle\n */\n\nfunction getAngle(p1, p2, props) {\n if (!props) {\n props = PROPS_XY;\n }\n\n var x = p2[props[0]] - p1[props[0]];\n var y = p2[props[1]] - p1[props[1]];\n return Math.atan2(y, x) * 180 / Math.PI;\n}\n\n/**\n * @private\n * get the direction between two points\n * @param {Number} x\n * @param {Number} y\n * @return {Number} direction\n */\n\nfunction getDirection(x, y) {\n if (x === y) {\n return DIRECTION_NONE;\n }\n\n if (abs$1(x) >= abs$1(y)) {\n return x < 0 ? DIRECTION_LEFT : DIRECTION_RIGHT;\n }\n\n return y < 0 ? DIRECTION_UP : DIRECTION_DOWN;\n}\n\nfunction computeDeltaXY(session, input) {\n var center = input.center; // let { offsetDelta:offset = {}, prevDelta = {}, prevInput = {} } = session;\n // jscs throwing error on defalut destructured values and without defaults tests fail\n\n var offset = session.offsetDelta || {};\n var prevDelta = session.prevDelta || {};\n var prevInput = session.prevInput || {};\n\n if (input.eventType === INPUT_START || prevInput.eventType === INPUT_END) {\n prevDelta = session.prevDelta = {\n x: prevInput.deltaX || 0,\n y: prevInput.deltaY || 0\n };\n offset = session.offsetDelta = {\n x: center.x,\n y: center.y\n };\n }\n\n input.deltaX = prevDelta.x + (center.x - offset.x);\n input.deltaY = prevDelta.y + (center.y - offset.y);\n}\n\n/**\n * @private\n * calculate the velocity between two points. unit is in px per ms.\n * @param {Number} deltaTime\n * @param {Number} x\n * @param {Number} y\n * @return {Object} velocity `x` and `y`\n */\nfunction getVelocity(deltaTime, x, y) {\n return {\n x: x / deltaTime || 0,\n y: y / deltaTime || 0\n };\n}\n\n/**\n * @private\n * calculate the scale factor between two pointersets\n * no scale is 1, and goes down to 0 when pinched together, and bigger when pinched out\n * @param {Array} start array of pointers\n * @param {Array} end array of pointers\n * @return {Number} scale\n */\n\nfunction getScale(start, end) {\n return getDistance(end[0], end[1], PROPS_CLIENT_XY) / getDistance(start[0], start[1], PROPS_CLIENT_XY);\n}\n\n/**\n * @private\n * calculate the rotation degrees between two pointersets\n * @param {Array} start array of pointers\n * @param {Array} end array of pointers\n * @return {Number} rotation\n */\n\nfunction getRotation(start, end) {\n return getAngle(end[1], end[0], PROPS_CLIENT_XY) + getAngle(start[1], start[0], PROPS_CLIENT_XY);\n}\n\n/**\n * @private\n * velocity is calculated every x ms\n * @param {Object} session\n * @param {Object} input\n */\n\nfunction computeIntervalInputData(session, input) {\n var last = session.lastInterval || input;\n var deltaTime = input.timeStamp - last.timeStamp;\n var velocity;\n var velocityX;\n var velocityY;\n var direction;\n\n if (input.eventType !== INPUT_CANCEL && (deltaTime > COMPUTE_INTERVAL || last.velocity === undefined)) {\n var deltaX = input.deltaX - last.deltaX;\n var deltaY = input.deltaY - last.deltaY;\n var v = getVelocity(deltaTime, deltaX, deltaY);\n velocityX = v.x;\n velocityY = v.y;\n velocity = abs$1(v.x) > abs$1(v.y) ? v.x : v.y;\n direction = getDirection(deltaX, deltaY);\n session.lastInterval = input;\n } else {\n // use latest velocity info if it doesn't overtake a minimum period\n velocity = last.velocity;\n velocityX = last.velocityX;\n velocityY = last.velocityY;\n direction = last.direction;\n }\n\n input.velocity = velocity;\n input.velocityX = velocityX;\n input.velocityY = velocityY;\n input.direction = direction;\n}\n\n/**\n* @private\n * extend the data with some usable properties like scale, rotate, velocity etc\n * @param {Object} manager\n * @param {Object} input\n */\n\nfunction computeInputData(manager, input) {\n var session = manager.session;\n var pointers = input.pointers;\n var pointersLength = pointers.length; // store the first input to calculate the distance and direction\n\n if (!session.firstInput) {\n session.firstInput = simpleCloneInputData(input);\n } // to compute scale and rotation we need to store the multiple touches\n\n\n if (pointersLength > 1 && !session.firstMultiple) {\n session.firstMultiple = simpleCloneInputData(input);\n } else if (pointersLength === 1) {\n session.firstMultiple = false;\n }\n\n var firstInput = session.firstInput,\n firstMultiple = session.firstMultiple;\n var offsetCenter = firstMultiple ? firstMultiple.center : firstInput.center;\n var center = input.center = getCenter(pointers);\n input.timeStamp = now();\n input.deltaTime = input.timeStamp - firstInput.timeStamp;\n input.angle = getAngle(offsetCenter, center);\n input.distance = getDistance(offsetCenter, center);\n computeDeltaXY(session, input);\n input.offsetDirection = getDirection(input.deltaX, input.deltaY);\n var overallVelocity = getVelocity(input.deltaTime, input.deltaX, input.deltaY);\n input.overallVelocityX = overallVelocity.x;\n input.overallVelocityY = overallVelocity.y;\n input.overallVelocity = abs$1(overallVelocity.x) > abs$1(overallVelocity.y) ? overallVelocity.x : overallVelocity.y;\n input.scale = firstMultiple ? getScale(firstMultiple.pointers, pointers) : 1;\n input.rotation = firstMultiple ? getRotation(firstMultiple.pointers, pointers) : 0;\n input.maxPointers = !session.prevInput ? input.pointers.length : input.pointers.length > session.prevInput.maxPointers ? input.pointers.length : session.prevInput.maxPointers;\n computeIntervalInputData(session, input); // find the correct target\n\n var target = manager.element;\n var srcEvent = input.srcEvent;\n var srcEventTarget;\n\n if (srcEvent.composedPath) {\n srcEventTarget = srcEvent.composedPath()[0];\n } else if (srcEvent.path) {\n srcEventTarget = srcEvent.path[0];\n } else {\n srcEventTarget = srcEvent.target;\n }\n\n if (hasParent(srcEventTarget, target)) {\n target = srcEventTarget;\n }\n\n input.target = target;\n}\n\n/**\n * @private\n * handle input events\n * @param {Manager} manager\n * @param {String} eventType\n * @param {Object} input\n */\n\nfunction inputHandler(manager, eventType, input) {\n var pointersLen = input.pointers.length;\n var changedPointersLen = input.changedPointers.length;\n var isFirst = eventType & INPUT_START && pointersLen - changedPointersLen === 0;\n var isFinal = eventType & (INPUT_END | INPUT_CANCEL) && pointersLen - changedPointersLen === 0;\n input.isFirst = !!isFirst;\n input.isFinal = !!isFinal;\n\n if (isFirst) {\n manager.session = {};\n } // source event is the normalized value of the domEvents\n // like 'touchstart, mouseup, pointerdown'\n\n\n input.eventType = eventType; // compute scale, rotation etc\n\n computeInputData(manager, input); // emit secret event\n\n manager.emit('hammer.input', input);\n manager.recognize(input);\n manager.session.prevInput = input;\n}\n\n/**\n * @private\n * split string on whitespace\n * @param {String} str\n * @returns {Array} words\n */\nfunction splitStr(str) {\n return str.trim().split(/\\s+/g);\n}\n\n/**\n * @private\n * addEventListener with multiple events at once\n * @param {EventTarget} target\n * @param {String} types\n * @param {Function} handler\n */\n\nfunction addEventListeners(target, types, handler) {\n each(splitStr(types), function (type) {\n target.addEventListener(type, handler, false);\n });\n}\n\n/**\n * @private\n * removeEventListener with multiple events at once\n * @param {EventTarget} target\n * @param {String} types\n * @param {Function} handler\n */\n\nfunction removeEventListeners(target, types, handler) {\n each(splitStr(types), function (type) {\n target.removeEventListener(type, handler, false);\n });\n}\n\n/**\n * @private\n * get the window object of an element\n * @param {HTMLElement} element\n * @returns {DocumentView|Window}\n */\nfunction getWindowForElement(element) {\n var doc = element.ownerDocument || element;\n return doc.defaultView || doc.parentWindow || window;\n}\n\n/**\n * @private\n * create new input type manager\n * @param {Manager} manager\n * @param {Function} callback\n * @returns {Input}\n * @constructor\n */\n\nvar Input =\n/*#__PURE__*/\nfunction () {\n function Input(manager, callback) {\n var self = this;\n this.manager = manager;\n this.callback = callback;\n this.element = manager.element;\n this.target = manager.options.inputTarget; // smaller wrapper around the handler, for the scope and the enabled state of the manager,\n // so when disabled the input events are completely bypassed.\n\n this.domHandler = function (ev) {\n if (boolOrFn(manager.options.enable, [manager])) {\n self.handler(ev);\n }\n };\n\n this.init();\n }\n /**\n * @private\n * should handle the inputEvent data and trigger the callback\n * @virtual\n */\n\n\n var _proto = Input.prototype;\n\n _proto.handler = function handler() {};\n /**\n * @private\n * bind the events\n */\n\n\n _proto.init = function init() {\n this.evEl && addEventListeners(this.element, this.evEl, this.domHandler);\n this.evTarget && addEventListeners(this.target, this.evTarget, this.domHandler);\n this.evWin && addEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);\n };\n /**\n * @private\n * unbind the events\n */\n\n\n _proto.destroy = function destroy() {\n this.evEl && removeEventListeners(this.element, this.evEl, this.domHandler);\n this.evTarget && removeEventListeners(this.target, this.evTarget, this.domHandler);\n this.evWin && removeEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);\n };\n\n return Input;\n}();\n\n/**\n * @private\n * find if a array contains the object using indexOf or a simple polyFill\n * @param {Array} src\n * @param {String} find\n * @param {String} [findByKey]\n * @return {Boolean|Number} false when not found, or the index\n */\nfunction inArray(src, find, findByKey) {\n if (src.indexOf && !findByKey) {\n return src.indexOf(find);\n } else {\n var i = 0;\n\n while (i < src.length) {\n if (findByKey && src[i][findByKey] == find || !findByKey && src[i] === find) {\n // do not use === here, test fails\n return i;\n }\n\n i++;\n }\n\n return -1;\n }\n}\n\nvar POINTER_INPUT_MAP = {\n pointerdown: INPUT_START,\n pointermove: INPUT_MOVE,\n pointerup: INPUT_END,\n pointercancel: INPUT_CANCEL,\n pointerout: INPUT_CANCEL\n}; // in IE10 the pointer types is defined as an enum\n\nvar IE10_POINTER_TYPE_ENUM = {\n 2: INPUT_TYPE_TOUCH,\n 3: INPUT_TYPE_PEN,\n 4: INPUT_TYPE_MOUSE,\n 5: INPUT_TYPE_KINECT // see https://twitter.com/jacobrossi/status/480596438489890816\n\n};\nvar POINTER_ELEMENT_EVENTS = 'pointerdown';\nvar POINTER_WINDOW_EVENTS = 'pointermove pointerup pointercancel'; // IE10 has prefixed support, and case-sensitive\n\nif (win.MSPointerEvent && !win.PointerEvent) {\n POINTER_ELEMENT_EVENTS = 'MSPointerDown';\n POINTER_WINDOW_EVENTS = 'MSPointerMove MSPointerUp MSPointerCancel';\n}\n/**\n * @private\n * Pointer events input\n * @constructor\n * @extends Input\n */\n\n\nvar PointerEventInput =\n/*#__PURE__*/\nfunction (_Input) {\n _inheritsLoose(PointerEventInput, _Input);\n\n function PointerEventInput() {\n var _this;\n\n var proto = PointerEventInput.prototype;\n proto.evEl = POINTER_ELEMENT_EVENTS;\n proto.evWin = POINTER_WINDOW_EVENTS;\n _this = _Input.apply(this, arguments) || this;\n _this.store = _this.manager.session.pointerEvents = [];\n return _this;\n }\n /**\n * @private\n * handle mouse events\n * @param {Object} ev\n */\n\n\n var _proto = PointerEventInput.prototype;\n\n _proto.handler = function handler(ev) {\n var store = this.store;\n var removePointer = false;\n var eventTypeNormalized = ev.type.toLowerCase().replace('ms', '');\n var eventType = POINTER_INPUT_MAP[eventTypeNormalized];\n var pointerType = IE10_POINTER_TYPE_ENUM[ev.pointerType] || ev.pointerType;\n var isTouch = pointerType === INPUT_TYPE_TOUCH; // get index of the event in the store\n\n var storeIndex = inArray(store, ev.pointerId, 'pointerId'); // start and mouse must be down\n\n if (eventType & INPUT_START && (ev.button === 0 || isTouch)) {\n if (storeIndex < 0) {\n store.push(ev);\n storeIndex = store.length - 1;\n }\n } else if (eventType & (INPUT_END | INPUT_CANCEL)) {\n removePointer = true;\n } // it not found, so the pointer hasn't been down (so it's probably a hover)\n\n\n if (storeIndex < 0) {\n return;\n } // update the event in the store\n\n\n store[storeIndex] = ev;\n this.callback(this.manager, eventType, {\n pointers: store,\n changedPointers: [ev],\n pointerType: pointerType,\n srcEvent: ev\n });\n\n if (removePointer) {\n // remove from the store\n store.splice(storeIndex, 1);\n }\n };\n\n return PointerEventInput;\n}(Input);\n\n/**\n * @private\n * convert array-like objects to real arrays\n * @param {Object} obj\n * @returns {Array}\n */\nfunction toArray(obj) {\n return Array.prototype.slice.call(obj, 0);\n}\n\n/**\n * @private\n * unique array with objects based on a key (like 'id') or just by the array's value\n * @param {Array} src [{id:1},{id:2},{id:1}]\n * @param {String} [key]\n * @param {Boolean} [sort=False]\n * @returns {Array} [{id:1},{id:2}]\n */\n\nfunction uniqueArray(src, key, sort) {\n var results = [];\n var values = [];\n var i = 0;\n\n while (i < src.length) {\n var val = key ? src[i][key] : src[i];\n\n if (inArray(values, val) < 0) {\n results.push(src[i]);\n }\n\n values[i] = val;\n i++;\n }\n\n if (sort) {\n if (!key) {\n results = results.sort();\n } else {\n results = results.sort(function (a, b) {\n return a[key] > b[key];\n });\n }\n }\n\n return results;\n}\n\nvar TOUCH_INPUT_MAP = {\n touchstart: INPUT_START,\n touchmove: INPUT_MOVE,\n touchend: INPUT_END,\n touchcancel: INPUT_CANCEL\n};\nvar TOUCH_TARGET_EVENTS = 'touchstart touchmove touchend touchcancel';\n/**\n * @private\n * Multi-user touch events input\n * @constructor\n * @extends Input\n */\n\nvar TouchInput =\n/*#__PURE__*/\nfunction (_Input) {\n _inheritsLoose(TouchInput, _Input);\n\n function TouchInput() {\n var _this;\n\n TouchInput.prototype.evTarget = TOUCH_TARGET_EVENTS;\n _this = _Input.apply(this, arguments) || this;\n _this.targetIds = {}; // this.evTarget = TOUCH_TARGET_EVENTS;\n\n return _this;\n }\n\n var _proto = TouchInput.prototype;\n\n _proto.handler = function handler(ev) {\n var type = TOUCH_INPUT_MAP[ev.type];\n var touches = getTouches.call(this, ev, type);\n\n if (!touches) {\n return;\n }\n\n this.callback(this.manager, type, {\n pointers: touches[0],\n changedPointers: touches[1],\n pointerType: INPUT_TYPE_TOUCH,\n srcEvent: ev\n });\n };\n\n return TouchInput;\n}(Input);\n\nfunction getTouches(ev, type) {\n var allTouches = toArray(ev.touches);\n var targetIds = this.targetIds; // when there is only one touch, the process can be simplified\n\n if (type & (INPUT_START | INPUT_MOVE) && allTouches.length === 1) {\n targetIds[allTouches[0].identifier] = true;\n return [allTouches, allTouches];\n }\n\n var i;\n var targetTouches;\n var changedTouches = toArray(ev.changedTouches);\n var changedTargetTouches = [];\n var target = this.target; // get target touches from touches\n\n targetTouches = allTouches.filter(function (touch) {\n return hasParent(touch.target, target);\n }); // collect touches\n\n if (type === INPUT_START) {\n i = 0;\n\n while (i < targetTouches.length) {\n targetIds[targetTouches[i].identifier] = true;\n i++;\n }\n } // filter changed touches to only contain touches that exist in the collected target ids\n\n\n i = 0;\n\n while (i < changedTouches.length) {\n if (targetIds[changedTouches[i].identifier]) {\n changedTargetTouches.push(changedTouches[i]);\n } // cleanup removed touches\n\n\n if (type & (INPUT_END | INPUT_CANCEL)) {\n delete targetIds[changedTouches[i].identifier];\n }\n\n i++;\n }\n\n if (!changedTargetTouches.length) {\n return;\n }\n\n return [// merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'\n uniqueArray(targetTouches.concat(changedTargetTouches), 'identifier', true), changedTargetTouches];\n}\n\nvar MOUSE_INPUT_MAP = {\n mousedown: INPUT_START,\n mousemove: INPUT_MOVE,\n mouseup: INPUT_END\n};\nvar MOUSE_ELEMENT_EVENTS = 'mousedown';\nvar MOUSE_WINDOW_EVENTS = 'mousemove mouseup';\n/**\n * @private\n * Mouse events input\n * @constructor\n * @extends Input\n */\n\nvar MouseInput =\n/*#__PURE__*/\nfunction (_Input) {\n _inheritsLoose(MouseInput, _Input);\n\n function MouseInput() {\n var _this;\n\n var proto = MouseInput.prototype;\n proto.evEl = MOUSE_ELEMENT_EVENTS;\n proto.evWin = MOUSE_WINDOW_EVENTS;\n _this = _Input.apply(this, arguments) || this;\n _this.pressed = false; // mousedown state\n\n return _this;\n }\n /**\n * @private\n * handle mouse events\n * @param {Object} ev\n */\n\n\n var _proto = MouseInput.prototype;\n\n _proto.handler = function handler(ev) {\n var eventType = MOUSE_INPUT_MAP[ev.type]; // on start we want to have the left mouse button down\n\n if (eventType & INPUT_START && ev.button === 0) {\n this.pressed = true;\n }\n\n if (eventType & INPUT_MOVE && ev.which !== 1) {\n eventType = INPUT_END;\n } // mouse must be down\n\n\n if (!this.pressed) {\n return;\n }\n\n if (eventType & INPUT_END) {\n this.pressed = false;\n }\n\n this.callback(this.manager, eventType, {\n pointers: [ev],\n changedPointers: [ev],\n pointerType: INPUT_TYPE_MOUSE,\n srcEvent: ev\n });\n };\n\n return MouseInput;\n}(Input);\n\n/**\n * @private\n * Combined touch and mouse input\n *\n * Touch has a higher priority then mouse, and while touching no mouse events are allowed.\n * This because touch devices also emit mouse events while doing a touch.\n *\n * @constructor\n * @extends Input\n */\n\nvar DEDUP_TIMEOUT = 2500;\nvar DEDUP_DISTANCE = 25;\n\nfunction setLastTouch(eventData) {\n var _eventData$changedPoi = eventData.changedPointers,\n touch = _eventData$changedPoi[0];\n\n if (touch.identifier === this.primaryTouch) {\n var lastTouch = {\n x: touch.clientX,\n y: touch.clientY\n };\n var lts = this.lastTouches;\n this.lastTouches.push(lastTouch);\n\n var removeLastTouch = function removeLastTouch() {\n var i = lts.indexOf(lastTouch);\n\n if (i > -1) {\n lts.splice(i, 1);\n }\n };\n\n setTimeout(removeLastTouch, DEDUP_TIMEOUT);\n }\n}\n\nfunction recordTouches(eventType, eventData) {\n if (eventType & INPUT_START) {\n this.primaryTouch = eventData.changedPointers[0].identifier;\n setLastTouch.call(this, eventData);\n } else if (eventType & (INPUT_END | INPUT_CANCEL)) {\n setLastTouch.call(this, eventData);\n }\n}\n\nfunction isSyntheticEvent(eventData) {\n var x = eventData.srcEvent.clientX;\n var y = eventData.srcEvent.clientY;\n\n for (var i = 0; i < this.lastTouches.length; i++) {\n var t = this.lastTouches[i];\n var dx = Math.abs(x - t.x);\n var dy = Math.abs(y - t.y);\n\n if (dx <= DEDUP_DISTANCE && dy <= DEDUP_DISTANCE) {\n return true;\n }\n }\n\n return false;\n}\n\nvar TouchMouseInput =\n/*#__PURE__*/\nfunction () {\n var TouchMouseInput =\n /*#__PURE__*/\n function (_Input) {\n _inheritsLoose(TouchMouseInput, _Input);\n\n function TouchMouseInput(_manager, callback) {\n var _this;\n\n _this = _Input.call(this, _manager, callback) || this;\n\n _this.handler = function (manager, inputEvent, inputData) {\n var isTouch = inputData.pointerType === INPUT_TYPE_TOUCH;\n var isMouse = inputData.pointerType === INPUT_TYPE_MOUSE;\n\n if (isMouse && inputData.sourceCapabilities && inputData.sourceCapabilities.firesTouchEvents) {\n return;\n } // when we're in a touch event, record touches to de-dupe synthetic mouse event\n\n\n if (isTouch) {\n recordTouches.call(_assertThisInitialized$1(_assertThisInitialized$1(_this)), inputEvent, inputData);\n } else if (isMouse && isSyntheticEvent.call(_assertThisInitialized$1(_assertThisInitialized$1(_this)), inputData)) {\n return;\n }\n\n _this.callback(manager, inputEvent, inputData);\n };\n\n _this.touch = new TouchInput(_this.manager, _this.handler);\n _this.mouse = new MouseInput(_this.manager, _this.handler);\n _this.primaryTouch = null;\n _this.lastTouches = [];\n return _this;\n }\n /**\n * @private\n * handle mouse and touch events\n * @param {Hammer} manager\n * @param {String} inputEvent\n * @param {Object} inputData\n */\n\n\n var _proto = TouchMouseInput.prototype;\n\n /**\n * @private\n * remove the event listeners\n */\n _proto.destroy = function destroy() {\n this.touch.destroy();\n this.mouse.destroy();\n };\n\n return TouchMouseInput;\n }(Input);\n\n return TouchMouseInput;\n}();\n\n/**\n * @private\n * create new input type manager\n * called by the Manager constructor\n * @param {Hammer} manager\n * @returns {Input}\n */\n\nfunction createInputInstance(manager) {\n var Type; // let inputClass = manager.options.inputClass;\n\n var inputClass = manager.options.inputClass;\n\n if (inputClass) {\n Type = inputClass;\n } else if (SUPPORT_POINTER_EVENTS) {\n Type = PointerEventInput;\n } else if (SUPPORT_ONLY_TOUCH) {\n Type = TouchInput;\n } else if (!SUPPORT_TOUCH) {\n Type = MouseInput;\n } else {\n Type = TouchMouseInput;\n }\n\n return new Type(manager, inputHandler);\n}\n\n/**\n * @private\n * if the argument is an array, we want to execute the fn on each entry\n * if it aint an array we don't want to do a thing.\n * this is used by all the methods that accept a single and array argument.\n * @param {*|Array} arg\n * @param {String} fn\n * @param {Object} [context]\n * @returns {Boolean}\n */\n\nfunction invokeArrayArg(arg, fn, context) {\n if (Array.isArray(arg)) {\n each(arg, context[fn], context);\n return true;\n }\n\n return false;\n}\n\nvar STATE_POSSIBLE = 1;\nvar STATE_BEGAN = 2;\nvar STATE_CHANGED = 4;\nvar STATE_ENDED = 8;\nvar STATE_RECOGNIZED = STATE_ENDED;\nvar STATE_CANCELLED = 16;\nvar STATE_FAILED = 32;\n\n/**\n * @private\n * get a unique id\n * @returns {number} uniqueId\n */\nvar _uniqueId = 1;\nfunction uniqueId() {\n return _uniqueId++;\n}\n\n/**\n * @private\n * get a recognizer by name if it is bound to a manager\n * @param {Recognizer|String} otherRecognizer\n * @param {Recognizer} recognizer\n * @returns {Recognizer}\n */\nfunction getRecognizerByNameIfManager(otherRecognizer, recognizer) {\n var manager = recognizer.manager;\n\n if (manager) {\n return manager.get(otherRecognizer);\n }\n\n return otherRecognizer;\n}\n\n/**\n * @private\n * get a usable string, used as event postfix\n * @param {constant} state\n * @returns {String} state\n */\n\nfunction stateStr(state) {\n if (state & STATE_CANCELLED) {\n return 'cancel';\n } else if (state & STATE_ENDED) {\n return 'end';\n } else if (state & STATE_CHANGED) {\n return 'move';\n } else if (state & STATE_BEGAN) {\n return 'start';\n }\n\n return '';\n}\n\n/**\n * @private\n * Recognizer flow explained; *\n * All recognizers have the initial state of POSSIBLE when a input session starts.\n * The definition of a input session is from the first input until the last input, with all it's movement in it. *\n * Example session for mouse-input: mousedown -> mousemove -> mouseup\n *\n * On each recognizing cycle (see Manager.recognize) the .recognize() method is executed\n * which determines with state it should be.\n *\n * If the recognizer has the state FAILED, CANCELLED or RECOGNIZED (equals ENDED), it is reset to\n * POSSIBLE to give it another change on the next cycle.\n *\n * Possible\n * |\n * +-----+---------------+\n * | |\n * +-----+-----+ |\n * | | |\n * Failed Cancelled |\n * +-------+------+\n * | |\n * Recognized Began\n * |\n * Changed\n * |\n * Ended/Recognized\n */\n\n/**\n * @private\n * Recognizer\n * Every recognizer needs to extend from this class.\n * @constructor\n * @param {Object} options\n */\n\nvar Recognizer =\n/*#__PURE__*/\nfunction () {\n function Recognizer(options) {\n if (options === void 0) {\n options = {};\n }\n\n this.options = _extends({\n enable: true\n }, options);\n this.id = uniqueId();\n this.manager = null; // default is enable true\n\n this.state = STATE_POSSIBLE;\n this.simultaneous = {};\n this.requireFail = [];\n }\n /**\n * @private\n * set options\n * @param {Object} options\n * @return {Recognizer}\n */\n\n\n var _proto = Recognizer.prototype;\n\n _proto.set = function set(options) {\n assign$1(this.options, options); // also update the touchAction, in case something changed about the directions/enabled state\n\n this.manager && this.manager.touchAction.update();\n return this;\n };\n /**\n * @private\n * recognize simultaneous with an other recognizer.\n * @param {Recognizer} otherRecognizer\n * @returns {Recognizer} this\n */\n\n\n _proto.recognizeWith = function recognizeWith(otherRecognizer) {\n if (invokeArrayArg(otherRecognizer, 'recognizeWith', this)) {\n return this;\n }\n\n var simultaneous = this.simultaneous;\n otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\n\n if (!simultaneous[otherRecognizer.id]) {\n simultaneous[otherRecognizer.id] = otherRecognizer;\n otherRecognizer.recognizeWith(this);\n }\n\n return this;\n };\n /**\n * @private\n * drop the simultaneous link. it doesnt remove the link on the other recognizer.\n * @param {Recognizer} otherRecognizer\n * @returns {Recognizer} this\n */\n\n\n _proto.dropRecognizeWith = function dropRecognizeWith(otherRecognizer) {\n if (invokeArrayArg(otherRecognizer, 'dropRecognizeWith', this)) {\n return this;\n }\n\n otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\n delete this.simultaneous[otherRecognizer.id];\n return this;\n };\n /**\n * @private\n * recognizer can only run when an other is failing\n * @param {Recognizer} otherRecognizer\n * @returns {Recognizer} this\n */\n\n\n _proto.requireFailure = function requireFailure(otherRecognizer) {\n if (invokeArrayArg(otherRecognizer, 'requireFailure', this)) {\n return this;\n }\n\n var requireFail = this.requireFail;\n otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\n\n if (inArray(requireFail, otherRecognizer) === -1) {\n requireFail.push(otherRecognizer);\n otherRecognizer.requireFailure(this);\n }\n\n return this;\n };\n /**\n * @private\n * drop the requireFailure link. it does not remove the link on the other recognizer.\n * @param {Recognizer} otherRecognizer\n * @returns {Recognizer} this\n */\n\n\n _proto.dropRequireFailure = function dropRequireFailure(otherRecognizer) {\n if (invokeArrayArg(otherRecognizer, 'dropRequireFailure', this)) {\n return this;\n }\n\n otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\n var index = inArray(this.requireFail, otherRecognizer);\n\n if (index > -1) {\n this.requireFail.splice(index, 1);\n }\n\n return this;\n };\n /**\n * @private\n * has require failures boolean\n * @returns {boolean}\n */\n\n\n _proto.hasRequireFailures = function hasRequireFailures() {\n return this.requireFail.length > 0;\n };\n /**\n * @private\n * if the recognizer can recognize simultaneous with an other recognizer\n * @param {Recognizer} otherRecognizer\n * @returns {Boolean}\n */\n\n\n _proto.canRecognizeWith = function canRecognizeWith(otherRecognizer) {\n return !!this.simultaneous[otherRecognizer.id];\n };\n /**\n * @private\n * You should use `tryEmit` instead of `emit` directly to check\n * that all the needed recognizers has failed before emitting.\n * @param {Object} input\n */\n\n\n _proto.emit = function emit(input) {\n var self = this;\n var state = this.state;\n\n function emit(event) {\n self.manager.emit(event, input);\n } // 'panstart' and 'panmove'\n\n\n if (state < STATE_ENDED) {\n emit(self.options.event + stateStr(state));\n }\n\n emit(self.options.event); // simple 'eventName' events\n\n if (input.additionalEvent) {\n // additional event(panleft, panright, pinchin, pinchout...)\n emit(input.additionalEvent);\n } // panend and pancancel\n\n\n if (state >= STATE_ENDED) {\n emit(self.options.event + stateStr(state));\n }\n };\n /**\n * @private\n * Check that all the require failure recognizers has failed,\n * if true, it emits a gesture event,\n * otherwise, setup the state to FAILED.\n * @param {Object} input\n */\n\n\n _proto.tryEmit = function tryEmit(input) {\n if (this.canEmit()) {\n return this.emit(input);\n } // it's failing anyway\n\n\n this.state = STATE_FAILED;\n };\n /**\n * @private\n * can we emit?\n * @returns {boolean}\n */\n\n\n _proto.canEmit = function canEmit() {\n var i = 0;\n\n while (i < this.requireFail.length) {\n if (!(this.requireFail[i].state & (STATE_FAILED | STATE_POSSIBLE))) {\n return false;\n }\n\n i++;\n }\n\n return true;\n };\n /**\n * @private\n * update the recognizer\n * @param {Object} inputData\n */\n\n\n _proto.recognize = function recognize(inputData) {\n // make a new copy of the inputData\n // so we can change the inputData without messing up the other recognizers\n var inputDataClone = assign$1({}, inputData); // is is enabled and allow recognizing?\n\n if (!boolOrFn(this.options.enable, [this, inputDataClone])) {\n this.reset();\n this.state = STATE_FAILED;\n return;\n } // reset when we've reached the end\n\n\n if (this.state & (STATE_RECOGNIZED | STATE_CANCELLED | STATE_FAILED)) {\n this.state = STATE_POSSIBLE;\n }\n\n this.state = this.process(inputDataClone); // the recognizer has recognized a gesture\n // so trigger an event\n\n if (this.state & (STATE_BEGAN | STATE_CHANGED | STATE_ENDED | STATE_CANCELLED)) {\n this.tryEmit(inputDataClone);\n }\n };\n /**\n * @private\n * return the state of the recognizer\n * the actual recognizing happens in this method\n * @virtual\n * @param {Object} inputData\n * @returns {constant} STATE\n */\n\n /* jshint ignore:start */\n\n\n _proto.process = function process(inputData) {};\n /* jshint ignore:end */\n\n /**\n * @private\n * return the preferred touch-action\n * @virtual\n * @returns {Array}\n */\n\n\n _proto.getTouchAction = function getTouchAction() {};\n /**\n * @private\n * called when the gesture isn't allowed to recognize\n * like when another is being recognized or it is disabled\n * @virtual\n */\n\n\n _proto.reset = function reset() {};\n\n return Recognizer;\n}();\n\n/**\n * @private\n * A tap is recognized when the pointer is doing a small tap/click. Multiple taps are recognized if they occur\n * between the given interval and position. The delay option can be used to recognize multi-taps without firing\n * a single tap.\n *\n * The eventData from the emitted event contains the property `tapCount`, which contains the amount of\n * multi-taps being recognized.\n * @constructor\n * @extends Recognizer\n */\n\nvar TapRecognizer =\n/*#__PURE__*/\nfunction (_Recognizer) {\n _inheritsLoose(TapRecognizer, _Recognizer);\n\n function TapRecognizer(options) {\n var _this;\n\n if (options === void 0) {\n options = {};\n }\n\n _this = _Recognizer.call(this, _extends({\n event: 'tap',\n pointers: 1,\n taps: 1,\n interval: 300,\n // max time between the multi-tap taps\n time: 250,\n // max time of the pointer to be down (like finger on the screen)\n threshold: 9,\n // a minimal movement is ok, but keep it low\n posThreshold: 10\n }, options)) || this; // previous time and center,\n // used for tap counting\n\n _this.pTime = false;\n _this.pCenter = false;\n _this._timer = null;\n _this._input = null;\n _this.count = 0;\n return _this;\n }\n\n var _proto = TapRecognizer.prototype;\n\n _proto.getTouchAction = function getTouchAction() {\n return [TOUCH_ACTION_MANIPULATION];\n };\n\n _proto.process = function process(input) {\n var _this2 = this;\n\n var options = this.options;\n var validPointers = input.pointers.length === options.pointers;\n var validMovement = input.distance < options.threshold;\n var validTouchTime = input.deltaTime < options.time;\n this.reset();\n\n if (input.eventType & INPUT_START && this.count === 0) {\n return this.failTimeout();\n } // we only allow little movement\n // and we've reached an end event, so a tap is possible\n\n\n if (validMovement && validTouchTime && validPointers) {\n if (input.eventType !== INPUT_END) {\n return this.failTimeout();\n }\n\n var validInterval = this.pTime ? input.timeStamp - this.pTime < options.interval : true;\n var validMultiTap = !this.pCenter || getDistance(this.pCenter, input.center) < options.posThreshold;\n this.pTime = input.timeStamp;\n this.pCenter = input.center;\n\n if (!validMultiTap || !validInterval) {\n this.count = 1;\n } else {\n this.count += 1;\n }\n\n this._input = input; // if tap count matches we have recognized it,\n // else it has began recognizing...\n\n var tapCount = this.count % options.taps;\n\n if (tapCount === 0) {\n // no failing requirements, immediately trigger the tap event\n // or wait as long as the multitap interval to trigger\n if (!this.hasRequireFailures()) {\n return STATE_RECOGNIZED;\n } else {\n this._timer = setTimeout(function () {\n _this2.state = STATE_RECOGNIZED;\n\n _this2.tryEmit();\n }, options.interval);\n return STATE_BEGAN;\n }\n }\n }\n\n return STATE_FAILED;\n };\n\n _proto.failTimeout = function failTimeout() {\n var _this3 = this;\n\n this._timer = setTimeout(function () {\n _this3.state = STATE_FAILED;\n }, this.options.interval);\n return STATE_FAILED;\n };\n\n _proto.reset = function reset() {\n clearTimeout(this._timer);\n };\n\n _proto.emit = function emit() {\n if (this.state === STATE_RECOGNIZED) {\n this._input.tapCount = this.count;\n this.manager.emit(this.options.event, this._input);\n }\n };\n\n return TapRecognizer;\n}(Recognizer);\n\n/**\n * @private\n * This recognizer is just used as a base for the simple attribute recognizers.\n * @constructor\n * @extends Recognizer\n */\n\nvar AttrRecognizer =\n/*#__PURE__*/\nfunction (_Recognizer) {\n _inheritsLoose(AttrRecognizer, _Recognizer);\n\n function AttrRecognizer(options) {\n if (options === void 0) {\n options = {};\n }\n\n return _Recognizer.call(this, _extends({\n pointers: 1\n }, options)) || this;\n }\n /**\n * @private\n * Used to check if it the recognizer receives valid input, like input.distance > 10.\n * @memberof AttrRecognizer\n * @param {Object} input\n * @returns {Boolean} recognized\n */\n\n\n var _proto = AttrRecognizer.prototype;\n\n _proto.attrTest = function attrTest(input) {\n var optionPointers = this.options.pointers;\n return optionPointers === 0 || input.pointers.length === optionPointers;\n };\n /**\n * @private\n * Process the input and return the state for the recognizer\n * @memberof AttrRecognizer\n * @param {Object} input\n * @returns {*} State\n */\n\n\n _proto.process = function process(input) {\n var state = this.state;\n var eventType = input.eventType;\n var isRecognized = state & (STATE_BEGAN | STATE_CHANGED);\n var isValid = this.attrTest(input); // on cancel input and we've recognized before, return STATE_CANCELLED\n\n if (isRecognized && (eventType & INPUT_CANCEL || !isValid)) {\n return state | STATE_CANCELLED;\n } else if (isRecognized || isValid) {\n if (eventType & INPUT_END) {\n return state | STATE_ENDED;\n } else if (!(state & STATE_BEGAN)) {\n return STATE_BEGAN;\n }\n\n return state | STATE_CHANGED;\n }\n\n return STATE_FAILED;\n };\n\n return AttrRecognizer;\n}(Recognizer);\n\n/**\n * @private\n * direction cons to string\n * @param {constant} direction\n * @returns {String}\n */\n\nfunction directionStr(direction) {\n if (direction === DIRECTION_DOWN) {\n return 'down';\n } else if (direction === DIRECTION_UP) {\n return 'up';\n } else if (direction === DIRECTION_LEFT) {\n return 'left';\n } else if (direction === DIRECTION_RIGHT) {\n return 'right';\n }\n\n return '';\n}\n\n/**\n * @private\n * Pan\n * Recognized when the pointer is down and moved in the allowed direction.\n * @constructor\n * @extends AttrRecognizer\n */\n\nvar PanRecognizer =\n/*#__PURE__*/\nfunction (_AttrRecognizer) {\n _inheritsLoose(PanRecognizer, _AttrRecognizer);\n\n function PanRecognizer(options) {\n var _this;\n\n if (options === void 0) {\n options = {};\n }\n\n _this = _AttrRecognizer.call(this, _extends({\n event: 'pan',\n threshold: 10,\n pointers: 1,\n direction: DIRECTION_ALL\n }, options)) || this;\n _this.pX = null;\n _this.pY = null;\n return _this;\n }\n\n var _proto = PanRecognizer.prototype;\n\n _proto.getTouchAction = function getTouchAction() {\n var direction = this.options.direction;\n var actions = [];\n\n if (direction & DIRECTION_HORIZONTAL) {\n actions.push(TOUCH_ACTION_PAN_Y);\n }\n\n if (direction & DIRECTION_VERTICAL) {\n actions.push(TOUCH_ACTION_PAN_X);\n }\n\n return actions;\n };\n\n _proto.directionTest = function directionTest(input) {\n var options = this.options;\n var hasMoved = true;\n var distance = input.distance;\n var direction = input.direction;\n var x = input.deltaX;\n var y = input.deltaY; // lock to axis?\n\n if (!(direction & options.direction)) {\n if (options.direction & DIRECTION_HORIZONTAL) {\n direction = x === 0 ? DIRECTION_NONE : x < 0 ? DIRECTION_LEFT : DIRECTION_RIGHT;\n hasMoved = x !== this.pX;\n distance = Math.abs(input.deltaX);\n } else {\n direction = y === 0 ? DIRECTION_NONE : y < 0 ? DIRECTION_UP : DIRECTION_DOWN;\n hasMoved = y !== this.pY;\n distance = Math.abs(input.deltaY);\n }\n }\n\n input.direction = direction;\n return hasMoved && distance > options.threshold && direction & options.direction;\n };\n\n _proto.attrTest = function attrTest(input) {\n return AttrRecognizer.prototype.attrTest.call(this, input) && ( // replace with a super call\n this.state & STATE_BEGAN || !(this.state & STATE_BEGAN) && this.directionTest(input));\n };\n\n _proto.emit = function emit(input) {\n this.pX = input.deltaX;\n this.pY = input.deltaY;\n var direction = directionStr(input.direction);\n\n if (direction) {\n input.additionalEvent = this.options.event + direction;\n }\n\n _AttrRecognizer.prototype.emit.call(this, input);\n };\n\n return PanRecognizer;\n}(AttrRecognizer);\n\n/**\n * @private\n * Swipe\n * Recognized when the pointer is moving fast (velocity), with enough distance in the allowed direction.\n * @constructor\n * @extends AttrRecognizer\n */\n\nvar SwipeRecognizer =\n/*#__PURE__*/\nfunction (_AttrRecognizer) {\n _inheritsLoose(SwipeRecognizer, _AttrRecognizer);\n\n function SwipeRecognizer(options) {\n if (options === void 0) {\n options = {};\n }\n\n return _AttrRecognizer.call(this, _extends({\n event: 'swipe',\n threshold: 10,\n velocity: 0.3,\n direction: DIRECTION_HORIZONTAL | DIRECTION_VERTICAL,\n pointers: 1\n }, options)) || this;\n }\n\n var _proto = SwipeRecognizer.prototype;\n\n _proto.getTouchAction = function getTouchAction() {\n return PanRecognizer.prototype.getTouchAction.call(this);\n };\n\n _proto.attrTest = function attrTest(input) {\n var direction = this.options.direction;\n var velocity;\n\n if (direction & (DIRECTION_HORIZONTAL | DIRECTION_VERTICAL)) {\n velocity = input.overallVelocity;\n } else if (direction & DIRECTION_HORIZONTAL) {\n velocity = input.overallVelocityX;\n } else if (direction & DIRECTION_VERTICAL) {\n velocity = input.overallVelocityY;\n }\n\n return _AttrRecognizer.prototype.attrTest.call(this, input) && direction & input.offsetDirection && input.distance > this.options.threshold && input.maxPointers === this.options.pointers && abs$1(velocity) > this.options.velocity && input.eventType & INPUT_END;\n };\n\n _proto.emit = function emit(input) {\n var direction = directionStr(input.offsetDirection);\n\n if (direction) {\n this.manager.emit(this.options.event + direction, input);\n }\n\n this.manager.emit(this.options.event, input);\n };\n\n return SwipeRecognizer;\n}(AttrRecognizer);\n\n/**\n * @private\n * Pinch\n * Recognized when two or more pointers are moving toward (zoom-in) or away from each other (zoom-out).\n * @constructor\n * @extends AttrRecognizer\n */\n\nvar PinchRecognizer =\n/*#__PURE__*/\nfunction (_AttrRecognizer) {\n _inheritsLoose(PinchRecognizer, _AttrRecognizer);\n\n function PinchRecognizer(options) {\n if (options === void 0) {\n options = {};\n }\n\n return _AttrRecognizer.call(this, _extends({\n event: 'pinch',\n threshold: 0,\n pointers: 2\n }, options)) || this;\n }\n\n var _proto = PinchRecognizer.prototype;\n\n _proto.getTouchAction = function getTouchAction() {\n return [TOUCH_ACTION_NONE];\n };\n\n _proto.attrTest = function attrTest(input) {\n return _AttrRecognizer.prototype.attrTest.call(this, input) && (Math.abs(input.scale - 1) > this.options.threshold || this.state & STATE_BEGAN);\n };\n\n _proto.emit = function emit(input) {\n if (input.scale !== 1) {\n var inOut = input.scale < 1 ? 'in' : 'out';\n input.additionalEvent = this.options.event + inOut;\n }\n\n _AttrRecognizer.prototype.emit.call(this, input);\n };\n\n return PinchRecognizer;\n}(AttrRecognizer);\n\n/**\n * @private\n * Rotate\n * Recognized when two or more pointer are moving in a circular motion.\n * @constructor\n * @extends AttrRecognizer\n */\n\nvar RotateRecognizer =\n/*#__PURE__*/\nfunction (_AttrRecognizer) {\n _inheritsLoose(RotateRecognizer, _AttrRecognizer);\n\n function RotateRecognizer(options) {\n if (options === void 0) {\n options = {};\n }\n\n return _AttrRecognizer.call(this, _extends({\n event: 'rotate',\n threshold: 0,\n pointers: 2\n }, options)) || this;\n }\n\n var _proto = RotateRecognizer.prototype;\n\n _proto.getTouchAction = function getTouchAction() {\n return [TOUCH_ACTION_NONE];\n };\n\n _proto.attrTest = function attrTest(input) {\n return _AttrRecognizer.prototype.attrTest.call(this, input) && (Math.abs(input.rotation) > this.options.threshold || this.state & STATE_BEGAN);\n };\n\n return RotateRecognizer;\n}(AttrRecognizer);\n\n/**\n * @private\n * Press\n * Recognized when the pointer is down for x ms without any movement.\n * @constructor\n * @extends Recognizer\n */\n\nvar PressRecognizer =\n/*#__PURE__*/\nfunction (_Recognizer) {\n _inheritsLoose(PressRecognizer, _Recognizer);\n\n function PressRecognizer(options) {\n var _this;\n\n if (options === void 0) {\n options = {};\n }\n\n _this = _Recognizer.call(this, _extends({\n event: 'press',\n pointers: 1,\n time: 251,\n // minimal time of the pointer to be pressed\n threshold: 9\n }, options)) || this;\n _this._timer = null;\n _this._input = null;\n return _this;\n }\n\n var _proto = PressRecognizer.prototype;\n\n _proto.getTouchAction = function getTouchAction() {\n return [TOUCH_ACTION_AUTO];\n };\n\n _proto.process = function process(input) {\n var _this2 = this;\n\n var options = this.options;\n var validPointers = input.pointers.length === options.pointers;\n var validMovement = input.distance < options.threshold;\n var validTime = input.deltaTime > options.time;\n this._input = input; // we only allow little movement\n // and we've reached an end event, so a tap is possible\n\n if (!validMovement || !validPointers || input.eventType & (INPUT_END | INPUT_CANCEL) && !validTime) {\n this.reset();\n } else if (input.eventType & INPUT_START) {\n this.reset();\n this._timer = setTimeout(function () {\n _this2.state = STATE_RECOGNIZED;\n\n _this2.tryEmit();\n }, options.time);\n } else if (input.eventType & INPUT_END) {\n return STATE_RECOGNIZED;\n }\n\n return STATE_FAILED;\n };\n\n _proto.reset = function reset() {\n clearTimeout(this._timer);\n };\n\n _proto.emit = function emit(input) {\n if (this.state !== STATE_RECOGNIZED) {\n return;\n }\n\n if (input && input.eventType & INPUT_END) {\n this.manager.emit(this.options.event + \"up\", input);\n } else {\n this._input.timeStamp = now();\n this.manager.emit(this.options.event, this._input);\n }\n };\n\n return PressRecognizer;\n}(Recognizer);\n\nvar defaults = {\n /**\n * @private\n * set if DOM events are being triggered.\n * But this is slower and unused by simple implementations, so disabled by default.\n * @type {Boolean}\n * @default false\n */\n domEvents: false,\n\n /**\n * @private\n * The value for the touchAction property/fallback.\n * When set to `compute` it will magically set the correct value based on the added recognizers.\n * @type {String}\n * @default compute\n */\n touchAction: TOUCH_ACTION_COMPUTE,\n\n /**\n * @private\n * @type {Boolean}\n * @default true\n */\n enable: true,\n\n /**\n * @private\n * EXPERIMENTAL FEATURE -- can be removed/changed\n * Change the parent input target element.\n * If Null, then it is being set the to main element.\n * @type {Null|EventTarget}\n * @default null\n */\n inputTarget: null,\n\n /**\n * @private\n * force an input class\n * @type {Null|Function}\n * @default null\n */\n inputClass: null,\n\n /**\n * @private\n * Some CSS properties can be used to improve the working of Hammer.\n * Add them to this method and they will be set when creating a new Manager.\n * @namespace\n */\n cssProps: {\n /**\n * @private\n * Disables text selection to improve the dragging gesture. Mainly for desktop browsers.\n * @type {String}\n * @default 'none'\n */\n userSelect: \"none\",\n\n /**\n * @private\n * Disable the Windows Phone grippers when pressing an element.\n * @type {String}\n * @default 'none'\n */\n touchSelect: \"none\",\n\n /**\n * @private\n * Disables the default callout shown when you touch and hold a touch target.\n * On iOS, when you touch and hold a touch target such as a link, Safari displays\n * a callout containing information about the link. This property allows you to disable that callout.\n * @type {String}\n * @default 'none'\n */\n touchCallout: \"none\",\n\n /**\n * @private\n * Specifies whether zooming is enabled. Used by IE10>\n * @type {String}\n * @default 'none'\n */\n contentZooming: \"none\",\n\n /**\n * @private\n * Specifies that an entire element should be draggable instead of its contents. Mainly for desktop browsers.\n * @type {String}\n * @default 'none'\n */\n userDrag: \"none\",\n\n /**\n * @private\n * Overrides the highlight color shown when the user taps a link or a JavaScript\n * clickable element in iOS. This property obeys the alpha value, if specified.\n * @type {String}\n * @default 'rgba(0,0,0,0)'\n */\n tapHighlightColor: \"rgba(0,0,0,0)\"\n }\n};\n/**\n * @private\n * Default recognizer setup when calling `Hammer()`\n * When creating a new Manager these will be skipped.\n * This is separated with other defaults because of tree-shaking.\n * @type {Array}\n */\n\nvar preset = [[RotateRecognizer, {\n enable: false\n}], [PinchRecognizer, {\n enable: false\n}, ['rotate']], [SwipeRecognizer, {\n direction: DIRECTION_HORIZONTAL\n}], [PanRecognizer, {\n direction: DIRECTION_HORIZONTAL\n}, ['swipe']], [TapRecognizer], [TapRecognizer, {\n event: 'doubletap',\n taps: 2\n}, ['tap']], [PressRecognizer]];\n\nvar STOP = 1;\nvar FORCED_STOP = 2;\n/**\n * @private\n * add/remove the css properties as defined in manager.options.cssProps\n * @param {Manager} manager\n * @param {Boolean} add\n */\n\nfunction toggleCssProps(manager, add) {\n var element = manager.element;\n\n if (!element.style) {\n return;\n }\n\n var prop;\n each(manager.options.cssProps, function (value, name) {\n prop = prefixed(element.style, name);\n\n if (add) {\n manager.oldCssProps[prop] = element.style[prop];\n element.style[prop] = value;\n } else {\n element.style[prop] = manager.oldCssProps[prop] || \"\";\n }\n });\n\n if (!add) {\n manager.oldCssProps = {};\n }\n}\n/**\n * @private\n * trigger dom event\n * @param {String} event\n * @param {Object} data\n */\n\n\nfunction triggerDomEvent(event, data) {\n var gestureEvent = document.createEvent(\"Event\");\n gestureEvent.initEvent(event, true, true);\n gestureEvent.gesture = data;\n data.target.dispatchEvent(gestureEvent);\n}\n/**\n* @private\n * Manager\n * @param {HTMLElement} element\n * @param {Object} [options]\n * @constructor\n */\n\n\nvar Manager =\n/*#__PURE__*/\nfunction () {\n function Manager(element, options) {\n var _this = this;\n\n this.options = assign$1({}, defaults, options || {});\n this.options.inputTarget = this.options.inputTarget || element;\n this.handlers = {};\n this.session = {};\n this.recognizers = [];\n this.oldCssProps = {};\n this.element = element;\n this.input = createInputInstance(this);\n this.touchAction = new TouchAction(this, this.options.touchAction);\n toggleCssProps(this, true);\n each(this.options.recognizers, function (item) {\n var recognizer = _this.add(new item[0](item[1]));\n\n item[2] && recognizer.recognizeWith(item[2]);\n item[3] && recognizer.requireFailure(item[3]);\n }, this);\n }\n /**\n * @private\n * set options\n * @param {Object} options\n * @returns {Manager}\n */\n\n\n var _proto = Manager.prototype;\n\n _proto.set = function set(options) {\n assign$1(this.options, options); // Options that need a little more setup\n\n if (options.touchAction) {\n this.touchAction.update();\n }\n\n if (options.inputTarget) {\n // Clean up existing event listeners and reinitialize\n this.input.destroy();\n this.input.target = options.inputTarget;\n this.input.init();\n }\n\n return this;\n };\n /**\n * @private\n * stop recognizing for this session.\n * This session will be discarded, when a new [input]start event is fired.\n * When forced, the recognizer cycle is stopped immediately.\n * @param {Boolean} [force]\n */\n\n\n _proto.stop = function stop(force) {\n this.session.stopped = force ? FORCED_STOP : STOP;\n };\n /**\n * @private\n * run the recognizers!\n * called by the inputHandler function on every movement of the pointers (touches)\n * it walks through all the recognizers and tries to detect the gesture that is being made\n * @param {Object} inputData\n */\n\n\n _proto.recognize = function recognize(inputData) {\n var session = this.session;\n\n if (session.stopped) {\n return;\n } // run the touch-action polyfill\n\n\n this.touchAction.preventDefaults(inputData);\n var recognizer;\n var recognizers = this.recognizers; // this holds the recognizer that is being recognized.\n // so the recognizer's state needs to be BEGAN, CHANGED, ENDED or RECOGNIZED\n // if no recognizer is detecting a thing, it is set to `null`\n\n var curRecognizer = session.curRecognizer; // reset when the last recognizer is recognized\n // or when we're in a new session\n\n if (!curRecognizer || curRecognizer && curRecognizer.state & STATE_RECOGNIZED) {\n session.curRecognizer = null;\n curRecognizer = null;\n }\n\n var i = 0;\n\n while (i < recognizers.length) {\n recognizer = recognizers[i]; // find out if we are allowed try to recognize the input for this one.\n // 1. allow if the session is NOT forced stopped (see the .stop() method)\n // 2. allow if we still haven't recognized a gesture in this session, or the this recognizer is the one\n // that is being recognized.\n // 3. allow if the recognizer is allowed to run simultaneous with the current recognized recognizer.\n // this can be setup with the `recognizeWith()` method on the recognizer.\n\n if (session.stopped !== FORCED_STOP && ( // 1\n !curRecognizer || recognizer === curRecognizer || // 2\n recognizer.canRecognizeWith(curRecognizer))) {\n // 3\n recognizer.recognize(inputData);\n } else {\n recognizer.reset();\n } // if the recognizer has been recognizing the input as a valid gesture, we want to store this one as the\n // current active recognizer. but only if we don't already have an active recognizer\n\n\n if (!curRecognizer && recognizer.state & (STATE_BEGAN | STATE_CHANGED | STATE_ENDED)) {\n session.curRecognizer = recognizer;\n curRecognizer = recognizer;\n }\n\n i++;\n }\n };\n /**\n * @private\n * get a recognizer by its event name.\n * @param {Recognizer|String} recognizer\n * @returns {Recognizer|Null}\n */\n\n\n _proto.get = function get(recognizer) {\n if (recognizer instanceof Recognizer) {\n return recognizer;\n }\n\n var recognizers = this.recognizers;\n\n for (var i = 0; i < recognizers.length; i++) {\n if (recognizers[i].options.event === recognizer) {\n return recognizers[i];\n }\n }\n\n return null;\n };\n /**\n * @private add a recognizer to the manager\n * existing recognizers with the same event name will be removed\n * @param {Recognizer} recognizer\n * @returns {Recognizer|Manager}\n */\n\n\n _proto.add = function add(recognizer) {\n if (invokeArrayArg(recognizer, \"add\", this)) {\n return this;\n } // remove existing\n\n\n var existing = this.get(recognizer.options.event);\n\n if (existing) {\n this.remove(existing);\n }\n\n this.recognizers.push(recognizer);\n recognizer.manager = this;\n this.touchAction.update();\n return recognizer;\n };\n /**\n * @private\n * remove a recognizer by name or instance\n * @param {Recognizer|String} recognizer\n * @returns {Manager}\n */\n\n\n _proto.remove = function remove(recognizer) {\n if (invokeArrayArg(recognizer, \"remove\", this)) {\n return this;\n }\n\n var targetRecognizer = this.get(recognizer); // let's make sure this recognizer exists\n\n if (recognizer) {\n var recognizers = this.recognizers;\n var index = inArray(recognizers, targetRecognizer);\n\n if (index !== -1) {\n recognizers.splice(index, 1);\n this.touchAction.update();\n }\n }\n\n return this;\n };\n /**\n * @private\n * bind event\n * @param {String} events\n * @param {Function} handler\n * @returns {EventEmitter} this\n */\n\n\n _proto.on = function on(events, handler) {\n if (events === undefined || handler === undefined) {\n return this;\n }\n\n var handlers = this.handlers;\n each(splitStr(events), function (event) {\n handlers[event] = handlers[event] || [];\n handlers[event].push(handler);\n });\n return this;\n };\n /**\n * @private unbind event, leave emit blank to remove all handlers\n * @param {String} events\n * @param {Function} [handler]\n * @returns {EventEmitter} this\n */\n\n\n _proto.off = function off(events, handler) {\n if (events === undefined) {\n return this;\n }\n\n var handlers = this.handlers;\n each(splitStr(events), function (event) {\n if (!handler) {\n delete handlers[event];\n } else {\n handlers[event] && handlers[event].splice(inArray(handlers[event], handler), 1);\n }\n });\n return this;\n };\n /**\n * @private emit event to the listeners\n * @param {String} event\n * @param {Object} data\n */\n\n\n _proto.emit = function emit(event, data) {\n // we also want to trigger dom events\n if (this.options.domEvents) {\n triggerDomEvent(event, data);\n } // no handlers, so skip it all\n\n\n var handlers = this.handlers[event] && this.handlers[event].slice();\n\n if (!handlers || !handlers.length) {\n return;\n }\n\n data.type = event;\n\n data.preventDefault = function () {\n data.srcEvent.preventDefault();\n };\n\n var i = 0;\n\n while (i < handlers.length) {\n handlers[i](data);\n i++;\n }\n };\n /**\n * @private\n * destroy the manager and unbinds all events\n * it doesn't unbind dom events, that is the user own responsibility\n */\n\n\n _proto.destroy = function destroy() {\n this.element && toggleCssProps(this, false);\n this.handlers = {};\n this.session = {};\n this.input.destroy();\n this.element = null;\n };\n\n return Manager;\n}();\n\nvar SINGLE_TOUCH_INPUT_MAP = {\n touchstart: INPUT_START,\n touchmove: INPUT_MOVE,\n touchend: INPUT_END,\n touchcancel: INPUT_CANCEL\n};\nvar SINGLE_TOUCH_TARGET_EVENTS = 'touchstart';\nvar SINGLE_TOUCH_WINDOW_EVENTS = 'touchstart touchmove touchend touchcancel';\n/**\n * @private\n * Touch events input\n * @constructor\n * @extends Input\n */\n\nvar SingleTouchInput =\n/*#__PURE__*/\nfunction (_Input) {\n _inheritsLoose(SingleTouchInput, _Input);\n\n function SingleTouchInput() {\n var _this;\n\n var proto = SingleTouchInput.prototype;\n proto.evTarget = SINGLE_TOUCH_TARGET_EVENTS;\n proto.evWin = SINGLE_TOUCH_WINDOW_EVENTS;\n _this = _Input.apply(this, arguments) || this;\n _this.started = false;\n return _this;\n }\n\n var _proto = SingleTouchInput.prototype;\n\n _proto.handler = function handler(ev) {\n var type = SINGLE_TOUCH_INPUT_MAP[ev.type]; // should we handle the touch events?\n\n if (type === INPUT_START) {\n this.started = true;\n }\n\n if (!this.started) {\n return;\n }\n\n var touches = normalizeSingleTouches.call(this, ev, type); // when done, reset the started state\n\n if (type & (INPUT_END | INPUT_CANCEL) && touches[0].length - touches[1].length === 0) {\n this.started = false;\n }\n\n this.callback(this.manager, type, {\n pointers: touches[0],\n changedPointers: touches[1],\n pointerType: INPUT_TYPE_TOUCH,\n srcEvent: ev\n });\n };\n\n return SingleTouchInput;\n}(Input);\n\nfunction normalizeSingleTouches(ev, type) {\n var all = toArray(ev.touches);\n var changed = toArray(ev.changedTouches);\n\n if (type & (INPUT_END | INPUT_CANCEL)) {\n all = uniqueArray(all.concat(changed), 'identifier', true);\n }\n\n return [all, changed];\n}\n\n/**\n * @private\n * wrap a method with a deprecation warning and stack trace\n * @param {Function} method\n * @param {String} name\n * @param {String} message\n * @returns {Function} A new function wrapping the supplied method.\n */\nfunction deprecate(method, name, message) {\n var deprecationMessage = \"DEPRECATED METHOD: \" + name + \"\\n\" + message + \" AT \\n\";\n return function () {\n var e = new Error('get-stack-trace');\n var stack = e && e.stack ? e.stack.replace(/^[^\\(]+?[\\n$]/gm, '').replace(/^\\s+at\\s+/gm, '').replace(/^Object.\\s*\\(/gm, '{anonymous}()@') : 'Unknown Stack Trace';\n var log = window.console && (window.console.warn || window.console.log);\n\n if (log) {\n log.call(window.console, deprecationMessage, stack);\n }\n\n return method.apply(this, arguments);\n };\n}\n\n/**\n * @private\n * extend object.\n * means that properties in dest will be overwritten by the ones in src.\n * @param {Object} dest\n * @param {Object} src\n * @param {Boolean} [merge=false]\n * @returns {Object} dest\n */\n\nvar extend = deprecate(function (dest, src, merge) {\n var keys = Object.keys(src);\n var i = 0;\n\n while (i < keys.length) {\n if (!merge || merge && dest[keys[i]] === undefined) {\n dest[keys[i]] = src[keys[i]];\n }\n\n i++;\n }\n\n return dest;\n}, 'extend', 'Use `assign`.');\n\n/**\n * @private\n * merge the values from src in the dest.\n * means that properties that exist in dest will not be overwritten by src\n * @param {Object} dest\n * @param {Object} src\n * @returns {Object} dest\n */\n\nvar merge$2 = deprecate(function (dest, src) {\n return extend(dest, src, true);\n}, 'merge', 'Use `assign`.');\n\n/**\n * @private\n * simple class inheritance\n * @param {Function} child\n * @param {Function} base\n * @param {Object} [properties]\n */\n\nfunction inherit(child, base, properties) {\n var baseP = base.prototype;\n var childP;\n childP = child.prototype = Object.create(baseP);\n childP.constructor = child;\n childP._super = baseP;\n\n if (properties) {\n assign$1(childP, properties);\n }\n}\n\n/**\n * @private\n * simple function bind\n * @param {Function} fn\n * @param {Object} context\n * @returns {Function}\n */\nfunction bindFn(fn, context) {\n return function boundFn() {\n return fn.apply(context, arguments);\n };\n}\n\n/**\n * @private\n * Simple way to create a manager with a default set of recognizers.\n * @param {HTMLElement} element\n * @param {Object} [options]\n * @constructor\n */\n\nvar Hammer$2 =\n/*#__PURE__*/\nfunction () {\n var Hammer =\n /**\n * @private\n * @const {string}\n */\n function Hammer(element, options) {\n if (options === void 0) {\n options = {};\n }\n\n return new Manager(element, _extends({\n recognizers: preset.concat()\n }, options));\n };\n\n Hammer.VERSION = \"2.0.17-rc\";\n Hammer.DIRECTION_ALL = DIRECTION_ALL;\n Hammer.DIRECTION_DOWN = DIRECTION_DOWN;\n Hammer.DIRECTION_LEFT = DIRECTION_LEFT;\n Hammer.DIRECTION_RIGHT = DIRECTION_RIGHT;\n Hammer.DIRECTION_UP = DIRECTION_UP;\n Hammer.DIRECTION_HORIZONTAL = DIRECTION_HORIZONTAL;\n Hammer.DIRECTION_VERTICAL = DIRECTION_VERTICAL;\n Hammer.DIRECTION_NONE = DIRECTION_NONE;\n Hammer.DIRECTION_DOWN = DIRECTION_DOWN;\n Hammer.INPUT_START = INPUT_START;\n Hammer.INPUT_MOVE = INPUT_MOVE;\n Hammer.INPUT_END = INPUT_END;\n Hammer.INPUT_CANCEL = INPUT_CANCEL;\n Hammer.STATE_POSSIBLE = STATE_POSSIBLE;\n Hammer.STATE_BEGAN = STATE_BEGAN;\n Hammer.STATE_CHANGED = STATE_CHANGED;\n Hammer.STATE_ENDED = STATE_ENDED;\n Hammer.STATE_RECOGNIZED = STATE_RECOGNIZED;\n Hammer.STATE_CANCELLED = STATE_CANCELLED;\n Hammer.STATE_FAILED = STATE_FAILED;\n Hammer.Manager = Manager;\n Hammer.Input = Input;\n Hammer.TouchAction = TouchAction;\n Hammer.TouchInput = TouchInput;\n Hammer.MouseInput = MouseInput;\n Hammer.PointerEventInput = PointerEventInput;\n Hammer.TouchMouseInput = TouchMouseInput;\n Hammer.SingleTouchInput = SingleTouchInput;\n Hammer.Recognizer = Recognizer;\n Hammer.AttrRecognizer = AttrRecognizer;\n Hammer.Tap = TapRecognizer;\n Hammer.Pan = PanRecognizer;\n Hammer.Swipe = SwipeRecognizer;\n Hammer.Pinch = PinchRecognizer;\n Hammer.Rotate = RotateRecognizer;\n Hammer.Press = PressRecognizer;\n Hammer.on = addEventListeners;\n Hammer.off = removeEventListeners;\n Hammer.each = each;\n Hammer.merge = merge$2;\n Hammer.extend = extend;\n Hammer.bindFn = bindFn;\n Hammer.assign = assign$1;\n Hammer.inherit = inherit;\n Hammer.bindFn = bindFn;\n Hammer.prefixed = prefixed;\n Hammer.toArray = toArray;\n Hammer.inArray = inArray;\n Hammer.uniqueArray = uniqueArray;\n Hammer.splitStr = splitStr;\n Hammer.boolOrFn = boolOrFn;\n Hammer.hasParent = hasParent;\n Hammer.addEventListeners = addEventListeners;\n Hammer.removeEventListeners = removeEventListeners;\n Hammer.defaults = assign$1({}, defaults, {\n preset: preset\n });\n return Hammer;\n}();\n\n// style loader but by script tag, not by the loader.\n\nHammer$2.defaults;\n\nvar RealHammer = Hammer$2;\n\nfunction _createForOfIteratorHelper$7(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray$7(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray$7(o, minLen) { var _context21; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray$7(o, minLen); var n = _sliceInstanceProperty(_context21 = Object.prototype.toString.call(o)).call(_context21, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$7(o, minLen); }\nfunction _arrayLikeToArray$7(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n/**\r\n * Use this symbol to delete properies in deepObjectAssign.\r\n */\nvar DELETE = _Symbol(\"DELETE\");\n/**\r\n * Pure version of deepObjectAssign, it doesn't modify any of it's arguments.\r\n *\r\n * @param base - The base object that fullfils the whole interface T.\r\n * @param updates - Updates that may change or delete props.\r\n * @returns A brand new instance with all the supplied objects deeply merged.\r\n */\nfunction pureDeepObjectAssign(base) {\n var _context;\n for (var _len = arguments.length, updates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n updates[_key - 1] = arguments[_key];\n }\n return deepObjectAssign.apply(void 0, _concatInstanceProperty(_context = [{}, base]).call(_context, updates));\n}\n/**\r\n * Deep version of object assign with additional deleting by the DELETE symbol.\r\n *\r\n * @param values - Objects to be deeply merged.\r\n * @returns The first object from values.\r\n */\nfunction deepObjectAssign() {\n var merged = deepObjectAssignNonentry.apply(void 0, arguments);\n stripDelete(merged);\n return merged;\n}\n/**\r\n * Deep version of object assign with additional deleting by the DELETE symbol.\r\n *\r\n * @remarks\r\n * This doesn't strip the DELETE symbols so they may end up in the final object.\r\n * @param values - Objects to be deeply merged.\r\n * @returns The first object from values.\r\n */\nfunction deepObjectAssignNonentry() {\n for (var _len2 = arguments.length, values = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n values[_key2] = arguments[_key2];\n }\n if (values.length < 2) {\n return values[0];\n } else if (values.length > 2) {\n var _context2;\n return deepObjectAssignNonentry.apply(void 0, _concatInstanceProperty(_context2 = [deepObjectAssign(values[0], values[1])]).call(_context2, _toConsumableArray(_sliceInstanceProperty(values).call(values, 2))));\n }\n var a = values[0];\n var b = values[1];\n var _iterator = _createForOfIteratorHelper$7(_Reflect$ownKeys(b)),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var prop = _step.value;\n if (!Object.prototype.propertyIsEnumerable.call(b, prop)) ;else if (b[prop] === DELETE) {\n delete a[prop];\n } else if (a[prop] !== null && b[prop] !== null && _typeof$1(a[prop]) === \"object\" && _typeof$1(b[prop]) === \"object\" && !_Array$isArray(a[prop]) && !_Array$isArray(b[prop])) {\n a[prop] = deepObjectAssignNonentry(a[prop], b[prop]);\n } else {\n a[prop] = clone(b[prop]);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return a;\n}\n/**\r\n * Deep clone given object or array. In case of primitive simply return.\r\n *\r\n * @param a - Anything.\r\n * @returns Deep cloned object/array or unchanged a.\r\n */\nfunction clone(a) {\n if (_Array$isArray(a)) {\n return _mapInstanceProperty(a).call(a, function (value) {\n return clone(value);\n });\n } else if (_typeof$1(a) === \"object\" && a !== null) {\n return deepObjectAssignNonentry({}, a);\n } else {\n return a;\n }\n}\n/**\r\n * Strip DELETE from given object.\r\n *\r\n * @param a - Object which may contain DELETE but won't after this is executed.\r\n */\nfunction stripDelete(a) {\n for (var _i = 0, _Object$keys$1 = _Object$keys(a); _i < _Object$keys$1.length; _i++) {\n var prop = _Object$keys$1[_i];\n if (a[prop] === DELETE) {\n delete a[prop];\n } else if (_typeof$1(a[prop]) === \"object\" && a[prop] !== null) {\n stripDelete(a[prop]);\n }\n }\n}\n\n/**\r\n * Seedable, fast and reasonably good (not crypto but more than okay for our\r\n * needs) random number generator.\r\n *\r\n * @remarks\r\n * Adapted from {@link https://web.archive.org/web/20110429100736/http://baagoe.com:80/en/RandomMusings/javascript}.\r\n * Original algorithm created by Johannes Baagøe \\ in 2010.\r\n */\n/**\r\n * Create a seeded pseudo random generator based on Alea by Johannes Baagøe.\r\n *\r\n * @param seed - All supplied arguments will be used as a seed. In case nothing\r\n * is supplied the current time will be used to seed the generator.\r\n * @returns A ready to use seeded generator.\r\n */\nfunction Alea() {\n for (var _len3 = arguments.length, seed = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n seed[_key3] = arguments[_key3];\n }\n return AleaImplementation(seed.length ? seed : [_Date$now()]);\n}\n/**\r\n * An implementation of [[Alea]] without user input validation.\r\n *\r\n * @param seed - The data that will be used to seed the generator.\r\n * @returns A ready to use seeded generator.\r\n */\nfunction AleaImplementation(seed) {\n var _mashSeed = mashSeed(seed),\n _mashSeed2 = _slicedToArray(_mashSeed, 3),\n s0 = _mashSeed2[0],\n s1 = _mashSeed2[1],\n s2 = _mashSeed2[2];\n var c = 1;\n var random = function random() {\n var t = 2091639 * s0 + c * 2.3283064365386963e-10; // 2^-32\n s0 = s1;\n s1 = s2;\n return s2 = t - (c = t | 0);\n };\n random.uint32 = function () {\n return random() * 0x100000000;\n }; // 2^32\n random.fract53 = function () {\n return random() + (random() * 0x200000 | 0) * 1.1102230246251565e-16;\n }; // 2^-53\n random.algorithm = \"Alea\";\n random.seed = seed;\n random.version = \"0.9\";\n return random;\n}\n/**\r\n * Turn arbitrary data into values [[AleaImplementation]] can use to generate\r\n * random numbers.\r\n *\r\n * @param seed - Arbitrary data that will be used as the seed.\r\n * @returns Three numbers to use as initial values for [[AleaImplementation]].\r\n */\nfunction mashSeed() {\n var mash = Mash();\n var s0 = mash(\" \");\n var s1 = mash(\" \");\n var s2 = mash(\" \");\n for (var i = 0; i < arguments.length; i++) {\n s0 -= mash(i < 0 || arguments.length <= i ? undefined : arguments[i]);\n if (s0 < 0) {\n s0 += 1;\n }\n s1 -= mash(i < 0 || arguments.length <= i ? undefined : arguments[i]);\n if (s1 < 0) {\n s1 += 1;\n }\n s2 -= mash(i < 0 || arguments.length <= i ? undefined : arguments[i]);\n if (s2 < 0) {\n s2 += 1;\n }\n }\n return [s0, s1, s2];\n}\n/**\r\n * Create a new mash function.\r\n *\r\n * @returns A nonpure function that takes arbitrary [[Mashable]] data and turns\r\n * them into numbers.\r\n */\nfunction Mash() {\n var n = 0xefc8249d;\n return function (data) {\n var string = data.toString();\n for (var i = 0; i < string.length; i++) {\n n += string.charCodeAt(i);\n var h = 0.02519603282416938 * n;\n n = h >>> 0;\n h -= n;\n h *= n;\n n = h >>> 0;\n h -= n;\n n += h * 0x100000000; // 2^32\n }\n\n return (n >>> 0) * 2.3283064365386963e-10; // 2^-32\n };\n}\n\n/**\n * Setup a mock hammer.js object, for unit testing.\n *\n * Inspiration: https://github.com/uber/deck.gl/pull/658\n *\n * @returns {{on: noop, off: noop, destroy: noop, emit: noop, get: get}}\n */\nfunction hammerMock() {\n var noop = function noop() {};\n return {\n on: noop,\n off: noop,\n destroy: noop,\n emit: noop,\n get: function get() {\n return {\n set: noop\n };\n }\n };\n}\nvar Hammer$1 = typeof window !== \"undefined\" ? window.Hammer || RealHammer : function () {\n // hammer.js is only available in a browser, not in node.js. Replacing it with a mock object.\n return hammerMock();\n};\n\n/**\n * Turn an element into an clickToUse element.\n * When not active, the element has a transparent overlay. When the overlay is\n * clicked, the mode is changed to active.\n * When active, the element is displayed with a blue border around it, and\n * the interactive contents of the element can be used. When clicked outside\n * the element, the elements mode is changed to inactive.\n *\n * @param {Element} container\n * @class Activator\n */\nfunction Activator$1(container) {\n var _this = this,\n _context3;\n this._cleanupQueue = [];\n this.active = false;\n this._dom = {\n container: container,\n overlay: document.createElement(\"div\")\n };\n this._dom.overlay.classList.add(\"vis-overlay\");\n this._dom.container.appendChild(this._dom.overlay);\n this._cleanupQueue.push(function () {\n _this._dom.overlay.parentNode.removeChild(_this._dom.overlay);\n });\n var hammer = Hammer$1(this._dom.overlay);\n hammer.on(\"tap\", _bindInstanceProperty$1(_context3 = this._onTapOverlay).call(_context3, this));\n this._cleanupQueue.push(function () {\n hammer.destroy();\n // FIXME: cleaning up hammer instances doesn't work (Timeline not removed\n // from memory)\n });\n\n // block all touch events (except tap)\n var events = [\"tap\", \"doubletap\", \"press\", \"pinch\", \"pan\", \"panstart\", \"panmove\", \"panend\"];\n _forEachInstanceProperty(events).call(events, function (event) {\n hammer.on(event, function (event) {\n event.srcEvent.stopPropagation();\n });\n });\n\n // attach a click event to the window, in order to deactivate when clicking outside the timeline\n if (document && document.body) {\n this._onClick = function (event) {\n if (!_hasParent(event.target, container)) {\n _this.deactivate();\n }\n };\n document.body.addEventListener(\"click\", this._onClick);\n this._cleanupQueue.push(function () {\n document.body.removeEventListener(\"click\", _this._onClick);\n });\n }\n\n // prepare escape key listener for deactivating when active\n this._escListener = function (event) {\n if (\"key\" in event ? event.key === \"Escape\" : event.keyCode === 27 /* the keyCode is for IE11 */) {\n _this.deactivate();\n }\n };\n}\n\n// turn into an event emitter\nEmitter(Activator$1.prototype);\n\n// The currently active activator\nActivator$1.current = null;\n\n/**\n * Destroy the activator. Cleans up all created DOM and event listeners\n */\nActivator$1.prototype.destroy = function () {\n var _context4, _context5;\n this.deactivate();\n var _iterator2 = _createForOfIteratorHelper$7(_reverseInstanceProperty(_context4 = _spliceInstanceProperty(_context5 = this._cleanupQueue).call(_context5, 0)).call(_context4)),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var callback = _step2.value;\n callback();\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n};\n\n/**\n * Activate the element\n * Overlay is hidden, element is decorated with a blue shadow border\n */\nActivator$1.prototype.activate = function () {\n // we allow only one active activator at a time\n if (Activator$1.current) {\n Activator$1.current.deactivate();\n }\n Activator$1.current = this;\n this.active = true;\n this._dom.overlay.style.display = \"none\";\n this._dom.container.classList.add(\"vis-active\");\n this.emit(\"change\");\n this.emit(\"activate\");\n\n // ugly hack: bind ESC after emitting the events, as the Network rebinds all\n // keyboard events on a 'change' event\n document.body.addEventListener(\"keydown\", this._escListener);\n};\n\n/**\n * Deactivate the element\n * Overlay is displayed on top of the element\n */\nActivator$1.prototype.deactivate = function () {\n this.active = false;\n this._dom.overlay.style.display = \"block\";\n this._dom.container.classList.remove(\"vis-active\");\n document.body.removeEventListener(\"keydown\", this._escListener);\n this.emit(\"change\");\n this.emit(\"deactivate\");\n};\n\n/**\n * Handle a tap event: activate the container\n *\n * @param {Event} event The event\n * @private\n */\nActivator$1.prototype._onTapOverlay = function (event) {\n // activate the container\n this.activate();\n event.srcEvent.stopPropagation();\n};\n\n/**\n * Test whether the element has the requested parent element somewhere in\n * its chain of parent nodes.\n *\n * @param {HTMLElement} element\n * @param {HTMLElement} parent\n * @returns {boolean} Returns true when the parent is found somewhere in the\n * chain of parent nodes.\n * @private\n */\nfunction _hasParent(element, parent) {\n while (element) {\n if (element === parent) {\n return true;\n }\n element = element.parentNode;\n }\n return false;\n}\n// Color REs\nvar fullHexRE = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i;\nvar shortHexRE = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\nvar rgbRE = /^rgb\\( *(1?\\d{1,2}|2[0-4]\\d|25[0-5]) *, *(1?\\d{1,2}|2[0-4]\\d|25[0-5]) *, *(1?\\d{1,2}|2[0-4]\\d|25[0-5]) *\\)$/i;\nvar rgbaRE = /^rgba\\( *(1?\\d{1,2}|2[0-4]\\d|25[0-5]) *, *(1?\\d{1,2}|2[0-4]\\d|25[0-5]) *, *(1?\\d{1,2}|2[0-4]\\d|25[0-5]) *, *([01]|0?\\.\\d+) *\\)$/i;\n/**\r\n * Remove everything in the DOM object.\r\n *\r\n * @param DOMobject - Node whose child nodes will be recursively deleted.\r\n */\nfunction recursiveDOMDelete(DOMobject) {\n if (DOMobject) {\n while (DOMobject.hasChildNodes() === true) {\n var child = DOMobject.firstChild;\n if (child) {\n recursiveDOMDelete(child);\n DOMobject.removeChild(child);\n }\n }\n }\n}\n/**\r\n * Test whether given object is a string.\r\n *\r\n * @param value - Input value of unknown type.\r\n * @returns True if string, false otherwise.\r\n */\nfunction isString(value) {\n return value instanceof String || typeof value === \"string\";\n}\n/**\r\n * Test whether given object is a object (not primitive or null).\r\n *\r\n * @param value - Input value of unknown type.\r\n * @returns True if not null object, false otherwise.\r\n */\nfunction isObject$a(value) {\n return _typeof$1(value) === \"object\" && value !== null;\n}\n/**\r\n * Copy property from b to a if property present in a.\r\n * If property in b explicitly set to null, delete it if `allowDeletion` set.\r\n *\r\n * Internal helper routine, should not be exported. Not added to `exports` for that reason.\r\n *\r\n * @param a - Target object.\r\n * @param b - Source object.\r\n * @param prop - Name of property to copy from b to a.\r\n * @param allowDeletion - If true, delete property in a if explicitly set to null in b.\r\n */\nfunction copyOrDelete(a, b, prop, allowDeletion) {\n var doDeletion = false;\n if (allowDeletion === true) {\n doDeletion = b[prop] === null && a[prop] !== undefined;\n }\n if (doDeletion) {\n delete a[prop];\n } else {\n a[prop] = b[prop]; // Remember, this is a reference copy!\n }\n}\n/**\r\n * Fill an object with a possibly partially defined other object.\r\n *\r\n * Only copies values for the properties already present in a.\r\n * That means an object is not created on a property if only the b object has it.\r\n *\r\n * @param a - The object that will have it's properties updated.\r\n * @param b - The object with property updates.\r\n * @param allowDeletion - If true, delete properties in a that are explicitly set to null in b.\r\n */\nfunction fillIfDefined(a, b) {\n var allowDeletion = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n // NOTE: iteration of properties of a\n // NOTE: prototype properties iterated over as well\n for (var prop in a) {\n if (b[prop] !== undefined) {\n if (b[prop] === null || _typeof$1(b[prop]) !== \"object\") {\n // Note: typeof null === 'object'\n copyOrDelete(a, b, prop, allowDeletion);\n } else {\n var aProp = a[prop];\n var bProp = b[prop];\n if (isObject$a(aProp) && isObject$a(bProp)) {\n fillIfDefined(aProp, bProp, allowDeletion);\n }\n }\n }\n }\n}\n/**\r\n * Extend object a with selected properties of object b.\r\n * Only properties with defined values are copied.\r\n *\r\n * @remarks\r\n * Previous version of this routine implied that multiple source objects could\r\n * be used; however, the implementation was **wrong**. Since multiple (\\>1)\r\n * sources weren't used anywhere in the `vis.js` code, this has been removed\r\n * @param props - Names of first-level properties to copy over.\r\n * @param a - Target object.\r\n * @param b - Source object.\r\n * @param allowDeletion - If true, delete property in a if explicitly set to null in b.\r\n * @returns Argument a.\r\n */\nfunction selectiveDeepExtend(props, a, b) {\n var allowDeletion = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n // TODO: add support for Arrays to deepExtend\n if (_Array$isArray(b)) {\n throw new TypeError(\"Arrays are not supported by deepExtend\");\n }\n for (var p = 0; p < props.length; p++) {\n var prop = props[p];\n if (Object.prototype.hasOwnProperty.call(b, prop)) {\n if (b[prop] && b[prop].constructor === Object) {\n if (a[prop] === undefined) {\n a[prop] = {};\n }\n if (a[prop].constructor === Object) {\n deepExtend(a[prop], b[prop], false, allowDeletion);\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n } else if (_Array$isArray(b[prop])) {\n throw new TypeError(\"Arrays are not supported by deepExtend\");\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n }\n }\n return a;\n}\n/**\r\n * Extend object `a` with properties of object `b`, ignoring properties which\r\n * are explicitly specified to be excluded.\r\n *\r\n * @remarks\r\n * The properties of `b` are considered for copying. Properties which are\r\n * themselves objects are are also extended. Only properties with defined\r\n * values are copied.\r\n * @param propsToExclude - Names of properties which should *not* be copied.\r\n * @param a - Object to extend.\r\n * @param b - Object to take properties from for extension.\r\n * @param allowDeletion - If true, delete properties in a that are explicitly\r\n * set to null in b.\r\n * @returns Argument a.\r\n */\nfunction selectiveNotDeepExtend(propsToExclude, a, b) {\n var allowDeletion = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n // TODO: add support for Arrays to deepExtend\n // NOTE: array properties have an else-below; apparently, there is a problem here.\n if (_Array$isArray(b)) {\n throw new TypeError(\"Arrays are not supported by deepExtend\");\n }\n for (var prop in b) {\n if (!Object.prototype.hasOwnProperty.call(b, prop)) {\n continue;\n } // Handle local properties only\n if (_includesInstanceProperty(propsToExclude).call(propsToExclude, prop)) {\n continue;\n } // In exclusion list, skip\n if (b[prop] && b[prop].constructor === Object) {\n if (a[prop] === undefined) {\n a[prop] = {};\n }\n if (a[prop].constructor === Object) {\n deepExtend(a[prop], b[prop]); // NOTE: allowDeletion not propagated!\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n } else if (_Array$isArray(b[prop])) {\n a[prop] = [];\n for (var i = 0; i < b[prop].length; i++) {\n a[prop].push(b[prop][i]);\n }\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n }\n return a;\n}\n/**\r\n * Deep extend an object a with the properties of object b.\r\n *\r\n * @param a - Target object.\r\n * @param b - Source object.\r\n * @param protoExtend - If true, the prototype values will also be extended.\r\n * (That is the options objects that inherit from others will also get the\r\n * inherited options).\r\n * @param allowDeletion - If true, the values of fields that are null will be deleted.\r\n * @returns Argument a.\r\n */\nfunction deepExtend(a, b) {\n var protoExtend = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var allowDeletion = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n for (var prop in b) {\n if (Object.prototype.hasOwnProperty.call(b, prop) || protoExtend === true) {\n if (_typeof$1(b[prop]) === \"object\" && b[prop] !== null && _Object$getPrototypeOf$1(b[prop]) === Object.prototype) {\n if (a[prop] === undefined) {\n a[prop] = deepExtend({}, b[prop], protoExtend); // NOTE: allowDeletion not propagated!\n } else if (_typeof$1(a[prop]) === \"object\" && a[prop] !== null && _Object$getPrototypeOf$1(a[prop]) === Object.prototype) {\n deepExtend(a[prop], b[prop], protoExtend); // NOTE: allowDeletion not propagated!\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n } else if (_Array$isArray(b[prop])) {\n var _context6;\n a[prop] = _sliceInstanceProperty(_context6 = b[prop]).call(_context6);\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n }\n }\n return a;\n}\n/**\r\n * Used to extend an array and copy it. This is used to propagate paths recursively.\r\n *\r\n * @param arr - First part.\r\n * @param newValue - The value to be aadded into the array.\r\n * @returns A new array with all items from arr and newValue (which is last).\r\n */\nfunction copyAndExtendArray(arr, newValue) {\n var _context7;\n return _concatInstanceProperty(_context7 = []).call(_context7, _toConsumableArray(arr), [newValue]);\n}\n/**\r\n * Used to extend an array and copy it. This is used to propagate paths recursively.\r\n *\r\n * @param arr - The array to be copied.\r\n * @returns Shallow copy of arr.\r\n */\nfunction copyArray(arr) {\n return _sliceInstanceProperty(arr).call(arr);\n}\n/**\r\n * Retrieve the absolute left value of a DOM element.\r\n *\r\n * @param elem - A dom element, for example a div.\r\n * @returns The absolute left position of this element in the browser page.\r\n */\nfunction getAbsoluteLeft(elem) {\n return elem.getBoundingClientRect().left;\n}\n/**\r\n * Retrieve the absolute top value of a DOM element.\r\n *\r\n * @param elem - A dom element, for example a div.\r\n * @returns The absolute top position of this element in the browser page.\r\n */\nfunction getAbsoluteTop(elem) {\n return elem.getBoundingClientRect().top;\n}\n/**\r\n * For each method for both arrays and objects.\r\n * In case of an array, the built-in Array.forEach() is applied (**No, it's not!**).\r\n * In case of an Object, the method loops over all properties of the object.\r\n *\r\n * @param object - An Object or Array to be iterated over.\r\n * @param callback - Array.forEach-like callback.\r\n */\nfunction forEach$5(object, callback) {\n if (_Array$isArray(object)) {\n // array\n var len = object.length;\n for (var i = 0; i < len; i++) {\n callback(object[i], i, object);\n }\n } else {\n // object\n for (var key in object) {\n if (Object.prototype.hasOwnProperty.call(object, key)) {\n callback(object[key], key, object);\n }\n }\n }\n}\n/**\r\n * Add and event listener. Works for all browsers.\r\n *\r\n * @param element - The element to bind the event listener to.\r\n * @param action - Same as Element.addEventListener(action, —, —).\r\n * @param listener - Same as Element.addEventListener(—, listener, —).\r\n * @param useCapture - Same as Element.addEventListener(—, —, useCapture).\r\n */\nfunction addEventListener(element, action, listener, useCapture) {\n if (element.addEventListener) {\n var _context8;\n if (useCapture === undefined) {\n useCapture = false;\n }\n if (action === \"mousewheel\" && _includesInstanceProperty(_context8 = navigator.userAgent).call(_context8, \"Firefox\")) {\n action = \"DOMMouseScroll\"; // For Firefox\n }\n\n element.addEventListener(action, listener, useCapture);\n } else {\n // @TODO: IE types? Does anyone care?\n element.attachEvent(\"on\" + action, listener); // IE browsers\n }\n}\n/**\r\n * Remove an event listener from an element.\r\n *\r\n * @param element - The element to bind the event listener to.\r\n * @param action - Same as Element.removeEventListener(action, —, —).\r\n * @param listener - Same as Element.removeEventListener(—, listener, —).\r\n * @param useCapture - Same as Element.removeEventListener(—, —, useCapture).\r\n */\nfunction removeEventListener(element, action, listener, useCapture) {\n if (element.removeEventListener) {\n var _context9;\n // non-IE browsers\n if (useCapture === undefined) {\n useCapture = false;\n }\n if (action === \"mousewheel\" && _includesInstanceProperty(_context9 = navigator.userAgent).call(_context9, \"Firefox\")) {\n action = \"DOMMouseScroll\"; // For Firefox\n }\n\n element.removeEventListener(action, listener, useCapture);\n } else {\n // @TODO: IE types? Does anyone care?\n element.detachEvent(\"on\" + action, listener); // IE browsers\n }\n}\n/**\r\n * Convert hex color string into RGB color object.\r\n *\r\n * @remarks\r\n * {@link http://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb}\r\n * @param hex - Hex color string (3 or 6 digits, with or without #).\r\n * @returns RGB color object.\r\n */\nfunction hexToRGB(hex) {\n var result;\n switch (hex.length) {\n case 3:\n case 4:\n result = shortHexRE.exec(hex);\n return result ? {\n r: _parseInt(result[1] + result[1], 16),\n g: _parseInt(result[2] + result[2], 16),\n b: _parseInt(result[3] + result[3], 16)\n } : null;\n case 6:\n case 7:\n result = fullHexRE.exec(hex);\n return result ? {\n r: _parseInt(result[1], 16),\n g: _parseInt(result[2], 16),\n b: _parseInt(result[3], 16)\n } : null;\n default:\n return null;\n }\n}\n/**\r\n * This function takes string color in hex or RGB format and adds the opacity, RGBA is passed through unchanged.\r\n *\r\n * @param color - The color string (hex, RGB, RGBA).\r\n * @param opacity - The new opacity.\r\n * @returns RGBA string, for example 'rgba(255, 0, 127, 0.3)'.\r\n */\nfunction overrideOpacity(color, opacity) {\n if (_includesInstanceProperty(color).call(color, \"rgba\")) {\n return color;\n } else if (_includesInstanceProperty(color).call(color, \"rgb\")) {\n var rgb = color.substr(_indexOfInstanceProperty(color).call(color, \"(\") + 1).replace(\")\", \"\").split(\",\");\n return \"rgba(\" + rgb[0] + \",\" + rgb[1] + \",\" + rgb[2] + \",\" + opacity + \")\";\n } else {\n var _rgb = hexToRGB(color);\n if (_rgb == null) {\n return color;\n } else {\n return \"rgba(\" + _rgb.r + \",\" + _rgb.g + \",\" + _rgb.b + \",\" + opacity + \")\";\n }\n }\n}\n/**\r\n * Convert RGB \\<0, 255\\> into hex color string.\r\n *\r\n * @param red - Red channel.\r\n * @param green - Green channel.\r\n * @param blue - Blue channel.\r\n * @returns Hex color string (for example: '#0acdc0').\r\n */\nfunction RGBToHex(red, green, blue) {\n var _context10;\n return \"#\" + _sliceInstanceProperty(_context10 = ((1 << 24) + (red << 16) + (green << 8) + blue).toString(16)).call(_context10, 1);\n}\n/**\r\n * Parse a color property into an object with border, background, and highlight colors.\r\n *\r\n * @param inputColor - Shorthand color string or input color object.\r\n * @param defaultColor - Full color object to fill in missing values in inputColor.\r\n * @returns Color object.\r\n */\nfunction parseColor(inputColor, defaultColor) {\n if (isString(inputColor)) {\n var colorStr = inputColor;\n if (isValidRGB(colorStr)) {\n var _context11;\n var rgb = _mapInstanceProperty(_context11 = colorStr.substr(4).substr(0, colorStr.length - 5).split(\",\")).call(_context11, function (value) {\n return _parseInt(value);\n });\n colorStr = RGBToHex(rgb[0], rgb[1], rgb[2]);\n }\n if (isValidHex(colorStr) === true) {\n var hsv = hexToHSV(colorStr);\n var lighterColorHSV = {\n h: hsv.h,\n s: hsv.s * 0.8,\n v: Math.min(1, hsv.v * 1.02)\n };\n var darkerColorHSV = {\n h: hsv.h,\n s: Math.min(1, hsv.s * 1.25),\n v: hsv.v * 0.8\n };\n var darkerColorHex = HSVToHex(darkerColorHSV.h, darkerColorHSV.s, darkerColorHSV.v);\n var lighterColorHex = HSVToHex(lighterColorHSV.h, lighterColorHSV.s, lighterColorHSV.v);\n return {\n background: colorStr,\n border: darkerColorHex,\n highlight: {\n background: lighterColorHex,\n border: darkerColorHex\n },\n hover: {\n background: lighterColorHex,\n border: darkerColorHex\n }\n };\n } else {\n return {\n background: colorStr,\n border: colorStr,\n highlight: {\n background: colorStr,\n border: colorStr\n },\n hover: {\n background: colorStr,\n border: colorStr\n }\n };\n }\n } else {\n if (defaultColor) {\n var color = {\n background: inputColor.background || defaultColor.background,\n border: inputColor.border || defaultColor.border,\n highlight: isString(inputColor.highlight) ? {\n border: inputColor.highlight,\n background: inputColor.highlight\n } : {\n background: inputColor.highlight && inputColor.highlight.background || defaultColor.highlight.background,\n border: inputColor.highlight && inputColor.highlight.border || defaultColor.highlight.border\n },\n hover: isString(inputColor.hover) ? {\n border: inputColor.hover,\n background: inputColor.hover\n } : {\n border: inputColor.hover && inputColor.hover.border || defaultColor.hover.border,\n background: inputColor.hover && inputColor.hover.background || defaultColor.hover.background\n }\n };\n return color;\n } else {\n var _color = {\n background: inputColor.background || undefined,\n border: inputColor.border || undefined,\n highlight: isString(inputColor.highlight) ? {\n border: inputColor.highlight,\n background: inputColor.highlight\n } : {\n background: inputColor.highlight && inputColor.highlight.background || undefined,\n border: inputColor.highlight && inputColor.highlight.border || undefined\n },\n hover: isString(inputColor.hover) ? {\n border: inputColor.hover,\n background: inputColor.hover\n } : {\n border: inputColor.hover && inputColor.hover.border || undefined,\n background: inputColor.hover && inputColor.hover.background || undefined\n }\n };\n return _color;\n }\n }\n}\n/**\r\n * Convert RGB \\<0, 255\\> into HSV object.\r\n *\r\n * @remarks\r\n * {@link http://www.javascripter.net/faq/rgb2hsv.htm}\r\n * @param red - Red channel.\r\n * @param green - Green channel.\r\n * @param blue - Blue channel.\r\n * @returns HSV color object.\r\n */\nfunction RGBToHSV(red, green, blue) {\n red = red / 255;\n green = green / 255;\n blue = blue / 255;\n var minRGB = Math.min(red, Math.min(green, blue));\n var maxRGB = Math.max(red, Math.max(green, blue));\n // Black-gray-white\n if (minRGB === maxRGB) {\n return {\n h: 0,\n s: 0,\n v: minRGB\n };\n }\n // Colors other than black-gray-white:\n var d = red === minRGB ? green - blue : blue === minRGB ? red - green : blue - red;\n var h = red === minRGB ? 3 : blue === minRGB ? 1 : 5;\n var hue = 60 * (h - d / (maxRGB - minRGB)) / 360;\n var saturation = (maxRGB - minRGB) / maxRGB;\n var value = maxRGB;\n return {\n h: hue,\n s: saturation,\n v: value\n };\n}\n/**\r\n * Convert HSV \\<0, 1\\> into RGB color object.\r\n *\r\n * @remarks\r\n * {@link https://gist.github.com/mjijackson/5311256}\r\n * @param h - Hue.\r\n * @param s - Saturation.\r\n * @param v - Value.\r\n * @returns RGB color object.\r\n */\nfunction HSVToRGB(h, s, v) {\n var r;\n var g;\n var b;\n var i = Math.floor(h * 6);\n var f = h * 6 - i;\n var p = v * (1 - s);\n var q = v * (1 - f * s);\n var t = v * (1 - (1 - f) * s);\n switch (i % 6) {\n case 0:\n r = v, g = t, b = p;\n break;\n case 1:\n r = q, g = v, b = p;\n break;\n case 2:\n r = p, g = v, b = t;\n break;\n case 3:\n r = p, g = q, b = v;\n break;\n case 4:\n r = t, g = p, b = v;\n break;\n case 5:\n r = v, g = p, b = q;\n break;\n }\n return {\n r: Math.floor(r * 255),\n g: Math.floor(g * 255),\n b: Math.floor(b * 255)\n };\n}\n/**\r\n * Convert HSV \\<0, 1\\> into hex color string.\r\n *\r\n * @param h - Hue.\r\n * @param s - Saturation.\r\n * @param v - Value.\r\n * @returns Hex color string.\r\n */\nfunction HSVToHex(h, s, v) {\n var rgb = HSVToRGB(h, s, v);\n return RGBToHex(rgb.r, rgb.g, rgb.b);\n}\n/**\r\n * Convert hex color string into HSV \\<0, 1\\>.\r\n *\r\n * @param hex - Hex color string.\r\n * @returns HSV color object.\r\n */\nfunction hexToHSV(hex) {\n var rgb = hexToRGB(hex);\n if (!rgb) {\n throw new TypeError(\"'\".concat(hex, \"' is not a valid color.\"));\n }\n return RGBToHSV(rgb.r, rgb.g, rgb.b);\n}\n/**\r\n * Validate hex color string.\r\n *\r\n * @param hex - Unknown string that may contain a color.\r\n * @returns True if the string is valid, false otherwise.\r\n */\nfunction isValidHex(hex) {\n var isOk = /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(hex);\n return isOk;\n}\n/**\r\n * Validate RGB color string.\r\n *\r\n * @param rgb - Unknown string that may contain a color.\r\n * @returns True if the string is valid, false otherwise.\r\n */\nfunction isValidRGB(rgb) {\n return rgbRE.test(rgb);\n}\n/**\r\n * Validate RGBA color string.\r\n *\r\n * @param rgba - Unknown string that may contain a color.\r\n * @returns True if the string is valid, false otherwise.\r\n */\nfunction isValidRGBA(rgba) {\n return rgbaRE.test(rgba);\n}\n/**\r\n * This recursively redirects the prototype of JSON objects to the referenceObject.\r\n * This is used for default options.\r\n *\r\n * @param referenceObject - The original object.\r\n * @returns The Element if the referenceObject is an Element, or a new object inheriting from the referenceObject.\r\n */\nfunction bridgeObject(referenceObject) {\n if (referenceObject === null || _typeof$1(referenceObject) !== \"object\") {\n return null;\n }\n if (referenceObject instanceof Element) {\n // Avoid bridging DOM objects\n return referenceObject;\n }\n var objectTo = _Object$create$1(referenceObject);\n for (var i in referenceObject) {\n if (Object.prototype.hasOwnProperty.call(referenceObject, i)) {\n if (_typeof$1(referenceObject[i]) == \"object\") {\n objectTo[i] = bridgeObject(referenceObject[i]);\n }\n }\n }\n return objectTo;\n}\n/**\r\n * This is used to set the options of subobjects in the options object.\r\n *\r\n * A requirement of these subobjects is that they have an 'enabled' element\r\n * which is optional for the user but mandatory for the program.\r\n *\r\n * The added value here of the merge is that option 'enabled' is set as required.\r\n *\r\n * @param mergeTarget - Either this.options or the options used for the groups.\r\n * @param options - Options.\r\n * @param option - Option key in the options argument.\r\n * @param globalOptions - Global options, passed in to determine value of option 'enabled'.\r\n */\nfunction mergeOptions(mergeTarget, options, option) {\n var globalOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n // Local helpers\n var isPresent = function isPresent(obj) {\n return obj !== null && obj !== undefined;\n };\n var isObject = function isObject(obj) {\n return obj !== null && _typeof$1(obj) === \"object\";\n };\n // https://stackoverflow.com/a/34491287/1223531\n var isEmpty = function isEmpty(obj) {\n for (var x in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, x)) {\n return false;\n }\n }\n return true;\n };\n // Guards\n if (!isObject(mergeTarget)) {\n throw new Error(\"Parameter mergeTarget must be an object\");\n }\n if (!isObject(options)) {\n throw new Error(\"Parameter options must be an object\");\n }\n if (!isPresent(option)) {\n throw new Error(\"Parameter option must have a value\");\n }\n if (!isObject(globalOptions)) {\n throw new Error(\"Parameter globalOptions must be an object\");\n }\n //\n // Actual merge routine, separated from main logic\n // Only a single level of options is merged. Deeper levels are ref'd. This may actually be an issue.\n //\n var doMerge = function doMerge(target, options, option) {\n if (!isObject(target[option])) {\n target[option] = {};\n }\n var src = options[option];\n var dst = target[option];\n for (var prop in src) {\n if (Object.prototype.hasOwnProperty.call(src, prop)) {\n dst[prop] = src[prop];\n }\n }\n };\n // Local initialization\n var srcOption = options[option];\n var globalPassed = isObject(globalOptions) && !isEmpty(globalOptions);\n var globalOption = globalPassed ? globalOptions[option] : undefined;\n var globalEnabled = globalOption ? globalOption.enabled : undefined;\n /////////////////////////////////////////\n // Main routine\n /////////////////////////////////////////\n if (srcOption === undefined) {\n return; // Nothing to do\n }\n\n if (typeof srcOption === \"boolean\") {\n if (!isObject(mergeTarget[option])) {\n mergeTarget[option] = {};\n }\n mergeTarget[option].enabled = srcOption;\n return;\n }\n if (srcOption === null && !isObject(mergeTarget[option])) {\n // If possible, explicit copy from globals\n if (isPresent(globalOption)) {\n mergeTarget[option] = _Object$create$1(globalOption);\n } else {\n return; // Nothing to do\n }\n }\n\n if (!isObject(srcOption)) {\n return;\n }\n //\n // Ensure that 'enabled' is properly set. It is required internally\n // Note that the value from options will always overwrite the existing value\n //\n var enabled = true; // default value\n if (srcOption.enabled !== undefined) {\n enabled = srcOption.enabled;\n } else {\n // Take from globals, if present\n if (globalEnabled !== undefined) {\n enabled = globalOption.enabled;\n }\n }\n doMerge(mergeTarget, options, option);\n mergeTarget[option].enabled = enabled;\n}\n/*\r\n * Easing Functions.\r\n * Only considering the t value for the range [0, 1] => [0, 1].\r\n *\r\n * Inspiration: from http://gizma.com/easing/\r\n * https://gist.github.com/gre/1650294\r\n */\nvar easingFunctions = {\n /**\r\n * Provides no easing and no acceleration.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n linear: function linear(t) {\n return t;\n },\n /**\r\n * Accelerate from zero velocity.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeInQuad: function easeInQuad(t) {\n return t * t;\n },\n /**\r\n * Decelerate to zero velocity.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeOutQuad: function easeOutQuad(t) {\n return t * (2 - t);\n },\n /**\r\n * Accelerate until halfway, then decelerate.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeInOutQuad: function easeInOutQuad(t) {\n return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;\n },\n /**\r\n * Accelerate from zero velocity.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeInCubic: function easeInCubic(t) {\n return t * t * t;\n },\n /**\r\n * Decelerate to zero velocity.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeOutCubic: function easeOutCubic(t) {\n return --t * t * t + 1;\n },\n /**\r\n * Accelerate until halfway, then decelerate.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeInOutCubic: function easeInOutCubic(t) {\n return t < 0.5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;\n },\n /**\r\n * Accelerate from zero velocity.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeInQuart: function easeInQuart(t) {\n return t * t * t * t;\n },\n /**\r\n * Decelerate to zero velocity.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeOutQuart: function easeOutQuart(t) {\n return 1 - --t * t * t * t;\n },\n /**\r\n * Accelerate until halfway, then decelerate.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeInOutQuart: function easeInOutQuart(t) {\n return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t;\n },\n /**\r\n * Accelerate from zero velocity.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeInQuint: function easeInQuint(t) {\n return t * t * t * t * t;\n },\n /**\r\n * Decelerate to zero velocity.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeOutQuint: function easeOutQuint(t) {\n return 1 + --t * t * t * t * t;\n },\n /**\r\n * Accelerate until halfway, then decelerate.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeInOutQuint: function easeInOutQuint(t) {\n return t < 0.5 ? 16 * t * t * t * t * t : 1 + 16 * --t * t * t * t * t;\n }\n};\n// @TODO: This doesn't work properly.\n// It works only for single property objects,\n// otherwise it combines all of the types in a union.\n// export function topMost (\n// pile: Record[],\n// accessors: K1 | [K1]\n// ): undefined | V1\n// export function topMost (\n// pile: Record>[],\n// accessors: [K1, K2]\n// ): undefined | V1 | V2\n// export function topMost (\n// pile: Record>>[],\n// accessors: [K1, K2, K3]\n// ): undefined | V1 | V2 | V3\n/**\r\n * Get the top most property value from a pile of objects.\r\n *\r\n * @param pile - Array of objects, no required format.\r\n * @param accessors - Array of property names.\r\n * For example `object['foo']['bar']` → `['foo', 'bar']`.\r\n * @returns Value of the property with given accessors path from the first pile item where it's not undefined.\r\n */\nfunction topMost(pile, accessors) {\n var candidate;\n if (!_Array$isArray(accessors)) {\n accessors = [accessors];\n }\n var _iterator3 = _createForOfIteratorHelper$7(pile),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var member = _step3.value;\n if (member) {\n candidate = member[accessors[0]];\n for (var i = 1; i < accessors.length; i++) {\n if (candidate) {\n candidate = candidate[accessors[i]];\n }\n }\n if (typeof candidate !== \"undefined\") {\n break;\n }\n }\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n return candidate;\n}\nvar htmlColors = {\n black: \"#000000\",\n navy: \"#000080\",\n darkblue: \"#00008B\",\n mediumblue: \"#0000CD\",\n blue: \"#0000FF\",\n darkgreen: \"#006400\",\n green: \"#008000\",\n teal: \"#008080\",\n darkcyan: \"#008B8B\",\n deepskyblue: \"#00BFFF\",\n darkturquoise: \"#00CED1\",\n mediumspringgreen: \"#00FA9A\",\n lime: \"#00FF00\",\n springgreen: \"#00FF7F\",\n aqua: \"#00FFFF\",\n cyan: \"#00FFFF\",\n midnightblue: \"#191970\",\n dodgerblue: \"#1E90FF\",\n lightseagreen: \"#20B2AA\",\n forestgreen: \"#228B22\",\n seagreen: \"#2E8B57\",\n darkslategray: \"#2F4F4F\",\n limegreen: \"#32CD32\",\n mediumseagreen: \"#3CB371\",\n turquoise: \"#40E0D0\",\n royalblue: \"#4169E1\",\n steelblue: \"#4682B4\",\n darkslateblue: \"#483D8B\",\n mediumturquoise: \"#48D1CC\",\n indigo: \"#4B0082\",\n darkolivegreen: \"#556B2F\",\n cadetblue: \"#5F9EA0\",\n cornflowerblue: \"#6495ED\",\n mediumaquamarine: \"#66CDAA\",\n dimgray: \"#696969\",\n slateblue: \"#6A5ACD\",\n olivedrab: \"#6B8E23\",\n slategray: \"#708090\",\n lightslategray: \"#778899\",\n mediumslateblue: \"#7B68EE\",\n lawngreen: \"#7CFC00\",\n chartreuse: \"#7FFF00\",\n aquamarine: \"#7FFFD4\",\n maroon: \"#800000\",\n purple: \"#800080\",\n olive: \"#808000\",\n gray: \"#808080\",\n skyblue: \"#87CEEB\",\n lightskyblue: \"#87CEFA\",\n blueviolet: \"#8A2BE2\",\n darkred: \"#8B0000\",\n darkmagenta: \"#8B008B\",\n saddlebrown: \"#8B4513\",\n darkseagreen: \"#8FBC8F\",\n lightgreen: \"#90EE90\",\n mediumpurple: \"#9370D8\",\n darkviolet: \"#9400D3\",\n palegreen: \"#98FB98\",\n darkorchid: \"#9932CC\",\n yellowgreen: \"#9ACD32\",\n sienna: \"#A0522D\",\n brown: \"#A52A2A\",\n darkgray: \"#A9A9A9\",\n lightblue: \"#ADD8E6\",\n greenyellow: \"#ADFF2F\",\n paleturquoise: \"#AFEEEE\",\n lightsteelblue: \"#B0C4DE\",\n powderblue: \"#B0E0E6\",\n firebrick: \"#B22222\",\n darkgoldenrod: \"#B8860B\",\n mediumorchid: \"#BA55D3\",\n rosybrown: \"#BC8F8F\",\n darkkhaki: \"#BDB76B\",\n silver: \"#C0C0C0\",\n mediumvioletred: \"#C71585\",\n indianred: \"#CD5C5C\",\n peru: \"#CD853F\",\n chocolate: \"#D2691E\",\n tan: \"#D2B48C\",\n lightgrey: \"#D3D3D3\",\n palevioletred: \"#D87093\",\n thistle: \"#D8BFD8\",\n orchid: \"#DA70D6\",\n goldenrod: \"#DAA520\",\n crimson: \"#DC143C\",\n gainsboro: \"#DCDCDC\",\n plum: \"#DDA0DD\",\n burlywood: \"#DEB887\",\n lightcyan: \"#E0FFFF\",\n lavender: \"#E6E6FA\",\n darksalmon: \"#E9967A\",\n violet: \"#EE82EE\",\n palegoldenrod: \"#EEE8AA\",\n lightcoral: \"#F08080\",\n khaki: \"#F0E68C\",\n aliceblue: \"#F0F8FF\",\n honeydew: \"#F0FFF0\",\n azure: \"#F0FFFF\",\n sandybrown: \"#F4A460\",\n wheat: \"#F5DEB3\",\n beige: \"#F5F5DC\",\n whitesmoke: \"#F5F5F5\",\n mintcream: \"#F5FFFA\",\n ghostwhite: \"#F8F8FF\",\n salmon: \"#FA8072\",\n antiquewhite: \"#FAEBD7\",\n linen: \"#FAF0E6\",\n lightgoldenrodyellow: \"#FAFAD2\",\n oldlace: \"#FDF5E6\",\n red: \"#FF0000\",\n fuchsia: \"#FF00FF\",\n magenta: \"#FF00FF\",\n deeppink: \"#FF1493\",\n orangered: \"#FF4500\",\n tomato: \"#FF6347\",\n hotpink: \"#FF69B4\",\n coral: \"#FF7F50\",\n darkorange: \"#FF8C00\",\n lightsalmon: \"#FFA07A\",\n orange: \"#FFA500\",\n lightpink: \"#FFB6C1\",\n pink: \"#FFC0CB\",\n gold: \"#FFD700\",\n peachpuff: \"#FFDAB9\",\n navajowhite: \"#FFDEAD\",\n moccasin: \"#FFE4B5\",\n bisque: \"#FFE4C4\",\n mistyrose: \"#FFE4E1\",\n blanchedalmond: \"#FFEBCD\",\n papayawhip: \"#FFEFD5\",\n lavenderblush: \"#FFF0F5\",\n seashell: \"#FFF5EE\",\n cornsilk: \"#FFF8DC\",\n lemonchiffon: \"#FFFACD\",\n floralwhite: \"#FFFAF0\",\n snow: \"#FFFAFA\",\n yellow: \"#FFFF00\",\n lightyellow: \"#FFFFE0\",\n ivory: \"#FFFFF0\",\n white: \"#FFFFFF\"\n};\n\n/**\n * @param {number} [pixelRatio=1]\n */\nvar ColorPicker$1 = /*#__PURE__*/function () {\n /**\n * @param {number} [pixelRatio=1]\n */\n function ColorPicker$1() {\n var pixelRatio = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n _classCallCheck(this, ColorPicker$1);\n this.pixelRatio = pixelRatio;\n this.generated = false;\n this.centerCoordinates = {\n x: 289 / 2,\n y: 289 / 2\n };\n this.r = 289 * 0.49;\n this.color = {\n r: 255,\n g: 255,\n b: 255,\n a: 1.0\n };\n this.hueCircle = undefined;\n this.initialColor = {\n r: 255,\n g: 255,\n b: 255,\n a: 1.0\n };\n this.previousColor = undefined;\n this.applied = false;\n\n // bound by\n this.updateCallback = function () {};\n this.closeCallback = function () {};\n\n // create all DOM elements\n this._create();\n }\n\n /**\n * this inserts the colorPicker into a div from the DOM\n *\n * @param {Element} container\n */\n _createClass(ColorPicker$1, [{\n key: \"insertTo\",\n value: function insertTo(container) {\n if (this.hammer !== undefined) {\n this.hammer.destroy();\n this.hammer = undefined;\n }\n this.container = container;\n this.container.appendChild(this.frame);\n this._bindHammer();\n this._setSize();\n }\n\n /**\n * the callback is executed on apply and save. Bind it to the application\n *\n * @param {Function} callback\n */\n }, {\n key: \"setUpdateCallback\",\n value: function setUpdateCallback(callback) {\n if (typeof callback === \"function\") {\n this.updateCallback = callback;\n } else {\n throw new Error(\"Function attempted to set as colorPicker update callback is not a function.\");\n }\n }\n\n /**\n * the callback is executed on apply and save. Bind it to the application\n *\n * @param {Function} callback\n */\n }, {\n key: \"setCloseCallback\",\n value: function setCloseCallback(callback) {\n if (typeof callback === \"function\") {\n this.closeCallback = callback;\n } else {\n throw new Error(\"Function attempted to set as colorPicker closing callback is not a function.\");\n }\n }\n\n /**\n *\n * @param {string} color\n * @returns {string}\n * @private\n */\n }, {\n key: \"_isColorString\",\n value: function _isColorString(color) {\n if (typeof color === \"string\") {\n return htmlColors[color];\n }\n }\n\n /**\n * Set the color of the colorPicker\n * Supported formats:\n * 'red' --> HTML color string\n * '#ffffff' --> hex string\n * 'rgb(255,255,255)' --> rgb string\n * 'rgba(255,255,255,1.0)' --> rgba string\n * {r:255,g:255,b:255} --> rgb object\n * {r:255,g:255,b:255,a:1.0} --> rgba object\n *\n * @param {string | object} color\n * @param {boolean} [setInitial=true]\n */\n }, {\n key: \"setColor\",\n value: function setColor(color) {\n var setInitial = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (color === \"none\") {\n return;\n }\n var rgba;\n\n // if a html color shorthand is used, convert to hex\n var htmlColor = this._isColorString(color);\n if (htmlColor !== undefined) {\n color = htmlColor;\n }\n\n // check format\n if (isString(color) === true) {\n if (isValidRGB(color) === true) {\n var rgbaArray = color.substr(4).substr(0, color.length - 5).split(\",\");\n rgba = {\n r: rgbaArray[0],\n g: rgbaArray[1],\n b: rgbaArray[2],\n a: 1.0\n };\n } else if (isValidRGBA(color) === true) {\n var _rgbaArray = color.substr(5).substr(0, color.length - 6).split(\",\");\n rgba = {\n r: _rgbaArray[0],\n g: _rgbaArray[1],\n b: _rgbaArray[2],\n a: _rgbaArray[3]\n };\n } else if (isValidHex(color) === true) {\n var rgbObj = hexToRGB(color);\n rgba = {\n r: rgbObj.r,\n g: rgbObj.g,\n b: rgbObj.b,\n a: 1.0\n };\n }\n } else {\n if (color instanceof Object) {\n if (color.r !== undefined && color.g !== undefined && color.b !== undefined) {\n var alpha = color.a !== undefined ? color.a : \"1.0\";\n rgba = {\n r: color.r,\n g: color.g,\n b: color.b,\n a: alpha\n };\n }\n }\n }\n\n // set color\n if (rgba === undefined) {\n throw new Error(\"Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: \" + _JSON$stringify(color));\n } else {\n this._setColor(rgba, setInitial);\n }\n }\n\n /**\n * this shows the color picker.\n * The hue circle is constructed once and stored.\n */\n }, {\n key: \"show\",\n value: function show() {\n if (this.closeCallback !== undefined) {\n this.closeCallback();\n this.closeCallback = undefined;\n }\n this.applied = false;\n this.frame.style.display = \"block\";\n this._generateHueCircle();\n }\n\n // ------------------------------------------ PRIVATE ----------------------------- //\n\n /**\n * Hide the picker. Is called by the cancel button.\n * Optional boolean to store the previous color for easy access later on.\n *\n * @param {boolean} [storePrevious=true]\n * @private\n */\n }, {\n key: \"_hide\",\n value: function _hide() {\n var _this2 = this;\n var storePrevious = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n // store the previous color for next time;\n if (storePrevious === true) {\n this.previousColor = _Object$assign({}, this.color);\n }\n if (this.applied === true) {\n this.updateCallback(this.initialColor);\n }\n this.frame.style.display = \"none\";\n\n // call the closing callback, restoring the onclick method.\n // this is in a setTimeout because it will trigger the show again before the click is done.\n _setTimeout(function () {\n if (_this2.closeCallback !== undefined) {\n _this2.closeCallback();\n _this2.closeCallback = undefined;\n }\n }, 0);\n }\n\n /**\n * bound to the save button. Saves and hides.\n *\n * @private\n */\n }, {\n key: \"_save\",\n value: function _save() {\n this.updateCallback(this.color);\n this.applied = false;\n this._hide();\n }\n\n /**\n * Bound to apply button. Saves but does not close. Is undone by the cancel button.\n *\n * @private\n */\n }, {\n key: \"_apply\",\n value: function _apply() {\n this.applied = true;\n this.updateCallback(this.color);\n this._updatePicker(this.color);\n }\n\n /**\n * load the color from the previous session.\n *\n * @private\n */\n }, {\n key: \"_loadLast\",\n value: function _loadLast() {\n if (this.previousColor !== undefined) {\n this.setColor(this.previousColor, false);\n } else {\n alert(\"There is no last color to load...\");\n }\n }\n\n /**\n * set the color, place the picker\n *\n * @param {object} rgba\n * @param {boolean} [setInitial=true]\n * @private\n */\n }, {\n key: \"_setColor\",\n value: function _setColor(rgba) {\n var setInitial = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n // store the initial color\n if (setInitial === true) {\n this.initialColor = _Object$assign({}, rgba);\n }\n this.color = rgba;\n var hsv = RGBToHSV(rgba.r, rgba.g, rgba.b);\n var angleConvert = 2 * Math.PI;\n var radius = this.r * hsv.s;\n var x = this.centerCoordinates.x + radius * Math.sin(angleConvert * hsv.h);\n var y = this.centerCoordinates.y + radius * Math.cos(angleConvert * hsv.h);\n this.colorPickerSelector.style.left = x - 0.5 * this.colorPickerSelector.clientWidth + \"px\";\n this.colorPickerSelector.style.top = y - 0.5 * this.colorPickerSelector.clientHeight + \"px\";\n this._updatePicker(rgba);\n }\n\n /**\n * bound to opacity control\n *\n * @param {number} value\n * @private\n */\n }, {\n key: \"_setOpacity\",\n value: function _setOpacity(value) {\n this.color.a = value / 100;\n this._updatePicker(this.color);\n }\n\n /**\n * bound to brightness control\n *\n * @param {number} value\n * @private\n */\n }, {\n key: \"_setBrightness\",\n value: function _setBrightness(value) {\n var hsv = RGBToHSV(this.color.r, this.color.g, this.color.b);\n hsv.v = value / 100;\n var rgba = HSVToRGB(hsv.h, hsv.s, hsv.v);\n rgba[\"a\"] = this.color.a;\n this.color = rgba;\n this._updatePicker();\n }\n\n /**\n * update the color picker. A black circle overlays the hue circle to mimic the brightness decreasing.\n *\n * @param {object} rgba\n * @private\n */\n }, {\n key: \"_updatePicker\",\n value: function _updatePicker() {\n var rgba = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.color;\n var hsv = RGBToHSV(rgba.r, rgba.g, rgba.b);\n var ctx = this.colorPickerCanvas.getContext(\"2d\");\n if (this.pixelRation === undefined) {\n this.pixelRatio = (window.devicePixelRatio || 1) / (ctx.webkitBackingStorePixelRatio || ctx.mozBackingStorePixelRatio || ctx.msBackingStorePixelRatio || ctx.oBackingStorePixelRatio || ctx.backingStorePixelRatio || 1);\n }\n ctx.setTransform(this.pixelRatio, 0, 0, this.pixelRatio, 0, 0);\n\n // clear the canvas\n var w = this.colorPickerCanvas.clientWidth;\n var h = this.colorPickerCanvas.clientHeight;\n ctx.clearRect(0, 0, w, h);\n ctx.putImageData(this.hueCircle, 0, 0);\n ctx.fillStyle = \"rgba(0,0,0,\" + (1 - hsv.v) + \")\";\n ctx.circle(this.centerCoordinates.x, this.centerCoordinates.y, this.r);\n _fillInstanceProperty(ctx).call(ctx);\n this.brightnessRange.value = 100 * hsv.v;\n this.opacityRange.value = 100 * rgba.a;\n this.initialColorDiv.style.backgroundColor = \"rgba(\" + this.initialColor.r + \",\" + this.initialColor.g + \",\" + this.initialColor.b + \",\" + this.initialColor.a + \")\";\n this.newColorDiv.style.backgroundColor = \"rgba(\" + this.color.r + \",\" + this.color.g + \",\" + this.color.b + \",\" + this.color.a + \")\";\n }\n\n /**\n * used by create to set the size of the canvas.\n *\n * @private\n */\n }, {\n key: \"_setSize\",\n value: function _setSize() {\n this.colorPickerCanvas.style.width = \"100%\";\n this.colorPickerCanvas.style.height = \"100%\";\n this.colorPickerCanvas.width = 289 * this.pixelRatio;\n this.colorPickerCanvas.height = 289 * this.pixelRatio;\n }\n\n /**\n * create all dom elements\n * TODO: cleanup, lots of similar dom elements\n *\n * @private\n */\n }, {\n key: \"_create\",\n value: function _create() {\n var _context16, _context17, _context18, _context19;\n this.frame = document.createElement(\"div\");\n this.frame.className = \"vis-color-picker\";\n this.colorPickerDiv = document.createElement(\"div\");\n this.colorPickerSelector = document.createElement(\"div\");\n this.colorPickerSelector.className = \"vis-selector\";\n this.colorPickerDiv.appendChild(this.colorPickerSelector);\n this.colorPickerCanvas = document.createElement(\"canvas\");\n this.colorPickerDiv.appendChild(this.colorPickerCanvas);\n if (!this.colorPickerCanvas.getContext) {\n var noCanvas = document.createElement(\"DIV\");\n noCanvas.style.color = \"red\";\n noCanvas.style.fontWeight = \"bold\";\n noCanvas.style.padding = \"10px\";\n noCanvas.innerText = \"Error: your browser does not support HTML canvas\";\n this.colorPickerCanvas.appendChild(noCanvas);\n } else {\n var ctx = this.colorPickerCanvas.getContext(\"2d\");\n this.pixelRatio = (window.devicePixelRatio || 1) / (ctx.webkitBackingStorePixelRatio || ctx.mozBackingStorePixelRatio || ctx.msBackingStorePixelRatio || ctx.oBackingStorePixelRatio || ctx.backingStorePixelRatio || 1);\n this.colorPickerCanvas.getContext(\"2d\").setTransform(this.pixelRatio, 0, 0, this.pixelRatio, 0, 0);\n }\n this.colorPickerDiv.className = \"vis-color\";\n this.opacityDiv = document.createElement(\"div\");\n this.opacityDiv.className = \"vis-opacity\";\n this.brightnessDiv = document.createElement(\"div\");\n this.brightnessDiv.className = \"vis-brightness\";\n this.arrowDiv = document.createElement(\"div\");\n this.arrowDiv.className = \"vis-arrow\";\n this.opacityRange = document.createElement(\"input\");\n try {\n this.opacityRange.type = \"range\"; // Not supported on IE9\n this.opacityRange.min = \"0\";\n this.opacityRange.max = \"100\";\n } catch (err) {\n // TODO: Add some error handling.\n }\n this.opacityRange.value = \"100\";\n this.opacityRange.className = \"vis-range\";\n this.brightnessRange = document.createElement(\"input\");\n try {\n this.brightnessRange.type = \"range\"; // Not supported on IE9\n this.brightnessRange.min = \"0\";\n this.brightnessRange.max = \"100\";\n } catch (err) {\n // TODO: Add some error handling.\n }\n this.brightnessRange.value = \"100\";\n this.brightnessRange.className = \"vis-range\";\n this.opacityDiv.appendChild(this.opacityRange);\n this.brightnessDiv.appendChild(this.brightnessRange);\n var me = this;\n this.opacityRange.onchange = function () {\n me._setOpacity(this.value);\n };\n this.opacityRange.oninput = function () {\n me._setOpacity(this.value);\n };\n this.brightnessRange.onchange = function () {\n me._setBrightness(this.value);\n };\n this.brightnessRange.oninput = function () {\n me._setBrightness(this.value);\n };\n this.brightnessLabel = document.createElement(\"div\");\n this.brightnessLabel.className = \"vis-label vis-brightness\";\n this.brightnessLabel.innerText = \"brightness:\";\n this.opacityLabel = document.createElement(\"div\");\n this.opacityLabel.className = \"vis-label vis-opacity\";\n this.opacityLabel.innerText = \"opacity:\";\n this.newColorDiv = document.createElement(\"div\");\n this.newColorDiv.className = \"vis-new-color\";\n this.newColorDiv.innerText = \"new\";\n this.initialColorDiv = document.createElement(\"div\");\n this.initialColorDiv.className = \"vis-initial-color\";\n this.initialColorDiv.innerText = \"initial\";\n this.cancelButton = document.createElement(\"div\");\n this.cancelButton.className = \"vis-button vis-cancel\";\n this.cancelButton.innerText = \"cancel\";\n this.cancelButton.onclick = _bindInstanceProperty$1(_context16 = this._hide).call(_context16, this, false);\n this.applyButton = document.createElement(\"div\");\n this.applyButton.className = \"vis-button vis-apply\";\n this.applyButton.innerText = \"apply\";\n this.applyButton.onclick = _bindInstanceProperty$1(_context17 = this._apply).call(_context17, this);\n this.saveButton = document.createElement(\"div\");\n this.saveButton.className = \"vis-button vis-save\";\n this.saveButton.innerText = \"save\";\n this.saveButton.onclick = _bindInstanceProperty$1(_context18 = this._save).call(_context18, this);\n this.loadButton = document.createElement(\"div\");\n this.loadButton.className = \"vis-button vis-load\";\n this.loadButton.innerText = \"load last\";\n this.loadButton.onclick = _bindInstanceProperty$1(_context19 = this._loadLast).call(_context19, this);\n this.frame.appendChild(this.colorPickerDiv);\n this.frame.appendChild(this.arrowDiv);\n this.frame.appendChild(this.brightnessLabel);\n this.frame.appendChild(this.brightnessDiv);\n this.frame.appendChild(this.opacityLabel);\n this.frame.appendChild(this.opacityDiv);\n this.frame.appendChild(this.newColorDiv);\n this.frame.appendChild(this.initialColorDiv);\n this.frame.appendChild(this.cancelButton);\n this.frame.appendChild(this.applyButton);\n this.frame.appendChild(this.saveButton);\n this.frame.appendChild(this.loadButton);\n }\n\n /**\n * bind hammer to the color picker\n *\n * @private\n */\n }, {\n key: \"_bindHammer\",\n value: function _bindHammer() {\n var _this3 = this;\n this.drag = {};\n this.pinch = {};\n this.hammer = new Hammer$1(this.colorPickerCanvas);\n this.hammer.get(\"pinch\").set({\n enable: true\n });\n this.hammer.on(\"hammer.input\", function (event) {\n if (event.isFirst) {\n _this3._moveSelector(event);\n }\n });\n this.hammer.on(\"tap\", function (event) {\n _this3._moveSelector(event);\n });\n this.hammer.on(\"panstart\", function (event) {\n _this3._moveSelector(event);\n });\n this.hammer.on(\"panmove\", function (event) {\n _this3._moveSelector(event);\n });\n this.hammer.on(\"panend\", function (event) {\n _this3._moveSelector(event);\n });\n }\n\n /**\n * generate the hue circle. This is relatively heavy (200ms) and is done only once on the first time it is shown.\n *\n * @private\n */\n }, {\n key: \"_generateHueCircle\",\n value: function _generateHueCircle() {\n if (this.generated === false) {\n var ctx = this.colorPickerCanvas.getContext(\"2d\");\n if (this.pixelRation === undefined) {\n this.pixelRatio = (window.devicePixelRatio || 1) / (ctx.webkitBackingStorePixelRatio || ctx.mozBackingStorePixelRatio || ctx.msBackingStorePixelRatio || ctx.oBackingStorePixelRatio || ctx.backingStorePixelRatio || 1);\n }\n ctx.setTransform(this.pixelRatio, 0, 0, this.pixelRatio, 0, 0);\n\n // clear the canvas\n var w = this.colorPickerCanvas.clientWidth;\n var h = this.colorPickerCanvas.clientHeight;\n ctx.clearRect(0, 0, w, h);\n\n // draw hue circle\n var x, y, hue, sat;\n this.centerCoordinates = {\n x: w * 0.5,\n y: h * 0.5\n };\n this.r = 0.49 * w;\n var angleConvert = 2 * Math.PI / 360;\n var hfac = 1 / 360;\n var sfac = 1 / this.r;\n var rgb;\n for (hue = 0; hue < 360; hue++) {\n for (sat = 0; sat < this.r; sat++) {\n x = this.centerCoordinates.x + sat * Math.sin(angleConvert * hue);\n y = this.centerCoordinates.y + sat * Math.cos(angleConvert * hue);\n rgb = HSVToRGB(hue * hfac, sat * sfac, 1);\n ctx.fillStyle = \"rgb(\" + rgb.r + \",\" + rgb.g + \",\" + rgb.b + \")\";\n ctx.fillRect(x - 0.5, y - 0.5, 2, 2);\n }\n }\n ctx.strokeStyle = \"rgba(0,0,0,1)\";\n ctx.circle(this.centerCoordinates.x, this.centerCoordinates.y, this.r);\n ctx.stroke();\n this.hueCircle = ctx.getImageData(0, 0, w, h);\n }\n this.generated = true;\n }\n\n /**\n * move the selector. This is called by hammer functions.\n *\n * @param {Event} event The event\n * @private\n */\n }, {\n key: \"_moveSelector\",\n value: function _moveSelector(event) {\n var rect = this.colorPickerDiv.getBoundingClientRect();\n var left = event.center.x - rect.left;\n var top = event.center.y - rect.top;\n var centerY = 0.5 * this.colorPickerDiv.clientHeight;\n var centerX = 0.5 * this.colorPickerDiv.clientWidth;\n var x = left - centerX;\n var y = top - centerY;\n var angle = Math.atan2(x, y);\n var radius = 0.98 * Math.min(Math.sqrt(x * x + y * y), centerX);\n var newTop = Math.cos(angle) * radius + centerY;\n var newLeft = Math.sin(angle) * radius + centerX;\n this.colorPickerSelector.style.top = newTop - 0.5 * this.colorPickerSelector.clientHeight + \"px\";\n this.colorPickerSelector.style.left = newLeft - 0.5 * this.colorPickerSelector.clientWidth + \"px\";\n\n // set color\n var h = angle / (2 * Math.PI);\n h = h < 0 ? h + 1 : h;\n var s = radius / this.r;\n var hsv = RGBToHSV(this.color.r, this.color.g, this.color.b);\n hsv.h = h;\n hsv.s = s;\n var rgba = HSVToRGB(hsv.h, hsv.s, hsv.v);\n rgba[\"a\"] = this.color.a;\n this.color = rgba;\n\n // update previews\n this.initialColorDiv.style.backgroundColor = \"rgba(\" + this.initialColor.r + \",\" + this.initialColor.g + \",\" + this.initialColor.b + \",\" + this.initialColor.a + \")\";\n this.newColorDiv.style.backgroundColor = \"rgba(\" + this.color.r + \",\" + this.color.g + \",\" + this.color.b + \",\" + this.color.a + \")\";\n }\n }]);\n return ColorPicker$1;\n}();\n/**\n * Wrap given text (last argument) in HTML elements (all preceding arguments).\n *\n * @param {...any} rest - List of tag names followed by inner text.\n * @returns An element or a text node.\n */\nfunction wrapInTag() {\n for (var _len5 = arguments.length, rest = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n rest[_key5] = arguments[_key5];\n }\n if (rest.length < 1) {\n throw new TypeError(\"Invalid arguments.\");\n } else if (rest.length === 1) {\n return document.createTextNode(rest[0]);\n } else {\n var element = document.createElement(rest[0]);\n element.appendChild(wrapInTag.apply(void 0, _toConsumableArray(_sliceInstanceProperty(rest).call(rest, 1))));\n return element;\n }\n}\n\n/**\n * The way this works is for all properties of this.possible options, you can supply the property name in any form to list the options.\n * Boolean options are recognised as Boolean\n * Number options should be written as array: [default value, min value, max value, stepsize]\n * Colors should be written as array: ['color', '#ffffff']\n * Strings with should be written as array: [option1, option2, option3, ..]\n *\n * The options are matched with their counterparts in each of the modules and the values used in the configuration are\n */\nvar Configurator$1 = /*#__PURE__*/function () {\n /**\n * @param {object} parentModule | the location where parentModule.setOptions() can be called\n * @param {object} defaultContainer | the default container of the module\n * @param {object} configureOptions | the fully configured and predefined options set found in allOptions.js\n * @param {number} pixelRatio | canvas pixel ratio\n * @param {Function} hideOption | custom logic to dynamically hide options\n */\n function Configurator$1(parentModule, defaultContainer, configureOptions) {\n var pixelRatio = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;\n var hideOption = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function () {\n return false;\n };\n _classCallCheck(this, Configurator$1);\n this.parent = parentModule;\n this.changedOptions = [];\n this.container = defaultContainer;\n this.allowCreation = false;\n this.hideOption = hideOption;\n this.options = {};\n this.initialized = false;\n this.popupCounter = 0;\n this.defaultOptions = {\n enabled: false,\n filter: true,\n container: undefined,\n showButton: true\n };\n _Object$assign(this.options, this.defaultOptions);\n this.configureOptions = configureOptions;\n this.moduleOptions = {};\n this.domElements = [];\n this.popupDiv = {};\n this.popupLimit = 5;\n this.popupHistory = {};\n this.colorPicker = new ColorPicker$1(pixelRatio);\n this.wrapper = undefined;\n }\n\n /**\n * refresh all options.\n * Because all modules parse their options by themselves, we just use their options. We copy them here.\n *\n * @param {object} options\n */\n _createClass(Configurator$1, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options !== undefined) {\n // reset the popup history because the indices may have been changed.\n this.popupHistory = {};\n this._removePopup();\n var enabled = true;\n if (typeof options === \"string\") {\n this.options.filter = options;\n } else if (_Array$isArray(options)) {\n this.options.filter = options.join();\n } else if (_typeof$1(options) === \"object\") {\n if (options == null) {\n throw new TypeError(\"options cannot be null\");\n }\n if (options.container !== undefined) {\n this.options.container = options.container;\n }\n if (_filterInstanceProperty(options) !== undefined) {\n this.options.filter = _filterInstanceProperty(options);\n }\n if (options.showButton !== undefined) {\n this.options.showButton = options.showButton;\n }\n if (options.enabled !== undefined) {\n enabled = options.enabled;\n }\n } else if (typeof options === \"boolean\") {\n this.options.filter = true;\n enabled = options;\n } else if (typeof options === \"function\") {\n this.options.filter = options;\n enabled = true;\n }\n if (_filterInstanceProperty(this.options) === false) {\n enabled = false;\n }\n this.options.enabled = enabled;\n }\n this._clean();\n }\n\n /**\n *\n * @param {object} moduleOptions\n */\n }, {\n key: \"setModuleOptions\",\n value: function setModuleOptions(moduleOptions) {\n this.moduleOptions = moduleOptions;\n if (this.options.enabled === true) {\n this._clean();\n if (this.options.container !== undefined) {\n this.container = this.options.container;\n }\n this._create();\n }\n }\n\n /**\n * Create all DOM elements\n *\n * @private\n */\n }, {\n key: \"_create\",\n value: function _create() {\n this._clean();\n this.changedOptions = [];\n var filter = _filterInstanceProperty(this.options);\n var counter = 0;\n var show = false;\n for (var _option in this.configureOptions) {\n if (Object.prototype.hasOwnProperty.call(this.configureOptions, _option)) {\n this.allowCreation = false;\n show = false;\n if (typeof filter === \"function\") {\n show = filter(_option, []);\n show = show || this._handleObject(this.configureOptions[_option], [_option], true);\n } else if (filter === true || _indexOfInstanceProperty(filter).call(filter, _option) !== -1) {\n show = true;\n }\n if (show !== false) {\n this.allowCreation = true;\n\n // linebreak between categories\n if (counter > 0) {\n this._makeItem([]);\n }\n // a header for the category\n this._makeHeader(_option);\n\n // get the sub options\n this._handleObject(this.configureOptions[_option], [_option]);\n }\n counter++;\n }\n }\n this._makeButton();\n this._push();\n //~ this.colorPicker.insertTo(this.container);\n }\n\n /**\n * draw all DOM elements on the screen\n *\n * @private\n */\n }, {\n key: \"_push\",\n value: function _push() {\n this.wrapper = document.createElement(\"div\");\n this.wrapper.className = \"vis-configuration-wrapper\";\n this.container.appendChild(this.wrapper);\n for (var i = 0; i < this.domElements.length; i++) {\n this.wrapper.appendChild(this.domElements[i]);\n }\n this._showPopupIfNeeded();\n }\n\n /**\n * delete all DOM elements\n *\n * @private\n */\n }, {\n key: \"_clean\",\n value: function _clean() {\n for (var i = 0; i < this.domElements.length; i++) {\n this.wrapper.removeChild(this.domElements[i]);\n }\n if (this.wrapper !== undefined) {\n this.container.removeChild(this.wrapper);\n this.wrapper = undefined;\n }\n this.domElements = [];\n this._removePopup();\n }\n\n /**\n * get the value from the actualOptions if it exists\n *\n * @param {Array} path | where to look for the actual option\n * @returns {*}\n * @private\n */\n }, {\n key: \"_getValue\",\n value: function _getValue(path) {\n var base = this.moduleOptions;\n for (var i = 0; i < path.length; i++) {\n if (base[path[i]] !== undefined) {\n base = base[path[i]];\n } else {\n base = undefined;\n break;\n }\n }\n return base;\n }\n\n /**\n * all option elements are wrapped in an item\n *\n * @param {Array} path | where to look for the actual option\n * @param {Array.} domElements\n * @returns {number}\n * @private\n */\n }, {\n key: \"_makeItem\",\n value: function _makeItem(path) {\n if (this.allowCreation === true) {\n var item = document.createElement(\"div\");\n item.className = \"vis-configuration vis-config-item vis-config-s\" + path.length;\n for (var _len6 = arguments.length, domElements = new Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; _key6 < _len6; _key6++) {\n domElements[_key6 - 1] = arguments[_key6];\n }\n _forEachInstanceProperty(domElements).call(domElements, function (element) {\n item.appendChild(element);\n });\n this.domElements.push(item);\n return this.domElements.length;\n }\n return 0;\n }\n\n /**\n * header for major subjects\n *\n * @param {string} name\n * @private\n */\n }, {\n key: \"_makeHeader\",\n value: function _makeHeader(name) {\n var div = document.createElement(\"div\");\n div.className = \"vis-configuration vis-config-header\";\n div.innerText = name;\n this._makeItem([], div);\n }\n\n /**\n * make a label, if it is an object label, it gets different styling.\n *\n * @param {string} name\n * @param {Array} path | where to look for the actual option\n * @param {string} objectLabel\n * @returns {HTMLElement}\n * @private\n */\n }, {\n key: \"_makeLabel\",\n value: function _makeLabel(name, path) {\n var objectLabel = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var div = document.createElement(\"div\");\n div.className = \"vis-configuration vis-config-label vis-config-s\" + path.length;\n if (objectLabel === true) {\n while (div.firstChild) {\n div.removeChild(div.firstChild);\n }\n div.appendChild(wrapInTag(\"i\", \"b\", name));\n } else {\n div.innerText = name + \":\";\n }\n return div;\n }\n\n /**\n * make a dropdown list for multiple possible string optoins\n *\n * @param {Array.} arr\n * @param {number} value\n * @param {Array} path | where to look for the actual option\n * @private\n */\n }, {\n key: \"_makeDropdown\",\n value: function _makeDropdown(arr, value, path) {\n var select = document.createElement(\"select\");\n select.className = \"vis-configuration vis-config-select\";\n var selectedValue = 0;\n if (value !== undefined) {\n if (_indexOfInstanceProperty(arr).call(arr, value) !== -1) {\n selectedValue = _indexOfInstanceProperty(arr).call(arr, value);\n }\n }\n for (var i = 0; i < arr.length; i++) {\n var _option2 = document.createElement(\"option\");\n _option2.value = arr[i];\n if (i === selectedValue) {\n _option2.selected = \"selected\";\n }\n _option2.innerText = arr[i];\n select.appendChild(_option2);\n }\n var me = this;\n select.onchange = function () {\n me._update(this.value, path);\n };\n var label = this._makeLabel(path[path.length - 1], path);\n this._makeItem(path, label, select);\n }\n\n /**\n * make a range object for numeric options\n *\n * @param {Array.} arr\n * @param {number} value\n * @param {Array} path | where to look for the actual option\n * @private\n */\n }, {\n key: \"_makeRange\",\n value: function _makeRange(arr, value, path) {\n var defaultValue = arr[0];\n var min = arr[1];\n var max = arr[2];\n var step = arr[3];\n var range = document.createElement(\"input\");\n range.className = \"vis-configuration vis-config-range\";\n try {\n range.type = \"range\"; // not supported on IE9\n range.min = min;\n range.max = max;\n } catch (err) {\n // TODO: Add some error handling.\n }\n range.step = step;\n\n // set up the popup settings in case they are needed.\n var popupString = \"\";\n var popupValue = 0;\n if (value !== undefined) {\n var factor = 1.2;\n if (value < 0 && value * factor < min) {\n range.min = Math.ceil(value * factor);\n popupValue = range.min;\n popupString = \"range increased\";\n } else if (value / factor < min) {\n range.min = Math.ceil(value / factor);\n popupValue = range.min;\n popupString = \"range increased\";\n }\n if (value * factor > max && max !== 1) {\n range.max = Math.ceil(value * factor);\n popupValue = range.max;\n popupString = \"range increased\";\n }\n range.value = value;\n } else {\n range.value = defaultValue;\n }\n var input = document.createElement(\"input\");\n input.className = \"vis-configuration vis-config-rangeinput\";\n input.value = range.value;\n var me = this;\n range.onchange = function () {\n input.value = this.value;\n me._update(Number(this.value), path);\n };\n range.oninput = function () {\n input.value = this.value;\n };\n var label = this._makeLabel(path[path.length - 1], path);\n var itemIndex = this._makeItem(path, label, range, input);\n\n // if a popup is needed AND it has not been shown for this value, show it.\n if (popupString !== \"\" && this.popupHistory[itemIndex] !== popupValue) {\n this.popupHistory[itemIndex] = popupValue;\n this._setupPopup(popupString, itemIndex);\n }\n }\n\n /**\n * make a button object\n *\n * @private\n */\n }, {\n key: \"_makeButton\",\n value: function _makeButton() {\n var _this4 = this;\n if (this.options.showButton === true) {\n var generateButton = document.createElement(\"div\");\n generateButton.className = \"vis-configuration vis-config-button\";\n generateButton.innerText = \"generate options\";\n generateButton.onclick = function () {\n _this4._printOptions();\n };\n generateButton.onmouseover = function () {\n generateButton.className = \"vis-configuration vis-config-button hover\";\n };\n generateButton.onmouseout = function () {\n generateButton.className = \"vis-configuration vis-config-button\";\n };\n this.optionsContainer = document.createElement(\"div\");\n this.optionsContainer.className = \"vis-configuration vis-config-option-container\";\n this.domElements.push(this.optionsContainer);\n this.domElements.push(generateButton);\n }\n }\n\n /**\n * prepare the popup\n *\n * @param {string} string\n * @param {number} index\n * @private\n */\n }, {\n key: \"_setupPopup\",\n value: function _setupPopup(string, index) {\n var _this5 = this;\n if (this.initialized === true && this.allowCreation === true && this.popupCounter < this.popupLimit) {\n var div = document.createElement(\"div\");\n div.id = \"vis-configuration-popup\";\n div.className = \"vis-configuration-popup\";\n div.innerText = string;\n div.onclick = function () {\n _this5._removePopup();\n };\n this.popupCounter += 1;\n this.popupDiv = {\n html: div,\n index: index\n };\n }\n }\n\n /**\n * remove the popup from the dom\n *\n * @private\n */\n }, {\n key: \"_removePopup\",\n value: function _removePopup() {\n if (this.popupDiv.html !== undefined) {\n this.popupDiv.html.parentNode.removeChild(this.popupDiv.html);\n clearTimeout(this.popupDiv.hideTimeout);\n clearTimeout(this.popupDiv.deleteTimeout);\n this.popupDiv = {};\n }\n }\n\n /**\n * Show the popup if it is needed.\n *\n * @private\n */\n }, {\n key: \"_showPopupIfNeeded\",\n value: function _showPopupIfNeeded() {\n var _this6 = this;\n if (this.popupDiv.html !== undefined) {\n var correspondingElement = this.domElements[this.popupDiv.index];\n var rect = correspondingElement.getBoundingClientRect();\n this.popupDiv.html.style.left = rect.left + \"px\";\n this.popupDiv.html.style.top = rect.top - 30 + \"px\"; // 30 is the height;\n document.body.appendChild(this.popupDiv.html);\n this.popupDiv.hideTimeout = _setTimeout(function () {\n _this6.popupDiv.html.style.opacity = 0;\n }, 1500);\n this.popupDiv.deleteTimeout = _setTimeout(function () {\n _this6._removePopup();\n }, 1800);\n }\n }\n\n /**\n * make a checkbox for boolean options.\n *\n * @param {number} defaultValue\n * @param {number} value\n * @param {Array} path | where to look for the actual option\n * @private\n */\n }, {\n key: \"_makeCheckbox\",\n value: function _makeCheckbox(defaultValue, value, path) {\n var checkbox = document.createElement(\"input\");\n checkbox.type = \"checkbox\";\n checkbox.className = \"vis-configuration vis-config-checkbox\";\n checkbox.checked = defaultValue;\n if (value !== undefined) {\n checkbox.checked = value;\n if (value !== defaultValue) {\n if (_typeof$1(defaultValue) === \"object\") {\n if (value !== defaultValue.enabled) {\n this.changedOptions.push({\n path: path,\n value: value\n });\n }\n } else {\n this.changedOptions.push({\n path: path,\n value: value\n });\n }\n }\n }\n var me = this;\n checkbox.onchange = function () {\n me._update(this.checked, path);\n };\n var label = this._makeLabel(path[path.length - 1], path);\n this._makeItem(path, label, checkbox);\n }\n\n /**\n * make a text input field for string options.\n *\n * @param {number} defaultValue\n * @param {number} value\n * @param {Array} path | where to look for the actual option\n * @private\n */\n }, {\n key: \"_makeTextInput\",\n value: function _makeTextInput(defaultValue, value, path) {\n var checkbox = document.createElement(\"input\");\n checkbox.type = \"text\";\n checkbox.className = \"vis-configuration vis-config-text\";\n checkbox.value = value;\n if (value !== defaultValue) {\n this.changedOptions.push({\n path: path,\n value: value\n });\n }\n var me = this;\n checkbox.onchange = function () {\n me._update(this.value, path);\n };\n var label = this._makeLabel(path[path.length - 1], path);\n this._makeItem(path, label, checkbox);\n }\n\n /**\n * make a color field with a color picker for color fields\n *\n * @param {Array.} arr\n * @param {number} value\n * @param {Array} path | where to look for the actual option\n * @private\n */\n }, {\n key: \"_makeColorField\",\n value: function _makeColorField(arr, value, path) {\n var _this7 = this;\n var defaultColor = arr[1];\n var div = document.createElement(\"div\");\n value = value === undefined ? defaultColor : value;\n if (value !== \"none\") {\n div.className = \"vis-configuration vis-config-colorBlock\";\n div.style.backgroundColor = value;\n } else {\n div.className = \"vis-configuration vis-config-colorBlock none\";\n }\n value = value === undefined ? defaultColor : value;\n div.onclick = function () {\n _this7._showColorPicker(value, div, path);\n };\n var label = this._makeLabel(path[path.length - 1], path);\n this._makeItem(path, label, div);\n }\n\n /**\n * used by the color buttons to call the color picker.\n *\n * @param {number} value\n * @param {HTMLElement} div\n * @param {Array} path | where to look for the actual option\n * @private\n */\n }, {\n key: \"_showColorPicker\",\n value: function _showColorPicker(value, div, path) {\n var _this8 = this;\n // clear the callback from this div\n div.onclick = function () {};\n this.colorPicker.insertTo(div);\n this.colorPicker.show();\n this.colorPicker.setColor(value);\n this.colorPicker.setUpdateCallback(function (color) {\n var colorString = \"rgba(\" + color.r + \",\" + color.g + \",\" + color.b + \",\" + color.a + \")\";\n div.style.backgroundColor = colorString;\n _this8._update(colorString, path);\n });\n\n // on close of the colorpicker, restore the callback.\n this.colorPicker.setCloseCallback(function () {\n div.onclick = function () {\n _this8._showColorPicker(value, div, path);\n };\n });\n }\n\n /**\n * parse an object and draw the correct items\n *\n * @param {object} obj\n * @param {Array} [path=[]] | where to look for the actual option\n * @param {boolean} [checkOnly=false]\n * @returns {boolean}\n * @private\n */\n }, {\n key: \"_handleObject\",\n value: function _handleObject(obj) {\n var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n var checkOnly = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var show = false;\n var filter = _filterInstanceProperty(this.options);\n var visibleInSet = false;\n for (var subObj in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, subObj)) {\n show = true;\n var item = obj[subObj];\n var newPath = copyAndExtendArray(path, subObj);\n if (typeof filter === \"function\") {\n show = filter(subObj, path);\n\n // if needed we must go deeper into the object.\n if (show === false) {\n if (!_Array$isArray(item) && typeof item !== \"string\" && typeof item !== \"boolean\" && item instanceof Object) {\n this.allowCreation = false;\n show = this._handleObject(item, newPath, true);\n this.allowCreation = checkOnly === false;\n }\n }\n }\n if (show !== false) {\n visibleInSet = true;\n var value = this._getValue(newPath);\n if (_Array$isArray(item)) {\n this._handleArray(item, value, newPath);\n } else if (typeof item === \"string\") {\n this._makeTextInput(item, value, newPath);\n } else if (typeof item === \"boolean\") {\n this._makeCheckbox(item, value, newPath);\n } else if (item instanceof Object) {\n // skip the options that are not enabled\n if (!this.hideOption(path, subObj, this.moduleOptions)) {\n // initially collapse options with an disabled enabled option.\n if (item.enabled !== undefined) {\n var enabledPath = copyAndExtendArray(newPath, \"enabled\");\n var enabledValue = this._getValue(enabledPath);\n if (enabledValue === true) {\n var label = this._makeLabel(subObj, newPath, true);\n this._makeItem(newPath, label);\n visibleInSet = this._handleObject(item, newPath) || visibleInSet;\n } else {\n this._makeCheckbox(item, enabledValue, newPath);\n }\n } else {\n var _label = this._makeLabel(subObj, newPath, true);\n this._makeItem(newPath, _label);\n visibleInSet = this._handleObject(item, newPath) || visibleInSet;\n }\n }\n } else {\n console.error(\"dont know how to handle\", item, subObj, newPath);\n }\n }\n }\n }\n return visibleInSet;\n }\n\n /**\n * handle the array type of option\n *\n * @param {Array.} arr\n * @param {number} value\n * @param {Array} path | where to look for the actual option\n * @private\n */\n }, {\n key: \"_handleArray\",\n value: function _handleArray(arr, value, path) {\n if (typeof arr[0] === \"string\" && arr[0] === \"color\") {\n this._makeColorField(arr, value, path);\n if (arr[1] !== value) {\n this.changedOptions.push({\n path: path,\n value: value\n });\n }\n } else if (typeof arr[0] === \"string\") {\n this._makeDropdown(arr, value, path);\n if (arr[0] !== value) {\n this.changedOptions.push({\n path: path,\n value: value\n });\n }\n } else if (typeof arr[0] === \"number\") {\n this._makeRange(arr, value, path);\n if (arr[0] !== value) {\n this.changedOptions.push({\n path: path,\n value: Number(value)\n });\n }\n }\n }\n\n /**\n * called to update the network with the new settings.\n *\n * @param {number} value\n * @param {Array} path | where to look for the actual option\n * @private\n */\n }, {\n key: \"_update\",\n value: function _update(value, path) {\n var options = this._constructOptions(value, path);\n if (this.parent.body && this.parent.body.emitter && this.parent.body.emitter.emit) {\n this.parent.body.emitter.emit(\"configChange\", options);\n }\n this.initialized = true;\n this.parent.setOptions(options);\n }\n\n /**\n *\n * @param {string | boolean} value\n * @param {Array.} path\n * @param {{}} optionsObj\n * @returns {{}}\n * @private\n */\n }, {\n key: \"_constructOptions\",\n value: function _constructOptions(value, path) {\n var optionsObj = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var pointer = optionsObj;\n\n // when dropdown boxes can be string or boolean, we typecast it into correct types\n value = value === \"true\" ? true : value;\n value = value === \"false\" ? false : value;\n for (var i = 0; i < path.length; i++) {\n if (path[i] !== \"global\") {\n if (pointer[path[i]] === undefined) {\n pointer[path[i]] = {};\n }\n if (i !== path.length - 1) {\n pointer = pointer[path[i]];\n } else {\n pointer[path[i]] = value;\n }\n }\n }\n return optionsObj;\n }\n\n /**\n * @private\n */\n }, {\n key: \"_printOptions\",\n value: function _printOptions() {\n var options = this.getOptions();\n while (this.optionsContainer.firstChild) {\n this.optionsContainer.removeChild(this.optionsContainer.firstChild);\n }\n this.optionsContainer.appendChild(wrapInTag(\"pre\", \"const options = \" + _JSON$stringify(options, null, 2)));\n }\n\n /**\n *\n * @returns {{}} options\n */\n }, {\n key: \"getOptions\",\n value: function getOptions() {\n var options = {};\n for (var i = 0; i < this.changedOptions.length; i++) {\n this._constructOptions(this.changedOptions[i].value, this.changedOptions[i].path, options);\n }\n return options;\n }\n }]);\n return Configurator$1;\n}();\n/**\n * Popup is a class to create a popup window with some text\n */\nvar Popup$1 = /*#__PURE__*/function () {\n /**\n * @param {Element} container The container object.\n * @param {string} overflowMethod How the popup should act to overflowing ('flip' or 'cap')\n */\n function Popup$1(container, overflowMethod) {\n _classCallCheck(this, Popup$1);\n this.container = container;\n this.overflowMethod = overflowMethod || \"cap\";\n this.x = 0;\n this.y = 0;\n this.padding = 5;\n this.hidden = false;\n\n // create the frame\n this.frame = document.createElement(\"div\");\n this.frame.className = \"vis-tooltip\";\n this.container.appendChild(this.frame);\n }\n\n /**\n * @param {number} x Horizontal position of the popup window\n * @param {number} y Vertical position of the popup window\n */\n _createClass(Popup$1, [{\n key: \"setPosition\",\n value: function setPosition(x, y) {\n this.x = _parseInt(x);\n this.y = _parseInt(y);\n }\n\n /**\n * Set the content for the popup window. This can be HTML code or text.\n *\n * @param {string | Element} content\n */\n }, {\n key: \"setText\",\n value: function setText(content) {\n if (content instanceof Element) {\n while (this.frame.firstChild) {\n this.frame.removeChild(this.frame.firstChild);\n }\n this.frame.appendChild(content);\n } else {\n // String containing literal text, element has to be used for HTML due to\n // XSS risks associated with innerHTML (i.e. prevent XSS by accident).\n this.frame.innerText = content;\n }\n }\n\n /**\n * Show the popup window\n *\n * @param {boolean} [doShow] Show or hide the window\n */\n }, {\n key: \"show\",\n value: function show(doShow) {\n if (doShow === undefined) {\n doShow = true;\n }\n if (doShow === true) {\n var height = this.frame.clientHeight;\n var width = this.frame.clientWidth;\n var maxHeight = this.frame.parentNode.clientHeight;\n var maxWidth = this.frame.parentNode.clientWidth;\n var left = 0,\n top = 0;\n if (this.overflowMethod == \"flip\") {\n var isLeft = false,\n isTop = true; // Where around the position it's located\n\n if (this.y - height < this.padding) {\n isTop = false;\n }\n if (this.x + width > maxWidth - this.padding) {\n isLeft = true;\n }\n if (isLeft) {\n left = this.x - width;\n } else {\n left = this.x;\n }\n if (isTop) {\n top = this.y - height;\n } else {\n top = this.y;\n }\n } else {\n top = this.y - height;\n if (top + height + this.padding > maxHeight) {\n top = maxHeight - height - this.padding;\n }\n if (top < this.padding) {\n top = this.padding;\n }\n left = this.x;\n if (left + width + this.padding > maxWidth) {\n left = maxWidth - width - this.padding;\n }\n if (left < this.padding) {\n left = this.padding;\n }\n }\n this.frame.style.left = left + \"px\";\n this.frame.style.top = top + \"px\";\n this.frame.style.visibility = \"visible\";\n this.hidden = false;\n } else {\n this.hide();\n }\n }\n\n /**\n * Hide the popup window\n */\n }, {\n key: \"hide\",\n value: function hide() {\n this.hidden = true;\n this.frame.style.left = \"0\";\n this.frame.style.top = \"0\";\n this.frame.style.visibility = \"hidden\";\n }\n\n /**\n * Remove the popup window\n */\n }, {\n key: \"destroy\",\n value: function destroy() {\n this.frame.parentNode.removeChild(this.frame); // Remove element from DOM\n }\n }]);\n return Popup$1;\n}();\nvar errorFound = false;\nvar allOptions$1;\nvar VALIDATOR_PRINT_STYLE$1 = \"background: #FFeeee; color: #dd0000\";\n\n/**\n * Used to validate options.\n */\nvar Validator$1 = /*#__PURE__*/function () {\n function Validator$1() {\n _classCallCheck(this, Validator$1);\n }\n _createClass(Validator$1, null, [{\n key: \"validate\",\n value:\n /**\n * Main function to be called\n *\n * @param {object} options\n * @param {object} referenceOptions\n * @param {object} subObject\n * @returns {boolean}\n * @static\n */\n function validate(options, referenceOptions, subObject) {\n errorFound = false;\n allOptions$1 = referenceOptions;\n var usedOptions = referenceOptions;\n if (subObject !== undefined) {\n usedOptions = referenceOptions[subObject];\n }\n Validator$1.parse(options, usedOptions, []);\n return errorFound;\n }\n\n /**\n * Will traverse an object recursively and check every value\n *\n * @param {object} options\n * @param {object} referenceOptions\n * @param {Array} path | where to look for the actual option\n * @static\n */\n }, {\n key: \"parse\",\n value: function parse(options, referenceOptions, path) {\n for (var _option3 in options) {\n if (Object.prototype.hasOwnProperty.call(options, _option3)) {\n Validator$1.check(_option3, options, referenceOptions, path);\n }\n }\n }\n\n /**\n * Check every value. If the value is an object, call the parse function on that object.\n *\n * @param {string} option\n * @param {object} options\n * @param {object} referenceOptions\n * @param {Array} path | where to look for the actual option\n * @static\n */\n }, {\n key: \"check\",\n value: function check(option, options, referenceOptions, path) {\n if (referenceOptions[option] === undefined && referenceOptions.__any__ === undefined) {\n Validator$1.getSuggestion(option, referenceOptions, path);\n return;\n }\n var referenceOption = option;\n var is_object = true;\n if (referenceOptions[option] === undefined && referenceOptions.__any__ !== undefined) {\n // NOTE: This only triggers if the __any__ is in the top level of the options object.\n // THAT'S A REALLY BAD PLACE TO ALLOW IT!!!!\n // TODO: Examine if needed, remove if possible\n\n // __any__ is a wildcard. Any value is accepted and will be further analysed by reference.\n referenceOption = \"__any__\";\n\n // if the any-subgroup is not a predefined object in the configurator,\n // we do not look deeper into the object.\n is_object = Validator$1.getType(options[option]) === \"object\";\n }\n var refOptionObj = referenceOptions[referenceOption];\n if (is_object && refOptionObj.__type__ !== undefined) {\n refOptionObj = refOptionObj.__type__;\n }\n Validator$1.checkFields(option, options, referenceOptions, referenceOption, refOptionObj, path);\n }\n\n /**\n *\n * @param {string} option | the option property\n * @param {object} options | The supplied options object\n * @param {object} referenceOptions | The reference options containing all options and their allowed formats\n * @param {string} referenceOption | Usually this is the same as option, except when handling an __any__ tag.\n * @param {string} refOptionObj | This is the type object from the reference options\n * @param {Array} path | where in the object is the option\n * @static\n */\n }, {\n key: \"checkFields\",\n value: function checkFields(option, options, referenceOptions, referenceOption, refOptionObj, path) {\n var log = function log(message) {\n console.error(\"%c\" + message + Validator$1.printLocation(path, option), VALIDATOR_PRINT_STYLE$1);\n };\n var optionType = Validator$1.getType(options[option]);\n var refOptionType = refOptionObj[optionType];\n if (refOptionType !== undefined) {\n // if the type is correct, we check if it is supposed to be one of a few select values\n if (Validator$1.getType(refOptionType) === \"array\" && _indexOfInstanceProperty(refOptionType).call(refOptionType, options[option]) === -1) {\n log('Invalid option detected in \"' + option + '\".' + \" Allowed values are:\" + Validator$1.print(refOptionType) + ' not \"' + options[option] + '\". ');\n errorFound = true;\n } else if (optionType === \"object\" && referenceOption !== \"__any__\") {\n path = copyAndExtendArray(path, option);\n Validator$1.parse(options[option], referenceOptions[referenceOption], path);\n }\n } else if (refOptionObj[\"any\"] === undefined) {\n // type of the field is incorrect and the field cannot be any\n log('Invalid type received for \"' + option + '\". Expected: ' + Validator$1.print(_Object$keys(refOptionObj)) + \". Received [\" + optionType + '] \"' + options[option] + '\"');\n errorFound = true;\n }\n }\n\n /**\n *\n * @param {object | boolean | number | string | Array. | Date | Node | Moment | undefined | null} object\n * @returns {string}\n * @static\n */\n }, {\n key: \"getType\",\n value: function getType(object) {\n var type = _typeof$1(object);\n if (type === \"object\") {\n if (object === null) {\n return \"null\";\n }\n if (object instanceof Boolean) {\n return \"boolean\";\n }\n if (object instanceof Number) {\n return \"number\";\n }\n if (object instanceof String) {\n return \"string\";\n }\n if (_Array$isArray(object)) {\n return \"array\";\n }\n if (object instanceof Date) {\n return \"date\";\n }\n if (object.nodeType !== undefined) {\n return \"dom\";\n }\n if (object._isAMomentObject === true) {\n return \"moment\";\n }\n return \"object\";\n } else if (type === \"number\") {\n return \"number\";\n } else if (type === \"boolean\") {\n return \"boolean\";\n } else if (type === \"string\") {\n return \"string\";\n } else if (type === undefined) {\n return \"undefined\";\n }\n return type;\n }\n\n /**\n * @param {string} option\n * @param {object} options\n * @param {Array.} path\n * @static\n */\n }, {\n key: \"getSuggestion\",\n value: function getSuggestion(option, options, path) {\n var localSearch = Validator$1.findInOptions(option, options, path, false);\n var globalSearch = Validator$1.findInOptions(option, allOptions$1, [], true);\n var localSearchThreshold = 8;\n var globalSearchThreshold = 4;\n var msg;\n if (localSearch.indexMatch !== undefined) {\n msg = \" in \" + Validator$1.printLocation(localSearch.path, option, \"\") + 'Perhaps it was incomplete? Did you mean: \"' + localSearch.indexMatch + '\"?\\n\\n';\n } else if (globalSearch.distance <= globalSearchThreshold && localSearch.distance > globalSearch.distance) {\n msg = \" in \" + Validator$1.printLocation(localSearch.path, option, \"\") + \"Perhaps it was misplaced? Matching option found at: \" + Validator$1.printLocation(globalSearch.path, globalSearch.closestMatch, \"\");\n } else if (localSearch.distance <= localSearchThreshold) {\n msg = '. Did you mean \"' + localSearch.closestMatch + '\"?' + Validator$1.printLocation(localSearch.path, option);\n } else {\n msg = \". Did you mean one of these: \" + Validator$1.print(_Object$keys(options)) + Validator$1.printLocation(path, option);\n }\n console.error('%cUnknown option detected: \"' + option + '\"' + msg, VALIDATOR_PRINT_STYLE$1);\n errorFound = true;\n }\n\n /**\n * traverse the options in search for a match.\n *\n * @param {string} option\n * @param {object} options\n * @param {Array} path | where to look for the actual option\n * @param {boolean} [recursive=false]\n * @returns {{closestMatch: string, path: Array, distance: number}}\n * @static\n */\n }, {\n key: \"findInOptions\",\n value: function findInOptions(option, options, path) {\n var recursive = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var min = 1e9;\n var closestMatch = \"\";\n var closestMatchPath = [];\n var lowerCaseOption = option.toLowerCase();\n var indexMatch = undefined;\n for (var op in options) {\n var distance = void 0;\n if (options[op].__type__ !== undefined && recursive === true) {\n var result = Validator$1.findInOptions(option, options[op], copyAndExtendArray(path, op));\n if (min > result.distance) {\n closestMatch = result.closestMatch;\n closestMatchPath = result.path;\n min = result.distance;\n indexMatch = result.indexMatch;\n }\n } else {\n var _context20;\n if (_indexOfInstanceProperty(_context20 = op.toLowerCase()).call(_context20, lowerCaseOption) !== -1) {\n indexMatch = op;\n }\n distance = Validator$1.levenshteinDistance(option, op);\n if (min > distance) {\n closestMatch = op;\n closestMatchPath = copyArray(path);\n min = distance;\n }\n }\n }\n return {\n closestMatch: closestMatch,\n path: closestMatchPath,\n distance: min,\n indexMatch: indexMatch\n };\n }\n\n /**\n * @param {Array.} path\n * @param {object} option\n * @param {string} prefix\n * @returns {string}\n * @static\n */\n }, {\n key: \"printLocation\",\n value: function printLocation(path, option) {\n var prefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"Problem value found at: \\n\";\n var str = \"\\n\\n\" + prefix + \"options = {\\n\";\n for (var i = 0; i < path.length; i++) {\n for (var j = 0; j < i + 1; j++) {\n str += \" \";\n }\n str += path[i] + \": {\\n\";\n }\n for (var _j = 0; _j < path.length + 1; _j++) {\n str += \" \";\n }\n str += option + \"\\n\";\n for (var _i3 = 0; _i3 < path.length + 1; _i3++) {\n for (var _j2 = 0; _j2 < path.length - _i3; _j2++) {\n str += \" \";\n }\n str += \"}\\n\";\n }\n return str + \"\\n\\n\";\n }\n\n /**\n * @param {object} options\n * @returns {string}\n * @static\n */\n }, {\n key: \"print\",\n value: function print(options) {\n return _JSON$stringify(options).replace(/(\")|(\\[)|(\\])|(,\"__type__\")/g, \"\").replace(/(,)/g, \", \");\n }\n\n /**\n * Compute the edit distance between the two given strings\n * http://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Levenshtein_distance#JavaScript\n *\n * Copyright (c) 2011 Andrei Mackenzie\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n *\n * @param {string} a\n * @param {string} b\n * @returns {Array.>}}\n * @static\n */\n }, {\n key: \"levenshteinDistance\",\n value: function levenshteinDistance(a, b) {\n if (a.length === 0) return b.length;\n if (b.length === 0) return a.length;\n var matrix = [];\n\n // increment along the first column of each row\n var i;\n for (i = 0; i <= b.length; i++) {\n matrix[i] = [i];\n }\n\n // increment each column in the first row\n var j;\n for (j = 0; j <= a.length; j++) {\n matrix[0][j] = j;\n }\n\n // Fill in the rest of the matrix\n for (i = 1; i <= b.length; i++) {\n for (j = 1; j <= a.length; j++) {\n if (b.charAt(i - 1) == a.charAt(j - 1)) {\n matrix[i][j] = matrix[i - 1][j - 1];\n } else {\n matrix[i][j] = Math.min(matrix[i - 1][j - 1] + 1,\n // substitution\n Math.min(matrix[i][j - 1] + 1,\n // insertion\n matrix[i - 1][j] + 1)); // deletion\n }\n }\n }\n\n return matrix[b.length][a.length];\n }\n }]);\n return Validator$1;\n}();\nvar Activator = Activator$1;\nvar Configurator = Configurator$1;\nvar Hammer = Hammer$1;\nvar Popup = Popup$1;\nvar VALIDATOR_PRINT_STYLE = VALIDATOR_PRINT_STYLE$1;\nvar Validator = Validator$1;\n\n/* eslint-disable no-prototype-builtins */\n/* eslint-disable no-unused-vars */\n/* eslint-disable no-var */\n\n/**\n * Parse a text source containing data in DOT language into a JSON object.\n * The object contains two lists: one with nodes and one with edges.\n *\n * DOT language reference: http://www.graphviz.org/doc/info/lang.html\n *\n * DOT language attributes: http://graphviz.org/content/attrs\n *\n * @param {string} data Text containing a graph in DOT-notation\n * @returns {object} graph An object containing two parameters:\n * {Object[]} nodes\n * {Object[]} edges\n *\n * -------------------------------------------\n * TODO\n * ====\n *\n * For label handling, this is an incomplete implementation. From docs (quote #3015):\n *\n * > the escape sequences \"\\n\", \"\\l\" and \"\\r\" divide the label into lines, centered,\n * > left-justified, and right-justified, respectively.\n *\n * Source: http://www.graphviz.org/content/attrs#kescString\n *\n * > As another aid for readability, dot allows double-quoted strings to span multiple physical\n * > lines using the standard C convention of a backslash immediately preceding a newline\n * > character\n * > In addition, double-quoted strings can be concatenated using a '+' operator.\n * > As HTML strings can contain newline characters, which are used solely for formatting,\n * > the language does not allow escaped newlines or concatenation operators to be used\n * > within them.\n *\n * - Currently, only '\\\\n' is handled\n * - Note that text explicitly says 'labels'; the dot parser currently handles escape\n * sequences in **all** strings.\n */\nfunction parseDOT(data) {\n dot = data;\n return parseGraph();\n}\n\n// mapping of attributes from DOT (the keys) to vis.js (the values)\nvar NODE_ATTR_MAPPING = {\n fontsize: \"font.size\",\n fontcolor: \"font.color\",\n labelfontcolor: \"font.color\",\n fontname: \"font.face\",\n color: [\"color.border\", \"color.background\"],\n fillcolor: \"color.background\",\n tooltip: \"title\",\n labeltooltip: \"title\"\n};\nvar EDGE_ATTR_MAPPING = _Object$create$1(NODE_ATTR_MAPPING);\nEDGE_ATTR_MAPPING.color = \"color.color\";\nEDGE_ATTR_MAPPING.style = \"dashes\";\n\n// token types enumeration\nvar TOKENTYPE = {\n NULL: 0,\n DELIMITER: 1,\n IDENTIFIER: 2,\n UNKNOWN: 3\n};\n\n// map with all delimiters\nvar DELIMITERS = {\n \"{\": true,\n \"}\": true,\n \"[\": true,\n \"]\": true,\n \";\": true,\n \"=\": true,\n \",\": true,\n \"->\": true,\n \"--\": true\n};\nvar dot = \"\"; // current dot file\nvar index$1 = 0; // current index in dot file\nvar c = \"\"; // current token character in expr\nvar token = \"\"; // current token\nvar tokenType = TOKENTYPE.NULL; // type of the token\n\n/**\n * Get the first character from the dot file.\n * The character is stored into the char c. If the end of the dot file is\n * reached, the function puts an empty string in c.\n */\nfunction first() {\n index$1 = 0;\n c = dot.charAt(0);\n}\n\n/**\n * Get the next character from the dot file.\n * The character is stored into the char c. If the end of the dot file is\n * reached, the function puts an empty string in c.\n */\nfunction next() {\n index$1++;\n c = dot.charAt(index$1);\n}\n\n/**\n * Preview the next character from the dot file.\n *\n * @returns {string} cNext\n */\nfunction nextPreview() {\n return dot.charAt(index$1 + 1);\n}\n\n/**\n * Test whether given character is alphabetic or numeric ( a-zA-Z_0-9.:# )\n *\n * @param {string} c\n * @returns {boolean} isAlphaNumeric\n */\nfunction isAlphaNumeric(c) {\n var charCode = c.charCodeAt(0);\n if (charCode < 47) {\n // #.\n return charCode === 35 || charCode === 46;\n }\n if (charCode < 59) {\n // 0-9 and :\n return charCode > 47;\n }\n if (charCode < 91) {\n // A-Z\n return charCode > 64;\n }\n if (charCode < 96) {\n // _\n return charCode === 95;\n }\n if (charCode < 123) {\n // a-z\n return charCode > 96;\n }\n return false;\n}\n\n/**\n * Merge all options of object b into object b\n *\n * @param {object} a\n * @param {object} b\n * @returns {object} a\n */\nfunction merge$1(a, b) {\n if (!a) {\n a = {};\n }\n if (b) {\n for (var name in b) {\n if (b.hasOwnProperty(name)) {\n a[name] = b[name];\n }\n }\n }\n return a;\n}\n\n/**\n * Set a value in an object, where the provided parameter name can be a\n * path with nested parameters. For example:\n *\n * var obj = {a: 2};\n * setValue(obj, 'b.c', 3); // obj = {a: 2, b: {c: 3}}\n *\n * @param {object} obj\n * @param {string} path A parameter name or dot-separated parameter path,\n * like \"color.highlight.border\".\n * @param {*} value\n */\nfunction setValue(obj, path, value) {\n var keys = path.split(\".\");\n var o = obj;\n while (keys.length) {\n var key = keys.shift();\n if (keys.length) {\n // this isn't the end point\n if (!o[key]) {\n o[key] = {};\n }\n o = o[key];\n } else {\n // this is the end point\n o[key] = value;\n }\n }\n}\n\n/**\n * Add a node to a graph object. If there is already a node with\n * the same id, their attributes will be merged.\n *\n * @param {object} graph\n * @param {object} node\n */\nfunction addNode(graph, node) {\n var i, len;\n var current = null;\n\n // find root graph (in case of subgraph)\n var graphs = [graph]; // list with all graphs from current graph to root graph\n var root = graph;\n while (root.parent) {\n graphs.push(root.parent);\n root = root.parent;\n }\n\n // find existing node (at root level) by its id\n if (root.nodes) {\n for (i = 0, len = root.nodes.length; i < len; i++) {\n if (node.id === root.nodes[i].id) {\n current = root.nodes[i];\n break;\n }\n }\n }\n if (!current) {\n // this is a new node\n current = {\n id: node.id\n };\n if (graph.node) {\n // clone default attributes\n current.attr = merge$1(current.attr, graph.node);\n }\n }\n\n // add node to this (sub)graph and all its parent graphs\n for (i = graphs.length - 1; i >= 0; i--) {\n var _context;\n var g = graphs[i];\n if (!g.nodes) {\n g.nodes = [];\n }\n if (_indexOfInstanceProperty(_context = g.nodes).call(_context, current) === -1) {\n g.nodes.push(current);\n }\n }\n\n // merge attributes\n if (node.attr) {\n current.attr = merge$1(current.attr, node.attr);\n }\n}\n\n/**\n * Add an edge to a graph object\n *\n * @param {object} graph\n * @param {object} edge\n */\nfunction addEdge(graph, edge) {\n if (!graph.edges) {\n graph.edges = [];\n }\n graph.edges.push(edge);\n if (graph.edge) {\n var attr = merge$1({}, graph.edge); // clone default attributes\n edge.attr = merge$1(attr, edge.attr); // merge attributes\n }\n}\n\n/**\n * Create an edge to a graph object\n *\n * @param {object} graph\n * @param {string | number | object} from\n * @param {string | number | object} to\n * @param {string} type\n * @param {object | null} attr\n * @returns {object} edge\n */\nfunction createEdge(graph, from, to, type, attr) {\n var edge = {\n from: from,\n to: to,\n type: type\n };\n if (graph.edge) {\n edge.attr = merge$1({}, graph.edge); // clone default attributes\n }\n\n edge.attr = merge$1(edge.attr || {}, attr); // merge attributes\n\n // Move arrows attribute from attr to edge temporally created in\n // parseAttributeList().\n if (attr != null) {\n if (attr.hasOwnProperty(\"arrows\") && attr[\"arrows\"] != null) {\n edge[\"arrows\"] = {\n to: {\n enabled: true,\n type: attr.arrows.type\n }\n };\n attr[\"arrows\"] = null;\n }\n }\n return edge;\n}\n\n/**\n * Get next token in the current dot file.\n * The token and token type are available as token and tokenType\n */\nfunction getToken() {\n tokenType = TOKENTYPE.NULL;\n token = \"\";\n\n // skip over whitespaces\n while (c === \" \" || c === \"\\t\" || c === \"\\n\" || c === \"\\r\") {\n // space, tab, enter\n next();\n }\n do {\n var isComment = false;\n\n // skip comment\n if (c === \"#\") {\n // find the previous non-space character\n var i = index$1 - 1;\n while (dot.charAt(i) === \" \" || dot.charAt(i) === \"\\t\") {\n i--;\n }\n if (dot.charAt(i) === \"\\n\" || dot.charAt(i) === \"\") {\n // the # is at the start of a line, this is indeed a line comment\n while (c != \"\" && c != \"\\n\") {\n next();\n }\n isComment = true;\n }\n }\n if (c === \"/\" && nextPreview() === \"/\") {\n // skip line comment\n while (c != \"\" && c != \"\\n\") {\n next();\n }\n isComment = true;\n }\n if (c === \"/\" && nextPreview() === \"*\") {\n // skip block comment\n while (c != \"\") {\n if (c === \"*\" && nextPreview() === \"/\") {\n // end of block comment found. skip these last two characters\n next();\n next();\n break;\n } else {\n next();\n }\n }\n isComment = true;\n }\n\n // skip over whitespaces\n while (c === \" \" || c === \"\\t\" || c === \"\\n\" || c === \"\\r\") {\n // space, tab, enter\n next();\n }\n } while (isComment);\n\n // check for end of dot file\n if (c === \"\") {\n // token is still empty\n tokenType = TOKENTYPE.DELIMITER;\n return;\n }\n\n // check for delimiters consisting of 2 characters\n var c2 = c + nextPreview();\n if (DELIMITERS[c2]) {\n tokenType = TOKENTYPE.DELIMITER;\n token = c2;\n next();\n next();\n return;\n }\n\n // check for delimiters consisting of 1 character\n if (DELIMITERS[c]) {\n tokenType = TOKENTYPE.DELIMITER;\n token = c;\n next();\n return;\n }\n\n // check for an identifier (number or string)\n // TODO: more precise parsing of numbers/strings (and the port separator ':')\n if (isAlphaNumeric(c) || c === \"-\") {\n token += c;\n next();\n while (isAlphaNumeric(c)) {\n token += c;\n next();\n }\n if (token === \"false\") {\n token = false; // convert to boolean\n } else if (token === \"true\") {\n token = true; // convert to boolean\n } else if (!isNaN(Number(token))) {\n token = Number(token); // convert to number\n }\n\n tokenType = TOKENTYPE.IDENTIFIER;\n return;\n }\n\n // check for a string enclosed by double quotes\n if (c === '\"') {\n next();\n while (c != \"\" && (c != '\"' || c === '\"' && nextPreview() === '\"')) {\n if (c === '\"') {\n // skip the escape character\n token += c;\n next();\n } else if (c === \"\\\\\" && nextPreview() === \"n\") {\n // Honor a newline escape sequence\n token += \"\\n\";\n next();\n } else {\n token += c;\n }\n next();\n }\n if (c != '\"') {\n throw newSyntaxError('End of string \" expected');\n }\n next();\n tokenType = TOKENTYPE.IDENTIFIER;\n return;\n }\n\n // something unknown is found, wrong characters, a syntax error\n tokenType = TOKENTYPE.UNKNOWN;\n while (c != \"\") {\n token += c;\n next();\n }\n throw new SyntaxError('Syntax error in part \"' + chop(token, 30) + '\"');\n}\n\n/**\n * Parse a graph.\n *\n * @returns {object} graph\n */\nfunction parseGraph() {\n var graph = {};\n first();\n getToken();\n\n // optional strict keyword\n if (token === \"strict\") {\n graph.strict = true;\n getToken();\n }\n\n // graph or digraph keyword\n if (token === \"graph\" || token === \"digraph\") {\n graph.type = token;\n getToken();\n }\n\n // optional graph id\n if (tokenType === TOKENTYPE.IDENTIFIER) {\n graph.id = token;\n getToken();\n }\n\n // open angle bracket\n if (token != \"{\") {\n throw newSyntaxError(\"Angle bracket { expected\");\n }\n getToken();\n\n // statements\n parseStatements(graph);\n\n // close angle bracket\n if (token != \"}\") {\n throw newSyntaxError(\"Angle bracket } expected\");\n }\n getToken();\n\n // end of file\n if (token !== \"\") {\n throw newSyntaxError(\"End of file expected\");\n }\n getToken();\n\n // remove temporary default options\n delete graph.node;\n delete graph.edge;\n delete graph.graph;\n return graph;\n}\n\n/**\n * Parse a list with statements.\n *\n * @param {object} graph\n */\nfunction parseStatements(graph) {\n while (token !== \"\" && token != \"}\") {\n parseStatement(graph);\n if (token === \";\") {\n getToken();\n }\n }\n}\n\n/**\n * Parse a single statement. Can be a an attribute statement, node\n * statement, a series of node statements and edge statements, or a\n * parameter.\n *\n * @param {object} graph\n */\nfunction parseStatement(graph) {\n // parse subgraph\n var subgraph = parseSubgraph(graph);\n if (subgraph) {\n // edge statements\n parseEdge(graph, subgraph);\n return;\n }\n\n // parse an attribute statement\n var attr = parseAttributeStatement(graph);\n if (attr) {\n return;\n }\n\n // parse node\n if (tokenType != TOKENTYPE.IDENTIFIER) {\n throw newSyntaxError(\"Identifier expected\");\n }\n var id = token; // id can be a string or a number\n getToken();\n if (token === \"=\") {\n // id statement\n getToken();\n if (tokenType != TOKENTYPE.IDENTIFIER) {\n throw newSyntaxError(\"Identifier expected\");\n }\n graph[id] = token;\n getToken();\n // TODO: implement comma separated list with \"a_list: ID=ID [','] [a_list] \"\n } else {\n parseNodeStatement(graph, id);\n }\n}\n\n/**\n * Parse a subgraph\n *\n * @param {object} graph parent graph object\n * @returns {object | null} subgraph\n */\nfunction parseSubgraph(graph) {\n var subgraph = null;\n\n // optional subgraph keyword\n if (token === \"subgraph\") {\n subgraph = {};\n subgraph.type = \"subgraph\";\n getToken();\n\n // optional graph id\n if (tokenType === TOKENTYPE.IDENTIFIER) {\n subgraph.id = token;\n getToken();\n }\n }\n\n // open angle bracket\n if (token === \"{\") {\n getToken();\n if (!subgraph) {\n subgraph = {};\n }\n subgraph.parent = graph;\n subgraph.node = graph.node;\n subgraph.edge = graph.edge;\n subgraph.graph = graph.graph;\n\n // statements\n parseStatements(subgraph);\n\n // close angle bracket\n if (token != \"}\") {\n throw newSyntaxError(\"Angle bracket } expected\");\n }\n getToken();\n\n // remove temporary default options\n delete subgraph.node;\n delete subgraph.edge;\n delete subgraph.graph;\n delete subgraph.parent;\n\n // register at the parent graph\n if (!graph.subgraphs) {\n graph.subgraphs = [];\n }\n graph.subgraphs.push(subgraph);\n }\n return subgraph;\n}\n\n/**\n * parse an attribute statement like \"node [shape=circle fontSize=16]\".\n * Available keywords are 'node', 'edge', 'graph'.\n * The previous list with default attributes will be replaced\n *\n * @param {object} graph\n * @returns {string | null} keyword Returns the name of the parsed attribute\n * (node, edge, graph), or null if nothing\n * is parsed.\n */\nfunction parseAttributeStatement(graph) {\n // attribute statements\n if (token === \"node\") {\n getToken();\n\n // node attributes\n graph.node = parseAttributeList();\n return \"node\";\n } else if (token === \"edge\") {\n getToken();\n\n // edge attributes\n graph.edge = parseAttributeList();\n return \"edge\";\n } else if (token === \"graph\") {\n getToken();\n\n // graph attributes\n graph.graph = parseAttributeList();\n return \"graph\";\n }\n return null;\n}\n\n/**\n * parse a node statement\n *\n * @param {object} graph\n * @param {string | number} id\n */\nfunction parseNodeStatement(graph, id) {\n // node statement\n var node = {\n id: id\n };\n var attr = parseAttributeList();\n if (attr) {\n node.attr = attr;\n }\n addNode(graph, node);\n\n // edge statements\n parseEdge(graph, id);\n}\n\n/**\n * Parse an edge or a series of edges\n *\n * @param {object} graph\n * @param {string | number} from Id of the from node\n */\nfunction parseEdge(graph, from) {\n while (token === \"->\" || token === \"--\") {\n var to;\n var type = token;\n getToken();\n var subgraph = parseSubgraph(graph);\n if (subgraph) {\n to = subgraph;\n } else {\n if (tokenType != TOKENTYPE.IDENTIFIER) {\n throw newSyntaxError(\"Identifier or subgraph expected\");\n }\n to = token;\n addNode(graph, {\n id: to\n });\n getToken();\n }\n\n // parse edge attributes\n var attr = parseAttributeList();\n\n // create edge\n var edge = createEdge(graph, from, to, type, attr);\n addEdge(graph, edge);\n from = to;\n }\n}\n\n/**\n * Parse a set with attributes,\n * for example [label=\"1.000\", shape=solid]\n *\n * @returns {object | null} attr\n */\nfunction parseAttributeList() {\n var i;\n var attr = null;\n\n // edge styles of dot and vis\n var edgeStyles = {\n dashed: true,\n solid: false,\n dotted: [1, 5]\n };\n\n /**\n * Define arrow types.\n * vis currently supports types defined in 'arrowTypes'.\n * Details of arrow shapes are described in\n * http://www.graphviz.org/content/arrow-shapes\n */\n var arrowTypes = {\n dot: \"circle\",\n box: \"box\",\n crow: \"crow\",\n curve: \"curve\",\n icurve: \"inv_curve\",\n normal: \"triangle\",\n inv: \"inv_triangle\",\n diamond: \"diamond\",\n tee: \"bar\",\n vee: \"vee\"\n };\n\n /**\n * 'attr_list' contains attributes for checking if some of them are affected\n * later. For instance, both of 'arrowhead' and 'dir' (edge style defined\n * in DOT) make changes to 'arrows' attribute in vis.\n */\n var attr_list = new Array();\n var attr_names = new Array(); // used for checking the case.\n\n // parse attributes\n while (token === \"[\") {\n getToken();\n attr = {};\n while (token !== \"\" && token != \"]\") {\n if (tokenType != TOKENTYPE.IDENTIFIER) {\n throw newSyntaxError(\"Attribute name expected\");\n }\n var name = token;\n getToken();\n if (token != \"=\") {\n throw newSyntaxError(\"Equal sign = expected\");\n }\n getToken();\n if (tokenType != TOKENTYPE.IDENTIFIER) {\n throw newSyntaxError(\"Attribute value expected\");\n }\n var value = token;\n\n // convert from dot style to vis\n if (name === \"style\") {\n value = edgeStyles[value];\n }\n var arrowType;\n if (name === \"arrowhead\") {\n arrowType = arrowTypes[value];\n name = \"arrows\";\n value = {\n to: {\n enabled: true,\n type: arrowType\n }\n };\n }\n if (name === \"arrowtail\") {\n arrowType = arrowTypes[value];\n name = \"arrows\";\n value = {\n from: {\n enabled: true,\n type: arrowType\n }\n };\n }\n attr_list.push({\n attr: attr,\n name: name,\n value: value\n });\n attr_names.push(name);\n getToken();\n if (token == \",\") {\n getToken();\n }\n }\n if (token != \"]\") {\n throw newSyntaxError(\"Bracket ] expected\");\n }\n getToken();\n }\n\n /**\n * As explained in [1], graphviz has limitations for combination of\n * arrow[head|tail] and dir. If attribute list includes 'dir',\n * following cases just be supported.\n * 1. both or none + arrowhead, arrowtail\n * 2. forward + arrowhead (arrowtail is not affedted)\n * 3. back + arrowtail (arrowhead is not affected)\n * [1] https://www.graphviz.org/doc/info/attrs.html#h:undir_note\n */\n if (_includesInstanceProperty(attr_names).call(attr_names, \"dir\")) {\n var idx = {}; // get index of 'arrows' and 'dir'\n idx.arrows = {};\n for (i = 0; i < attr_list.length; i++) {\n if (attr_list[i].name === \"arrows\") {\n if (attr_list[i].value.to != null) {\n idx.arrows.to = i;\n } else if (attr_list[i].value.from != null) {\n idx.arrows.from = i;\n } else {\n throw newSyntaxError(\"Invalid value of arrows\");\n }\n } else if (attr_list[i].name === \"dir\") {\n idx.dir = i;\n }\n }\n\n // first, add default arrow shape if it is not assigned to avoid error\n var dir_type = attr_list[idx.dir].value;\n if (!_includesInstanceProperty(attr_names).call(attr_names, \"arrows\")) {\n if (dir_type === \"both\") {\n attr_list.push({\n attr: attr_list[idx.dir].attr,\n name: \"arrows\",\n value: {\n to: {\n enabled: true\n }\n }\n });\n idx.arrows.to = attr_list.length - 1;\n attr_list.push({\n attr: attr_list[idx.dir].attr,\n name: \"arrows\",\n value: {\n from: {\n enabled: true\n }\n }\n });\n idx.arrows.from = attr_list.length - 1;\n } else if (dir_type === \"forward\") {\n attr_list.push({\n attr: attr_list[idx.dir].attr,\n name: \"arrows\",\n value: {\n to: {\n enabled: true\n }\n }\n });\n idx.arrows.to = attr_list.length - 1;\n } else if (dir_type === \"back\") {\n attr_list.push({\n attr: attr_list[idx.dir].attr,\n name: \"arrows\",\n value: {\n from: {\n enabled: true\n }\n }\n });\n idx.arrows.from = attr_list.length - 1;\n } else if (dir_type === \"none\") {\n attr_list.push({\n attr: attr_list[idx.dir].attr,\n name: \"arrows\",\n value: \"\"\n });\n idx.arrows.to = attr_list.length - 1;\n } else {\n throw newSyntaxError('Invalid dir type \"' + dir_type + '\"');\n }\n }\n var from_type;\n var to_type;\n // update 'arrows' attribute from 'dir'.\n if (dir_type === \"both\") {\n // both of shapes of 'from' and 'to' are given\n if (idx.arrows.to && idx.arrows.from) {\n to_type = attr_list[idx.arrows.to].value.to.type;\n from_type = attr_list[idx.arrows.from].value.from.type;\n attr_list[idx.arrows.to] = {\n attr: attr_list[idx.arrows.to].attr,\n name: attr_list[idx.arrows.to].name,\n value: {\n to: {\n enabled: true,\n type: to_type\n },\n from: {\n enabled: true,\n type: from_type\n }\n }\n };\n _spliceInstanceProperty(attr_list).call(attr_list, idx.arrows.from, 1);\n\n // shape of 'to' is assigned and use default to 'from'\n } else if (idx.arrows.to) {\n to_type = attr_list[idx.arrows.to].value.to.type;\n from_type = \"arrow\";\n attr_list[idx.arrows.to] = {\n attr: attr_list[idx.arrows.to].attr,\n name: attr_list[idx.arrows.to].name,\n value: {\n to: {\n enabled: true,\n type: to_type\n },\n from: {\n enabled: true,\n type: from_type\n }\n }\n };\n\n // only shape of 'from' is assigned and use default for 'to'\n } else if (idx.arrows.from) {\n to_type = \"arrow\";\n from_type = attr_list[idx.arrows.from].value.from.type;\n attr_list[idx.arrows.from] = {\n attr: attr_list[idx.arrows.from].attr,\n name: attr_list[idx.arrows.from].name,\n value: {\n to: {\n enabled: true,\n type: to_type\n },\n from: {\n enabled: true,\n type: from_type\n }\n }\n };\n }\n } else if (dir_type === \"back\") {\n // given both of shapes, but use only 'from'\n if (idx.arrows.to && idx.arrows.from) {\n to_type = \"\";\n from_type = attr_list[idx.arrows.from].value.from.type;\n attr_list[idx.arrows.from] = {\n attr: attr_list[idx.arrows.from].attr,\n name: attr_list[idx.arrows.from].name,\n value: {\n to: {\n enabled: true,\n type: to_type\n },\n from: {\n enabled: true,\n type: from_type\n }\n }\n };\n\n // given shape of 'to', but does not use it\n } else if (idx.arrows.to) {\n to_type = \"\";\n from_type = \"arrow\";\n idx.arrows.from = idx.arrows.to;\n attr_list[idx.arrows.from] = {\n attr: attr_list[idx.arrows.from].attr,\n name: attr_list[idx.arrows.from].name,\n value: {\n to: {\n enabled: true,\n type: to_type\n },\n from: {\n enabled: true,\n type: from_type\n }\n }\n };\n\n // assign given 'from' shape\n } else if (idx.arrows.from) {\n to_type = \"\";\n from_type = attr_list[idx.arrows.from].value.from.type;\n attr_list[idx.arrows.to] = {\n attr: attr_list[idx.arrows.from].attr,\n name: attr_list[idx.arrows.from].name,\n value: {\n to: {\n enabled: true,\n type: to_type\n },\n from: {\n enabled: true,\n type: from_type\n }\n }\n };\n }\n attr_list[idx.arrows.from] = {\n attr: attr_list[idx.arrows.from].attr,\n name: attr_list[idx.arrows.from].name,\n value: {\n from: {\n enabled: true,\n type: attr_list[idx.arrows.from].value.from.type\n }\n }\n };\n } else if (dir_type === \"none\") {\n var idx_arrow;\n if (idx.arrows.to) {\n idx_arrow = idx.arrows.to;\n } else {\n idx_arrow = idx.arrows.from;\n }\n attr_list[idx_arrow] = {\n attr: attr_list[idx_arrow].attr,\n name: attr_list[idx_arrow].name,\n value: \"\"\n };\n } else if (dir_type === \"forward\") {\n // given both of shapes, but use only 'to'\n if (idx.arrows.to && idx.arrows.from) {\n to_type = attr_list[idx.arrows.to].value.to.type;\n from_type = \"\";\n attr_list[idx.arrows.to] = {\n attr: attr_list[idx.arrows.to].attr,\n name: attr_list[idx.arrows.to].name,\n value: {\n to: {\n enabled: true,\n type: to_type\n },\n from: {\n enabled: true,\n type: from_type\n }\n }\n };\n\n // assign given 'to' shape\n } else if (idx.arrows.to) {\n to_type = attr_list[idx.arrows.to].value.to.type;\n from_type = \"\";\n attr_list[idx.arrows.to] = {\n attr: attr_list[idx.arrows.to].attr,\n name: attr_list[idx.arrows.to].name,\n value: {\n to: {\n enabled: true,\n type: to_type\n },\n from: {\n enabled: true,\n type: from_type\n }\n }\n };\n\n // given shape of 'from', but does not use it\n } else if (idx.arrows.from) {\n to_type = \"arrow\";\n from_type = \"\";\n idx.arrows.to = idx.arrows.from;\n attr_list[idx.arrows.to] = {\n attr: attr_list[idx.arrows.to].attr,\n name: attr_list[idx.arrows.to].name,\n value: {\n to: {\n enabled: true,\n type: to_type\n },\n from: {\n enabled: true,\n type: from_type\n }\n }\n };\n }\n attr_list[idx.arrows.to] = {\n attr: attr_list[idx.arrows.to].attr,\n name: attr_list[idx.arrows.to].name,\n value: {\n to: {\n enabled: true,\n type: attr_list[idx.arrows.to].value.to.type\n }\n }\n };\n } else {\n throw newSyntaxError('Invalid dir type \"' + dir_type + '\"');\n }\n\n // remove 'dir' attribute no need anymore\n _spliceInstanceProperty(attr_list).call(attr_list, idx.dir, 1);\n }\n\n // parse 'penwidth'\n var nof_attr_list;\n if (_includesInstanceProperty(attr_names).call(attr_names, \"penwidth\")) {\n var tmp_attr_list = [];\n nof_attr_list = attr_list.length;\n for (i = 0; i < nof_attr_list; i++) {\n // exclude 'width' from attr_list if 'penwidth' exists\n if (attr_list[i].name !== \"width\") {\n if (attr_list[i].name === \"penwidth\") {\n attr_list[i].name = \"width\";\n }\n tmp_attr_list.push(attr_list[i]);\n }\n }\n attr_list = tmp_attr_list;\n }\n nof_attr_list = attr_list.length;\n for (i = 0; i < nof_attr_list; i++) {\n setValue(attr_list[i].attr, attr_list[i].name, attr_list[i].value);\n }\n return attr;\n}\n\n/**\n * Create a syntax error with extra information on current token and index.\n *\n * @param {string} message\n * @returns {SyntaxError} err\n */\nfunction newSyntaxError(message) {\n return new SyntaxError(message + ', got \"' + chop(token, 30) + '\" (char ' + index$1 + \")\");\n}\n\n/**\n * Chop off text after a maximum length\n *\n * @param {string} text\n * @param {number} maxLength\n * @returns {string}\n */\nfunction chop(text, maxLength) {\n return text.length <= maxLength ? text : text.substr(0, 27) + \"...\";\n}\n\n/**\n * Execute a function fn for each pair of elements in two arrays\n *\n * @param {Array | *} array1\n * @param {Array | *} array2\n * @param {Function} fn\n */\nfunction forEach2(array1, array2, fn) {\n if (_Array$isArray(array1)) {\n _forEachInstanceProperty(array1).call(array1, function (elem1) {\n if (_Array$isArray(array2)) {\n _forEachInstanceProperty(array2).call(array2, function (elem2) {\n fn(elem1, elem2);\n });\n } else {\n fn(elem1, array2);\n }\n });\n } else {\n if (_Array$isArray(array2)) {\n _forEachInstanceProperty(array2).call(array2, function (elem2) {\n fn(array1, elem2);\n });\n } else {\n fn(array1, array2);\n }\n }\n}\n\n/**\n * Set a nested property on an object\n * When nested objects are missing, they will be created.\n * For example setProp({}, 'font.color', 'red') will return {font: {color: 'red'}}\n *\n * @param {object} object\n * @param {string} path A dot separated string like 'font.color'\n * @param {*} value Value for the property\n * @returns {object} Returns the original object, allows for chaining.\n */\nfunction setProp(object, path, value) {\n var names = path.split(\".\");\n var prop = names.pop();\n\n // traverse over the nested objects\n var obj = object;\n for (var i = 0; i < names.length; i++) {\n var name = names[i];\n if (!(name in obj)) {\n obj[name] = {};\n }\n obj = obj[name];\n }\n\n // set the property value\n obj[prop] = value;\n return object;\n}\n\n/**\n * Convert an object with DOT attributes to their vis.js equivalents.\n *\n * @param {object} attr Object with DOT attributes\n * @param {object} mapping\n * @returns {object} Returns an object with vis.js attributes\n */\nfunction convertAttr(attr, mapping) {\n var converted = {};\n for (var prop in attr) {\n if (attr.hasOwnProperty(prop)) {\n var visProp = mapping[prop];\n if (_Array$isArray(visProp)) {\n _forEachInstanceProperty(visProp).call(visProp, function (visPropI) {\n setProp(converted, visPropI, attr[prop]);\n });\n } else if (typeof visProp === \"string\") {\n setProp(converted, visProp, attr[prop]);\n } else {\n setProp(converted, prop, attr[prop]);\n }\n }\n }\n return converted;\n}\n\n/**\n * Convert a string containing a graph in DOT language into a map containing\n * with nodes and edges in the format of graph.\n *\n * @param {string} data Text containing a graph in DOT-notation\n * @returns {object} graphData\n */\nfunction DOTToGraph(data) {\n // parse the DOT file\n var dotData = parseDOT(data);\n var graphData = {\n nodes: [],\n edges: [],\n options: {}\n };\n\n // copy the nodes\n if (dotData.nodes) {\n var _context2;\n _forEachInstanceProperty(_context2 = dotData.nodes).call(_context2, function (dotNode) {\n var graphNode = {\n id: dotNode.id,\n label: String(dotNode.label || dotNode.id)\n };\n merge$1(graphNode, convertAttr(dotNode.attr, NODE_ATTR_MAPPING));\n if (graphNode.image) {\n graphNode.shape = \"image\";\n }\n graphData.nodes.push(graphNode);\n });\n }\n\n // copy the edges\n if (dotData.edges) {\n var _context3;\n /**\n * Convert an edge in DOT format to an edge with VisGraph format\n *\n * @param {object} dotEdge\n * @returns {object} graphEdge\n */\n var convertEdge = function convertEdge(dotEdge) {\n var graphEdge = {\n from: dotEdge.from,\n to: dotEdge.to\n };\n merge$1(graphEdge, convertAttr(dotEdge.attr, EDGE_ATTR_MAPPING));\n\n // Add arrows attribute to default styled arrow.\n // The reason why default style is not added in parseAttributeList() is\n // because only default is cleared before here.\n if (graphEdge.arrows == null && dotEdge.type === \"->\") {\n graphEdge.arrows = \"to\";\n }\n return graphEdge;\n };\n _forEachInstanceProperty(_context3 = dotData.edges).call(_context3, function (dotEdge) {\n var from, to;\n if (dotEdge.from instanceof Object) {\n from = dotEdge.from.nodes;\n } else {\n from = {\n id: dotEdge.from\n };\n }\n if (dotEdge.to instanceof Object) {\n to = dotEdge.to.nodes;\n } else {\n to = {\n id: dotEdge.to\n };\n }\n if (dotEdge.from instanceof Object && dotEdge.from.edges) {\n var _context4;\n _forEachInstanceProperty(_context4 = dotEdge.from.edges).call(_context4, function (subEdge) {\n var graphEdge = convertEdge(subEdge);\n graphData.edges.push(graphEdge);\n });\n }\n forEach2(from, to, function (from, to) {\n var subEdge = createEdge(graphData, from.id, to.id, dotEdge.type, dotEdge.attr);\n var graphEdge = convertEdge(subEdge);\n graphData.edges.push(graphEdge);\n });\n if (dotEdge.to instanceof Object && dotEdge.to.edges) {\n var _context5;\n _forEachInstanceProperty(_context5 = dotEdge.to.edges).call(_context5, function (subEdge) {\n var graphEdge = convertEdge(subEdge);\n graphData.edges.push(graphEdge);\n });\n }\n });\n }\n\n // copy the options\n if (dotData.attr) {\n graphData.options = dotData.attr;\n }\n return graphData;\n}\n\n/* eslint-enable no-var */\n/* eslint-enable no-unused-vars */\n/* eslint-enable no-prototype-builtins */\n\nvar dotparser = /*#__PURE__*/Object.freeze({\n\t__proto__: null,\n\tDOTToGraph: DOTToGraph,\n\tparseDOT: parseDOT\n});\n\n/**\r\n * Convert Gephi to Vis.\r\n *\r\n * @param gephiJSON - The parsed JSON data in Gephi format.\r\n * @param optionsObj - Additional options.\r\n * @returns The converted data ready to be used in Vis.\r\n */\nfunction parseGephi(gephiJSON, optionsObj) {\n var _context;\n var options = {\n edges: {\n inheritColor: false\n },\n nodes: {\n fixed: false,\n parseColor: false\n }\n };\n if (optionsObj != null) {\n if (optionsObj.fixed != null) {\n options.nodes.fixed = optionsObj.fixed;\n }\n if (optionsObj.parseColor != null) {\n options.nodes.parseColor = optionsObj.parseColor;\n }\n if (optionsObj.inheritColor != null) {\n options.edges.inheritColor = optionsObj.inheritColor;\n }\n }\n var gEdges = gephiJSON.edges;\n var vEdges = _mapInstanceProperty(gEdges).call(gEdges, function (gEdge) {\n var vEdge = {\n from: gEdge.source,\n id: gEdge.id,\n to: gEdge.target\n };\n if (gEdge.attributes != null) {\n vEdge.attributes = gEdge.attributes;\n }\n if (gEdge.label != null) {\n vEdge.label = gEdge.label;\n }\n if (gEdge.attributes != null && gEdge.attributes.title != null) {\n vEdge.title = gEdge.attributes.title;\n }\n if (gEdge.type === \"Directed\") {\n vEdge.arrows = \"to\";\n }\n // edge['value'] = gEdge.attributes != null ? gEdge.attributes.Weight : undefined;\n // edge['width'] = edge['value'] != null ? undefined : edgegEdge.size;\n if (gEdge.color && options.edges.inheritColor === false) {\n vEdge.color = gEdge.color;\n }\n return vEdge;\n });\n var vNodes = _mapInstanceProperty(_context = gephiJSON.nodes).call(_context, function (gNode) {\n var vNode = {\n id: gNode.id,\n fixed: options.nodes.fixed && gNode.x != null && gNode.y != null\n };\n if (gNode.attributes != null) {\n vNode.attributes = gNode.attributes;\n }\n if (gNode.label != null) {\n vNode.label = gNode.label;\n }\n if (gNode.size != null) {\n vNode.size = gNode.size;\n }\n if (gNode.attributes != null && gNode.attributes.title != null) {\n vNode.title = gNode.attributes.title;\n }\n if (gNode.title != null) {\n vNode.title = gNode.title;\n }\n if (gNode.x != null) {\n vNode.x = gNode.x;\n }\n if (gNode.y != null) {\n vNode.y = gNode.y;\n }\n if (gNode.color != null) {\n if (options.nodes.parseColor === true) {\n vNode.color = gNode.color;\n } else {\n vNode.color = {\n background: gNode.color,\n border: gNode.color,\n highlight: {\n background: gNode.color,\n border: gNode.color\n },\n hover: {\n background: gNode.color,\n border: gNode.color\n }\n };\n }\n }\n return vNode;\n });\n return {\n nodes: vNodes,\n edges: vEdges\n };\n}\n\nvar gephiParser = /*#__PURE__*/Object.freeze({\n\t__proto__: null,\n\tparseGephi: parseGephi\n});\n\n// English\nvar en = {\n addDescription: \"Click in an empty space to place a new node.\",\n addEdge: \"Add Edge\",\n addNode: \"Add Node\",\n back: \"Back\",\n close: \"Close\",\n createEdgeError: \"Cannot link edges to a cluster.\",\n del: \"Delete selected\",\n deleteClusterError: \"Clusters cannot be deleted.\",\n edgeDescription: \"Click on a node and drag the edge to another node to connect them.\",\n edit: \"Edit\",\n editClusterError: \"Clusters cannot be edited.\",\n editEdge: \"Edit Edge\",\n editEdgeDescription: \"Click on the control points and drag them to a node to connect to it.\",\n editNode: \"Edit Node\"\n};\n// German\nvar de = {\n addDescription: \"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.\",\n addEdge: \"Kante hinzuf\\xFCgen\",\n addNode: \"Knoten hinzuf\\xFCgen\",\n back: \"Zur\\xFCck\",\n close: \"Schließen\",\n createEdgeError: \"Es ist nicht m\\xF6glich, Kanten mit Clustern zu verbinden.\",\n del: \"L\\xF6sche Auswahl\",\n deleteClusterError: \"Cluster k\\xF6nnen nicht gel\\xF6scht werden.\",\n edgeDescription: \"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.\",\n edit: \"Editieren\",\n editClusterError: \"Cluster k\\xF6nnen nicht editiert werden.\",\n editEdge: \"Kante editieren\",\n editEdgeDescription: \"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.\",\n editNode: \"Knoten editieren\"\n};\n// Spanish\nvar es = {\n addDescription: \"Haga clic en un lugar vac\\xEDo para colocar un nuevo nodo.\",\n addEdge: \"A\\xF1adir arista\",\n addNode: \"A\\xF1adir nodo\",\n back: \"Atr\\xE1s\",\n close: \"Cerrar\",\n createEdgeError: \"No se puede conectar una arista a un grupo.\",\n del: \"Eliminar selecci\\xF3n\",\n deleteClusterError: \"No es posible eliminar grupos.\",\n edgeDescription: \"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.\",\n edit: \"Editar\",\n editClusterError: \"No es posible editar grupos.\",\n editEdge: \"Editar arista\",\n editEdgeDescription: \"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.\",\n editNode: \"Editar nodo\"\n};\n//Italiano\nvar it = {\n addDescription: \"Clicca per aggiungere un nuovo nodo\",\n addEdge: \"Aggiungi un vertice\",\n addNode: \"Aggiungi un nodo\",\n back: \"Indietro\",\n close: \"Chiudere\",\n createEdgeError: \"Non si possono collegare vertici ad un cluster\",\n del: \"Cancella la selezione\",\n deleteClusterError: \"I cluster non possono essere cancellati\",\n edgeDescription: \"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.\",\n edit: \"Modifica\",\n editClusterError: \"I clusters non possono essere modificati.\",\n editEdge: \"Modifica il vertice\",\n editEdgeDescription: \"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.\",\n editNode: \"Modifica il nodo\"\n};\n// Dutch\nvar nl = {\n addDescription: \"Klik op een leeg gebied om een nieuwe node te maken.\",\n addEdge: \"Link toevoegen\",\n addNode: \"Node toevoegen\",\n back: \"Terug\",\n close: \"Sluiten\",\n createEdgeError: \"Kan geen link maken naar een cluster.\",\n del: \"Selectie verwijderen\",\n deleteClusterError: \"Clusters kunnen niet worden verwijderd.\",\n edgeDescription: \"Klik op een node en sleep de link naar een andere node om ze te verbinden.\",\n edit: \"Wijzigen\",\n editClusterError: \"Clusters kunnen niet worden aangepast.\",\n editEdge: \"Link wijzigen\",\n editEdgeDescription: \"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.\",\n editNode: \"Node wijzigen\"\n};\n// Portuguese Brazil\nvar pt = {\n addDescription: \"Clique em um espaço em branco para adicionar um novo nó\",\n addEdge: \"Adicionar aresta\",\n addNode: \"Adicionar nó\",\n back: \"Voltar\",\n close: \"Fechar\",\n createEdgeError: \"Não foi possível linkar arestas a um cluster.\",\n del: \"Remover selecionado\",\n deleteClusterError: \"Clusters não puderam ser removidos.\",\n edgeDescription: \"Clique em um nó e arraste a aresta até outro nó para conectá-los\",\n edit: \"Editar\",\n editClusterError: \"Clusters não puderam ser editados.\",\n editEdge: \"Editar aresta\",\n editEdgeDescription: \"Clique nos pontos de controle e os arraste para um nó para conectá-los\",\n editNode: \"Editar nó\"\n};\n// Russian\nvar ru = {\n addDescription: \"Кликните в свободное место, чтобы добавить новый узел.\",\n addEdge: \"Добавить ребро\",\n addNode: \"Добавить узел\",\n back: \"Назад\",\n close: \"Закрывать\",\n createEdgeError: \"Невозможно соединить ребра в кластер.\",\n del: \"Удалить выбранное\",\n deleteClusterError: \"Кластеры не могут быть удалены\",\n edgeDescription: \"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.\",\n edit: \"Редактировать\",\n editClusterError: \"Кластеры недоступны для редактирования.\",\n editEdge: \"Редактировать ребро\",\n editEdgeDescription: \"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.\",\n editNode: \"Редактировать узел\"\n};\n// Chinese\nvar cn = {\n addDescription: \"单击空白处放置新节点。\",\n addEdge: \"添加连接线\",\n addNode: \"添加节点\",\n back: \"返回\",\n close: \"關閉\",\n createEdgeError: \"无法将连接线连接到群集。\",\n del: \"删除选定\",\n deleteClusterError: \"无法删除群集。\",\n edgeDescription: \"单击某个节点并将该连接线拖动到另一个节点以连接它们。\",\n edit: \"编辑\",\n editClusterError: \"无法编辑群集。\",\n editEdge: \"编辑连接线\",\n editEdgeDescription: \"单击控制节点并将它们拖到节点上连接。\",\n editNode: \"编辑节点\"\n};\n// Ukrainian\nvar uk = {\n addDescription: \"Kлікніть на вільне місце, щоб додати новий вузол.\",\n addEdge: \"Додати край\",\n addNode: \"Додати вузол\",\n back: \"Назад\",\n close: \"Закрити\",\n createEdgeError: \"Не можливо об'єднати краї в групу.\",\n del: \"Видалити обране\",\n deleteClusterError: \"Групи не можуть бути видалені.\",\n edgeDescription: \"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.\",\n edit: \"Редагувати\",\n editClusterError: \"Групи недоступні для редагування.\",\n editEdge: \"Редагувати край\",\n editEdgeDescription: \"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.\",\n editNode: \"Редагувати вузол\"\n};\n// French\nvar fr = {\n addDescription: \"Cliquez dans un endroit vide pour placer un nœud.\",\n addEdge: \"Ajouter un lien\",\n addNode: \"Ajouter un nœud\",\n back: \"Retour\",\n close: \"Fermer\",\n createEdgeError: \"Impossible de créer un lien vers un cluster.\",\n del: \"Effacer la sélection\",\n deleteClusterError: \"Les clusters ne peuvent pas être effacés.\",\n edgeDescription: \"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.\",\n edit: \"Éditer\",\n editClusterError: \"Les clusters ne peuvent pas être édités.\",\n editEdge: \"Éditer le lien\",\n editEdgeDescription: \"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.\",\n editNode: \"Éditer le nœud\"\n};\n// Czech\nvar cs = {\n addDescription: \"Kluknutím do prázdného prostoru můžete přidat nový vrchol.\",\n addEdge: \"Přidat hranu\",\n addNode: \"Přidat vrchol\",\n back: \"Zpět\",\n close: \"Zavřít\",\n createEdgeError: \"Nelze připojit hranu ke shluku.\",\n del: \"Smazat výběr\",\n deleteClusterError: \"Nelze mazat shluky.\",\n edgeDescription: \"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.\",\n edit: \"Upravit\",\n editClusterError: \"Nelze upravovat shluky.\",\n editEdge: \"Upravit hranu\",\n editEdgeDescription: \"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.\",\n editNode: \"Upravit vrchol\"\n};\n\nvar locales = /*#__PURE__*/Object.freeze({\n\t__proto__: null,\n\tcn: cn,\n\tcs: cs,\n\tde: de,\n\ten: en,\n\tes: es,\n\tfr: fr,\n\tit: it,\n\tnl: nl,\n\tpt: pt,\n\tru: ru,\n\tuk: uk\n});\n\n/**\r\n * Normalizes language code into the format used internally.\r\n *\r\n * @param locales - All the available locales.\r\n * @param rawCode - The original code as supplied by the user.\r\n * @returns Language code in the format language-COUNTRY or language, eventually\r\n * fallbacks to en.\r\n */\nfunction normalizeLanguageCode(locales, rawCode) {\n try {\n var _rawCode$split = rawCode.split(/[-_ /]/, 2),\n _rawCode$split2 = _slicedToArray(_rawCode$split, 2),\n rawLanguage = _rawCode$split2[0],\n rawCountry = _rawCode$split2[1];\n var language = rawLanguage != null ? rawLanguage.toLowerCase() : null;\n var country = rawCountry != null ? rawCountry.toUpperCase() : null;\n if (language && country) {\n var code = language + \"-\" + country;\n if (Object.prototype.hasOwnProperty.call(locales, code)) {\n return code;\n } else {\n var _context;\n console.warn(_concatInstanceProperty(_context = \"Unknown variant \".concat(country, \" of language \")).call(_context, language, \".\"));\n }\n }\n if (language) {\n var _code = language;\n if (Object.prototype.hasOwnProperty.call(locales, _code)) {\n return _code;\n } else {\n console.warn(\"Unknown language \".concat(language));\n }\n }\n console.warn(\"Unknown locale \".concat(rawCode, \", falling back to English.\"));\n return \"en\";\n } catch (error) {\n console.error(error);\n console.warn(\"Unexpected error while normalizing locale \".concat(rawCode, \", falling back to English.\"));\n return \"en\";\n }\n}\n\n/**\n * Associates a canvas to a given image, containing a number of renderings\n * of the image at various sizes.\n *\n * This technique is known as 'mipmapping'.\n *\n * NOTE: Images can also be of type 'data:svg+xml`. This code also works\n * for svg, but the mipmapping may not be necessary.\n *\n * @param {Image} image\n */\nvar CachedImage = /*#__PURE__*/function () {\n /**\n * @ignore\n */\n function CachedImage() {\n _classCallCheck(this, CachedImage);\n this.NUM_ITERATIONS = 4; // Number of items in the coordinates array\n\n this.image = new Image();\n this.canvas = document.createElement(\"canvas\");\n }\n\n /**\n * Called when the image has been successfully loaded.\n */\n _createClass(CachedImage, [{\n key: \"init\",\n value: function init() {\n if (this.initialized()) return;\n this.src = this.image.src; // For same interface with Image\n var w = this.image.width;\n var h = this.image.height;\n\n // Ease external access\n this.width = w;\n this.height = h;\n var h2 = Math.floor(h / 2);\n var h4 = Math.floor(h / 4);\n var h8 = Math.floor(h / 8);\n var h16 = Math.floor(h / 16);\n var w2 = Math.floor(w / 2);\n var w4 = Math.floor(w / 4);\n var w8 = Math.floor(w / 8);\n var w16 = Math.floor(w / 16);\n\n // Make canvas as small as possible\n this.canvas.width = 3 * w4;\n this.canvas.height = h2;\n\n // Coordinates and sizes of images contained in the canvas\n // Values per row: [top x, left y, width, height]\n\n this.coordinates = [[0, 0, w2, h2], [w2, 0, w4, h4], [w2, h4, w8, h8], [5 * w8, h4, w16, h16]];\n this._fillMipMap();\n }\n\n /**\n * @returns {boolean} true if init() has been called, false otherwise.\n */\n }, {\n key: \"initialized\",\n value: function initialized() {\n return this.coordinates !== undefined;\n }\n\n /**\n * Redraw main image in various sizes to the context.\n *\n * The rationale behind this is to reduce artefacts due to interpolation\n * at differing zoom levels.\n *\n * Source: http://stackoverflow.com/q/18761404/1223531\n *\n * This methods takes the resizing out of the drawing loop, in order to\n * reduce performance overhead.\n *\n * TODO: The code assumes that a 2D context can always be gotten. This is\n * not necessarily true! OTOH, if not true then usage of this class\n * is senseless.\n *\n * @private\n */\n }, {\n key: \"_fillMipMap\",\n value: function _fillMipMap() {\n var ctx = this.canvas.getContext(\"2d\");\n\n // First zoom-level comes from the image\n var to = this.coordinates[0];\n ctx.drawImage(this.image, to[0], to[1], to[2], to[3]);\n\n // The rest are copy actions internal to the canvas/context\n for (var iterations = 1; iterations < this.NUM_ITERATIONS; iterations++) {\n var from = this.coordinates[iterations - 1];\n var _to = this.coordinates[iterations];\n ctx.drawImage(this.canvas, from[0], from[1], from[2], from[3], _to[0], _to[1], _to[2], _to[3]);\n }\n }\n\n /**\n * Draw the image, using the mipmap if necessary.\n *\n * MipMap is only used if param factor > 2; otherwise, original bitmap\n * is resized. This is also used to skip mipmap usage, e.g. by setting factor = 1\n *\n * Credits to 'Alex de Mulder' for original implementation.\n *\n * @param {CanvasRenderingContext2D} ctx context on which to draw zoomed image\n * @param {Float} factor scale factor at which to draw\n * @param {number} left\n * @param {number} top\n * @param {number} width\n * @param {number} height\n */\n }, {\n key: \"drawImageAtPosition\",\n value: function drawImageAtPosition(ctx, factor, left, top, width, height) {\n if (!this.initialized()) return; //can't draw image yet not intialized\n\n if (factor > 2) {\n // Determine which zoomed image to use\n factor *= 0.5;\n var iterations = 0;\n while (factor > 2 && iterations < this.NUM_ITERATIONS) {\n factor *= 0.5;\n iterations += 1;\n }\n if (iterations >= this.NUM_ITERATIONS) {\n iterations = this.NUM_ITERATIONS - 1;\n }\n //console.log(\"iterations: \" + iterations);\n\n var from = this.coordinates[iterations];\n ctx.drawImage(this.canvas, from[0], from[1], from[2], from[3], left, top, width, height);\n } else {\n // Draw image directly\n ctx.drawImage(this.image, left, top, width, height);\n }\n }\n }]);\n return CachedImage;\n}();\n\n/**\n * This callback is a callback that accepts an Image.\n *\n * @callback ImageCallback\n * @param {Image} image\n */\n\n/**\n * This class loads images and keeps them stored.\n *\n * @param {ImageCallback} callback\n */\nvar Images = /*#__PURE__*/function () {\n /**\n * @param {ImageCallback} callback\n */\n function Images(callback) {\n _classCallCheck(this, Images);\n this.images = {};\n this.imageBroken = {};\n this.callback = callback;\n }\n\n /**\n * @param {string} url The original Url that failed to load, if the broken image is successfully loaded it will be added to the cache using this Url as the key so that subsequent requests for this Url will return the broken image\n * @param {string} brokenUrl Url the broken image to try and load\n * @param {Image} imageToLoadBrokenUrlOn The image object\n */\n _createClass(Images, [{\n key: \"_tryloadBrokenUrl\",\n value: function _tryloadBrokenUrl(url, brokenUrl, imageToLoadBrokenUrlOn) {\n //If these parameters aren't specified then exit the function because nothing constructive can be done\n if (url === undefined || imageToLoadBrokenUrlOn === undefined) return;\n if (brokenUrl === undefined) {\n console.warn(\"No broken url image defined\");\n return;\n }\n\n //Clear the old subscription to the error event and put a new in place that only handle errors in loading the brokenImageUrl\n imageToLoadBrokenUrlOn.image.onerror = function () {\n console.error(\"Could not load brokenImage:\", brokenUrl);\n // cache item will contain empty image, this should be OK for default\n };\n\n //Set the source of the image to the brokenUrl, this is actually what kicks off the loading of the broken image\n imageToLoadBrokenUrlOn.image.src = brokenUrl;\n }\n\n /**\n *\n * @param {vis.Image} imageToRedrawWith\n * @private\n */\n }, {\n key: \"_redrawWithImage\",\n value: function _redrawWithImage(imageToRedrawWith) {\n if (this.callback) {\n this.callback(imageToRedrawWith);\n }\n }\n\n /**\n * @param {string} url Url of the image\n * @param {string} brokenUrl Url of an image to use if the url image is not found\n * @returns {Image} img The image object\n */\n }, {\n key: \"load\",\n value: function load(url, brokenUrl) {\n var _this = this;\n //Try and get the image from the cache, if successful then return the cached image\n var cachedImage = this.images[url];\n if (cachedImage) return cachedImage;\n\n //Create a new image\n var img = new CachedImage();\n\n // Need to add to cache here, otherwise final return will spawn different copies of the same image,\n // Also, there will be multiple loads of the same image.\n this.images[url] = img;\n\n //Subscribe to the event that is raised if the image loads successfully\n img.image.onload = function () {\n // Properly init the cached item and then request a redraw\n _this._fixImageCoordinates(img.image);\n img.init();\n _this._redrawWithImage(img);\n };\n\n //Subscribe to the event that is raised if the image fails to load\n img.image.onerror = function () {\n console.error(\"Could not load image:\", url);\n //Try and load the image specified by the brokenUrl using\n _this._tryloadBrokenUrl(url, brokenUrl, img);\n };\n\n //Set the source of the image to the url, this is what actually kicks off the loading of the image\n img.image.src = url;\n\n //Return the new image\n return img;\n }\n\n /**\n * IE11 fix -- thanks dponch!\n *\n * Local helper function\n *\n * @param {vis.Image} imageToCache\n * @private\n */\n }, {\n key: \"_fixImageCoordinates\",\n value: function _fixImageCoordinates(imageToCache) {\n if (imageToCache.width === 0) {\n document.body.appendChild(imageToCache);\n imageToCache.width = imageToCache.offsetWidth;\n imageToCache.height = imageToCache.offsetHeight;\n document.body.removeChild(imageToCache);\n }\n }\n }]);\n return Images;\n}();\n\nvar mapExports = {};\nvar map$2 = {\n get exports(){ return mapExports; },\n set exports(v){ mapExports = v; },\n};\n\nvar internalMetadataExports = {};\nvar internalMetadata = {\n get exports(){ return internalMetadataExports; },\n set exports(v){ internalMetadataExports = v; },\n};\n\n// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it\nvar fails$b = fails$z;\n\nvar arrayBufferNonExtensible = fails$b(function () {\n if (typeof ArrayBuffer == 'function') {\n var buffer = new ArrayBuffer(8);\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe\n if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });\n }\n});\n\nvar fails$a = fails$z;\nvar isObject$9 = isObject$m;\nvar classof$4 = classofRaw$2;\nvar ARRAY_BUFFER_NON_EXTENSIBLE = arrayBufferNonExtensible;\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES$1 = fails$a(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\nvar objectIsExtensible = (FAILS_ON_PRIMITIVES$1 || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject$9(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$4(it) == 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n} : $isExtensible;\n\nvar fails$9 = fails$z;\n\nvar freezing = !fails$9(function () {\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n\nvar $$p = _export;\nvar uncurryThis$5 = functionUncurryThis;\nvar hiddenKeys = hiddenKeys$6;\nvar isObject$8 = isObject$m;\nvar hasOwn$7 = hasOwnProperty_1;\nvar defineProperty$1 = objectDefineProperty.f;\nvar getOwnPropertyNamesModule = objectGetOwnPropertyNames;\nvar getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal;\nvar isExtensible$1 = objectIsExtensible;\nvar uid = uid$4;\nvar FREEZING$1 = freezing;\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id$1 = 0;\n\nvar setMetadata = function (it) {\n defineProperty$1(it, METADATA, { value: {\n objectID: 'O' + id$1++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey$1 = function (it, create) {\n // return a primitive with prefix\n if (!isObject$8(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn$7(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible$1(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData$1 = function (it, create) {\n if (!hasOwn$7(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible$1(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING$1 && REQUIRED && isExtensible$1(it) && !hasOwn$7(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis$5([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $$p({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = internalMetadata.exports = {\n enable: enable,\n fastKey: fastKey$1,\n getWeakData: getWeakData$1,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n\nvar bind$a = functionBindContext;\nvar call$7 = functionCall;\nvar anObject$5 = anObject$f;\nvar tryToString$1 = tryToString$6;\nvar isArrayIteratorMethod = isArrayIteratorMethod$2;\nvar lengthOfArrayLike$4 = lengthOfArrayLike$d;\nvar isPrototypeOf$a = objectIsPrototypeOf;\nvar getIterator$6 = getIterator$8;\nvar getIteratorMethod = getIteratorMethod$9;\nvar iteratorClose = iteratorClose$2;\n\nvar $TypeError$4 = TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nvar iterate$8 = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_RECORD = !!(options && options.IS_RECORD);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind$a(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject$5(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_RECORD) {\n iterator = iterable.iterator;\n } else if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw $TypeError$4(tryToString$1(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike$4(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf$a(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator$6(iterable, iterFn);\n }\n\n next = IS_RECORD ? iterable.next : iterator.next;\n while (!(step = call$7(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf$a(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n\nvar isPrototypeOf$9 = objectIsPrototypeOf;\n\nvar $TypeError$3 = TypeError;\n\nvar anInstance$4 = function (it, Prototype) {\n if (isPrototypeOf$9(Prototype, it)) return it;\n throw $TypeError$3('Incorrect invocation');\n};\n\nvar $$o = _export;\nvar global$9 = global$q;\nvar InternalMetadataModule$1 = internalMetadataExports;\nvar fails$8 = fails$z;\nvar createNonEnumerableProperty$3 = createNonEnumerableProperty$9;\nvar iterate$7 = iterate$8;\nvar anInstance$3 = anInstance$4;\nvar isCallable$4 = isCallable$m;\nvar isObject$7 = isObject$m;\nvar setToStringTag$1 = setToStringTag$7;\nvar defineProperty = objectDefineProperty.f;\nvar forEach$4 = arrayIteration.forEach;\nvar DESCRIPTORS$2 = descriptors;\nvar InternalStateModule$3 = internalState;\n\nvar setInternalState$3 = InternalStateModule$3.set;\nvar internalStateGetterFor$2 = InternalStateModule$3.getterFor;\n\nvar collection$3 = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global$9[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var exported = {};\n var Constructor;\n\n if (!DESCRIPTORS$2 || !isCallable$4(NativeConstructor)\n || !(IS_WEAK || NativePrototype.forEach && !fails$8(function () { new NativeConstructor().entries().next(); }))\n ) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule$1.enable();\n } else {\n Constructor = wrapper(function (target, iterable) {\n setInternalState$3(anInstance$3(target, Prototype), {\n type: CONSTRUCTOR_NAME,\n collection: new NativeConstructor()\n });\n if (iterable != undefined) iterate$7(iterable, target[ADDER], { that: target, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor$2(CONSTRUCTOR_NAME);\n\n forEach$4(['add', 'clear', 'delete', 'forEach', 'get', 'has', 'set', 'keys', 'values', 'entries'], function (KEY) {\n var IS_ADDER = KEY == 'add' || KEY == 'set';\n if (KEY in NativePrototype && !(IS_WEAK && KEY == 'clear')) {\n createNonEnumerableProperty$3(Prototype, KEY, function (a, b) {\n var collection = getInternalState(this).collection;\n if (!IS_ADDER && IS_WEAK && !isObject$7(a)) return KEY == 'get' ? undefined : false;\n var result = collection[KEY](a === 0 ? 0 : a, b);\n return IS_ADDER ? this : result;\n });\n }\n });\n\n IS_WEAK || defineProperty(Prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).collection.size;\n }\n });\n }\n\n setToStringTag$1(Constructor, CONSTRUCTOR_NAME, false, true);\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $$o({ global: true, forced: true }, exported);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n\nvar defineBuiltIn$1 = defineBuiltIn$6;\n\nvar defineBuiltIns$3 = function (target, src, options) {\n for (var key in src) {\n if (options && options.unsafe && target[key]) target[key] = src[key];\n else defineBuiltIn$1(target, key, src[key], options);\n } return target;\n};\n\nvar getBuiltIn$4 = getBuiltIn$f;\nvar defineBuiltInAccessor$1 = defineBuiltInAccessor$3;\nvar wellKnownSymbol$3 = wellKnownSymbol$o;\nvar DESCRIPTORS$1 = descriptors;\n\nvar SPECIES$2 = wellKnownSymbol$3('species');\n\nvar setSpecies$2 = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);\n\n if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$2]) {\n defineBuiltInAccessor$1(Constructor, SPECIES$2, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n\nvar create$6 = objectCreate;\nvar defineBuiltInAccessor = defineBuiltInAccessor$3;\nvar defineBuiltIns$2 = defineBuiltIns$3;\nvar bind$9 = functionBindContext;\nvar anInstance$2 = anInstance$4;\nvar isNullOrUndefined$2 = isNullOrUndefined$6;\nvar iterate$6 = iterate$8;\nvar defineIterator = iteratorDefine;\nvar createIterResultObject = createIterResultObject$3;\nvar setSpecies$1 = setSpecies$2;\nvar DESCRIPTORS = descriptors;\nvar fastKey = internalMetadataExports.fastKey;\nvar InternalStateModule$2 = internalState;\n\nvar setInternalState$2 = InternalStateModule$2.set;\nvar internalStateGetterFor$1 = InternalStateModule$2.getterFor;\n\nvar collectionStrong$2 = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance$2(that, Prototype);\n setInternalState$2(that, {\n type: CONSTRUCTOR_NAME,\n index: create$6(null),\n first: undefined,\n last: undefined,\n size: 0\n });\n if (!DESCRIPTORS) that.size = 0;\n if (!isNullOrUndefined$2(iterable)) iterate$6(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor$1(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n var previous, index;\n // change existing entry\n if (entry) {\n entry.value = value;\n // create new entry\n } else {\n state.last = entry = {\n index: index = fastKey(key, true),\n key: key,\n value: value,\n previous: previous = state.last,\n next: undefined,\n removed: false\n };\n if (!state.first) state.first = entry;\n if (previous) previous.next = entry;\n if (DESCRIPTORS) state.size++;\n else that.size++;\n // add to index\n if (index !== 'F') state.index[index] = entry;\n } return that;\n };\n\n var getEntry = function (that, key) {\n var state = getInternalState(that);\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return state.index[index];\n // frozen object case\n for (entry = state.first; entry; entry = entry.next) {\n if (entry.key == key) return entry;\n }\n };\n\n defineBuiltIns$2(Prototype, {\n // `{ Map, Set }.prototype.clear()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.clear\n // https://tc39.es/ecma262/#sec-set.prototype.clear\n clear: function clear() {\n var that = this;\n var state = getInternalState(that);\n var data = state.index;\n var entry = state.first;\n while (entry) {\n entry.removed = true;\n if (entry.previous) entry.previous = entry.previous.next = undefined;\n delete data[entry.index];\n entry = entry.next;\n }\n state.first = state.last = undefined;\n if (DESCRIPTORS) state.size = 0;\n else that.size = 0;\n },\n // `{ Map, Set }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.delete\n // https://tc39.es/ecma262/#sec-set.prototype.delete\n 'delete': function (key) {\n var that = this;\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.next;\n var prev = entry.previous;\n delete state.index[entry.index];\n entry.removed = true;\n if (prev) prev.next = next;\n if (next) next.previous = prev;\n if (state.first == entry) state.first = next;\n if (state.last == entry) state.last = prev;\n if (DESCRIPTORS) state.size--;\n else that.size--;\n } return !!entry;\n },\n // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.foreach\n // https://tc39.es/ecma262/#sec-set.prototype.foreach\n forEach: function forEach(callbackfn /* , that = undefined */) {\n var state = getInternalState(this);\n var boundFunction = bind$9(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n defineBuiltIns$2(Prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineBuiltInAccessor(Prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).size;\n }\n });\n return Constructor;\n },\n setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor$1(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor$1(ITERATOR_NAME);\n // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\n defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState$2(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n // return step by kind\n if (kind == 'keys') return createIterResultObject(entry.key, false);\n if (kind == 'values') return createIterResultObject(entry.value, false);\n return createIterResultObject([entry.key, entry.value], false);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\n setSpecies$1(CONSTRUCTOR_NAME);\n }\n};\n\nvar collection$2 = collection$3;\nvar collectionStrong$1 = collectionStrong$2;\n\n// `Map` constructor\n// https://tc39.es/ecma262/#sec-map-objects\ncollection$2('Map', function (init) {\n return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong$1);\n\nvar path$c = path$z;\n\nvar map$1 = path$c.Map;\n\nvar parent$E = map$1;\n\n\nvar map = parent$E;\n\n(function (module) {\n\tmodule.exports = map;\n} (map$2));\n\nvar _Map = /*@__PURE__*/getDefaultExportFromCjs(mapExports);\n\n/**\n * This class can store groups and options specific for groups.\n */\nvar Groups = /*#__PURE__*/function () {\n /**\n * @ignore\n */\n function Groups() {\n _classCallCheck(this, Groups);\n this.clear();\n this._defaultIndex = 0;\n this._groupIndex = 0;\n this._defaultGroups = [{\n border: \"#2B7CE9\",\n background: \"#97C2FC\",\n highlight: {\n border: \"#2B7CE9\",\n background: \"#D2E5FF\"\n },\n hover: {\n border: \"#2B7CE9\",\n background: \"#D2E5FF\"\n }\n },\n // 0: blue\n {\n border: \"#FFA500\",\n background: \"#FFFF00\",\n highlight: {\n border: \"#FFA500\",\n background: \"#FFFFA3\"\n },\n hover: {\n border: \"#FFA500\",\n background: \"#FFFFA3\"\n }\n },\n // 1: yellow\n {\n border: \"#FA0A10\",\n background: \"#FB7E81\",\n highlight: {\n border: \"#FA0A10\",\n background: \"#FFAFB1\"\n },\n hover: {\n border: \"#FA0A10\",\n background: \"#FFAFB1\"\n }\n },\n // 2: red\n {\n border: \"#41A906\",\n background: \"#7BE141\",\n highlight: {\n border: \"#41A906\",\n background: \"#A1EC76\"\n },\n hover: {\n border: \"#41A906\",\n background: \"#A1EC76\"\n }\n },\n // 3: green\n {\n border: \"#E129F0\",\n background: \"#EB7DF4\",\n highlight: {\n border: \"#E129F0\",\n background: \"#F0B3F5\"\n },\n hover: {\n border: \"#E129F0\",\n background: \"#F0B3F5\"\n }\n },\n // 4: magenta\n {\n border: \"#7C29F0\",\n background: \"#AD85E4\",\n highlight: {\n border: \"#7C29F0\",\n background: \"#D3BDF0\"\n },\n hover: {\n border: \"#7C29F0\",\n background: \"#D3BDF0\"\n }\n },\n // 5: purple\n {\n border: \"#C37F00\",\n background: \"#FFA807\",\n highlight: {\n border: \"#C37F00\",\n background: \"#FFCA66\"\n },\n hover: {\n border: \"#C37F00\",\n background: \"#FFCA66\"\n }\n },\n // 6: orange\n {\n border: \"#4220FB\",\n background: \"#6E6EFD\",\n highlight: {\n border: \"#4220FB\",\n background: \"#9B9BFD\"\n },\n hover: {\n border: \"#4220FB\",\n background: \"#9B9BFD\"\n }\n },\n // 7: darkblue\n {\n border: \"#FD5A77\",\n background: \"#FFC0CB\",\n highlight: {\n border: \"#FD5A77\",\n background: \"#FFD1D9\"\n },\n hover: {\n border: \"#FD5A77\",\n background: \"#FFD1D9\"\n }\n },\n // 8: pink\n {\n border: \"#4AD63A\",\n background: \"#C2FABC\",\n highlight: {\n border: \"#4AD63A\",\n background: \"#E6FFE3\"\n },\n hover: {\n border: \"#4AD63A\",\n background: \"#E6FFE3\"\n }\n },\n // 9: mint\n\n {\n border: \"#990000\",\n background: \"#EE0000\",\n highlight: {\n border: \"#BB0000\",\n background: \"#FF3333\"\n },\n hover: {\n border: \"#BB0000\",\n background: \"#FF3333\"\n }\n },\n // 10:bright red\n\n {\n border: \"#FF6000\",\n background: \"#FF6000\",\n highlight: {\n border: \"#FF6000\",\n background: \"#FF6000\"\n },\n hover: {\n border: \"#FF6000\",\n background: \"#FF6000\"\n }\n },\n // 12: real orange\n {\n border: \"#97C2FC\",\n background: \"#2B7CE9\",\n highlight: {\n border: \"#D2E5FF\",\n background: \"#2B7CE9\"\n },\n hover: {\n border: \"#D2E5FF\",\n background: \"#2B7CE9\"\n }\n },\n // 13: blue\n {\n border: \"#399605\",\n background: \"#255C03\",\n highlight: {\n border: \"#399605\",\n background: \"#255C03\"\n },\n hover: {\n border: \"#399605\",\n background: \"#255C03\"\n }\n },\n // 14: green\n {\n border: \"#B70054\",\n background: \"#FF007E\",\n highlight: {\n border: \"#B70054\",\n background: \"#FF007E\"\n },\n hover: {\n border: \"#B70054\",\n background: \"#FF007E\"\n }\n },\n // 15: magenta\n {\n border: \"#AD85E4\",\n background: \"#7C29F0\",\n highlight: {\n border: \"#D3BDF0\",\n background: \"#7C29F0\"\n },\n hover: {\n border: \"#D3BDF0\",\n background: \"#7C29F0\"\n }\n },\n // 16: purple\n {\n border: \"#4557FA\",\n background: \"#000EA1\",\n highlight: {\n border: \"#6E6EFD\",\n background: \"#000EA1\"\n },\n hover: {\n border: \"#6E6EFD\",\n background: \"#000EA1\"\n }\n },\n // 17: darkblue\n {\n border: \"#FFC0CB\",\n background: \"#FD5A77\",\n highlight: {\n border: \"#FFD1D9\",\n background: \"#FD5A77\"\n },\n hover: {\n border: \"#FFD1D9\",\n background: \"#FD5A77\"\n }\n },\n // 18: pink\n {\n border: \"#C2FABC\",\n background: \"#74D66A\",\n highlight: {\n border: \"#E6FFE3\",\n background: \"#74D66A\"\n },\n hover: {\n border: \"#E6FFE3\",\n background: \"#74D66A\"\n }\n },\n // 19: mint\n\n {\n border: \"#EE0000\",\n background: \"#990000\",\n highlight: {\n border: \"#FF3333\",\n background: \"#BB0000\"\n },\n hover: {\n border: \"#FF3333\",\n background: \"#BB0000\"\n }\n } // 20:bright red\n ];\n\n this.options = {};\n this.defaultOptions = {\n useDefaultGroups: true\n };\n _Object$assign(this.options, this.defaultOptions);\n }\n\n /**\n *\n * @param {object} options\n */\n _createClass(Groups, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n var optionFields = [\"useDefaultGroups\"];\n if (options !== undefined) {\n for (var groupName in options) {\n if (Object.prototype.hasOwnProperty.call(options, groupName)) {\n if (_indexOfInstanceProperty(optionFields).call(optionFields, groupName) === -1) {\n var group = options[groupName];\n this.add(groupName, group);\n }\n }\n }\n }\n }\n\n /**\n * Clear all groups\n */\n }, {\n key: \"clear\",\n value: function clear() {\n this._groups = new _Map();\n this._groupNames = [];\n }\n\n /**\n * Get group options of a groupname.\n * If groupname is not found, a new group may be created.\n *\n * @param {*} groupname Can be a number, string, Date, etc.\n * @param {boolean} [shouldCreate=true] If true, create a new group\n * @returns {object} The found or created group\n */\n }, {\n key: \"get\",\n value: function get(groupname) {\n var shouldCreate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var group = this._groups.get(groupname);\n if (group === undefined && shouldCreate) {\n if (this.options.useDefaultGroups === false && this._groupNames.length > 0) {\n // create new group\n var index = this._groupIndex % this._groupNames.length;\n ++this._groupIndex;\n group = {};\n group.color = this._groups.get(this._groupNames[index]);\n this._groups.set(groupname, group);\n } else {\n // create new group\n var _index = this._defaultIndex % this._defaultGroups.length;\n this._defaultIndex++;\n group = {};\n group.color = this._defaultGroups[_index];\n this._groups.set(groupname, group);\n }\n }\n return group;\n }\n\n /**\n * Add custom group style.\n *\n * @param {string} groupName - The name of the group, a new group will be\n * created if a group with the same name doesn't exist, otherwise the old\n * groups style will be overwritten.\n * @param {object} style - An object containing borderColor, backgroundColor,\n * etc.\n * @returns {object} The created group object.\n */\n }, {\n key: \"add\",\n value: function add(groupName, style) {\n // Only push group name once to prevent duplicates which would consume more\n // RAM and also skew the distribution towards more often updated groups,\n // neither of which is desirable.\n if (!this._groups.has(groupName)) {\n this._groupNames.push(groupName);\n }\n this._groups.set(groupName, style);\n return style;\n }\n }]);\n return Groups;\n}();\n\nvar isNanExports = {};\nvar isNan$2 = {\n get exports(){ return isNanExports; },\n set exports(v){ isNanExports = v; },\n};\n\nvar $$n = _export;\n\n// `Number.isNaN` method\n// https://tc39.es/ecma262/#sec-number.isnan\n$$n({ target: 'Number', stat: true }, {\n isNaN: function isNaN(number) {\n // eslint-disable-next-line no-self-compare -- NaN check\n return number != number;\n }\n});\n\nvar path$b = path$z;\n\nvar isNan$1 = path$b.Number.isNaN;\n\nvar parent$D = isNan$1;\n\nvar isNan = parent$D;\n\n(function (module) {\n\tmodule.exports = isNan;\n} (isNan$2));\n\nvar _Number$isNaN = /*@__PURE__*/getDefaultExportFromCjs(isNanExports);\n\nvar _isFiniteExports = {};\nvar _isFinite$2 = {\n get exports(){ return _isFiniteExports; },\n set exports(v){ _isFiniteExports = v; },\n};\n\nvar global$8 = global$q;\n\nvar globalIsFinite = global$8.isFinite;\n\n// `Number.isFinite` method\n// https://tc39.es/ecma262/#sec-number.isfinite\n// eslint-disable-next-line es/no-number-isfinite -- safe\nvar numberIsFinite$1 = Number.isFinite || function isFinite(it) {\n return typeof it == 'number' && globalIsFinite(it);\n};\n\nvar $$m = _export;\nvar numberIsFinite = numberIsFinite$1;\n\n// `Number.isFinite` method\n// https://tc39.es/ecma262/#sec-number.isfinite\n$$m({ target: 'Number', stat: true }, { isFinite: numberIsFinite });\n\nvar path$a = path$z;\n\nvar _isFinite$1 = path$a.Number.isFinite;\n\nvar parent$C = _isFinite$1;\n\nvar _isFinite = parent$C;\n\n(function (module) {\n\tmodule.exports = _isFinite;\n} (_isFinite$2));\n\nvar _Number$isFinite = /*@__PURE__*/getDefaultExportFromCjs(_isFiniteExports);\n\nvar someExports = {};\nvar some$3 = {\n get exports(){ return someExports; },\n set exports(v){ someExports = v; },\n};\n\nvar $$l = _export;\nvar $some = arrayIteration.some;\nvar arrayMethodIsStrict$3 = arrayMethodIsStrict$6;\n\nvar STRICT_METHOD$2 = arrayMethodIsStrict$3('some');\n\n// `Array.prototype.some` method\n// https://tc39.es/ecma262/#sec-array.prototype.some\n$$l({ target: 'Array', proto: true, forced: !STRICT_METHOD$2 }, {\n some: function some(callbackfn /* , thisArg */) {\n return $some(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\nvar entryVirtual$7 = entryVirtual$l;\n\nvar some$2 = entryVirtual$7('Array').some;\n\nvar isPrototypeOf$8 = objectIsPrototypeOf;\nvar method$7 = some$2;\n\nvar ArrayPrototype$7 = Array.prototype;\n\nvar some$1 = function (it) {\n var own = it.some;\n return it === ArrayPrototype$7 || (isPrototypeOf$8(ArrayPrototype$7, it) && own === ArrayPrototype$7.some) ? method$7 : own;\n};\n\nvar parent$B = some$1;\n\nvar some = parent$B;\n\n(function (module) {\n\tmodule.exports = some;\n} (some$3));\n\nvar _someInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(someExports);\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\n\nvar createExports$1 = {};\nvar create$5 = {\n get exports(){ return createExports$1; },\n set exports(v){ createExports$1 = v; },\n};\n\nvar createExports = {};\nvar create$4 = {\n get exports(){ return createExports; },\n set exports(v){ createExports = v; },\n};\n\nvar parent$A = create$7;\n\nvar create$3 = parent$A;\n\nvar parent$z = create$3;\n\nvar create$2 = parent$z;\n\n(function (module) {\n\tmodule.exports = create$2;\n} (create$4));\n\n(function (module) {\n\tmodule.exports = createExports;\n} (create$5));\n\nvar _Object$create = /*@__PURE__*/getDefaultExportFromCjs(createExports$1);\n\nvar setPrototypeOfExports$1 = {};\nvar setPrototypeOf$7 = {\n get exports(){ return setPrototypeOfExports$1; },\n set exports(v){ setPrototypeOfExports$1 = v; },\n};\n\nvar setPrototypeOfExports = {};\nvar setPrototypeOf$6 = {\n get exports(){ return setPrototypeOfExports; },\n set exports(v){ setPrototypeOfExports = v; },\n};\n\nvar $$k = _export;\nvar setPrototypeOf$5 = objectSetPrototypeOf;\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n$$k({ target: 'Object', stat: true }, {\n setPrototypeOf: setPrototypeOf$5\n});\n\nvar path$9 = path$z;\n\nvar setPrototypeOf$4 = path$9.Object.setPrototypeOf;\n\nvar parent$y = setPrototypeOf$4;\n\nvar setPrototypeOf$3 = parent$y;\n\nvar parent$x = setPrototypeOf$3;\n\nvar setPrototypeOf$2 = parent$x;\n\nvar parent$w = setPrototypeOf$2;\n\nvar setPrototypeOf$1 = parent$w;\n\n(function (module) {\n\tmodule.exports = setPrototypeOf$1;\n} (setPrototypeOf$6));\n\n(function (module) {\n\tmodule.exports = setPrototypeOfExports;\n} (setPrototypeOf$7));\n\nvar _Object$setPrototypeOf = /*@__PURE__*/getDefaultExportFromCjs(setPrototypeOfExports$1);\n\nvar bindExports$1 = {};\nvar bind$8 = {\n get exports(){ return bindExports$1; },\n set exports(v){ bindExports$1 = v; },\n};\n\nvar bindExports = {};\nvar bind$7 = {\n get exports(){ return bindExports; },\n set exports(v){ bindExports = v; },\n};\n\nvar parent$v = bind$d;\n\nvar bind$6 = parent$v;\n\nvar parent$u = bind$6;\n\nvar bind$5 = parent$u;\n\n(function (module) {\n\tmodule.exports = bind$5;\n} (bind$7));\n\n(function (module) {\n\tmodule.exports = bindExports;\n} (bind$8));\n\nvar _bindInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(bindExports$1);\n\nfunction _setPrototypeOf(o, p) {\n var _context;\n _setPrototypeOf = _Object$setPrototypeOf ? _bindInstanceProperty(_context = _Object$setPrototypeOf).call(_context) : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = _Object$create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n _Object$defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof$1(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return _assertThisInitialized(self);\n}\n\nvar getPrototypeOfExports$1 = {};\nvar getPrototypeOf$5 = {\n get exports(){ return getPrototypeOfExports$1; },\n set exports(v){ getPrototypeOfExports$1 = v; },\n};\n\nvar getPrototypeOfExports = {};\nvar getPrototypeOf$4 = {\n get exports(){ return getPrototypeOfExports; },\n set exports(v){ getPrototypeOfExports = v; },\n};\n\nvar parent$t = getPrototypeOf$6;\n\nvar getPrototypeOf$3 = parent$t;\n\nvar parent$s = getPrototypeOf$3;\n\nvar getPrototypeOf$2 = parent$s;\n\n(function (module) {\n\tmodule.exports = getPrototypeOf$2;\n} (getPrototypeOf$4));\n\n(function (module) {\n\tmodule.exports = getPrototypeOfExports;\n} (getPrototypeOf$5));\n\nvar _Object$getPrototypeOf = /*@__PURE__*/getDefaultExportFromCjs(getPrototypeOfExports$1);\n\nfunction _getPrototypeOf(o) {\n var _context;\n _getPrototypeOf = _Object$setPrototypeOf ? _bindInstanceProperty(_context = _Object$getPrototypeOf).call(_context) : function _getPrototypeOf(o) {\n return o.__proto__ || _Object$getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nvar regeneratorRuntimeExports = {};\nvar regeneratorRuntime$1 = {\n get exports(){ return regeneratorRuntimeExports; },\n set exports(v){ regeneratorRuntimeExports = v; },\n};\n\nvar _typeofExports = {};\nvar _typeof = {\n get exports(){ return _typeofExports; },\n set exports(v){ _typeofExports = v; },\n};\n\n(function (module) {\n\tvar _Symbol = symbolExports$2;\n\tvar _Symbol$iterator = iteratorExports$2;\n\tfunction _typeof(obj) {\n\t \"@babel/helpers - typeof\";\n\n\t return (module.exports = _typeof = \"function\" == typeof _Symbol && \"symbol\" == typeof _Symbol$iterator ? function (obj) {\n\t return typeof obj;\n\t } : function (obj) {\n\t return obj && \"function\" == typeof _Symbol && obj.constructor === _Symbol && obj !== _Symbol.prototype ? \"symbol\" : typeof obj;\n\t }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(obj);\n\t}\n\tmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n} (_typeof));\n\nvar forEachExports$1 = {};\nvar forEach$3 = {\n get exports(){ return forEachExports$1; },\n set exports(v){ forEachExports$1 = v; },\n};\n\nvar forEachExports = {};\nvar forEach$2 = {\n get exports(){ return forEachExports; },\n set exports(v){ forEachExports = v; },\n};\n\nvar parent$r = forEach$6;\n\nvar forEach$1 = parent$r;\n\nvar parent$q = forEach$1;\n\nvar forEach = parent$q;\n\n(function (module) {\n\tmodule.exports = forEach;\n} (forEach$2));\n\n(function (module) {\n\tmodule.exports = forEachExports;\n} (forEach$3));\n\nvar promiseExports$1 = {};\nvar promise$6 = {\n get exports(){ return promiseExports$1; },\n set exports(v){ promiseExports$1 = v; },\n};\n\nvar promiseExports = {};\nvar promise$5 = {\n get exports(){ return promiseExports; },\n set exports(v){ promiseExports = v; },\n};\n\nvar hasOwn$6 = hasOwnProperty_1;\nvar ownKeys$5 = ownKeys$b;\nvar getOwnPropertyDescriptorModule$1 = objectGetOwnPropertyDescriptor;\nvar definePropertyModule = objectDefineProperty;\n\nvar copyConstructorProperties$1 = function (target, source, exceptions) {\n var keys = ownKeys$5(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$1.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn$6(target, key) && !(exceptions && hasOwn$6(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n\nvar isObject$6 = isObject$m;\nvar createNonEnumerableProperty$2 = createNonEnumerableProperty$9;\n\n// `InstallErrorCause` abstract operation\n// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause\nvar installErrorCause$1 = function (O, options) {\n if (isObject$6(options) && 'cause' in options) {\n createNonEnumerableProperty$2(O, 'cause', options.cause);\n }\n};\n\nvar uncurryThis$4 = functionUncurryThis;\n\nvar $Error$1 = Error;\nvar replace = uncurryThis$4(''.replace);\n\nvar TEST = (function (arg) { return String($Error$1(arg).stack); })('zxcasd');\n// eslint-disable-next-line redos/no-vulnerable -- safe\nvar V8_OR_CHAKRA_STACK_ENTRY = /\\n\\s*at [^:]*:[^\\n]*/;\nvar IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);\n\nvar errorStackClear = function (stack, dropEntries) {\n if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error$1.prepareStackTrace) {\n while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');\n } return stack;\n};\n\nvar fails$7 = fails$z;\nvar createPropertyDescriptor$1 = createPropertyDescriptor$7;\n\nvar errorStackInstallable = !fails$7(function () {\n var error = Error('a');\n if (!('stack' in error)) return true;\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty(error, 'stack', createPropertyDescriptor$1(1, 7));\n return error.stack !== 7;\n});\n\nvar createNonEnumerableProperty$1 = createNonEnumerableProperty$9;\nvar clearErrorStack = errorStackClear;\nvar ERROR_STACK_INSTALLABLE = errorStackInstallable;\n\n// non-standard V8\nvar captureStackTrace = Error.captureStackTrace;\n\nvar errorStackInstall = function (error, C, stack, dropEntries) {\n if (ERROR_STACK_INSTALLABLE) {\n if (captureStackTrace) captureStackTrace(error, C);\n else createNonEnumerableProperty$1(error, 'stack', clearErrorStack(stack, dropEntries));\n }\n};\n\nvar toString$2 = toString$b;\n\nvar normalizeStringArgument$1 = function (argument, $default) {\n return argument === undefined ? arguments.length < 2 ? '' : $default : toString$2(argument);\n};\n\nvar $$j = _export;\nvar isPrototypeOf$7 = objectIsPrototypeOf;\nvar getPrototypeOf$1 = objectGetPrototypeOf;\nvar setPrototypeOf = objectSetPrototypeOf;\nvar copyConstructorProperties = copyConstructorProperties$1;\nvar create$1 = objectCreate;\nvar createNonEnumerableProperty = createNonEnumerableProperty$9;\nvar createPropertyDescriptor = createPropertyDescriptor$7;\nvar installErrorCause = installErrorCause$1;\nvar installErrorStack = errorStackInstall;\nvar iterate$5 = iterate$8;\nvar normalizeStringArgument = normalizeStringArgument$1;\nvar wellKnownSymbol$2 = wellKnownSymbol$o;\n\nvar TO_STRING_TAG = wellKnownSymbol$2('toStringTag');\nvar $Error = Error;\nvar push$2 = [].push;\n\nvar $AggregateError = function AggregateError(errors, message /* , options */) {\n var isInstance = isPrototypeOf$7(AggregateErrorPrototype, this);\n var that;\n if (setPrototypeOf) {\n that = setPrototypeOf($Error(), isInstance ? getPrototypeOf$1(this) : AggregateErrorPrototype);\n } else {\n that = isInstance ? this : create$1(AggregateErrorPrototype);\n createNonEnumerableProperty(that, TO_STRING_TAG, 'Error');\n }\n if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message));\n installErrorStack(that, $AggregateError, that.stack, 1);\n if (arguments.length > 2) installErrorCause(that, arguments[2]);\n var errorsArray = [];\n iterate$5(errors, push$2, { that: errorsArray });\n createNonEnumerableProperty(that, 'errors', errorsArray);\n return that;\n};\n\nif (setPrototypeOf) setPrototypeOf($AggregateError, $Error);\nelse copyConstructorProperties($AggregateError, $Error, { name: true });\n\nvar AggregateErrorPrototype = $AggregateError.prototype = create$1($Error.prototype, {\n constructor: createPropertyDescriptor(1, $AggregateError),\n message: createPropertyDescriptor(1, ''),\n name: createPropertyDescriptor(1, 'AggregateError')\n});\n\n// `AggregateError` constructor\n// https://tc39.es/ecma262/#sec-aggregate-error-constructor\n$$j({ global: true, constructor: true, arity: 2 }, {\n AggregateError: $AggregateError\n});\n\nvar classof$3 = classofRaw$2;\n\nvar engineIsNode = typeof process != 'undefined' && classof$3(process) == 'process';\n\nvar isConstructor = isConstructor$4;\nvar tryToString = tryToString$6;\n\nvar $TypeError$2 = TypeError;\n\n// `Assert: IsConstructor(argument) is true`\nvar aConstructor$2 = function (argument) {\n if (isConstructor(argument)) return argument;\n throw $TypeError$2(tryToString(argument) + ' is not a constructor');\n};\n\nvar anObject$4 = anObject$f;\nvar aConstructor$1 = aConstructor$2;\nvar isNullOrUndefined$1 = isNullOrUndefined$6;\nvar wellKnownSymbol$1 = wellKnownSymbol$o;\n\nvar SPECIES$1 = wellKnownSymbol$1('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nvar speciesConstructor$2 = function (O, defaultConstructor) {\n var C = anObject$4(O).constructor;\n var S;\n return C === undefined || isNullOrUndefined$1(S = anObject$4(C)[SPECIES$1]) ? defaultConstructor : aConstructor$1(S);\n};\n\nvar userAgent$4 = engineUserAgent;\n\n// eslint-disable-next-line redos/no-vulnerable -- safe\nvar engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$4);\n\nvar global$7 = global$q;\nvar apply$1 = functionApply;\nvar bind$4 = functionBindContext;\nvar isCallable$3 = isCallable$m;\nvar hasOwn$5 = hasOwnProperty_1;\nvar fails$6 = fails$z;\nvar html = html$2;\nvar arraySlice$1 = arraySlice$6;\nvar createElement = documentCreateElement$1;\nvar validateArgumentsLength = validateArgumentsLength$2;\nvar IS_IOS$1 = engineIsIos;\nvar IS_NODE$4 = engineIsNode;\n\nvar set$3 = global$7.setImmediate;\nvar clear = global$7.clearImmediate;\nvar process$3 = global$7.process;\nvar Dispatch = global$7.Dispatch;\nvar Function$1 = global$7.Function;\nvar MessageChannel = global$7.MessageChannel;\nvar String$1 = global$7.String;\nvar counter = 0;\nvar queue$2 = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar $location, defer, channel, port;\n\nfails$6(function () {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n $location = global$7.location;\n});\n\nvar run = function (id) {\n if (hasOwn$5(queue$2, id)) {\n var fn = queue$2[id];\n delete queue$2[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar eventListener = function (event) {\n run(event.data);\n};\n\nvar globalPostMessageDefer = function (id) {\n // old engines have not location.origin\n global$7.postMessage(String$1(id), $location.protocol + '//' + $location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set$3 || !clear) {\n set$3 = function setImmediate(handler) {\n validateArgumentsLength(arguments.length, 1);\n var fn = isCallable$3(handler) ? handler : Function$1(handler);\n var args = arraySlice$1(arguments, 1);\n queue$2[++counter] = function () {\n apply$1(fn, undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue$2[id];\n };\n // Node.js 0.8-\n if (IS_NODE$4) {\n defer = function (id) {\n process$3.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS$1) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = eventListener;\n defer = bind$4(port.postMessage, port);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global$7.addEventListener &&\n isCallable$3(global$7.postMessage) &&\n !global$7.importScripts &&\n $location && $location.protocol !== 'file:' &&\n !fails$6(globalPostMessageDefer)\n ) {\n defer = globalPostMessageDefer;\n global$7.addEventListener('message', eventListener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nvar task$1 = {\n set: set$3,\n clear: clear\n};\n\nvar Queue$3 = function () {\n this.head = null;\n this.tail = null;\n};\n\nQueue$3.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n var tail = this.tail;\n if (tail) tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n var next = this.head = entry.next;\n if (next === null) this.tail = null;\n return entry.item;\n }\n }\n};\n\nvar queue$1 = Queue$3;\n\nvar userAgent$3 = engineUserAgent;\n\nvar engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$3) && typeof Pebble != 'undefined';\n\nvar userAgent$2 = engineUserAgent;\n\nvar engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$2);\n\nvar global$6 = global$q;\nvar bind$3 = functionBindContext;\nvar getOwnPropertyDescriptor$4 = objectGetOwnPropertyDescriptor.f;\nvar macrotask = task$1.set;\nvar Queue$2 = queue$1;\nvar IS_IOS = engineIsIos;\nvar IS_IOS_PEBBLE = engineIsIosPebble;\nvar IS_WEBOS_WEBKIT = engineIsWebosWebkit;\nvar IS_NODE$3 = engineIsNode;\n\nvar MutationObserver = global$6.MutationObserver || global$6.WebKitMutationObserver;\nvar document$2 = global$6.document;\nvar process$2 = global$6.process;\nvar Promise$1 = global$6.Promise;\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor$4(global$6, 'queueMicrotask');\nvar microtask$1 = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\nvar notify$1, toggle, node, promise$4, then;\n\n// modern engines have queueMicrotask method\nif (!microtask$1) {\n var queue = new Queue$2();\n\n var flush = function () {\n var parent, fn;\n if (IS_NODE$3 && (parent = process$2.domain)) parent.exit();\n while (fn = queue.get()) try {\n fn();\n } catch (error) {\n if (queue.head) notify$1();\n throw error;\n }\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE$3 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {\n toggle = true;\n node = document$2.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify$1 = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise$4 = Promise$1.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise$4.constructor = Promise$1;\n then = bind$3(promise$4.then, promise$4);\n notify$1 = function () {\n then(flush);\n };\n // Node.js without promises\n } else if (IS_NODE$3) {\n notify$1 = function () {\n process$2.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessage\n // - onreadystatechange\n // - setTimeout\n } else {\n // `webpack` dev server bug on IE global methods - use bind(fn, global)\n macrotask = bind$3(macrotask, global$6);\n notify$1 = function () {\n macrotask(flush);\n };\n }\n\n microtask$1 = function (fn) {\n if (!queue.head) notify$1();\n queue.add(fn);\n };\n}\n\nvar microtask_1 = microtask$1;\n\nvar hostReportErrors$1 = function (a, b) {\n try {\n // eslint-disable-next-line no-console -- safe\n arguments.length == 1 ? console.error(a) : console.error(a, b);\n } catch (error) { /* empty */ }\n};\n\nvar perform$6 = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n\nvar global$5 = global$q;\n\nvar promiseNativeConstructor = global$5.Promise;\n\n/* global Deno -- Deno case */\n\nvar engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';\n\nvar IS_DENO$1 = engineIsDeno;\nvar IS_NODE$2 = engineIsNode;\n\nvar engineIsBrowser = !IS_DENO$1 && !IS_NODE$2\n && typeof window == 'object'\n && typeof document == 'object';\n\nvar global$4 = global$q;\nvar NativePromiseConstructor$5 = promiseNativeConstructor;\nvar isCallable$2 = isCallable$m;\nvar isForced = isForced_1;\nvar inspectSource = inspectSource$2;\nvar wellKnownSymbol = wellKnownSymbol$o;\nvar IS_BROWSER = engineIsBrowser;\nvar IS_DENO = engineIsDeno;\nvar V8_VERSION = engineV8Version;\n\nvar NativePromisePrototype$2 = NativePromiseConstructor$5 && NativePromiseConstructor$5.prototype;\nvar SPECIES = wellKnownSymbol('species');\nvar SUBCLASSING = false;\nvar NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$4.PromiseRejectionEvent);\n\nvar FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$5);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$5);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution\n if (!(NativePromisePrototype$2['catch'] && NativePromisePrototype$2['finally'])) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {\n // Detect correctness of subclassing with @@species support\n var promise = new NativePromiseConstructor$5(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;\n});\n\nvar promiseConstructorDetection = {\n CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,\n REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,\n SUBCLASSING: SUBCLASSING\n};\n\nvar newPromiseCapability$2 = {};\n\nvar aCallable$8 = aCallable$e;\n\nvar $TypeError$1 = TypeError;\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw $TypeError$1('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aCallable$8(resolve);\n this.reject = aCallable$8(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nnewPromiseCapability$2.f = function (C) {\n return new PromiseCapability(C);\n};\n\nvar $$i = _export;\nvar IS_NODE$1 = engineIsNode;\nvar global$3 = global$q;\nvar call$6 = functionCall;\nvar defineBuiltIn = defineBuiltIn$6;\nvar setToStringTag = setToStringTag$7;\nvar setSpecies = setSpecies$2;\nvar aCallable$7 = aCallable$e;\nvar isCallable$1 = isCallable$m;\nvar isObject$5 = isObject$m;\nvar anInstance$1 = anInstance$4;\nvar speciesConstructor$1 = speciesConstructor$2;\nvar task = task$1.set;\nvar microtask = microtask_1;\nvar hostReportErrors = hostReportErrors$1;\nvar perform$5 = perform$6;\nvar Queue$1 = queue$1;\nvar InternalStateModule$1 = internalState;\nvar NativePromiseConstructor$4 = promiseNativeConstructor;\nvar PromiseConstructorDetection = promiseConstructorDetection;\nvar newPromiseCapabilityModule$6 = newPromiseCapability$2;\n\nvar PROMISE = 'Promise';\nvar FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;\nvar NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;\nvar getInternalPromiseState = InternalStateModule$1.getterFor(PROMISE);\nvar setInternalState$1 = InternalStateModule$1.set;\nvar NativePromisePrototype$1 = NativePromiseConstructor$4 && NativePromiseConstructor$4.prototype;\nvar PromiseConstructor = NativePromiseConstructor$4;\nvar PromisePrototype = NativePromisePrototype$1;\nvar TypeError$1 = global$3.TypeError;\nvar document$1 = global$3.document;\nvar process$1 = global$3.process;\nvar newPromiseCapability$1 = newPromiseCapabilityModule$6.f;\nvar newGenericPromiseCapability = newPromiseCapability$1;\n\nvar DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$3.dispatchEvent);\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\n\nvar Internal, OwnPromiseCapability, PromiseWrapper;\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject$5(it) && isCallable$1(then = it.then) ? then : false;\n};\n\nvar callReaction = function (reaction, state) {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError$1('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n call$6(then, result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n};\n\nvar notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n microtask(function () {\n var reactions = state.reactions;\n var reaction;\n while (reaction = reactions.get()) {\n callReaction(reaction, state);\n }\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\n};\n\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document$1.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global$3.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$3['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n call$6(task, global$3, function () {\n var promise = state.facade;\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform$5(function () {\n if (IS_NODE$1) {\n process$1.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE$1 || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (state) {\n call$6(task, global$3, function () {\n var promise = state.facade;\n if (IS_NODE$1) {\n process$1.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind$2 = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw TypeError$1(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n call$6(then, value,\n bind$2(internalResolve, wrapper, state),\n bind$2(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED_PROMISE_CONSTRUCTOR$4) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance$1(this, PromisePrototype);\n aCallable$7(executor);\n call$6(Internal, this);\n var state = getInternalPromiseState(this);\n try {\n executor(bind$2(internalResolve, state), bind$2(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n\n PromisePrototype = PromiseConstructor.prototype;\n\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState$1(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: new Queue$1(),\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability$1(speciesConstructor$1(this, PromiseConstructor));\n state.parent = true;\n reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;\n reaction.fail = isCallable$1(onRejected) && onRejected;\n reaction.domain = IS_NODE$1 ? process$1.domain : undefined;\n if (state.state == PENDING) state.reactions.add(reaction);\n else microtask(function () {\n callReaction(reaction, state);\n });\n return reaction.promise;\n });\n\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalPromiseState(promise);\n this.promise = promise;\n this.resolve = bind$2(internalResolve, state);\n this.reject = bind$2(internalReject, state);\n };\n\n newPromiseCapabilityModule$6.f = newPromiseCapability$1 = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n}\n\n$$i({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n\nvar NativePromiseConstructor$3 = promiseNativeConstructor;\nvar checkCorrectnessOfIteration = checkCorrectnessOfIteration$2;\nvar FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;\n\nvar promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {\n NativePromiseConstructor$3.all(iterable).then(undefined, function () { /* empty */ });\n});\n\nvar $$h = _export;\nvar call$5 = functionCall;\nvar aCallable$6 = aCallable$e;\nvar newPromiseCapabilityModule$5 = newPromiseCapability$2;\nvar perform$4 = perform$6;\nvar iterate$4 = iterate$8;\nvar PROMISE_STATICS_INCORRECT_ITERATION$3 = promiseStaticsIncorrectIteration;\n\n// `Promise.all` method\n// https://tc39.es/ecma262/#sec-promise.all\n$$h({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$3 }, {\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule$5.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform$4(function () {\n var $promiseResolve = aCallable$6(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate$4(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call$5($promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n\nvar $$g = _export;\nvar FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;\nvar NativePromiseConstructor$2 = promiseNativeConstructor;\n\nNativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;\n\n// `Promise.prototype.catch` method\n// https://tc39.es/ecma262/#sec-promise.prototype.catch\n$$g({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n});\n\nvar $$f = _export;\nvar call$4 = functionCall;\nvar aCallable$5 = aCallable$e;\nvar newPromiseCapabilityModule$4 = newPromiseCapability$2;\nvar perform$3 = perform$6;\nvar iterate$3 = iterate$8;\nvar PROMISE_STATICS_INCORRECT_ITERATION$2 = promiseStaticsIncorrectIteration;\n\n// `Promise.race` method\n// https://tc39.es/ecma262/#sec-promise.race\n$$f({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$2 }, {\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule$4.f(C);\n var reject = capability.reject;\n var result = perform$3(function () {\n var $promiseResolve = aCallable$5(C.resolve);\n iterate$3(iterable, function (promise) {\n call$4($promiseResolve, C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n\nvar $$e = _export;\nvar call$3 = functionCall;\nvar newPromiseCapabilityModule$3 = newPromiseCapability$2;\nvar FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;\n\n// `Promise.reject` method\n// https://tc39.es/ecma262/#sec-promise.reject\n$$e({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {\n reject: function reject(r) {\n var capability = newPromiseCapabilityModule$3.f(this);\n call$3(capability.reject, undefined, r);\n return capability.promise;\n }\n});\n\nvar anObject$3 = anObject$f;\nvar isObject$4 = isObject$m;\nvar newPromiseCapability = newPromiseCapability$2;\n\nvar promiseResolve$2 = function (C, x) {\n anObject$3(C);\n if (isObject$4(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n\nvar $$d = _export;\nvar getBuiltIn$3 = getBuiltIn$f;\nvar IS_PURE = isPure;\nvar NativePromiseConstructor$1 = promiseNativeConstructor;\nvar FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;\nvar promiseResolve$1 = promiseResolve$2;\n\nvar PromiseConstructorWrapper = getBuiltIn$3('Promise');\nvar CHECK_WRAPPER = !FORCED_PROMISE_CONSTRUCTOR;\n\n// `Promise.resolve` method\n// https://tc39.es/ecma262/#sec-promise.resolve\n$$d({ target: 'Promise', stat: true, forced: IS_PURE }, {\n resolve: function resolve(x) {\n return promiseResolve$1(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor$1 : this, x);\n }\n});\n\nvar $$c = _export;\nvar call$2 = functionCall;\nvar aCallable$4 = aCallable$e;\nvar newPromiseCapabilityModule$2 = newPromiseCapability$2;\nvar perform$2 = perform$6;\nvar iterate$2 = iterate$8;\nvar PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;\n\n// `Promise.allSettled` method\n// https://tc39.es/ecma262/#sec-promise.allsettled\n$$c({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {\n allSettled: function allSettled(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule$2.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform$2(function () {\n var promiseResolve = aCallable$4(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate$2(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call$2(promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'fulfilled', value: value };\n --remaining || resolve(values);\n }, function (error) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'rejected', reason: error };\n --remaining || resolve(values);\n });\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n\nvar $$b = _export;\nvar call$1 = functionCall;\nvar aCallable$3 = aCallable$e;\nvar getBuiltIn$2 = getBuiltIn$f;\nvar newPromiseCapabilityModule$1 = newPromiseCapability$2;\nvar perform$1 = perform$6;\nvar iterate$1 = iterate$8;\nvar PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;\n\nvar PROMISE_ANY_ERROR = 'No one promise resolved';\n\n// `Promise.any` method\n// https://tc39.es/ecma262/#sec-promise.any\n$$b({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n any: function any(iterable) {\n var C = this;\n var AggregateError = getBuiltIn$2('AggregateError');\n var capability = newPromiseCapabilityModule$1.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform$1(function () {\n var promiseResolve = aCallable$3(C.resolve);\n var errors = [];\n var counter = 0;\n var remaining = 1;\n var alreadyResolved = false;\n iterate$1(iterable, function (promise) {\n var index = counter++;\n var alreadyRejected = false;\n remaining++;\n call$1(promiseResolve, C, promise).then(function (value) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyResolved = true;\n resolve(value);\n }, function (error) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyRejected = true;\n errors[index] = error;\n --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));\n });\n });\n --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n\nvar $$a = _export;\nvar NativePromiseConstructor = promiseNativeConstructor;\nvar fails$5 = fails$z;\nvar getBuiltIn$1 = getBuiltIn$f;\nvar isCallable = isCallable$m;\nvar speciesConstructor = speciesConstructor$2;\nvar promiseResolve = promiseResolve$2;\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829\nvar NON_GENERIC = !!NativePromiseConstructor && fails$5(function () {\n // eslint-disable-next-line unicorn/no-thenable -- required for testing\n NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });\n});\n\n// `Promise.prototype.finally` method\n// https://tc39.es/ecma262/#sec-promise.prototype.finally\n$$a({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {\n 'finally': function (onFinally) {\n var C = speciesConstructor(this, getBuiltIn$1('Promise'));\n var isFunction = isCallable(onFinally);\n return this.then(\n isFunction ? function (x) {\n return promiseResolve(C, onFinally()).then(function () { return x; });\n } : onFinally,\n isFunction ? function (e) {\n return promiseResolve(C, onFinally()).then(function () { throw e; });\n } : onFinally\n );\n }\n});\n\nvar path$8 = path$z;\n\nvar promise$3 = path$8.Promise;\n\nvar parent$p = promise$3;\n\n\nvar promise$2 = parent$p;\n\nvar parent$o = promise$2;\n\nvar promise$1 = parent$o;\n\n// TODO: Remove from `core-js@4`\nvar $$9 = _export;\nvar newPromiseCapabilityModule = newPromiseCapability$2;\nvar perform = perform$6;\n\n// `Promise.try` method\n// https://github.com/tc39/proposal-promise-try\n$$9({ target: 'Promise', stat: true, forced: true }, {\n 'try': function (callbackfn) {\n var promiseCapability = newPromiseCapabilityModule.f(this);\n var result = perform(callbackfn);\n (result.error ? promiseCapability.reject : promiseCapability.resolve)(result.value);\n return promiseCapability.promise;\n }\n});\n\nvar parent$n = promise$1;\n\n// TODO: Remove from `core-js@4`\n\n\n\n\nvar promise = parent$n;\n\n(function (module) {\n\tmodule.exports = promise;\n} (promise$5));\n\n(function (module) {\n\tmodule.exports = promiseExports;\n} (promise$6));\n\nvar reverseExports$1 = {};\nvar reverse$3 = {\n get exports(){ return reverseExports$1; },\n set exports(v){ reverseExports$1 = v; },\n};\n\nvar reverseExports = {};\nvar reverse$2 = {\n get exports(){ return reverseExports; },\n set exports(v){ reverseExports = v; },\n};\n\nvar parent$m = reverse$4;\n\nvar reverse$1 = parent$m;\n\nvar parent$l = reverse$1;\n\nvar reverse = parent$l;\n\n(function (module) {\n\tmodule.exports = reverse;\n} (reverse$2));\n\n(function (module) {\n\tmodule.exports = reverseExports;\n} (reverse$3));\n\n(function (module) {\n\tvar _typeof = _typeofExports[\"default\"];\n\tvar _Object$defineProperty = definePropertyExports$1;\n\tvar _Symbol = symbolExports$2;\n\tvar _Object$create = createExports$1;\n\tvar _Object$getPrototypeOf = getPrototypeOfExports$1;\n\tvar _forEachInstanceProperty = forEachExports$1;\n\tvar _Object$setPrototypeOf = setPrototypeOfExports$1;\n\tvar _Promise = promiseExports$1;\n\tvar _reverseInstanceProperty = reverseExports$1;\n\tvar _sliceInstanceProperty = sliceExports$2;\n\tfunction _regeneratorRuntime() {\n\t module.exports = _regeneratorRuntime = function _regeneratorRuntime() {\n\t return exports;\n\t }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\t var exports = {},\n\t Op = Object.prototype,\n\t hasOwn = Op.hasOwnProperty,\n\t defineProperty = _Object$defineProperty || function (obj, key, desc) {\n\t obj[key] = desc.value;\n\t },\n\t $Symbol = \"function\" == typeof _Symbol ? _Symbol : {},\n\t iteratorSymbol = $Symbol.iterator || \"@@iterator\",\n\t asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\",\n\t toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\t function define(obj, key, value) {\n\t return _Object$defineProperty(obj, key, {\n\t value: value,\n\t enumerable: !0,\n\t configurable: !0,\n\t writable: !0\n\t }), obj[key];\n\t }\n\t try {\n\t define({}, \"\");\n\t } catch (err) {\n\t define = function define(obj, key, value) {\n\t return obj[key] = value;\n\t };\n\t }\n\t function wrap(innerFn, outerFn, self, tryLocsList) {\n\t var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,\n\t generator = _Object$create(protoGenerator.prototype),\n\t context = new Context(tryLocsList || []);\n\t return defineProperty(generator, \"_invoke\", {\n\t value: makeInvokeMethod(innerFn, self, context)\n\t }), generator;\n\t }\n\t function tryCatch(fn, obj, arg) {\n\t try {\n\t return {\n\t type: \"normal\",\n\t arg: fn.call(obj, arg)\n\t };\n\t } catch (err) {\n\t return {\n\t type: \"throw\",\n\t arg: err\n\t };\n\t }\n\t }\n\t exports.wrap = wrap;\n\t var ContinueSentinel = {};\n\t function Generator() {}\n\t function GeneratorFunction() {}\n\t function GeneratorFunctionPrototype() {}\n\t var IteratorPrototype = {};\n\t define(IteratorPrototype, iteratorSymbol, function () {\n\t return this;\n\t });\n\t var getProto = _Object$getPrototypeOf,\n\t NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n\t NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);\n\t var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(IteratorPrototype);\n\t function defineIteratorMethods(prototype) {\n\t var _context;\n\t _forEachInstanceProperty(_context = [\"next\", \"throw\", \"return\"]).call(_context, function (method) {\n\t define(prototype, method, function (arg) {\n\t return this._invoke(method, arg);\n\t });\n\t });\n\t }\n\t function AsyncIterator(generator, PromiseImpl) {\n\t function invoke(method, arg, resolve, reject) {\n\t var record = tryCatch(generator[method], generator, arg);\n\t if (\"throw\" !== record.type) {\n\t var result = record.arg,\n\t value = result.value;\n\t return value && \"object\" == _typeof(value) && hasOwn.call(value, \"__await\") ? PromiseImpl.resolve(value.__await).then(function (value) {\n\t invoke(\"next\", value, resolve, reject);\n\t }, function (err) {\n\t invoke(\"throw\", err, resolve, reject);\n\t }) : PromiseImpl.resolve(value).then(function (unwrapped) {\n\t result.value = unwrapped, resolve(result);\n\t }, function (error) {\n\t return invoke(\"throw\", error, resolve, reject);\n\t });\n\t }\n\t reject(record.arg);\n\t }\n\t var previousPromise;\n\t defineProperty(this, \"_invoke\", {\n\t value: function value(method, arg) {\n\t function callInvokeWithMethodAndArg() {\n\t return new PromiseImpl(function (resolve, reject) {\n\t invoke(method, arg, resolve, reject);\n\t });\n\t }\n\t return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n\t }\n\t });\n\t }\n\t function makeInvokeMethod(innerFn, self, context) {\n\t var state = \"suspendedStart\";\n\t return function (method, arg) {\n\t if (\"executing\" === state) throw new Error(\"Generator is already running\");\n\t if (\"completed\" === state) {\n\t if (\"throw\" === method) throw arg;\n\t return doneResult();\n\t }\n\t for (context.method = method, context.arg = arg;;) {\n\t var delegate = context.delegate;\n\t if (delegate) {\n\t var delegateResult = maybeInvokeDelegate(delegate, context);\n\t if (delegateResult) {\n\t if (delegateResult === ContinueSentinel) continue;\n\t return delegateResult;\n\t }\n\t }\n\t if (\"next\" === context.method) context.sent = context._sent = context.arg;else if (\"throw\" === context.method) {\n\t if (\"suspendedStart\" === state) throw state = \"completed\", context.arg;\n\t context.dispatchException(context.arg);\n\t } else \"return\" === context.method && context.abrupt(\"return\", context.arg);\n\t state = \"executing\";\n\t var record = tryCatch(innerFn, self, context);\n\t if (\"normal\" === record.type) {\n\t if (state = context.done ? \"completed\" : \"suspendedYield\", record.arg === ContinueSentinel) continue;\n\t return {\n\t value: record.arg,\n\t done: context.done\n\t };\n\t }\n\t \"throw\" === record.type && (state = \"completed\", context.method = \"throw\", context.arg = record.arg);\n\t }\n\t };\n\t }\n\t function maybeInvokeDelegate(delegate, context) {\n\t var methodName = context.method,\n\t method = delegate.iterator[methodName];\n\t if (undefined === method) return context.delegate = null, \"throw\" === methodName && delegate.iterator[\"return\"] && (context.method = \"return\", context.arg = undefined, maybeInvokeDelegate(delegate, context), \"throw\" === context.method) || \"return\" !== methodName && (context.method = \"throw\", context.arg = new TypeError(\"The iterator does not provide a '\" + methodName + \"' method\")), ContinueSentinel;\n\t var record = tryCatch(method, delegate.iterator, context.arg);\n\t if (\"throw\" === record.type) return context.method = \"throw\", context.arg = record.arg, context.delegate = null, ContinueSentinel;\n\t var info = record.arg;\n\t return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, \"return\" !== context.method && (context.method = \"next\", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = \"throw\", context.arg = new TypeError(\"iterator result is not an object\"), context.delegate = null, ContinueSentinel);\n\t }\n\t function pushTryEntry(locs) {\n\t var entry = {\n\t tryLoc: locs[0]\n\t };\n\t 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);\n\t }\n\t function resetTryEntry(entry) {\n\t var record = entry.completion || {};\n\t record.type = \"normal\", delete record.arg, entry.completion = record;\n\t }\n\t function Context(tryLocsList) {\n\t this.tryEntries = [{\n\t tryLoc: \"root\"\n\t }], _forEachInstanceProperty(tryLocsList).call(tryLocsList, pushTryEntry, this), this.reset(!0);\n\t }\n\t function values(iterable) {\n\t if (iterable) {\n\t var iteratorMethod = iterable[iteratorSymbol];\n\t if (iteratorMethod) return iteratorMethod.call(iterable);\n\t if (\"function\" == typeof iterable.next) return iterable;\n\t if (!isNaN(iterable.length)) {\n\t var i = -1,\n\t next = function next() {\n\t for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;\n\t return next.value = undefined, next.done = !0, next;\n\t };\n\t return next.next = next;\n\t }\n\t }\n\t return {\n\t next: doneResult\n\t };\n\t }\n\t function doneResult() {\n\t return {\n\t value: undefined,\n\t done: !0\n\t };\n\t }\n\t return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, \"constructor\", {\n\t value: GeneratorFunctionPrototype,\n\t configurable: !0\n\t }), defineProperty(GeneratorFunctionPrototype, \"constructor\", {\n\t value: GeneratorFunction,\n\t configurable: !0\n\t }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, \"GeneratorFunction\"), exports.isGeneratorFunction = function (genFun) {\n\t var ctor = \"function\" == typeof genFun && genFun.constructor;\n\t return !!ctor && (ctor === GeneratorFunction || \"GeneratorFunction\" === (ctor.displayName || ctor.name));\n\t }, exports.mark = function (genFun) {\n\t return _Object$setPrototypeOf ? _Object$setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, \"GeneratorFunction\")), genFun.prototype = _Object$create(Gp), genFun;\n\t }, exports.awrap = function (arg) {\n\t return {\n\t __await: arg\n\t };\n\t }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {\n\t return this;\n\t }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n\t void 0 === PromiseImpl && (PromiseImpl = _Promise);\n\t var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);\n\t return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {\n\t return result.done ? result.value : iter.next();\n\t });\n\t }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, \"Generator\"), define(Gp, iteratorSymbol, function () {\n\t return this;\n\t }), define(Gp, \"toString\", function () {\n\t return \"[object Generator]\";\n\t }), exports.keys = function (val) {\n\t var object = Object(val),\n\t keys = [];\n\t for (var key in object) keys.push(key);\n\t return _reverseInstanceProperty(keys).call(keys), function next() {\n\t for (; keys.length;) {\n\t var key = keys.pop();\n\t if (key in object) return next.value = key, next.done = !1, next;\n\t }\n\t return next.done = !0, next;\n\t };\n\t }, exports.values = values, Context.prototype = {\n\t constructor: Context,\n\t reset: function reset(skipTempReset) {\n\t var _context2;\n\t if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = undefined, _forEachInstanceProperty(_context2 = this.tryEntries).call(_context2, resetTryEntry), !skipTempReset) for (var name in this) \"t\" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+_sliceInstanceProperty(name).call(name, 1)) && (this[name] = undefined);\n\t },\n\t stop: function stop() {\n\t this.done = !0;\n\t var rootRecord = this.tryEntries[0].completion;\n\t if (\"throw\" === rootRecord.type) throw rootRecord.arg;\n\t return this.rval;\n\t },\n\t dispatchException: function dispatchException(exception) {\n\t if (this.done) throw exception;\n\t var context = this;\n\t function handle(loc, caught) {\n\t return record.type = \"throw\", record.arg = exception, context.next = loc, caught && (context.method = \"next\", context.arg = undefined), !!caught;\n\t }\n\t for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n\t var entry = this.tryEntries[i],\n\t record = entry.completion;\n\t if (\"root\" === entry.tryLoc) return handle(\"end\");\n\t if (entry.tryLoc <= this.prev) {\n\t var hasCatch = hasOwn.call(entry, \"catchLoc\"),\n\t hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\t if (hasCatch && hasFinally) {\n\t if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);\n\t if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);\n\t } else if (hasCatch) {\n\t if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);\n\t } else {\n\t if (!hasFinally) throw new Error(\"try statement without catch or finally\");\n\t if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);\n\t }\n\t }\n\t }\n\t },\n\t abrupt: function abrupt(type, arg) {\n\t for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n\t var entry = this.tryEntries[i];\n\t if (entry.tryLoc <= this.prev && hasOwn.call(entry, \"finallyLoc\") && this.prev < entry.finallyLoc) {\n\t var finallyEntry = entry;\n\t break;\n\t }\n\t }\n\t finallyEntry && (\"break\" === type || \"continue\" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);\n\t var record = finallyEntry ? finallyEntry.completion : {};\n\t return record.type = type, record.arg = arg, finallyEntry ? (this.method = \"next\", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);\n\t },\n\t complete: function complete(record, afterLoc) {\n\t if (\"throw\" === record.type) throw record.arg;\n\t return \"break\" === record.type || \"continue\" === record.type ? this.next = record.arg : \"return\" === record.type ? (this.rval = this.arg = record.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;\n\t },\n\t finish: function finish(finallyLoc) {\n\t for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n\t var entry = this.tryEntries[i];\n\t if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;\n\t }\n\t },\n\t \"catch\": function _catch(tryLoc) {\n\t for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n\t var entry = this.tryEntries[i];\n\t if (entry.tryLoc === tryLoc) {\n\t var record = entry.completion;\n\t if (\"throw\" === record.type) {\n\t var thrown = record.arg;\n\t resetTryEntry(entry);\n\t }\n\t return thrown;\n\t }\n\t }\n\t throw new Error(\"illegal catch attempt\");\n\t },\n\t delegateYield: function delegateYield(iterable, resultName, nextLoc) {\n\t return this.delegate = {\n\t iterator: values(iterable),\n\t resultName: resultName,\n\t nextLoc: nextLoc\n\t }, \"next\" === this.method && (this.arg = undefined), ContinueSentinel;\n\t }\n\t }, exports;\n\t}\n\tmodule.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n} (regeneratorRuntime$1));\n\n// TODO(Babel 8): Remove this file.\n\nvar runtime = regeneratorRuntimeExports();\nvar regenerator = runtime;\n\n// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n if (typeof globalThis === \"object\") {\n globalThis.regeneratorRuntime = runtime;\n } else {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\n}\n\nvar reduceExports = {};\nvar reduce$3 = {\n get exports(){ return reduceExports; },\n set exports(v){ reduceExports = v; },\n};\n\nvar aCallable$2 = aCallable$e;\nvar toObject$2 = toObject$e;\nvar IndexedObject = indexedObject;\nvar lengthOfArrayLike$3 = lengthOfArrayLike$d;\n\nvar $TypeError = TypeError;\n\n// `Array.prototype.{ reduce, reduceRight }` methods implementation\nvar createMethod = function (IS_RIGHT) {\n return function (that, callbackfn, argumentsLength, memo) {\n aCallable$2(callbackfn);\n var O = toObject$2(that);\n var self = IndexedObject(O);\n var length = lengthOfArrayLike$3(O);\n var index = IS_RIGHT ? length - 1 : 0;\n var i = IS_RIGHT ? -1 : 1;\n if (argumentsLength < 2) while (true) {\n if (index in self) {\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if (IS_RIGHT ? index < 0 : length <= index) {\n throw $TypeError('Reduce of empty array with no initial value');\n }\n }\n for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n };\n};\n\nvar arrayReduce = {\n // `Array.prototype.reduce` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduce\n left: createMethod(false),\n // `Array.prototype.reduceRight` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduceright\n right: createMethod(true)\n};\n\nvar $$8 = _export;\nvar $reduce = arrayReduce.left;\nvar arrayMethodIsStrict$2 = arrayMethodIsStrict$6;\nvar CHROME_VERSION = engineV8Version;\nvar IS_NODE = engineIsNode;\n\n// Chrome 80-82 has a critical bug\n// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982\nvar CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;\nvar FORCED$4 = CHROME_BUG || !arrayMethodIsStrict$2('reduce');\n\n// `Array.prototype.reduce` method\n// https://tc39.es/ecma262/#sec-array.prototype.reduce\n$$8({ target: 'Array', proto: true, forced: FORCED$4 }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n var length = arguments.length;\n return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);\n }\n});\n\nvar entryVirtual$6 = entryVirtual$l;\n\nvar reduce$2 = entryVirtual$6('Array').reduce;\n\nvar isPrototypeOf$6 = objectIsPrototypeOf;\nvar method$6 = reduce$2;\n\nvar ArrayPrototype$6 = Array.prototype;\n\nvar reduce$1 = function (it) {\n var own = it.reduce;\n return it === ArrayPrototype$6 || (isPrototypeOf$6(ArrayPrototype$6, it) && own === ArrayPrototype$6.reduce) ? method$6 : own;\n};\n\nvar parent$k = reduce$1;\n\nvar reduce = parent$k;\n\n(function (module) {\n\tmodule.exports = reduce;\n} (reduce$3));\n\nvar _reduceInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(reduceExports);\n\nvar flatMapExports = {};\nvar flatMap$3 = {\n get exports(){ return flatMapExports; },\n set exports(v){ flatMapExports = v; },\n};\n\nvar isArray$1 = isArray$g;\nvar lengthOfArrayLike$2 = lengthOfArrayLike$d;\nvar doesNotExceedSafeInteger = doesNotExceedSafeInteger$3;\nvar bind$1 = functionBindContext;\n\n// `FlattenIntoArray` abstract operation\n// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray\nvar flattenIntoArray$1 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {\n var targetIndex = start;\n var sourceIndex = 0;\n var mapFn = mapper ? bind$1(mapper, thisArg) : false;\n var element, elementLen;\n\n while (sourceIndex < sourceLen) {\n if (sourceIndex in source) {\n element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];\n\n if (depth > 0 && isArray$1(element)) {\n elementLen = lengthOfArrayLike$2(element);\n targetIndex = flattenIntoArray$1(target, original, element, elementLen, targetIndex, depth - 1) - 1;\n } else {\n doesNotExceedSafeInteger(targetIndex + 1);\n target[targetIndex] = element;\n }\n\n targetIndex++;\n }\n sourceIndex++;\n }\n return targetIndex;\n};\n\nvar flattenIntoArray_1 = flattenIntoArray$1;\n\nvar $$7 = _export;\nvar flattenIntoArray = flattenIntoArray_1;\nvar aCallable$1 = aCallable$e;\nvar toObject$1 = toObject$e;\nvar lengthOfArrayLike$1 = lengthOfArrayLike$d;\nvar arraySpeciesCreate = arraySpeciesCreate$4;\n\n// `Array.prototype.flatMap` method\n// https://tc39.es/ecma262/#sec-array.prototype.flatmap\n$$7({ target: 'Array', proto: true }, {\n flatMap: function flatMap(callbackfn /* , thisArg */) {\n var O = toObject$1(this);\n var sourceLen = lengthOfArrayLike$1(O);\n var A;\n aCallable$1(callbackfn);\n A = arraySpeciesCreate(O, 0);\n A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n return A;\n }\n});\n\nvar entryVirtual$5 = entryVirtual$l;\n\nvar flatMap$2 = entryVirtual$5('Array').flatMap;\n\nvar isPrototypeOf$5 = objectIsPrototypeOf;\nvar method$5 = flatMap$2;\n\nvar ArrayPrototype$5 = Array.prototype;\n\nvar flatMap$1 = function (it) {\n var own = it.flatMap;\n return it === ArrayPrototype$5 || (isPrototypeOf$5(ArrayPrototype$5, it) && own === ArrayPrototype$5.flatMap) ? method$5 : own;\n};\n\nvar parent$j = flatMap$1;\n\nvar flatMap = parent$j;\n\n(function (module) {\n\tmodule.exports = flatMap;\n} (flatMap$3));\n\nvar _flatMapInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(flatMapExports);\n\nvar setExports = {};\nvar set$2 = {\n get exports(){ return setExports; },\n set exports(v){ setExports = v; },\n};\n\nvar collection$1 = collection$3;\nvar collectionStrong = collectionStrong$2;\n\n// `Set` constructor\n// https://tc39.es/ecma262/#sec-set-objects\ncollection$1('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n\nvar path$7 = path$z;\n\nvar set$1 = path$7.Set;\n\nvar parent$i = set$1;\n\n\nvar set = parent$i;\n\n(function (module) {\n\tmodule.exports = set;\n} (set$2));\n\nvar _Set = /*@__PURE__*/getDefaultExportFromCjs(setExports);\n\nvar iteratorExports = {};\nvar iterator = {\n get exports(){ return iteratorExports; },\n set exports(v){ iteratorExports = v; },\n};\n\n(function (module) {\n\tmodule.exports = iterator$3;\n} (iterator));\n\nvar _Symbol$iterator2 = /*@__PURE__*/getDefaultExportFromCjs(iteratorExports);\n\nvar getIteratorExports$1 = {};\nvar getIterator$5 = {\n get exports(){ return getIteratorExports$1; },\n set exports(v){ getIteratorExports$1 = v; },\n};\n\nvar getIteratorExports = {};\nvar getIterator$4 = {\n get exports(){ return getIteratorExports; },\n set exports(v){ getIteratorExports = v; },\n};\n\nvar getIterator$3 = getIterator$8;\n\nvar getIterator_1 = getIterator$3;\n\nvar parent$h = getIterator_1;\n\n\nvar getIterator$2 = parent$h;\n\nvar parent$g = getIterator$2;\n\nvar getIterator$1 = parent$g;\n\nvar parent$f = getIterator$1;\n\nvar getIterator = parent$f;\n\n(function (module) {\n\tmodule.exports = getIterator;\n} (getIterator$4));\n\n(function (module) {\n\tmodule.exports = getIteratorExports;\n} (getIterator$5));\n\nvar _getIterator = /*@__PURE__*/getDefaultExportFromCjs(getIteratorExports$1);\n\nvar sortExports = {};\nvar sort$3 = {\n get exports(){ return sortExports; },\n set exports(v){ sortExports = v; },\n};\n\nvar arraySlice = arraySliceSimple;\n\nvar floor = Math.floor;\n\nvar mergeSort = function (array, comparefn) {\n var length = array.length;\n var middle = floor(length / 2);\n return length < 8 ? insertionSort(array, comparefn) : merge(\n array,\n mergeSort(arraySlice(array, 0, middle), comparefn),\n mergeSort(arraySlice(array, middle), comparefn),\n comparefn\n );\n};\n\nvar insertionSort = function (array, comparefn) {\n var length = array.length;\n var i = 1;\n var element, j;\n\n while (i < length) {\n j = i;\n element = array[i];\n while (j && comparefn(array[j - 1], element) > 0) {\n array[j] = array[--j];\n }\n if (j !== i++) array[j] = element;\n } return array;\n};\n\nvar merge = function (array, left, right, comparefn) {\n var llength = left.length;\n var rlength = right.length;\n var lindex = 0;\n var rindex = 0;\n\n while (lindex < llength || rindex < rlength) {\n array[lindex + rindex] = (lindex < llength && rindex < rlength)\n ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]\n : lindex < llength ? left[lindex++] : right[rindex++];\n } return array;\n};\n\nvar arraySort = mergeSort;\n\nvar userAgent$1 = engineUserAgent;\n\nvar firefox = userAgent$1.match(/firefox\\/(\\d+)/i);\n\nvar engineFfVersion = !!firefox && +firefox[1];\n\nvar UA = engineUserAgent;\n\nvar engineIsIeOrEdge = /MSIE|Trident/.test(UA);\n\nvar userAgent = engineUserAgent;\n\nvar webkit = userAgent.match(/AppleWebKit\\/(\\d+)\\./);\n\nvar engineWebkitVersion = !!webkit && +webkit[1];\n\nvar $$6 = _export;\nvar uncurryThis$3 = functionUncurryThis;\nvar aCallable = aCallable$e;\nvar toObject = toObject$e;\nvar lengthOfArrayLike = lengthOfArrayLike$d;\nvar deletePropertyOrThrow = deletePropertyOrThrow$2;\nvar toString$1 = toString$b;\nvar fails$4 = fails$z;\nvar internalSort = arraySort;\nvar arrayMethodIsStrict$1 = arrayMethodIsStrict$6;\nvar FF = engineFfVersion;\nvar IE_OR_EDGE = engineIsIeOrEdge;\nvar V8 = engineV8Version;\nvar WEBKIT = engineWebkitVersion;\n\nvar test = [];\nvar nativeSort = uncurryThis$3(test.sort);\nvar push$1 = uncurryThis$3(test.push);\n\n// IE8-\nvar FAILS_ON_UNDEFINED = fails$4(function () {\n test.sort(undefined);\n});\n// V8 bug\nvar FAILS_ON_NULL = fails$4(function () {\n test.sort(null);\n});\n// Old WebKit\nvar STRICT_METHOD$1 = arrayMethodIsStrict$1('sort');\n\nvar STABLE_SORT = !fails$4(function () {\n // feature detection can be too slow, so check engines versions\n if (V8) return V8 < 70;\n if (FF && FF > 3) return;\n if (IE_OR_EDGE) return true;\n if (WEBKIT) return WEBKIT < 603;\n\n var result = '';\n var code, chr, value, index;\n\n // generate an array with more 512 elements (Chakra and old V8 fails only in this case)\n for (code = 65; code < 76; code++) {\n chr = String.fromCharCode(code);\n\n switch (code) {\n case 66: case 69: case 70: case 72: value = 3; break;\n case 68: case 71: value = 4; break;\n default: value = 2;\n }\n\n for (index = 0; index < 47; index++) {\n test.push({ k: chr + index, v: value });\n }\n }\n\n test.sort(function (a, b) { return b.v - a.v; });\n\n for (index = 0; index < test.length; index++) {\n chr = test[index].k.charAt(0);\n if (result.charAt(result.length - 1) !== chr) result += chr;\n }\n\n return result !== 'DGBEFHACIJK';\n});\n\nvar FORCED$3 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$1 || !STABLE_SORT;\n\nvar getSortCompare = function (comparefn) {\n return function (x, y) {\n if (y === undefined) return -1;\n if (x === undefined) return 1;\n if (comparefn !== undefined) return +comparefn(x, y) || 0;\n return toString$1(x) > toString$1(y) ? 1 : -1;\n };\n};\n\n// `Array.prototype.sort` method\n// https://tc39.es/ecma262/#sec-array.prototype.sort\n$$6({ target: 'Array', proto: true, forced: FORCED$3 }, {\n sort: function sort(comparefn) {\n if (comparefn !== undefined) aCallable(comparefn);\n\n var array = toObject(this);\n\n if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);\n\n var items = [];\n var arrayLength = lengthOfArrayLike(array);\n var itemsLength, index;\n\n for (index = 0; index < arrayLength; index++) {\n if (index in array) push$1(items, array[index]);\n }\n\n internalSort(items, getSortCompare(comparefn));\n\n itemsLength = lengthOfArrayLike(items);\n index = 0;\n\n while (index < itemsLength) array[index] = items[index++];\n while (index < arrayLength) deletePropertyOrThrow(array, index++);\n\n return array;\n }\n});\n\nvar entryVirtual$4 = entryVirtual$l;\n\nvar sort$2 = entryVirtual$4('Array').sort;\n\nvar isPrototypeOf$4 = objectIsPrototypeOf;\nvar method$4 = sort$2;\n\nvar ArrayPrototype$4 = Array.prototype;\n\nvar sort$1 = function (it) {\n var own = it.sort;\n return it === ArrayPrototype$4 || (isPrototypeOf$4(ArrayPrototype$4, it) && own === ArrayPrototype$4.sort) ? method$4 : own;\n};\n\nvar parent$e = sort$1;\n\nvar sort = parent$e;\n\n(function (module) {\n\tmodule.exports = sort;\n} (sort$3));\n\nvar _sortInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(sortExports);\n\nvar keysExports = {};\nvar keys$3 = {\n get exports(){ return keysExports; },\n set exports(v){ keysExports = v; },\n};\n\nvar entryVirtual$3 = entryVirtual$l;\n\nvar keys$2 = entryVirtual$3('Array').keys;\n\nvar parent$d = keys$2;\n\nvar keys$1 = parent$d;\n\nvar classof$2 = classof$f;\nvar hasOwn$4 = hasOwnProperty_1;\nvar isPrototypeOf$3 = objectIsPrototypeOf;\nvar method$3 = keys$1;\n\nvar ArrayPrototype$3 = Array.prototype;\n\nvar DOMIterables$2 = {\n DOMTokenList: true,\n NodeList: true\n};\n\nvar keys = function (it) {\n var own = it.keys;\n return it === ArrayPrototype$3 || (isPrototypeOf$3(ArrayPrototype$3, it) && own === ArrayPrototype$3.keys)\n || hasOwn$4(DOMIterables$2, classof$2(it)) ? method$3 : own;\n};\n\n(function (module) {\n\tmodule.exports = keys;\n} (keys$3));\n\nvar _keysInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(keysExports);\n\nvar valuesExports = {};\nvar values$3 = {\n get exports(){ return valuesExports; },\n set exports(v){ valuesExports = v; },\n};\n\nvar entryVirtual$2 = entryVirtual$l;\n\nvar values$2 = entryVirtual$2('Array').values;\n\nvar parent$c = values$2;\n\nvar values$1 = parent$c;\n\nvar classof$1 = classof$f;\nvar hasOwn$3 = hasOwnProperty_1;\nvar isPrototypeOf$2 = objectIsPrototypeOf;\nvar method$2 = values$1;\n\nvar ArrayPrototype$2 = Array.prototype;\n\nvar DOMIterables$1 = {\n DOMTokenList: true,\n NodeList: true\n};\n\nvar values = function (it) {\n var own = it.values;\n return it === ArrayPrototype$2 || (isPrototypeOf$2(ArrayPrototype$2, it) && own === ArrayPrototype$2.values)\n || hasOwn$3(DOMIterables$1, classof$1(it)) ? method$2 : own;\n};\n\n(function (module) {\n\tmodule.exports = values;\n} (values$3));\n\nvar _valuesInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(valuesExports);\n\nvar entriesExports = {};\nvar entries$3 = {\n get exports(){ return entriesExports; },\n set exports(v){ entriesExports = v; },\n};\n\nvar entryVirtual$1 = entryVirtual$l;\n\nvar entries$2 = entryVirtual$1('Array').entries;\n\nvar parent$b = entries$2;\n\nvar entries$1 = parent$b;\n\nvar classof = classof$f;\nvar hasOwn$2 = hasOwnProperty_1;\nvar isPrototypeOf$1 = objectIsPrototypeOf;\nvar method$1 = entries$1;\n\nvar ArrayPrototype$1 = Array.prototype;\n\nvar DOMIterables = {\n DOMTokenList: true,\n NodeList: true\n};\n\nvar entries = function (it) {\n var own = it.entries;\n return it === ArrayPrototype$1 || (isPrototypeOf$1(ArrayPrototype$1, it) && own === ArrayPrototype$1.entries)\n || hasOwn$2(DOMIterables, classof(it)) ? method$1 : own;\n};\n\n(function (module) {\n\tmodule.exports = entries;\n} (entries$3));\n\nvar _entriesInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(entriesExports);\n\nvar constructExports = {};\nvar construct$2 = {\n get exports(){ return constructExports; },\n set exports(v){ constructExports = v; },\n};\n\nvar $$5 = _export;\nvar getBuiltIn = getBuiltIn$f;\nvar apply = functionApply;\nvar bind = functionBind;\nvar aConstructor = aConstructor$2;\nvar anObject$2 = anObject$f;\nvar isObject$3 = isObject$m;\nvar create = objectCreate;\nvar fails$3 = fails$z;\n\nvar nativeConstruct = getBuiltIn('Reflect', 'construct');\nvar ObjectPrototype = Object.prototype;\nvar push = [].push;\n\n// `Reflect.construct` method\n// https://tc39.es/ecma262/#sec-reflect.construct\n// MS Edge supports only 2 arguments and argumentsList argument is optional\n// FF Nightly sets third argument as `new.target`, but does not create `this` from it\nvar NEW_TARGET_BUG = fails$3(function () {\n function F() { /* empty */ }\n return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F);\n});\n\nvar ARGS_BUG = !fails$3(function () {\n nativeConstruct(function () { /* empty */ });\n});\n\nvar FORCED$2 = NEW_TARGET_BUG || ARGS_BUG;\n\n$$5({ target: 'Reflect', stat: true, forced: FORCED$2, sham: FORCED$2 }, {\n construct: function construct(Target, args /* , newTarget */) {\n aConstructor(Target);\n anObject$2(args);\n var newTarget = arguments.length < 3 ? Target : aConstructor(arguments[2]);\n if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget);\n if (Target == newTarget) {\n // w/o altered newTarget, optimization for 0-4 arguments\n switch (args.length) {\n case 0: return new Target();\n case 1: return new Target(args[0]);\n case 2: return new Target(args[0], args[1]);\n case 3: return new Target(args[0], args[1], args[2]);\n case 4: return new Target(args[0], args[1], args[2], args[3]);\n }\n // w/o altered newTarget, lot of arguments case\n var $args = [null];\n apply(push, $args, args);\n return new (apply(bind, Target, $args))();\n }\n // with altered newTarget, not support built-in constructors\n var proto = newTarget.prototype;\n var instance = create(isObject$3(proto) ? proto : ObjectPrototype);\n var result = apply(Target, instance, args);\n return isObject$3(result) ? result : instance;\n }\n});\n\nvar path$6 = path$z;\n\nvar construct$1 = path$6.Reflect.construct;\n\nvar parent$a = construct$1;\n\nvar construct = parent$a;\n\n(function (module) {\n\tmodule.exports = construct;\n} (construct$2));\n\nvar _Reflect$construct = /*@__PURE__*/getDefaultExportFromCjs(constructExports);\n\n// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nfunction rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}\n\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nfunction unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();\n}\n\nconst randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nvar native = {\n randomUUID\n};\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nvar _Symbol$iterator;\nfunction ownKeys$4(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor$1(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var _context32, _context33; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context32 = ownKeys$4(Object(source), !0)).call(_context32, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context33 = ownKeys$4(Object(source))).call(_context33, function (key) { _Object$defineProperty$1(target, key, _Object$getOwnPropertyDescriptor$1(source, key)); }); } return target; }\nfunction _createSuper$t(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$t(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$t() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nfunction _createForOfIteratorHelper$6(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray$6(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray$6(o, minLen) { var _context31; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray$6(o, minLen); var n = _sliceInstanceProperty(_context31 = Object.prototype.toString.call(o)).call(_context31, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$6(o, minLen); }\nfunction _arrayLikeToArray$6(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n/**\r\n * Create new data pipe.\r\n *\r\n * @param from - The source data set or data view.\r\n * @remarks\r\n * Example usage:\r\n * ```typescript\r\n * interface AppItem {\r\n * whoami: string;\r\n * appData: unknown;\r\n * visData: VisItem;\r\n * }\r\n * interface VisItem {\r\n * id: number;\r\n * label: string;\r\n * color: string;\r\n * x: number;\r\n * y: number;\r\n * }\r\n *\r\n * const ds1 = new DataSet([], { fieldId: \"whoami\" });\r\n * const ds2 = new DataSet();\r\n *\r\n * const pipe = createNewDataPipeFrom(ds1)\r\n * .filter((item): boolean => item.enabled === true)\r\n * .map((item): VisItem => item.visData)\r\n * .to(ds2);\r\n *\r\n * pipe.start();\r\n * ```\r\n * @returns A factory whose methods can be used to configure the pipe.\r\n */\nfunction createNewDataPipeFrom(from) {\n return new DataPipeUnderConstruction(from);\n}\n/**\r\n * Internal implementation of the pipe. This should be accessible only through\r\n * `createNewDataPipeFrom` from the outside.\r\n *\r\n * @typeParam SI - Source item type.\r\n * @typeParam SP - Source item type's id property name.\r\n * @typeParam TI - Target item type.\r\n * @typeParam TP - Target item type's id property name.\r\n */\nvar SimpleDataPipe = /*#__PURE__*/function () {\n /**\r\n * Bound listeners for use with `DataInterface['on' | 'off']`.\r\n */\n\n /**\r\n * Create a new data pipe.\r\n *\r\n * @param _source - The data set or data view that will be observed.\r\n * @param _transformers - An array of transforming functions to be used to\r\n * filter or transform the items in the pipe.\r\n * @param _target - The data set or data view that will receive the items.\r\n */\n function SimpleDataPipe(_source, _transformers, _target) {\n var _context, _context2, _context3;\n _classCallCheck(this, SimpleDataPipe);\n _defineProperty(this, \"_source\", void 0);\n _defineProperty(this, \"_transformers\", void 0);\n _defineProperty(this, \"_target\", void 0);\n _defineProperty(this, \"_listeners\", {\n add: _bindInstanceProperty$1(_context = this._add).call(_context, this),\n remove: _bindInstanceProperty$1(_context2 = this._remove).call(_context2, this),\n update: _bindInstanceProperty$1(_context3 = this._update).call(_context3, this)\n });\n this._source = _source;\n this._transformers = _transformers;\n this._target = _target;\n }\n /** @inheritDoc */\n _createClass(SimpleDataPipe, [{\n key: \"all\",\n value: function all() {\n this._target.update(this._transformItems(this._source.get()));\n return this;\n }\n /** @inheritDoc */\n }, {\n key: \"start\",\n value: function start() {\n this._source.on(\"add\", this._listeners.add);\n this._source.on(\"remove\", this._listeners.remove);\n this._source.on(\"update\", this._listeners.update);\n return this;\n }\n /** @inheritDoc */\n }, {\n key: \"stop\",\n value: function stop() {\n this._source.off(\"add\", this._listeners.add);\n this._source.off(\"remove\", this._listeners.remove);\n this._source.off(\"update\", this._listeners.update);\n return this;\n }\n /**\r\n * Apply the transformers to the items.\r\n *\r\n * @param items - The items to be transformed.\r\n * @returns The transformed items.\r\n */\n }, {\n key: \"_transformItems\",\n value: function _transformItems(items) {\n var _context4;\n return _reduceInstanceProperty(_context4 = this._transformers).call(_context4, function (items, transform) {\n return transform(items);\n }, items);\n }\n /**\r\n * Handle an add event.\r\n *\r\n * @param _name - Ignored.\r\n * @param payload - The payload containing the ids of the added items.\r\n */\n }, {\n key: \"_add\",\n value: function _add(_name, payload) {\n if (payload == null) {\n return;\n }\n this._target.add(this._transformItems(this._source.get(payload.items)));\n }\n /**\r\n * Handle an update event.\r\n *\r\n * @param _name - Ignored.\r\n * @param payload - The payload containing the ids of the updated items.\r\n */\n }, {\n key: \"_update\",\n value: function _update(_name, payload) {\n if (payload == null) {\n return;\n }\n this._target.update(this._transformItems(this._source.get(payload.items)));\n }\n /**\r\n * Handle a remove event.\r\n *\r\n * @param _name - Ignored.\r\n * @param payload - The payload containing the data of the removed items.\r\n */\n }, {\n key: \"_remove\",\n value: function _remove(_name, payload) {\n if (payload == null) {\n return;\n }\n this._target.remove(this._transformItems(payload.oldData));\n }\n }]);\n return SimpleDataPipe;\n}();\n/**\r\n * Internal implementation of the pipe factory. This should be accessible\r\n * only through `createNewDataPipeFrom` from the outside.\r\n *\r\n * @typeParam TI - Target item type.\r\n * @typeParam TP - Target item type's id property name.\r\n */\nvar DataPipeUnderConstruction = /*#__PURE__*/function () {\n /**\r\n * Array transformers used to transform items within the pipe. This is typed\r\n * as any for the sake of simplicity.\r\n */\n\n /**\r\n * Create a new data pipe factory. This is an internal constructor that\r\n * should never be called from outside of this file.\r\n *\r\n * @param _source - The source data set or data view for this pipe.\r\n */\n function DataPipeUnderConstruction(_source) {\n _classCallCheck(this, DataPipeUnderConstruction);\n _defineProperty(this, \"_source\", void 0);\n _defineProperty(this, \"_transformers\", []);\n this._source = _source;\n }\n /**\r\n * Filter the items.\r\n *\r\n * @param callback - A filtering function that returns true if given item\r\n * should be piped and false if not.\r\n * @returns This factory for further configuration.\r\n */\n _createClass(DataPipeUnderConstruction, [{\n key: \"filter\",\n value: function filter(callback) {\n this._transformers.push(function (input) {\n return _filterInstanceProperty(input).call(input, callback);\n });\n return this;\n }\n /**\r\n * Map each source item to a new type.\r\n *\r\n * @param callback - A mapping function that takes a source item and returns\r\n * corresponding mapped item.\r\n * @typeParam TI - Target item type.\r\n * @typeParam TP - Target item type's id property name.\r\n * @returns This factory for further configuration.\r\n */\n }, {\n key: \"map\",\n value: function map(callback) {\n this._transformers.push(function (input) {\n return _mapInstanceProperty(input).call(input, callback);\n });\n return this;\n }\n /**\r\n * Map each source item to zero or more items of a new type.\r\n *\r\n * @param callback - A mapping function that takes a source item and returns\r\n * an array of corresponding mapped items.\r\n * @typeParam TI - Target item type.\r\n * @typeParam TP - Target item type's id property name.\r\n * @returns This factory for further configuration.\r\n */\n }, {\n key: \"flatMap\",\n value: function flatMap(callback) {\n this._transformers.push(function (input) {\n return _flatMapInstanceProperty(input).call(input, callback);\n });\n return this;\n }\n /**\r\n * Connect this pipe to given data set.\r\n *\r\n * @param target - The data set that will receive the items from this pipe.\r\n * @returns The pipe connected between given data sets and performing\r\n * configured transformation on the processed items.\r\n */\n }, {\n key: \"to\",\n value: function to(target) {\n return new SimpleDataPipe(this._source, this._transformers, target);\n }\n }]);\n return DataPipeUnderConstruction;\n}();\n/**\r\n * Determine whether a value can be used as an id.\r\n *\r\n * @param value - Input value of unknown type.\r\n * @returns True if the value is valid id, false otherwise.\r\n */\nfunction isId(value) {\n return typeof value === \"string\" || typeof value === \"number\";\n}\n\n/**\r\n * A queue.\r\n *\r\n * @typeParam T - The type of method names to be replaced by queued versions.\r\n */\nvar Queue = /*#__PURE__*/function () {\n /** Delay in milliseconds. If defined the queue will be periodically flushed. */\n\n /** Maximum number of entries in the queue before it will be flushed. */\n\n /**\r\n * Construct a new Queue.\r\n *\r\n * @param options - Queue configuration.\r\n */\n function Queue(options) {\n _classCallCheck(this, Queue);\n _defineProperty(this, \"delay\", void 0);\n _defineProperty(this, \"max\", void 0);\n _defineProperty(this, \"_queue\", []);\n _defineProperty(this, \"_timeout\", null);\n _defineProperty(this, \"_extended\", null);\n // options\n this.delay = null;\n this.max = Infinity;\n this.setOptions(options);\n }\n /**\r\n * Update the configuration of the queue.\r\n *\r\n * @param options - Queue configuration.\r\n */\n _createClass(Queue, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options && typeof options.delay !== \"undefined\") {\n this.delay = options.delay;\n }\n if (options && typeof options.max !== \"undefined\") {\n this.max = options.max;\n }\n this._flushIfNeeded();\n }\n /**\r\n * Extend an object with queuing functionality.\r\n * The object will be extended with a function flush, and the methods provided in options.replace will be replaced with queued ones.\r\n *\r\n * @param object - The object to be extended.\r\n * @param options - Additional options.\r\n * @returns The created queue.\r\n */\n }, {\n key: \"destroy\",\n value:\n /**\r\n * Destroy the queue. The queue will first flush all queued actions, and in case it has extended an object, will restore the original object.\r\n */\n function destroy() {\n this.flush();\n if (this._extended) {\n var object = this._extended.object;\n var methods = this._extended.methods;\n for (var i = 0; i < methods.length; i++) {\n var method = methods[i];\n if (method.original) {\n // @TODO: better solution?\n object[method.name] = method.original;\n } else {\n // @TODO: better solution?\n delete object[method.name];\n }\n }\n this._extended = null;\n }\n }\n /**\r\n * Replace a method on an object with a queued version.\r\n *\r\n * @param object - Object having the method.\r\n * @param method - The method name.\r\n */\n }, {\n key: \"replace\",\n value: function replace(object, method) {\n /* eslint-disable-next-line @typescript-eslint/no-this-alias -- Function this is necessary in the function bellow, so class this has to be saved into a variable here. */\n var me = this;\n var original = object[method];\n if (!original) {\n throw new Error(\"Method \" + method + \" undefined\");\n }\n object[method] = function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n // add this call to the queue\n me.queue({\n args: args,\n fn: original,\n context: this\n });\n };\n }\n /**\r\n * Queue a call.\r\n *\r\n * @param entry - The function or entry to be queued.\r\n */\n }, {\n key: \"queue\",\n value: function queue(entry) {\n if (typeof entry === \"function\") {\n this._queue.push({\n fn: entry\n });\n } else {\n this._queue.push(entry);\n }\n this._flushIfNeeded();\n }\n /**\r\n * Check whether the queue needs to be flushed.\r\n */\n }, {\n key: \"_flushIfNeeded\",\n value: function _flushIfNeeded() {\n var _this = this;\n // flush when the maximum is exceeded.\n if (this._queue.length > this.max) {\n this.flush();\n }\n // flush after a period of inactivity when a delay is configured\n if (this._timeout != null) {\n clearTimeout(this._timeout);\n this._timeout = null;\n }\n if (this.queue.length > 0 && typeof this.delay === \"number\") {\n this._timeout = _setTimeout(function () {\n _this.flush();\n }, this.delay);\n }\n }\n /**\r\n * Flush all queued calls\r\n */\n }, {\n key: \"flush\",\n value: function flush() {\n var _context5, _context6;\n _forEachInstanceProperty(_context5 = _spliceInstanceProperty(_context6 = this._queue).call(_context6, 0)).call(_context5, function (entry) {\n entry.fn.apply(entry.context || entry.fn, entry.args || []);\n });\n }\n }], [{\n key: \"extend\",\n value: function extend(object, options) {\n var queue = new Queue(options);\n if (object.flush !== undefined) {\n throw new Error(\"Target object already has a property flush\");\n }\n object.flush = function () {\n queue.flush();\n };\n var methods = [{\n name: \"flush\",\n original: undefined\n }];\n if (options && options.replace) {\n for (var i = 0; i < options.replace.length; i++) {\n var name = options.replace[i];\n methods.push({\n name: name,\n // @TODO: better solution?\n original: object[name]\n });\n // @TODO: better solution?\n queue.replace(object, name);\n }\n }\n queue._extended = {\n object: object,\n methods: methods\n };\n return queue;\n }\n }]);\n return Queue;\n}();\n/**\r\n * {@link DataSet} code that can be reused in {@link DataView} or other similar implementations of {@link DataInterface}.\r\n *\r\n * @typeParam Item - Item type that may or may not have an id.\r\n * @typeParam IdProp - Name of the property that contains the id.\r\n */\nvar DataSetPart = /*#__PURE__*/function () {\n function DataSetPart() {\n _classCallCheck(this, DataSetPart);\n _defineProperty(this, \"_subscribers\", {\n \"*\": [],\n add: [],\n remove: [],\n update: []\n });\n /**\r\n * @deprecated Use on instead (PS: DataView.subscribe === DataView.on).\r\n */\n _defineProperty(this, \"subscribe\", DataSetPart.prototype.on);\n /**\r\n * @deprecated Use off instead (PS: DataView.unsubscribe === DataView.off).\r\n */\n _defineProperty(this, \"unsubscribe\", DataSetPart.prototype.off);\n }\n _createClass(DataSetPart, [{\n key: \"_trigger\",\n value:\n /**\r\n * Trigger an event\r\n *\r\n * @param event - Event name.\r\n * @param payload - Event payload.\r\n * @param senderId - Id of the sender.\r\n */\n function _trigger(event, payload, senderId) {\n var _context7, _context8;\n if (event === \"*\") {\n throw new Error(\"Cannot trigger event *\");\n }\n _forEachInstanceProperty(_context7 = _concatInstanceProperty(_context8 = []).call(_context8, _toConsumableArray(this._subscribers[event]), _toConsumableArray(this._subscribers[\"*\"]))).call(_context7, function (subscriber) {\n subscriber(event, payload, senderId != null ? senderId : null);\n });\n }\n /**\r\n * Subscribe to an event, add an event listener.\r\n *\r\n * @remarks Non-function callbacks are ignored.\r\n * @param event - Event name.\r\n * @param callback - Callback method.\r\n */\n }, {\n key: \"on\",\n value: function on(event, callback) {\n if (typeof callback === \"function\") {\n this._subscribers[event].push(callback);\n }\n // @TODO: Maybe throw for invalid callbacks?\n }\n /**\r\n * Unsubscribe from an event, remove an event listener.\r\n *\r\n * @remarks If the same callback was subscribed more than once **all** occurences will be removed.\r\n * @param event - Event name.\r\n * @param callback - Callback method.\r\n */\n }, {\n key: \"off\",\n value: function off(event, callback) {\n var _context9;\n this._subscribers[event] = _filterInstanceProperty(_context9 = this._subscribers[event]).call(_context9, function (subscriber) {\n return subscriber !== callback;\n });\n }\n }]);\n return DataSetPart;\n}();\n/**\r\n * Data stream\r\n *\r\n * @remarks\r\n * {@link DataStream} offers an always up to date stream of items from a {@link DataSet} or {@link DataView}.\r\n * That means that the stream is evaluated at the time of iteration, conversion to another data type or when {@link cache} is called, not when the {@link DataStream} was created.\r\n * Multiple invocations of for example {@link toItemArray} may yield different results (if the data source like for example {@link DataSet} gets modified).\r\n * @typeParam Item - The item type this stream is going to work with.\r\n */\n_Symbol$iterator = _Symbol$iterator2;\nvar DataStream = /*#__PURE__*/function () {\n /**\r\n * Create a new data stream.\r\n *\r\n * @param pairs - The id, item pairs.\r\n */\n function DataStream(pairs) {\n _classCallCheck(this, DataStream);\n _defineProperty(this, \"_pairs\", void 0);\n this._pairs = pairs;\n }\n /**\r\n * Return an iterable of key, value pairs for every entry in the stream.\r\n */\n _createClass(DataStream, [{\n key: _Symbol$iterator,\n value:\n /*#__PURE__*/\n regenerator.mark(function value() {\n var _iterator, _step, _step$value, id, item;\n return regenerator.wrap(function value$(_context10) {\n while (1) switch (_context10.prev = _context10.next) {\n case 0:\n _iterator = _createForOfIteratorHelper$6(this._pairs);\n _context10.prev = 1;\n _iterator.s();\n case 3:\n if ((_step = _iterator.n()).done) {\n _context10.next = 9;\n break;\n }\n _step$value = _slicedToArray(_step.value, 2), id = _step$value[0], item = _step$value[1];\n _context10.next = 7;\n return [id, item];\n case 7:\n _context10.next = 3;\n break;\n case 9:\n _context10.next = 14;\n break;\n case 11:\n _context10.prev = 11;\n _context10.t0 = _context10[\"catch\"](1);\n _iterator.e(_context10.t0);\n case 14:\n _context10.prev = 14;\n _iterator.f();\n return _context10.finish(14);\n case 17:\n case \"end\":\n return _context10.stop();\n }\n }, value, this, [[1, 11, 14, 17]]);\n })\n /**\r\n * Return an iterable of key, value pairs for every entry in the stream.\r\n */\n }, {\n key: \"entries\",\n value:\n /*#__PURE__*/\n regenerator.mark(function entries() {\n var _iterator2, _step2, _step2$value, id, item;\n return regenerator.wrap(function entries$(_context11) {\n while (1) switch (_context11.prev = _context11.next) {\n case 0:\n _iterator2 = _createForOfIteratorHelper$6(this._pairs);\n _context11.prev = 1;\n _iterator2.s();\n case 3:\n if ((_step2 = _iterator2.n()).done) {\n _context11.next = 9;\n break;\n }\n _step2$value = _slicedToArray(_step2.value, 2), id = _step2$value[0], item = _step2$value[1];\n _context11.next = 7;\n return [id, item];\n case 7:\n _context11.next = 3;\n break;\n case 9:\n _context11.next = 14;\n break;\n case 11:\n _context11.prev = 11;\n _context11.t0 = _context11[\"catch\"](1);\n _iterator2.e(_context11.t0);\n case 14:\n _context11.prev = 14;\n _iterator2.f();\n return _context11.finish(14);\n case 17:\n case \"end\":\n return _context11.stop();\n }\n }, entries, this, [[1, 11, 14, 17]]);\n })\n /**\r\n * Return an iterable of keys in the stream.\r\n */\n }, {\n key: \"keys\",\n value:\n /*#__PURE__*/\n regenerator.mark(function keys() {\n var _iterator3, _step3, _step3$value, id;\n return regenerator.wrap(function keys$(_context12) {\n while (1) switch (_context12.prev = _context12.next) {\n case 0:\n _iterator3 = _createForOfIteratorHelper$6(this._pairs);\n _context12.prev = 1;\n _iterator3.s();\n case 3:\n if ((_step3 = _iterator3.n()).done) {\n _context12.next = 9;\n break;\n }\n _step3$value = _slicedToArray(_step3.value, 1), id = _step3$value[0];\n _context12.next = 7;\n return id;\n case 7:\n _context12.next = 3;\n break;\n case 9:\n _context12.next = 14;\n break;\n case 11:\n _context12.prev = 11;\n _context12.t0 = _context12[\"catch\"](1);\n _iterator3.e(_context12.t0);\n case 14:\n _context12.prev = 14;\n _iterator3.f();\n return _context12.finish(14);\n case 17:\n case \"end\":\n return _context12.stop();\n }\n }, keys, this, [[1, 11, 14, 17]]);\n })\n /**\r\n * Return an iterable of values in the stream.\r\n */\n }, {\n key: \"values\",\n value:\n /*#__PURE__*/\n regenerator.mark(function values() {\n var _iterator4, _step4, _step4$value, item;\n return regenerator.wrap(function values$(_context13) {\n while (1) switch (_context13.prev = _context13.next) {\n case 0:\n _iterator4 = _createForOfIteratorHelper$6(this._pairs);\n _context13.prev = 1;\n _iterator4.s();\n case 3:\n if ((_step4 = _iterator4.n()).done) {\n _context13.next = 9;\n break;\n }\n _step4$value = _slicedToArray(_step4.value, 2), item = _step4$value[1];\n _context13.next = 7;\n return item;\n case 7:\n _context13.next = 3;\n break;\n case 9:\n _context13.next = 14;\n break;\n case 11:\n _context13.prev = 11;\n _context13.t0 = _context13[\"catch\"](1);\n _iterator4.e(_context13.t0);\n case 14:\n _context13.prev = 14;\n _iterator4.f();\n return _context13.finish(14);\n case 17:\n case \"end\":\n return _context13.stop();\n }\n }, values, this, [[1, 11, 14, 17]]);\n })\n /**\r\n * Return an array containing all the ids in this stream.\r\n *\r\n * @remarks\r\n * The array may contain duplicities.\r\n * @returns The array with all ids from this stream.\r\n */\n }, {\n key: \"toIdArray\",\n value: function toIdArray() {\n var _context14;\n return _mapInstanceProperty(_context14 = _toConsumableArray(this._pairs)).call(_context14, function (pair) {\n return pair[0];\n });\n }\n /**\r\n * Return an array containing all the items in this stream.\r\n *\r\n * @remarks\r\n * The array may contain duplicities.\r\n * @returns The array with all items from this stream.\r\n */\n }, {\n key: \"toItemArray\",\n value: function toItemArray() {\n var _context15;\n return _mapInstanceProperty(_context15 = _toConsumableArray(this._pairs)).call(_context15, function (pair) {\n return pair[1];\n });\n }\n /**\r\n * Return an array containing all the entries in this stream.\r\n *\r\n * @remarks\r\n * The array may contain duplicities.\r\n * @returns The array with all entries from this stream.\r\n */\n }, {\n key: \"toEntryArray\",\n value: function toEntryArray() {\n return _toConsumableArray(this._pairs);\n }\n /**\r\n * Return an object map containing all the items in this stream accessible by ids.\r\n *\r\n * @remarks\r\n * In case of duplicate ids (coerced to string so `7 == '7'`) the last encoutered appears in the returned object.\r\n * @returns The object map of all id → item pairs from this stream.\r\n */\n }, {\n key: \"toObjectMap\",\n value: function toObjectMap() {\n var map = _Object$create$1(null);\n var _iterator5 = _createForOfIteratorHelper$6(this._pairs),\n _step5;\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var _step5$value = _slicedToArray(_step5.value, 2),\n id = _step5$value[0],\n item = _step5$value[1];\n map[id] = item;\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n return map;\n }\n /**\r\n * Return a map containing all the items in this stream accessible by ids.\r\n *\r\n * @returns The map of all id → item pairs from this stream.\r\n */\n }, {\n key: \"toMap\",\n value: function toMap() {\n return new _Map(this._pairs);\n }\n /**\r\n * Return a set containing all the (unique) ids in this stream.\r\n *\r\n * @returns The set of all ids from this stream.\r\n */\n }, {\n key: \"toIdSet\",\n value: function toIdSet() {\n return new _Set(this.toIdArray());\n }\n /**\r\n * Return a set containing all the (unique) items in this stream.\r\n *\r\n * @returns The set of all items from this stream.\r\n */\n }, {\n key: \"toItemSet\",\n value: function toItemSet() {\n return new _Set(this.toItemArray());\n }\n /**\r\n * Cache the items from this stream.\r\n *\r\n * @remarks\r\n * This method allows for items to be fetched immediatelly and used (possibly multiple times) later.\r\n * It can also be used to optimize performance as {@link DataStream} would otherwise reevaluate everything upon each iteration.\r\n *\r\n * ## Example\r\n * ```javascript\r\n * const ds = new DataSet([…])\r\n *\r\n * const cachedStream = ds.stream()\r\n * .filter(…)\r\n * .sort(…)\r\n * .map(…)\r\n * .cached(…) // Data are fetched, processed and cached here.\r\n *\r\n * ds.clear()\r\n * chachedStream // Still has all the items.\r\n * ```\r\n * @returns A new {@link DataStream} with cached items (detached from the original {@link DataSet}).\r\n */\n }, {\n key: \"cache\",\n value: function cache() {\n return new DataStream(_toConsumableArray(this._pairs));\n }\n /**\r\n * Get the distinct values of given property.\r\n *\r\n * @param callback - The function that picks and possibly converts the property.\r\n * @typeParam T - The type of the distinct value.\r\n * @returns A set of all distinct properties.\r\n */\n }, {\n key: \"distinct\",\n value: function distinct(callback) {\n var set = new _Set();\n var _iterator6 = _createForOfIteratorHelper$6(this._pairs),\n _step6;\n try {\n for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {\n var _step6$value = _slicedToArray(_step6.value, 2),\n id = _step6$value[0],\n item = _step6$value[1];\n set.add(callback(item, id));\n }\n } catch (err) {\n _iterator6.e(err);\n } finally {\n _iterator6.f();\n }\n return set;\n }\n /**\r\n * Filter the items of the stream.\r\n *\r\n * @param callback - The function that decides whether an item will be included.\r\n * @returns A new data stream with the filtered items.\r\n */\n }, {\n key: \"filter\",\n value: function filter(callback) {\n var pairs = this._pairs;\n return new DataStream(_defineProperty({}, _Symbol$iterator2, /*#__PURE__*/regenerator.mark(function _callee() {\n var _iterator7, _step7, _step7$value, id, item;\n return regenerator.wrap(function _callee$(_context16) {\n while (1) switch (_context16.prev = _context16.next) {\n case 0:\n _iterator7 = _createForOfIteratorHelper$6(pairs);\n _context16.prev = 1;\n _iterator7.s();\n case 3:\n if ((_step7 = _iterator7.n()).done) {\n _context16.next = 10;\n break;\n }\n _step7$value = _slicedToArray(_step7.value, 2), id = _step7$value[0], item = _step7$value[1];\n if (!callback(item, id)) {\n _context16.next = 8;\n break;\n }\n _context16.next = 8;\n return [id, item];\n case 8:\n _context16.next = 3;\n break;\n case 10:\n _context16.next = 15;\n break;\n case 12:\n _context16.prev = 12;\n _context16.t0 = _context16[\"catch\"](1);\n _iterator7.e(_context16.t0);\n case 15:\n _context16.prev = 15;\n _iterator7.f();\n return _context16.finish(15);\n case 18:\n case \"end\":\n return _context16.stop();\n }\n }, _callee, null, [[1, 12, 15, 18]]);\n })));\n }\n /**\r\n * Execute a callback for each item of the stream.\r\n *\r\n * @param callback - The function that will be invoked for each item.\r\n */\n }, {\n key: \"forEach\",\n value: function forEach(callback) {\n var _iterator8 = _createForOfIteratorHelper$6(this._pairs),\n _step8;\n try {\n for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {\n var _step8$value = _slicedToArray(_step8.value, 2),\n id = _step8$value[0],\n item = _step8$value[1];\n callback(item, id);\n }\n } catch (err) {\n _iterator8.e(err);\n } finally {\n _iterator8.f();\n }\n }\n /**\r\n * Map the items into a different type.\r\n *\r\n * @param callback - The function that does the conversion.\r\n * @typeParam Mapped - The type of the item after mapping.\r\n * @returns A new data stream with the mapped items.\r\n */\n }, {\n key: \"map\",\n value: function map(callback) {\n var pairs = this._pairs;\n return new DataStream(_defineProperty({}, _Symbol$iterator2, /*#__PURE__*/regenerator.mark(function _callee2() {\n var _iterator9, _step9, _step9$value, id, item;\n return regenerator.wrap(function _callee2$(_context17) {\n while (1) switch (_context17.prev = _context17.next) {\n case 0:\n _iterator9 = _createForOfIteratorHelper$6(pairs);\n _context17.prev = 1;\n _iterator9.s();\n case 3:\n if ((_step9 = _iterator9.n()).done) {\n _context17.next = 9;\n break;\n }\n _step9$value = _slicedToArray(_step9.value, 2), id = _step9$value[0], item = _step9$value[1];\n _context17.next = 7;\n return [id, callback(item, id)];\n case 7:\n _context17.next = 3;\n break;\n case 9:\n _context17.next = 14;\n break;\n case 11:\n _context17.prev = 11;\n _context17.t0 = _context17[\"catch\"](1);\n _iterator9.e(_context17.t0);\n case 14:\n _context17.prev = 14;\n _iterator9.f();\n return _context17.finish(14);\n case 17:\n case \"end\":\n return _context17.stop();\n }\n }, _callee2, null, [[1, 11, 14, 17]]);\n })));\n }\n /**\r\n * Get the item with the maximum value of given property.\r\n *\r\n * @param callback - The function that picks and possibly converts the property.\r\n * @returns The item with the maximum if found otherwise null.\r\n */\n }, {\n key: \"max\",\n value: function max(callback) {\n var iter = _getIterator(this._pairs);\n var curr = iter.next();\n if (curr.done) {\n return null;\n }\n var maxItem = curr.value[1];\n var maxValue = callback(curr.value[1], curr.value[0]);\n while (!(curr = iter.next()).done) {\n var _curr$value = _slicedToArray(curr.value, 2),\n id = _curr$value[0],\n item = _curr$value[1];\n var _value = callback(item, id);\n if (_value > maxValue) {\n maxValue = _value;\n maxItem = item;\n }\n }\n return maxItem;\n }\n /**\r\n * Get the item with the minimum value of given property.\r\n *\r\n * @param callback - The function that picks and possibly converts the property.\r\n * @returns The item with the minimum if found otherwise null.\r\n */\n }, {\n key: \"min\",\n value: function min(callback) {\n var iter = _getIterator(this._pairs);\n var curr = iter.next();\n if (curr.done) {\n return null;\n }\n var minItem = curr.value[1];\n var minValue = callback(curr.value[1], curr.value[0]);\n while (!(curr = iter.next()).done) {\n var _curr$value2 = _slicedToArray(curr.value, 2),\n id = _curr$value2[0],\n item = _curr$value2[1];\n var _value2 = callback(item, id);\n if (_value2 < minValue) {\n minValue = _value2;\n minItem = item;\n }\n }\n return minItem;\n }\n /**\r\n * Reduce the items into a single value.\r\n *\r\n * @param callback - The function that does the reduction.\r\n * @param accumulator - The initial value of the accumulator.\r\n * @typeParam T - The type of the accumulated value.\r\n * @returns The reduced value.\r\n */\n }, {\n key: \"reduce\",\n value: function reduce(callback, accumulator) {\n var _iterator10 = _createForOfIteratorHelper$6(this._pairs),\n _step10;\n try {\n for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {\n var _step10$value = _slicedToArray(_step10.value, 2),\n id = _step10$value[0],\n item = _step10$value[1];\n accumulator = callback(accumulator, item, id);\n }\n } catch (err) {\n _iterator10.e(err);\n } finally {\n _iterator10.f();\n }\n return accumulator;\n }\n /**\r\n * Sort the items.\r\n *\r\n * @param callback - Item comparator.\r\n * @returns A new stream with sorted items.\r\n */\n }, {\n key: \"sort\",\n value: function sort(callback) {\n var _this2 = this;\n return new DataStream(_defineProperty({}, _Symbol$iterator2, function () {\n var _context18;\n return _getIterator(_sortInstanceProperty(_context18 = _toConsumableArray(_this2._pairs)).call(_context18, function (_ref, _ref2) {\n var _ref3 = _slicedToArray(_ref, 2),\n idA = _ref3[0],\n itemA = _ref3[1];\n var _ref4 = _slicedToArray(_ref2, 2),\n idB = _ref4[0],\n itemB = _ref4[1];\n return callback(itemA, itemB, idA, idB);\n }));\n }));\n }\n }]);\n return DataStream;\n}();\n/**\r\n * Add an id to given item if it doesn't have one already.\r\n *\r\n * @remarks\r\n * The item will be modified.\r\n * @param item - The item that will have an id after a call to this function.\r\n * @param idProp - The key of the id property.\r\n * @typeParam Item - Item type that may or may not have an id.\r\n * @typeParam IdProp - Name of the property that contains the id.\r\n * @returns true\r\n */\nfunction ensureFullItem(item, idProp) {\n if (item[idProp] == null) {\n // generate an id\n item[idProp] = v4();\n }\n return item;\n}\n/**\r\n * # DataSet\r\n *\r\n * Vis.js comes with a flexible DataSet, which can be used to hold and\r\n * manipulate unstructured data and listen for changes in the data. The DataSet\r\n * is key/value based. Data items can be added, updated and removed from the\r\n * DataSet, and one can subscribe to changes in the DataSet. The data in the\r\n * DataSet can be filtered and ordered. Data can be normalized when appending it\r\n * to the DataSet as well.\r\n *\r\n * ## Example\r\n *\r\n * The following example shows how to use a DataSet.\r\n *\r\n * ```javascript\r\n * // create a DataSet\r\n * var options = {};\r\n * var data = new vis.DataSet(options);\r\n *\r\n * // add items\r\n * // note that the data items can contain different properties and data formats\r\n * data.add([\r\n * {id: 1, text: 'item 1', date: new Date(2013, 6, 20), group: 1, first: true},\r\n * {id: 2, text: 'item 2', date: '2013-06-23', group: 2},\r\n * {id: 3, text: 'item 3', date: '2013-06-25', group: 2},\r\n * {id: 4, text: 'item 4'}\r\n * ]);\r\n *\r\n * // subscribe to any change in the DataSet\r\n * data.on('*', function (event, properties, senderId) {\r\n * console.log('event', event, properties);\r\n * });\r\n *\r\n * // update an existing item\r\n * data.update({id: 2, group: 1});\r\n *\r\n * // remove an item\r\n * data.remove(4);\r\n *\r\n * // get all ids\r\n * var ids = data.getIds();\r\n * console.log('ids', ids);\r\n *\r\n * // get a specific item\r\n * var item1 = data.get(1);\r\n * console.log('item1', item1);\r\n *\r\n * // retrieve a filtered subset of the data\r\n * var items = data.get({\r\n * filter: function (item) {\r\n * return item.group == 1;\r\n * }\r\n * });\r\n * console.log('filtered items', items);\r\n * ```\r\n *\r\n * @typeParam Item - Item type that may or may not have an id.\r\n * @typeParam IdProp - Name of the property that contains the id.\r\n */\nvar DataSet = /*#__PURE__*/function (_DataSetPart) {\n _inherits(DataSet, _DataSetPart);\n var _super = _createSuper$t(DataSet);\n /**\r\n * Construct a new DataSet.\r\n *\r\n * @param data - Initial data or options.\r\n * @param options - Options (type error if data is also options).\r\n */\n function DataSet(data, options) {\n var _this3;\n _classCallCheck(this, DataSet);\n _this3 = _super.call(this);\n // correctly read optional arguments\n /** Flush all queued calls. */\n _defineProperty(_assertThisInitialized(_this3), \"flush\", void 0);\n /** @inheritDoc */\n _defineProperty(_assertThisInitialized(_this3), \"length\", void 0);\n _defineProperty(_assertThisInitialized(_this3), \"_options\", void 0);\n _defineProperty(_assertThisInitialized(_this3), \"_data\", void 0);\n _defineProperty(_assertThisInitialized(_this3), \"_idProp\", void 0);\n _defineProperty(_assertThisInitialized(_this3), \"_queue\", null);\n if (data && !_Array$isArray(data)) {\n options = data;\n data = [];\n }\n _this3._options = options || {};\n _this3._data = new _Map(); // map with data indexed by id\n _this3.length = 0; // number of items in the DataSet\n _this3._idProp = _this3._options.fieldId || \"id\"; // name of the field containing id\n // add initial data when provided\n if (data && data.length) {\n _this3.add(data);\n }\n _this3.setOptions(options);\n return _this3;\n }\n /**\r\n * Set new options.\r\n *\r\n * @param options - The new options.\r\n */\n _createClass(DataSet, [{\n key: \"idProp\",\n get:\n /** @inheritDoc */\n function get() {\n return this._idProp;\n }\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options && options.queue !== undefined) {\n if (options.queue === false) {\n // delete queue if loaded\n if (this._queue) {\n this._queue.destroy();\n this._queue = null;\n }\n } else {\n // create queue and update its options\n if (!this._queue) {\n this._queue = Queue.extend(this, {\n replace: [\"add\", \"update\", \"remove\"]\n });\n }\n if (options.queue && _typeof$1(options.queue) === \"object\") {\n this._queue.setOptions(options.queue);\n }\n }\n }\n }\n /**\r\n * Add a data item or an array with items.\r\n *\r\n * After the items are added to the DataSet, the DataSet will trigger an event `add`. When a `senderId` is provided, this id will be passed with the triggered event to all subscribers.\r\n *\r\n * ## Example\r\n *\r\n * ```javascript\r\n * // create a DataSet\r\n * const data = new vis.DataSet()\r\n *\r\n * // add items\r\n * const ids = data.add([\r\n * { id: 1, text: 'item 1' },\r\n * { id: 2, text: 'item 2' },\r\n * { text: 'item without an id' }\r\n * ])\r\n *\r\n * console.log(ids) // [1, 2, '']\r\n * ```\r\n *\r\n * @param data - Items to be added (ids will be generated if missing).\r\n * @param senderId - Sender id.\r\n * @returns addedIds - Array with the ids (generated if not present) of the added items.\r\n * @throws When an item with the same id as any of the added items already exists.\r\n */\n }, {\n key: \"add\",\n value: function add(data, senderId) {\n var _this4 = this;\n var addedIds = [];\n var id;\n if (_Array$isArray(data)) {\n // Array\n var idsToAdd = _mapInstanceProperty(data).call(data, function (d) {\n return d[_this4._idProp];\n });\n if (_someInstanceProperty(idsToAdd).call(idsToAdd, function (id) {\n return _this4._data.has(id);\n })) {\n throw new Error(\"A duplicate id was found in the parameter array.\");\n }\n for (var i = 0, len = data.length; i < len; i++) {\n id = this._addItem(data[i]);\n addedIds.push(id);\n }\n } else if (data && _typeof$1(data) === \"object\") {\n // Single item\n id = this._addItem(data);\n addedIds.push(id);\n } else {\n throw new Error(\"Unknown dataType\");\n }\n if (addedIds.length) {\n this._trigger(\"add\", {\n items: addedIds\n }, senderId);\n }\n return addedIds;\n }\n /**\r\n * Update existing items. When an item does not exist, it will be created.\r\n *\r\n * @remarks\r\n * The provided properties will be merged in the existing item. When an item does not exist, it will be created.\r\n *\r\n * After the items are updated, the DataSet will trigger an event `add` for the added items, and an event `update`. When a `senderId` is provided, this id will be passed with the triggered event to all subscribers.\r\n *\r\n * ## Example\r\n *\r\n * ```javascript\r\n * // create a DataSet\r\n * const data = new vis.DataSet([\r\n * { id: 1, text: 'item 1' },\r\n * { id: 2, text: 'item 2' },\r\n * { id: 3, text: 'item 3' }\r\n * ])\r\n *\r\n * // update items\r\n * const ids = data.update([\r\n * { id: 2, text: 'item 2 (updated)' },\r\n * { id: 4, text: 'item 4 (new)' }\r\n * ])\r\n *\r\n * console.log(ids) // [2, 4]\r\n * ```\r\n *\r\n * ## Warning for TypeScript users\r\n * This method may introduce partial items into the data set. Use add or updateOnly instead for better type safety.\r\n * @param data - Items to be updated (if the id is already present) or added (if the id is missing).\r\n * @param senderId - Sender id.\r\n * @returns updatedIds - The ids of the added (these may be newly generated if there was no id in the item from the data) or updated items.\r\n * @throws When the supplied data is neither an item nor an array of items.\r\n */\n }, {\n key: \"update\",\n value: function update(data, senderId) {\n var _this5 = this;\n var addedIds = [];\n var updatedIds = [];\n var oldData = [];\n var updatedData = [];\n var idProp = this._idProp;\n var addOrUpdate = function addOrUpdate(item) {\n var origId = item[idProp];\n if (origId != null && _this5._data.has(origId)) {\n var fullItem = item; // it has an id, therefore it is a fullitem\n var oldItem = _Object$assign({}, _this5._data.get(origId));\n // update item\n var id = _this5._updateItem(fullItem);\n updatedIds.push(id);\n updatedData.push(fullItem);\n oldData.push(oldItem);\n } else {\n // add new item\n var _id = _this5._addItem(item);\n addedIds.push(_id);\n }\n };\n if (_Array$isArray(data)) {\n // Array\n for (var i = 0, len = data.length; i < len; i++) {\n if (data[i] && _typeof$1(data[i]) === \"object\") {\n addOrUpdate(data[i]);\n } else {\n console.warn(\"Ignoring input item, which is not an object at index \" + i);\n }\n }\n } else if (data && _typeof$1(data) === \"object\") {\n // Single item\n addOrUpdate(data);\n } else {\n throw new Error(\"Unknown dataType\");\n }\n if (addedIds.length) {\n this._trigger(\"add\", {\n items: addedIds\n }, senderId);\n }\n if (updatedIds.length) {\n var props = {\n items: updatedIds,\n oldData: oldData,\n data: updatedData\n };\n // TODO: remove deprecated property 'data' some day\n //Object.defineProperty(props, 'data', {\n // 'get': (function() {\n // console.warn('Property data is deprecated. Use DataSet.get(ids) to retrieve the new data, use the oldData property on this object to get the old data');\n // return updatedData;\n // }).bind(this)\n //});\n this._trigger(\"update\", props, senderId);\n }\n return _concatInstanceProperty(addedIds).call(addedIds, updatedIds);\n }\n /**\r\n * Update existing items. When an item does not exist, an error will be thrown.\r\n *\r\n * @remarks\r\n * The provided properties will be deeply merged into the existing item.\r\n * When an item does not exist (id not present in the data set or absent), an error will be thrown and nothing will be changed.\r\n *\r\n * After the items are updated, the DataSet will trigger an event `update`.\r\n * When a `senderId` is provided, this id will be passed with the triggered event to all subscribers.\r\n *\r\n * ## Example\r\n *\r\n * ```javascript\r\n * // create a DataSet\r\n * const data = new vis.DataSet([\r\n * { id: 1, text: 'item 1' },\r\n * { id: 2, text: 'item 2' },\r\n * { id: 3, text: 'item 3' },\r\n * ])\r\n *\r\n * // update items\r\n * const ids = data.update([\r\n * { id: 2, text: 'item 2 (updated)' }, // works\r\n * // { id: 4, text: 'item 4 (new)' }, // would throw\r\n * // { text: 'item 4 (new)' }, // would also throw\r\n * ])\r\n *\r\n * console.log(ids) // [2]\r\n * ```\r\n * @param data - Updates (the id and optionally other props) to the items in this data set.\r\n * @param senderId - Sender id.\r\n * @returns updatedIds - The ids of the updated items.\r\n * @throws When the supplied data is neither an item nor an array of items, when the ids are missing.\r\n */\n }, {\n key: \"updateOnly\",\n value: function updateOnly(data, senderId) {\n var _context19,\n _this6 = this;\n if (!_Array$isArray(data)) {\n data = [data];\n }\n var updateEventData = _mapInstanceProperty(_context19 = _mapInstanceProperty(data).call(data, function (update) {\n var oldData = _this6._data.get(update[_this6._idProp]);\n if (oldData == null) {\n throw new Error(\"Updating non-existent items is not allowed.\");\n }\n return {\n oldData: oldData,\n update: update\n };\n })).call(_context19, function (_ref5) {\n var oldData = _ref5.oldData,\n update = _ref5.update;\n var id = oldData[_this6._idProp];\n var updatedData = pureDeepObjectAssign(oldData, update);\n _this6._data.set(id, updatedData);\n return {\n id: id,\n oldData: oldData,\n updatedData: updatedData\n };\n });\n if (updateEventData.length) {\n var props = {\n items: _mapInstanceProperty(updateEventData).call(updateEventData, function (value) {\n return value.id;\n }),\n oldData: _mapInstanceProperty(updateEventData).call(updateEventData, function (value) {\n return value.oldData;\n }),\n data: _mapInstanceProperty(updateEventData).call(updateEventData, function (value) {\n return value.updatedData;\n })\n };\n // TODO: remove deprecated property 'data' some day\n //Object.defineProperty(props, 'data', {\n // 'get': (function() {\n // console.warn('Property data is deprecated. Use DataSet.get(ids) to retrieve the new data, use the oldData property on this object to get the old data');\n // return updatedData;\n // }).bind(this)\n //});\n this._trigger(\"update\", props, senderId);\n return props.items;\n } else {\n return [];\n }\n }\n /** @inheritDoc */\n }, {\n key: \"get\",\n value: function get(first, second) {\n // @TODO: Woudn't it be better to split this into multiple methods?\n // parse the arguments\n var id = undefined;\n var ids = undefined;\n var options = undefined;\n if (isId(first)) {\n // get(id [, options])\n id = first;\n options = second;\n } else if (_Array$isArray(first)) {\n // get(ids [, options])\n ids = first;\n options = second;\n } else {\n // get([, options])\n options = first;\n }\n // determine the return type\n var returnType = options && options.returnType === \"Object\" ? \"Object\" : \"Array\";\n // @TODO: WTF is this? Or am I missing something?\n // var returnType\n // if (options && options.returnType) {\n // var allowedValues = ['Array', 'Object']\n // returnType =\n // allowedValues.indexOf(options.returnType) == -1\n // ? 'Array'\n // : options.returnType\n // } else {\n // returnType = 'Array'\n // }\n // build options\n var filter = options && _filterInstanceProperty(options);\n var items = [];\n var item = undefined;\n var itemIds = undefined;\n var itemId = undefined;\n // convert items\n if (id != null) {\n // return a single item\n item = this._data.get(id);\n if (item && filter && !filter(item)) {\n item = undefined;\n }\n } else if (ids != null) {\n // return a subset of items\n for (var i = 0, len = ids.length; i < len; i++) {\n item = this._data.get(ids[i]);\n if (item != null && (!filter || filter(item))) {\n items.push(item);\n }\n }\n } else {\n var _context20;\n // return all items\n itemIds = _toConsumableArray(_keysInstanceProperty(_context20 = this._data).call(_context20));\n for (var _i = 0, _len2 = itemIds.length; _i < _len2; _i++) {\n itemId = itemIds[_i];\n item = this._data.get(itemId);\n if (item != null && (!filter || filter(item))) {\n items.push(item);\n }\n }\n }\n // order the results\n if (options && options.order && id == undefined) {\n this._sort(items, options.order);\n }\n // filter fields of the items\n if (options && options.fields) {\n var fields = options.fields;\n if (id != undefined && item != null) {\n item = this._filterFields(item, fields);\n } else {\n for (var _i2 = 0, _len3 = items.length; _i2 < _len3; _i2++) {\n items[_i2] = this._filterFields(items[_i2], fields);\n }\n }\n }\n // return the results\n if (returnType == \"Object\") {\n var result = {};\n for (var _i3 = 0, _len4 = items.length; _i3 < _len4; _i3++) {\n var resultant = items[_i3];\n // @TODO: Shoudn't this be this._fieldId?\n // result[resultant.id] = resultant\n var _id2 = resultant[this._idProp];\n result[_id2] = resultant;\n }\n return result;\n } else {\n if (id != null) {\n var _item;\n // a single item\n return (_item = item) !== null && _item !== void 0 ? _item : null;\n } else {\n // just return our array\n return items;\n }\n }\n }\n /** @inheritDoc */\n }, {\n key: \"getIds\",\n value: function getIds(options) {\n var data = this._data;\n var filter = options && _filterInstanceProperty(options);\n var order = options && options.order;\n var itemIds = _toConsumableArray(_keysInstanceProperty(data).call(data));\n var ids = [];\n if (filter) {\n // get filtered items\n if (order) {\n // create ordered list\n var items = [];\n for (var i = 0, len = itemIds.length; i < len; i++) {\n var id = itemIds[i];\n var item = this._data.get(id);\n if (item != null && filter(item)) {\n items.push(item);\n }\n }\n this._sort(items, order);\n for (var _i4 = 0, _len5 = items.length; _i4 < _len5; _i4++) {\n ids.push(items[_i4][this._idProp]);\n }\n } else {\n // create unordered list\n for (var _i5 = 0, _len6 = itemIds.length; _i5 < _len6; _i5++) {\n var _id3 = itemIds[_i5];\n var _item2 = this._data.get(_id3);\n if (_item2 != null && filter(_item2)) {\n ids.push(_item2[this._idProp]);\n }\n }\n }\n } else {\n // get all items\n if (order) {\n // create an ordered list\n var _items = [];\n for (var _i6 = 0, _len7 = itemIds.length; _i6 < _len7; _i6++) {\n var _id4 = itemIds[_i6];\n _items.push(data.get(_id4));\n }\n this._sort(_items, order);\n for (var _i7 = 0, _len8 = _items.length; _i7 < _len8; _i7++) {\n ids.push(_items[_i7][this._idProp]);\n }\n } else {\n // create unordered list\n for (var _i8 = 0, _len9 = itemIds.length; _i8 < _len9; _i8++) {\n var _id5 = itemIds[_i8];\n var _item3 = data.get(_id5);\n if (_item3 != null) {\n ids.push(_item3[this._idProp]);\n }\n }\n }\n }\n return ids;\n }\n /** @inheritDoc */\n }, {\n key: \"getDataSet\",\n value: function getDataSet() {\n return this;\n }\n /** @inheritDoc */\n }, {\n key: \"forEach\",\n value: function forEach(callback, options) {\n var filter = options && _filterInstanceProperty(options);\n var data = this._data;\n var itemIds = _toConsumableArray(_keysInstanceProperty(data).call(data));\n if (options && options.order) {\n // execute forEach on ordered list\n var items = this.get(options);\n for (var i = 0, len = items.length; i < len; i++) {\n var item = items[i];\n var id = item[this._idProp];\n callback(item, id);\n }\n } else {\n // unordered\n for (var _i9 = 0, _len10 = itemIds.length; _i9 < _len10; _i9++) {\n var _id6 = itemIds[_i9];\n var _item4 = this._data.get(_id6);\n if (_item4 != null && (!filter || filter(_item4))) {\n callback(_item4, _id6);\n }\n }\n }\n }\n /** @inheritDoc */\n }, {\n key: \"map\",\n value: function map(callback, options) {\n var filter = options && _filterInstanceProperty(options);\n var mappedItems = [];\n var data = this._data;\n var itemIds = _toConsumableArray(_keysInstanceProperty(data).call(data));\n // convert and filter items\n for (var i = 0, len = itemIds.length; i < len; i++) {\n var id = itemIds[i];\n var item = this._data.get(id);\n if (item != null && (!filter || filter(item))) {\n mappedItems.push(callback(item, id));\n }\n }\n // order items\n if (options && options.order) {\n this._sort(mappedItems, options.order);\n }\n return mappedItems;\n }\n /**\r\n * Filter the fields of an item.\r\n *\r\n * @param item - The item whose fields should be filtered.\r\n * @param fields - The names of the fields that will be kept.\r\n * @typeParam K - Field name type.\r\n * @returns The item without any additional fields.\r\n */\n }, {\n key: \"_filterFields\",\n value: function _filterFields(item, fields) {\n var _context21;\n if (!item) {\n // item is null\n return item;\n }\n return _reduceInstanceProperty(_context21 = _Array$isArray(fields) ?\n // Use the supplied array\n fields :\n // Use the keys of the supplied object\n _Object$keys(fields)).call(_context21, function (filteredItem, field) {\n filteredItem[field] = item[field];\n return filteredItem;\n }, {});\n }\n /**\r\n * Sort the provided array with items.\r\n *\r\n * @param items - Items to be sorted in place.\r\n * @param order - A field name or custom sort function.\r\n * @typeParam T - The type of the items in the items array.\r\n */\n }, {\n key: \"_sort\",\n value: function _sort(items, order) {\n if (typeof order === \"string\") {\n // order by provided field name\n var name = order; // field name\n _sortInstanceProperty(items).call(items, function (a, b) {\n // @TODO: How to treat missing properties?\n var av = a[name];\n var bv = b[name];\n return av > bv ? 1 : av < bv ? -1 : 0;\n });\n } else if (typeof order === \"function\") {\n // order by sort function\n _sortInstanceProperty(items).call(items, order);\n } else {\n // TODO: extend order by an Object {field:string, direction:string}\n // where direction can be 'asc' or 'desc'\n throw new TypeError(\"Order must be a function or a string\");\n }\n }\n /**\r\n * Remove an item or multiple items by “reference” (only the id is used) or by id.\r\n *\r\n * The method ignores removal of non-existing items, and returns an array containing the ids of the items which are actually removed from the DataSet.\r\n *\r\n * After the items are removed, the DataSet will trigger an event `remove` for the removed items. When a `senderId` is provided, this id will be passed with the triggered event to all subscribers.\r\n *\r\n * ## Example\r\n * ```javascript\r\n * // create a DataSet\r\n * const data = new vis.DataSet([\r\n * { id: 1, text: 'item 1' },\r\n * { id: 2, text: 'item 2' },\r\n * { id: 3, text: 'item 3' }\r\n * ])\r\n *\r\n * // remove items\r\n * const ids = data.remove([2, { id: 3 }, 4])\r\n *\r\n * console.log(ids) // [2, 3]\r\n * ```\r\n *\r\n * @param id - One or more items or ids of items to be removed.\r\n * @param senderId - Sender id.\r\n * @returns The ids of the removed items.\r\n */\n }, {\n key: \"remove\",\n value: function remove(id, senderId) {\n var removedIds = [];\n var removedItems = [];\n // force everything to be an array for simplicity\n var ids = _Array$isArray(id) ? id : [id];\n for (var i = 0, len = ids.length; i < len; i++) {\n var item = this._remove(ids[i]);\n if (item) {\n var itemId = item[this._idProp];\n if (itemId != null) {\n removedIds.push(itemId);\n removedItems.push(item);\n }\n }\n }\n if (removedIds.length) {\n this._trigger(\"remove\", {\n items: removedIds,\n oldData: removedItems\n }, senderId);\n }\n return removedIds;\n }\n /**\r\n * Remove an item by its id or reference.\r\n *\r\n * @param id - Id of an item or the item itself.\r\n * @returns The removed item if removed, null otherwise.\r\n */\n }, {\n key: \"_remove\",\n value: function _remove(id) {\n // @TODO: It origianlly returned the item although the docs say id.\n // The code expects the item, so probably an error in the docs.\n var ident;\n // confirm the id to use based on the args type\n if (isId(id)) {\n ident = id;\n } else if (id && _typeof$1(id) === \"object\") {\n ident = id[this._idProp]; // look for the identifier field using ._idProp\n }\n // do the removing if the item is found\n if (ident != null && this._data.has(ident)) {\n var item = this._data.get(ident) || null;\n this._data.delete(ident);\n --this.length;\n return item;\n }\n return null;\n }\n /**\r\n * Clear the entire data set.\r\n *\r\n * After the items are removed, the {@link DataSet} will trigger an event `remove` for all removed items. When a `senderId` is provided, this id will be passed with the triggered event to all subscribers.\r\n *\r\n * @param senderId - Sender id.\r\n * @returns removedIds - The ids of all removed items.\r\n */\n }, {\n key: \"clear\",\n value: function clear(senderId) {\n var _context22;\n var ids = _toConsumableArray(_keysInstanceProperty(_context22 = this._data).call(_context22));\n var items = [];\n for (var i = 0, len = ids.length; i < len; i++) {\n items.push(this._data.get(ids[i]));\n }\n this._data.clear();\n this.length = 0;\n this._trigger(\"remove\", {\n items: ids,\n oldData: items\n }, senderId);\n return ids;\n }\n /**\r\n * Find the item with maximum value of a specified field.\r\n *\r\n * @param field - Name of the property that should be searched for max value.\r\n * @returns Item containing max value, or null if no items.\r\n */\n }, {\n key: \"max\",\n value: function max(field) {\n var _context23;\n var max = null;\n var maxField = null;\n var _iterator11 = _createForOfIteratorHelper$6(_valuesInstanceProperty(_context23 = this._data).call(_context23)),\n _step11;\n try {\n for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {\n var item = _step11.value;\n var itemField = item[field];\n if (typeof itemField === \"number\" && (maxField == null || itemField > maxField)) {\n max = item;\n maxField = itemField;\n }\n }\n } catch (err) {\n _iterator11.e(err);\n } finally {\n _iterator11.f();\n }\n return max || null;\n }\n /**\r\n * Find the item with minimum value of a specified field.\r\n *\r\n * @param field - Name of the property that should be searched for min value.\r\n * @returns Item containing min value, or null if no items.\r\n */\n }, {\n key: \"min\",\n value: function min(field) {\n var _context24;\n var min = null;\n var minField = null;\n var _iterator12 = _createForOfIteratorHelper$6(_valuesInstanceProperty(_context24 = this._data).call(_context24)),\n _step12;\n try {\n for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {\n var item = _step12.value;\n var itemField = item[field];\n if (typeof itemField === \"number\" && (minField == null || itemField < minField)) {\n min = item;\n minField = itemField;\n }\n }\n } catch (err) {\n _iterator12.e(err);\n } finally {\n _iterator12.f();\n }\n return min || null;\n }\n /**\r\n * Find all distinct values of a specified field\r\n *\r\n * @param prop - The property name whose distinct values should be returned.\r\n * @returns Unordered array containing all distinct values. Items without specified property are ignored.\r\n */\n }, {\n key: \"distinct\",\n value: function distinct(prop) {\n var data = this._data;\n var itemIds = _toConsumableArray(_keysInstanceProperty(data).call(data));\n var values = [];\n var count = 0;\n for (var i = 0, len = itemIds.length; i < len; i++) {\n var id = itemIds[i];\n var item = data.get(id);\n var _value3 = item[prop];\n var exists = false;\n for (var j = 0; j < count; j++) {\n if (values[j] == _value3) {\n exists = true;\n break;\n }\n }\n if (!exists && _value3 !== undefined) {\n values[count] = _value3;\n count++;\n }\n }\n return values;\n }\n /**\r\n * Add a single item. Will fail when an item with the same id already exists.\r\n *\r\n * @param item - A new item to be added.\r\n * @returns Added item's id. An id is generated when it is not present in the item.\r\n */\n }, {\n key: \"_addItem\",\n value: function _addItem(item) {\n var fullItem = ensureFullItem(item, this._idProp);\n var id = fullItem[this._idProp];\n // check whether this id is already taken\n if (this._data.has(id)) {\n // item already exists\n throw new Error(\"Cannot add item: item with id \" + id + \" already exists\");\n }\n this._data.set(id, fullItem);\n ++this.length;\n return id;\n }\n /**\r\n * Update a single item: merge with existing item.\r\n * Will fail when the item has no id, or when there does not exist an item with the same id.\r\n *\r\n * @param update - The new item\r\n * @returns The id of the updated item.\r\n */\n }, {\n key: \"_updateItem\",\n value: function _updateItem(update) {\n var id = update[this._idProp];\n if (id == null) {\n throw new Error(\"Cannot update item: item has no id (item: \" + _JSON$stringify(update) + \")\");\n }\n var item = this._data.get(id);\n if (!item) {\n // item doesn't exist\n throw new Error(\"Cannot update item: no item with id \" + id + \" found\");\n }\n this._data.set(id, _objectSpread$4(_objectSpread$4({}, item), update));\n return id;\n }\n /** @inheritDoc */\n }, {\n key: \"stream\",\n value: function stream(ids) {\n if (ids) {\n var data = this._data;\n return new DataStream(_defineProperty({}, _Symbol$iterator2, /*#__PURE__*/regenerator.mark(function _callee3() {\n var _iterator13, _step13, id, item;\n return regenerator.wrap(function _callee3$(_context25) {\n while (1) switch (_context25.prev = _context25.next) {\n case 0:\n _iterator13 = _createForOfIteratorHelper$6(ids);\n _context25.prev = 1;\n _iterator13.s();\n case 3:\n if ((_step13 = _iterator13.n()).done) {\n _context25.next = 11;\n break;\n }\n id = _step13.value;\n item = data.get(id);\n if (!(item != null)) {\n _context25.next = 9;\n break;\n }\n _context25.next = 9;\n return [id, item];\n case 9:\n _context25.next = 3;\n break;\n case 11:\n _context25.next = 16;\n break;\n case 13:\n _context25.prev = 13;\n _context25.t0 = _context25[\"catch\"](1);\n _iterator13.e(_context25.t0);\n case 16:\n _context25.prev = 16;\n _iterator13.f();\n return _context25.finish(16);\n case 19:\n case \"end\":\n return _context25.stop();\n }\n }, _callee3, null, [[1, 13, 16, 19]]);\n })));\n } else {\n var _context26;\n return new DataStream(_defineProperty({}, _Symbol$iterator2, _bindInstanceProperty$1(_context26 = _entriesInstanceProperty(this._data)).call(_context26, this._data)));\n }\n }\n }]);\n return DataSet;\n}(DataSetPart);\n/**\r\n * DataView\r\n *\r\n * A DataView offers a filtered and/or formatted view on a DataSet. One can subscribe to changes in a DataView, and easily get filtered or formatted data without having to specify filters and field types all the time.\r\n *\r\n * ## Example\r\n * ```javascript\r\n * // create a DataSet\r\n * var data = new vis.DataSet();\r\n * data.add([\r\n * {id: 1, text: 'item 1', date: new Date(2013, 6, 20), group: 1, first: true},\r\n * {id: 2, text: 'item 2', date: '2013-06-23', group: 2},\r\n * {id: 3, text: 'item 3', date: '2013-06-25', group: 2},\r\n * {id: 4, text: 'item 4'}\r\n * ]);\r\n *\r\n * // create a DataView\r\n * // the view will only contain items having a property group with value 1,\r\n * // and will only output fields id, text, and date.\r\n * var view = new vis.DataView(data, {\r\n * filter: function (item) {\r\n * return (item.group == 1);\r\n * },\r\n * fields: ['id', 'text', 'date']\r\n * });\r\n *\r\n * // subscribe to any change in the DataView\r\n * view.on('*', function (event, properties, senderId) {\r\n * console.log('event', event, properties);\r\n * });\r\n *\r\n * // update an item in the data set\r\n * data.update({id: 2, group: 1});\r\n *\r\n * // get all ids in the view\r\n * var ids = view.getIds();\r\n * console.log('ids', ids); // will output [1, 2]\r\n *\r\n * // get all items in the view\r\n * var items = view.get();\r\n * ```\r\n *\r\n * @typeParam Item - Item type that may or may not have an id.\r\n * @typeParam IdProp - Name of the property that contains the id.\r\n */\nvar DataView = /*#__PURE__*/function (_DataSetPart2) {\n _inherits(DataView, _DataSetPart2);\n var _super2 = _createSuper$t(DataView);\n /**\r\n * Create a DataView.\r\n *\r\n * @param data - The instance containing data (directly or indirectly).\r\n * @param options - Options to configure this data view.\r\n */\n function DataView(data, options) {\n var _context27;\n var _this7;\n _classCallCheck(this, DataView);\n _this7 = _super2.call(this);\n /** @inheritDoc */\n _defineProperty(_assertThisInitialized(_this7), \"length\", 0);\n _defineProperty(_assertThisInitialized(_this7), \"_listener\", void 0);\n _defineProperty(_assertThisInitialized(_this7), \"_data\", void 0);\n // constructor → setData\n _defineProperty(_assertThisInitialized(_this7), \"_ids\", new _Set());\n // ids of the items currently in memory (just contains a boolean true)\n _defineProperty(_assertThisInitialized(_this7), \"_options\", void 0);\n _this7._options = options || {};\n _this7._listener = _bindInstanceProperty$1(_context27 = _this7._onEvent).call(_context27, _assertThisInitialized(_this7));\n _this7.setData(data);\n return _this7;\n }\n // TODO: implement a function .config() to dynamically update things like configured filter\n // and trigger changes accordingly\n /**\r\n * Set a data source for the view.\r\n *\r\n * @param data - The instance containing data (directly or indirectly).\r\n * @remarks\r\n * Note that when the data view is bound to a data set it won't be garbage\r\n * collected unless the data set is too. Use `dataView.setData(null)` or\r\n * `dataView.dispose()` to enable garbage collection before you lose the last\r\n * reference.\r\n */\n _createClass(DataView, [{\n key: \"idProp\",\n get:\n /** @inheritDoc */\n function get() {\n return this.getDataSet().idProp;\n }\n }, {\n key: \"setData\",\n value: function setData(data) {\n if (this._data) {\n // unsubscribe from current dataset\n if (this._data.off) {\n this._data.off(\"*\", this._listener);\n }\n // trigger a remove of all items in memory\n var ids = this._data.getIds({\n filter: _filterInstanceProperty(this._options)\n });\n var items = this._data.get(ids);\n this._ids.clear();\n this.length = 0;\n this._trigger(\"remove\", {\n items: ids,\n oldData: items\n });\n }\n if (data != null) {\n this._data = data;\n // trigger an add of all added items\n var _ids = this._data.getIds({\n filter: _filterInstanceProperty(this._options)\n });\n for (var i = 0, len = _ids.length; i < len; i++) {\n var id = _ids[i];\n this._ids.add(id);\n }\n this.length = _ids.length;\n this._trigger(\"add\", {\n items: _ids\n });\n } else {\n this._data = new DataSet();\n }\n // subscribe to new dataset\n if (this._data.on) {\n this._data.on(\"*\", this._listener);\n }\n }\n /**\r\n * Refresh the DataView.\r\n * Useful when the DataView has a filter function containing a variable parameter.\r\n */\n }, {\n key: \"refresh\",\n value: function refresh() {\n var ids = this._data.getIds({\n filter: _filterInstanceProperty(this._options)\n });\n var oldIds = _toConsumableArray(this._ids);\n var newIds = {};\n var addedIds = [];\n var removedIds = [];\n var removedItems = [];\n // check for additions\n for (var i = 0, len = ids.length; i < len; i++) {\n var id = ids[i];\n newIds[id] = true;\n if (!this._ids.has(id)) {\n addedIds.push(id);\n this._ids.add(id);\n }\n }\n // check for removals\n for (var _i10 = 0, _len11 = oldIds.length; _i10 < _len11; _i10++) {\n var _id7 = oldIds[_i10];\n var item = this._data.get(_id7);\n if (item == null) {\n // @TODO: Investigate.\n // Doesn't happen during tests or examples.\n // Is it really impossible or could it eventually happen?\n // How to handle it if it does? The types guarantee non-nullable items.\n console.error(\"If you see this, report it please.\");\n } else if (!newIds[_id7]) {\n removedIds.push(_id7);\n removedItems.push(item);\n this._ids.delete(_id7);\n }\n }\n this.length += addedIds.length - removedIds.length;\n // trigger events\n if (addedIds.length) {\n this._trigger(\"add\", {\n items: addedIds\n });\n }\n if (removedIds.length) {\n this._trigger(\"remove\", {\n items: removedIds,\n oldData: removedItems\n });\n }\n }\n /** @inheritDoc */\n }, {\n key: \"get\",\n value: function get(first, second) {\n if (this._data == null) {\n return null;\n }\n // parse the arguments\n var ids = null;\n var options;\n if (isId(first) || _Array$isArray(first)) {\n ids = first;\n options = second;\n } else {\n options = first;\n }\n // extend the options with the default options and provided options\n var viewOptions = _Object$assign({}, this._options, options);\n // create a combined filter method when needed\n var thisFilter = _filterInstanceProperty(this._options);\n var optionsFilter = options && _filterInstanceProperty(options);\n if (thisFilter && optionsFilter) {\n viewOptions.filter = function (item) {\n return thisFilter(item) && optionsFilter(item);\n };\n }\n if (ids == null) {\n return this._data.get(viewOptions);\n } else {\n return this._data.get(ids, viewOptions);\n }\n }\n /** @inheritDoc */\n }, {\n key: \"getIds\",\n value: function getIds(options) {\n if (this._data.length) {\n var defaultFilter = _filterInstanceProperty(this._options);\n var optionsFilter = options != null ? _filterInstanceProperty(options) : null;\n var filter;\n if (optionsFilter) {\n if (defaultFilter) {\n filter = function filter(item) {\n return defaultFilter(item) && optionsFilter(item);\n };\n } else {\n filter = optionsFilter;\n }\n } else {\n filter = defaultFilter;\n }\n return this._data.getIds({\n filter: filter,\n order: options && options.order\n });\n } else {\n return [];\n }\n }\n /** @inheritDoc */\n }, {\n key: \"forEach\",\n value: function forEach(callback, options) {\n if (this._data) {\n var _context28;\n var defaultFilter = _filterInstanceProperty(this._options);\n var optionsFilter = options && _filterInstanceProperty(options);\n var filter;\n if (optionsFilter) {\n if (defaultFilter) {\n filter = function filter(item) {\n return defaultFilter(item) && optionsFilter(item);\n };\n } else {\n filter = optionsFilter;\n }\n } else {\n filter = defaultFilter;\n }\n _forEachInstanceProperty(_context28 = this._data).call(_context28, callback, {\n filter: filter,\n order: options && options.order\n });\n }\n }\n /** @inheritDoc */\n }, {\n key: \"map\",\n value: function map(callback, options) {\n if (this._data) {\n var _context29;\n var defaultFilter = _filterInstanceProperty(this._options);\n var optionsFilter = options && _filterInstanceProperty(options);\n var filter;\n if (optionsFilter) {\n if (defaultFilter) {\n filter = function filter(item) {\n return defaultFilter(item) && optionsFilter(item);\n };\n } else {\n filter = optionsFilter;\n }\n } else {\n filter = defaultFilter;\n }\n return _mapInstanceProperty(_context29 = this._data).call(_context29, callback, {\n filter: filter,\n order: options && options.order\n });\n } else {\n return [];\n }\n }\n /** @inheritDoc */\n }, {\n key: \"getDataSet\",\n value: function getDataSet() {\n return this._data.getDataSet();\n }\n /** @inheritDoc */\n }, {\n key: \"stream\",\n value: function stream(ids) {\n var _context30;\n return this._data.stream(ids || _defineProperty({}, _Symbol$iterator2, _bindInstanceProperty$1(_context30 = _keysInstanceProperty(this._ids)).call(_context30, this._ids)));\n }\n /**\r\n * Render the instance unusable prior to garbage collection.\r\n *\r\n * @remarks\r\n * The intention of this method is to help discover scenarios where the data\r\n * view is being used when the programmer thinks it has been garbage collected\r\n * already. It's stricter version of `dataView.setData(null)`.\r\n */\n }, {\n key: \"dispose\",\n value: function dispose() {\n var _this$_data;\n if ((_this$_data = this._data) !== null && _this$_data !== void 0 && _this$_data.off) {\n this._data.off(\"*\", this._listener);\n }\n var message = \"This data view has already been disposed of.\";\n var replacement = {\n get: function get() {\n throw new Error(message);\n },\n set: function set() {\n throw new Error(message);\n },\n configurable: false\n };\n var _iterator14 = _createForOfIteratorHelper$6(_Reflect$ownKeys(DataView.prototype)),\n _step14;\n try {\n for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {\n var key = _step14.value;\n _Object$defineProperty$1(this, key, replacement);\n }\n } catch (err) {\n _iterator14.e(err);\n } finally {\n _iterator14.f();\n }\n }\n /**\r\n * Event listener. Will propagate all events from the connected data set to the subscribers of the DataView, but will filter the items and only trigger when there are changes in the filtered data set.\r\n *\r\n * @param event - The name of the event.\r\n * @param params - Parameters of the event.\r\n * @param senderId - Id supplied by the sender.\r\n */\n }, {\n key: \"_onEvent\",\n value: function _onEvent(event, params, senderId) {\n if (!params || !params.items || !this._data) {\n return;\n }\n var ids = params.items;\n var addedIds = [];\n var updatedIds = [];\n var removedIds = [];\n var oldItems = [];\n var updatedItems = [];\n var removedItems = [];\n switch (event) {\n case \"add\":\n // filter the ids of the added items\n for (var i = 0, len = ids.length; i < len; i++) {\n var id = ids[i];\n var item = this.get(id);\n if (item) {\n this._ids.add(id);\n addedIds.push(id);\n }\n }\n break;\n case \"update\":\n // determine the event from the views viewpoint: an updated\n // item can be added, updated, or removed from this view.\n for (var _i11 = 0, _len12 = ids.length; _i11 < _len12; _i11++) {\n var _id8 = ids[_i11];\n var _item5 = this.get(_id8);\n if (_item5) {\n if (this._ids.has(_id8)) {\n updatedIds.push(_id8);\n updatedItems.push(params.data[_i11]);\n oldItems.push(params.oldData[_i11]);\n } else {\n this._ids.add(_id8);\n addedIds.push(_id8);\n }\n } else {\n if (this._ids.has(_id8)) {\n this._ids.delete(_id8);\n removedIds.push(_id8);\n removedItems.push(params.oldData[_i11]);\n }\n }\n }\n break;\n case \"remove\":\n // filter the ids of the removed items\n for (var _i12 = 0, _len13 = ids.length; _i12 < _len13; _i12++) {\n var _id9 = ids[_i12];\n if (this._ids.has(_id9)) {\n this._ids.delete(_id9);\n removedIds.push(_id9);\n removedItems.push(params.oldData[_i12]);\n }\n }\n break;\n }\n this.length += addedIds.length - removedIds.length;\n if (addedIds.length) {\n this._trigger(\"add\", {\n items: addedIds\n }, senderId);\n }\n if (updatedIds.length) {\n this._trigger(\"update\", {\n items: updatedIds,\n oldData: oldItems,\n data: updatedItems\n }, senderId);\n }\n if (removedIds.length) {\n this._trigger(\"remove\", {\n items: removedIds,\n oldData: removedItems\n }, senderId);\n }\n }\n }]);\n return DataView;\n}(DataSetPart);\n/**\r\n * Check that given value is compatible with Vis Data Set interface.\r\n *\r\n * @param idProp - The expected property to contain item id.\r\n * @param v - The value to be tested.\r\n * @returns True if all expected values and methods match, false otherwise.\r\n */\nfunction isDataSetLike(idProp, v) {\n return _typeof$1(v) === \"object\" && v !== null && idProp === v.idProp && typeof v.add === \"function\" && typeof v.clear === \"function\" && typeof v.distinct === \"function\" && typeof _forEachInstanceProperty(v) === \"function\" && typeof v.get === \"function\" && typeof v.getDataSet === \"function\" && typeof v.getIds === \"function\" && typeof v.length === \"number\" && typeof _mapInstanceProperty(v) === \"function\" && typeof v.max === \"function\" && typeof v.min === \"function\" && typeof v.off === \"function\" && typeof v.on === \"function\" && typeof v.remove === \"function\" && typeof v.setOptions === \"function\" && typeof v.stream === \"function\" && typeof v.update === \"function\" && typeof v.updateOnly === \"function\";\n}\n\n/**\r\n * Check that given value is compatible with Vis Data View interface.\r\n *\r\n * @param idProp - The expected property to contain item id.\r\n * @param v - The value to be tested.\r\n * @returns True if all expected values and methods match, false otherwise.\r\n */\nfunction isDataViewLike(idProp, v) {\n return _typeof$1(v) === \"object\" && v !== null && idProp === v.idProp && typeof _forEachInstanceProperty(v) === \"function\" && typeof v.get === \"function\" && typeof v.getDataSet === \"function\" && typeof v.getIds === \"function\" && typeof v.length === \"number\" && typeof _mapInstanceProperty(v) === \"function\" && typeof v.off === \"function\" && typeof v.on === \"function\" && typeof v.stream === \"function\" && isDataSetLike(idProp, v.getDataSet());\n}\n\nvar index = /*#__PURE__*/Object.freeze({\n\t__proto__: null,\n\tDELETE: DELETE,\n\tDataSet: DataSet,\n\tDataStream: DataStream,\n\tDataView: DataView,\n\tQueue: Queue,\n\tcreateNewDataPipeFrom: createNewDataPipeFrom,\n\tisDataSetLike: isDataSetLike,\n\tisDataViewLike: isDataViewLike\n});\n\nvar _parseFloatExports = {};\nvar _parseFloat$3 = {\n get exports(){ return _parseFloatExports; },\n set exports(v){ _parseFloatExports = v; },\n};\n\nvar global$2 = global$q;\nvar fails$2 = fails$z;\nvar uncurryThis$2 = functionUncurryThis;\nvar toString = toString$b;\nvar trim = stringTrim.trim;\nvar whitespaces = whitespaces$4;\n\nvar charAt = uncurryThis$2(''.charAt);\nvar $parseFloat$1 = global$2.parseFloat;\nvar Symbol$1 = global$2.Symbol;\nvar ITERATOR = Symbol$1 && Symbol$1.iterator;\nvar FORCED$1 = 1 / $parseFloat$1(whitespaces + '-0') !== -Infinity\n // MS Edge 18- broken with boxed symbols\n || (ITERATOR && !fails$2(function () { $parseFloat$1(Object(ITERATOR)); }));\n\n// `parseFloat` method\n// https://tc39.es/ecma262/#sec-parsefloat-string\nvar numberParseFloat = FORCED$1 ? function parseFloat(string) {\n var trimmedString = trim(toString(string));\n var result = $parseFloat$1(trimmedString);\n return result === 0 && charAt(trimmedString, 0) == '-' ? -0 : result;\n} : $parseFloat$1;\n\nvar $$4 = _export;\nvar $parseFloat = numberParseFloat;\n\n// `parseFloat` method\n// https://tc39.es/ecma262/#sec-parsefloat-string\n$$4({ global: true, forced: parseFloat != $parseFloat }, {\n parseFloat: $parseFloat\n});\n\nvar path$5 = path$z;\n\nvar _parseFloat$2 = path$5.parseFloat;\n\nvar parent$9 = _parseFloat$2;\n\nvar _parseFloat$1 = parent$9;\n\n(function (module) {\n\tmodule.exports = _parseFloat$1;\n} (_parseFloat$3));\n\nvar _parseFloat = /*@__PURE__*/getDefaultExportFromCjs(_parseFloatExports);\n\nvar getOwnPropertyNamesExports = {};\nvar getOwnPropertyNames$3 = {\n get exports(){ return getOwnPropertyNamesExports; },\n set exports(v){ getOwnPropertyNamesExports = v; },\n};\n\nvar $$3 = _export;\nvar fails$1 = fails$z;\nvar getOwnPropertyNames$2 = objectGetOwnPropertyNamesExternal.f;\n\n// eslint-disable-next-line es/no-object-getownpropertynames -- required for testing\nvar FAILS_ON_PRIMITIVES = fails$1(function () { return !Object.getOwnPropertyNames(1); });\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n$$3({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n getOwnPropertyNames: getOwnPropertyNames$2\n});\n\nvar path$4 = path$z;\n\nvar Object$1 = path$4.Object;\n\nvar getOwnPropertyNames$1 = function getOwnPropertyNames(it) {\n return Object$1.getOwnPropertyNames(it);\n};\n\nvar parent$8 = getOwnPropertyNames$1;\n\nvar getOwnPropertyNames = parent$8;\n\n(function (module) {\n\tmodule.exports = getOwnPropertyNames;\n} (getOwnPropertyNames$3));\n\nvar _Object$getOwnPropertyNames = /*@__PURE__*/getDefaultExportFromCjs(getOwnPropertyNamesExports);\n\n/**\n * Helper functions for components\n */\n\n/**\n * Determine values to use for (sub)options of 'chosen'.\n *\n * This option is either a boolean or an object whose values should be examined further.\n * The relevant structures are:\n *\n * - chosen: \n * - chosen: { subOption: }\n *\n * Where subOption is 'node', 'edge' or 'label'.\n *\n * The intention of this method appears to be to set a specific priority to the options;\n * Since most properties are either bridged or merged into the local options objects, there\n * is not much point in handling them separately.\n * TODO: examine if 'most' in previous sentence can be replaced with 'all'. In that case, we\n * should be able to get rid of this method.\n *\n * @param {string} subOption option within object 'chosen' to consider; either 'node', 'edge' or 'label'\n * @param {object} pile array of options objects to consider\n * @returns {boolean | Function} value for passed subOption of 'chosen' to use\n */\nfunction choosify(subOption, pile) {\n // allowed values for subOption\n var allowed = [\"node\", \"edge\", \"label\"];\n var value = true;\n var chosen = topMost(pile, \"chosen\");\n if (typeof chosen === \"boolean\") {\n value = chosen;\n } else if (_typeof$1(chosen) === \"object\") {\n if (_indexOfInstanceProperty(allowed).call(allowed, subOption) === -1) {\n throw new Error(\"choosify: subOption '\" + subOption + \"' should be one of \" + \"'\" + allowed.join(\"', '\") + \"'\");\n }\n var chosenEdge = topMost(pile, [\"chosen\", subOption]);\n if (typeof chosenEdge === \"boolean\" || typeof chosenEdge === \"function\") {\n value = chosenEdge;\n }\n }\n return value;\n}\n\n/**\n * Check if the point falls within the given rectangle.\n *\n * @param {rect} rect\n * @param {point} point\n * @param {rotationPoint} [rotationPoint] if specified, the rotation that applies to the rectangle.\n * @returns {boolean} true if point within rectangle, false otherwise\n */\nfunction pointInRect(rect, point, rotationPoint) {\n if (rect.width <= 0 || rect.height <= 0) {\n return false; // early out\n }\n\n if (rotationPoint !== undefined) {\n // Rotate the point the same amount as the rectangle\n var tmp = {\n x: point.x - rotationPoint.x,\n y: point.y - rotationPoint.y\n };\n if (rotationPoint.angle !== 0) {\n // In order to get the coordinates the same, you need to\n // rotate in the reverse direction\n var angle = -rotationPoint.angle;\n var tmp2 = {\n x: Math.cos(angle) * tmp.x - Math.sin(angle) * tmp.y,\n y: Math.sin(angle) * tmp.x + Math.cos(angle) * tmp.y\n };\n point = tmp2;\n } else {\n point = tmp;\n }\n\n // Note that if a rotation is specified, the rectangle coordinates\n // are **not* the full canvas coordinates. They are relative to the\n // rotationPoint. Hence, the point coordinates need not be translated\n // back in this case.\n }\n\n var right = rect.x + rect.width;\n var bottom = rect.y + rect.width;\n return rect.left < point.x && right > point.x && rect.top < point.y && bottom > point.y;\n}\n\n/**\n * Check if given value is acceptable as a label text.\n *\n * @param {*} text value to check; can be anything at this point\n * @returns {boolean} true if valid label value, false otherwise\n */\nfunction isValidLabel(text) {\n // Note that this is quite strict: types that *might* be converted to string are disallowed\n return typeof text === \"string\" && text !== \"\";\n}\n\n/**\n * Returns x, y of self reference circle based on provided angle\n *\n * @param {object} ctx\n * @param {number} angle\n * @param {number} radius\n * @param {VisNode} node\n * @returns {object} x and y coordinates\n */\nfunction getSelfRefCoordinates(ctx, angle, radius, node) {\n var x = node.x;\n var y = node.y;\n if (typeof node.distanceToBorder === \"function\") {\n //calculating opposite and adjacent\n //distaneToBorder becomes Hypotenuse.\n //Formulas sin(a) = Opposite / Hypotenuse and cos(a) = Adjacent / Hypotenuse\n var toBorderDist = node.distanceToBorder(ctx, angle);\n var yFromNodeCenter = Math.sin(angle) * toBorderDist;\n var xFromNodeCenter = Math.cos(angle) * toBorderDist;\n //xFromNodeCenter is basically x and if xFromNodeCenter equals to the distance to border then it means\n //that y does not need calculation because it is equal node.height / 2 or node.y\n //same thing with yFromNodeCenter and if yFromNodeCenter equals to the distance to border then it means\n //that x is equal node.width / 2 or node.x\n if (xFromNodeCenter === toBorderDist) {\n x += toBorderDist;\n y = node.y;\n } else if (yFromNodeCenter === toBorderDist) {\n x = node.x;\n y -= toBorderDist;\n } else {\n x += xFromNodeCenter;\n y -= yFromNodeCenter;\n }\n } else if (node.shape.width > node.shape.height) {\n x = node.x + node.shape.width * 0.5;\n y = node.y - radius;\n } else {\n x = node.x + radius;\n y = node.y - node.shape.height * 0.5;\n }\n return {\n x: x,\n y: y\n };\n}\n\n/**\n * Callback to determine text dimensions, using the parent label settings.\n *\n * @callback MeasureText\n * @param {text} text\n * @param {text} mod\n * @returns {object} { width, values} width in pixels and font attributes\n */\n/**\n * Helper class for Label which collects results of splitting labels into lines and blocks.\n *\n * @private\n */\nvar LabelAccumulator = /*#__PURE__*/function () {\n /**\n * @param {MeasureText} measureText\n */\n function LabelAccumulator(measureText) {\n _classCallCheck(this, LabelAccumulator);\n this.measureText = measureText;\n this.current = 0;\n this.width = 0;\n this.height = 0;\n this.lines = [];\n }\n\n /**\n * Append given text to the given line.\n *\n * @param {number} l index of line to add to\n * @param {string} text string to append to line\n * @param {'bold'|'ital'|'boldital'|'mono'|'normal'} [mod='normal']\n * @private\n */\n _createClass(LabelAccumulator, [{\n key: \"_add\",\n value: function _add(l, text) {\n var mod = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"normal\";\n if (this.lines[l] === undefined) {\n this.lines[l] = {\n width: 0,\n height: 0,\n blocks: []\n };\n }\n\n // We still need to set a block for undefined and empty texts, hence return at this point\n // This is necessary because we don't know at this point if we're at the\n // start of an empty line or not.\n // To compensate, empty blocks are removed in `finalize()`.\n //\n // Empty strings should still have a height\n var tmpText = text;\n if (text === undefined || text === \"\") tmpText = \" \";\n\n // Determine width and get the font properties\n var result = this.measureText(tmpText, mod);\n var block = _Object$assign({}, _valuesInstanceProperty(result));\n block.text = text;\n block.width = result.width;\n block.mod = mod;\n if (text === undefined || text === \"\") {\n block.width = 0;\n }\n this.lines[l].blocks.push(block);\n\n // Update the line width. We need this for determining if a string goes over max width\n this.lines[l].width += block.width;\n }\n\n /**\n * Returns the width in pixels of the current line.\n *\n * @returns {number}\n */\n }, {\n key: \"curWidth\",\n value: function curWidth() {\n var line = this.lines[this.current];\n if (line === undefined) return 0;\n return line.width;\n }\n\n /**\n * Add text in block to current line\n *\n * @param {string} text\n * @param {'bold'|'ital'|'boldital'|'mono'|'normal'} [mod='normal']\n */\n }, {\n key: \"append\",\n value: function append(text) {\n var mod = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"normal\";\n this._add(this.current, text, mod);\n }\n\n /**\n * Add text in block to current line and start a new line\n *\n * @param {string} text\n * @param {'bold'|'ital'|'boldital'|'mono'|'normal'} [mod='normal']\n */\n }, {\n key: \"newLine\",\n value: function newLine(text) {\n var mod = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"normal\";\n this._add(this.current, text, mod);\n this.current++;\n }\n\n /**\n * Determine and set the heights of all the lines currently contained in this instance\n *\n * Note that width has already been set.\n *\n * @private\n */\n }, {\n key: \"determineLineHeights\",\n value: function determineLineHeights() {\n for (var k = 0; k < this.lines.length; k++) {\n var line = this.lines[k];\n\n // Looking for max height of blocks in line\n var height = 0;\n if (line.blocks !== undefined) {\n // Can happen if text contains e.g. '\\n '\n for (var l = 0; l < line.blocks.length; l++) {\n var block = line.blocks[l];\n if (height < block.height) {\n height = block.height;\n }\n }\n }\n line.height = height;\n }\n }\n\n /**\n * Determine the full size of the label text, as determined by current lines and blocks\n *\n * @private\n */\n }, {\n key: \"determineLabelSize\",\n value: function determineLabelSize() {\n var width = 0;\n var height = 0;\n for (var k = 0; k < this.lines.length; k++) {\n var line = this.lines[k];\n if (line.width > width) {\n width = line.width;\n }\n height += line.height;\n }\n this.width = width;\n this.height = height;\n }\n\n /**\n * Remove all empty blocks and empty lines we don't need\n *\n * This must be done after the width/height determination,\n * so that these are set properly for processing here.\n *\n * @returns {Array} Lines with empty blocks (and some empty lines) removed\n * @private\n */\n }, {\n key: \"removeEmptyBlocks\",\n value: function removeEmptyBlocks() {\n var tmpLines = [];\n for (var k = 0; k < this.lines.length; k++) {\n var line = this.lines[k];\n\n // Note: an empty line in between text has width zero but is still relevant to layout.\n // So we can't use width for testing empty line here\n if (line.blocks.length === 0) continue;\n\n // Discard final empty line always\n if (k === this.lines.length - 1) {\n if (line.width === 0) continue;\n }\n var tmpLine = {};\n _Object$assign(tmpLine, line);\n tmpLine.blocks = [];\n var firstEmptyBlock = void 0;\n var tmpBlocks = [];\n for (var l = 0; l < line.blocks.length; l++) {\n var block = line.blocks[l];\n if (block.width !== 0) {\n tmpBlocks.push(block);\n } else {\n if (firstEmptyBlock === undefined) {\n firstEmptyBlock = block;\n }\n }\n }\n\n // Ensure that there is *some* text present\n if (tmpBlocks.length === 0 && firstEmptyBlock !== undefined) {\n tmpBlocks.push(firstEmptyBlock);\n }\n tmpLine.blocks = tmpBlocks;\n tmpLines.push(tmpLine);\n }\n return tmpLines;\n }\n\n /**\n * Set the sizes for all lines and the whole thing.\n *\n * @returns {{width: (number|*), height: (number|*), lines: Array}}\n */\n }, {\n key: \"finalize\",\n value: function finalize() {\n //console.log(JSON.stringify(this.lines, null, 2));\n\n this.determineLineHeights();\n this.determineLabelSize();\n var tmpLines = this.removeEmptyBlocks();\n\n // Return a simple hash object for further processing.\n return {\n width: this.width,\n height: this.height,\n lines: tmpLines\n };\n }\n }]);\n return LabelAccumulator;\n}();\n\n// Hash of prepared regexp's for tags\nvar tagPattern = {\n // HTML\n \"\": //,\n \"\": //,\n \"\": //,\n \"\": /<\\/b>/,\n \"\": /<\\/i>/,\n \"\": /<\\/code>/,\n // Markdown\n \"*\": /\\*/,\n // bold\n _: /_/,\n // ital\n \"`\": /`/,\n // mono\n afterBold: /[^*]/,\n afterItal: /[^_]/,\n afterMono: /[^`]/\n};\n\n/**\n * Internal helper class for parsing the markup tags for HTML and Markdown.\n *\n * NOTE: Sequences of tabs and spaces are reduced to single space.\n * Scan usage of `this.spacing` within method\n */\nvar MarkupAccumulator = /*#__PURE__*/function () {\n /**\n * Create an instance\n *\n * @param {string} text text to parse for markup\n */\n function MarkupAccumulator(text) {\n _classCallCheck(this, MarkupAccumulator);\n this.text = text;\n this.bold = false;\n this.ital = false;\n this.mono = false;\n this.spacing = false;\n this.position = 0;\n this.buffer = \"\";\n this.modStack = [];\n this.blocks = [];\n }\n\n /**\n * Return the mod label currently on the top of the stack\n *\n * @returns {string} label of topmost mod\n * @private\n */\n _createClass(MarkupAccumulator, [{\n key: \"mod\",\n value: function mod() {\n return this.modStack.length === 0 ? \"normal\" : this.modStack[0];\n }\n\n /**\n * Return the mod label currently active\n *\n * @returns {string} label of active mod\n * @private\n */\n }, {\n key: \"modName\",\n value: function modName() {\n if (this.modStack.length === 0) return \"normal\";else if (this.modStack[0] === \"mono\") return \"mono\";else {\n if (this.bold && this.ital) {\n return \"boldital\";\n } else if (this.bold) {\n return \"bold\";\n } else if (this.ital) {\n return \"ital\";\n }\n }\n }\n\n /**\n * @private\n */\n }, {\n key: \"emitBlock\",\n value: function emitBlock() {\n if (this.spacing) {\n this.add(\" \");\n this.spacing = false;\n }\n if (this.buffer.length > 0) {\n this.blocks.push({\n text: this.buffer,\n mod: this.modName()\n });\n this.buffer = \"\";\n }\n }\n\n /**\n * Output text to buffer\n *\n * @param {string} text text to add\n * @private\n */\n }, {\n key: \"add\",\n value: function add(text) {\n if (text === \" \") {\n this.spacing = true;\n }\n if (this.spacing) {\n this.buffer += \" \";\n this.spacing = false;\n }\n if (text != \" \") {\n this.buffer += text;\n }\n }\n\n /**\n * Handle parsing of whitespace\n *\n * @param {string} ch the character to check\n * @returns {boolean} true if the character was processed as whitespace, false otherwise\n */\n }, {\n key: \"parseWS\",\n value: function parseWS(ch) {\n if (/[ \\t]/.test(ch)) {\n if (!this.mono) {\n this.spacing = true;\n } else {\n this.add(ch);\n }\n return true;\n }\n return false;\n }\n\n /**\n * @param {string} tagName label for block type to set\n * @private\n */\n }, {\n key: \"setTag\",\n value: function setTag(tagName) {\n this.emitBlock();\n this[tagName] = true;\n this.modStack.unshift(tagName);\n }\n\n /**\n * @param {string} tagName label for block type to unset\n * @private\n */\n }, {\n key: \"unsetTag\",\n value: function unsetTag(tagName) {\n this.emitBlock();\n this[tagName] = false;\n this.modStack.shift();\n }\n\n /**\n * @param {string} tagName label for block type we are currently processing\n * @param {string|RegExp} tag string to match in text\n * @returns {boolean} true if the tag was processed, false otherwise\n */\n }, {\n key: \"parseStartTag\",\n value: function parseStartTag(tagName, tag) {\n // Note: if 'mono' passed as tagName, there is a double check here. This is OK\n if (!this.mono && !this[tagName] && this.match(tag)) {\n this.setTag(tagName);\n return true;\n }\n return false;\n }\n\n /**\n * @param {string|RegExp} tag\n * @param {number} [advance=true] if set, advance current position in text\n * @returns {boolean} true if match at given position, false otherwise\n * @private\n */\n }, {\n key: \"match\",\n value: function match(tag) {\n var advance = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var _this$prepareRegExp = this.prepareRegExp(tag),\n _this$prepareRegExp2 = _slicedToArray(_this$prepareRegExp, 2),\n regExp = _this$prepareRegExp2[0],\n length = _this$prepareRegExp2[1];\n var matched = regExp.test(this.text.substr(this.position, length));\n if (matched && advance) {\n this.position += length - 1;\n }\n return matched;\n }\n\n /**\n * @param {string} tagName label for block type we are currently processing\n * @param {string|RegExp} tag string to match in text\n * @param {RegExp} [nextTag] regular expression to match for characters *following* the current tag\n * @returns {boolean} true if the tag was processed, false otherwise\n */\n }, {\n key: \"parseEndTag\",\n value: function parseEndTag(tagName, tag, nextTag) {\n var checkTag = this.mod() === tagName;\n if (tagName === \"mono\") {\n // special handling for 'mono'\n checkTag = checkTag && this.mono;\n } else {\n checkTag = checkTag && !this.mono;\n }\n if (checkTag && this.match(tag)) {\n if (nextTag !== undefined) {\n // Purpose of the following match is to prevent a direct unset/set of a given tag\n // E.g. '*bold **still bold*' => '*bold still bold*'\n if (this.position === this.text.length - 1 || this.match(nextTag, false)) {\n this.unsetTag(tagName);\n }\n } else {\n this.unsetTag(tagName);\n }\n return true;\n }\n return false;\n }\n\n /**\n * @param {string|RegExp} tag string to match in text\n * @param {value} value string to replace tag with, if found at current position\n * @returns {boolean} true if the tag was processed, false otherwise\n */\n }, {\n key: \"replace\",\n value: function replace(tag, value) {\n if (this.match(tag)) {\n this.add(value);\n this.position += length - 1;\n return true;\n }\n return false;\n }\n\n /**\n * Create a regular expression for the tag if it isn't already one.\n *\n * The return value is an array `[RegExp, number]`, with exactly two value, where:\n * - RegExp is the regular expression to use\n * - number is the lenth of the input string to match\n *\n * @param {string|RegExp} tag string to match in text\n * @returns {Array} regular expression to use and length of input string to match\n * @private\n */\n }, {\n key: \"prepareRegExp\",\n value: function prepareRegExp(tag) {\n var length;\n var regExp;\n if (tag instanceof RegExp) {\n regExp = tag;\n length = 1; // ASSUMPTION: regexp only tests one character\n } else {\n // use prepared regexp if present\n var prepared = tagPattern[tag];\n if (prepared !== undefined) {\n regExp = prepared;\n } else {\n regExp = new RegExp(tag);\n }\n length = tag.length;\n }\n return [regExp, length];\n }\n }]);\n return MarkupAccumulator;\n}();\n/**\n * Helper class for Label which explodes the label text into lines and blocks within lines\n *\n * @private\n */\nvar LabelSplitter = /*#__PURE__*/function () {\n /**\n * @param {CanvasRenderingContext2D} ctx Canvas rendering context\n * @param {Label} parent reference to the Label instance using current instance\n * @param {boolean} selected\n * @param {boolean} hover\n */\n function LabelSplitter(ctx, parent, selected, hover) {\n var _this = this;\n _classCallCheck(this, LabelSplitter);\n this.ctx = ctx;\n this.parent = parent;\n this.selected = selected;\n this.hover = hover;\n\n /**\n * Callback to determine text width; passed to LabelAccumulator instance\n *\n * @param {string} text string to determine width of\n * @param {string} mod font type to use for this text\n * @returns {object} { width, values} width in pixels and font attributes\n */\n var textWidth = function textWidth(text, mod) {\n if (text === undefined) return 0;\n\n // TODO: This can be done more efficiently with caching\n // This will set the ctx.font correctly, depending on selected/hover and mod - so that ctx.measureText() will be accurate.\n var values = _this.parent.getFormattingValues(ctx, selected, hover, mod);\n var width = 0;\n if (text !== \"\") {\n var measure = _this.ctx.measureText(text);\n width = measure.width;\n }\n return {\n width: width,\n values: values\n };\n };\n this.lines = new LabelAccumulator(textWidth);\n }\n\n /**\n * Split passed text of a label into lines and blocks.\n *\n * # NOTE\n *\n * The handling of spacing is option dependent:\n *\n * - if `font.multi : false`, all spaces are retained\n * - if `font.multi : true`, every sequence of spaces is compressed to a single space\n *\n * This might not be the best way to do it, but this is as it has been working till now.\n * In order not to break existing functionality, for the time being this behaviour will\n * be retained in any code changes.\n *\n * @param {string} text text to split\n * @returns {Array}\n */\n _createClass(LabelSplitter, [{\n key: \"process\",\n value: function process(text) {\n if (!isValidLabel(text)) {\n return this.lines.finalize();\n }\n var font = this.parent.fontOptions;\n\n // Normalize the end-of-line's to a single representation - order important\n text = text.replace(/\\r\\n/g, \"\\n\"); // Dos EOL's\n text = text.replace(/\\r/g, \"\\n\"); // Mac EOL's\n\n // Note that at this point, there can be no \\r's in the text.\n // This is used later on splitStringIntoLines() to split multifont texts.\n\n var nlLines = String(text).split(\"\\n\");\n var lineCount = nlLines.length;\n if (font.multi) {\n // Multi-font case: styling tags active\n for (var i = 0; i < lineCount; i++) {\n var blocks = this.splitBlocks(nlLines[i], font.multi);\n // Post: Sequences of tabs and spaces are reduced to single space\n\n if (blocks === undefined) continue;\n if (blocks.length === 0) {\n this.lines.newLine(\"\");\n continue;\n }\n if (font.maxWdt > 0) {\n // widthConstraint.maximum defined\n //console.log('Running widthConstraint multi, max: ' + this.fontOptions.maxWdt);\n for (var j = 0; j < blocks.length; j++) {\n var mod = blocks[j].mod;\n var _text = blocks[j].text;\n this.splitStringIntoLines(_text, mod, true);\n }\n } else {\n // widthConstraint.maximum NOT defined\n for (var _j = 0; _j < blocks.length; _j++) {\n var _mod = blocks[_j].mod;\n var _text2 = blocks[_j].text;\n this.lines.append(_text2, _mod);\n }\n }\n this.lines.newLine();\n }\n } else {\n // Single-font case\n if (font.maxWdt > 0) {\n // widthConstraint.maximum defined\n // console.log('Running widthConstraint normal, max: ' + this.fontOptions.maxWdt);\n for (var _i = 0; _i < lineCount; _i++) {\n this.splitStringIntoLines(nlLines[_i]);\n }\n } else {\n // widthConstraint.maximum NOT defined\n for (var _i2 = 0; _i2 < lineCount; _i2++) {\n this.lines.newLine(nlLines[_i2]);\n }\n }\n }\n return this.lines.finalize();\n }\n\n /**\n * normalize the markup system\n *\n * @param {boolean|'md'|'markdown'|'html'} markupSystem\n * @returns {string}\n */\n }, {\n key: \"decodeMarkupSystem\",\n value: function decodeMarkupSystem(markupSystem) {\n var system = \"none\";\n if (markupSystem === \"markdown\" || markupSystem === \"md\") {\n system = \"markdown\";\n } else if (markupSystem === true || markupSystem === \"html\") {\n system = \"html\";\n }\n return system;\n }\n\n /**\n *\n * @param {string} text\n * @returns {Array}\n */\n }, {\n key: \"splitHtmlBlocks\",\n value: function splitHtmlBlocks(text) {\n var s = new MarkupAccumulator(text);\n var parseEntities = function parseEntities(ch) {\n if (/&/.test(ch)) {\n var parsed = s.replace(s.text, \"<\", \"<\") || s.replace(s.text, \"&\", \"&\");\n if (!parsed) {\n s.add(\"&\");\n }\n return true;\n }\n return false;\n };\n while (s.position < s.text.length) {\n var ch = s.text.charAt(s.position);\n var parsed = s.parseWS(ch) || /\") || s.parseStartTag(\"ital\", \"\") || s.parseStartTag(\"mono\", \"\") || s.parseEndTag(\"bold\", \"\") || s.parseEndTag(\"ital\", \"\") || s.parseEndTag(\"mono\", \"\")) || parseEntities(ch);\n if (!parsed) {\n s.add(ch);\n }\n s.position++;\n }\n s.emitBlock();\n return s.blocks;\n }\n\n /**\n *\n * @param {string} text\n * @returns {Array}\n */\n }, {\n key: \"splitMarkdownBlocks\",\n value: function splitMarkdownBlocks(text) {\n var _this2 = this;\n var s = new MarkupAccumulator(text);\n var beginable = true;\n var parseOverride = function parseOverride(ch) {\n if (/\\\\/.test(ch)) {\n if (s.position < _this2.text.length + 1) {\n s.position++;\n ch = _this2.text.charAt(s.position);\n if (/ \\t/.test(ch)) {\n s.spacing = true;\n } else {\n s.add(ch);\n beginable = false;\n }\n }\n return true;\n }\n return false;\n };\n while (s.position < s.text.length) {\n var ch = s.text.charAt(s.position);\n var parsed = s.parseWS(ch) || parseOverride(ch) || (beginable || s.spacing) && (s.parseStartTag(\"bold\", \"*\") || s.parseStartTag(\"ital\", \"_\") || s.parseStartTag(\"mono\", \"`\")) || s.parseEndTag(\"bold\", \"*\", \"afterBold\") || s.parseEndTag(\"ital\", \"_\", \"afterItal\") || s.parseEndTag(\"mono\", \"`\", \"afterMono\");\n if (!parsed) {\n s.add(ch);\n beginable = false;\n }\n s.position++;\n }\n s.emitBlock();\n return s.blocks;\n }\n\n /**\n * Explodes a piece of text into single-font blocks using a given markup\n *\n * @param {string} text\n * @param {boolean|'md'|'markdown'|'html'} markupSystem\n * @returns {Array.<{text: string, mod: string}>}\n * @private\n */\n }, {\n key: \"splitBlocks\",\n value: function splitBlocks(text, markupSystem) {\n var system = this.decodeMarkupSystem(markupSystem);\n if (system === \"none\") {\n return [{\n text: text,\n mod: \"normal\"\n }];\n } else if (system === \"markdown\") {\n return this.splitMarkdownBlocks(text);\n } else if (system === \"html\") {\n return this.splitHtmlBlocks(text);\n }\n }\n\n /**\n * @param {string} text\n * @returns {boolean} true if text length over the current max with\n * @private\n */\n }, {\n key: \"overMaxWidth\",\n value: function overMaxWidth(text) {\n var width = this.ctx.measureText(text).width;\n return this.lines.curWidth() + width > this.parent.fontOptions.maxWdt;\n }\n\n /**\n * Determine the longest part of the sentence which still fits in the\n * current max width.\n *\n * @param {Array} words Array of strings signifying a text lines\n * @returns {number} index of first item in string making string go over max\n * @private\n */\n }, {\n key: \"getLongestFit\",\n value: function getLongestFit(words) {\n var text = \"\";\n var w = 0;\n while (w < words.length) {\n var pre = text === \"\" ? \"\" : \" \";\n var newText = text + pre + words[w];\n if (this.overMaxWidth(newText)) break;\n text = newText;\n w++;\n }\n return w;\n }\n\n /**\n * Determine the longest part of the string which still fits in the\n * current max width.\n *\n * @param {Array} words Array of strings signifying a text lines\n * @returns {number} index of first item in string making string go over max\n */\n }, {\n key: \"getLongestFitWord\",\n value: function getLongestFitWord(words) {\n var w = 0;\n while (w < words.length) {\n if (this.overMaxWidth(_sliceInstanceProperty(words).call(words, 0, w))) break;\n w++;\n }\n return w;\n }\n\n /**\n * Split the passed text into lines, according to width constraint (if any).\n *\n * The method assumes that the input string is a single line, i.e. without lines break.\n *\n * This method retains spaces, if still present (case `font.multi: false`).\n * A space which falls on an internal line break, will be replaced by a newline.\n * There is no special handling of tabs; these go along with the flow.\n *\n * @param {string} str\n * @param {string} [mod='normal']\n * @param {boolean} [appendLast=false]\n * @private\n */\n }, {\n key: \"splitStringIntoLines\",\n value: function splitStringIntoLines(str) {\n var mod = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"normal\";\n var appendLast = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n // Set the canvas context font, based upon the current selected/hover state\n // and the provided mod, so the text measurement performed by getLongestFit\n // will be accurate - and not just use the font of whoever last used the canvas.\n this.parent.getFormattingValues(this.ctx, this.selected, this.hover, mod);\n\n // Still-present spaces are relevant, retain them\n str = str.replace(/^( +)/g, \"$1\\r\");\n str = str.replace(/([^\\r][^ ]*)( +)/g, \"$1\\r$2\\r\");\n var words = str.split(\"\\r\");\n while (words.length > 0) {\n var w = this.getLongestFit(words);\n if (w === 0) {\n // Special case: the first word is already larger than the max width.\n var word = words[0];\n\n // Break the word to the largest part that fits the line\n var x = this.getLongestFitWord(word);\n this.lines.newLine(_sliceInstanceProperty(word).call(word, 0, x), mod);\n\n // Adjust the word, so that the rest will be done next iteration\n words[0] = _sliceInstanceProperty(word).call(word, x);\n } else {\n // skip any space that is replaced by a newline\n var newW = w;\n if (words[w - 1] === \" \") {\n w--;\n } else if (words[newW] === \" \") {\n newW++;\n }\n var text = _sliceInstanceProperty(words).call(words, 0, w).join(\"\");\n if (w == words.length && appendLast) {\n this.lines.append(text, mod);\n } else {\n this.lines.newLine(text, mod);\n }\n\n // Adjust the word, so that the rest will be done next iteration\n words = _sliceInstanceProperty(words).call(words, newW);\n }\n }\n }\n }]);\n return LabelSplitter;\n}();\n\n/**\n * List of special styles for multi-fonts\n *\n * @private\n */\nvar multiFontStyle = [\"bold\", \"ital\", \"boldital\", \"mono\"];\n\n/**\n * A Label to be used for Nodes or Edges.\n */\nvar Label = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {object} options\n * @param {boolean} [edgelabel=false]\n */\n function Label(body, options) {\n var edgelabel = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n _classCallCheck(this, Label);\n this.body = body;\n this.pointToSelf = false;\n this.baseSize = undefined;\n this.fontOptions = {}; // instance variable containing the *instance-local* font options\n this.setOptions(options);\n this.size = {\n top: 0,\n left: 0,\n width: 0,\n height: 0,\n yLine: 0\n };\n this.isEdgeLabel = edgelabel;\n }\n\n /**\n * @param {object} options the options of the parent Node-instance\n */\n _createClass(Label, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n this.elementOptions = options; // Reference to the options of the parent Node-instance\n\n this.initFontOptions(options.font);\n if (isValidLabel(options.label)) {\n this.labelDirty = true;\n } else {\n // Bad label! Change the option value to prevent bad stuff happening\n options.label = undefined;\n }\n if (options.font !== undefined && options.font !== null) {\n // font options can be deleted at various levels\n if (typeof options.font === \"string\") {\n this.baseSize = this.fontOptions.size;\n } else if (_typeof$1(options.font) === \"object\") {\n var size = options.font.size;\n if (size !== undefined) {\n this.baseSize = size;\n }\n }\n }\n }\n\n /**\n * Init the font Options structure.\n *\n * Member fontOptions serves as an accumulator for the current font options.\n * As such, it needs to be completely separated from the node options.\n *\n * @param {object} newFontOptions the new font options to process\n * @private\n */\n }, {\n key: \"initFontOptions\",\n value: function initFontOptions(newFontOptions) {\n var _this = this;\n // Prepare the multi-font option objects.\n // These will be filled in propagateFonts(), if required\n forEach$5(multiFontStyle, function (style) {\n _this.fontOptions[style] = {};\n });\n\n // Handle shorthand option, if present\n if (Label.parseFontString(this.fontOptions, newFontOptions)) {\n this.fontOptions.vadjust = 0;\n return;\n }\n\n // Copy over the non-multifont options, if specified\n forEach$5(newFontOptions, function (prop, n) {\n if (prop !== undefined && prop !== null && _typeof$1(prop) !== \"object\") {\n _this.fontOptions[n] = prop;\n }\n });\n }\n\n /**\n * If in-variable is a string, parse it as a font specifier.\n *\n * Note that following is not done here and have to be done after the call:\n * - Not all font options are set (vadjust, mod)\n *\n * @param {object} outOptions out-parameter, object in which to store the parse results (if any)\n * @param {object} inOptions font options to parse\n * @returns {boolean} true if font parsed as string, false otherwise\n * @static\n */\n }, {\n key: \"constrain\",\n value:\n /**\n * Set the width and height constraints based on 'nearest' value\n *\n * @param {Array} pile array of option objects to consider\n * @returns {object} the actual constraint values to use\n * @private\n */\n function constrain(pile) {\n // NOTE: constrainWidth and constrainHeight never set!\n // NOTE: for edge labels, only 'maxWdt' set\n // Node labels can set all the fields\n var fontOptions = {\n constrainWidth: false,\n maxWdt: -1,\n minWdt: -1,\n constrainHeight: false,\n minHgt: -1,\n valign: \"middle\"\n };\n var widthConstraint = topMost(pile, \"widthConstraint\");\n if (typeof widthConstraint === \"number\") {\n fontOptions.maxWdt = Number(widthConstraint);\n fontOptions.minWdt = Number(widthConstraint);\n } else if (_typeof$1(widthConstraint) === \"object\") {\n var widthConstraintMaximum = topMost(pile, [\"widthConstraint\", \"maximum\"]);\n if (typeof widthConstraintMaximum === \"number\") {\n fontOptions.maxWdt = Number(widthConstraintMaximum);\n }\n var widthConstraintMinimum = topMost(pile, [\"widthConstraint\", \"minimum\"]);\n if (typeof widthConstraintMinimum === \"number\") {\n fontOptions.minWdt = Number(widthConstraintMinimum);\n }\n }\n var heightConstraint = topMost(pile, \"heightConstraint\");\n if (typeof heightConstraint === \"number\") {\n fontOptions.minHgt = Number(heightConstraint);\n } else if (_typeof$1(heightConstraint) === \"object\") {\n var heightConstraintMinimum = topMost(pile, [\"heightConstraint\", \"minimum\"]);\n if (typeof heightConstraintMinimum === \"number\") {\n fontOptions.minHgt = Number(heightConstraintMinimum);\n }\n var heightConstraintValign = topMost(pile, [\"heightConstraint\", \"valign\"]);\n if (typeof heightConstraintValign === \"string\") {\n if (heightConstraintValign === \"top\" || heightConstraintValign === \"bottom\") {\n fontOptions.valign = heightConstraintValign;\n }\n }\n }\n return fontOptions;\n }\n\n /**\n * Set options and update internal state\n *\n * @param {object} options options to set\n * @param {Array} pile array of option objects to consider for option 'chosen'\n */\n }, {\n key: \"update\",\n value: function update(options, pile) {\n this.setOptions(options, true);\n this.propagateFonts(pile);\n deepExtend(this.fontOptions, this.constrain(pile));\n this.fontOptions.chooser = choosify(\"label\", pile);\n }\n\n /**\n * When margins are set in an element, adjust sizes is called to remove them\n * from the width/height constraints. This must be done prior to label sizing.\n *\n * @param {{top: number, right: number, bottom: number, left: number}} margins\n */\n }, {\n key: \"adjustSizes\",\n value: function adjustSizes(margins) {\n var widthBias = margins ? margins.right + margins.left : 0;\n if (this.fontOptions.constrainWidth) {\n this.fontOptions.maxWdt -= widthBias;\n this.fontOptions.minWdt -= widthBias;\n }\n var heightBias = margins ? margins.top + margins.bottom : 0;\n if (this.fontOptions.constrainHeight) {\n this.fontOptions.minHgt -= heightBias;\n }\n }\n\n /////////////////////////////////////////////////////////\n // Methods for handling options piles\n // Eventually, these will be moved to a separate class\n /////////////////////////////////////////////////////////\n\n /**\n * Add the font members of the passed list of option objects to the pile.\n *\n * @param {Pile} dstPile pile of option objects add to\n * @param {Pile} srcPile pile of option objects to take font options from\n * @private\n */\n }, {\n key: \"addFontOptionsToPile\",\n value: function addFontOptionsToPile(dstPile, srcPile) {\n for (var i = 0; i < srcPile.length; ++i) {\n this.addFontToPile(dstPile, srcPile[i]);\n }\n }\n\n /**\n * Add given font option object to the list of objects (the 'pile') to consider for determining\n * multi-font option values.\n *\n * @param {Pile} pile pile of option objects to use\n * @param {object} options instance to add to pile\n * @private\n */\n }, {\n key: \"addFontToPile\",\n value: function addFontToPile(pile, options) {\n if (options === undefined) return;\n if (options.font === undefined || options.font === null) return;\n var item = options.font;\n pile.push(item);\n }\n\n /**\n * Collect all own-property values from the font pile that aren't multi-font option objectss.\n *\n * @param {Pile} pile pile of option objects to use\n * @returns {object} object with all current own basic font properties\n * @private\n */\n }, {\n key: \"getBasicOptions\",\n value: function getBasicOptions(pile) {\n var ret = {};\n\n // Scans the whole pile to get all options present\n for (var n = 0; n < pile.length; ++n) {\n var fontOptions = pile[n];\n\n // Convert shorthand if necessary\n var tmpShorthand = {};\n if (Label.parseFontString(tmpShorthand, fontOptions)) {\n fontOptions = tmpShorthand;\n }\n forEach$5(fontOptions, function (opt, name) {\n if (opt === undefined) return; // multi-font option need not be present\n if (Object.prototype.hasOwnProperty.call(ret, name)) return; // Keep first value we encounter\n\n if (_indexOfInstanceProperty(multiFontStyle).call(multiFontStyle, name) !== -1) {\n // Skip multi-font properties but we do need the structure\n ret[name] = {};\n } else {\n ret[name] = opt;\n }\n });\n }\n return ret;\n }\n\n /**\n * Return the value for given option for the given multi-font.\n *\n * All available option objects are trawled in the set order to construct the option values.\n *\n * ---------------------------------------------------------------------\n * ## Traversal of pile for multi-fonts\n *\n * The determination of multi-font option values is a special case, because any values not\n * present in the multi-font options should by definition be taken from the main font options,\n * i.e. from the current 'parent' object of the multi-font option.\n *\n * ### Search order for multi-fonts\n *\n * 'bold' used as example:\n *\n * - search in option group 'bold' in local properties\n * - search in main font option group in local properties\n *\n * ---------------------------------------------------------------------\n *\n * @param {Pile} pile pile of option objects to use\n * @param {MultiFontStyle} multiName sub path for the multi-font\n * @param {string} option the option to search for, for the given multi-font\n * @returns {string|number} the value for the given option\n * @private\n */\n }, {\n key: \"getFontOption\",\n value: function getFontOption(pile, multiName, option) {\n var multiFont;\n\n // Search multi font in local properties\n for (var n = 0; n < pile.length; ++n) {\n var fontOptions = pile[n];\n if (Object.prototype.hasOwnProperty.call(fontOptions, multiName)) {\n multiFont = fontOptions[multiName];\n if (multiFont === undefined || multiFont === null) continue;\n\n // Convert shorthand if necessary\n // TODO: inefficient to do this conversion every time; find a better way.\n var tmpShorthand = {};\n if (Label.parseFontString(tmpShorthand, multiFont)) {\n multiFont = tmpShorthand;\n }\n if (Object.prototype.hasOwnProperty.call(multiFont, option)) {\n return multiFont[option];\n }\n }\n }\n\n // Option is not mentioned in the multi font options; take it from the parent font options.\n // These have already been converted with getBasicOptions(), so use the converted values.\n if (Object.prototype.hasOwnProperty.call(this.fontOptions, option)) {\n return this.fontOptions[option];\n }\n\n // A value **must** be found; you should never get here.\n throw new Error(\"Did not find value for multi-font for property: '\" + option + \"'\");\n }\n\n /**\n * Return all options values for the given multi-font.\n *\n * All available option objects are trawled in the set order to construct the option values.\n *\n * @param {Pile} pile pile of option objects to use\n * @param {MultiFontStyle} multiName sub path for the mod-font\n * @returns {MultiFontOptions}\n * @private\n */\n }, {\n key: \"getFontOptions\",\n value: function getFontOptions(pile, multiName) {\n var result = {};\n var optionNames = [\"color\", \"size\", \"face\", \"mod\", \"vadjust\"]; // List of allowed options per multi-font\n\n for (var i = 0; i < optionNames.length; ++i) {\n var mod = optionNames[i];\n result[mod] = this.getFontOption(pile, multiName, mod);\n }\n return result;\n }\n\n /////////////////////////////////////////////////////////\n // End methods for handling options piles\n /////////////////////////////////////////////////////////\n\n /**\n * Collapse the font options for the multi-font to single objects, from\n * the chain of option objects passed (the 'pile').\n *\n * @param {Pile} pile sequence of option objects to consider.\n * First item in list assumed to be the newly set options.\n */\n }, {\n key: \"propagateFonts\",\n value: function propagateFonts(pile) {\n var _this2 = this;\n var fontPile = []; // sequence of font objects to consider, order important\n\n // Note that this.elementOptions is not used here.\n this.addFontOptionsToPile(fontPile, pile);\n this.fontOptions = this.getBasicOptions(fontPile);\n\n // We set multifont values even if multi === false, for consistency (things break otherwise)\n var _loop = function _loop() {\n var mod = multiFontStyle[i];\n var modOptions = _this2.fontOptions[mod];\n var tmpMultiFontOptions = _this2.getFontOptions(fontPile, mod);\n\n // Copy over found values\n forEach$5(tmpMultiFontOptions, function (option, n) {\n modOptions[n] = option;\n });\n modOptions.size = Number(modOptions.size);\n modOptions.vadjust = Number(modOptions.vadjust);\n };\n for (var i = 0; i < multiFontStyle.length; ++i) {\n _loop();\n }\n }\n\n /**\n * Main function. This is called from anything that wants to draw a label.\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x\n * @param {number} y\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {string} [baseline='middle']\n */\n }, {\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover) {\n var baseline = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : \"middle\";\n // if no label, return\n if (this.elementOptions.label === undefined) return;\n\n // check if we have to render the label\n var viewFontSize = this.fontOptions.size * this.body.view.scale;\n if (this.elementOptions.label && viewFontSize < this.elementOptions.scaling.label.drawThreshold - 1) return;\n\n // This ensures that there will not be HUGE letters on screen\n // by setting an upper limit on the visible text size (regardless of zoomLevel)\n if (viewFontSize >= this.elementOptions.scaling.label.maxVisible) {\n viewFontSize = Number(this.elementOptions.scaling.label.maxVisible) / this.body.view.scale;\n }\n\n // update the size cache if required\n this.calculateLabelSize(ctx, selected, hover, x, y, baseline);\n this._drawBackground(ctx);\n this._drawText(ctx, x, this.size.yLine, baseline, viewFontSize);\n }\n\n /**\n * Draws the label background\n *\n * @param {CanvasRenderingContext2D} ctx\n * @private\n */\n }, {\n key: \"_drawBackground\",\n value: function _drawBackground(ctx) {\n if (this.fontOptions.background !== undefined && this.fontOptions.background !== \"none\") {\n ctx.fillStyle = this.fontOptions.background;\n var size = this.getSize();\n ctx.fillRect(size.left, size.top, size.width, size.height);\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x\n * @param {number} y\n * @param {string} [baseline='middle']\n * @param {number} viewFontSize\n * @private\n */\n }, {\n key: \"_drawText\",\n value: function _drawText(ctx, x, y) {\n var baseline = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : \"middle\";\n var viewFontSize = arguments.length > 4 ? arguments[4] : undefined;\n var _this$_setAlignment = this._setAlignment(ctx, x, y, baseline);\n var _this$_setAlignment2 = _slicedToArray(_this$_setAlignment, 2);\n x = _this$_setAlignment2[0];\n y = _this$_setAlignment2[1];\n ctx.textAlign = \"left\";\n x = x - this.size.width / 2; // Shift label 1/2-distance to the left\n if (this.fontOptions.valign && this.size.height > this.size.labelHeight) {\n if (this.fontOptions.valign === \"top\") {\n y -= (this.size.height - this.size.labelHeight) / 2;\n }\n if (this.fontOptions.valign === \"bottom\") {\n y += (this.size.height - this.size.labelHeight) / 2;\n }\n }\n\n // draw the text\n for (var i = 0; i < this.lineCount; i++) {\n var line = this.lines[i];\n if (line && line.blocks) {\n var width = 0;\n if (this.isEdgeLabel || this.fontOptions.align === \"center\") {\n width += (this.size.width - line.width) / 2;\n } else if (this.fontOptions.align === \"right\") {\n width += this.size.width - line.width;\n }\n for (var j = 0; j < line.blocks.length; j++) {\n var block = line.blocks[j];\n ctx.font = block.font;\n var _this$_getColor = this._getColor(block.color, viewFontSize, block.strokeColor),\n _this$_getColor2 = _slicedToArray(_this$_getColor, 2),\n fontColor = _this$_getColor2[0],\n strokeColor = _this$_getColor2[1];\n if (block.strokeWidth > 0) {\n ctx.lineWidth = block.strokeWidth;\n ctx.strokeStyle = strokeColor;\n ctx.lineJoin = \"round\";\n }\n ctx.fillStyle = fontColor;\n if (block.strokeWidth > 0) {\n ctx.strokeText(block.text, x + width, y + block.vadjust);\n }\n ctx.fillText(block.text, x + width, y + block.vadjust);\n width += block.width;\n }\n y += line.height;\n }\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x\n * @param {number} y\n * @param {string} baseline\n * @returns {Array.}\n * @private\n */\n }, {\n key: \"_setAlignment\",\n value: function _setAlignment(ctx, x, y, baseline) {\n // check for label alignment (for edges)\n // TODO: make alignment for nodes\n if (this.isEdgeLabel && this.fontOptions.align !== \"horizontal\" && this.pointToSelf === false) {\n x = 0;\n y = 0;\n var lineMargin = 2;\n if (this.fontOptions.align === \"top\") {\n ctx.textBaseline = \"alphabetic\";\n y -= 2 * lineMargin; // distance from edge, required because we use alphabetic. Alphabetic has less difference between browsers\n } else if (this.fontOptions.align === \"bottom\") {\n ctx.textBaseline = \"hanging\";\n y += 2 * lineMargin; // distance from edge, required because we use hanging. Hanging has less difference between browsers\n } else {\n ctx.textBaseline = \"middle\";\n }\n } else {\n ctx.textBaseline = baseline;\n }\n return [x, y];\n }\n\n /**\n * fade in when relative scale is between threshold and threshold - 1.\n * If the relative scale would be smaller than threshold -1 the draw function would have returned before coming here.\n *\n * @param {string} color The font color to use\n * @param {number} viewFontSize\n * @param {string} initialStrokeColor\n * @returns {Array.} An array containing the font color and stroke color\n * @private\n */\n }, {\n key: \"_getColor\",\n value: function _getColor(color, viewFontSize, initialStrokeColor) {\n var fontColor = color || \"#000000\";\n var strokeColor = initialStrokeColor || \"#ffffff\";\n if (viewFontSize <= this.elementOptions.scaling.label.drawThreshold) {\n var opacity = Math.max(0, Math.min(1, 1 - (this.elementOptions.scaling.label.drawThreshold - viewFontSize)));\n fontColor = overrideOpacity(fontColor, opacity);\n strokeColor = overrideOpacity(strokeColor, opacity);\n }\n return [fontColor, strokeColor];\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n * @returns {{width: number, height: number}}\n */\n }, {\n key: \"getTextSize\",\n value: function getTextSize(ctx) {\n var selected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var hover = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n this._processLabel(ctx, selected, hover);\n return {\n width: this.size.width,\n height: this.size.height,\n lineCount: this.lineCount\n };\n }\n\n /**\n * Get the current dimensions of the label\n *\n * @returns {rect}\n */\n }, {\n key: \"getSize\",\n value: function getSize() {\n var lineMargin = 2;\n var x = this.size.left; // default values which might be overridden below\n var y = this.size.top - 0.5 * lineMargin; // idem\n\n if (this.isEdgeLabel) {\n var x2 = -this.size.width * 0.5;\n switch (this.fontOptions.align) {\n case \"middle\":\n x = x2;\n y = -this.size.height * 0.5;\n break;\n case \"top\":\n x = x2;\n y = -(this.size.height + lineMargin);\n break;\n case \"bottom\":\n x = x2;\n y = lineMargin;\n break;\n }\n }\n var ret = {\n left: x,\n top: y,\n width: this.size.width,\n height: this.size.height\n };\n return ret;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {number} [x=0]\n * @param {number} [y=0]\n * @param {'middle'|'hanging'} [baseline='middle']\n */\n }, {\n key: \"calculateLabelSize\",\n value: function calculateLabelSize(ctx, selected, hover) {\n var x = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;\n var y = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;\n var baseline = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : \"middle\";\n this._processLabel(ctx, selected, hover);\n this.size.left = x - this.size.width * 0.5;\n this.size.top = y - this.size.height * 0.5;\n this.size.yLine = y + (1 - this.lineCount) * 0.5 * this.fontOptions.size;\n if (baseline === \"hanging\") {\n this.size.top += 0.5 * this.fontOptions.size;\n this.size.top += 4; // distance from node, required because we use hanging. Hanging has less difference between browsers\n this.size.yLine += 4; // distance from node\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {string} mod\n * @returns {{color, size, face, mod, vadjust, strokeWidth: *, strokeColor: (*|string|allOptions.edges.font.strokeColor|{string}|allOptions.nodes.font.strokeColor|Array)}}\n */\n }, {\n key: \"getFormattingValues\",\n value: function getFormattingValues(ctx, selected, hover, mod) {\n var getValue = function getValue(fontOptions, mod, option) {\n if (mod === \"normal\") {\n if (option === \"mod\") return \"\";\n return fontOptions[option];\n }\n if (fontOptions[mod][option] !== undefined) {\n // Grumbl leaving out test on undefined equals false for \"\"\n return fontOptions[mod][option];\n } else {\n // Take from parent font option\n return fontOptions[option];\n }\n };\n var values = {\n color: getValue(this.fontOptions, mod, \"color\"),\n size: getValue(this.fontOptions, mod, \"size\"),\n face: getValue(this.fontOptions, mod, \"face\"),\n mod: getValue(this.fontOptions, mod, \"mod\"),\n vadjust: getValue(this.fontOptions, mod, \"vadjust\"),\n strokeWidth: this.fontOptions.strokeWidth,\n strokeColor: this.fontOptions.strokeColor\n };\n if (selected || hover) {\n if (mod === \"normal\" && this.fontOptions.chooser === true && this.elementOptions.labelHighlightBold) {\n values.mod = \"bold\";\n } else {\n if (typeof this.fontOptions.chooser === \"function\") {\n this.fontOptions.chooser(values, this.elementOptions.id, selected, hover);\n }\n }\n }\n var fontString = \"\";\n if (values.mod !== undefined && values.mod !== \"\") {\n // safeguard for undefined - this happened\n fontString += values.mod + \" \";\n }\n fontString += values.size + \"px \" + values.face;\n ctx.font = fontString.replace(/\"/g, \"\");\n values.font = ctx.font;\n values.height = values.size;\n return values;\n }\n\n /**\n *\n * @param {boolean} selected\n * @param {boolean} hover\n * @returns {boolean}\n */\n }, {\n key: \"differentState\",\n value: function differentState(selected, hover) {\n return selected !== this.selectedState || hover !== this.hoverState;\n }\n\n /**\n * This explodes the passed text into lines and determines the width, height and number of lines.\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {string} inText the text to explode\n * @returns {{width, height, lines}|*}\n * @private\n */\n }, {\n key: \"_processLabelText\",\n value: function _processLabelText(ctx, selected, hover, inText) {\n var splitter = new LabelSplitter(ctx, this, selected, hover);\n return splitter.process(inText);\n }\n\n /**\n * This explodes the label string into lines and sets the width, height and number of lines.\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n * @private\n */\n }, {\n key: \"_processLabel\",\n value: function _processLabel(ctx, selected, hover) {\n if (this.labelDirty === false && !this.differentState(selected, hover)) return;\n var state = this._processLabelText(ctx, selected, hover, this.elementOptions.label);\n if (this.fontOptions.minWdt > 0 && state.width < this.fontOptions.minWdt) {\n state.width = this.fontOptions.minWdt;\n }\n this.size.labelHeight = state.height;\n if (this.fontOptions.minHgt > 0 && state.height < this.fontOptions.minHgt) {\n state.height = this.fontOptions.minHgt;\n }\n this.lines = state.lines;\n this.lineCount = state.lines.length;\n this.size.width = state.width;\n this.size.height = state.height;\n this.selectedState = selected;\n this.hoverState = hover;\n this.labelDirty = false;\n }\n\n /**\n * Check if this label is visible\n *\n * @returns {boolean} true if this label will be show, false otherwise\n */\n }, {\n key: \"visible\",\n value: function visible() {\n if (this.size.width === 0 || this.size.height === 0 || this.elementOptions.label === undefined) {\n return false; // nothing to display\n }\n\n var viewFontSize = this.fontOptions.size * this.body.view.scale;\n if (viewFontSize < this.elementOptions.scaling.label.drawThreshold - 1) {\n return false; // Too small or too far away to show\n }\n\n return true;\n }\n }], [{\n key: \"parseFontString\",\n value: function parseFontString(outOptions, inOptions) {\n if (!inOptions || typeof inOptions !== \"string\") return false;\n var newOptionsArray = inOptions.split(\" \");\n outOptions.size = +newOptionsArray[0].replace(\"px\", \"\");\n outOptions.face = newOptionsArray[1];\n outOptions.color = newOptionsArray[2];\n return true;\n }\n }]);\n return Label;\n}();\n\n/**\n * The Base class for all Nodes.\n */\nvar NodeBase = /*#__PURE__*/function () {\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function NodeBase(options, body, labelModule) {\n _classCallCheck(this, NodeBase);\n this.body = body;\n this.labelModule = labelModule;\n this.setOptions(options);\n this.top = undefined;\n this.left = undefined;\n this.height = undefined;\n this.width = undefined;\n this.radius = undefined;\n this.margin = undefined;\n this.refreshNeeded = true;\n this.boundingBox = {\n top: 0,\n left: 0,\n right: 0,\n bottom: 0\n };\n }\n\n /**\n *\n * @param {object} options\n */\n _createClass(NodeBase, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n this.options = options;\n }\n\n /**\n *\n * @param {Label} labelModule\n * @private\n */\n }, {\n key: \"_setMargins\",\n value: function _setMargins(labelModule) {\n this.margin = {};\n if (this.options.margin) {\n if (_typeof$1(this.options.margin) == \"object\") {\n this.margin.top = this.options.margin.top;\n this.margin.right = this.options.margin.right;\n this.margin.bottom = this.options.margin.bottom;\n this.margin.left = this.options.margin.left;\n } else {\n this.margin.top = this.options.margin;\n this.margin.right = this.options.margin;\n this.margin.bottom = this.options.margin;\n this.margin.left = this.options.margin;\n }\n }\n labelModule.adjustSizes(this.margin);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n * @private\n */\n }, {\n key: \"_distanceToBorder\",\n value: function _distanceToBorder(ctx, angle) {\n var borderWidth = this.options.borderWidth;\n if (ctx) {\n this.resize(ctx);\n }\n return Math.min(Math.abs(this.width / 2 / Math.cos(angle)), Math.abs(this.height / 2 / Math.sin(angle))) + borderWidth;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {ArrowOptions} values\n */\n }, {\n key: \"enableShadow\",\n value: function enableShadow(ctx, values) {\n if (values.shadow) {\n ctx.shadowColor = values.shadowColor;\n ctx.shadowBlur = values.shadowSize;\n ctx.shadowOffsetX = values.shadowX;\n ctx.shadowOffsetY = values.shadowY;\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {ArrowOptions} values\n */\n }, {\n key: \"disableShadow\",\n value: function disableShadow(ctx, values) {\n if (values.shadow) {\n ctx.shadowColor = \"rgba(0,0,0,0)\";\n ctx.shadowBlur = 0;\n ctx.shadowOffsetX = 0;\n ctx.shadowOffsetY = 0;\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {ArrowOptions} values\n */\n }, {\n key: \"enableBorderDashes\",\n value: function enableBorderDashes(ctx, values) {\n if (values.borderDashes !== false) {\n if (ctx.setLineDash !== undefined) {\n var dashes = values.borderDashes;\n if (dashes === true) {\n dashes = [5, 15];\n }\n ctx.setLineDash(dashes);\n } else {\n console.warn(\"setLineDash is not supported in this browser. The dashed borders cannot be used.\");\n this.options.shapeProperties.borderDashes = false;\n values.borderDashes = false;\n }\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {ArrowOptions} values\n */\n }, {\n key: \"disableBorderDashes\",\n value: function disableBorderDashes(ctx, values) {\n if (values.borderDashes !== false) {\n if (ctx.setLineDash !== undefined) {\n ctx.setLineDash([0]);\n } else {\n console.warn(\"setLineDash is not supported in this browser. The dashed borders cannot be used.\");\n this.options.shapeProperties.borderDashes = false;\n values.borderDashes = false;\n }\n }\n }\n\n /**\n * Determine if the shape of a node needs to be recalculated.\n *\n * @param {boolean} selected\n * @param {boolean} hover\n * @returns {boolean}\n * @protected\n */\n }, {\n key: \"needsRefresh\",\n value: function needsRefresh(selected, hover) {\n if (this.refreshNeeded === true) {\n // This is probably not the best location to reset this member.\n // However, in the current logic, it is the most convenient one.\n this.refreshNeeded = false;\n return true;\n }\n return this.width === undefined || this.labelModule.differentState(selected, hover);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {ArrowOptions} values\n */\n }, {\n key: \"initContextForDraw\",\n value: function initContextForDraw(ctx, values) {\n var borderWidth = values.borderWidth / this.body.view.scale;\n ctx.lineWidth = Math.min(this.width, borderWidth);\n ctx.strokeStyle = values.borderColor;\n ctx.fillStyle = values.color;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {ArrowOptions} values\n */\n }, {\n key: \"performStroke\",\n value: function performStroke(ctx, values) {\n var borderWidth = values.borderWidth / this.body.view.scale;\n\n //draw dashed border if enabled, save and restore is required for firefox not to crash on unix.\n ctx.save();\n // if borders are zero width, they will be drawn with width 1 by default. This prevents that\n if (borderWidth > 0) {\n this.enableBorderDashes(ctx, values);\n //draw the border\n ctx.stroke();\n //disable dashed border for other elements\n this.disableBorderDashes(ctx, values);\n }\n ctx.restore();\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {ArrowOptions} values\n */\n }, {\n key: \"performFill\",\n value: function performFill(ctx, values) {\n ctx.save();\n ctx.fillStyle = values.color;\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n // draw the background\n _fillInstanceProperty(ctx).call(ctx);\n // disable shadows for other elements.\n this.disableShadow(ctx, values);\n ctx.restore();\n this.performStroke(ctx, values);\n }\n\n /**\n *\n * @param {number} margin\n * @private\n */\n }, {\n key: \"_addBoundingBoxMargin\",\n value: function _addBoundingBoxMargin(margin) {\n this.boundingBox.left -= margin;\n this.boundingBox.top -= margin;\n this.boundingBox.bottom += margin;\n this.boundingBox.right += margin;\n }\n\n /**\n * Actual implementation of this method call.\n *\n * Doing it like this makes it easier to override\n * in the child classes.\n *\n * @param {number} x width\n * @param {number} y height\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n * @private\n */\n }, {\n key: \"_updateBoundingBox\",\n value: function _updateBoundingBox(x, y, ctx, selected, hover) {\n if (ctx !== undefined) {\n this.resize(ctx, selected, hover);\n }\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n this.boundingBox.left = this.left;\n this.boundingBox.top = this.top;\n this.boundingBox.bottom = this.top + this.height;\n this.boundingBox.right = this.left + this.width;\n }\n\n /**\n * Default implementation of this method call.\n * This acts as a stub which can be overridden.\n *\n * @param {number} x width\n * @param {number} y height\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n */\n }, {\n key: \"updateBoundingBox\",\n value: function updateBoundingBox(x, y, ctx, selected, hover) {\n this._updateBoundingBox(x, y, ctx, selected, hover);\n }\n\n /**\n * Determine the dimensions to use for nodes with an internal label\n *\n * Currently, these are: Circle, Ellipse, Database, Box\n * The other nodes have external labels, and will not call this method\n *\n * If there is no label, decent default values are supplied.\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} [selected]\n * @param {boolean} [hover]\n * @returns {{width:number, height:number}}\n */\n }, {\n key: \"getDimensionsFromLabel\",\n value: function getDimensionsFromLabel(ctx, selected, hover) {\n // NOTE: previously 'textSize' was not put in 'this' for Ellipse\n // TODO: examine the consequences.\n this.textSize = this.labelModule.getTextSize(ctx, selected, hover);\n var width = this.textSize.width;\n var height = this.textSize.height;\n var DEFAULT_SIZE = 14;\n if (width === 0) {\n // This happens when there is no label text set\n width = DEFAULT_SIZE; // use a decent default\n height = DEFAULT_SIZE; // if width zero, then height also always zero\n }\n\n return {\n width: width,\n height: height\n };\n }\n }]);\n return NodeBase;\n}();\n\nfunction _createSuper$s(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$s(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$s() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Box Node/Cluster shape.\n *\n * @augments NodeBase\n */\nvar Box$1 = /*#__PURE__*/function (_NodeBase) {\n _inherits(Box, _NodeBase);\n var _super = _createSuper$s(Box);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Box(options, body, labelModule) {\n var _this;\n _classCallCheck(this, Box);\n _this = _super.call(this, options, body, labelModule);\n _this._setMargins(labelModule);\n return _this;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} [selected]\n * @param {boolean} [hover]\n */\n _createClass(Box, [{\n key: \"resize\",\n value: function resize(ctx) {\n var selected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.selected;\n var hover = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.hover;\n if (this.needsRefresh(selected, hover)) {\n var dimensions = this.getDimensionsFromLabel(ctx, selected, hover);\n this.width = dimensions.width + this.margin.right + this.margin.left;\n this.height = dimensions.height + this.margin.top + this.margin.bottom;\n this.radius = this.width / 2;\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n */\n }, {\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n this.resize(ctx, selected, hover);\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n this.initContextForDraw(ctx, values);\n drawRoundRect(ctx, this.left, this.top, this.width, this.height, values.borderRadius);\n this.performFill(ctx, values);\n this.updateBoundingBox(x, y, ctx, selected, hover);\n this.labelModule.draw(ctx, this.left + this.textSize.width / 2 + this.margin.left, this.top + this.textSize.height / 2 + this.margin.top, selected, hover);\n }\n\n /**\n *\n * @param {number} x width\n * @param {number} y height\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n */\n }, {\n key: \"updateBoundingBox\",\n value: function updateBoundingBox(x, y, ctx, selected, hover) {\n this._updateBoundingBox(x, y, ctx, selected, hover);\n var borderRadius = this.options.shapeProperties.borderRadius; // only effective for box\n this._addBoundingBoxMargin(borderRadius);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n if (ctx) {\n this.resize(ctx);\n }\n var borderWidth = this.options.borderWidth;\n return Math.min(Math.abs(this.width / 2 / Math.cos(angle)), Math.abs(this.height / 2 / Math.sin(angle))) + borderWidth;\n }\n }]);\n return Box;\n}(NodeBase);\n\nfunction _createSuper$r(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$r(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$r() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * NOTE: This is a bad base class\n *\n * Child classes are:\n *\n * Image - uses *only* image methods\n * Circle - uses *only* _drawRawCircle\n * CircleImage - uses all\n *\n * TODO: Refactor, move _drawRawCircle to different module, derive Circle from NodeBase\n * Rename this to ImageBase\n * Consolidate common code in Image and CircleImage to base class\n *\n * @augments NodeBase\n */\nvar CircleImageBase = /*#__PURE__*/function (_NodeBase) {\n _inherits(CircleImageBase, _NodeBase);\n var _super = _createSuper$r(CircleImageBase);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function CircleImageBase(options, body, labelModule) {\n var _this;\n _classCallCheck(this, CircleImageBase);\n _this = _super.call(this, options, body, labelModule);\n _this.labelOffset = 0;\n _this.selected = false;\n return _this;\n }\n\n /**\n *\n * @param {object} options\n * @param {object} [imageObj]\n * @param {object} [imageObjAlt]\n */\n _createClass(CircleImageBase, [{\n key: \"setOptions\",\n value: function setOptions(options, imageObj, imageObjAlt) {\n this.options = options;\n if (!(imageObj === undefined && imageObjAlt === undefined)) {\n this.setImages(imageObj, imageObjAlt);\n }\n }\n\n /**\n * Set the images for this node.\n *\n * The images can be updated after the initial setting of options;\n * therefore, this method needs to be reentrant.\n *\n * For correct working in error cases, it is necessary to properly set\n * field 'nodes.brokenImage' in the options.\n *\n * @param {Image} imageObj required; main image to show for this node\n * @param {Image|undefined} imageObjAlt optional; image to show when node is selected\n */\n }, {\n key: \"setImages\",\n value: function setImages(imageObj, imageObjAlt) {\n if (imageObjAlt && this.selected) {\n this.imageObj = imageObjAlt;\n this.imageObjAlt = imageObj;\n } else {\n this.imageObj = imageObj;\n this.imageObjAlt = imageObjAlt;\n }\n }\n\n /**\n * Set selection and switch between the base and the selected image.\n *\n * Do the switch only if imageObjAlt exists.\n *\n * @param {boolean} selected value of new selected state for current node\n */\n }, {\n key: \"switchImages\",\n value: function switchImages(selected) {\n var selection_changed = selected && !this.selected || !selected && this.selected;\n this.selected = selected; // Remember new selection\n\n if (this.imageObjAlt !== undefined && selection_changed) {\n var imageTmp = this.imageObj;\n this.imageObj = this.imageObjAlt;\n this.imageObjAlt = imageTmp;\n }\n }\n\n /**\n * Returns Image Padding from node options\n *\n * @returns {{top: number,left: number,bottom: number,right: number}} image padding inside this shape\n * @private\n */\n }, {\n key: \"_getImagePadding\",\n value: function _getImagePadding() {\n var imgPadding = {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n if (this.options.imagePadding) {\n var optImgPadding = this.options.imagePadding;\n if (_typeof$1(optImgPadding) == \"object\") {\n imgPadding.top = optImgPadding.top;\n imgPadding.right = optImgPadding.right;\n imgPadding.bottom = optImgPadding.bottom;\n imgPadding.left = optImgPadding.left;\n } else {\n imgPadding.top = optImgPadding;\n imgPadding.right = optImgPadding;\n imgPadding.bottom = optImgPadding;\n imgPadding.left = optImgPadding;\n }\n }\n return imgPadding;\n }\n\n /**\n * Adjust the node dimensions for a loaded image.\n *\n * Pre: this.imageObj is valid\n */\n }, {\n key: \"_resizeImage\",\n value: function _resizeImage() {\n var width, height;\n if (this.options.shapeProperties.useImageSize === false) {\n // Use the size property\n var ratio_width = 1;\n var ratio_height = 1;\n\n // Only calculate the proper ratio if both width and height not zero\n if (this.imageObj.width && this.imageObj.height) {\n if (this.imageObj.width > this.imageObj.height) {\n ratio_width = this.imageObj.width / this.imageObj.height;\n } else {\n ratio_height = this.imageObj.height / this.imageObj.width;\n }\n }\n width = this.options.size * 2 * ratio_width;\n height = this.options.size * 2 * ratio_height;\n } else {\n // Use the image size with image padding\n var imgPadding = this._getImagePadding();\n width = this.imageObj.width + imgPadding.left + imgPadding.right;\n height = this.imageObj.height + imgPadding.top + imgPadding.bottom;\n }\n this.width = width;\n this.height = height;\n this.radius = 0.5 * this.width;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {ArrowOptions} values\n * @private\n */\n }, {\n key: \"_drawRawCircle\",\n value: function _drawRawCircle(ctx, x, y, values) {\n this.initContextForDraw(ctx, values);\n drawCircle(ctx, x, y, values.size);\n this.performFill(ctx, values);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {ArrowOptions} values\n * @private\n */\n }, {\n key: \"_drawImageAtPosition\",\n value: function _drawImageAtPosition(ctx, values) {\n if (this.imageObj.width != 0) {\n // draw the image\n ctx.globalAlpha = values.opacity !== undefined ? values.opacity : 1;\n\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n var factor = 1;\n if (this.options.shapeProperties.interpolation === true) {\n factor = this.imageObj.width / this.width / this.body.view.scale;\n }\n var imgPadding = this._getImagePadding();\n var imgPosLeft = this.left + imgPadding.left;\n var imgPosTop = this.top + imgPadding.top;\n var imgWidth = this.width - imgPadding.left - imgPadding.right;\n var imgHeight = this.height - imgPadding.top - imgPadding.bottom;\n this.imageObj.drawImageAtPosition(ctx, factor, imgPosLeft, imgPosTop, imgWidth, imgHeight);\n\n // disable shadows for other elements.\n this.disableShadow(ctx, values);\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @private\n */\n }, {\n key: \"_drawImageLabel\",\n value: function _drawImageLabel(ctx, x, y, selected, hover) {\n var offset = 0;\n if (this.height !== undefined) {\n offset = this.height * 0.5;\n var labelDimensions = this.labelModule.getTextSize(ctx, selected, hover);\n if (labelDimensions.lineCount >= 1) {\n offset += labelDimensions.height / 2;\n }\n }\n var yLabel = y + offset;\n if (this.options.label) {\n this.labelOffset = offset;\n }\n this.labelModule.draw(ctx, x, yLabel, selected, hover, \"hanging\");\n }\n }]);\n return CircleImageBase;\n}(NodeBase);\n\nfunction _createSuper$q(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$q(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$q() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Circle Node/Cluster shape.\n *\n * @augments CircleImageBase\n */\nvar Circle$1 = /*#__PURE__*/function (_CircleImageBase) {\n _inherits(Circle, _CircleImageBase);\n var _super = _createSuper$q(Circle);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Circle(options, body, labelModule) {\n var _this;\n _classCallCheck(this, Circle);\n _this = _super.call(this, options, body, labelModule);\n _this._setMargins(labelModule);\n return _this;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} [selected]\n * @param {boolean} [hover]\n */\n _createClass(Circle, [{\n key: \"resize\",\n value: function resize(ctx) {\n var selected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.selected;\n var hover = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.hover;\n if (this.needsRefresh(selected, hover)) {\n var dimensions = this.getDimensionsFromLabel(ctx, selected, hover);\n var diameter = Math.max(dimensions.width + this.margin.right + this.margin.left, dimensions.height + this.margin.top + this.margin.bottom);\n this.options.size = diameter / 2; // NOTE: this size field only set here, not in Ellipse, Database, Box\n this.width = diameter;\n this.height = diameter;\n this.radius = this.width / 2;\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n */\n }, {\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n this.resize(ctx, selected, hover);\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n this._drawRawCircle(ctx, x, y, values);\n this.updateBoundingBox(x, y);\n this.labelModule.draw(ctx, this.left + this.textSize.width / 2 + this.margin.left, y, selected, hover);\n }\n\n /**\n *\n * @param {number} x width\n * @param {number} y height\n */\n }, {\n key: \"updateBoundingBox\",\n value: function updateBoundingBox(x, y) {\n this.boundingBox.top = y - this.options.size;\n this.boundingBox.left = x - this.options.size;\n this.boundingBox.right = x + this.options.size;\n this.boundingBox.bottom = y + this.options.size;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx) {\n if (ctx) {\n this.resize(ctx);\n }\n return this.width * 0.5;\n }\n }]);\n return Circle;\n}(CircleImageBase);\n\nfunction _createSuper$p(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$p(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$p() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A CircularImage Node/Cluster shape.\n *\n * @augments CircleImageBase\n */\nvar CircularImage = /*#__PURE__*/function (_CircleImageBase) {\n _inherits(CircularImage, _CircleImageBase);\n var _super = _createSuper$p(CircularImage);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n * @param {Image} imageObj\n * @param {Image} imageObjAlt\n */\n function CircularImage(options, body, labelModule, imageObj, imageObjAlt) {\n var _this;\n _classCallCheck(this, CircularImage);\n _this = _super.call(this, options, body, labelModule);\n _this.setImages(imageObj, imageObjAlt);\n return _this;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} [selected]\n * @param {boolean} [hover]\n */\n _createClass(CircularImage, [{\n key: \"resize\",\n value: function resize(ctx) {\n var selected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.selected;\n var hover = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.hover;\n var imageAbsent = this.imageObj.src === undefined || this.imageObj.width === undefined || this.imageObj.height === undefined;\n if (imageAbsent) {\n var diameter = this.options.size * 2;\n this.width = diameter;\n this.height = diameter;\n this.radius = 0.5 * this.width;\n return;\n }\n\n // At this point, an image is present, i.e. this.imageObj is valid.\n if (this.needsRefresh(selected, hover)) {\n this._resizeImage();\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n */\n }, {\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n this.switchImages(selected);\n this.resize();\n var labelX = x,\n labelY = y;\n if (this.options.shapeProperties.coordinateOrigin === \"top-left\") {\n this.left = x;\n this.top = y;\n labelX += this.width / 2;\n labelY += this.height / 2;\n } else {\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n }\n\n // draw the background circle. IMPORTANT: the stroke in this method is used by the clip method below.\n this._drawRawCircle(ctx, labelX, labelY, values);\n\n // now we draw in the circle, we save so we can revert the clip operation after drawing.\n ctx.save();\n // clip is used to use the stroke in drawRawCircle as an area that we can draw in.\n ctx.clip();\n // draw the image\n this._drawImageAtPosition(ctx, values);\n // restore so we can again draw on the full canvas\n ctx.restore();\n this._drawImageLabel(ctx, labelX, labelY, selected, hover);\n this.updateBoundingBox(x, y);\n }\n\n // TODO: compare with Circle.updateBoundingBox(), consolidate? More stuff is happening here\n /**\n *\n * @param {number} x width\n * @param {number} y height\n */\n }, {\n key: \"updateBoundingBox\",\n value: function updateBoundingBox(x, y) {\n if (this.options.shapeProperties.coordinateOrigin === \"top-left\") {\n this.boundingBox.top = y;\n this.boundingBox.left = x;\n this.boundingBox.right = x + this.options.size * 2;\n this.boundingBox.bottom = y + this.options.size * 2;\n } else {\n this.boundingBox.top = y - this.options.size;\n this.boundingBox.left = x - this.options.size;\n this.boundingBox.right = x + this.options.size;\n this.boundingBox.bottom = y + this.options.size;\n }\n\n // TODO: compare with Image.updateBoundingBox(), consolidate?\n this.boundingBox.left = Math.min(this.boundingBox.left, this.labelModule.size.left);\n this.boundingBox.right = Math.max(this.boundingBox.right, this.labelModule.size.left + this.labelModule.size.width);\n this.boundingBox.bottom = Math.max(this.boundingBox.bottom, this.boundingBox.bottom + this.labelOffset);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx) {\n if (ctx) {\n this.resize(ctx);\n }\n return this.width * 0.5;\n }\n }]);\n return CircularImage;\n}(CircleImageBase);\n\nfunction _createSuper$o(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$o(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$o() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * Base class for constructing Node/Cluster Shapes.\n *\n * @augments NodeBase\n */\nvar ShapeBase = /*#__PURE__*/function (_NodeBase) {\n _inherits(ShapeBase, _NodeBase);\n var _super = _createSuper$o(ShapeBase);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function ShapeBase(options, body, labelModule) {\n _classCallCheck(this, ShapeBase);\n return _super.call(this, options, body, labelModule);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} [selected]\n * @param {boolean} [hover]\n * @param {object} [values={size: this.options.size}]\n */\n _createClass(ShapeBase, [{\n key: \"resize\",\n value: function resize(ctx) {\n var selected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.selected;\n var hover = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.hover;\n var values = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {\n size: this.options.size\n };\n if (this.needsRefresh(selected, hover)) {\n var _this$customSizeWidth, _this$customSizeHeigh;\n this.labelModule.getTextSize(ctx, selected, hover);\n var size = 2 * values.size;\n this.width = (_this$customSizeWidth = this.customSizeWidth) !== null && _this$customSizeWidth !== void 0 ? _this$customSizeWidth : size;\n this.height = (_this$customSizeHeigh = this.customSizeHeight) !== null && _this$customSizeHeigh !== void 0 ? _this$customSizeHeigh : size;\n this.radius = 0.5 * this.width;\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {string} shape\n * @param {number} sizeMultiplier - Unused! TODO: Remove next major release\n * @param {number} x\n * @param {number} y\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @private\n * @returns {object} Callbacks to draw later on higher layers.\n */\n }, {\n key: \"_drawShape\",\n value: function _drawShape(ctx, shape, sizeMultiplier, x, y, selected, hover, values) {\n var _this = this;\n this.resize(ctx, selected, hover, values);\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n this.initContextForDraw(ctx, values);\n getShape(shape)(ctx, x, y, values.size);\n this.performFill(ctx, values);\n if (this.options.icon !== undefined) {\n if (this.options.icon.code !== undefined) {\n ctx.font = (selected ? \"bold \" : \"\") + this.height / 2 + \"px \" + (this.options.icon.face || \"FontAwesome\");\n ctx.fillStyle = this.options.icon.color || \"black\";\n ctx.textAlign = \"center\";\n ctx.textBaseline = \"middle\";\n ctx.fillText(this.options.icon.code, x, y);\n }\n }\n return {\n drawExternalLabel: function drawExternalLabel() {\n if (_this.options.label !== undefined) {\n // Need to call following here in order to ensure value for\n // `this.labelModule.size.height`.\n _this.labelModule.calculateLabelSize(ctx, selected, hover, x, y, \"hanging\");\n var yLabel = y + 0.5 * _this.height + 0.5 * _this.labelModule.size.height;\n _this.labelModule.draw(ctx, x, yLabel, selected, hover, \"hanging\");\n }\n _this.updateBoundingBox(x, y);\n }\n };\n }\n\n /**\n *\n * @param {number} x\n * @param {number} y\n */\n }, {\n key: \"updateBoundingBox\",\n value: function updateBoundingBox(x, y) {\n this.boundingBox.top = y - this.options.size;\n this.boundingBox.left = x - this.options.size;\n this.boundingBox.right = x + this.options.size;\n this.boundingBox.bottom = y + this.options.size;\n if (this.options.label !== undefined && this.labelModule.size.width > 0) {\n this.boundingBox.left = Math.min(this.boundingBox.left, this.labelModule.size.left);\n this.boundingBox.right = Math.max(this.boundingBox.right, this.labelModule.size.left + this.labelModule.size.width);\n this.boundingBox.bottom = Math.max(this.boundingBox.bottom, this.boundingBox.bottom + this.labelModule.size.height);\n }\n }\n }]);\n return ShapeBase;\n}(NodeBase);\n\nfunction ownKeys$3(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor$1(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$3(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$3(Object(source))).call(_context2, function (key) { _Object$defineProperty$1(target, key, _Object$getOwnPropertyDescriptor$1(source, key)); }); } return target; }\nfunction _createSuper$n(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$n(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$n() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A CustomShape Node/Cluster shape.\n *\n * @augments ShapeBase\n */\nvar CustomShape = /*#__PURE__*/function (_ShapeBase) {\n _inherits(CustomShape, _ShapeBase);\n var _super = _createSuper$n(CustomShape);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n * @param {Function} ctxRenderer\n */\n function CustomShape(options, body, labelModule, ctxRenderer) {\n var _this;\n _classCallCheck(this, CustomShape);\n _this = _super.call(this, options, body, labelModule, ctxRenderer);\n _this.ctxRenderer = ctxRenderer;\n return _this;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @returns {object} Callbacks to draw later on different layers.\n */\n _createClass(CustomShape, [{\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n this.resize(ctx, selected, hover, values);\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n\n // Guard right away because someone may just draw in the function itself.\n ctx.save();\n var drawLater = this.ctxRenderer({\n ctx: ctx,\n id: this.options.id,\n x: x,\n y: y,\n state: {\n selected: selected,\n hover: hover\n },\n style: _objectSpread$3({}, values),\n label: this.options.label\n });\n // Render the node shape bellow arrows.\n if (drawLater.drawNode != null) {\n drawLater.drawNode();\n }\n ctx.restore();\n if (drawLater.drawExternalLabel) {\n // Guard the external label (above arrows) drawing function.\n var drawExternalLabel = drawLater.drawExternalLabel;\n drawLater.drawExternalLabel = function () {\n ctx.save();\n drawExternalLabel();\n ctx.restore();\n };\n }\n if (drawLater.nodeDimensions) {\n this.customSizeWidth = drawLater.nodeDimensions.width;\n this.customSizeHeight = drawLater.nodeDimensions.height;\n }\n return drawLater;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return CustomShape;\n}(ShapeBase);\n\nfunction _createSuper$m(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$m(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$m() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Database Node/Cluster shape.\n *\n * @augments NodeBase\n */\nvar Database = /*#__PURE__*/function (_NodeBase) {\n _inherits(Database, _NodeBase);\n var _super = _createSuper$m(Database);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Database(options, body, labelModule) {\n var _this;\n _classCallCheck(this, Database);\n _this = _super.call(this, options, body, labelModule);\n _this._setMargins(labelModule);\n return _this;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n */\n _createClass(Database, [{\n key: \"resize\",\n value: function resize(ctx, selected, hover) {\n if (this.needsRefresh(selected, hover)) {\n var dimensions = this.getDimensionsFromLabel(ctx, selected, hover);\n var size = dimensions.width + this.margin.right + this.margin.left;\n this.width = size;\n this.height = size;\n this.radius = this.width / 2;\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n */\n }, {\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n this.resize(ctx, selected, hover);\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n this.initContextForDraw(ctx, values);\n drawDatabase(ctx, x - this.width / 2, y - this.height / 2, this.width, this.height);\n this.performFill(ctx, values);\n this.updateBoundingBox(x, y, ctx, selected, hover);\n this.labelModule.draw(ctx, this.left + this.textSize.width / 2 + this.margin.left, this.top + this.textSize.height / 2 + this.margin.top, selected, hover);\n }\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return Database;\n}(NodeBase);\n\nfunction _createSuper$l(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$l(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$l() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Diamond Node/Cluster shape.\n *\n * @augments ShapeBase\n */\nvar Diamond$1 = /*#__PURE__*/function (_ShapeBase) {\n _inherits(Diamond, _ShapeBase);\n var _super = _createSuper$l(Diamond);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Diamond(options, body, labelModule) {\n _classCallCheck(this, Diamond);\n return _super.call(this, options, body, labelModule);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @returns {object} Callbacks to draw later on higher layers.\n */\n _createClass(Diamond, [{\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n return this._drawShape(ctx, \"diamond\", 4, x, y, selected, hover, values);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return Diamond;\n}(ShapeBase);\n\nfunction _createSuper$k(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$k(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$k() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Dot Node/Cluster shape.\n *\n * @augments ShapeBase\n */\nvar Dot = /*#__PURE__*/function (_ShapeBase) {\n _inherits(Dot, _ShapeBase);\n var _super = _createSuper$k(Dot);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Dot(options, body, labelModule) {\n _classCallCheck(this, Dot);\n return _super.call(this, options, body, labelModule);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @returns {object} Callbacks to draw later on higher layers.\n */\n _createClass(Dot, [{\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n return this._drawShape(ctx, \"circle\", 2, x, y, selected, hover, values);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx) {\n if (ctx) {\n this.resize(ctx);\n }\n return this.options.size;\n }\n }]);\n return Dot;\n}(ShapeBase);\n\nfunction _createSuper$j(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$j(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$j() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * Am Ellipse Node/Cluster shape.\n *\n * @augments NodeBase\n */\nvar Ellipse = /*#__PURE__*/function (_NodeBase) {\n _inherits(Ellipse, _NodeBase);\n var _super = _createSuper$j(Ellipse);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Ellipse(options, body, labelModule) {\n _classCallCheck(this, Ellipse);\n return _super.call(this, options, body, labelModule);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} [selected]\n * @param {boolean} [hover]\n */\n _createClass(Ellipse, [{\n key: \"resize\",\n value: function resize(ctx) {\n var selected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.selected;\n var hover = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.hover;\n if (this.needsRefresh(selected, hover)) {\n var dimensions = this.getDimensionsFromLabel(ctx, selected, hover);\n this.height = dimensions.height * 2;\n this.width = dimensions.width + dimensions.height;\n this.radius = 0.5 * this.width;\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n */\n }, {\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n this.resize(ctx, selected, hover);\n this.left = x - this.width * 0.5;\n this.top = y - this.height * 0.5;\n this.initContextForDraw(ctx, values);\n drawEllipse(ctx, this.left, this.top, this.width, this.height);\n this.performFill(ctx, values);\n this.updateBoundingBox(x, y, ctx, selected, hover);\n this.labelModule.draw(ctx, x, y, selected, hover);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n if (ctx) {\n this.resize(ctx);\n }\n var a = this.width * 0.5;\n var b = this.height * 0.5;\n var w = Math.sin(angle) * a;\n var h = Math.cos(angle) * b;\n return a * b / Math.sqrt(w * w + h * h);\n }\n }]);\n return Ellipse;\n}(NodeBase);\n\nfunction _createSuper$i(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$i(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$i() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * An icon replacement for the default Node shape.\n *\n * @augments NodeBase\n */\nvar Icon = /*#__PURE__*/function (_NodeBase) {\n _inherits(Icon, _NodeBase);\n var _super = _createSuper$i(Icon);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Icon(options, body, labelModule) {\n var _this;\n _classCallCheck(this, Icon);\n _this = _super.call(this, options, body, labelModule);\n _this._setMargins(labelModule);\n return _this;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx - Unused.\n * @param {boolean} [selected]\n * @param {boolean} [hover]\n */\n _createClass(Icon, [{\n key: \"resize\",\n value: function resize(ctx, selected, hover) {\n if (this.needsRefresh(selected, hover)) {\n this.iconSize = {\n width: Number(this.options.icon.size),\n height: Number(this.options.icon.size)\n };\n this.width = this.iconSize.width + this.margin.right + this.margin.left;\n this.height = this.iconSize.height + this.margin.top + this.margin.bottom;\n this.radius = 0.5 * this.width;\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @returns {object} Callbacks to draw later on higher layers.\n */\n }, {\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n var _this2 = this;\n this.resize(ctx, selected, hover);\n this.options.icon.size = this.options.icon.size || 50;\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n this._icon(ctx, x, y, selected, hover, values);\n return {\n drawExternalLabel: function drawExternalLabel() {\n if (_this2.options.label !== undefined) {\n var iconTextSpacing = 5;\n _this2.labelModule.draw(ctx, _this2.left + _this2.iconSize.width / 2 + _this2.margin.left, y + _this2.height / 2 + iconTextSpacing, selected);\n }\n _this2.updateBoundingBox(x, y);\n }\n };\n }\n\n /**\n *\n * @param {number} x\n * @param {number} y\n */\n }, {\n key: \"updateBoundingBox\",\n value: function updateBoundingBox(x, y) {\n this.boundingBox.top = y - this.options.icon.size * 0.5;\n this.boundingBox.left = x - this.options.icon.size * 0.5;\n this.boundingBox.right = x + this.options.icon.size * 0.5;\n this.boundingBox.bottom = y + this.options.icon.size * 0.5;\n if (this.options.label !== undefined && this.labelModule.size.width > 0) {\n var iconTextSpacing = 5;\n this.boundingBox.left = Math.min(this.boundingBox.left, this.labelModule.size.left);\n this.boundingBox.right = Math.max(this.boundingBox.right, this.labelModule.size.left + this.labelModule.size.width);\n this.boundingBox.bottom = Math.max(this.boundingBox.bottom, this.boundingBox.bottom + this.labelModule.size.height + iconTextSpacing);\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover - Unused\n * @param {ArrowOptions} values\n */\n }, {\n key: \"_icon\",\n value: function _icon(ctx, x, y, selected, hover, values) {\n var iconSize = Number(this.options.icon.size);\n if (this.options.icon.code !== undefined) {\n ctx.font = [this.options.icon.weight != null ? this.options.icon.weight : selected ? \"bold\" : \"\",\n // If the weight is forced (for example to make Font Awesome 5 work\n // properly) substitute slightly bigger size for bold font face.\n (this.options.icon.weight != null && selected ? 5 : 0) + iconSize + \"px\", this.options.icon.face].join(\" \");\n\n // draw icon\n ctx.fillStyle = this.options.icon.color || \"black\";\n ctx.textAlign = \"center\";\n ctx.textBaseline = \"middle\";\n\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n ctx.fillText(this.options.icon.code, x, y);\n\n // disable shadows for other elements.\n this.disableShadow(ctx, values);\n } else {\n console.error(\"When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.\");\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return Icon;\n}(NodeBase);\n\nfunction _createSuper$h(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$h(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$h() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * An image-based replacement for the default Node shape.\n *\n * @augments CircleImageBase\n */\nvar Image$2 = /*#__PURE__*/function (_CircleImageBase) {\n _inherits(Image, _CircleImageBase);\n var _super = _createSuper$h(Image);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n * @param {Image} imageObj\n * @param {Image} imageObjAlt\n */\n function Image(options, body, labelModule, imageObj, imageObjAlt) {\n var _this;\n _classCallCheck(this, Image);\n _this = _super.call(this, options, body, labelModule);\n _this.setImages(imageObj, imageObjAlt);\n return _this;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx - Unused.\n * @param {boolean} [selected]\n * @param {boolean} [hover]\n */\n _createClass(Image, [{\n key: \"resize\",\n value: function resize(ctx) {\n var selected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.selected;\n var hover = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.hover;\n var imageAbsent = this.imageObj.src === undefined || this.imageObj.width === undefined || this.imageObj.height === undefined;\n if (imageAbsent) {\n var side = this.options.size * 2;\n this.width = side;\n this.height = side;\n return;\n }\n if (this.needsRefresh(selected, hover)) {\n this._resizeImage();\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n */\n }, {\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n ctx.save();\n this.switchImages(selected);\n this.resize();\n var labelX = x,\n labelY = y;\n if (this.options.shapeProperties.coordinateOrigin === \"top-left\") {\n this.left = x;\n this.top = y;\n labelX += this.width / 2;\n labelY += this.height / 2;\n } else {\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n }\n if (this.options.shapeProperties.useBorderWithImage === true) {\n var neutralborderWidth = this.options.borderWidth;\n var selectionLineWidth = this.options.borderWidthSelected || 2 * this.options.borderWidth;\n var borderWidth = (selected ? selectionLineWidth : neutralborderWidth) / this.body.view.scale;\n ctx.lineWidth = Math.min(this.width, borderWidth);\n ctx.beginPath();\n var strokeStyle = selected ? this.options.color.highlight.border : hover ? this.options.color.hover.border : this.options.color.border;\n var fillStyle = selected ? this.options.color.highlight.background : hover ? this.options.color.hover.background : this.options.color.background;\n if (values.opacity !== undefined) {\n strokeStyle = overrideOpacity(strokeStyle, values.opacity);\n fillStyle = overrideOpacity(fillStyle, values.opacity);\n }\n // setup the line properties.\n ctx.strokeStyle = strokeStyle;\n\n // set a fillstyle\n ctx.fillStyle = fillStyle;\n\n // draw a rectangle to form the border around. This rectangle is filled so the opacity of a picture (in future vis releases?) can be used to tint the image\n ctx.rect(this.left - 0.5 * ctx.lineWidth, this.top - 0.5 * ctx.lineWidth, this.width + ctx.lineWidth, this.height + ctx.lineWidth);\n _fillInstanceProperty(ctx).call(ctx);\n this.performStroke(ctx, values);\n ctx.closePath();\n }\n this._drawImageAtPosition(ctx, values);\n this._drawImageLabel(ctx, labelX, labelY, selected, hover);\n this.updateBoundingBox(x, y);\n ctx.restore();\n }\n\n /**\n *\n * @param {number} x\n * @param {number} y\n */\n }, {\n key: \"updateBoundingBox\",\n value: function updateBoundingBox(x, y) {\n this.resize();\n if (this.options.shapeProperties.coordinateOrigin === \"top-left\") {\n this.left = x;\n this.top = y;\n } else {\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n }\n this.boundingBox.left = this.left;\n this.boundingBox.top = this.top;\n this.boundingBox.bottom = this.top + this.height;\n this.boundingBox.right = this.left + this.width;\n if (this.options.label !== undefined && this.labelModule.size.width > 0) {\n this.boundingBox.left = Math.min(this.boundingBox.left, this.labelModule.size.left);\n this.boundingBox.right = Math.max(this.boundingBox.right, this.labelModule.size.left + this.labelModule.size.width);\n this.boundingBox.bottom = Math.max(this.boundingBox.bottom, this.boundingBox.bottom + this.labelOffset);\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return Image;\n}(CircleImageBase);\n\nfunction _createSuper$g(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$g(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$g() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Square Node/Cluster shape.\n *\n * @augments ShapeBase\n */\nvar Square = /*#__PURE__*/function (_ShapeBase) {\n _inherits(Square, _ShapeBase);\n var _super = _createSuper$g(Square);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Square(options, body, labelModule) {\n _classCallCheck(this, Square);\n return _super.call(this, options, body, labelModule);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @returns {object} Callbacks to draw later on higher layers.\n */\n _createClass(Square, [{\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n return this._drawShape(ctx, \"square\", 2, x, y, selected, hover, values);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return Square;\n}(ShapeBase);\n\nfunction _createSuper$f(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$f(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$f() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Hexagon Node/Cluster shape.\n *\n * @augments ShapeBase\n */\nvar Hexagon = /*#__PURE__*/function (_ShapeBase) {\n _inherits(Hexagon, _ShapeBase);\n var _super = _createSuper$f(Hexagon);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Hexagon(options, body, labelModule) {\n _classCallCheck(this, Hexagon);\n return _super.call(this, options, body, labelModule);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @returns {object} Callbacks to draw later on higher layers.\n */\n _createClass(Hexagon, [{\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n return this._drawShape(ctx, \"hexagon\", 4, x, y, selected, hover, values);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return Hexagon;\n}(ShapeBase);\n\nfunction _createSuper$e(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$e(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$e() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Star Node/Cluster shape.\n *\n * @augments ShapeBase\n */\nvar Star = /*#__PURE__*/function (_ShapeBase) {\n _inherits(Star, _ShapeBase);\n var _super = _createSuper$e(Star);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Star(options, body, labelModule) {\n _classCallCheck(this, Star);\n return _super.call(this, options, body, labelModule);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @returns {object} Callbacks to draw later on higher layers.\n */\n _createClass(Star, [{\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n return this._drawShape(ctx, \"star\", 4, x, y, selected, hover, values);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return Star;\n}(ShapeBase);\n\nfunction _createSuper$d(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$d(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$d() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A text-based replacement for the default Node shape.\n *\n * @augments NodeBase\n */\nvar Text = /*#__PURE__*/function (_NodeBase) {\n _inherits(Text, _NodeBase);\n var _super = _createSuper$d(Text);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Text(options, body, labelModule) {\n var _this;\n _classCallCheck(this, Text);\n _this = _super.call(this, options, body, labelModule);\n _this._setMargins(labelModule);\n return _this;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n */\n _createClass(Text, [{\n key: \"resize\",\n value: function resize(ctx, selected, hover) {\n if (this.needsRefresh(selected, hover)) {\n this.textSize = this.labelModule.getTextSize(ctx, selected, hover);\n this.width = this.textSize.width + this.margin.right + this.margin.left;\n this.height = this.textSize.height + this.margin.top + this.margin.bottom;\n this.radius = 0.5 * this.width;\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n */\n }, {\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n this.resize(ctx, selected, hover);\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n this.labelModule.draw(ctx, this.left + this.textSize.width / 2 + this.margin.left, this.top + this.textSize.height / 2 + this.margin.top, selected, hover);\n\n // disable shadows for other elements.\n this.disableShadow(ctx, values);\n this.updateBoundingBox(x, y, ctx, selected, hover);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return Text;\n}(NodeBase);\n\nfunction _createSuper$c(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$c(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$c() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Triangle Node/Cluster shape.\n *\n * @augments ShapeBase\n */\nvar Triangle$1 = /*#__PURE__*/function (_ShapeBase) {\n _inherits(Triangle, _ShapeBase);\n var _super = _createSuper$c(Triangle);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Triangle(options, body, labelModule) {\n _classCallCheck(this, Triangle);\n return _super.call(this, options, body, labelModule);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x\n * @param {number} y\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @returns {object} Callbacks to draw later on higher layers.\n */\n _createClass(Triangle, [{\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n return this._drawShape(ctx, \"triangle\", 3, x, y, selected, hover, values);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return Triangle;\n}(ShapeBase);\n\nfunction _createSuper$b(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$b(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$b() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A downward facing Triangle Node/Cluster shape.\n *\n * @augments ShapeBase\n */\nvar TriangleDown = /*#__PURE__*/function (_ShapeBase) {\n _inherits(TriangleDown, _ShapeBase);\n var _super = _createSuper$b(TriangleDown);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function TriangleDown(options, body, labelModule) {\n _classCallCheck(this, TriangleDown);\n return _super.call(this, options, body, labelModule);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x\n * @param {number} y\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @returns {object} Callbacks to draw later on higher layers.\n */\n _createClass(TriangleDown, [{\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n return this._drawShape(ctx, \"triangleDown\", 3, x, y, selected, hover, values);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return TriangleDown;\n}(ShapeBase);\n\nfunction ownKeys$2(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor$1(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var _context5, _context6; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context5 = ownKeys$2(Object(source), !0)).call(_context5, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context6 = ownKeys$2(Object(source))).call(_context6, function (key) { _Object$defineProperty$1(target, key, _Object$getOwnPropertyDescriptor$1(source, key)); }); } return target; }\n\n/**\n * A node. A node can be connected to other nodes via one or multiple edges.\n */\nvar Node = /*#__PURE__*/function () {\n /**\n *\n * @param {object} options An object containing options for the node. All\n * options are optional, except for the id.\n * {number} id Id of the node. Required\n * {string} label Text label for the node\n * {number} x Horizontal position of the node\n * {number} y Vertical position of the node\n * {string} shape Node shape\n * {string} image An image url\n * {string} title A title text, can be HTML\n * {anytype} group A group name or number\n * @param {object} body Shared state of current network instance\n * @param {Network.Images} imagelist A list with images. Only needed when the node has an image\n * @param {Groups} grouplist A list with groups. Needed for retrieving group options\n * @param {object} globalOptions Current global node options; these serve as defaults for the node instance\n * @param {object} defaultOptions Global default options for nodes; note that this is also the prototype\n * for parameter `globalOptions`.\n */\n function Node(options, body, imagelist, grouplist, globalOptions, defaultOptions) {\n _classCallCheck(this, Node);\n this.options = bridgeObject(globalOptions);\n this.globalOptions = globalOptions;\n this.defaultOptions = defaultOptions;\n this.body = body;\n this.edges = []; // all edges connected to this node\n\n // set defaults for the options\n this.id = undefined;\n this.imagelist = imagelist;\n this.grouplist = grouplist;\n\n // state options\n this.x = undefined;\n this.y = undefined;\n this.baseSize = this.options.size;\n this.baseFontSize = this.options.font.size;\n this.predefinedPosition = false; // used to check if initial fit should just take the range or approximate\n this.selected = false;\n this.hover = false;\n this.labelModule = new Label(this.body, this.options, false /* Not edge label */);\n\n this.setOptions(options);\n }\n\n /**\n * Attach a edge to the node\n *\n * @param {Edge} edge\n */\n _createClass(Node, [{\n key: \"attachEdge\",\n value: function attachEdge(edge) {\n var _context;\n if (_indexOfInstanceProperty(_context = this.edges).call(_context, edge) === -1) {\n this.edges.push(edge);\n }\n }\n\n /**\n * Detach a edge from the node\n *\n * @param {Edge} edge\n */\n }, {\n key: \"detachEdge\",\n value: function detachEdge(edge) {\n var _context2;\n var index = _indexOfInstanceProperty(_context2 = this.edges).call(_context2, edge);\n if (index != -1) {\n var _context3;\n _spliceInstanceProperty(_context3 = this.edges).call(_context3, index, 1);\n }\n }\n\n /**\n * Set or overwrite options for the node\n *\n * @param {object} options an object with options\n * @returns {null|boolean}\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n var currentShape = this.options.shape;\n if (!options) {\n return; // Note that the return value will be 'undefined'! This is OK.\n }\n\n // Save the color for later.\n // This is necessary in order to prevent local color from being overwritten by group color.\n // TODO: To prevent such workarounds the way options are handled should be rewritten from scratch.\n // This is not the only problem with current options handling.\n if (typeof options.color !== \"undefined\") {\n this._localColor = options.color;\n }\n\n // basic options\n if (options.id !== undefined) {\n this.id = options.id;\n }\n if (this.id === undefined) {\n throw new Error(\"Node must have an id\");\n }\n Node.checkMass(options, this.id);\n\n // set these options locally\n // clear x and y positions\n if (options.x !== undefined) {\n if (options.x === null) {\n this.x = undefined;\n this.predefinedPosition = false;\n } else {\n this.x = _parseInt(options.x);\n this.predefinedPosition = true;\n }\n }\n if (options.y !== undefined) {\n if (options.y === null) {\n this.y = undefined;\n this.predefinedPosition = false;\n } else {\n this.y = _parseInt(options.y);\n this.predefinedPosition = true;\n }\n }\n if (options.size !== undefined) {\n this.baseSize = options.size;\n }\n if (options.value !== undefined) {\n options.value = _parseFloat(options.value);\n }\n\n // this transforms all shorthands into fully defined options\n Node.parseOptions(this.options, options, true, this.globalOptions, this.grouplist);\n var pile = [options, this.options, this.defaultOptions];\n this.chooser = choosify(\"node\", pile);\n this._load_images();\n this.updateLabelModule(options);\n\n // Need to set local opacity after `this.updateLabelModule(options);` because `this.updateLabelModule(options);` overrites local opacity with group opacity\n if (options.opacity !== undefined && Node.checkOpacity(options.opacity)) {\n this.options.opacity = options.opacity;\n }\n this.updateShape(currentShape);\n return options.hidden !== undefined || options.physics !== undefined;\n }\n\n /**\n * Load the images from the options, for the nodes that need them.\n *\n * Images are always loaded, even if they are not used in the current shape.\n * The user may switch to an image shape later on.\n *\n * @private\n */\n }, {\n key: \"_load_images\",\n value: function _load_images() {\n if (this.options.shape === \"circularImage\" || this.options.shape === \"image\") {\n if (this.options.image === undefined) {\n throw new Error(\"Option image must be defined for node type '\" + this.options.shape + \"'\");\n }\n }\n if (this.options.image === undefined) {\n return;\n }\n if (this.imagelist === undefined) {\n throw new Error(\"Internal Error: No images provided\");\n }\n if (typeof this.options.image === \"string\") {\n this.imageObj = this.imagelist.load(this.options.image, this.options.brokenImage, this.id);\n } else {\n if (this.options.image.unselected === undefined) {\n throw new Error(\"No unselected image provided\");\n }\n this.imageObj = this.imagelist.load(this.options.image.unselected, this.options.brokenImage, this.id);\n if (this.options.image.selected !== undefined) {\n this.imageObjAlt = this.imagelist.load(this.options.image.selected, this.options.brokenImage, this.id);\n } else {\n this.imageObjAlt = undefined;\n }\n }\n }\n\n /**\n * Check that opacity is only between 0 and 1\n *\n * @param {number} opacity\n * @returns {boolean}\n */\n }, {\n key: \"getFormattingValues\",\n value:\n /**\n *\n * @returns {{color: *, borderWidth: *, borderColor: *, size: *, borderDashes: (boolean|Array|allOptions.nodes.shapeProperties.borderDashes|{boolean, array}), borderRadius: (number|allOptions.nodes.shapeProperties.borderRadius|{number}|Array), shadow: *, shadowColor: *, shadowSize: *, shadowX: *, shadowY: *}}\n */\n function getFormattingValues() {\n var values = {\n color: this.options.color.background,\n opacity: this.options.opacity,\n borderWidth: this.options.borderWidth,\n borderColor: this.options.color.border,\n size: this.options.size,\n borderDashes: this.options.shapeProperties.borderDashes,\n borderRadius: this.options.shapeProperties.borderRadius,\n shadow: this.options.shadow.enabled,\n shadowColor: this.options.shadow.color,\n shadowSize: this.options.shadow.size,\n shadowX: this.options.shadow.x,\n shadowY: this.options.shadow.y\n };\n if (this.selected || this.hover) {\n if (this.chooser === true) {\n if (this.selected) {\n if (this.options.borderWidthSelected != null) {\n values.borderWidth = this.options.borderWidthSelected;\n } else {\n values.borderWidth *= 2;\n }\n values.color = this.options.color.highlight.background;\n values.borderColor = this.options.color.highlight.border;\n values.shadow = this.options.shadow.enabled;\n } else if (this.hover) {\n values.color = this.options.color.hover.background;\n values.borderColor = this.options.color.hover.border;\n values.shadow = this.options.shadow.enabled;\n }\n } else if (typeof this.chooser === \"function\") {\n this.chooser(values, this.options.id, this.selected, this.hover);\n if (values.shadow === false) {\n if (values.shadowColor !== this.options.shadow.color || values.shadowSize !== this.options.shadow.size || values.shadowX !== this.options.shadow.x || values.shadowY !== this.options.shadow.y) {\n values.shadow = true;\n }\n }\n }\n } else {\n values.shadow = this.options.shadow.enabled;\n }\n if (this.options.opacity !== undefined) {\n var opacity = this.options.opacity;\n values.borderColor = overrideOpacity(values.borderColor, opacity);\n values.color = overrideOpacity(values.color, opacity);\n values.shadowColor = overrideOpacity(values.shadowColor, opacity);\n }\n return values;\n }\n\n /**\n *\n * @param {object} options\n */\n }, {\n key: \"updateLabelModule\",\n value: function updateLabelModule(options) {\n if (this.options.label === undefined || this.options.label === null) {\n this.options.label = \"\";\n }\n Node.updateGroupOptions(this.options, _objectSpread$2(_objectSpread$2({}, options), {}, {\n color: options && options.color || this._localColor || undefined\n }), this.grouplist);\n\n //\n // Note:The prototype chain for this.options is:\n //\n // this.options -> NodesHandler.options -> NodesHandler.defaultOptions\n // (also: this.globalOptions)\n //\n // Note that the prototypes are mentioned explicitly in the pile list below;\n // WE DON'T WANT THE ORDER OF THE PROTOTYPES!!!! At least, not for font handling of labels.\n // This is a good indication that the prototype usage of options is deficient.\n //\n var currentGroup = this.grouplist.get(this.options.group, false);\n var pile = [options,\n // new options\n this.options,\n // current node options, see comment above for prototype\n currentGroup,\n // group options, if any\n this.globalOptions,\n // Currently set global node options\n this.defaultOptions // Default global node options\n ];\n\n this.labelModule.update(this.options, pile);\n if (this.labelModule.baseSize !== undefined) {\n this.baseFontSize = this.labelModule.baseSize;\n }\n }\n\n /**\n *\n * @param {string} currentShape\n */\n }, {\n key: \"updateShape\",\n value: function updateShape(currentShape) {\n if (currentShape === this.options.shape && this.shape) {\n this.shape.setOptions(this.options, this.imageObj, this.imageObjAlt);\n } else {\n // choose draw method depending on the shape\n switch (this.options.shape) {\n case \"box\":\n this.shape = new Box$1(this.options, this.body, this.labelModule);\n break;\n case \"circle\":\n this.shape = new Circle$1(this.options, this.body, this.labelModule);\n break;\n case \"circularImage\":\n this.shape = new CircularImage(this.options, this.body, this.labelModule, this.imageObj, this.imageObjAlt);\n break;\n case \"custom\":\n this.shape = new CustomShape(this.options, this.body, this.labelModule, this.options.ctxRenderer);\n break;\n case \"database\":\n this.shape = new Database(this.options, this.body, this.labelModule);\n break;\n case \"diamond\":\n this.shape = new Diamond$1(this.options, this.body, this.labelModule);\n break;\n case \"dot\":\n this.shape = new Dot(this.options, this.body, this.labelModule);\n break;\n case \"ellipse\":\n this.shape = new Ellipse(this.options, this.body, this.labelModule);\n break;\n case \"icon\":\n this.shape = new Icon(this.options, this.body, this.labelModule);\n break;\n case \"image\":\n this.shape = new Image$2(this.options, this.body, this.labelModule, this.imageObj, this.imageObjAlt);\n break;\n case \"square\":\n this.shape = new Square(this.options, this.body, this.labelModule);\n break;\n case \"hexagon\":\n this.shape = new Hexagon(this.options, this.body, this.labelModule);\n break;\n case \"star\":\n this.shape = new Star(this.options, this.body, this.labelModule);\n break;\n case \"text\":\n this.shape = new Text(this.options, this.body, this.labelModule);\n break;\n case \"triangle\":\n this.shape = new Triangle$1(this.options, this.body, this.labelModule);\n break;\n case \"triangleDown\":\n this.shape = new TriangleDown(this.options, this.body, this.labelModule);\n break;\n default:\n this.shape = new Ellipse(this.options, this.body, this.labelModule);\n break;\n }\n }\n this.needsRefresh();\n }\n\n /**\n * select this node\n */\n }, {\n key: \"select\",\n value: function select() {\n this.selected = true;\n this.needsRefresh();\n }\n\n /**\n * unselect this node\n */\n }, {\n key: \"unselect\",\n value: function unselect() {\n this.selected = false;\n this.needsRefresh();\n }\n\n /**\n * Reset the calculated size of the node, forces it to recalculate its size\n */\n }, {\n key: \"needsRefresh\",\n value: function needsRefresh() {\n this.shape.refreshNeeded = true;\n }\n\n /**\n * get the title of this node.\n *\n * @returns {string} title The title of the node, or undefined when no title\n * has been set.\n */\n }, {\n key: \"getTitle\",\n value: function getTitle() {\n return this.options.title;\n }\n\n /**\n * Calculate the distance to the border of the Node\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle Angle in radians\n * @returns {number} distance Distance to the border in pixels\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this.shape.distanceToBorder(ctx, angle);\n }\n\n /**\n * Check if this node has a fixed x and y position\n *\n * @returns {boolean} true if fixed, false if not\n */\n }, {\n key: \"isFixed\",\n value: function isFixed() {\n return this.options.fixed.x && this.options.fixed.y;\n }\n\n /**\n * check if this node is selecte\n *\n * @returns {boolean} selected True if node is selected, else false\n */\n }, {\n key: \"isSelected\",\n value: function isSelected() {\n return this.selected;\n }\n\n /**\n * Retrieve the value of the node. Can be undefined\n *\n * @returns {number} value\n */\n }, {\n key: \"getValue\",\n value: function getValue() {\n return this.options.value;\n }\n\n /**\n * Get the current dimensions of the label\n *\n * @returns {rect}\n */\n }, {\n key: \"getLabelSize\",\n value: function getLabelSize() {\n return this.labelModule.size();\n }\n\n /**\n * Adjust the value range of the node. The node will adjust it's size\n * based on its value.\n *\n * @param {number} min\n * @param {number} max\n * @param {number} total\n */\n }, {\n key: \"setValueRange\",\n value: function setValueRange(min, max, total) {\n if (this.options.value !== undefined) {\n var scale = this.options.scaling.customScalingFunction(min, max, total, this.options.value);\n var sizeDiff = this.options.scaling.max - this.options.scaling.min;\n if (this.options.scaling.label.enabled === true) {\n var fontDiff = this.options.scaling.label.max - this.options.scaling.label.min;\n this.options.font.size = this.options.scaling.label.min + scale * fontDiff;\n }\n this.options.size = this.options.scaling.min + scale * sizeDiff;\n } else {\n this.options.size = this.baseSize;\n this.options.font.size = this.baseFontSize;\n }\n this.updateLabelModule();\n }\n\n /**\n * Draw this node in the given canvas\n * The 2d context of a HTML canvas can be retrieved by canvas.getContext(\"2d\");\n *\n * @param {CanvasRenderingContext2D} ctx\n * @returns {object} Callbacks to draw later on higher layers.\n */\n }, {\n key: \"draw\",\n value: function draw(ctx) {\n var values = this.getFormattingValues();\n return this.shape.draw(ctx, this.x, this.y, this.selected, this.hover, values) || {};\n }\n\n /**\n * Update the bounding box of the shape\n *\n * @param {CanvasRenderingContext2D} ctx\n */\n }, {\n key: \"updateBoundingBox\",\n value: function updateBoundingBox(ctx) {\n this.shape.updateBoundingBox(this.x, this.y, ctx);\n }\n\n /**\n * Recalculate the size of this node in the given canvas\n * The 2d context of a HTML canvas can be retrieved by canvas.getContext(\"2d\");\n *\n * @param {CanvasRenderingContext2D} ctx\n */\n }, {\n key: \"resize\",\n value: function resize(ctx) {\n var values = this.getFormattingValues();\n this.shape.resize(ctx, this.selected, this.hover, values);\n }\n\n /**\n * Determine all visual elements of this node instance, in which the given\n * point falls within the bounding shape.\n *\n * @param {point} point\n * @returns {Array.} list with the items which are on the point\n */\n }, {\n key: \"getItemsOnPoint\",\n value: function getItemsOnPoint(point) {\n var ret = [];\n if (this.labelModule.visible()) {\n if (pointInRect(this.labelModule.getSize(), point)) {\n ret.push({\n nodeId: this.id,\n labelId: 0\n });\n }\n }\n if (pointInRect(this.shape.boundingBox, point)) {\n ret.push({\n nodeId: this.id\n });\n }\n return ret;\n }\n\n /**\n * Check if this object is overlapping with the provided object\n *\n * @param {object} obj an object with parameters left, top, right, bottom\n * @returns {boolean} True if location is located on node\n */\n }, {\n key: \"isOverlappingWith\",\n value: function isOverlappingWith(obj) {\n return this.shape.left < obj.right && this.shape.left + this.shape.width > obj.left && this.shape.top < obj.bottom && this.shape.top + this.shape.height > obj.top;\n }\n\n /**\n * Check if this object is overlapping with the provided object\n *\n * @param {object} obj an object with parameters left, top, right, bottom\n * @returns {boolean} True if location is located on node\n */\n }, {\n key: \"isBoundingBoxOverlappingWith\",\n value: function isBoundingBoxOverlappingWith(obj) {\n return this.shape.boundingBox.left < obj.right && this.shape.boundingBox.right > obj.left && this.shape.boundingBox.top < obj.bottom && this.shape.boundingBox.bottom > obj.top;\n }\n\n /**\n * Check valid values for mass\n *\n * The mass may not be negative or zero. If it is, reset to 1\n *\n * @param {object} options\n * @param {Node.id} id\n * @static\n */\n }], [{\n key: \"checkOpacity\",\n value: function checkOpacity(opacity) {\n return 0 <= opacity && opacity <= 1;\n }\n\n /**\n * Check that origin is 'center' or 'top-left'\n *\n * @param {string} origin\n * @returns {boolean}\n */\n }, {\n key: \"checkCoordinateOrigin\",\n value: function checkCoordinateOrigin(origin) {\n return origin === undefined || origin === \"center\" || origin === \"top-left\";\n }\n\n /**\n * Copy group option values into the node options.\n *\n * The group options override the global node options, so the copy of group options\n * must happen *after* the global node options have been set.\n *\n * This method must also be called also if the global node options have changed and the group options did not.\n *\n * @param {object} parentOptions\n * @param {object} newOptions new values for the options, currently only passed in for check\n * @param {object} groupList\n */\n }, {\n key: \"updateGroupOptions\",\n value: function updateGroupOptions(parentOptions, newOptions, groupList) {\n var _context4;\n if (groupList === undefined) return; // No groups, nothing to do\n\n var group = parentOptions.group;\n\n // paranoia: the selected group is already merged into node options, check.\n if (newOptions !== undefined && newOptions.group !== undefined && group !== newOptions.group) {\n throw new Error(\"updateGroupOptions: group values in options don't match.\");\n }\n var hasGroup = typeof group === \"number\" || typeof group === \"string\" && group != \"\";\n if (!hasGroup) return; // current node has no group, no need to merge\n\n var groupObj = groupList.get(group);\n if (groupObj.opacity !== undefined && newOptions.opacity === undefined) {\n if (!Node.checkOpacity(groupObj.opacity)) {\n console.error(\"Invalid option for node opacity. Value must be between 0 and 1, found: \" + groupObj.opacity);\n groupObj.opacity = undefined;\n }\n }\n\n // Skip any new option to avoid them being overridden by the group options.\n var skipProperties = _filterInstanceProperty(_context4 = _Object$getOwnPropertyNames(newOptions)).call(_context4, function (p) {\n return newOptions[p] != null;\n });\n // Always skip merging group font options into parent; these are required to be distinct for labels\n skipProperties.push(\"font\");\n selectiveNotDeepExtend(skipProperties, parentOptions, groupObj);\n\n // the color object needs to be completely defined.\n // Since groups can partially overwrite the colors, we parse it again, just in case.\n parentOptions.color = parseColor(parentOptions.color);\n }\n\n /**\n * This process all possible shorthands in the new options and makes sure that the parentOptions are fully defined.\n * Static so it can also be used by the handler.\n *\n * @param {object} parentOptions\n * @param {object} newOptions\n * @param {boolean} [allowDeletion=false]\n * @param {object} [globalOptions={}]\n * @param {object} [groupList]\n * @static\n */\n }, {\n key: \"parseOptions\",\n value: function parseOptions(parentOptions, newOptions) {\n var allowDeletion = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var globalOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n var groupList = arguments.length > 4 ? arguments[4] : undefined;\n var fields = [\"color\", \"fixed\", \"shadow\"];\n selectiveNotDeepExtend(fields, parentOptions, newOptions, allowDeletion);\n Node.checkMass(newOptions);\n if (parentOptions.opacity !== undefined) {\n if (!Node.checkOpacity(parentOptions.opacity)) {\n console.error(\"Invalid option for node opacity. Value must be between 0 and 1, found: \" + parentOptions.opacity);\n parentOptions.opacity = undefined;\n }\n }\n if (newOptions.opacity !== undefined) {\n if (!Node.checkOpacity(newOptions.opacity)) {\n console.error(\"Invalid option for node opacity. Value must be between 0 and 1, found: \" + newOptions.opacity);\n newOptions.opacity = undefined;\n }\n }\n if (newOptions.shapeProperties && !Node.checkCoordinateOrigin(newOptions.shapeProperties.coordinateOrigin)) {\n console.error(\"Invalid option for node coordinateOrigin, found: \" + newOptions.shapeProperties.coordinateOrigin);\n }\n\n // merge the shadow options into the parent.\n mergeOptions(parentOptions, newOptions, \"shadow\", globalOptions);\n\n // individual shape newOptions\n if (newOptions.color !== undefined && newOptions.color !== null) {\n var parsedColor = parseColor(newOptions.color);\n fillIfDefined(parentOptions.color, parsedColor);\n } else if (allowDeletion === true && newOptions.color === null) {\n parentOptions.color = bridgeObject(globalOptions.color); // set the object back to the global options\n }\n\n // handle the fixed options\n if (newOptions.fixed !== undefined && newOptions.fixed !== null) {\n if (typeof newOptions.fixed === \"boolean\") {\n parentOptions.fixed.x = newOptions.fixed;\n parentOptions.fixed.y = newOptions.fixed;\n } else {\n if (newOptions.fixed.x !== undefined && typeof newOptions.fixed.x === \"boolean\") {\n parentOptions.fixed.x = newOptions.fixed.x;\n }\n if (newOptions.fixed.y !== undefined && typeof newOptions.fixed.y === \"boolean\") {\n parentOptions.fixed.y = newOptions.fixed.y;\n }\n }\n }\n if (allowDeletion === true && newOptions.font === null) {\n parentOptions.font = bridgeObject(globalOptions.font); // set the object back to the global options\n }\n\n Node.updateGroupOptions(parentOptions, newOptions, groupList);\n\n // handle the scaling options, specifically the label part\n if (newOptions.scaling !== undefined) {\n mergeOptions(parentOptions.scaling, newOptions.scaling, \"label\", globalOptions.scaling);\n }\n }\n }, {\n key: \"checkMass\",\n value: function checkMass(options, id) {\n if (options.mass !== undefined && options.mass <= 0) {\n var strId = \"\";\n if (id !== undefined) {\n strId = \" in node id: \" + id;\n }\n console.error(\"%cNegative or zero mass disallowed\" + strId + \", setting mass to 1.\", VALIDATOR_PRINT_STYLE);\n options.mass = 1;\n }\n }\n }]);\n return Node;\n}();\n\nfunction _createForOfIteratorHelper$5(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray$5(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray$5(o, minLen) { var _context4; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray$5(o, minLen); var n = _sliceInstanceProperty(_context4 = Object.prototype.toString.call(o)).call(_context4, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$5(o, minLen); }\nfunction _arrayLikeToArray$5(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n/**\n * Handler for Nodes\n */\nvar NodesHandler = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {Images} images\n * @param {Array.} groups\n * @param {LayoutEngine} layoutEngine\n */\n function NodesHandler(body, images, groups, layoutEngine) {\n var _context,\n _this = this;\n _classCallCheck(this, NodesHandler);\n this.body = body;\n this.images = images;\n this.groups = groups;\n this.layoutEngine = layoutEngine;\n\n // create the node API in the body container\n this.body.functions.createNode = _bindInstanceProperty$1(_context = this.create).call(_context, this);\n this.nodesListeners = {\n add: function add(event, params) {\n _this.add(params.items);\n },\n update: function update(event, params) {\n _this.update(params.items, params.data, params.oldData);\n },\n remove: function remove(event, params) {\n _this.remove(params.items);\n }\n };\n this.defaultOptions = {\n borderWidth: 1,\n borderWidthSelected: undefined,\n brokenImage: undefined,\n color: {\n border: \"#2B7CE9\",\n background: \"#97C2FC\",\n highlight: {\n border: \"#2B7CE9\",\n background: \"#D2E5FF\"\n },\n hover: {\n border: \"#2B7CE9\",\n background: \"#D2E5FF\"\n }\n },\n opacity: undefined,\n // number between 0 and 1\n fixed: {\n x: false,\n y: false\n },\n font: {\n color: \"#343434\",\n size: 14,\n // px\n face: \"arial\",\n background: \"none\",\n strokeWidth: 0,\n // px\n strokeColor: \"#ffffff\",\n align: \"center\",\n vadjust: 0,\n multi: false,\n bold: {\n mod: \"bold\"\n },\n boldital: {\n mod: \"bold italic\"\n },\n ital: {\n mod: \"italic\"\n },\n mono: {\n mod: \"\",\n size: 15,\n // px\n face: \"monospace\",\n vadjust: 2\n }\n },\n group: undefined,\n hidden: false,\n icon: {\n face: \"FontAwesome\",\n //'FontAwesome',\n code: undefined,\n //'\\uf007',\n size: 50,\n //50,\n color: \"#2B7CE9\" //'#aa00ff'\n },\n\n image: undefined,\n // --> URL\n imagePadding: {\n // only for image shape\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n },\n label: undefined,\n labelHighlightBold: true,\n level: undefined,\n margin: {\n top: 5,\n right: 5,\n bottom: 5,\n left: 5\n },\n mass: 1,\n physics: true,\n scaling: {\n min: 10,\n max: 30,\n label: {\n enabled: false,\n min: 14,\n max: 30,\n maxVisible: 30,\n drawThreshold: 5\n },\n customScalingFunction: function customScalingFunction(min, max, total, value) {\n if (max === min) {\n return 0.5;\n } else {\n var scale = 1 / (max - min);\n return Math.max(0, (value - min) * scale);\n }\n }\n },\n shadow: {\n enabled: false,\n color: \"rgba(0,0,0,0.5)\",\n size: 10,\n x: 5,\n y: 5\n },\n shape: \"ellipse\",\n shapeProperties: {\n borderDashes: false,\n // only for borders\n borderRadius: 6,\n // only for box shape\n interpolation: true,\n // only for image and circularImage shapes\n useImageSize: false,\n // only for image and circularImage shapes\n useBorderWithImage: false,\n // only for image shape\n coordinateOrigin: \"center\" // only for image and circularImage shapes\n },\n\n size: 25,\n title: undefined,\n value: undefined,\n x: undefined,\n y: undefined\n };\n\n // Protect from idiocy\n if (this.defaultOptions.mass <= 0) {\n throw \"Internal error: mass in defaultOptions of NodesHandler may not be zero or negative\";\n }\n this.options = bridgeObject(this.defaultOptions);\n this.bindEventListeners();\n }\n\n /**\n * Binds event listeners\n */\n _createClass(NodesHandler, [{\n key: \"bindEventListeners\",\n value: function bindEventListeners() {\n var _context2,\n _context3,\n _this2 = this;\n // refresh the nodes. Used when reverting from hierarchical layout\n this.body.emitter.on(\"refreshNodes\", _bindInstanceProperty$1(_context2 = this.refresh).call(_context2, this));\n this.body.emitter.on(\"refresh\", _bindInstanceProperty$1(_context3 = this.refresh).call(_context3, this));\n this.body.emitter.on(\"destroy\", function () {\n forEach$5(_this2.nodesListeners, function (callback, event) {\n if (_this2.body.data.nodes) _this2.body.data.nodes.off(event, callback);\n });\n delete _this2.body.functions.createNode;\n delete _this2.nodesListeners.add;\n delete _this2.nodesListeners.update;\n delete _this2.nodesListeners.remove;\n delete _this2.nodesListeners;\n });\n }\n\n /**\n *\n * @param {object} options\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options !== undefined) {\n Node.parseOptions(this.options, options);\n\n // Need to set opacity here because Node.parseOptions is also used for groups,\n // if you set opacity in Node.parseOptions it overwrites group opacity.\n if (options.opacity !== undefined) {\n if (_Number$isNaN(options.opacity) || !_Number$isFinite(options.opacity) || options.opacity < 0 || options.opacity > 1) {\n console.error(\"Invalid option for node opacity. Value must be between 0 and 1, found: \" + options.opacity);\n } else {\n this.options.opacity = options.opacity;\n }\n }\n\n // update the shape in all nodes\n if (options.shape !== undefined) {\n for (var nodeId in this.body.nodes) {\n if (Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId)) {\n this.body.nodes[nodeId].updateShape();\n }\n }\n }\n\n // Update the labels of nodes if any relevant options changed.\n if (typeof options.font !== \"undefined\" || typeof options.widthConstraint !== \"undefined\" || typeof options.heightConstraint !== \"undefined\") {\n for (var _i = 0, _Object$keys$1 = _Object$keys(this.body.nodes); _i < _Object$keys$1.length; _i++) {\n var _nodeId = _Object$keys$1[_i];\n this.body.nodes[_nodeId].updateLabelModule();\n this.body.nodes[_nodeId].needsRefresh();\n }\n }\n\n // update the shape size in all nodes\n if (options.size !== undefined) {\n for (var _nodeId2 in this.body.nodes) {\n if (Object.prototype.hasOwnProperty.call(this.body.nodes, _nodeId2)) {\n this.body.nodes[_nodeId2].needsRefresh();\n }\n }\n }\n\n // update the state of the variables if needed\n if (options.hidden !== undefined || options.physics !== undefined) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n }\n\n /**\n * Set a data set with nodes for the network\n *\n * @param {Array | DataSet | DataView} nodes The data containing the nodes.\n * @param {boolean} [doNotEmit=false] - Suppress data changed event.\n * @private\n */\n }, {\n key: \"setData\",\n value: function setData(nodes) {\n var doNotEmit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var oldNodesData = this.body.data.nodes;\n if (isDataViewLike(\"id\", nodes)) {\n this.body.data.nodes = nodes;\n } else if (_Array$isArray(nodes)) {\n this.body.data.nodes = new DataSet();\n this.body.data.nodes.add(nodes);\n } else if (!nodes) {\n this.body.data.nodes = new DataSet();\n } else {\n throw new TypeError(\"Array or DataSet expected\");\n }\n if (oldNodesData) {\n // unsubscribe from old dataset\n forEach$5(this.nodesListeners, function (callback, event) {\n oldNodesData.off(event, callback);\n });\n }\n\n // remove drawn nodes\n this.body.nodes = {};\n if (this.body.data.nodes) {\n // subscribe to new dataset\n var me = this;\n forEach$5(this.nodesListeners, function (callback, event) {\n me.body.data.nodes.on(event, callback);\n });\n\n // draw all new nodes\n var ids = this.body.data.nodes.getIds();\n this.add(ids, true);\n }\n if (doNotEmit === false) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n\n /**\n * Add nodes\n *\n * @param {number[] | string[]} ids\n * @param {boolean} [doNotEmit=false]\n * @private\n */\n }, {\n key: \"add\",\n value: function add(ids) {\n var doNotEmit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var id;\n var newNodes = [];\n for (var i = 0; i < ids.length; i++) {\n id = ids[i];\n var properties = this.body.data.nodes.get(id);\n var node = this.create(properties);\n newNodes.push(node);\n this.body.nodes[id] = node; // note: this may replace an existing node\n }\n\n this.layoutEngine.positionInitially(newNodes);\n if (doNotEmit === false) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n\n /**\n * Update existing nodes, or create them when not yet existing\n *\n * @param {number[] | string[]} ids id's of changed nodes\n * @param {Array} changedData array with changed data\n * @param {Array|undefined} oldData optional; array with previous data\n * @private\n */\n }, {\n key: \"update\",\n value: function update(ids, changedData, oldData) {\n var nodes = this.body.nodes;\n var dataChanged = false;\n for (var i = 0; i < ids.length; i++) {\n var id = ids[i];\n var node = nodes[id];\n var data = changedData[i];\n if (node !== undefined) {\n // update node\n if (node.setOptions(data)) {\n dataChanged = true;\n }\n } else {\n dataChanged = true;\n // create node\n node = this.create(data);\n nodes[id] = node;\n }\n }\n if (!dataChanged && oldData !== undefined) {\n // Check for any changes which should trigger a layout recalculation\n // For now, this is just 'level' for hierarchical layout\n // Assumption: old and new data arranged in same order; at time of writing, this holds.\n dataChanged = _someInstanceProperty(changedData).call(changedData, function (newValue, index) {\n var oldValue = oldData[index];\n return oldValue && oldValue.level !== newValue.level;\n });\n }\n if (dataChanged === true) {\n this.body.emitter.emit(\"_dataChanged\");\n } else {\n this.body.emitter.emit(\"_dataUpdated\");\n }\n }\n\n /**\n * Remove existing nodes. If nodes do not exist, the method will just ignore it.\n *\n * @param {number[] | string[]} ids\n * @private\n */\n }, {\n key: \"remove\",\n value: function remove(ids) {\n var nodes = this.body.nodes;\n for (var i = 0; i < ids.length; i++) {\n var id = ids[i];\n delete nodes[id];\n }\n this.body.emitter.emit(\"_dataChanged\");\n }\n\n /**\n * create a node\n *\n * @param {object} properties\n * @param {class} [constructorClass=Node.default]\n * @returns {*}\n */\n }, {\n key: \"create\",\n value: function create(properties) {\n var constructorClass = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Node;\n return new constructorClass(properties, this.body, this.images, this.groups, this.options, this.defaultOptions);\n }\n\n /**\n *\n * @param {boolean} [clearPositions=false]\n */\n }, {\n key: \"refresh\",\n value: function refresh() {\n var _this3 = this;\n var clearPositions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n forEach$5(this.body.nodes, function (node, nodeId) {\n var data = _this3.body.data.nodes.get(nodeId);\n if (data !== undefined) {\n if (clearPositions === true) {\n node.setOptions({\n x: null,\n y: null\n });\n }\n node.setOptions({\n fixed: false\n });\n node.setOptions(data);\n }\n });\n }\n\n /**\n * Returns the positions of the nodes.\n *\n * @param {Array. | string} [ids] --> optional, can be array of nodeIds, can be string\n * @returns {{}}\n */\n }, {\n key: \"getPositions\",\n value: function getPositions(ids) {\n var dataArray = {};\n if (ids !== undefined) {\n if (_Array$isArray(ids) === true) {\n for (var i = 0; i < ids.length; i++) {\n if (this.body.nodes[ids[i]] !== undefined) {\n var node = this.body.nodes[ids[i]];\n dataArray[ids[i]] = {\n x: Math.round(node.x),\n y: Math.round(node.y)\n };\n }\n }\n } else {\n if (this.body.nodes[ids] !== undefined) {\n var _node = this.body.nodes[ids];\n dataArray[ids] = {\n x: Math.round(_node.x),\n y: Math.round(_node.y)\n };\n }\n }\n } else {\n for (var _i2 = 0; _i2 < this.body.nodeIndices.length; _i2++) {\n var _node2 = this.body.nodes[this.body.nodeIndices[_i2]];\n dataArray[this.body.nodeIndices[_i2]] = {\n x: Math.round(_node2.x),\n y: Math.round(_node2.y)\n };\n }\n }\n return dataArray;\n }\n\n /**\n * Retrieves the x y position of a specific id.\n *\n * @param {string} id The id to retrieve.\n * @throws {TypeError} If no id is included.\n * @throws {ReferenceError} If an invalid id is provided.\n * @returns {{ x: number, y: number }} Returns X, Y canvas position of the node with given id.\n */\n }, {\n key: \"getPosition\",\n value: function getPosition(id) {\n if (id == undefined) {\n throw new TypeError(\"No id was specified for getPosition method.\");\n } else if (this.body.nodes[id] == undefined) {\n throw new ReferenceError(\"NodeId provided for getPosition does not exist. Provided: \".concat(id));\n } else {\n return {\n x: Math.round(this.body.nodes[id].x),\n y: Math.round(this.body.nodes[id].y)\n };\n }\n }\n\n /**\n * Load the XY positions of the nodes into the dataset.\n */\n }, {\n key: \"storePositions\",\n value: function storePositions() {\n // todo: add support for clusters and hierarchical.\n var dataArray = [];\n var dataset = this.body.data.nodes.getDataSet();\n var _iterator = _createForOfIteratorHelper$5(dataset.get()),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var dsNode = _step.value;\n var id = dsNode.id;\n var bodyNode = this.body.nodes[id];\n var x = Math.round(bodyNode.x);\n var y = Math.round(bodyNode.y);\n if (dsNode.x !== x || dsNode.y !== y) {\n dataArray.push({\n id: id,\n x: x,\n y: y\n });\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n dataset.update(dataArray);\n }\n\n /**\n * get the bounding box of a node.\n *\n * @param {Node.id} nodeId\n * @returns {j|*}\n */\n }, {\n key: \"getBoundingBox\",\n value: function getBoundingBox(nodeId) {\n if (this.body.nodes[nodeId] !== undefined) {\n return this.body.nodes[nodeId].shape.boundingBox;\n }\n }\n\n /**\n * Get the Ids of nodes connected to this node.\n *\n * @param {Node.id} nodeId\n * @param {'to'|'from'|undefined} direction values 'from' and 'to' select respectively parent and child nodes only.\n * Any other value returns both parent and child nodes.\n * @returns {Array}\n */\n }, {\n key: \"getConnectedNodes\",\n value: function getConnectedNodes(nodeId, direction) {\n var nodeList = [];\n if (this.body.nodes[nodeId] !== undefined) {\n var node = this.body.nodes[nodeId];\n var nodeObj = {}; // used to quickly check if node already exists\n for (var i = 0; i < node.edges.length; i++) {\n var edge = node.edges[i];\n if (direction !== \"to\" && edge.toId == node.id) {\n // these are double equals since ids can be numeric or string\n if (nodeObj[edge.fromId] === undefined) {\n nodeList.push(edge.fromId);\n nodeObj[edge.fromId] = true;\n }\n } else if (direction !== \"from\" && edge.fromId == node.id) {\n // these are double equals since ids can be numeric or string\n if (nodeObj[edge.toId] === undefined) {\n nodeList.push(edge.toId);\n nodeObj[edge.toId] = true;\n }\n }\n }\n }\n return nodeList;\n }\n\n /**\n * Get the ids of the edges connected to this node.\n *\n * @param {Node.id} nodeId\n * @returns {*}\n */\n }, {\n key: \"getConnectedEdges\",\n value: function getConnectedEdges(nodeId) {\n var edgeList = [];\n if (this.body.nodes[nodeId] !== undefined) {\n var node = this.body.nodes[nodeId];\n for (var i = 0; i < node.edges.length; i++) {\n edgeList.push(node.edges[i].id);\n }\n } else {\n console.error(\"NodeId provided for getConnectedEdges does not exist. Provided: \", nodeId);\n }\n return edgeList;\n }\n\n /**\n * Move a node.\n *\n * @param {Node.id} nodeId\n * @param {number} x\n * @param {number} y\n */\n }, {\n key: \"moveNode\",\n value: function moveNode(nodeId, x, y) {\n var _this4 = this;\n if (this.body.nodes[nodeId] !== undefined) {\n this.body.nodes[nodeId].x = Number(x);\n this.body.nodes[nodeId].y = Number(y);\n _setTimeout(function () {\n _this4.body.emitter.emit(\"startSimulation\");\n }, 0);\n } else {\n console.error(\"Node id supplied to moveNode does not exist. Provided: \", nodeId);\n }\n }\n }]);\n return NodesHandler;\n}();\n\nvar getExports$1 = {};\nvar get$6 = {\n get exports(){ return getExports$1; },\n set exports(v){ getExports$1 = v; },\n};\n\nvar getExports = {};\nvar get$5 = {\n get exports(){ return getExports; },\n set exports(v){ getExports = v; },\n};\n\nvar hasOwn$1 = hasOwnProperty_1;\n\nvar isDataDescriptor$1 = function (descriptor) {\n return descriptor !== undefined && (hasOwn$1(descriptor, 'value') || hasOwn$1(descriptor, 'writable'));\n};\n\nvar $$2 = _export;\nvar call = functionCall;\nvar isObject$2 = isObject$m;\nvar anObject$1 = anObject$f;\nvar isDataDescriptor = isDataDescriptor$1;\nvar getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;\nvar getPrototypeOf = objectGetPrototypeOf;\n\n// `Reflect.get` method\n// https://tc39.es/ecma262/#sec-reflect.get\nfunction get$4(target, propertyKey /* , receiver */) {\n var receiver = arguments.length < 3 ? target : arguments[2];\n var descriptor, prototype;\n if (anObject$1(target) === receiver) return target[propertyKey];\n descriptor = getOwnPropertyDescriptorModule.f(target, propertyKey);\n if (descriptor) return isDataDescriptor(descriptor)\n ? descriptor.value\n : descriptor.get === undefined ? undefined : call(descriptor.get, receiver);\n if (isObject$2(prototype = getPrototypeOf(target))) return get$4(prototype, propertyKey, receiver);\n}\n\n$$2({ target: 'Reflect', stat: true }, {\n get: get$4\n});\n\nvar path$3 = path$z;\n\nvar get$3 = path$3.Reflect.get;\n\nvar parent$7 = get$3;\n\nvar get$2 = parent$7;\n\nvar parent$6 = get$2;\n\nvar get$1 = parent$6;\n\nvar parent$5 = get$1;\n\nvar get = parent$5;\n\n(function (module) {\n\tmodule.exports = get;\n} (get$5));\n\n(function (module) {\n\tmodule.exports = getExports;\n} (get$6));\n\nvar _Reflect$get = /*@__PURE__*/getDefaultExportFromCjs(getExports$1);\n\nvar getOwnPropertyDescriptorExports$1 = {};\nvar getOwnPropertyDescriptor$3 = {\n get exports(){ return getOwnPropertyDescriptorExports$1; },\n set exports(v){ getOwnPropertyDescriptorExports$1 = v; },\n};\n\nvar getOwnPropertyDescriptorExports = {};\nvar getOwnPropertyDescriptor$2 = {\n get exports(){ return getOwnPropertyDescriptorExports; },\n set exports(v){ getOwnPropertyDescriptorExports = v; },\n};\n\nvar parent$4 = getOwnPropertyDescriptor$6;\n\nvar getOwnPropertyDescriptor$1 = parent$4;\n\nvar parent$3 = getOwnPropertyDescriptor$1;\n\nvar getOwnPropertyDescriptor = parent$3;\n\n(function (module) {\n\tmodule.exports = getOwnPropertyDescriptor;\n} (getOwnPropertyDescriptor$2));\n\n(function (module) {\n\tmodule.exports = getOwnPropertyDescriptorExports;\n} (getOwnPropertyDescriptor$3));\n\nvar _Object$getOwnPropertyDescriptor = /*@__PURE__*/getDefaultExportFromCjs(getOwnPropertyDescriptorExports$1);\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = _getPrototypeOf(object);\n if (object === null) break;\n }\n return object;\n}\n\nfunction _get() {\n if (typeof Reflect !== \"undefined\" && _Reflect$get) {\n var _context;\n _get = _bindInstanceProperty(_context = _Reflect$get).call(_context);\n } else {\n _get = function _get(target, property, receiver) {\n var base = _superPropBase(target, property);\n if (!base) return;\n var desc = _Object$getOwnPropertyDescriptor(base, property);\n if (desc.get) {\n return desc.get.call(arguments.length < 3 ? target : receiver);\n }\n return desc.value;\n };\n }\n return _get.apply(this, arguments);\n}\n\nvar hypotExports = {};\nvar hypot$2 = {\n get exports(){ return hypotExports; },\n set exports(v){ hypotExports = v; },\n};\n\nvar $$1 = _export;\n\n// eslint-disable-next-line es/no-math-hypot -- required for testing\nvar $hypot = Math.hypot;\nvar abs = Math.abs;\nvar sqrt = Math.sqrt;\n\n// Chrome 77 bug\n// https://bugs.chromium.org/p/v8/issues/detail?id=9546\nvar FORCED = !!$hypot && $hypot(Infinity, NaN) !== Infinity;\n\n// `Math.hypot` method\n// https://tc39.es/ecma262/#sec-math.hypot\n$$1({ target: 'Math', stat: true, arity: 2, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n hypot: function hypot(value1, value2) {\n var sum = 0;\n var i = 0;\n var aLen = arguments.length;\n var larg = 0;\n var arg, div;\n while (i < aLen) {\n arg = abs(arguments[i++]);\n if (larg < arg) {\n div = larg / arg;\n sum = sum * div * div + 1;\n larg = arg;\n } else if (arg > 0) {\n div = arg / larg;\n sum += div * div;\n } else sum += arg;\n }\n return larg === Infinity ? Infinity : larg * sqrt(sum);\n }\n});\n\nvar path$2 = path$z;\n\nvar hypot$1 = path$2.Math.hypot;\n\nvar parent$2 = hypot$1;\n\nvar hypot = parent$2;\n\n(function (module) {\n\tmodule.exports = hypot;\n} (hypot$2));\n\nvar _Math$hypot = /*@__PURE__*/getDefaultExportFromCjs(hypotExports);\n\nfunction _createSuper$a(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$a(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$a() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * Common methods for endpoints\r\n *\r\n * @class\r\n */\nvar EndPoint = /*#__PURE__*/function () {\n function EndPoint() {\n _classCallCheck(this, EndPoint);\n }\n _createClass(EndPoint, null, [{\n key: \"transform\",\n value:\n /**\r\n * Apply transformation on points for display.\r\n *\r\n * The following is done:\r\n * - rotate by the specified angle\r\n * - multiply the (normalized) coordinates by the passed length\r\n * - offset by the target coordinates\r\n *\r\n * @param points - The point(s) to be transformed.\r\n * @param arrowData - The data determining the result of the transformation.\r\n */\n function transform(points, arrowData) {\n if (!_Array$isArray(points)) {\n points = [points];\n }\n var x = arrowData.point.x;\n var y = arrowData.point.y;\n var angle = arrowData.angle;\n var length = arrowData.length;\n for (var i = 0; i < points.length; ++i) {\n var p = points[i];\n var xt = p.x * Math.cos(angle) - p.y * Math.sin(angle);\n var yt = p.x * Math.sin(angle) + p.y * Math.cos(angle);\n p.x = x + length * xt;\n p.y = y + length * yt;\n }\n }\n /**\r\n * Draw a closed path using the given real coordinates.\r\n *\r\n * @param ctx - The path will be rendered into this context.\r\n * @param points - The points of the path.\r\n */\n }, {\n key: \"drawPath\",\n value: function drawPath(ctx, points) {\n ctx.beginPath();\n ctx.moveTo(points[0].x, points[0].y);\n for (var i = 1; i < points.length; ++i) {\n ctx.lineTo(points[i].x, points[i].y);\n }\n ctx.closePath();\n }\n }]);\n return EndPoint;\n}();\n/**\r\n * Drawing methods for the arrow endpoint.\r\n */\nvar Image$1 = /*#__PURE__*/function (_EndPoint) {\n _inherits(Image, _EndPoint);\n var _super = _createSuper$a(Image);\n function Image() {\n _classCallCheck(this, Image);\n return _super.apply(this, arguments);\n }\n _createClass(Image, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns False as there is no way to fill an image.\r\n */\n function draw(ctx, arrowData) {\n if (arrowData.image) {\n ctx.save();\n ctx.translate(arrowData.point.x, arrowData.point.y);\n ctx.rotate(Math.PI / 2 + arrowData.angle);\n var width = arrowData.imageWidth != null ? arrowData.imageWidth : arrowData.image.width;\n var height = arrowData.imageHeight != null ? arrowData.imageHeight : arrowData.image.height;\n arrowData.image.drawImageAtPosition(ctx, 1,\n // scale\n -width / 2,\n // x\n 0,\n // y\n width, height);\n ctx.restore();\n }\n return false;\n }\n }]);\n return Image;\n}(EndPoint);\n/**\r\n * Drawing methods for the arrow endpoint.\r\n */\nvar Arrow = /*#__PURE__*/function (_EndPoint2) {\n _inherits(Arrow, _EndPoint2);\n var _super2 = _createSuper$a(Arrow);\n function Arrow() {\n _classCallCheck(this, Arrow);\n return _super2.apply(this, arguments);\n }\n _createClass(Arrow, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n // Normalized points of closed path, in the order that they should be drawn.\n // (0, 0) is the attachment point, and the point around which should be rotated\n var points = [{\n x: 0,\n y: 0\n }, {\n x: -1,\n y: 0.3\n }, {\n x: -0.9,\n y: 0\n }, {\n x: -1,\n y: -0.3\n }];\n EndPoint.transform(points, arrowData);\n EndPoint.drawPath(ctx, points);\n return true;\n }\n }]);\n return Arrow;\n}(EndPoint);\n/**\r\n * Drawing methods for the crow endpoint.\r\n */\nvar Crow = /*#__PURE__*/function () {\n function Crow() {\n _classCallCheck(this, Crow);\n }\n _createClass(Crow, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n // Normalized points of closed path, in the order that they should be drawn.\n // (0, 0) is the attachment point, and the point around which should be rotated\n var points = [{\n x: -1,\n y: 0\n }, {\n x: 0,\n y: 0.3\n }, {\n x: -0.4,\n y: 0\n }, {\n x: 0,\n y: -0.3\n }];\n EndPoint.transform(points, arrowData);\n EndPoint.drawPath(ctx, points);\n return true;\n }\n }]);\n return Crow;\n}();\n/**\r\n * Drawing methods for the curve endpoint.\r\n */\nvar Curve = /*#__PURE__*/function () {\n function Curve() {\n _classCallCheck(this, Curve);\n }\n _createClass(Curve, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n // Normalized points of closed path, in the order that they should be drawn.\n // (0, 0) is the attachment point, and the point around which should be rotated\n var point = {\n x: -0.4,\n y: 0\n };\n EndPoint.transform(point, arrowData);\n // Update endpoint style for drawing transparent arc.\n ctx.strokeStyle = ctx.fillStyle;\n ctx.fillStyle = \"rgba(0, 0, 0, 0)\";\n // Define curve endpoint as semicircle.\n var pi = Math.PI;\n var startAngle = arrowData.angle - pi / 2;\n var endAngle = arrowData.angle + pi / 2;\n ctx.beginPath();\n ctx.arc(point.x, point.y, arrowData.length * 0.4, startAngle, endAngle, false);\n ctx.stroke();\n return true;\n }\n }]);\n return Curve;\n}();\n/**\r\n * Drawing methods for the inverted curve endpoint.\r\n */\nvar InvertedCurve = /*#__PURE__*/function () {\n function InvertedCurve() {\n _classCallCheck(this, InvertedCurve);\n }\n _createClass(InvertedCurve, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n // Normalized points of closed path, in the order that they should be drawn.\n // (0, 0) is the attachment point, and the point around which should be rotated\n var point = {\n x: -0.3,\n y: 0\n };\n EndPoint.transform(point, arrowData);\n // Update endpoint style for drawing transparent arc.\n ctx.strokeStyle = ctx.fillStyle;\n ctx.fillStyle = \"rgba(0, 0, 0, 0)\";\n // Define inverted curve endpoint as semicircle.\n var pi = Math.PI;\n var startAngle = arrowData.angle + pi / 2;\n var endAngle = arrowData.angle + 3 * pi / 2;\n ctx.beginPath();\n ctx.arc(point.x, point.y, arrowData.length * 0.4, startAngle, endAngle, false);\n ctx.stroke();\n return true;\n }\n }]);\n return InvertedCurve;\n}();\n/**\r\n * Drawing methods for the trinagle endpoint.\r\n */\nvar Triangle = /*#__PURE__*/function () {\n function Triangle() {\n _classCallCheck(this, Triangle);\n }\n _createClass(Triangle, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n // Normalized points of closed path, in the order that they should be drawn.\n // (0, 0) is the attachment point, and the point around which should be rotated\n var points = [{\n x: 0.02,\n y: 0\n }, {\n x: -1,\n y: 0.3\n }, {\n x: -1,\n y: -0.3\n }];\n EndPoint.transform(points, arrowData);\n EndPoint.drawPath(ctx, points);\n return true;\n }\n }]);\n return Triangle;\n}();\n/**\r\n * Drawing methods for the inverted trinagle endpoint.\r\n */\nvar InvertedTriangle = /*#__PURE__*/function () {\n function InvertedTriangle() {\n _classCallCheck(this, InvertedTriangle);\n }\n _createClass(InvertedTriangle, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n // Normalized points of closed path, in the order that they should be drawn.\n // (0, 0) is the attachment point, and the point around which should be rotated\n var points = [{\n x: 0,\n y: 0.3\n }, {\n x: 0,\n y: -0.3\n }, {\n x: -1,\n y: 0\n }];\n EndPoint.transform(points, arrowData);\n EndPoint.drawPath(ctx, points);\n return true;\n }\n }]);\n return InvertedTriangle;\n}();\n/**\r\n * Drawing methods for the circle endpoint.\r\n */\nvar Circle = /*#__PURE__*/function () {\n function Circle() {\n _classCallCheck(this, Circle);\n }\n _createClass(Circle, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n var point = {\n x: -0.4,\n y: 0\n };\n EndPoint.transform(point, arrowData);\n drawCircle(ctx, point.x, point.y, arrowData.length * 0.4);\n return true;\n }\n }]);\n return Circle;\n}();\n/**\r\n * Drawing methods for the bar endpoint.\r\n */\nvar Bar = /*#__PURE__*/function () {\n function Bar() {\n _classCallCheck(this, Bar);\n }\n _createClass(Bar, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n /*\r\n var points = [\r\n {x:0, y:0.5},\r\n {x:0, y:-0.5}\r\n ];\r\n EndPoint.transform(points, arrowData);\r\n ctx.beginPath();\r\n ctx.moveTo(points[0].x, points[0].y);\r\n ctx.lineTo(points[1].x, points[1].y);\r\n ctx.stroke();\r\n */\n var points = [{\n x: 0,\n y: 0.5\n }, {\n x: 0,\n y: -0.5\n }, {\n x: -0.15,\n y: -0.5\n }, {\n x: -0.15,\n y: 0.5\n }];\n EndPoint.transform(points, arrowData);\n EndPoint.drawPath(ctx, points);\n return true;\n }\n }]);\n return Bar;\n}();\n/**\r\n * Drawing methods for the box endpoint.\r\n */\nvar Box = /*#__PURE__*/function () {\n function Box() {\n _classCallCheck(this, Box);\n }\n _createClass(Box, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n var points = [{\n x: 0,\n y: 0.3\n }, {\n x: 0,\n y: -0.3\n }, {\n x: -0.6,\n y: -0.3\n }, {\n x: -0.6,\n y: 0.3\n }];\n EndPoint.transform(points, arrowData);\n EndPoint.drawPath(ctx, points);\n return true;\n }\n }]);\n return Box;\n}();\n/**\r\n * Drawing methods for the diamond endpoint.\r\n */\nvar Diamond = /*#__PURE__*/function () {\n function Diamond() {\n _classCallCheck(this, Diamond);\n }\n _createClass(Diamond, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n var points = [{\n x: 0,\n y: 0\n }, {\n x: -0.5,\n y: -0.3\n }, {\n x: -1,\n y: 0\n }, {\n x: -0.5,\n y: 0.3\n }];\n EndPoint.transform(points, arrowData);\n EndPoint.drawPath(ctx, points);\n return true;\n }\n }]);\n return Diamond;\n}();\n/**\r\n * Drawing methods for the vee endpoint.\r\n */\nvar Vee = /*#__PURE__*/function () {\n function Vee() {\n _classCallCheck(this, Vee);\n }\n _createClass(Vee, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n // Normalized points of closed path, in the order that they should be drawn.\n // (0, 0) is the attachment point, and the point around which should be rotated\n var points = [{\n x: -1,\n y: 0.3\n }, {\n x: -0.5,\n y: 0\n }, {\n x: -1,\n y: -0.3\n }, {\n x: 0,\n y: 0\n }];\n EndPoint.transform(points, arrowData);\n EndPoint.drawPath(ctx, points);\n return true;\n }\n }]);\n return Vee;\n}();\n/**\r\n * Drawing methods for the endpoints.\r\n */\nvar EndPoints = /*#__PURE__*/function () {\n function EndPoints() {\n _classCallCheck(this, EndPoints);\n }\n _createClass(EndPoints, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw an endpoint.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True if ctx.fill() can be used to fill the arrow, false otherwise.\r\n */\n function draw(ctx, arrowData) {\n var type;\n if (arrowData.type) {\n type = arrowData.type.toLowerCase();\n }\n switch (type) {\n case \"image\":\n return Image$1.draw(ctx, arrowData);\n case \"circle\":\n return Circle.draw(ctx, arrowData);\n case \"box\":\n return Box.draw(ctx, arrowData);\n case \"crow\":\n return Crow.draw(ctx, arrowData);\n case \"curve\":\n return Curve.draw(ctx, arrowData);\n case \"diamond\":\n return Diamond.draw(ctx, arrowData);\n case \"inv_curve\":\n return InvertedCurve.draw(ctx, arrowData);\n case \"triangle\":\n return Triangle.draw(ctx, arrowData);\n case \"inv_triangle\":\n return InvertedTriangle.draw(ctx, arrowData);\n case \"bar\":\n return Bar.draw(ctx, arrowData);\n case \"vee\":\n return Vee.draw(ctx, arrowData);\n case \"arrow\": // fall-through\n default:\n return Arrow.draw(ctx, arrowData);\n }\n }\n }]);\n return EndPoints;\n}();\n\nfunction ownKeys$1(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor$1(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$1(Object(source))).call(_context3, function (key) { _Object$defineProperty$1(target, key, _Object$getOwnPropertyDescriptor$1(source, key)); }); } return target; }\n/**\r\n * The Base Class for all edges.\r\n */\nvar EdgeBase = /*#__PURE__*/function () {\n /**\r\n * Create a new instance.\r\n *\r\n * @param options - The options object of given edge.\r\n * @param _body - The body of the network.\r\n * @param _labelModule - Label module.\r\n */\n function EdgeBase(options, _body, _labelModule) {\n _classCallCheck(this, EdgeBase);\n this._body = _body;\n this._labelModule = _labelModule;\n this.color = {};\n this.colorDirty = true;\n this.hoverWidth = 1.5;\n this.selectionWidth = 2;\n this.setOptions(options);\n this.fromPoint = this.from;\n this.toPoint = this.to;\n }\n /** @inheritDoc */\n _createClass(EdgeBase, [{\n key: \"connect\",\n value: function connect() {\n this.from = this._body.nodes[this.options.from];\n this.to = this._body.nodes[this.options.to];\n }\n /** @inheritDoc */\n }, {\n key: \"cleanup\",\n value: function cleanup() {\n return false;\n }\n /**\r\n * Set new edge options.\r\n *\r\n * @param options - The new edge options object.\r\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n this.options = options;\n this.from = this._body.nodes[this.options.from];\n this.to = this._body.nodes[this.options.to];\n this.id = this.options.id;\n }\n /** @inheritDoc */\n }, {\n key: \"drawLine\",\n value: function drawLine(ctx, values, _selected, _hover) {\n var viaNode = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : this.getViaNode();\n // set style\n ctx.strokeStyle = this.getColor(ctx, values);\n ctx.lineWidth = values.width;\n if (values.dashes !== false) {\n this._drawDashedLine(ctx, values, viaNode);\n } else {\n this._drawLine(ctx, values, viaNode);\n }\n }\n /**\r\n * Draw a line with given style between two nodes through supplied node(s).\r\n *\r\n * @param ctx - The context that will be used for rendering.\r\n * @param values - Formatting values like color, opacity or shadow.\r\n * @param viaNode - Additional control point(s) for the edge.\r\n * @param fromPoint - TODO: Seems ignored, remove?\r\n * @param toPoint - TODO: Seems ignored, remove?\r\n */\n }, {\n key: \"_drawLine\",\n value: function _drawLine(ctx, values, viaNode, fromPoint, toPoint) {\n if (this.from != this.to) {\n // draw line\n this._line(ctx, values, viaNode, fromPoint, toPoint);\n } else {\n var _this$_getCircleData = this._getCircleData(ctx),\n _this$_getCircleData2 = _slicedToArray(_this$_getCircleData, 3),\n x = _this$_getCircleData2[0],\n y = _this$_getCircleData2[1],\n radius = _this$_getCircleData2[2];\n this._circle(ctx, values, x, y, radius);\n }\n }\n /**\r\n * Draw a dashed line with given style between two nodes through supplied node(s).\r\n *\r\n * @param ctx - The context that will be used for rendering.\r\n * @param values - Formatting values like color, opacity or shadow.\r\n * @param viaNode - Additional control point(s) for the edge.\r\n * @param _fromPoint - Ignored (TODO: remove in the future).\r\n * @param _toPoint - Ignored (TODO: remove in the future).\r\n */\n }, {\n key: \"_drawDashedLine\",\n value: function _drawDashedLine(ctx, values, viaNode, _fromPoint, _toPoint) {\n ctx.lineCap = \"round\";\n var pattern = _Array$isArray(values.dashes) ? values.dashes : [5, 5];\n // only firefox and chrome support this method, else we use the legacy one.\n if (ctx.setLineDash !== undefined) {\n ctx.save();\n // set dash settings for chrome or firefox\n ctx.setLineDash(pattern);\n ctx.lineDashOffset = 0;\n // draw the line\n if (this.from != this.to) {\n // draw line\n this._line(ctx, values, viaNode);\n } else {\n var _this$_getCircleData3 = this._getCircleData(ctx),\n _this$_getCircleData4 = _slicedToArray(_this$_getCircleData3, 3),\n x = _this$_getCircleData4[0],\n y = _this$_getCircleData4[1],\n radius = _this$_getCircleData4[2];\n this._circle(ctx, values, x, y, radius);\n }\n // restore the dash settings.\n ctx.setLineDash([0]);\n ctx.lineDashOffset = 0;\n ctx.restore();\n } else {\n // unsupporting smooth lines\n if (this.from != this.to) {\n // draw line\n drawDashedLine(ctx, this.from.x, this.from.y, this.to.x, this.to.y, pattern);\n } else {\n var _this$_getCircleData5 = this._getCircleData(ctx),\n _this$_getCircleData6 = _slicedToArray(_this$_getCircleData5, 3),\n _x = _this$_getCircleData6[0],\n _y = _this$_getCircleData6[1],\n _radius = _this$_getCircleData6[2];\n this._circle(ctx, values, _x, _y, _radius);\n }\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n ctx.stroke();\n // disable shadows for other elements.\n this.disableShadow(ctx, values);\n }\n }\n /**\r\n * Find the intersection between the border of the node and the edge.\r\n *\r\n * @param node - The node (either from or to node of the edge).\r\n * @param ctx - The context that will be used for rendering.\r\n * @param options - Additional options.\r\n * @returns Cartesian coordinates of the intersection between the border of the node and the edge.\r\n */\n }, {\n key: \"findBorderPosition\",\n value: function findBorderPosition(node, ctx, options) {\n if (this.from != this.to) {\n return this._findBorderPosition(node, ctx, options);\n } else {\n return this._findBorderPositionCircle(node, ctx, options);\n }\n }\n /** @inheritDoc */\n }, {\n key: \"findBorderPositions\",\n value: function findBorderPositions(ctx) {\n if (this.from != this.to) {\n return {\n from: this._findBorderPosition(this.from, ctx),\n to: this._findBorderPosition(this.to, ctx)\n };\n } else {\n var _context;\n var _this$_getCircleData$ = _sliceInstanceProperty(_context = this._getCircleData(ctx)).call(_context, 0, 2),\n _this$_getCircleData$2 = _slicedToArray(_this$_getCircleData$, 2),\n x = _this$_getCircleData$2[0],\n y = _this$_getCircleData$2[1];\n return {\n from: this._findBorderPositionCircle(this.from, ctx, {\n x: x,\n y: y,\n low: 0.25,\n high: 0.6,\n direction: -1\n }),\n to: this._findBorderPositionCircle(this.from, ctx, {\n x: x,\n y: y,\n low: 0.6,\n high: 0.8,\n direction: 1\n })\n };\n }\n }\n /**\r\n * Compute the center point and radius of an edge connected to the same node at both ends.\r\n *\r\n * @param ctx - The context that will be used for rendering.\r\n * @returns `[x, y, radius]`\r\n */\n }, {\n key: \"_getCircleData\",\n value: function _getCircleData(ctx) {\n var radius = this.options.selfReference.size;\n if (ctx !== undefined) {\n if (this.from.shape.width === undefined) {\n this.from.shape.resize(ctx);\n }\n }\n // get circle coordinates\n var coordinates = getSelfRefCoordinates(ctx, this.options.selfReference.angle, radius, this.from);\n return [coordinates.x, coordinates.y, radius];\n }\n /**\r\n * Get a point on a circle.\r\n *\r\n * @param x - Center of the circle on the x axis.\r\n * @param y - Center of the circle on the y axis.\r\n * @param radius - Radius of the circle.\r\n * @param position - Value between 0 (line start) and 1 (line end).\r\n * @returns Cartesian coordinates of requested point on the circle.\r\n */\n }, {\n key: \"_pointOnCircle\",\n value: function _pointOnCircle(x, y, radius, position) {\n var angle = position * 2 * Math.PI;\n return {\n x: x + radius * Math.cos(angle),\n y: y - radius * Math.sin(angle)\n };\n }\n /**\r\n * Find the intersection between the border of the node and the edge.\r\n *\r\n * @remarks\r\n * This function uses binary search to look for the point where the circle crosses the border of the node.\r\n * @param nearNode - The node (either from or to node of the edge).\r\n * @param ctx - The context that will be used for rendering.\r\n * @param options - Additional options.\r\n * @returns Cartesian coordinates of the intersection between the border of the node and the edge.\r\n */\n }, {\n key: \"_findBorderPositionCircle\",\n value: function _findBorderPositionCircle(nearNode, ctx, options) {\n var x = options.x;\n var y = options.y;\n var low = options.low;\n var high = options.high;\n var direction = options.direction;\n var maxIterations = 10;\n var radius = this.options.selfReference.size;\n var threshold = 0.05;\n var pos;\n var middle = (low + high) * 0.5;\n var endPointOffset = 0;\n if (this.options.arrowStrikethrough === true) {\n if (direction === -1) {\n endPointOffset = this.options.endPointOffset.from;\n } else if (direction === 1) {\n endPointOffset = this.options.endPointOffset.to;\n }\n }\n var iteration = 0;\n do {\n middle = (low + high) * 0.5;\n pos = this._pointOnCircle(x, y, radius, middle);\n var angle = Math.atan2(nearNode.y - pos.y, nearNode.x - pos.x);\n var distanceToBorder = nearNode.distanceToBorder(ctx, angle) + endPointOffset;\n var distanceToPoint = Math.sqrt(Math.pow(pos.x - nearNode.x, 2) + Math.pow(pos.y - nearNode.y, 2));\n var difference = distanceToBorder - distanceToPoint;\n if (Math.abs(difference) < threshold) {\n break; // found\n } else if (difference > 0) {\n // distance to nodes is larger than distance to border --> t needs to be bigger if we're looking at the to node.\n if (direction > 0) {\n low = middle;\n } else {\n high = middle;\n }\n } else {\n if (direction > 0) {\n high = middle;\n } else {\n low = middle;\n }\n }\n ++iteration;\n } while (low <= high && iteration < maxIterations);\n return _objectSpread$1(_objectSpread$1({}, pos), {}, {\n t: middle\n });\n }\n /**\r\n * Get the line width of the edge. Depends on width and whether one of the connected nodes is selected.\r\n *\r\n * @param selected - Determines wheter the line is selected.\r\n * @param hover - Determines wheter the line is being hovered, only applies if selected is false.\r\n * @returns The width of the line.\r\n */\n }, {\n key: \"getLineWidth\",\n value: function getLineWidth(selected, hover) {\n if (selected === true) {\n return Math.max(this.selectionWidth, 0.3 / this._body.view.scale);\n } else if (hover === true) {\n return Math.max(this.hoverWidth, 0.3 / this._body.view.scale);\n } else {\n return Math.max(this.options.width, 0.3 / this._body.view.scale);\n }\n }\n /**\r\n * Compute the color or gradient for given edge.\r\n *\r\n * @param ctx - The context that will be used for rendering.\r\n * @param values - Formatting values like color, opacity or shadow.\r\n * @param _selected - Ignored (TODO: remove in the future).\r\n * @param _hover - Ignored (TODO: remove in the future).\r\n * @returns Color string if single color is inherited or gradient if two.\r\n */\n }, {\n key: \"getColor\",\n value: function getColor(ctx, values) {\n if (values.inheritsColor !== false) {\n // when this is a loop edge, just use the 'from' method\n if (values.inheritsColor === \"both\" && this.from.id !== this.to.id) {\n var grd = ctx.createLinearGradient(this.from.x, this.from.y, this.to.x, this.to.y);\n var fromColor = this.from.options.color.highlight.border;\n var toColor = this.to.options.color.highlight.border;\n if (this.from.selected === false && this.to.selected === false) {\n fromColor = overrideOpacity(this.from.options.color.border, values.opacity);\n toColor = overrideOpacity(this.to.options.color.border, values.opacity);\n } else if (this.from.selected === true && this.to.selected === false) {\n toColor = this.to.options.color.border;\n } else if (this.from.selected === false && this.to.selected === true) {\n fromColor = this.from.options.color.border;\n }\n grd.addColorStop(0, fromColor);\n grd.addColorStop(1, toColor);\n // -------------------- this returns -------------------- //\n return grd;\n }\n if (values.inheritsColor === \"to\") {\n return overrideOpacity(this.to.options.color.border, values.opacity);\n } else {\n // \"from\"\n return overrideOpacity(this.from.options.color.border, values.opacity);\n }\n } else {\n return overrideOpacity(values.color, values.opacity);\n }\n }\n /**\r\n * Draw a line from a node to itself, a circle.\r\n *\r\n * @param ctx - The context that will be used for rendering.\r\n * @param values - Formatting values like color, opacity or shadow.\r\n * @param x - Center of the circle on the x axis.\r\n * @param y - Center of the circle on the y axis.\r\n * @param radius - Radius of the circle.\r\n */\n }, {\n key: \"_circle\",\n value: function _circle(ctx, values, x, y, radius) {\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n //full circle\n var angleFrom = 0;\n var angleTo = Math.PI * 2;\n if (!this.options.selfReference.renderBehindTheNode) {\n //render only parts which are not overlaping with parent node\n //need to find x,y of from point and x,y to point\n //calculating radians\n var low = this.options.selfReference.angle;\n var high = this.options.selfReference.angle + Math.PI;\n var pointTFrom = this._findBorderPositionCircle(this.from, ctx, {\n x: x,\n y: y,\n low: low,\n high: high,\n direction: -1\n });\n var pointTTo = this._findBorderPositionCircle(this.from, ctx, {\n x: x,\n y: y,\n low: low,\n high: high,\n direction: 1\n });\n angleFrom = Math.atan2(pointTFrom.y - y, pointTFrom.x - x);\n angleTo = Math.atan2(pointTTo.y - y, pointTTo.x - x);\n }\n // draw a circle\n ctx.beginPath();\n ctx.arc(x, y, radius, angleFrom, angleTo, false);\n ctx.stroke();\n // disable shadows for other elements.\n this.disableShadow(ctx, values);\n }\n /**\r\n * @inheritDoc\r\n * @remarks\r\n * http://stackoverflow.com/questions/849211/shortest-distancae-between-a-point-and-a-line-segment\r\n */\n }, {\n key: \"getDistanceToEdge\",\n value: function getDistanceToEdge(x1, y1, x2, y2, x3, y3) {\n if (this.from != this.to) {\n return this._getDistanceToEdge(x1, y1, x2, y2, x3, y3);\n } else {\n var _this$_getCircleData7 = this._getCircleData(undefined),\n _this$_getCircleData8 = _slicedToArray(_this$_getCircleData7, 3),\n x = _this$_getCircleData8[0],\n y = _this$_getCircleData8[1],\n radius = _this$_getCircleData8[2];\n var dx = x - x3;\n var dy = y - y3;\n return Math.abs(Math.sqrt(dx * dx + dy * dy) - radius);\n }\n }\n /**\r\n * Calculate the distance between a point (x3, y3) and a line segment from (x1, y1) to (x2, y2).\r\n *\r\n * @param x1 - First end of the line segment on the x axis.\r\n * @param y1 - First end of the line segment on the y axis.\r\n * @param x2 - Second end of the line segment on the x axis.\r\n * @param y2 - Second end of the line segment on the y axis.\r\n * @param x3 - Position of the point on the x axis.\r\n * @param y3 - Position of the point on the y axis.\r\n * @returns The distance between the line segment and the point.\r\n */\n }, {\n key: \"_getDistanceToLine\",\n value: function _getDistanceToLine(x1, y1, x2, y2, x3, y3) {\n var px = x2 - x1;\n var py = y2 - y1;\n var something = px * px + py * py;\n var u = ((x3 - x1) * px + (y3 - y1) * py) / something;\n if (u > 1) {\n u = 1;\n } else if (u < 0) {\n u = 0;\n }\n var x = x1 + u * px;\n var y = y1 + u * py;\n var dx = x - x3;\n var dy = y - y3;\n //# Note: If the actual distance does not matter,\n //# if you only want to compare what this function\n //# returns to other results of this function, you\n //# can just return the squared distance instead\n //# (i.e. remove the sqrt) to gain a little performance\n return Math.sqrt(dx * dx + dy * dy);\n }\n /** @inheritDoc */\n }, {\n key: \"getArrowData\",\n value: function getArrowData(ctx, position, viaNode, _selected, _hover, values) {\n // set lets\n var angle;\n var arrowPoint;\n var node1;\n var node2;\n var reversed;\n var scaleFactor;\n var type;\n var lineWidth = values.width;\n if (position === \"from\") {\n node1 = this.from;\n node2 = this.to;\n reversed = values.fromArrowScale < 0;\n scaleFactor = Math.abs(values.fromArrowScale);\n type = values.fromArrowType;\n } else if (position === \"to\") {\n node1 = this.to;\n node2 = this.from;\n reversed = values.toArrowScale < 0;\n scaleFactor = Math.abs(values.toArrowScale);\n type = values.toArrowType;\n } else {\n node1 = this.to;\n node2 = this.from;\n reversed = values.middleArrowScale < 0;\n scaleFactor = Math.abs(values.middleArrowScale);\n type = values.middleArrowType;\n }\n var length = 15 * scaleFactor + 3 * lineWidth; // 3* lineWidth is the width of the edge.\n // if not connected to itself\n if (node1 != node2) {\n var approximateEdgeLength = _Math$hypot(node1.x - node2.x, node1.y - node2.y);\n var relativeLength = length / approximateEdgeLength;\n if (position !== \"middle\") {\n // draw arrow head\n if (this.options.smooth.enabled === true) {\n var pointT = this._findBorderPosition(node1, ctx, {\n via: viaNode\n });\n var guidePos = this.getPoint(pointT.t + relativeLength * (position === \"from\" ? 1 : -1), viaNode);\n angle = Math.atan2(pointT.y - guidePos.y, pointT.x - guidePos.x);\n arrowPoint = pointT;\n } else {\n angle = Math.atan2(node1.y - node2.y, node1.x - node2.x);\n arrowPoint = this._findBorderPosition(node1, ctx);\n }\n } else {\n // Negative half length reverses arrow direction.\n var halfLength = (reversed ? -relativeLength : relativeLength) / 2;\n var guidePos1 = this.getPoint(0.5 + halfLength, viaNode);\n var guidePos2 = this.getPoint(0.5 - halfLength, viaNode);\n angle = Math.atan2(guidePos1.y - guidePos2.y, guidePos1.x - guidePos2.x);\n arrowPoint = this.getPoint(0.5, viaNode);\n }\n } else {\n // draw circle\n var _this$_getCircleData9 = this._getCircleData(ctx),\n _this$_getCircleData10 = _slicedToArray(_this$_getCircleData9, 3),\n x = _this$_getCircleData10[0],\n y = _this$_getCircleData10[1],\n radius = _this$_getCircleData10[2];\n if (position === \"from\") {\n var low = this.options.selfReference.angle;\n var high = this.options.selfReference.angle + Math.PI;\n var _pointT = this._findBorderPositionCircle(this.from, ctx, {\n x: x,\n y: y,\n low: low,\n high: high,\n direction: -1\n });\n angle = _pointT.t * -2 * Math.PI + 1.5 * Math.PI + 0.1 * Math.PI;\n arrowPoint = _pointT;\n } else if (position === \"to\") {\n var _low = this.options.selfReference.angle;\n var _high = this.options.selfReference.angle + Math.PI;\n var _pointT2 = this._findBorderPositionCircle(this.from, ctx, {\n x: x,\n y: y,\n low: _low,\n high: _high,\n direction: 1\n });\n angle = _pointT2.t * -2 * Math.PI + 1.5 * Math.PI - 1.1 * Math.PI;\n arrowPoint = _pointT2;\n } else {\n var pos = this.options.selfReference.angle / (2 * Math.PI);\n arrowPoint = this._pointOnCircle(x, y, radius, pos);\n angle = pos * -2 * Math.PI + 1.5 * Math.PI + 0.1 * Math.PI;\n }\n }\n var xi = arrowPoint.x - length * 0.9 * Math.cos(angle);\n var yi = arrowPoint.y - length * 0.9 * Math.sin(angle);\n var arrowCore = {\n x: xi,\n y: yi\n };\n return {\n point: arrowPoint,\n core: arrowCore,\n angle: angle,\n length: length,\n type: type\n };\n }\n /** @inheritDoc */\n }, {\n key: \"drawArrowHead\",\n value: function drawArrowHead(ctx, values, _selected, _hover, arrowData) {\n // set style\n ctx.strokeStyle = this.getColor(ctx, values);\n ctx.fillStyle = ctx.strokeStyle;\n ctx.lineWidth = values.width;\n var canFill = EndPoints.draw(ctx, arrowData);\n if (canFill) {\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n _fillInstanceProperty(ctx).call(ctx);\n // disable shadows for other elements.\n this.disableShadow(ctx, values);\n }\n }\n /**\r\n * Set the shadow formatting values in the context if enabled, do nothing otherwise.\r\n *\r\n * @param ctx - The context that will be used for rendering.\r\n * @param values - Formatting values for the shadow.\r\n */\n }, {\n key: \"enableShadow\",\n value: function enableShadow(ctx, values) {\n if (values.shadow === true) {\n ctx.shadowColor = values.shadowColor;\n ctx.shadowBlur = values.shadowSize;\n ctx.shadowOffsetX = values.shadowX;\n ctx.shadowOffsetY = values.shadowY;\n }\n }\n /**\r\n * Reset the shadow formatting values in the context if enabled, do nothing otherwise.\r\n *\r\n * @param ctx - The context that will be used for rendering.\r\n * @param values - Formatting values for the shadow.\r\n */\n }, {\n key: \"disableShadow\",\n value: function disableShadow(ctx, values) {\n if (values.shadow === true) {\n ctx.shadowColor = \"rgba(0,0,0,0)\";\n ctx.shadowBlur = 0;\n ctx.shadowOffsetX = 0;\n ctx.shadowOffsetY = 0;\n }\n }\n /**\r\n * Render the background according to the formatting values.\r\n *\r\n * @param ctx - The context that will be used for rendering.\r\n * @param values - Formatting values for the background.\r\n */\n }, {\n key: \"drawBackground\",\n value: function drawBackground(ctx, values) {\n if (values.background !== false) {\n // save original line attrs\n var origCtxAttr = {\n strokeStyle: ctx.strokeStyle,\n lineWidth: ctx.lineWidth,\n dashes: ctx.dashes\n };\n ctx.strokeStyle = values.backgroundColor;\n ctx.lineWidth = values.backgroundSize;\n this.setStrokeDashed(ctx, values.backgroundDashes);\n ctx.stroke();\n // restore original line attrs\n ctx.strokeStyle = origCtxAttr.strokeStyle;\n ctx.lineWidth = origCtxAttr.lineWidth;\n ctx.dashes = origCtxAttr.dashes;\n this.setStrokeDashed(ctx, values.dashes);\n }\n }\n /**\r\n * Set the line dash pattern if supported. Logs a warning to the console if it isn't supported.\r\n *\r\n * @param ctx - The context that will be used for rendering.\r\n * @param dashes - The pattern [line, space, line…], true for default dashed line or false for normal line.\r\n */\n }, {\n key: \"setStrokeDashed\",\n value: function setStrokeDashed(ctx, dashes) {\n if (dashes !== false) {\n if (ctx.setLineDash !== undefined) {\n var pattern = _Array$isArray(dashes) ? dashes : [5, 5];\n ctx.setLineDash(pattern);\n } else {\n console.warn(\"setLineDash is not supported in this browser. The dashed stroke cannot be used.\");\n }\n } else {\n if (ctx.setLineDash !== undefined) {\n ctx.setLineDash([]);\n } else {\n console.warn(\"setLineDash is not supported in this browser. The dashed stroke cannot be used.\");\n }\n }\n }\n }]);\n return EdgeBase;\n}();\n\nfunction ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor$1(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty$1(target, key, _Object$getOwnPropertyDescriptor$1(source, key)); }); } return target; }\nfunction _createSuper$9(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$9(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$9() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * The Base Class for all Bezier edges.\r\n * Bezier curves are used to model smooth gradual curves in paths between nodes.\r\n */\nvar BezierEdgeBase = /*#__PURE__*/function (_EdgeBase) {\n _inherits(BezierEdgeBase, _EdgeBase);\n var _super = _createSuper$9(BezierEdgeBase);\n /**\r\n * Create a new instance.\r\n *\r\n * @param options - The options object of given edge.\r\n * @param body - The body of the network.\r\n * @param labelModule - Label module.\r\n */\n function BezierEdgeBase(options, body, labelModule) {\n _classCallCheck(this, BezierEdgeBase);\n return _super.call(this, options, body, labelModule);\n }\n /**\r\n * Find the intersection between the border of the node and the edge.\r\n *\r\n * @remarks\r\n * This function uses binary search to look for the point where the bezier curve crosses the border of the node.\r\n * @param nearNode - The node (either from or to node of the edge).\r\n * @param ctx - The context that will be used for rendering.\r\n * @param viaNode - Additional node(s) the edge passes through.\r\n * @returns Cartesian coordinates of the intersection between the border of the node and the edge.\r\n */\n _createClass(BezierEdgeBase, [{\n key: \"_findBorderPositionBezier\",\n value: function _findBorderPositionBezier(nearNode, ctx) {\n var viaNode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this._getViaCoordinates();\n var maxIterations = 10;\n var threshold = 0.2;\n var from = false;\n var high = 1;\n var low = 0;\n var node = this.to;\n var pos;\n var middle;\n var endPointOffset = this.options.endPointOffset ? this.options.endPointOffset.to : 0;\n if (nearNode.id === this.from.id) {\n node = this.from;\n from = true;\n endPointOffset = this.options.endPointOffset ? this.options.endPointOffset.from : 0;\n }\n if (this.options.arrowStrikethrough === false) {\n endPointOffset = 0;\n }\n var iteration = 0;\n do {\n middle = (low + high) * 0.5;\n pos = this.getPoint(middle, viaNode);\n var angle = Math.atan2(node.y - pos.y, node.x - pos.x);\n var distanceToBorder = node.distanceToBorder(ctx, angle) + endPointOffset;\n var distanceToPoint = Math.sqrt(Math.pow(pos.x - node.x, 2) + Math.pow(pos.y - node.y, 2));\n var difference = distanceToBorder - distanceToPoint;\n if (Math.abs(difference) < threshold) {\n break; // found\n } else if (difference < 0) {\n // distance to nodes is larger than distance to border --> t needs to be bigger if we're looking at the to node.\n if (from === false) {\n low = middle;\n } else {\n high = middle;\n }\n } else {\n if (from === false) {\n high = middle;\n } else {\n low = middle;\n }\n }\n ++iteration;\n } while (low <= high && iteration < maxIterations);\n return _objectSpread(_objectSpread({}, pos), {}, {\n t: middle\n });\n }\n /**\r\n * Calculate the distance between a point (x3,y3) and a line segment from (x1,y1) to (x2,y2).\r\n *\r\n * @remarks\r\n * http://stackoverflow.com/questions/849211/shortest-distancae-between-a-point-and-a-line-segment\r\n * @param x1 - First end of the line segment on the x axis.\r\n * @param y1 - First end of the line segment on the y axis.\r\n * @param x2 - Second end of the line segment on the x axis.\r\n * @param y2 - Second end of the line segment on the y axis.\r\n * @param x3 - Position of the point on the x axis.\r\n * @param y3 - Position of the point on the y axis.\r\n * @param via - The control point for the edge.\r\n * @returns The distance between the line segment and the point.\r\n */\n }, {\n key: \"_getDistanceToBezierEdge\",\n value: function _getDistanceToBezierEdge(x1, y1, x2, y2, x3, y3, via) {\n // x3,y3 is the point\n var minDistance = 1e9;\n var distance;\n var i, t, x, y;\n var lastX = x1;\n var lastY = y1;\n for (i = 1; i < 10; i++) {\n t = 0.1 * i;\n x = Math.pow(1 - t, 2) * x1 + 2 * t * (1 - t) * via.x + Math.pow(t, 2) * x2;\n y = Math.pow(1 - t, 2) * y1 + 2 * t * (1 - t) * via.y + Math.pow(t, 2) * y2;\n if (i > 0) {\n distance = this._getDistanceToLine(lastX, lastY, x, y, x3, y3);\n minDistance = distance < minDistance ? distance : minDistance;\n }\n lastX = x;\n lastY = y;\n }\n return minDistance;\n }\n /**\r\n * Render a bezier curve between two nodes.\r\n *\r\n * @remarks\r\n * The method accepts zero, one or two control points.\r\n * Passing zero control points just draws a straight line.\r\n * @param ctx - The context that will be used for rendering.\r\n * @param values - Style options for edge drawing.\r\n * @param viaNode1 - First control point for curve drawing.\r\n * @param viaNode2 - Second control point for curve drawing.\r\n */\n }, {\n key: \"_bezierCurve\",\n value: function _bezierCurve(ctx, values, viaNode1, viaNode2) {\n ctx.beginPath();\n ctx.moveTo(this.fromPoint.x, this.fromPoint.y);\n if (viaNode1 != null && viaNode1.x != null) {\n if (viaNode2 != null && viaNode2.x != null) {\n ctx.bezierCurveTo(viaNode1.x, viaNode1.y, viaNode2.x, viaNode2.y, this.toPoint.x, this.toPoint.y);\n } else {\n ctx.quadraticCurveTo(viaNode1.x, viaNode1.y, this.toPoint.x, this.toPoint.y);\n }\n } else {\n // fallback to normal straight edge\n ctx.lineTo(this.toPoint.x, this.toPoint.y);\n }\n // draw a background\n this.drawBackground(ctx, values);\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n ctx.stroke();\n this.disableShadow(ctx, values);\n }\n /** @inheritDoc */\n }, {\n key: \"getViaNode\",\n value: function getViaNode() {\n return this._getViaCoordinates();\n }\n }]);\n return BezierEdgeBase;\n}(EdgeBase);\n\nfunction _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$8() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * A Dynamic Bezier Edge. Bezier curves are used to model smooth gradual\r\n * curves in paths between nodes. The Dynamic piece refers to how the curve\r\n * reacts to physics changes.\r\n *\r\n * @augments BezierEdgeBase\r\n */\nvar BezierEdgeDynamic = /*#__PURE__*/function (_BezierEdgeBase) {\n _inherits(BezierEdgeDynamic, _BezierEdgeBase);\n var _super = _createSuper$8(BezierEdgeDynamic);\n /**\r\n * Create a new instance.\r\n *\r\n * @param options - The options object of given edge.\r\n * @param body - The body of the network.\r\n * @param labelModule - Label module.\r\n */\n function BezierEdgeDynamic(options, body, labelModule) {\n var _this;\n _classCallCheck(this, BezierEdgeDynamic);\n //this.via = undefined; // Here for completeness but not allowed to defined before super() is invoked.\n _this = _super.call(this, options, body, labelModule); // --> this calls the setOptions below\n _this.via = _this.via; // constructor → super → super → setOptions → setupSupportNode\n _this._boundFunction = function () {\n _this.positionBezierNode();\n };\n _this._body.emitter.on(\"_repositionBezierNodes\", _this._boundFunction);\n return _this;\n }\n /** @inheritDoc */\n _createClass(BezierEdgeDynamic, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n _get(_getPrototypeOf(BezierEdgeDynamic.prototype), \"setOptions\", this).call(this, options);\n // check if the physics has changed.\n var physicsChange = false;\n if (this.options.physics !== options.physics) {\n physicsChange = true;\n }\n // set the options and the to and from nodes\n this.options = options;\n this.id = this.options.id;\n this.from = this._body.nodes[this.options.from];\n this.to = this._body.nodes[this.options.to];\n // setup the support node and connect\n this.setupSupportNode();\n this.connect();\n // when we change the physics state of the edge, we reposition the support node.\n if (physicsChange === true) {\n this.via.setOptions({\n physics: this.options.physics\n });\n this.positionBezierNode();\n }\n }\n /** @inheritDoc */\n }, {\n key: \"connect\",\n value: function connect() {\n this.from = this._body.nodes[this.options.from];\n this.to = this._body.nodes[this.options.to];\n if (this.from === undefined || this.to === undefined || this.options.physics === false) {\n this.via.setOptions({\n physics: false\n });\n } else {\n // fix weird behaviour where a self referencing node has physics enabled\n if (this.from.id === this.to.id) {\n this.via.setOptions({\n physics: false\n });\n } else {\n this.via.setOptions({\n physics: true\n });\n }\n }\n }\n /** @inheritDoc */\n }, {\n key: \"cleanup\",\n value: function cleanup() {\n this._body.emitter.off(\"_repositionBezierNodes\", this._boundFunction);\n if (this.via !== undefined) {\n delete this._body.nodes[this.via.id];\n this.via = undefined;\n return true;\n }\n return false;\n }\n /**\r\n * Create and add a support node if not already present.\r\n *\r\n * @remarks\r\n * Bezier curves require an anchor point to calculate the smooth flow.\r\n * These points are nodes.\r\n * These nodes are invisible but are used for the force calculation.\r\n *\r\n * The changed data is not called, if needed, it is returned by the main edge constructor.\r\n */\n }, {\n key: \"setupSupportNode\",\n value: function setupSupportNode() {\n if (this.via === undefined) {\n var nodeId = \"edgeId:\" + this.id;\n var node = this._body.functions.createNode({\n id: nodeId,\n shape: \"circle\",\n physics: true,\n hidden: true\n });\n this._body.nodes[nodeId] = node;\n this.via = node;\n this.via.parentEdgeId = this.id;\n this.positionBezierNode();\n }\n }\n /**\r\n * Position bezier node.\r\n */\n }, {\n key: \"positionBezierNode\",\n value: function positionBezierNode() {\n if (this.via !== undefined && this.from !== undefined && this.to !== undefined) {\n this.via.x = 0.5 * (this.from.x + this.to.x);\n this.via.y = 0.5 * (this.from.y + this.to.y);\n } else if (this.via !== undefined) {\n this.via.x = 0;\n this.via.y = 0;\n }\n }\n /** @inheritDoc */\n }, {\n key: \"_line\",\n value: function _line(ctx, values, viaNode) {\n this._bezierCurve(ctx, values, viaNode);\n }\n /** @inheritDoc */\n }, {\n key: \"_getViaCoordinates\",\n value: function _getViaCoordinates() {\n return this.via;\n }\n /** @inheritDoc */\n }, {\n key: \"getViaNode\",\n value: function getViaNode() {\n return this.via;\n }\n /** @inheritDoc */\n }, {\n key: \"getPoint\",\n value: function getPoint(position) {\n var viaNode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.via;\n if (this.from === this.to) {\n var _this$_getCircleData = this._getCircleData(),\n _this$_getCircleData2 = _slicedToArray(_this$_getCircleData, 3),\n cx = _this$_getCircleData2[0],\n cy = _this$_getCircleData2[1],\n cr = _this$_getCircleData2[2];\n var a = 2 * Math.PI * (1 - position);\n return {\n x: cx + cr * Math.sin(a),\n y: cy + cr - cr * (1 - Math.cos(a))\n };\n } else {\n return {\n x: Math.pow(1 - position, 2) * this.fromPoint.x + 2 * position * (1 - position) * viaNode.x + Math.pow(position, 2) * this.toPoint.x,\n y: Math.pow(1 - position, 2) * this.fromPoint.y + 2 * position * (1 - position) * viaNode.y + Math.pow(position, 2) * this.toPoint.y\n };\n }\n }\n /** @inheritDoc */\n }, {\n key: \"_findBorderPosition\",\n value: function _findBorderPosition(nearNode, ctx) {\n return this._findBorderPositionBezier(nearNode, ctx, this.via);\n }\n /** @inheritDoc */\n }, {\n key: \"_getDistanceToEdge\",\n value: function _getDistanceToEdge(x1, y1, x2, y2, x3, y3) {\n // x3,y3 is the point\n return this._getDistanceToBezierEdge(x1, y1, x2, y2, x3, y3, this.via);\n }\n }]);\n return BezierEdgeDynamic;\n}(BezierEdgeBase);\n\nfunction _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$7() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * A Static Bezier Edge. Bezier curves are used to model smooth gradual curves in paths between nodes.\r\n */\nvar BezierEdgeStatic = /*#__PURE__*/function (_BezierEdgeBase) {\n _inherits(BezierEdgeStatic, _BezierEdgeBase);\n var _super = _createSuper$7(BezierEdgeStatic);\n /**\r\n * Create a new instance.\r\n *\r\n * @param options - The options object of given edge.\r\n * @param body - The body of the network.\r\n * @param labelModule - Label module.\r\n */\n function BezierEdgeStatic(options, body, labelModule) {\n _classCallCheck(this, BezierEdgeStatic);\n return _super.call(this, options, body, labelModule);\n }\n /** @inheritDoc */\n _createClass(BezierEdgeStatic, [{\n key: \"_line\",\n value: function _line(ctx, values, viaNode) {\n this._bezierCurve(ctx, values, viaNode);\n }\n /** @inheritDoc */\n }, {\n key: \"getViaNode\",\n value: function getViaNode() {\n return this._getViaCoordinates();\n }\n /**\r\n * Compute the coordinates of the via node.\r\n *\r\n * @remarks\r\n * We do not use the to and fromPoints here to make the via nodes the same as edges without arrows.\r\n * @returns Cartesian coordinates of the via node.\r\n */\n }, {\n key: \"_getViaCoordinates\",\n value: function _getViaCoordinates() {\n // Assumption: x/y coordinates in from/to always defined\n var factor = this.options.smooth.roundness;\n var type = this.options.smooth.type;\n var dx = Math.abs(this.from.x - this.to.x);\n var dy = Math.abs(this.from.y - this.to.y);\n if (type === \"discrete\" || type === \"diagonalCross\") {\n var stepX;\n var stepY;\n if (dx <= dy) {\n stepX = stepY = factor * dy;\n } else {\n stepX = stepY = factor * dx;\n }\n if (this.from.x > this.to.x) {\n stepX = -stepX;\n }\n if (this.from.y >= this.to.y) {\n stepY = -stepY;\n }\n var xVia = this.from.x + stepX;\n var yVia = this.from.y + stepY;\n if (type === \"discrete\") {\n if (dx <= dy) {\n xVia = dx < factor * dy ? this.from.x : xVia;\n } else {\n yVia = dy < factor * dx ? this.from.y : yVia;\n }\n }\n return {\n x: xVia,\n y: yVia\n };\n } else if (type === \"straightCross\") {\n var _stepX = (1 - factor) * dx;\n var _stepY = (1 - factor) * dy;\n if (dx <= dy) {\n // up - down\n _stepX = 0;\n if (this.from.y < this.to.y) {\n _stepY = -_stepY;\n }\n } else {\n // left - right\n if (this.from.x < this.to.x) {\n _stepX = -_stepX;\n }\n _stepY = 0;\n }\n return {\n x: this.to.x + _stepX,\n y: this.to.y + _stepY\n };\n } else if (type === \"horizontal\") {\n var _stepX2 = (1 - factor) * dx;\n if (this.from.x < this.to.x) {\n _stepX2 = -_stepX2;\n }\n return {\n x: this.to.x + _stepX2,\n y: this.from.y\n };\n } else if (type === \"vertical\") {\n var _stepY2 = (1 - factor) * dy;\n if (this.from.y < this.to.y) {\n _stepY2 = -_stepY2;\n }\n return {\n x: this.from.x,\n y: this.to.y + _stepY2\n };\n } else if (type === \"curvedCW\") {\n dx = this.to.x - this.from.x;\n dy = this.from.y - this.to.y;\n var radius = Math.sqrt(dx * dx + dy * dy);\n var pi = Math.PI;\n var originalAngle = Math.atan2(dy, dx);\n var myAngle = (originalAngle + (factor * 0.5 + 0.5) * pi) % (2 * pi);\n return {\n x: this.from.x + (factor * 0.5 + 0.5) * radius * Math.sin(myAngle),\n y: this.from.y + (factor * 0.5 + 0.5) * radius * Math.cos(myAngle)\n };\n } else if (type === \"curvedCCW\") {\n dx = this.to.x - this.from.x;\n dy = this.from.y - this.to.y;\n var _radius = Math.sqrt(dx * dx + dy * dy);\n var _pi = Math.PI;\n var _originalAngle = Math.atan2(dy, dx);\n var _myAngle = (_originalAngle + (-factor * 0.5 + 0.5) * _pi) % (2 * _pi);\n return {\n x: this.from.x + (factor * 0.5 + 0.5) * _radius * Math.sin(_myAngle),\n y: this.from.y + (factor * 0.5 + 0.5) * _radius * Math.cos(_myAngle)\n };\n } else {\n // continuous\n var _stepX3;\n var _stepY3;\n if (dx <= dy) {\n _stepX3 = _stepY3 = factor * dy;\n } else {\n _stepX3 = _stepY3 = factor * dx;\n }\n if (this.from.x > this.to.x) {\n _stepX3 = -_stepX3;\n }\n if (this.from.y >= this.to.y) {\n _stepY3 = -_stepY3;\n }\n var _xVia = this.from.x + _stepX3;\n var _yVia = this.from.y + _stepY3;\n if (dx <= dy) {\n if (this.from.x <= this.to.x) {\n _xVia = this.to.x < _xVia ? this.to.x : _xVia;\n } else {\n _xVia = this.to.x > _xVia ? this.to.x : _xVia;\n }\n } else {\n if (this.from.y >= this.to.y) {\n _yVia = this.to.y > _yVia ? this.to.y : _yVia;\n } else {\n _yVia = this.to.y < _yVia ? this.to.y : _yVia;\n }\n }\n return {\n x: _xVia,\n y: _yVia\n };\n }\n }\n /** @inheritDoc */\n }, {\n key: \"_findBorderPosition\",\n value: function _findBorderPosition(nearNode, ctx) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n return this._findBorderPositionBezier(nearNode, ctx, options.via);\n }\n /** @inheritDoc */\n }, {\n key: \"_getDistanceToEdge\",\n value: function _getDistanceToEdge(x1, y1, x2, y2, x3, y3) {\n var viaNode = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : this._getViaCoordinates();\n // x3,y3 is the point\n return this._getDistanceToBezierEdge(x1, y1, x2, y2, x3, y3, viaNode);\n }\n /** @inheritDoc */\n }, {\n key: \"getPoint\",\n value: function getPoint(position) {\n var viaNode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this._getViaCoordinates();\n var t = position;\n var x = Math.pow(1 - t, 2) * this.fromPoint.x + 2 * t * (1 - t) * viaNode.x + Math.pow(t, 2) * this.toPoint.x;\n var y = Math.pow(1 - t, 2) * this.fromPoint.y + 2 * t * (1 - t) * viaNode.y + Math.pow(t, 2) * this.toPoint.y;\n return {\n x: x,\n y: y\n };\n }\n }]);\n return BezierEdgeStatic;\n}(BezierEdgeBase);\n\nfunction _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$6() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * A Base Class for all Cubic Bezier Edges. Bezier curves are used to model\r\n * smooth gradual curves in paths between nodes.\r\n *\r\n * @augments BezierEdgeBase\r\n */\nvar CubicBezierEdgeBase = /*#__PURE__*/function (_BezierEdgeBase) {\n _inherits(CubicBezierEdgeBase, _BezierEdgeBase);\n var _super = _createSuper$6(CubicBezierEdgeBase);\n /**\r\n * Create a new instance.\r\n *\r\n * @param options - The options object of given edge.\r\n * @param body - The body of the network.\r\n * @param labelModule - Label module.\r\n */\n function CubicBezierEdgeBase(options, body, labelModule) {\n _classCallCheck(this, CubicBezierEdgeBase);\n return _super.call(this, options, body, labelModule);\n }\n /**\r\n * Calculate the distance between a point (x3,y3) and a line segment from (x1,y1) to (x2,y2).\r\n *\r\n * @remarks\r\n * http://stackoverflow.com/questions/849211/shortest-distancae-between-a-point-and-a-line-segment\r\n * https://en.wikipedia.org/wiki/B%C3%A9zier_curve\r\n * @param x1 - First end of the line segment on the x axis.\r\n * @param y1 - First end of the line segment on the y axis.\r\n * @param x2 - Second end of the line segment on the x axis.\r\n * @param y2 - Second end of the line segment on the y axis.\r\n * @param x3 - Position of the point on the x axis.\r\n * @param y3 - Position of the point on the y axis.\r\n * @param via1 - The first point this edge passes through.\r\n * @param via2 - The second point this edge passes through.\r\n * @returns The distance between the line segment and the point.\r\n */\n _createClass(CubicBezierEdgeBase, [{\n key: \"_getDistanceToBezierEdge2\",\n value: function _getDistanceToBezierEdge2(x1, y1, x2, y2, x3, y3, via1, via2) {\n // x3,y3 is the point\n var minDistance = 1e9;\n var lastX = x1;\n var lastY = y1;\n var vec = [0, 0, 0, 0];\n for (var i = 1; i < 10; i++) {\n var t = 0.1 * i;\n vec[0] = Math.pow(1 - t, 3);\n vec[1] = 3 * t * Math.pow(1 - t, 2);\n vec[2] = 3 * Math.pow(t, 2) * (1 - t);\n vec[3] = Math.pow(t, 3);\n var x = vec[0] * x1 + vec[1] * via1.x + vec[2] * via2.x + vec[3] * x2;\n var y = vec[0] * y1 + vec[1] * via1.y + vec[2] * via2.y + vec[3] * y2;\n if (i > 0) {\n var distance = this._getDistanceToLine(lastX, lastY, x, y, x3, y3);\n minDistance = distance < minDistance ? distance : minDistance;\n }\n lastX = x;\n lastY = y;\n }\n return minDistance;\n }\n }]);\n return CubicBezierEdgeBase;\n}(BezierEdgeBase);\n\nfunction _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$5() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * A Cubic Bezier Edge. Bezier curves are used to model smooth gradual curves in paths between nodes.\r\n */\nvar CubicBezierEdge = /*#__PURE__*/function (_CubicBezierEdgeBase) {\n _inherits(CubicBezierEdge, _CubicBezierEdgeBase);\n var _super = _createSuper$5(CubicBezierEdge);\n /**\r\n * Create a new instance.\r\n *\r\n * @param options - The options object of given edge.\r\n * @param body - The body of the network.\r\n * @param labelModule - Label module.\r\n */\n function CubicBezierEdge(options, body, labelModule) {\n _classCallCheck(this, CubicBezierEdge);\n return _super.call(this, options, body, labelModule);\n }\n /** @inheritDoc */\n _createClass(CubicBezierEdge, [{\n key: \"_line\",\n value: function _line(ctx, values, viaNodes) {\n // get the coordinates of the support points.\n var via1 = viaNodes[0];\n var via2 = viaNodes[1];\n this._bezierCurve(ctx, values, via1, via2);\n }\n /**\r\n * Compute the additional points the edge passes through.\r\n *\r\n * @returns Cartesian coordinates of the points the edge passes through.\r\n */\n }, {\n key: \"_getViaCoordinates\",\n value: function _getViaCoordinates() {\n var dx = this.from.x - this.to.x;\n var dy = this.from.y - this.to.y;\n var x1;\n var y1;\n var x2;\n var y2;\n var roundness = this.options.smooth.roundness;\n // horizontal if x > y or if direction is forced or if direction is horizontal\n if ((Math.abs(dx) > Math.abs(dy) || this.options.smooth.forceDirection === true || this.options.smooth.forceDirection === \"horizontal\") && this.options.smooth.forceDirection !== \"vertical\") {\n y1 = this.from.y;\n y2 = this.to.y;\n x1 = this.from.x - roundness * dx;\n x2 = this.to.x + roundness * dx;\n } else {\n y1 = this.from.y - roundness * dy;\n y2 = this.to.y + roundness * dy;\n x1 = this.from.x;\n x2 = this.to.x;\n }\n return [{\n x: x1,\n y: y1\n }, {\n x: x2,\n y: y2\n }];\n }\n /** @inheritDoc */\n }, {\n key: \"getViaNode\",\n value: function getViaNode() {\n return this._getViaCoordinates();\n }\n /** @inheritDoc */\n }, {\n key: \"_findBorderPosition\",\n value: function _findBorderPosition(nearNode, ctx) {\n return this._findBorderPositionBezier(nearNode, ctx);\n }\n /** @inheritDoc */\n }, {\n key: \"_getDistanceToEdge\",\n value: function _getDistanceToEdge(x1, y1, x2, y2, x3, y3) {\n var _ref = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : this._getViaCoordinates(),\n _ref2 = _slicedToArray(_ref, 2),\n via1 = _ref2[0],\n via2 = _ref2[1];\n // x3,y3 is the point\n return this._getDistanceToBezierEdge2(x1, y1, x2, y2, x3, y3, via1, via2);\n }\n /** @inheritDoc */\n }, {\n key: \"getPoint\",\n value: function getPoint(position) {\n var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this._getViaCoordinates(),\n _ref4 = _slicedToArray(_ref3, 2),\n via1 = _ref4[0],\n via2 = _ref4[1];\n var t = position;\n var vec = [Math.pow(1 - t, 3), 3 * t * Math.pow(1 - t, 2), 3 * Math.pow(t, 2) * (1 - t), Math.pow(t, 3)];\n var x = vec[0] * this.fromPoint.x + vec[1] * via1.x + vec[2] * via2.x + vec[3] * this.toPoint.x;\n var y = vec[0] * this.fromPoint.y + vec[1] * via1.y + vec[2] * via2.y + vec[3] * this.toPoint.y;\n return {\n x: x,\n y: y\n };\n }\n }]);\n return CubicBezierEdge;\n}(CubicBezierEdgeBase);\n\nfunction _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$4() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * A Straight Edge.\r\n */\nvar StraightEdge = /*#__PURE__*/function (_EdgeBase) {\n _inherits(StraightEdge, _EdgeBase);\n var _super = _createSuper$4(StraightEdge);\n /**\r\n * Create a new instance.\r\n *\r\n * @param options - The options object of given edge.\r\n * @param body - The body of the network.\r\n * @param labelModule - Label module.\r\n */\n function StraightEdge(options, body, labelModule) {\n _classCallCheck(this, StraightEdge);\n return _super.call(this, options, body, labelModule);\n }\n /** @inheritDoc */\n _createClass(StraightEdge, [{\n key: \"_line\",\n value: function _line(ctx, values) {\n // draw a straight line\n ctx.beginPath();\n ctx.moveTo(this.fromPoint.x, this.fromPoint.y);\n ctx.lineTo(this.toPoint.x, this.toPoint.y);\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n ctx.stroke();\n this.disableShadow(ctx, values);\n }\n /** @inheritDoc */\n }, {\n key: \"getViaNode\",\n value: function getViaNode() {\n return undefined;\n }\n /** @inheritDoc */\n }, {\n key: \"getPoint\",\n value: function getPoint(position) {\n return {\n x: (1 - position) * this.fromPoint.x + position * this.toPoint.x,\n y: (1 - position) * this.fromPoint.y + position * this.toPoint.y\n };\n }\n /** @inheritDoc */\n }, {\n key: \"_findBorderPosition\",\n value: function _findBorderPosition(nearNode, ctx) {\n var node1 = this.to;\n var node2 = this.from;\n if (nearNode.id === this.from.id) {\n node1 = this.from;\n node2 = this.to;\n }\n var angle = Math.atan2(node1.y - node2.y, node1.x - node2.x);\n var dx = node1.x - node2.x;\n var dy = node1.y - node2.y;\n var edgeSegmentLength = Math.sqrt(dx * dx + dy * dy);\n var toBorderDist = nearNode.distanceToBorder(ctx, angle);\n var toBorderPoint = (edgeSegmentLength - toBorderDist) / edgeSegmentLength;\n return {\n x: (1 - toBorderPoint) * node2.x + toBorderPoint * node1.x,\n y: (1 - toBorderPoint) * node2.y + toBorderPoint * node1.y,\n t: 0\n };\n }\n /** @inheritDoc */\n }, {\n key: \"_getDistanceToEdge\",\n value: function _getDistanceToEdge(x1, y1, x2, y2, x3, y3) {\n // x3,y3 is the point\n return this._getDistanceToLine(x1, y1, x2, y2, x3, y3);\n }\n }]);\n return StraightEdge;\n}(EdgeBase);\n\n/**\n * An edge connects two nodes and has a specific direction.\n */\nvar Edge = /*#__PURE__*/function () {\n /**\n * @param {object} options values specific to this edge, must contain at least 'from' and 'to'\n * @param {object} body shared state from Network instance\n * @param {Network.Images} imagelist A list with images. Only needed when the edge has image arrows.\n * @param {object} globalOptions options from the EdgesHandler instance\n * @param {object} defaultOptions default options from the EdgeHandler instance. Value and reference are constant\n */\n function Edge(options, body, imagelist, globalOptions, defaultOptions) {\n _classCallCheck(this, Edge);\n if (body === undefined) {\n throw new Error(\"No body provided\");\n }\n\n // Since globalOptions is constant in values as well as reference,\n // Following needs to be done only once.\n\n this.options = bridgeObject(globalOptions);\n this.globalOptions = globalOptions;\n this.defaultOptions = defaultOptions;\n this.body = body;\n this.imagelist = imagelist;\n\n // initialize variables\n this.id = undefined;\n this.fromId = undefined;\n this.toId = undefined;\n this.selected = false;\n this.hover = false;\n this.labelDirty = true;\n this.baseWidth = this.options.width;\n this.baseFontSize = this.options.font.size;\n this.from = undefined; // a node\n this.to = undefined; // a node\n\n this.edgeType = undefined;\n this.connected = false;\n this.labelModule = new Label(this.body, this.options, true /* It's an edge label */);\n\n this.setOptions(options);\n }\n\n /**\n * Set or overwrite options for the edge\n *\n * @param {object} options an object with options\n * @returns {undefined|boolean} undefined if no options, true if layout affecting data changed, false otherwise.\n */\n _createClass(Edge, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n if (!options) {\n return;\n }\n\n // Following options if changed affect the layout.\n var affectsLayout = typeof options.physics !== \"undefined\" && this.options.physics !== options.physics || typeof options.hidden !== \"undefined\" && (this.options.hidden || false) !== (options.hidden || false) || typeof options.from !== \"undefined\" && this.options.from !== options.from || typeof options.to !== \"undefined\" && this.options.to !== options.to;\n Edge.parseOptions(this.options, options, true, this.globalOptions);\n if (options.id !== undefined) {\n this.id = options.id;\n }\n if (options.from !== undefined) {\n this.fromId = options.from;\n }\n if (options.to !== undefined) {\n this.toId = options.to;\n }\n if (options.title !== undefined) {\n this.title = options.title;\n }\n if (options.value !== undefined) {\n options.value = _parseFloat(options.value);\n }\n var pile = [options, this.options, this.defaultOptions];\n this.chooser = choosify(\"edge\", pile);\n\n // update label Module\n this.updateLabelModule(options);\n\n // Update edge type, this if changed affects the layout.\n affectsLayout = this.updateEdgeType() || affectsLayout;\n\n // if anything has been updates, reset the selection width and the hover width\n this._setInteractionWidths();\n\n // A node is connected when it has a from and to node that both exist in the network.body.nodes.\n this.connect();\n return affectsLayout;\n }\n\n /**\n *\n * @param {object} parentOptions\n * @param {object} newOptions\n * @param {boolean} [allowDeletion=false]\n * @param {object} [globalOptions={}]\n * @param {boolean} [copyFromGlobals=false]\n */\n }, {\n key: \"getFormattingValues\",\n value:\n /**\n *\n * @returns {ArrowOptions}\n */\n function getFormattingValues() {\n var toArrow = this.options.arrows.to === true || this.options.arrows.to.enabled === true;\n var fromArrow = this.options.arrows.from === true || this.options.arrows.from.enabled === true;\n var middleArrow = this.options.arrows.middle === true || this.options.arrows.middle.enabled === true;\n var inheritsColor = this.options.color.inherit;\n var values = {\n toArrow: toArrow,\n toArrowScale: this.options.arrows.to.scaleFactor,\n toArrowType: this.options.arrows.to.type,\n toArrowSrc: this.options.arrows.to.src,\n toArrowImageWidth: this.options.arrows.to.imageWidth,\n toArrowImageHeight: this.options.arrows.to.imageHeight,\n middleArrow: middleArrow,\n middleArrowScale: this.options.arrows.middle.scaleFactor,\n middleArrowType: this.options.arrows.middle.type,\n middleArrowSrc: this.options.arrows.middle.src,\n middleArrowImageWidth: this.options.arrows.middle.imageWidth,\n middleArrowImageHeight: this.options.arrows.middle.imageHeight,\n fromArrow: fromArrow,\n fromArrowScale: this.options.arrows.from.scaleFactor,\n fromArrowType: this.options.arrows.from.type,\n fromArrowSrc: this.options.arrows.from.src,\n fromArrowImageWidth: this.options.arrows.from.imageWidth,\n fromArrowImageHeight: this.options.arrows.from.imageHeight,\n arrowStrikethrough: this.options.arrowStrikethrough,\n color: inheritsColor ? undefined : this.options.color.color,\n inheritsColor: inheritsColor,\n opacity: this.options.color.opacity,\n hidden: this.options.hidden,\n length: this.options.length,\n shadow: this.options.shadow.enabled,\n shadowColor: this.options.shadow.color,\n shadowSize: this.options.shadow.size,\n shadowX: this.options.shadow.x,\n shadowY: this.options.shadow.y,\n dashes: this.options.dashes,\n width: this.options.width,\n background: this.options.background.enabled,\n backgroundColor: this.options.background.color,\n backgroundSize: this.options.background.size,\n backgroundDashes: this.options.background.dashes\n };\n if (this.selected || this.hover) {\n if (this.chooser === true) {\n if (this.selected) {\n var selectedWidth = this.options.selectionWidth;\n if (typeof selectedWidth === \"function\") {\n values.width = selectedWidth(values.width);\n } else if (typeof selectedWidth === \"number\") {\n values.width += selectedWidth;\n }\n values.width = Math.max(values.width, 0.3 / this.body.view.scale);\n values.color = this.options.color.highlight;\n values.shadow = this.options.shadow.enabled;\n } else if (this.hover) {\n var hoverWidth = this.options.hoverWidth;\n if (typeof hoverWidth === \"function\") {\n values.width = hoverWidth(values.width);\n } else if (typeof hoverWidth === \"number\") {\n values.width += hoverWidth;\n }\n values.width = Math.max(values.width, 0.3 / this.body.view.scale);\n values.color = this.options.color.hover;\n values.shadow = this.options.shadow.enabled;\n }\n } else if (typeof this.chooser === \"function\") {\n this.chooser(values, this.options.id, this.selected, this.hover);\n if (values.color !== undefined) {\n values.inheritsColor = false;\n }\n if (values.shadow === false) {\n if (values.shadowColor !== this.options.shadow.color || values.shadowSize !== this.options.shadow.size || values.shadowX !== this.options.shadow.x || values.shadowY !== this.options.shadow.y) {\n values.shadow = true;\n }\n }\n }\n } else {\n values.shadow = this.options.shadow.enabled;\n values.width = Math.max(values.width, 0.3 / this.body.view.scale);\n }\n return values;\n }\n\n /**\n * update the options in the label module\n *\n * @param {object} options\n */\n }, {\n key: \"updateLabelModule\",\n value: function updateLabelModule(options) {\n var pile = [options, this.options, this.globalOptions,\n // Currently set global edge options\n this.defaultOptions];\n this.labelModule.update(this.options, pile);\n if (this.labelModule.baseSize !== undefined) {\n this.baseFontSize = this.labelModule.baseSize;\n }\n }\n\n /**\n * update the edge type, set the options\n *\n * @returns {boolean}\n */\n }, {\n key: \"updateEdgeType\",\n value: function updateEdgeType() {\n var smooth = this.options.smooth;\n var dataChanged = false;\n var changeInType = true;\n if (this.edgeType !== undefined) {\n if (this.edgeType instanceof BezierEdgeDynamic && smooth.enabled === true && smooth.type === \"dynamic\" || this.edgeType instanceof CubicBezierEdge && smooth.enabled === true && smooth.type === \"cubicBezier\" || this.edgeType instanceof BezierEdgeStatic && smooth.enabled === true && smooth.type !== \"dynamic\" && smooth.type !== \"cubicBezier\" || this.edgeType instanceof StraightEdge && smooth.type.enabled === false) {\n changeInType = false;\n }\n if (changeInType === true) {\n dataChanged = this.cleanup();\n }\n }\n if (changeInType === true) {\n if (smooth.enabled === true) {\n if (smooth.type === \"dynamic\") {\n dataChanged = true;\n this.edgeType = new BezierEdgeDynamic(this.options, this.body, this.labelModule);\n } else if (smooth.type === \"cubicBezier\") {\n this.edgeType = new CubicBezierEdge(this.options, this.body, this.labelModule);\n } else {\n this.edgeType = new BezierEdgeStatic(this.options, this.body, this.labelModule);\n }\n } else {\n this.edgeType = new StraightEdge(this.options, this.body, this.labelModule);\n }\n } else {\n // if nothing changes, we just set the options.\n this.edgeType.setOptions(this.options);\n }\n return dataChanged;\n }\n\n /**\n * Connect an edge to its nodes\n */\n }, {\n key: \"connect\",\n value: function connect() {\n this.disconnect();\n this.from = this.body.nodes[this.fromId] || undefined;\n this.to = this.body.nodes[this.toId] || undefined;\n this.connected = this.from !== undefined && this.to !== undefined;\n if (this.connected === true) {\n this.from.attachEdge(this);\n this.to.attachEdge(this);\n } else {\n if (this.from) {\n this.from.detachEdge(this);\n }\n if (this.to) {\n this.to.detachEdge(this);\n }\n }\n this.edgeType.connect();\n }\n\n /**\n * Disconnect an edge from its nodes\n */\n }, {\n key: \"disconnect\",\n value: function disconnect() {\n if (this.from) {\n this.from.detachEdge(this);\n this.from = undefined;\n }\n if (this.to) {\n this.to.detachEdge(this);\n this.to = undefined;\n }\n this.connected = false;\n }\n\n /**\n * get the title of this edge.\n *\n * @returns {string} title The title of the edge, or undefined when no title\n * has been set.\n */\n }, {\n key: \"getTitle\",\n value: function getTitle() {\n return this.title;\n }\n\n /**\n * check if this node is selecte\n *\n * @returns {boolean} selected True if node is selected, else false\n */\n }, {\n key: \"isSelected\",\n value: function isSelected() {\n return this.selected;\n }\n\n /**\n * Retrieve the value of the edge. Can be undefined\n *\n * @returns {number} value\n */\n }, {\n key: \"getValue\",\n value: function getValue() {\n return this.options.value;\n }\n\n /**\n * Adjust the value range of the edge. The edge will adjust it's width\n * based on its value.\n *\n * @param {number} min\n * @param {number} max\n * @param {number} total\n */\n }, {\n key: \"setValueRange\",\n value: function setValueRange(min, max, total) {\n if (this.options.value !== undefined) {\n var scale = this.options.scaling.customScalingFunction(min, max, total, this.options.value);\n var widthDiff = this.options.scaling.max - this.options.scaling.min;\n if (this.options.scaling.label.enabled === true) {\n var fontDiff = this.options.scaling.label.max - this.options.scaling.label.min;\n this.options.font.size = this.options.scaling.label.min + scale * fontDiff;\n }\n this.options.width = this.options.scaling.min + scale * widthDiff;\n } else {\n this.options.width = this.baseWidth;\n this.options.font.size = this.baseFontSize;\n }\n this._setInteractionWidths();\n this.updateLabelModule();\n }\n\n /**\n *\n * @private\n */\n }, {\n key: \"_setInteractionWidths\",\n value: function _setInteractionWidths() {\n if (typeof this.options.hoverWidth === \"function\") {\n this.edgeType.hoverWidth = this.options.hoverWidth(this.options.width);\n } else {\n this.edgeType.hoverWidth = this.options.hoverWidth + this.options.width;\n }\n if (typeof this.options.selectionWidth === \"function\") {\n this.edgeType.selectionWidth = this.options.selectionWidth(this.options.width);\n } else {\n this.edgeType.selectionWidth = this.options.selectionWidth + this.options.width;\n }\n }\n\n /**\n * Redraw a edge\n * Draw this edge in the given canvas\n * The 2d context of a HTML canvas can be retrieved by canvas.getContext(\"2d\");\n *\n * @param {CanvasRenderingContext2D} ctx\n */\n }, {\n key: \"draw\",\n value: function draw(ctx) {\n var values = this.getFormattingValues();\n if (values.hidden) {\n return;\n }\n\n // get the via node from the edge type\n var viaNode = this.edgeType.getViaNode();\n\n // draw line and label\n this.edgeType.drawLine(ctx, values, this.selected, this.hover, viaNode);\n this.drawLabel(ctx, viaNode);\n }\n\n /**\n * Redraw arrows\n * Draw this arrows in the given canvas\n * The 2d context of a HTML canvas can be retrieved by canvas.getContext(\"2d\");\n *\n * @param {CanvasRenderingContext2D} ctx\n */\n }, {\n key: \"drawArrows\",\n value: function drawArrows(ctx) {\n var values = this.getFormattingValues();\n if (values.hidden) {\n return;\n }\n\n // get the via node from the edge type\n var viaNode = this.edgeType.getViaNode();\n var arrowData = {};\n\n // restore edge targets to defaults\n this.edgeType.fromPoint = this.edgeType.from;\n this.edgeType.toPoint = this.edgeType.to;\n\n // from and to arrows give a different end point for edges. we set them here\n if (values.fromArrow) {\n arrowData.from = this.edgeType.getArrowData(ctx, \"from\", viaNode, this.selected, this.hover, values);\n if (values.arrowStrikethrough === false) this.edgeType.fromPoint = arrowData.from.core;\n if (values.fromArrowSrc) {\n arrowData.from.image = this.imagelist.load(values.fromArrowSrc);\n }\n if (values.fromArrowImageWidth) {\n arrowData.from.imageWidth = values.fromArrowImageWidth;\n }\n if (values.fromArrowImageHeight) {\n arrowData.from.imageHeight = values.fromArrowImageHeight;\n }\n }\n if (values.toArrow) {\n arrowData.to = this.edgeType.getArrowData(ctx, \"to\", viaNode, this.selected, this.hover, values);\n if (values.arrowStrikethrough === false) this.edgeType.toPoint = arrowData.to.core;\n if (values.toArrowSrc) {\n arrowData.to.image = this.imagelist.load(values.toArrowSrc);\n }\n if (values.toArrowImageWidth) {\n arrowData.to.imageWidth = values.toArrowImageWidth;\n }\n if (values.toArrowImageHeight) {\n arrowData.to.imageHeight = values.toArrowImageHeight;\n }\n }\n\n // the middle arrow depends on the line, which can depend on the to and from arrows so we do this one lastly.\n if (values.middleArrow) {\n arrowData.middle = this.edgeType.getArrowData(ctx, \"middle\", viaNode, this.selected, this.hover, values);\n if (values.middleArrowSrc) {\n arrowData.middle.image = this.imagelist.load(values.middleArrowSrc);\n }\n if (values.middleArrowImageWidth) {\n arrowData.middle.imageWidth = values.middleArrowImageWidth;\n }\n if (values.middleArrowImageHeight) {\n arrowData.middle.imageHeight = values.middleArrowImageHeight;\n }\n }\n if (values.fromArrow) {\n this.edgeType.drawArrowHead(ctx, values, this.selected, this.hover, arrowData.from);\n }\n if (values.middleArrow) {\n this.edgeType.drawArrowHead(ctx, values, this.selected, this.hover, arrowData.middle);\n }\n if (values.toArrow) {\n this.edgeType.drawArrowHead(ctx, values, this.selected, this.hover, arrowData.to);\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {Node} viaNode\n */\n }, {\n key: \"drawLabel\",\n value: function drawLabel(ctx, viaNode) {\n if (this.options.label !== undefined) {\n // set style\n var node1 = this.from;\n var node2 = this.to;\n if (this.labelModule.differentState(this.selected, this.hover)) {\n this.labelModule.getTextSize(ctx, this.selected, this.hover);\n }\n var point;\n if (node1.id != node2.id) {\n this.labelModule.pointToSelf = false;\n point = this.edgeType.getPoint(0.5, viaNode);\n ctx.save();\n var rotationPoint = this._getRotation(ctx);\n if (rotationPoint.angle != 0) {\n ctx.translate(rotationPoint.x, rotationPoint.y);\n ctx.rotate(rotationPoint.angle);\n }\n\n // draw the label\n this.labelModule.draw(ctx, point.x, point.y, this.selected, this.hover);\n\n /*\n // Useful debug code: draw a border around the label\n // This should **not** be enabled in production!\n var size = this.labelModule.getSize();; // ;; intentional so lint catches it\n ctx.strokeStyle = \"#ff0000\";\n ctx.strokeRect(size.left, size.top, size.width, size.height);\n // End debug code\n */\n\n ctx.restore();\n } else {\n // Ignore the orientations.\n this.labelModule.pointToSelf = true;\n\n // get circle coordinates\n var coordinates = getSelfRefCoordinates(ctx, this.options.selfReference.angle, this.options.selfReference.size, node1);\n point = this._pointOnCircle(coordinates.x, coordinates.y, this.options.selfReference.size, this.options.selfReference.angle);\n this.labelModule.draw(ctx, point.x, point.y, this.selected, this.hover);\n }\n }\n }\n\n /**\n * Determine all visual elements of this edge instance, in which the given\n * point falls within the bounding shape.\n *\n * @param {point} point\n * @returns {Array.} list with the items which are on the point\n */\n }, {\n key: \"getItemsOnPoint\",\n value: function getItemsOnPoint(point) {\n var ret = [];\n if (this.labelModule.visible()) {\n var rotationPoint = this._getRotation();\n if (pointInRect(this.labelModule.getSize(), point, rotationPoint)) {\n ret.push({\n edgeId: this.id,\n labelId: 0\n });\n }\n }\n var obj = {\n left: point.x,\n top: point.y\n };\n if (this.isOverlappingWith(obj)) {\n ret.push({\n edgeId: this.id\n });\n }\n return ret;\n }\n\n /**\n * Check if this object is overlapping with the provided object\n *\n * @param {object} obj an object with parameters left, top\n * @returns {boolean} True if location is located on the edge\n */\n }, {\n key: \"isOverlappingWith\",\n value: function isOverlappingWith(obj) {\n if (this.connected) {\n var distMax = 10;\n var xFrom = this.from.x;\n var yFrom = this.from.y;\n var xTo = this.to.x;\n var yTo = this.to.y;\n var xObj = obj.left;\n var yObj = obj.top;\n var dist = this.edgeType.getDistanceToEdge(xFrom, yFrom, xTo, yTo, xObj, yObj);\n return dist < distMax;\n } else {\n return false;\n }\n }\n\n /**\n * Determine the rotation point, if any.\n *\n * @param {CanvasRenderingContext2D} [ctx] if passed, do a recalculation of the label size\n * @returns {rotationPoint} the point to rotate around and the angle in radians to rotate\n * @private\n */\n }, {\n key: \"_getRotation\",\n value: function _getRotation(ctx) {\n var viaNode = this.edgeType.getViaNode();\n var point = this.edgeType.getPoint(0.5, viaNode);\n if (ctx !== undefined) {\n this.labelModule.calculateLabelSize(ctx, this.selected, this.hover, point.x, point.y);\n }\n var ret = {\n x: point.x,\n y: this.labelModule.size.yLine,\n angle: 0\n };\n if (!this.labelModule.visible()) {\n return ret; // Don't even bother doing the atan2, there's nothing to draw\n }\n\n if (this.options.font.align === \"horizontal\") {\n return ret; // No need to calculate angle\n }\n\n var dy = this.from.y - this.to.y;\n var dx = this.from.x - this.to.x;\n var angle = Math.atan2(dy, dx); // radians\n\n // rotate so that label is readable\n if (angle < -1 && dx < 0 || angle > 0 && dx < 0) {\n angle += Math.PI;\n }\n ret.angle = angle;\n return ret;\n }\n\n /**\n * Get a point on a circle\n *\n * @param {number} x\n * @param {number} y\n * @param {number} radius\n * @param {number} angle\n * @returns {object} point\n * @private\n */\n }, {\n key: \"_pointOnCircle\",\n value: function _pointOnCircle(x, y, radius, angle) {\n return {\n x: x + radius * Math.cos(angle),\n y: y - radius * Math.sin(angle)\n };\n }\n\n /**\n * Sets selected state to true\n */\n }, {\n key: \"select\",\n value: function select() {\n this.selected = true;\n }\n\n /**\n * Sets selected state to false\n */\n }, {\n key: \"unselect\",\n value: function unselect() {\n this.selected = false;\n }\n\n /**\n * cleans all required things on delete\n *\n * @returns {*}\n */\n }, {\n key: \"cleanup\",\n value: function cleanup() {\n return this.edgeType.cleanup();\n }\n\n /**\n * Remove edge from the list and perform necessary cleanup.\n */\n }, {\n key: \"remove\",\n value: function remove() {\n this.cleanup();\n this.disconnect();\n delete this.body.edges[this.id];\n }\n\n /**\n * Check if both connecting nodes exist\n *\n * @returns {boolean}\n */\n }, {\n key: \"endPointsValid\",\n value: function endPointsValid() {\n return this.body.nodes[this.fromId] !== undefined && this.body.nodes[this.toId] !== undefined;\n }\n }], [{\n key: \"parseOptions\",\n value: function parseOptions(parentOptions, newOptions) {\n var allowDeletion = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var globalOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n var copyFromGlobals = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var fields = [\"endPointOffset\", \"arrowStrikethrough\", \"id\", \"from\", \"hidden\", \"hoverWidth\", \"labelHighlightBold\", \"length\", \"line\", \"opacity\", \"physics\", \"scaling\", \"selectionWidth\", \"selfReferenceSize\", \"selfReference\", \"to\", \"title\", \"value\", \"width\", \"font\", \"chosen\", \"widthConstraint\"];\n\n // only deep extend the items in the field array. These do not have shorthand.\n selectiveDeepExtend(fields, parentOptions, newOptions, allowDeletion);\n\n // Only use endPointOffset values (from and to) if it's valid values\n if (newOptions.endPointOffset !== undefined && newOptions.endPointOffset.from !== undefined) {\n if (_Number$isFinite(newOptions.endPointOffset.from)) {\n parentOptions.endPointOffset.from = newOptions.endPointOffset.from;\n } else {\n parentOptions.endPointOffset.from = globalOptions.endPointOffset.from !== undefined ? globalOptions.endPointOffset.from : 0;\n console.error(\"endPointOffset.from is not a valid number\");\n }\n }\n if (newOptions.endPointOffset !== undefined && newOptions.endPointOffset.to !== undefined) {\n if (_Number$isFinite(newOptions.endPointOffset.to)) {\n parentOptions.endPointOffset.to = newOptions.endPointOffset.to;\n } else {\n parentOptions.endPointOffset.to = globalOptions.endPointOffset.to !== undefined ? globalOptions.endPointOffset.to : 0;\n console.error(\"endPointOffset.to is not a valid number\");\n }\n }\n\n // Only copy label if it's a legal value.\n if (isValidLabel(newOptions.label)) {\n parentOptions.label = newOptions.label;\n } else if (!isValidLabel(parentOptions.label)) {\n parentOptions.label = undefined;\n }\n mergeOptions(parentOptions, newOptions, \"smooth\", globalOptions);\n mergeOptions(parentOptions, newOptions, \"shadow\", globalOptions);\n mergeOptions(parentOptions, newOptions, \"background\", globalOptions);\n if (newOptions.dashes !== undefined && newOptions.dashes !== null) {\n parentOptions.dashes = newOptions.dashes;\n } else if (allowDeletion === true && newOptions.dashes === null) {\n parentOptions.dashes = _Object$create$1(globalOptions.dashes); // this sets the pointer of the option back to the global option.\n }\n\n // set the scaling newOptions\n if (newOptions.scaling !== undefined && newOptions.scaling !== null) {\n if (newOptions.scaling.min !== undefined) {\n parentOptions.scaling.min = newOptions.scaling.min;\n }\n if (newOptions.scaling.max !== undefined) {\n parentOptions.scaling.max = newOptions.scaling.max;\n }\n mergeOptions(parentOptions.scaling, newOptions.scaling, \"label\", globalOptions.scaling);\n } else if (allowDeletion === true && newOptions.scaling === null) {\n parentOptions.scaling = _Object$create$1(globalOptions.scaling); // this sets the pointer of the option back to the global option.\n }\n\n // handle multiple input cases for arrows\n if (newOptions.arrows !== undefined && newOptions.arrows !== null) {\n if (typeof newOptions.arrows === \"string\") {\n var arrows = newOptions.arrows.toLowerCase();\n parentOptions.arrows.to.enabled = _indexOfInstanceProperty(arrows).call(arrows, \"to\") != -1;\n parentOptions.arrows.middle.enabled = _indexOfInstanceProperty(arrows).call(arrows, \"middle\") != -1;\n parentOptions.arrows.from.enabled = _indexOfInstanceProperty(arrows).call(arrows, \"from\") != -1;\n } else if (_typeof$1(newOptions.arrows) === \"object\") {\n mergeOptions(parentOptions.arrows, newOptions.arrows, \"to\", globalOptions.arrows);\n mergeOptions(parentOptions.arrows, newOptions.arrows, \"middle\", globalOptions.arrows);\n mergeOptions(parentOptions.arrows, newOptions.arrows, \"from\", globalOptions.arrows);\n } else {\n throw new Error(\"The arrow newOptions can only be an object or a string. Refer to the documentation. You used:\" + _JSON$stringify(newOptions.arrows));\n }\n } else if (allowDeletion === true && newOptions.arrows === null) {\n parentOptions.arrows = _Object$create$1(globalOptions.arrows); // this sets the pointer of the option back to the global option.\n }\n\n // handle multiple input cases for color\n if (newOptions.color !== undefined && newOptions.color !== null) {\n var fromColor = isString(newOptions.color) ? {\n color: newOptions.color,\n highlight: newOptions.color,\n hover: newOptions.color,\n inherit: false,\n opacity: 1\n } : newOptions.color;\n var toColor = parentOptions.color;\n\n // If passed, fill in values from default options - required in the case of no prototype bridging\n if (copyFromGlobals) {\n deepExtend(toColor, globalOptions.color, false, allowDeletion);\n } else {\n // Clear local properties - need to do it like this in order to retain prototype bridges\n for (var i in toColor) {\n if (Object.prototype.hasOwnProperty.call(toColor, i)) {\n delete toColor[i];\n }\n }\n }\n if (isString(toColor)) {\n toColor.color = toColor;\n toColor.highlight = toColor;\n toColor.hover = toColor;\n toColor.inherit = false;\n if (fromColor.opacity === undefined) {\n toColor.opacity = 1.0; // set default\n }\n } else {\n var colorsDefined = false;\n if (fromColor.color !== undefined) {\n toColor.color = fromColor.color;\n colorsDefined = true;\n }\n if (fromColor.highlight !== undefined) {\n toColor.highlight = fromColor.highlight;\n colorsDefined = true;\n }\n if (fromColor.hover !== undefined) {\n toColor.hover = fromColor.hover;\n colorsDefined = true;\n }\n if (fromColor.inherit !== undefined) {\n toColor.inherit = fromColor.inherit;\n }\n if (fromColor.opacity !== undefined) {\n toColor.opacity = Math.min(1, Math.max(0, fromColor.opacity));\n }\n if (colorsDefined === true) {\n toColor.inherit = false;\n } else {\n if (toColor.inherit === undefined) {\n toColor.inherit = \"from\"; // Set default\n }\n }\n }\n } else if (allowDeletion === true && newOptions.color === null) {\n parentOptions.color = bridgeObject(globalOptions.color); // set the object back to the global options\n }\n\n if (allowDeletion === true && newOptions.font === null) {\n parentOptions.font = bridgeObject(globalOptions.font); // set the object back to the global options\n }\n\n if (Object.prototype.hasOwnProperty.call(newOptions, \"selfReferenceSize\")) {\n console.warn(\"The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}\");\n parentOptions.selfReference.size = newOptions.selfReferenceSize;\n }\n }\n }]);\n return Edge;\n}();\n\n/**\n * Handler for Edges\n */\nvar EdgesHandler = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {Array.} images\n * @param {Array.} groups\n */\n function EdgesHandler(body, images, groups) {\n var _context,\n _this = this;\n _classCallCheck(this, EdgesHandler);\n this.body = body;\n this.images = images;\n this.groups = groups;\n\n // create the edge API in the body container\n this.body.functions.createEdge = _bindInstanceProperty$1(_context = this.create).call(_context, this);\n this.edgesListeners = {\n add: function add(event, params) {\n _this.add(params.items);\n },\n update: function update(event, params) {\n _this.update(params.items);\n },\n remove: function remove(event, params) {\n _this.remove(params.items);\n }\n };\n this.options = {};\n this.defaultOptions = {\n arrows: {\n to: {\n enabled: false,\n scaleFactor: 1,\n type: \"arrow\"\n },\n // boolean / {arrowScaleFactor:1} / {enabled: false, arrowScaleFactor:1}\n middle: {\n enabled: false,\n scaleFactor: 1,\n type: \"arrow\"\n },\n from: {\n enabled: false,\n scaleFactor: 1,\n type: \"arrow\"\n }\n },\n endPointOffset: {\n from: 0,\n to: 0\n },\n arrowStrikethrough: true,\n color: {\n color: \"#848484\",\n highlight: \"#848484\",\n hover: \"#848484\",\n inherit: \"from\",\n opacity: 1.0\n },\n dashes: false,\n font: {\n color: \"#343434\",\n size: 14,\n // px\n face: \"arial\",\n background: \"none\",\n strokeWidth: 2,\n // px\n strokeColor: \"#ffffff\",\n align: \"horizontal\",\n multi: false,\n vadjust: 0,\n bold: {\n mod: \"bold\"\n },\n boldital: {\n mod: \"bold italic\"\n },\n ital: {\n mod: \"italic\"\n },\n mono: {\n mod: \"\",\n size: 15,\n // px\n face: \"courier new\",\n vadjust: 2\n }\n },\n hidden: false,\n hoverWidth: 1.5,\n label: undefined,\n labelHighlightBold: true,\n length: undefined,\n physics: true,\n scaling: {\n min: 1,\n max: 15,\n label: {\n enabled: true,\n min: 14,\n max: 30,\n maxVisible: 30,\n drawThreshold: 5\n },\n customScalingFunction: function customScalingFunction(min, max, total, value) {\n if (max === min) {\n return 0.5;\n } else {\n var scale = 1 / (max - min);\n return Math.max(0, (value - min) * scale);\n }\n }\n },\n selectionWidth: 1.5,\n selfReference: {\n size: 20,\n angle: Math.PI / 4,\n renderBehindTheNode: true\n },\n shadow: {\n enabled: false,\n color: \"rgba(0,0,0,0.5)\",\n size: 10,\n x: 5,\n y: 5\n },\n background: {\n enabled: false,\n color: \"rgba(111,111,111,1)\",\n size: 10,\n dashes: false\n },\n smooth: {\n enabled: true,\n type: \"dynamic\",\n forceDirection: \"none\",\n roundness: 0.5\n },\n title: undefined,\n width: 1,\n value: undefined\n };\n deepExtend(this.options, this.defaultOptions);\n this.bindEventListeners();\n }\n\n /**\n * Binds event listeners\n */\n _createClass(EdgesHandler, [{\n key: \"bindEventListeners\",\n value: function bindEventListeners() {\n var _this2 = this,\n _context2,\n _context3;\n // this allows external modules to force all dynamic curves to turn static.\n this.body.emitter.on(\"_forceDisableDynamicCurves\", function (type) {\n var emit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (type === \"dynamic\") {\n type = \"continuous\";\n }\n var dataChanged = false;\n for (var edgeId in _this2.body.edges) {\n if (Object.prototype.hasOwnProperty.call(_this2.body.edges, edgeId)) {\n var edge = _this2.body.edges[edgeId];\n var edgeData = _this2.body.data.edges.get(edgeId);\n\n // only forcibly remove the smooth curve if the data has been set of the edge has the smooth curves defined.\n // this is because a change in the global would not affect these curves.\n if (edgeData != null) {\n var smoothOptions = edgeData.smooth;\n if (smoothOptions !== undefined) {\n if (smoothOptions.enabled === true && smoothOptions.type === \"dynamic\") {\n if (type === undefined) {\n edge.setOptions({\n smooth: false\n });\n } else {\n edge.setOptions({\n smooth: {\n type: type\n }\n });\n }\n dataChanged = true;\n }\n }\n }\n }\n }\n if (emit === true && dataChanged === true) {\n _this2.body.emitter.emit(\"_dataChanged\");\n }\n });\n\n // this is called when options of EXISTING nodes or edges have changed.\n //\n // NOTE: Not true, called when options have NOT changed, for both existing as well as new nodes.\n // See update() for logic.\n // TODO: Verify and examine the consequences of this. It might still trigger when\n // non-option fields have changed, but then reconnecting edges is still useless.\n // Alternatively, it might also be called when edges are removed.\n //\n this.body.emitter.on(\"_dataUpdated\", function () {\n _this2.reconnectEdges();\n });\n\n // refresh the edges. Used when reverting from hierarchical layout\n this.body.emitter.on(\"refreshEdges\", _bindInstanceProperty$1(_context2 = this.refresh).call(_context2, this));\n this.body.emitter.on(\"refresh\", _bindInstanceProperty$1(_context3 = this.refresh).call(_context3, this));\n this.body.emitter.on(\"destroy\", function () {\n forEach$5(_this2.edgesListeners, function (callback, event) {\n if (_this2.body.data.edges) _this2.body.data.edges.off(event, callback);\n });\n delete _this2.body.functions.createEdge;\n delete _this2.edgesListeners.add;\n delete _this2.edgesListeners.update;\n delete _this2.edgesListeners.remove;\n delete _this2.edgesListeners;\n });\n }\n\n /**\n *\n * @param {object} options\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options !== undefined) {\n // use the parser from the Edge class to fill in all shorthand notations\n Edge.parseOptions(this.options, options, true, this.defaultOptions, true);\n\n // update smooth settings in all edges\n var dataChanged = false;\n if (options.smooth !== undefined) {\n for (var edgeId in this.body.edges) {\n if (Object.prototype.hasOwnProperty.call(this.body.edges, edgeId)) {\n dataChanged = this.body.edges[edgeId].updateEdgeType() || dataChanged;\n }\n }\n }\n\n // update fonts in all edges\n if (options.font !== undefined) {\n for (var _edgeId in this.body.edges) {\n if (Object.prototype.hasOwnProperty.call(this.body.edges, _edgeId)) {\n this.body.edges[_edgeId].updateLabelModule();\n }\n }\n }\n\n // update the state of the variables if needed\n if (options.hidden !== undefined || options.physics !== undefined || dataChanged === true) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n }\n\n /**\n * Load edges by reading the data table\n *\n * @param {Array | DataSet | DataView} edges The data containing the edges.\n * @param {boolean} [doNotEmit=false] - Suppress data changed event.\n * @private\n */\n }, {\n key: \"setData\",\n value: function setData(edges) {\n var _this3 = this;\n var doNotEmit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var oldEdgesData = this.body.data.edges;\n if (isDataViewLike(\"id\", edges)) {\n this.body.data.edges = edges;\n } else if (_Array$isArray(edges)) {\n this.body.data.edges = new DataSet();\n this.body.data.edges.add(edges);\n } else if (!edges) {\n this.body.data.edges = new DataSet();\n } else {\n throw new TypeError(\"Array or DataSet expected\");\n }\n\n // TODO: is this null or undefined or false?\n if (oldEdgesData) {\n // unsubscribe from old dataset\n forEach$5(this.edgesListeners, function (callback, event) {\n oldEdgesData.off(event, callback);\n });\n }\n\n // remove drawn edges\n this.body.edges = {};\n\n // TODO: is this null or undefined or false?\n if (this.body.data.edges) {\n // subscribe to new dataset\n forEach$5(this.edgesListeners, function (callback, event) {\n _this3.body.data.edges.on(event, callback);\n });\n\n // draw all new nodes\n var ids = this.body.data.edges.getIds();\n this.add(ids, true);\n }\n this.body.emitter.emit(\"_adjustEdgesForHierarchicalLayout\");\n if (doNotEmit === false) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n\n /**\n * Add edges\n *\n * @param {number[] | string[]} ids\n * @param {boolean} [doNotEmit=false]\n * @private\n */\n }, {\n key: \"add\",\n value: function add(ids) {\n var doNotEmit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var edges = this.body.edges;\n var edgesData = this.body.data.edges;\n for (var i = 0; i < ids.length; i++) {\n var id = ids[i];\n var oldEdge = edges[id];\n if (oldEdge) {\n oldEdge.disconnect();\n }\n var data = edgesData.get(id, {\n showInternalIds: true\n });\n edges[id] = this.create(data);\n }\n this.body.emitter.emit(\"_adjustEdgesForHierarchicalLayout\");\n if (doNotEmit === false) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n\n /**\n * Update existing edges, or create them when not yet existing\n *\n * @param {number[] | string[]} ids\n * @private\n */\n }, {\n key: \"update\",\n value: function update(ids) {\n var edges = this.body.edges;\n var edgesData = this.body.data.edges;\n var dataChanged = false;\n for (var i = 0; i < ids.length; i++) {\n var id = ids[i];\n var data = edgesData.get(id);\n var edge = edges[id];\n if (edge !== undefined) {\n // update edge\n edge.disconnect();\n dataChanged = edge.setOptions(data) || dataChanged; // if a support node is added, data can be changed.\n edge.connect();\n } else {\n // create edge\n this.body.edges[id] = this.create(data);\n dataChanged = true;\n }\n }\n if (dataChanged === true) {\n this.body.emitter.emit(\"_adjustEdgesForHierarchicalLayout\");\n this.body.emitter.emit(\"_dataChanged\");\n } else {\n this.body.emitter.emit(\"_dataUpdated\");\n }\n }\n\n /**\n * Remove existing edges. Non existing ids will be ignored\n *\n * @param {number[] | string[]} ids\n * @param {boolean} [emit=true]\n * @private\n */\n }, {\n key: \"remove\",\n value: function remove(ids) {\n var emit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (ids.length === 0) return; // early out\n\n var edges = this.body.edges;\n forEach$5(ids, function (id) {\n var edge = edges[id];\n if (edge !== undefined) {\n edge.remove();\n }\n });\n if (emit) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n\n /**\n * Refreshes Edge Handler\n */\n }, {\n key: \"refresh\",\n value: function refresh() {\n var _this4 = this;\n forEach$5(this.body.edges, function (edge, edgeId) {\n var data = _this4.body.data.edges.get(edgeId);\n if (data !== undefined) {\n edge.setOptions(data);\n }\n });\n }\n\n /**\n *\n * @param {object} properties\n * @returns {Edge}\n */\n }, {\n key: \"create\",\n value: function create(properties) {\n return new Edge(properties, this.body, this.images, this.options, this.defaultOptions);\n }\n\n /**\n * Reconnect all edges\n *\n * @private\n */\n }, {\n key: \"reconnectEdges\",\n value: function reconnectEdges() {\n var id;\n var nodes = this.body.nodes;\n var edges = this.body.edges;\n for (id in nodes) {\n if (Object.prototype.hasOwnProperty.call(nodes, id)) {\n nodes[id].edges = [];\n }\n }\n for (id in edges) {\n if (Object.prototype.hasOwnProperty.call(edges, id)) {\n var edge = edges[id];\n edge.from = null;\n edge.to = null;\n edge.connect();\n }\n }\n }\n\n /**\n *\n * @param {Edge.id} edgeId\n * @returns {Array}\n */\n }, {\n key: \"getConnectedNodes\",\n value: function getConnectedNodes(edgeId) {\n var nodeList = [];\n if (this.body.edges[edgeId] !== undefined) {\n var edge = this.body.edges[edgeId];\n if (edge.fromId !== undefined) {\n nodeList.push(edge.fromId);\n }\n if (edge.toId !== undefined) {\n nodeList.push(edge.toId);\n }\n }\n return nodeList;\n }\n\n /**\n * There is no direct relation between the nodes and the edges DataSet,\n * so the right place to do call this is in the handler for event `_dataUpdated`.\n */\n }, {\n key: \"_updateState\",\n value: function _updateState() {\n this._addMissingEdges();\n this._removeInvalidEdges();\n }\n\n /**\n * Scan for missing nodes and remove corresponding edges, if any.\n *\n * @private\n */\n }, {\n key: \"_removeInvalidEdges\",\n value: function _removeInvalidEdges() {\n var _this5 = this;\n var edgesToDelete = [];\n forEach$5(this.body.edges, function (edge, id) {\n var toNode = _this5.body.nodes[edge.toId];\n var fromNode = _this5.body.nodes[edge.fromId];\n\n // Skip clustering edges here, let the Clustering module handle those\n if (toNode !== undefined && toNode.isCluster === true || fromNode !== undefined && fromNode.isCluster === true) {\n return;\n }\n if (toNode === undefined || fromNode === undefined) {\n edgesToDelete.push(id);\n }\n });\n this.remove(edgesToDelete, false);\n }\n\n /**\n * add all edges from dataset that are not in the cached state\n *\n * @private\n */\n }, {\n key: \"_addMissingEdges\",\n value: function _addMissingEdges() {\n var edgesData = this.body.data.edges;\n if (edgesData === undefined || edgesData === null) {\n return; // No edges DataSet yet; can happen on startup\n }\n\n var edges = this.body.edges;\n var addIds = [];\n _forEachInstanceProperty(edgesData).call(edgesData, function (edgeData, edgeId) {\n var edge = edges[edgeId];\n if (edge === undefined) {\n addIds.push(edgeId);\n }\n });\n this.add(addIds, true);\n }\n }]);\n return EdgesHandler;\n}();\n\n/**\n * Barnes Hut Solver\n */\nvar BarnesHutSolver = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {{physicsNodeIndices: Array, physicsEdgeIndices: Array, forces: {}, velocities: {}}} physicsBody\n * @param {object} options\n */\n function BarnesHutSolver(body, physicsBody, options) {\n _classCallCheck(this, BarnesHutSolver);\n this.body = body;\n this.physicsBody = physicsBody;\n this.barnesHutTree;\n this.setOptions(options);\n this._rng = Alea(\"BARNES HUT SOLVER\");\n\n // debug: show grid\n // this.body.emitter.on(\"afterDrawing\", (ctx) => {this._debug(ctx,'#ff0000')})\n }\n\n /**\n *\n * @param {object} options\n */\n _createClass(BarnesHutSolver, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n this.options = options;\n this.thetaInversed = 1 / this.options.theta;\n\n // if 1 then min distance = 0.5, if 0.5 then min distance = 0.5 + 0.5*node.shape.radius\n this.overlapAvoidanceFactor = 1 - Math.max(0, Math.min(1, this.options.avoidOverlap));\n }\n\n /**\n * This function calculates the forces the nodes apply on each other based on a gravitational model.\n * The Barnes Hut method is used to speed up this N-body simulation.\n *\n * @private\n */\n }, {\n key: \"solve\",\n value: function solve() {\n if (this.options.gravitationalConstant !== 0 && this.physicsBody.physicsNodeIndices.length > 0) {\n var node;\n var nodes = this.body.nodes;\n var nodeIndices = this.physicsBody.physicsNodeIndices;\n var nodeCount = nodeIndices.length;\n\n // create the tree\n var barnesHutTree = this._formBarnesHutTree(nodes, nodeIndices);\n\n // for debugging\n this.barnesHutTree = barnesHutTree;\n\n // place the nodes one by one recursively\n for (var i = 0; i < nodeCount; i++) {\n node = nodes[nodeIndices[i]];\n if (node.options.mass > 0) {\n // starting with root is irrelevant, it never passes the BarnesHutSolver condition\n this._getForceContributions(barnesHutTree.root, node);\n }\n }\n }\n }\n\n /**\n * @param {object} parentBranch\n * @param {Node} node\n * @private\n */\n }, {\n key: \"_getForceContributions\",\n value: function _getForceContributions(parentBranch, node) {\n this._getForceContribution(parentBranch.children.NW, node);\n this._getForceContribution(parentBranch.children.NE, node);\n this._getForceContribution(parentBranch.children.SW, node);\n this._getForceContribution(parentBranch.children.SE, node);\n }\n\n /**\n * This function traverses the barnesHutTree. It checks when it can approximate distant nodes with their center of mass.\n * If a region contains a single node, we check if it is not itself, then we apply the force.\n *\n * @param {object} parentBranch\n * @param {Node} node\n * @private\n */\n }, {\n key: \"_getForceContribution\",\n value: function _getForceContribution(parentBranch, node) {\n // we get no force contribution from an empty region\n if (parentBranch.childrenCount > 0) {\n // get the distance from the center of mass to the node.\n var dx = parentBranch.centerOfMass.x - node.x;\n var dy = parentBranch.centerOfMass.y - node.y;\n var distance = Math.sqrt(dx * dx + dy * dy);\n\n // BarnesHutSolver condition\n // original condition : s/d < theta = passed === d/s > 1/theta = passed\n // calcSize = 1/s --> d * 1/s > 1/theta = passed\n if (distance * parentBranch.calcSize > this.thetaInversed) {\n this._calculateForces(distance, dx, dy, node, parentBranch);\n } else {\n // Did not pass the condition, go into children if available\n if (parentBranch.childrenCount === 4) {\n this._getForceContributions(parentBranch, node);\n } else {\n // parentBranch must have only one node, if it was empty we wouldnt be here\n if (parentBranch.children.data.id != node.id) {\n // if it is not self\n this._calculateForces(distance, dx, dy, node, parentBranch);\n }\n }\n }\n }\n }\n\n /**\n * Calculate the forces based on the distance.\n *\n * @param {number} distance\n * @param {number} dx\n * @param {number} dy\n * @param {Node} node\n * @param {object} parentBranch\n * @private\n */\n }, {\n key: \"_calculateForces\",\n value: function _calculateForces(distance, dx, dy, node, parentBranch) {\n if (distance === 0) {\n distance = 0.1;\n dx = distance;\n }\n if (this.overlapAvoidanceFactor < 1 && node.shape.radius) {\n distance = Math.max(0.1 + this.overlapAvoidanceFactor * node.shape.radius, distance - node.shape.radius);\n }\n\n // the dividing by the distance cubed instead of squared allows us to get the fx and fy components without sines and cosines\n // it is shorthand for gravityforce with distance squared and fx = dx/distance * gravityForce\n var gravityForce = this.options.gravitationalConstant * parentBranch.mass * node.options.mass / Math.pow(distance, 3);\n var fx = dx * gravityForce;\n var fy = dy * gravityForce;\n this.physicsBody.forces[node.id].x += fx;\n this.physicsBody.forces[node.id].y += fy;\n }\n\n /**\n * This function constructs the barnesHut tree recursively. It creates the root, splits it and starts placing the nodes.\n *\n * @param {Array.} nodes\n * @param {Array.} nodeIndices\n * @returns {{root: {centerOfMass: {x: number, y: number}, mass: number, range: {minX: number, maxX: number, minY: number, maxY: number}, size: number, calcSize: number, children: {data: null}, maxWidth: number, level: number, childrenCount: number}}} BarnesHutTree\n * @private\n */\n }, {\n key: \"_formBarnesHutTree\",\n value: function _formBarnesHutTree(nodes, nodeIndices) {\n var node;\n var nodeCount = nodeIndices.length;\n var minX = nodes[nodeIndices[0]].x;\n var minY = nodes[nodeIndices[0]].y;\n var maxX = nodes[nodeIndices[0]].x;\n var maxY = nodes[nodeIndices[0]].y;\n\n // get the range of the nodes\n for (var i = 1; i < nodeCount; i++) {\n var _node = nodes[nodeIndices[i]];\n var x = _node.x;\n var y = _node.y;\n if (_node.options.mass > 0) {\n if (x < minX) {\n minX = x;\n }\n if (x > maxX) {\n maxX = x;\n }\n if (y < minY) {\n minY = y;\n }\n if (y > maxY) {\n maxY = y;\n }\n }\n }\n // make the range a square\n var sizeDiff = Math.abs(maxX - minX) - Math.abs(maxY - minY); // difference between X and Y\n if (sizeDiff > 0) {\n minY -= 0.5 * sizeDiff;\n maxY += 0.5 * sizeDiff;\n } // xSize > ySize\n else {\n minX += 0.5 * sizeDiff;\n maxX -= 0.5 * sizeDiff;\n } // xSize < ySize\n\n var minimumTreeSize = 1e-5;\n var rootSize = Math.max(minimumTreeSize, Math.abs(maxX - minX));\n var halfRootSize = 0.5 * rootSize;\n var centerX = 0.5 * (minX + maxX),\n centerY = 0.5 * (minY + maxY);\n\n // construct the barnesHutTree\n var barnesHutTree = {\n root: {\n centerOfMass: {\n x: 0,\n y: 0\n },\n mass: 0,\n range: {\n minX: centerX - halfRootSize,\n maxX: centerX + halfRootSize,\n minY: centerY - halfRootSize,\n maxY: centerY + halfRootSize\n },\n size: rootSize,\n calcSize: 1 / rootSize,\n children: {\n data: null\n },\n maxWidth: 0,\n level: 0,\n childrenCount: 4\n }\n };\n this._splitBranch(barnesHutTree.root);\n\n // place the nodes one by one recursively\n for (var _i = 0; _i < nodeCount; _i++) {\n node = nodes[nodeIndices[_i]];\n if (node.options.mass > 0) {\n this._placeInTree(barnesHutTree.root, node);\n }\n }\n\n // make global\n return barnesHutTree;\n }\n\n /**\n * this updates the mass of a branch. this is increased by adding a node.\n *\n * @param {object} parentBranch\n * @param {Node} node\n * @private\n */\n }, {\n key: \"_updateBranchMass\",\n value: function _updateBranchMass(parentBranch, node) {\n var centerOfMass = parentBranch.centerOfMass;\n var totalMass = parentBranch.mass + node.options.mass;\n var totalMassInv = 1 / totalMass;\n centerOfMass.x = centerOfMass.x * parentBranch.mass + node.x * node.options.mass;\n centerOfMass.x *= totalMassInv;\n centerOfMass.y = centerOfMass.y * parentBranch.mass + node.y * node.options.mass;\n centerOfMass.y *= totalMassInv;\n parentBranch.mass = totalMass;\n var biggestSize = Math.max(Math.max(node.height, node.radius), node.width);\n parentBranch.maxWidth = parentBranch.maxWidth < biggestSize ? biggestSize : parentBranch.maxWidth;\n }\n\n /**\n * determine in which branch the node will be placed.\n *\n * @param {object} parentBranch\n * @param {Node} node\n * @param {boolean} skipMassUpdate\n * @private\n */\n }, {\n key: \"_placeInTree\",\n value: function _placeInTree(parentBranch, node, skipMassUpdate) {\n if (skipMassUpdate != true || skipMassUpdate === undefined) {\n // update the mass of the branch.\n this._updateBranchMass(parentBranch, node);\n }\n var range = parentBranch.children.NW.range;\n var region;\n if (range.maxX > node.x) {\n // in NW or SW\n if (range.maxY > node.y) {\n region = \"NW\";\n } else {\n region = \"SW\";\n }\n } else {\n // in NE or SE\n if (range.maxY > node.y) {\n region = \"NE\";\n } else {\n region = \"SE\";\n }\n }\n this._placeInRegion(parentBranch, node, region);\n }\n\n /**\n * actually place the node in a region (or branch)\n *\n * @param {object} parentBranch\n * @param {Node} node\n * @param {'NW'| 'NE' | 'SW' | 'SE'} region\n * @private\n */\n }, {\n key: \"_placeInRegion\",\n value: function _placeInRegion(parentBranch, node, region) {\n var children = parentBranch.children[region];\n switch (children.childrenCount) {\n case 0:\n // place node here\n children.children.data = node;\n children.childrenCount = 1;\n this._updateBranchMass(children, node);\n break;\n case 1:\n // convert into children\n // if there are two nodes exactly overlapping (on init, on opening of cluster etc.)\n // we move one node a little bit and we do not put it in the tree.\n if (children.children.data.x === node.x && children.children.data.y === node.y) {\n node.x += this._rng();\n node.y += this._rng();\n } else {\n this._splitBranch(children);\n this._placeInTree(children, node);\n }\n break;\n case 4:\n // place in branch\n this._placeInTree(children, node);\n break;\n }\n }\n\n /**\n * this function splits a branch into 4 sub branches. If the branch contained a node, we place it in the subbranch\n * after the split is complete.\n *\n * @param {object} parentBranch\n * @private\n */\n }, {\n key: \"_splitBranch\",\n value: function _splitBranch(parentBranch) {\n // if the branch is shaded with a node, replace the node in the new subset.\n var containedNode = null;\n if (parentBranch.childrenCount === 1) {\n containedNode = parentBranch.children.data;\n parentBranch.mass = 0;\n parentBranch.centerOfMass.x = 0;\n parentBranch.centerOfMass.y = 0;\n }\n parentBranch.childrenCount = 4;\n parentBranch.children.data = null;\n this._insertRegion(parentBranch, \"NW\");\n this._insertRegion(parentBranch, \"NE\");\n this._insertRegion(parentBranch, \"SW\");\n this._insertRegion(parentBranch, \"SE\");\n if (containedNode != null) {\n this._placeInTree(parentBranch, containedNode);\n }\n }\n\n /**\n * This function subdivides the region into four new segments.\n * Specifically, this inserts a single new segment.\n * It fills the children section of the parentBranch\n *\n * @param {object} parentBranch\n * @param {'NW'| 'NE' | 'SW' | 'SE'} region\n * @private\n */\n }, {\n key: \"_insertRegion\",\n value: function _insertRegion(parentBranch, region) {\n var minX, maxX, minY, maxY;\n var childSize = 0.5 * parentBranch.size;\n switch (region) {\n case \"NW\":\n minX = parentBranch.range.minX;\n maxX = parentBranch.range.minX + childSize;\n minY = parentBranch.range.minY;\n maxY = parentBranch.range.minY + childSize;\n break;\n case \"NE\":\n minX = parentBranch.range.minX + childSize;\n maxX = parentBranch.range.maxX;\n minY = parentBranch.range.minY;\n maxY = parentBranch.range.minY + childSize;\n break;\n case \"SW\":\n minX = parentBranch.range.minX;\n maxX = parentBranch.range.minX + childSize;\n minY = parentBranch.range.minY + childSize;\n maxY = parentBranch.range.maxY;\n break;\n case \"SE\":\n minX = parentBranch.range.minX + childSize;\n maxX = parentBranch.range.maxX;\n minY = parentBranch.range.minY + childSize;\n maxY = parentBranch.range.maxY;\n break;\n }\n parentBranch.children[region] = {\n centerOfMass: {\n x: 0,\n y: 0\n },\n mass: 0,\n range: {\n minX: minX,\n maxX: maxX,\n minY: minY,\n maxY: maxY\n },\n size: 0.5 * parentBranch.size,\n calcSize: 2 * parentBranch.calcSize,\n children: {\n data: null\n },\n maxWidth: 0,\n level: parentBranch.level + 1,\n childrenCount: 0\n };\n }\n\n //--------------------------- DEBUGGING BELOW ---------------------------//\n\n /**\n * This function is for debugging purposed, it draws the tree.\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {string} color\n * @private\n */\n }, {\n key: \"_debug\",\n value: function _debug(ctx, color) {\n if (this.barnesHutTree !== undefined) {\n ctx.lineWidth = 1;\n this._drawBranch(this.barnesHutTree.root, ctx, color);\n }\n }\n\n /**\n * This function is for debugging purposes. It draws the branches recursively.\n *\n * @param {object} branch\n * @param {CanvasRenderingContext2D} ctx\n * @param {string} color\n * @private\n */\n }, {\n key: \"_drawBranch\",\n value: function _drawBranch(branch, ctx, color) {\n if (color === undefined) {\n color = \"#FF0000\";\n }\n if (branch.childrenCount === 4) {\n this._drawBranch(branch.children.NW, ctx);\n this._drawBranch(branch.children.NE, ctx);\n this._drawBranch(branch.children.SE, ctx);\n this._drawBranch(branch.children.SW, ctx);\n }\n ctx.strokeStyle = color;\n ctx.beginPath();\n ctx.moveTo(branch.range.minX, branch.range.minY);\n ctx.lineTo(branch.range.maxX, branch.range.minY);\n ctx.stroke();\n ctx.beginPath();\n ctx.moveTo(branch.range.maxX, branch.range.minY);\n ctx.lineTo(branch.range.maxX, branch.range.maxY);\n ctx.stroke();\n ctx.beginPath();\n ctx.moveTo(branch.range.maxX, branch.range.maxY);\n ctx.lineTo(branch.range.minX, branch.range.maxY);\n ctx.stroke();\n ctx.beginPath();\n ctx.moveTo(branch.range.minX, branch.range.maxY);\n ctx.lineTo(branch.range.minX, branch.range.minY);\n ctx.stroke();\n\n /*\n if (branch.mass > 0) {\n ctx.circle(branch.centerOfMass.x, branch.centerOfMass.y, 3*branch.mass);\n ctx.stroke();\n }\n */\n }\n }]);\n return BarnesHutSolver;\n}();\n\n/**\n * Repulsion Solver\n */\nvar RepulsionSolver = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {{physicsNodeIndices: Array, physicsEdgeIndices: Array, forces: {}, velocities: {}}} physicsBody\n * @param {object} options\n */\n function RepulsionSolver(body, physicsBody, options) {\n _classCallCheck(this, RepulsionSolver);\n this._rng = Alea(\"REPULSION SOLVER\");\n this.body = body;\n this.physicsBody = physicsBody;\n this.setOptions(options);\n }\n\n /**\n *\n * @param {object} options\n */\n _createClass(RepulsionSolver, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n this.options = options;\n }\n\n /**\n * Calculate the forces the nodes apply on each other based on a repulsion field.\n * This field is linearly approximated.\n *\n * @private\n */\n }, {\n key: \"solve\",\n value: function solve() {\n var dx, dy, distance, fx, fy, repulsingForce, node1, node2;\n var nodes = this.body.nodes;\n var nodeIndices = this.physicsBody.physicsNodeIndices;\n var forces = this.physicsBody.forces;\n\n // repulsing forces between nodes\n var nodeDistance = this.options.nodeDistance;\n\n // approximation constants\n var a = -2 / 3 / nodeDistance;\n var b = 4 / 3;\n\n // we loop from i over all but the last entree in the array\n // j loops from i+1 to the last. This way we do not double count any of the indices, nor i === j\n for (var i = 0; i < nodeIndices.length - 1; i++) {\n node1 = nodes[nodeIndices[i]];\n for (var j = i + 1; j < nodeIndices.length; j++) {\n node2 = nodes[nodeIndices[j]];\n dx = node2.x - node1.x;\n dy = node2.y - node1.y;\n distance = Math.sqrt(dx * dx + dy * dy);\n\n // same condition as BarnesHutSolver, making sure nodes are never 100% overlapping.\n if (distance === 0) {\n distance = 0.1 * this._rng();\n dx = distance;\n }\n if (distance < 2 * nodeDistance) {\n if (distance < 0.5 * nodeDistance) {\n repulsingForce = 1.0;\n } else {\n repulsingForce = a * distance + b; // linear approx of 1 / (1 + Math.exp((distance / nodeDistance - 1) * steepness))\n }\n\n repulsingForce = repulsingForce / distance;\n fx = dx * repulsingForce;\n fy = dy * repulsingForce;\n forces[node1.id].x -= fx;\n forces[node1.id].y -= fy;\n forces[node2.id].x += fx;\n forces[node2.id].y += fy;\n }\n }\n }\n }\n }]);\n return RepulsionSolver;\n}();\n\n/**\n * Hierarchical Repulsion Solver\n */\nvar HierarchicalRepulsionSolver = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {{physicsNodeIndices: Array, physicsEdgeIndices: Array, forces: {}, velocities: {}}} physicsBody\n * @param {object} options\n */\n function HierarchicalRepulsionSolver(body, physicsBody, options) {\n _classCallCheck(this, HierarchicalRepulsionSolver);\n this.body = body;\n this.physicsBody = physicsBody;\n this.setOptions(options);\n }\n\n /**\n *\n * @param {object} options\n */\n _createClass(HierarchicalRepulsionSolver, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n this.options = options;\n this.overlapAvoidanceFactor = Math.max(0, Math.min(1, this.options.avoidOverlap || 0));\n }\n\n /**\n * Calculate the forces the nodes apply on each other based on a repulsion field.\n * This field is linearly approximated.\n *\n * @private\n */\n }, {\n key: \"solve\",\n value: function solve() {\n var nodes = this.body.nodes;\n var nodeIndices = this.physicsBody.physicsNodeIndices;\n var forces = this.physicsBody.forces;\n\n // repulsing forces between nodes\n var nodeDistance = this.options.nodeDistance;\n\n // we loop from i over all but the last entree in the array\n // j loops from i+1 to the last. This way we do not double count any of the indices, nor i === j\n for (var i = 0; i < nodeIndices.length - 1; i++) {\n var node1 = nodes[nodeIndices[i]];\n for (var j = i + 1; j < nodeIndices.length; j++) {\n var node2 = nodes[nodeIndices[j]];\n\n // nodes only affect nodes on their level\n if (node1.level === node2.level) {\n var theseNodesDistance = nodeDistance + this.overlapAvoidanceFactor * ((node1.shape.radius || 0) / 2 + (node2.shape.radius || 0) / 2);\n var dx = node2.x - node1.x;\n var dy = node2.y - node1.y;\n var distance = Math.sqrt(dx * dx + dy * dy);\n var steepness = 0.05;\n var repulsingForce = void 0;\n if (distance < theseNodesDistance) {\n repulsingForce = -Math.pow(steepness * distance, 2) + Math.pow(steepness * theseNodesDistance, 2);\n } else {\n repulsingForce = 0;\n }\n // normalize force with\n if (distance !== 0) {\n repulsingForce = repulsingForce / distance;\n }\n var fx = dx * repulsingForce;\n var fy = dy * repulsingForce;\n forces[node1.id].x -= fx;\n forces[node1.id].y -= fy;\n forces[node2.id].x += fx;\n forces[node2.id].y += fy;\n }\n }\n }\n }\n }]);\n return HierarchicalRepulsionSolver;\n}();\n\n/**\n * Spring Solver\n */\nvar SpringSolver = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {{physicsNodeIndices: Array, physicsEdgeIndices: Array, forces: {}, velocities: {}}} physicsBody\n * @param {object} options\n */\n function SpringSolver(body, physicsBody, options) {\n _classCallCheck(this, SpringSolver);\n this.body = body;\n this.physicsBody = physicsBody;\n this.setOptions(options);\n }\n\n /**\n *\n * @param {object} options\n */\n _createClass(SpringSolver, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n this.options = options;\n }\n\n /**\n * This function calculates the springforces on the nodes, accounting for the support nodes.\n *\n * @private\n */\n }, {\n key: \"solve\",\n value: function solve() {\n var edgeLength, edge;\n var edgeIndices = this.physicsBody.physicsEdgeIndices;\n var edges = this.body.edges;\n var node1, node2, node3;\n\n // forces caused by the edges, modelled as springs\n for (var i = 0; i < edgeIndices.length; i++) {\n edge = edges[edgeIndices[i]];\n if (edge.connected === true && edge.toId !== edge.fromId) {\n // only calculate forces if nodes are in the same sector\n if (this.body.nodes[edge.toId] !== undefined && this.body.nodes[edge.fromId] !== undefined) {\n if (edge.edgeType.via !== undefined) {\n edgeLength = edge.options.length === undefined ? this.options.springLength : edge.options.length;\n node1 = edge.to;\n node2 = edge.edgeType.via;\n node3 = edge.from;\n this._calculateSpringForce(node1, node2, 0.5 * edgeLength);\n this._calculateSpringForce(node2, node3, 0.5 * edgeLength);\n } else {\n // the * 1.5 is here so the edge looks as large as a smooth edge. It does not initially because the smooth edges use\n // the support nodes which exert a repulsive force on the to and from nodes, making the edge appear larger.\n edgeLength = edge.options.length === undefined ? this.options.springLength * 1.5 : edge.options.length;\n this._calculateSpringForce(edge.from, edge.to, edgeLength);\n }\n }\n }\n }\n }\n\n /**\n * This is the code actually performing the calculation for the function above.\n *\n * @param {Node} node1\n * @param {Node} node2\n * @param {number} edgeLength\n * @private\n */\n }, {\n key: \"_calculateSpringForce\",\n value: function _calculateSpringForce(node1, node2, edgeLength) {\n var dx = node1.x - node2.x;\n var dy = node1.y - node2.y;\n var distance = Math.max(Math.sqrt(dx * dx + dy * dy), 0.01);\n\n // the 1/distance is so the fx and fy can be calculated without sine or cosine.\n var springForce = this.options.springConstant * (edgeLength - distance) / distance;\n var fx = dx * springForce;\n var fy = dy * springForce;\n\n // handle the case where one node is not part of the physcis\n if (this.physicsBody.forces[node1.id] !== undefined) {\n this.physicsBody.forces[node1.id].x += fx;\n this.physicsBody.forces[node1.id].y += fy;\n }\n if (this.physicsBody.forces[node2.id] !== undefined) {\n this.physicsBody.forces[node2.id].x -= fx;\n this.physicsBody.forces[node2.id].y -= fy;\n }\n }\n }]);\n return SpringSolver;\n}();\n\n/**\n * Hierarchical Spring Solver\n */\nvar HierarchicalSpringSolver = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {{physicsNodeIndices: Array, physicsEdgeIndices: Array, forces: {}, velocities: {}}} physicsBody\n * @param {object} options\n */\n function HierarchicalSpringSolver(body, physicsBody, options) {\n _classCallCheck(this, HierarchicalSpringSolver);\n this.body = body;\n this.physicsBody = physicsBody;\n this.setOptions(options);\n }\n\n /**\n *\n * @param {object} options\n */\n _createClass(HierarchicalSpringSolver, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n this.options = options;\n }\n\n /**\n * This function calculates the springforces on the nodes, accounting for the support nodes.\n *\n * @private\n */\n }, {\n key: \"solve\",\n value: function solve() {\n var edgeLength, edge;\n var dx, dy, fx, fy, springForce, distance;\n var edges = this.body.edges;\n var factor = 0.5;\n var edgeIndices = this.physicsBody.physicsEdgeIndices;\n var nodeIndices = this.physicsBody.physicsNodeIndices;\n var forces = this.physicsBody.forces;\n\n // initialize the spring force counters\n for (var i = 0; i < nodeIndices.length; i++) {\n var nodeId = nodeIndices[i];\n forces[nodeId].springFx = 0;\n forces[nodeId].springFy = 0;\n }\n\n // forces caused by the edges, modelled as springs\n for (var _i = 0; _i < edgeIndices.length; _i++) {\n edge = edges[edgeIndices[_i]];\n if (edge.connected === true) {\n edgeLength = edge.options.length === undefined ? this.options.springLength : edge.options.length;\n dx = edge.from.x - edge.to.x;\n dy = edge.from.y - edge.to.y;\n distance = Math.sqrt(dx * dx + dy * dy);\n distance = distance === 0 ? 0.01 : distance;\n\n // the 1/distance is so the fx and fy can be calculated without sine or cosine.\n springForce = this.options.springConstant * (edgeLength - distance) / distance;\n fx = dx * springForce;\n fy = dy * springForce;\n if (edge.to.level != edge.from.level) {\n if (forces[edge.toId] !== undefined) {\n forces[edge.toId].springFx -= fx;\n forces[edge.toId].springFy -= fy;\n }\n if (forces[edge.fromId] !== undefined) {\n forces[edge.fromId].springFx += fx;\n forces[edge.fromId].springFy += fy;\n }\n } else {\n if (forces[edge.toId] !== undefined) {\n forces[edge.toId].x -= factor * fx;\n forces[edge.toId].y -= factor * fy;\n }\n if (forces[edge.fromId] !== undefined) {\n forces[edge.fromId].x += factor * fx;\n forces[edge.fromId].y += factor * fy;\n }\n }\n }\n }\n\n // normalize spring forces\n springForce = 1;\n var springFx, springFy;\n for (var _i2 = 0; _i2 < nodeIndices.length; _i2++) {\n var _nodeId = nodeIndices[_i2];\n springFx = Math.min(springForce, Math.max(-springForce, forces[_nodeId].springFx));\n springFy = Math.min(springForce, Math.max(-springForce, forces[_nodeId].springFy));\n forces[_nodeId].x += springFx;\n forces[_nodeId].y += springFy;\n }\n\n // retain energy balance\n var totalFx = 0;\n var totalFy = 0;\n for (var _i3 = 0; _i3 < nodeIndices.length; _i3++) {\n var _nodeId2 = nodeIndices[_i3];\n totalFx += forces[_nodeId2].x;\n totalFy += forces[_nodeId2].y;\n }\n var correctionFx = totalFx / nodeIndices.length;\n var correctionFy = totalFy / nodeIndices.length;\n for (var _i4 = 0; _i4 < nodeIndices.length; _i4++) {\n var _nodeId3 = nodeIndices[_i4];\n forces[_nodeId3].x -= correctionFx;\n forces[_nodeId3].y -= correctionFy;\n }\n }\n }]);\n return HierarchicalSpringSolver;\n}();\n\n/**\n * Central Gravity Solver\n */\nvar CentralGravitySolver = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {{physicsNodeIndices: Array, physicsEdgeIndices: Array, forces: {}, velocities: {}}} physicsBody\n * @param {object} options\n */\n function CentralGravitySolver(body, physicsBody, options) {\n _classCallCheck(this, CentralGravitySolver);\n this.body = body;\n this.physicsBody = physicsBody;\n this.setOptions(options);\n }\n\n /**\n *\n * @param {object} options\n */\n _createClass(CentralGravitySolver, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n this.options = options;\n }\n\n /**\n * Calculates forces for each node\n */\n }, {\n key: \"solve\",\n value: function solve() {\n var dx, dy, distance, node;\n var nodes = this.body.nodes;\n var nodeIndices = this.physicsBody.physicsNodeIndices;\n var forces = this.physicsBody.forces;\n for (var i = 0; i < nodeIndices.length; i++) {\n var nodeId = nodeIndices[i];\n node = nodes[nodeId];\n dx = -node.x;\n dy = -node.y;\n distance = Math.sqrt(dx * dx + dy * dy);\n this._calculateForces(distance, dx, dy, forces, node);\n }\n }\n\n /**\n * Calculate the forces based on the distance.\n *\n * @param {number} distance\n * @param {number} dx\n * @param {number} dy\n * @param {Object} forces\n * @param {Node} node\n * @private\n */\n }, {\n key: \"_calculateForces\",\n value: function _calculateForces(distance, dx, dy, forces, node) {\n var gravityForce = distance === 0 ? 0 : this.options.centralGravity / distance;\n forces[node.id].x = dx * gravityForce;\n forces[node.id].y = dy * gravityForce;\n }\n }]);\n return CentralGravitySolver;\n}();\n\nfunction _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$3() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * @augments BarnesHutSolver\n */\nvar ForceAtlas2BasedRepulsionSolver = /*#__PURE__*/function (_BarnesHutSolver) {\n _inherits(ForceAtlas2BasedRepulsionSolver, _BarnesHutSolver);\n var _super = _createSuper$3(ForceAtlas2BasedRepulsionSolver);\n /**\n * @param {object} body\n * @param {{physicsNodeIndices: Array, physicsEdgeIndices: Array, forces: {}, velocities: {}}} physicsBody\n * @param {object} options\n */\n function ForceAtlas2BasedRepulsionSolver(body, physicsBody, options) {\n var _this;\n _classCallCheck(this, ForceAtlas2BasedRepulsionSolver);\n _this = _super.call(this, body, physicsBody, options);\n _this._rng = Alea(\"FORCE ATLAS 2 BASED REPULSION SOLVER\");\n return _this;\n }\n\n /**\n * Calculate the forces based on the distance.\n *\n * @param {number} distance\n * @param {number} dx\n * @param {number} dy\n * @param {Node} node\n * @param {object} parentBranch\n * @private\n */\n _createClass(ForceAtlas2BasedRepulsionSolver, [{\n key: \"_calculateForces\",\n value: function _calculateForces(distance, dx, dy, node, parentBranch) {\n if (distance === 0) {\n distance = 0.1 * this._rng();\n dx = distance;\n }\n if (this.overlapAvoidanceFactor < 1 && node.shape.radius) {\n distance = Math.max(0.1 + this.overlapAvoidanceFactor * node.shape.radius, distance - node.shape.radius);\n }\n var degree = node.edges.length + 1;\n // the dividing by the distance cubed instead of squared allows us to get the fx and fy components without sines and cosines\n // it is shorthand for gravityforce with distance squared and fx = dx/distance * gravityForce\n var gravityForce = this.options.gravitationalConstant * parentBranch.mass * node.options.mass * degree / Math.pow(distance, 2);\n var fx = dx * gravityForce;\n var fy = dy * gravityForce;\n this.physicsBody.forces[node.id].x += fx;\n this.physicsBody.forces[node.id].y += fy;\n }\n }]);\n return ForceAtlas2BasedRepulsionSolver;\n}(BarnesHutSolver);\n\nfunction _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$2() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * @augments CentralGravitySolver\n */\nvar ForceAtlas2BasedCentralGravitySolver = /*#__PURE__*/function (_CentralGravitySolver) {\n _inherits(ForceAtlas2BasedCentralGravitySolver, _CentralGravitySolver);\n var _super = _createSuper$2(ForceAtlas2BasedCentralGravitySolver);\n /**\n * @param {object} body\n * @param {{physicsNodeIndices: Array, physicsEdgeIndices: Array, forces: {}, velocities: {}}} physicsBody\n * @param {object} options\n */\n function ForceAtlas2BasedCentralGravitySolver(body, physicsBody, options) {\n _classCallCheck(this, ForceAtlas2BasedCentralGravitySolver);\n return _super.call(this, body, physicsBody, options);\n }\n\n /**\n * Calculate the forces based on the distance.\n *\n * @param {number} distance\n * @param {number} dx\n * @param {number} dy\n * @param {Object} forces\n * @param {Node} node\n * @private\n */\n _createClass(ForceAtlas2BasedCentralGravitySolver, [{\n key: \"_calculateForces\",\n value: function _calculateForces(distance, dx, dy, forces, node) {\n if (distance > 0) {\n var degree = node.edges.length + 1;\n var gravityForce = this.options.centralGravity * degree * node.options.mass;\n forces[node.id].x = dx * gravityForce;\n forces[node.id].y = dy * gravityForce;\n }\n }\n }]);\n return ForceAtlas2BasedCentralGravitySolver;\n}(CentralGravitySolver);\n\n/**\n * The physics engine\n */\nvar PhysicsEngine = /*#__PURE__*/function () {\n /**\n * @param {object} body\n */\n function PhysicsEngine(body) {\n _classCallCheck(this, PhysicsEngine);\n this.body = body;\n this.physicsBody = {\n physicsNodeIndices: [],\n physicsEdgeIndices: [],\n forces: {},\n velocities: {}\n };\n this.physicsEnabled = true;\n this.simulationInterval = 1000 / 60;\n this.requiresTimeout = true;\n this.previousStates = {};\n this.referenceState = {};\n this.freezeCache = {};\n this.renderTimer = undefined;\n\n // parameters for the adaptive timestep\n this.adaptiveTimestep = false;\n this.adaptiveTimestepEnabled = false;\n this.adaptiveCounter = 0;\n this.adaptiveInterval = 3;\n this.stabilized = false;\n this.startedStabilization = false;\n this.stabilizationIterations = 0;\n this.ready = false; // will be set to true if the stabilize\n\n // default options\n this.options = {};\n this.defaultOptions = {\n enabled: true,\n barnesHut: {\n theta: 0.5,\n gravitationalConstant: -2000,\n centralGravity: 0.3,\n springLength: 95,\n springConstant: 0.04,\n damping: 0.09,\n avoidOverlap: 0\n },\n forceAtlas2Based: {\n theta: 0.5,\n gravitationalConstant: -50,\n centralGravity: 0.01,\n springConstant: 0.08,\n springLength: 100,\n damping: 0.4,\n avoidOverlap: 0\n },\n repulsion: {\n centralGravity: 0.2,\n springLength: 200,\n springConstant: 0.05,\n nodeDistance: 100,\n damping: 0.09,\n avoidOverlap: 0\n },\n hierarchicalRepulsion: {\n centralGravity: 0.0,\n springLength: 100,\n springConstant: 0.01,\n nodeDistance: 120,\n damping: 0.09\n },\n maxVelocity: 50,\n minVelocity: 0.75,\n // px/s\n solver: \"barnesHut\",\n stabilization: {\n enabled: true,\n iterations: 1000,\n // maximum number of iteration to stabilize\n updateInterval: 50,\n onlyDynamicEdges: false,\n fit: true\n },\n timestep: 0.5,\n adaptiveTimestep: true,\n wind: {\n x: 0,\n y: 0\n }\n };\n _Object$assign(this.options, this.defaultOptions);\n this.timestep = 0.5;\n this.layoutFailed = false;\n this.bindEventListeners();\n }\n\n /**\n * Binds event listeners\n */\n _createClass(PhysicsEngine, [{\n key: \"bindEventListeners\",\n value: function bindEventListeners() {\n var _this = this;\n this.body.emitter.on(\"initPhysics\", function () {\n _this.initPhysics();\n });\n this.body.emitter.on(\"_layoutFailed\", function () {\n _this.layoutFailed = true;\n });\n this.body.emitter.on(\"resetPhysics\", function () {\n _this.stopSimulation();\n _this.ready = false;\n });\n this.body.emitter.on(\"disablePhysics\", function () {\n _this.physicsEnabled = false;\n _this.stopSimulation();\n });\n this.body.emitter.on(\"restorePhysics\", function () {\n _this.setOptions(_this.options);\n if (_this.ready === true) {\n _this.startSimulation();\n }\n });\n this.body.emitter.on(\"startSimulation\", function () {\n if (_this.ready === true) {\n _this.startSimulation();\n }\n });\n this.body.emitter.on(\"stopSimulation\", function () {\n _this.stopSimulation();\n });\n this.body.emitter.on(\"destroy\", function () {\n _this.stopSimulation(false);\n _this.body.emitter.off();\n });\n this.body.emitter.on(\"_dataChanged\", function () {\n // Nodes and/or edges have been added or removed, update shortcut lists.\n _this.updatePhysicsData();\n });\n\n // debug: show forces\n // this.body.emitter.on(\"afterDrawing\", (ctx) => {this._drawForces(ctx);});\n }\n\n /**\n * set the physics options\n *\n * @param {object} options\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options !== undefined) {\n if (options === false) {\n this.options.enabled = false;\n this.physicsEnabled = false;\n this.stopSimulation();\n } else if (options === true) {\n this.options.enabled = true;\n this.physicsEnabled = true;\n this.startSimulation();\n } else {\n this.physicsEnabled = true;\n selectiveNotDeepExtend([\"stabilization\"], this.options, options);\n mergeOptions(this.options, options, \"stabilization\");\n if (options.enabled === undefined) {\n this.options.enabled = true;\n }\n if (this.options.enabled === false) {\n this.physicsEnabled = false;\n this.stopSimulation();\n }\n var wind = this.options.wind;\n if (wind) {\n if (typeof wind.x !== \"number\" || _Number$isNaN(wind.x)) {\n wind.x = 0;\n }\n if (typeof wind.y !== \"number\" || _Number$isNaN(wind.y)) {\n wind.y = 0;\n }\n }\n\n // set the timestep\n this.timestep = this.options.timestep;\n }\n }\n this.init();\n }\n\n /**\n * configure the engine.\n */\n }, {\n key: \"init\",\n value: function init() {\n var options;\n if (this.options.solver === \"forceAtlas2Based\") {\n options = this.options.forceAtlas2Based;\n this.nodesSolver = new ForceAtlas2BasedRepulsionSolver(this.body, this.physicsBody, options);\n this.edgesSolver = new SpringSolver(this.body, this.physicsBody, options);\n this.gravitySolver = new ForceAtlas2BasedCentralGravitySolver(this.body, this.physicsBody, options);\n } else if (this.options.solver === \"repulsion\") {\n options = this.options.repulsion;\n this.nodesSolver = new RepulsionSolver(this.body, this.physicsBody, options);\n this.edgesSolver = new SpringSolver(this.body, this.physicsBody, options);\n this.gravitySolver = new CentralGravitySolver(this.body, this.physicsBody, options);\n } else if (this.options.solver === \"hierarchicalRepulsion\") {\n options = this.options.hierarchicalRepulsion;\n this.nodesSolver = new HierarchicalRepulsionSolver(this.body, this.physicsBody, options);\n this.edgesSolver = new HierarchicalSpringSolver(this.body, this.physicsBody, options);\n this.gravitySolver = new CentralGravitySolver(this.body, this.physicsBody, options);\n } else {\n // barnesHut\n options = this.options.barnesHut;\n this.nodesSolver = new BarnesHutSolver(this.body, this.physicsBody, options);\n this.edgesSolver = new SpringSolver(this.body, this.physicsBody, options);\n this.gravitySolver = new CentralGravitySolver(this.body, this.physicsBody, options);\n }\n this.modelOptions = options;\n }\n\n /**\n * initialize the engine\n */\n }, {\n key: \"initPhysics\",\n value: function initPhysics() {\n if (this.physicsEnabled === true && this.options.enabled === true) {\n if (this.options.stabilization.enabled === true) {\n this.stabilize();\n } else {\n this.stabilized = false;\n this.ready = true;\n this.body.emitter.emit(\"fit\", {}, this.layoutFailed); // if the layout failed, we use the approximation for the zoom\n this.startSimulation();\n }\n } else {\n this.ready = true;\n this.body.emitter.emit(\"fit\");\n }\n }\n\n /**\n * Start the simulation\n */\n }, {\n key: \"startSimulation\",\n value: function startSimulation() {\n if (this.physicsEnabled === true && this.options.enabled === true) {\n this.stabilized = false;\n\n // when visible, adaptivity is disabled.\n this.adaptiveTimestep = false;\n\n // this sets the width of all nodes initially which could be required for the avoidOverlap\n this.body.emitter.emit(\"_resizeNodes\");\n if (this.viewFunction === undefined) {\n var _context;\n this.viewFunction = _bindInstanceProperty$1(_context = this.simulationStep).call(_context, this);\n this.body.emitter.on(\"initRedraw\", this.viewFunction);\n this.body.emitter.emit(\"_startRendering\");\n }\n } else {\n this.body.emitter.emit(\"_redraw\");\n }\n }\n\n /**\n * Stop the simulation, force stabilization.\n *\n * @param {boolean} [emit=true]\n */\n }, {\n key: \"stopSimulation\",\n value: function stopSimulation() {\n var emit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n this.stabilized = true;\n if (emit === true) {\n this._emitStabilized();\n }\n if (this.viewFunction !== undefined) {\n this.body.emitter.off(\"initRedraw\", this.viewFunction);\n this.viewFunction = undefined;\n if (emit === true) {\n this.body.emitter.emit(\"_stopRendering\");\n }\n }\n }\n\n /**\n * The viewFunction inserts this step into each render loop. It calls the physics tick and handles the cleanup at stabilized.\n *\n */\n }, {\n key: \"simulationStep\",\n value: function simulationStep() {\n // check if the physics have settled\n var startTime = _Date$now();\n this.physicsTick();\n var physicsTime = _Date$now() - startTime;\n\n // run double speed if it is a little graph\n if ((physicsTime < 0.4 * this.simulationInterval || this.runDoubleSpeed === true) && this.stabilized === false) {\n this.physicsTick();\n\n // this makes sure there is no jitter. The decision is taken once to run it at double speed.\n this.runDoubleSpeed = true;\n }\n if (this.stabilized === true) {\n this.stopSimulation();\n }\n }\n\n /**\n * trigger the stabilized event.\n *\n * @param {number} [amountOfIterations=this.stabilizationIterations]\n * @private\n */\n }, {\n key: \"_emitStabilized\",\n value: function _emitStabilized() {\n var _this2 = this;\n var amountOfIterations = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.stabilizationIterations;\n if (this.stabilizationIterations > 1 || this.startedStabilization === true) {\n _setTimeout(function () {\n _this2.body.emitter.emit(\"stabilized\", {\n iterations: amountOfIterations\n });\n _this2.startedStabilization = false;\n _this2.stabilizationIterations = 0;\n }, 0);\n }\n }\n\n /**\n * Calculate the forces for one physics iteration and move the nodes.\n *\n * @private\n */\n }, {\n key: \"physicsStep\",\n value: function physicsStep() {\n this.gravitySolver.solve();\n this.nodesSolver.solve();\n this.edgesSolver.solve();\n this.moveNodes();\n }\n\n /**\n * Make dynamic adjustments to the timestep, based on current state.\n *\n * Helper function for physicsTick().\n *\n * @private\n */\n }, {\n key: \"adjustTimeStep\",\n value: function adjustTimeStep() {\n var factor = 1.2; // Factor for increasing the timestep on success.\n\n // we compare the two steps. if it is acceptable we double the step.\n if (this._evaluateStepQuality() === true) {\n this.timestep = factor * this.timestep;\n } else {\n // if not, we decrease the step to a minimum of the options timestep.\n // if the decreased timestep is smaller than the options step, we do not reset the counter\n // we assume that the options timestep is stable enough.\n if (this.timestep / factor < this.options.timestep) {\n this.timestep = this.options.timestep;\n } else {\n // if the timestep was larger than 2 times the option one we check the adaptivity again to ensure\n // that large instabilities do not form.\n this.adaptiveCounter = -1; // check again next iteration\n this.timestep = Math.max(this.options.timestep, this.timestep / factor);\n }\n }\n }\n\n /**\n * A single simulation step (or 'tick') in the physics simulation\n *\n * @private\n */\n }, {\n key: \"physicsTick\",\n value: function physicsTick() {\n this._startStabilizing(); // this ensures that there is no start event when the network is already stable.\n if (this.stabilized === true) return;\n\n // adaptivity means the timestep adapts to the situation, only applicable for stabilization\n if (this.adaptiveTimestep === true && this.adaptiveTimestepEnabled === true) {\n // timestep remains stable for \"interval\" iterations.\n var doAdaptive = this.adaptiveCounter % this.adaptiveInterval === 0;\n if (doAdaptive) {\n // first the big step and revert.\n this.timestep = 2 * this.timestep;\n this.physicsStep();\n this.revert(); // saves the reference state\n\n // now the normal step. Since this is the last step, it is the more stable one and we will take this.\n this.timestep = 0.5 * this.timestep;\n\n // since it's half the step, we do it twice.\n this.physicsStep();\n this.physicsStep();\n this.adjustTimeStep();\n } else {\n this.physicsStep(); // normal step, keeping timestep constant\n }\n\n this.adaptiveCounter += 1;\n } else {\n // case for the static timestep, we reset it to the one in options and take a normal step.\n this.timestep = this.options.timestep;\n this.physicsStep();\n }\n if (this.stabilized === true) this.revert();\n this.stabilizationIterations++;\n }\n\n /**\n * Nodes and edges can have the physics toggles on or off. A collection of indices is created here so we can skip the check all the time.\n *\n * @private\n */\n }, {\n key: \"updatePhysicsData\",\n value: function updatePhysicsData() {\n this.physicsBody.forces = {};\n this.physicsBody.physicsNodeIndices = [];\n this.physicsBody.physicsEdgeIndices = [];\n var nodes = this.body.nodes;\n var edges = this.body.edges;\n\n // get node indices for physics\n for (var nodeId in nodes) {\n if (Object.prototype.hasOwnProperty.call(nodes, nodeId)) {\n if (nodes[nodeId].options.physics === true) {\n this.physicsBody.physicsNodeIndices.push(nodes[nodeId].id);\n }\n }\n }\n\n // get edge indices for physics\n for (var edgeId in edges) {\n if (Object.prototype.hasOwnProperty.call(edges, edgeId)) {\n if (edges[edgeId].options.physics === true) {\n this.physicsBody.physicsEdgeIndices.push(edges[edgeId].id);\n }\n }\n }\n\n // get the velocity and the forces vector\n for (var i = 0; i < this.physicsBody.physicsNodeIndices.length; i++) {\n var _nodeId = this.physicsBody.physicsNodeIndices[i];\n this.physicsBody.forces[_nodeId] = {\n x: 0,\n y: 0\n };\n\n // forces can be reset because they are recalculated. Velocities have to persist.\n if (this.physicsBody.velocities[_nodeId] === undefined) {\n this.physicsBody.velocities[_nodeId] = {\n x: 0,\n y: 0\n };\n }\n }\n\n // clean deleted nodes from the velocity vector\n for (var _nodeId2 in this.physicsBody.velocities) {\n if (nodes[_nodeId2] === undefined) {\n delete this.physicsBody.velocities[_nodeId2];\n }\n }\n }\n\n /**\n * Revert the simulation one step. This is done so after stabilization, every new start of the simulation will also say stabilized.\n */\n }, {\n key: \"revert\",\n value: function revert() {\n var nodeIds = _Object$keys(this.previousStates);\n var nodes = this.body.nodes;\n var velocities = this.physicsBody.velocities;\n this.referenceState = {};\n for (var i = 0; i < nodeIds.length; i++) {\n var nodeId = nodeIds[i];\n if (nodes[nodeId] !== undefined) {\n if (nodes[nodeId].options.physics === true) {\n this.referenceState[nodeId] = {\n positions: {\n x: nodes[nodeId].x,\n y: nodes[nodeId].y\n }\n };\n velocities[nodeId].x = this.previousStates[nodeId].vx;\n velocities[nodeId].y = this.previousStates[nodeId].vy;\n nodes[nodeId].x = this.previousStates[nodeId].x;\n nodes[nodeId].y = this.previousStates[nodeId].y;\n }\n } else {\n delete this.previousStates[nodeId];\n }\n }\n }\n\n /**\n * This compares the reference state to the current state\n *\n * @returns {boolean}\n * @private\n */\n }, {\n key: \"_evaluateStepQuality\",\n value: function _evaluateStepQuality() {\n var dx, dy, dpos;\n var nodes = this.body.nodes;\n var reference = this.referenceState;\n var posThreshold = 0.3;\n for (var nodeId in this.referenceState) {\n if (Object.prototype.hasOwnProperty.call(this.referenceState, nodeId) && nodes[nodeId] !== undefined) {\n dx = nodes[nodeId].x - reference[nodeId].positions.x;\n dy = nodes[nodeId].y - reference[nodeId].positions.y;\n dpos = Math.sqrt(Math.pow(dx, 2) + Math.pow(dy, 2));\n if (dpos > posThreshold) {\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * move the nodes one timestep and check if they are stabilized\n */\n }, {\n key: \"moveNodes\",\n value: function moveNodes() {\n var nodeIndices = this.physicsBody.physicsNodeIndices;\n var maxNodeVelocity = 0;\n var averageNodeVelocity = 0;\n\n // the velocity threshold (energy in the system) for the adaptivity toggle\n var velocityAdaptiveThreshold = 5;\n for (var i = 0; i < nodeIndices.length; i++) {\n var nodeId = nodeIndices[i];\n var nodeVelocity = this._performStep(nodeId);\n // stabilized is true if stabilized is true and velocity is smaller than vmin --> all nodes must be stabilized\n maxNodeVelocity = Math.max(maxNodeVelocity, nodeVelocity);\n averageNodeVelocity += nodeVelocity;\n }\n\n // evaluating the stabilized and adaptiveTimestepEnabled conditions\n this.adaptiveTimestepEnabled = averageNodeVelocity / nodeIndices.length < velocityAdaptiveThreshold;\n this.stabilized = maxNodeVelocity < this.options.minVelocity;\n }\n\n /**\n * Calculate new velocity for a coordinate direction\n *\n * @param {number} v velocity for current coordinate\n * @param {number} f regular force for current coordinate\n * @param {number} m mass of current node\n * @returns {number} new velocity for current coordinate\n * @private\n */\n }, {\n key: \"calculateComponentVelocity\",\n value: function calculateComponentVelocity(v, f, m) {\n var df = this.modelOptions.damping * v; // damping force\n var a = (f - df) / m; // acceleration\n\n v += a * this.timestep;\n\n // Put a limit on the velocities if it is really high\n var maxV = this.options.maxVelocity || 1e9;\n if (Math.abs(v) > maxV) {\n v = v > 0 ? maxV : -maxV;\n }\n return v;\n }\n\n /**\n * Perform the actual step\n *\n * @param {Node.id} nodeId\n * @returns {number} the new velocity of given node\n * @private\n */\n }, {\n key: \"_performStep\",\n value: function _performStep(nodeId) {\n var node = this.body.nodes[nodeId];\n var force = this.physicsBody.forces[nodeId];\n if (this.options.wind) {\n force.x += this.options.wind.x;\n force.y += this.options.wind.y;\n }\n var velocity = this.physicsBody.velocities[nodeId];\n\n // store the state so we can revert\n this.previousStates[nodeId] = {\n x: node.x,\n y: node.y,\n vx: velocity.x,\n vy: velocity.y\n };\n if (node.options.fixed.x === false) {\n velocity.x = this.calculateComponentVelocity(velocity.x, force.x, node.options.mass);\n node.x += velocity.x * this.timestep;\n } else {\n force.x = 0;\n velocity.x = 0;\n }\n if (node.options.fixed.y === false) {\n velocity.y = this.calculateComponentVelocity(velocity.y, force.y, node.options.mass);\n node.y += velocity.y * this.timestep;\n } else {\n force.y = 0;\n velocity.y = 0;\n }\n var totalVelocity = Math.sqrt(Math.pow(velocity.x, 2) + Math.pow(velocity.y, 2));\n return totalVelocity;\n }\n\n /**\n * When initializing and stabilizing, we can freeze nodes with a predefined position.\n * This greatly speeds up stabilization because only the supportnodes for the smoothCurves have to settle.\n *\n * @private\n */\n }, {\n key: \"_freezeNodes\",\n value: function _freezeNodes() {\n var nodes = this.body.nodes;\n for (var id in nodes) {\n if (Object.prototype.hasOwnProperty.call(nodes, id)) {\n if (nodes[id].x && nodes[id].y) {\n var fixed = nodes[id].options.fixed;\n this.freezeCache[id] = {\n x: fixed.x,\n y: fixed.y\n };\n fixed.x = true;\n fixed.y = true;\n }\n }\n }\n }\n\n /**\n * Unfreezes the nodes that have been frozen by _freezeDefinedNodes.\n *\n * @private\n */\n }, {\n key: \"_restoreFrozenNodes\",\n value: function _restoreFrozenNodes() {\n var nodes = this.body.nodes;\n for (var id in nodes) {\n if (Object.prototype.hasOwnProperty.call(nodes, id)) {\n if (this.freezeCache[id] !== undefined) {\n nodes[id].options.fixed.x = this.freezeCache[id].x;\n nodes[id].options.fixed.y = this.freezeCache[id].y;\n }\n }\n }\n this.freezeCache = {};\n }\n\n /**\n * Find a stable position for all nodes\n *\n * @param {number} [iterations=this.options.stabilization.iterations]\n */\n }, {\n key: \"stabilize\",\n value: function stabilize() {\n var _this3 = this;\n var iterations = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.options.stabilization.iterations;\n if (typeof iterations !== \"number\") {\n iterations = this.options.stabilization.iterations;\n console.error(\"The stabilize method needs a numeric amount of iterations. Switching to default: \", iterations);\n }\n if (this.physicsBody.physicsNodeIndices.length === 0) {\n this.ready = true;\n return;\n }\n\n // enable adaptive timesteps\n this.adaptiveTimestep = this.options.adaptiveTimestep;\n\n // this sets the width of all nodes initially which could be required for the avoidOverlap\n this.body.emitter.emit(\"_resizeNodes\");\n this.stopSimulation(); // stop the render loop\n this.stabilized = false;\n\n // block redraw requests\n this.body.emitter.emit(\"_blockRedraw\");\n this.targetIterations = iterations;\n\n // start the stabilization\n if (this.options.stabilization.onlyDynamicEdges === true) {\n this._freezeNodes();\n }\n this.stabilizationIterations = 0;\n _setTimeout(function () {\n return _this3._stabilizationBatch();\n }, 0);\n }\n\n /**\n * If not already stabilizing, start it and emit a start event.\n *\n * @returns {boolean} true if stabilization started with this call\n * @private\n */\n }, {\n key: \"_startStabilizing\",\n value: function _startStabilizing() {\n if (this.startedStabilization === true) return false;\n this.body.emitter.emit(\"startStabilizing\");\n this.startedStabilization = true;\n return true;\n }\n\n /**\n * One batch of stabilization\n *\n * @private\n */\n }, {\n key: \"_stabilizationBatch\",\n value: function _stabilizationBatch() {\n var _this4 = this;\n var running = function running() {\n return _this4.stabilized === false && _this4.stabilizationIterations < _this4.targetIterations;\n };\n var sendProgress = function sendProgress() {\n _this4.body.emitter.emit(\"stabilizationProgress\", {\n iterations: _this4.stabilizationIterations,\n total: _this4.targetIterations\n });\n };\n if (this._startStabilizing()) {\n sendProgress(); // Ensure that there is at least one start event.\n }\n\n var count = 0;\n while (running() && count < this.options.stabilization.updateInterval) {\n this.physicsTick();\n count++;\n }\n sendProgress();\n if (running()) {\n var _context2;\n _setTimeout(_bindInstanceProperty$1(_context2 = this._stabilizationBatch).call(_context2, this), 0);\n } else {\n this._finalizeStabilization();\n }\n }\n\n /**\n * Wrap up the stabilization, fit and emit the events.\n *\n * @private\n */\n }, {\n key: \"_finalizeStabilization\",\n value: function _finalizeStabilization() {\n this.body.emitter.emit(\"_allowRedraw\");\n if (this.options.stabilization.fit === true) {\n this.body.emitter.emit(\"fit\");\n }\n if (this.options.stabilization.onlyDynamicEdges === true) {\n this._restoreFrozenNodes();\n }\n this.body.emitter.emit(\"stabilizationIterationsDone\");\n this.body.emitter.emit(\"_requestRedraw\");\n if (this.stabilized === true) {\n this._emitStabilized();\n } else {\n this.startSimulation();\n }\n this.ready = true;\n }\n\n //--------------------------- DEBUGGING BELOW ---------------------------//\n\n /**\n * Debug function that display arrows for the forces currently active in the network.\n *\n * Use this when debugging only.\n *\n * @param {CanvasRenderingContext2D} ctx\n * @private\n */\n }, {\n key: \"_drawForces\",\n value: function _drawForces(ctx) {\n for (var i = 0; i < this.physicsBody.physicsNodeIndices.length; i++) {\n var index = this.physicsBody.physicsNodeIndices[i];\n var node = this.body.nodes[index];\n var force = this.physicsBody.forces[index];\n var factor = 20;\n var colorFactor = 0.03;\n var forceSize = Math.sqrt(Math.pow(force.x, 2) + Math.pow(force.x, 2));\n var size = Math.min(Math.max(5, forceSize), 15);\n var arrowSize = 3 * size;\n var color = HSVToHex((180 - Math.min(1, Math.max(0, colorFactor * forceSize)) * 180) / 360, 1, 1);\n var point = {\n x: node.x + factor * force.x,\n y: node.y + factor * force.y\n };\n ctx.lineWidth = size;\n ctx.strokeStyle = color;\n ctx.beginPath();\n ctx.moveTo(node.x, node.y);\n ctx.lineTo(point.x, point.y);\n ctx.stroke();\n var angle = Math.atan2(force.y, force.x);\n ctx.fillStyle = color;\n EndPoints.draw(ctx, {\n type: \"arrow\",\n point: point,\n angle: angle,\n length: arrowSize\n });\n _fillInstanceProperty(ctx).call(ctx);\n }\n }\n }]);\n return PhysicsEngine;\n}();\n\n/**\n * Utility Class\n */\nvar NetworkUtil = /*#__PURE__*/function () {\n /**\n * @ignore\n */\n function NetworkUtil() {\n _classCallCheck(this, NetworkUtil);\n }\n\n /**\n * Find the center position of the network considering the bounding boxes\n *\n * @param {Array.} allNodes\n * @param {Array.} [specificNodes=[]]\n * @returns {{minX: number, maxX: number, minY: number, maxY: number}}\n * @static\n */\n _createClass(NetworkUtil, null, [{\n key: \"getRange\",\n value: function getRange(allNodes) {\n var specificNodes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n var minY = 1e9,\n maxY = -1e9,\n minX = 1e9,\n maxX = -1e9,\n node;\n if (specificNodes.length > 0) {\n for (var i = 0; i < specificNodes.length; i++) {\n node = allNodes[specificNodes[i]];\n if (minX > node.shape.boundingBox.left) {\n minX = node.shape.boundingBox.left;\n }\n if (maxX < node.shape.boundingBox.right) {\n maxX = node.shape.boundingBox.right;\n }\n if (minY > node.shape.boundingBox.top) {\n minY = node.shape.boundingBox.top;\n } // top is negative, bottom is positive\n if (maxY < node.shape.boundingBox.bottom) {\n maxY = node.shape.boundingBox.bottom;\n } // top is negative, bottom is positive\n }\n }\n\n if (minX === 1e9 && maxX === -1e9 && minY === 1e9 && maxY === -1e9) {\n minY = 0, maxY = 0, minX = 0, maxX = 0;\n }\n return {\n minX: minX,\n maxX: maxX,\n minY: minY,\n maxY: maxY\n };\n }\n\n /**\n * Find the center position of the network\n *\n * @param {Array.} allNodes\n * @param {Array.} [specificNodes=[]]\n * @returns {{minX: number, maxX: number, minY: number, maxY: number}}\n * @static\n */\n }, {\n key: \"getRangeCore\",\n value: function getRangeCore(allNodes) {\n var specificNodes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n var minY = 1e9,\n maxY = -1e9,\n minX = 1e9,\n maxX = -1e9,\n node;\n if (specificNodes.length > 0) {\n for (var i = 0; i < specificNodes.length; i++) {\n node = allNodes[specificNodes[i]];\n if (minX > node.x) {\n minX = node.x;\n }\n if (maxX < node.x) {\n maxX = node.x;\n }\n if (minY > node.y) {\n minY = node.y;\n } // top is negative, bottom is positive\n if (maxY < node.y) {\n maxY = node.y;\n } // top is negative, bottom is positive\n }\n }\n\n if (minX === 1e9 && maxX === -1e9 && minY === 1e9 && maxY === -1e9) {\n minY = 0, maxY = 0, minX = 0, maxX = 0;\n }\n return {\n minX: minX,\n maxX: maxX,\n minY: minY,\n maxY: maxY\n };\n }\n\n /**\n * @param {object} range = {minX: minX, maxX: maxX, minY: minY, maxY: maxY};\n * @returns {{x: number, y: number}}\n * @static\n */\n }, {\n key: \"findCenter\",\n value: function findCenter(range) {\n return {\n x: 0.5 * (range.maxX + range.minX),\n y: 0.5 * (range.maxY + range.minY)\n };\n }\n\n /**\n * This returns a clone of the options or options of the edge or node to be used for construction of new edges or check functions for new nodes.\n *\n * @param {vis.Item} item\n * @param {'node'|undefined} type\n * @returns {{}}\n * @static\n */\n }, {\n key: \"cloneOptions\",\n value: function cloneOptions(item, type) {\n var clonedOptions = {};\n if (type === undefined || type === \"node\") {\n deepExtend(clonedOptions, item.options, true);\n clonedOptions.x = item.x;\n clonedOptions.y = item.y;\n clonedOptions.amountOfConnections = item.edges.length;\n } else {\n deepExtend(clonedOptions, item.options, true);\n }\n return clonedOptions;\n }\n }]);\n return NetworkUtil;\n}();\n\nfunction _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$1() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Cluster is a special Node that allows a group of Nodes positioned closely together\n * to be represented by a single Cluster Node.\n *\n * @augments Node\n */\nvar Cluster = /*#__PURE__*/function (_Node) {\n _inherits(Cluster, _Node);\n var _super = _createSuper$1(Cluster);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Array.}imagelist\n * @param {Array} grouplist\n * @param {object} globalOptions\n * @param {object} defaultOptions Global default options for nodes\n */\n function Cluster(options, body, imagelist, grouplist, globalOptions, defaultOptions) {\n var _this;\n _classCallCheck(this, Cluster);\n _this = _super.call(this, options, body, imagelist, grouplist, globalOptions, defaultOptions);\n _this.isCluster = true;\n _this.containedNodes = {};\n _this.containedEdges = {};\n return _this;\n }\n\n /**\n * Transfer child cluster data to current and disconnect the child cluster.\n *\n * Please consult the header comment in 'Clustering.js' for the fields set here.\n *\n * @param {string|number} childClusterId id of child cluster to open\n */\n _createClass(Cluster, [{\n key: \"_openChildCluster\",\n value: function _openChildCluster(childClusterId) {\n var _this2 = this;\n var childCluster = this.body.nodes[childClusterId];\n if (this.containedNodes[childClusterId] === undefined) {\n throw new Error(\"node with id: \" + childClusterId + \" not in current cluster\");\n }\n if (!childCluster.isCluster) {\n throw new Error(\"node with id: \" + childClusterId + \" is not a cluster\");\n }\n\n // Disconnect child cluster from current cluster\n delete this.containedNodes[childClusterId];\n forEach$5(childCluster.edges, function (edge) {\n delete _this2.containedEdges[edge.id];\n });\n\n // Transfer nodes and edges\n forEach$5(childCluster.containedNodes, function (node, nodeId) {\n _this2.containedNodes[nodeId] = node;\n });\n childCluster.containedNodes = {};\n forEach$5(childCluster.containedEdges, function (edge, edgeId) {\n _this2.containedEdges[edgeId] = edge;\n });\n childCluster.containedEdges = {};\n\n // Transfer edges within cluster edges which are clustered\n forEach$5(childCluster.edges, function (clusterEdge) {\n forEach$5(_this2.edges, function (parentClusterEdge) {\n var _context, _context2;\n // Assumption: a clustered edge can only be present in a single clustering edge\n // Not tested here\n var index = _indexOfInstanceProperty(_context = parentClusterEdge.clusteringEdgeReplacingIds).call(_context, clusterEdge.id);\n if (index === -1) return;\n forEach$5(clusterEdge.clusteringEdgeReplacingIds, function (srcId) {\n parentClusterEdge.clusteringEdgeReplacingIds.push(srcId);\n\n // Maintain correct bookkeeping for transferred edge\n _this2.body.edges[srcId].edgeReplacedById = parentClusterEdge.id;\n });\n\n // Remove cluster edge from parent cluster edge\n _spliceInstanceProperty(_context2 = parentClusterEdge.clusteringEdgeReplacingIds).call(_context2, index, 1);\n });\n });\n childCluster.edges = [];\n }\n }]);\n return Cluster;\n}(Node);\n\n/**\n * The clustering engine\n */\nvar ClusterEngine = /*#__PURE__*/function () {\n /**\n * @param {object} body\n */\n function ClusterEngine(body) {\n var _this = this;\n _classCallCheck(this, ClusterEngine);\n this.body = body;\n this.clusteredNodes = {}; // key: node id, value: { clusterId: , node: }\n this.clusteredEdges = {}; // key: edge id, value: restore information for given edge\n\n this.options = {};\n this.defaultOptions = {};\n _Object$assign(this.options, this.defaultOptions);\n this.body.emitter.on(\"_resetData\", function () {\n _this.clusteredNodes = {};\n _this.clusteredEdges = {};\n });\n }\n\n /**\n *\n * @param {number} hubsize\n * @param {object} options\n */\n _createClass(ClusterEngine, [{\n key: \"clusterByHubsize\",\n value: function clusterByHubsize(hubsize, options) {\n if (hubsize === undefined) {\n hubsize = this._getHubSize();\n } else if (_typeof$1(hubsize) === \"object\") {\n options = this._checkOptions(hubsize);\n hubsize = this._getHubSize();\n }\n var nodesToCluster = [];\n for (var i = 0; i < this.body.nodeIndices.length; i++) {\n var node = this.body.nodes[this.body.nodeIndices[i]];\n if (node.edges.length >= hubsize) {\n nodesToCluster.push(node.id);\n }\n }\n for (var _i = 0; _i < nodesToCluster.length; _i++) {\n this.clusterByConnection(nodesToCluster[_i], options, true);\n }\n this.body.emitter.emit(\"_dataChanged\");\n }\n\n /**\n * loop over all nodes, check if they adhere to the condition and cluster if needed.\n *\n * @param {object} options\n * @param {boolean} [refreshData=true]\n */\n }, {\n key: \"cluster\",\n value: function cluster() {\n var _this2 = this;\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var refreshData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (options.joinCondition === undefined) {\n throw new Error(\"Cannot call clusterByNodeData without a joinCondition function in the options.\");\n }\n\n // check if the options object is fine, append if needed\n options = this._checkOptions(options);\n var childNodesObj = {};\n var childEdgesObj = {};\n\n // collect the nodes that will be in the cluster\n forEach$5(this.body.nodes, function (node, nodeId) {\n if (node.options && options.joinCondition(node.options) === true) {\n childNodesObj[nodeId] = node;\n\n // collect the edges that will be in the cluster\n forEach$5(node.edges, function (edge) {\n if (_this2.clusteredEdges[edge.id] === undefined) {\n childEdgesObj[edge.id] = edge;\n }\n });\n }\n });\n this._cluster(childNodesObj, childEdgesObj, options, refreshData);\n }\n\n /**\n * Cluster all nodes in the network that have only X edges\n *\n * @param {number} edgeCount\n * @param {object} options\n * @param {boolean} [refreshData=true]\n */\n }, {\n key: \"clusterByEdgeCount\",\n value: function clusterByEdgeCount(edgeCount, options) {\n var _this3 = this;\n var refreshData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n options = this._checkOptions(options);\n var clusters = [];\n var usedNodes = {};\n var edge, edges, relevantEdgeCount;\n // collect the nodes that will be in the cluster\n var _loop = function _loop() {\n var childNodesObj = {};\n var childEdgesObj = {};\n var nodeId = _this3.body.nodeIndices[i];\n var node = _this3.body.nodes[nodeId];\n\n // if this node is already used in another cluster this session, we do not have to re-evaluate it.\n if (usedNodes[nodeId] === undefined) {\n relevantEdgeCount = 0;\n edges = [];\n for (var j = 0; j < node.edges.length; j++) {\n edge = node.edges[j];\n if (_this3.clusteredEdges[edge.id] === undefined) {\n if (edge.toId !== edge.fromId) {\n relevantEdgeCount++;\n }\n edges.push(edge);\n }\n }\n\n // this node qualifies, we collect its neighbours to start the clustering process.\n if (relevantEdgeCount === edgeCount) {\n var checkJoinCondition = function checkJoinCondition(node) {\n if (options.joinCondition === undefined || options.joinCondition === null) {\n return true;\n }\n var clonedOptions = NetworkUtil.cloneOptions(node);\n return options.joinCondition(clonedOptions);\n };\n var gatheringSuccessful = true;\n for (var _j = 0; _j < edges.length; _j++) {\n edge = edges[_j];\n var childNodeId = _this3._getConnectedId(edge, nodeId);\n // add the nodes to the list by the join condition.\n if (checkJoinCondition(node)) {\n childEdgesObj[edge.id] = edge;\n childNodesObj[nodeId] = node;\n childNodesObj[childNodeId] = _this3.body.nodes[childNodeId];\n usedNodes[nodeId] = true;\n } else {\n // this node does not qualify after all.\n gatheringSuccessful = false;\n break;\n }\n }\n\n // add to the cluster queue\n if (_Object$keys(childNodesObj).length > 0 && _Object$keys(childEdgesObj).length > 0 && gatheringSuccessful === true) {\n /**\n * Search for cluster data that contains any of the node id's\n *\n * @returns {boolean} true if no joinCondition, otherwise return value of joinCondition\n */\n var findClusterData = function findClusterData() {\n for (var n = 0; n < clusters.length; ++n) {\n // Search for a cluster containing any of the node id's\n for (var m in childNodesObj) {\n if (clusters[n].nodes[m] !== undefined) {\n return clusters[n];\n }\n }\n }\n return undefined;\n };\n\n // If any of the found nodes is part of a cluster found in this method,\n // add the current values to that cluster\n var foundCluster = findClusterData();\n if (foundCluster !== undefined) {\n // Add nodes to found cluster if not present\n for (var m in childNodesObj) {\n if (foundCluster.nodes[m] === undefined) {\n foundCluster.nodes[m] = childNodesObj[m];\n }\n }\n\n // Add edges to found cluster, if not present\n for (var _m in childEdgesObj) {\n if (foundCluster.edges[_m] === undefined) {\n foundCluster.edges[_m] = childEdgesObj[_m];\n }\n }\n } else {\n // Create a new cluster group\n clusters.push({\n nodes: childNodesObj,\n edges: childEdgesObj\n });\n }\n }\n }\n }\n };\n for (var i = 0; i < this.body.nodeIndices.length; i++) {\n _loop();\n }\n for (var _i2 = 0; _i2 < clusters.length; _i2++) {\n this._cluster(clusters[_i2].nodes, clusters[_i2].edges, options, false);\n }\n if (refreshData === true) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n\n /**\n * Cluster all nodes in the network that have only 1 edge\n *\n * @param {object} options\n * @param {boolean} [refreshData=true]\n */\n }, {\n key: \"clusterOutliers\",\n value: function clusterOutliers(options) {\n var refreshData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n this.clusterByEdgeCount(1, options, refreshData);\n }\n\n /**\n * Cluster all nodes in the network that have only 2 edge\n *\n * @param {object} options\n * @param {boolean} [refreshData=true]\n */\n }, {\n key: \"clusterBridges\",\n value: function clusterBridges(options) {\n var refreshData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n this.clusterByEdgeCount(2, options, refreshData);\n }\n\n /**\n * suck all connected nodes of a node into the node.\n *\n * @param {Node.id} nodeId\n * @param {object} options\n * @param {boolean} [refreshData=true]\n */\n }, {\n key: \"clusterByConnection\",\n value: function clusterByConnection(nodeId, options) {\n var _context;\n var refreshData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n // kill conditions\n if (nodeId === undefined) {\n throw new Error(\"No nodeId supplied to clusterByConnection!\");\n }\n if (this.body.nodes[nodeId] === undefined) {\n throw new Error(\"The nodeId given to clusterByConnection does not exist!\");\n }\n var node = this.body.nodes[nodeId];\n options = this._checkOptions(options, node);\n if (options.clusterNodeProperties.x === undefined) {\n options.clusterNodeProperties.x = node.x;\n }\n if (options.clusterNodeProperties.y === undefined) {\n options.clusterNodeProperties.y = node.y;\n }\n if (options.clusterNodeProperties.fixed === undefined) {\n options.clusterNodeProperties.fixed = {};\n options.clusterNodeProperties.fixed.x = node.options.fixed.x;\n options.clusterNodeProperties.fixed.y = node.options.fixed.y;\n }\n var childNodesObj = {};\n var childEdgesObj = {};\n var parentNodeId = node.id;\n var parentClonedOptions = NetworkUtil.cloneOptions(node);\n childNodesObj[parentNodeId] = node;\n\n // collect the nodes that will be in the cluster\n for (var i = 0; i < node.edges.length; i++) {\n var edge = node.edges[i];\n if (this.clusteredEdges[edge.id] === undefined) {\n var childNodeId = this._getConnectedId(edge, parentNodeId);\n\n // if the child node is not in a cluster\n if (this.clusteredNodes[childNodeId] === undefined) {\n if (childNodeId !== parentNodeId) {\n if (options.joinCondition === undefined) {\n childEdgesObj[edge.id] = edge;\n childNodesObj[childNodeId] = this.body.nodes[childNodeId];\n } else {\n // clone the options and insert some additional parameters that could be interesting.\n var childClonedOptions = NetworkUtil.cloneOptions(this.body.nodes[childNodeId]);\n if (options.joinCondition(parentClonedOptions, childClonedOptions) === true) {\n childEdgesObj[edge.id] = edge;\n childNodesObj[childNodeId] = this.body.nodes[childNodeId];\n }\n }\n } else {\n // swallow the edge if it is self-referencing.\n childEdgesObj[edge.id] = edge;\n }\n }\n }\n }\n var childNodeIDs = _mapInstanceProperty(_context = _Object$keys(childNodesObj)).call(_context, function (childNode) {\n return childNodesObj[childNode].id;\n });\n for (var childNodeKey in childNodesObj) {\n if (!Object.prototype.hasOwnProperty.call(childNodesObj, childNodeKey)) continue;\n var childNode = childNodesObj[childNodeKey];\n for (var y = 0; y < childNode.edges.length; y++) {\n var childEdge = childNode.edges[y];\n if (_indexOfInstanceProperty(childNodeIDs).call(childNodeIDs, this._getConnectedId(childEdge, childNode.id)) > -1) {\n childEdgesObj[childEdge.id] = childEdge;\n }\n }\n }\n this._cluster(childNodesObj, childEdgesObj, options, refreshData);\n }\n\n /**\n * This function creates the edges that will be attached to the cluster\n * It looks for edges that are connected to the nodes from the \"outside' of the cluster.\n *\n * @param {{Node.id: vis.Node}} childNodesObj\n * @param {{vis.Edge.id: vis.Edge}} childEdgesObj\n * @param {object} clusterNodeProperties\n * @param {object} clusterEdgeProperties\n * @private\n */\n }, {\n key: \"_createClusterEdges\",\n value: function _createClusterEdges(childNodesObj, childEdgesObj, clusterNodeProperties, clusterEdgeProperties) {\n var edge, childNodeId, childNode, toId, fromId, otherNodeId;\n\n // loop over all child nodes and their edges to find edges going out of the cluster\n // these edges will be replaced by clusterEdges.\n var childKeys = _Object$keys(childNodesObj);\n var createEdges = [];\n for (var i = 0; i < childKeys.length; i++) {\n childNodeId = childKeys[i];\n childNode = childNodesObj[childNodeId];\n\n // construct new edges from the cluster to others\n for (var j = 0; j < childNode.edges.length; j++) {\n edge = childNode.edges[j];\n // we only handle edges that are visible to the system, not the disabled ones from the clustering process.\n if (this.clusteredEdges[edge.id] === undefined) {\n // self-referencing edges will be added to the \"hidden\" list\n if (edge.toId == edge.fromId) {\n childEdgesObj[edge.id] = edge;\n } else {\n // set up the from and to.\n if (edge.toId == childNodeId) {\n // this is a double equals because ints and strings can be interchanged here.\n toId = clusterNodeProperties.id;\n fromId = edge.fromId;\n otherNodeId = fromId;\n } else {\n toId = edge.toId;\n fromId = clusterNodeProperties.id;\n otherNodeId = toId;\n }\n }\n\n // Only edges from the cluster outwards are being replaced.\n if (childNodesObj[otherNodeId] === undefined) {\n createEdges.push({\n edge: edge,\n fromId: fromId,\n toId: toId\n });\n }\n }\n }\n }\n\n //\n // Here we actually create the replacement edges.\n //\n // We could not do this in the loop above as the creation process\n // would add an edge to the edges array we are iterating over.\n //\n // NOTE: a clustered edge can have multiple base edges!\n //\n var newEdges = [];\n\n /**\n * Find a cluster edge which matches the given created edge.\n *\n * @param {vis.Edge} createdEdge\n * @returns {vis.Edge}\n */\n var getNewEdge = function getNewEdge(createdEdge) {\n for (var _j2 = 0; _j2 < newEdges.length; _j2++) {\n var newEdge = newEdges[_j2];\n\n // We replace both to and from edges with a single cluster edge\n var matchToDirection = createdEdge.fromId === newEdge.fromId && createdEdge.toId === newEdge.toId;\n var matchFromDirection = createdEdge.fromId === newEdge.toId && createdEdge.toId === newEdge.fromId;\n if (matchToDirection || matchFromDirection) {\n return newEdge;\n }\n }\n return null;\n };\n for (var _j3 = 0; _j3 < createEdges.length; _j3++) {\n var createdEdge = createEdges[_j3];\n var _edge = createdEdge.edge;\n var newEdge = getNewEdge(createdEdge);\n if (newEdge === null) {\n // Create a clustered edge for this connection\n newEdge = this._createClusteredEdge(createdEdge.fromId, createdEdge.toId, _edge, clusterEdgeProperties);\n newEdges.push(newEdge);\n } else {\n newEdge.clusteringEdgeReplacingIds.push(_edge.id);\n }\n\n // also reference the new edge in the old edge\n this.body.edges[_edge.id].edgeReplacedById = newEdge.id;\n\n // hide the replaced edge\n this._backupEdgeOptions(_edge);\n _edge.setOptions({\n physics: false\n });\n }\n }\n\n /**\n * This function checks the options that can be supplied to the different cluster functions\n * for certain fields and inserts defaults if needed\n *\n * @param {object} options\n * @returns {*}\n * @private\n */\n }, {\n key: \"_checkOptions\",\n value: function _checkOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (options.clusterEdgeProperties === undefined) {\n options.clusterEdgeProperties = {};\n }\n if (options.clusterNodeProperties === undefined) {\n options.clusterNodeProperties = {};\n }\n return options;\n }\n\n /**\n *\n * @param {object} childNodesObj | object with node objects, id as keys, same as childNodes except it also contains a source node\n * @param {object} childEdgesObj | object with edge objects, id as keys\n * @param {Array} options | object with {clusterNodeProperties, clusterEdgeProperties, processProperties}\n * @param {boolean} refreshData | when true, do not wrap up\n * @private\n */\n }, {\n key: \"_cluster\",\n value: function _cluster(childNodesObj, childEdgesObj, options) {\n var refreshData = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;\n // Remove nodes which are already clustered\n var tmpNodesToRemove = [];\n for (var nodeId in childNodesObj) {\n if (Object.prototype.hasOwnProperty.call(childNodesObj, nodeId)) {\n if (this.clusteredNodes[nodeId] !== undefined) {\n tmpNodesToRemove.push(nodeId);\n }\n }\n }\n for (var n = 0; n < tmpNodesToRemove.length; ++n) {\n delete childNodesObj[tmpNodesToRemove[n]];\n }\n\n // kill condition: no nodes don't bother\n if (_Object$keys(childNodesObj).length == 0) {\n return;\n }\n\n // allow clusters of 1 if options allow\n if (_Object$keys(childNodesObj).length == 1 && options.clusterNodeProperties.allowSingleNodeCluster != true) {\n return;\n }\n var clusterNodeProperties = deepExtend({}, options.clusterNodeProperties);\n\n // construct the clusterNodeProperties\n if (options.processProperties !== undefined) {\n // get the childNode options\n var childNodesOptions = [];\n for (var _nodeId in childNodesObj) {\n if (Object.prototype.hasOwnProperty.call(childNodesObj, _nodeId)) {\n var clonedOptions = NetworkUtil.cloneOptions(childNodesObj[_nodeId]);\n childNodesOptions.push(clonedOptions);\n }\n }\n\n // get cluster properties based on childNodes\n var childEdgesOptions = [];\n for (var edgeId in childEdgesObj) {\n if (Object.prototype.hasOwnProperty.call(childEdgesObj, edgeId)) {\n // these cluster edges will be removed on creation of the cluster.\n if (edgeId.substr(0, 12) !== \"clusterEdge:\") {\n var _clonedOptions = NetworkUtil.cloneOptions(childEdgesObj[edgeId], \"edge\");\n childEdgesOptions.push(_clonedOptions);\n }\n }\n }\n clusterNodeProperties = options.processProperties(clusterNodeProperties, childNodesOptions, childEdgesOptions);\n if (!clusterNodeProperties) {\n throw new Error(\"The processProperties function does not return properties!\");\n }\n }\n\n // check if we have an unique id;\n if (clusterNodeProperties.id === undefined) {\n clusterNodeProperties.id = \"cluster:\" + v4();\n }\n var clusterId = clusterNodeProperties.id;\n if (clusterNodeProperties.label === undefined) {\n clusterNodeProperties.label = \"cluster\";\n }\n\n // give the clusterNode a position if it does not have one.\n var pos = undefined;\n if (clusterNodeProperties.x === undefined) {\n pos = this._getClusterPosition(childNodesObj);\n clusterNodeProperties.x = pos.x;\n }\n if (clusterNodeProperties.y === undefined) {\n if (pos === undefined) {\n pos = this._getClusterPosition(childNodesObj);\n }\n clusterNodeProperties.y = pos.y;\n }\n\n // force the ID to remain the same\n clusterNodeProperties.id = clusterId;\n\n // create the cluster Node\n // Note that allowSingleNodeCluster, if present, is stored in the options as well\n var clusterNode = this.body.functions.createNode(clusterNodeProperties, Cluster);\n clusterNode.containedNodes = childNodesObj;\n clusterNode.containedEdges = childEdgesObj;\n // cache a copy from the cluster edge properties if we have to reconnect others later on\n clusterNode.clusterEdgeProperties = options.clusterEdgeProperties;\n\n // finally put the cluster node into global\n this.body.nodes[clusterNodeProperties.id] = clusterNode;\n this._clusterEdges(childNodesObj, childEdgesObj, clusterNodeProperties, options.clusterEdgeProperties);\n\n // set ID to undefined so no duplicates arise\n clusterNodeProperties.id = undefined;\n\n // wrap up\n if (refreshData === true) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n\n /**\n *\n * @param {Edge} edge\n * @private\n */\n }, {\n key: \"_backupEdgeOptions\",\n value: function _backupEdgeOptions(edge) {\n if (this.clusteredEdges[edge.id] === undefined) {\n this.clusteredEdges[edge.id] = {\n physics: edge.options.physics\n };\n }\n }\n\n /**\n *\n * @param {Edge} edge\n * @private\n */\n }, {\n key: \"_restoreEdge\",\n value: function _restoreEdge(edge) {\n var originalOptions = this.clusteredEdges[edge.id];\n if (originalOptions !== undefined) {\n edge.setOptions({\n physics: originalOptions.physics\n });\n delete this.clusteredEdges[edge.id];\n }\n }\n\n /**\n * Check if a node is a cluster.\n *\n * @param {Node.id} nodeId\n * @returns {*}\n */\n }, {\n key: \"isCluster\",\n value: function isCluster(nodeId) {\n if (this.body.nodes[nodeId] !== undefined) {\n return this.body.nodes[nodeId].isCluster === true;\n } else {\n console.error(\"Node does not exist.\");\n return false;\n }\n }\n\n /**\n * get the position of the cluster node based on what's inside\n *\n * @param {object} childNodesObj | object with node objects, id as keys\n * @returns {{x: number, y: number}}\n * @private\n */\n }, {\n key: \"_getClusterPosition\",\n value: function _getClusterPosition(childNodesObj) {\n var childKeys = _Object$keys(childNodesObj);\n var minX = childNodesObj[childKeys[0]].x;\n var maxX = childNodesObj[childKeys[0]].x;\n var minY = childNodesObj[childKeys[0]].y;\n var maxY = childNodesObj[childKeys[0]].y;\n var node;\n for (var i = 1; i < childKeys.length; i++) {\n node = childNodesObj[childKeys[i]];\n minX = node.x < minX ? node.x : minX;\n maxX = node.x > maxX ? node.x : maxX;\n minY = node.y < minY ? node.y : minY;\n maxY = node.y > maxY ? node.y : maxY;\n }\n return {\n x: 0.5 * (minX + maxX),\n y: 0.5 * (minY + maxY)\n };\n }\n\n /**\n * Open a cluster by calling this function.\n *\n * @param {vis.Edge.id} clusterNodeId | the ID of the cluster node\n * @param {object} options\n * @param {boolean} refreshData | wrap up afterwards if not true\n */\n }, {\n key: \"openCluster\",\n value: function openCluster(clusterNodeId, options) {\n var refreshData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n // kill conditions\n if (clusterNodeId === undefined) {\n throw new Error(\"No clusterNodeId supplied to openCluster.\");\n }\n var clusterNode = this.body.nodes[clusterNodeId];\n if (clusterNode === undefined) {\n throw new Error(\"The clusterNodeId supplied to openCluster does not exist.\");\n }\n if (clusterNode.isCluster !== true || clusterNode.containedNodes === undefined || clusterNode.containedEdges === undefined) {\n throw new Error(\"The node:\" + clusterNodeId + \" is not a valid cluster.\");\n }\n\n // Check if current cluster is clustered itself\n var stack = this.findNode(clusterNodeId);\n var parentIndex = _indexOfInstanceProperty(stack).call(stack, clusterNodeId) - 1;\n if (parentIndex >= 0) {\n // Current cluster is clustered; transfer contained nodes and edges to parent\n var parentClusterNodeId = stack[parentIndex];\n var parentClusterNode = this.body.nodes[parentClusterNodeId];\n\n // clustering.clusteredNodes and clustering.clusteredEdges remain unchanged\n parentClusterNode._openChildCluster(clusterNodeId);\n\n // All components of child cluster node have been transferred. It can die now.\n delete this.body.nodes[clusterNodeId];\n if (refreshData === true) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n return;\n }\n\n // main body\n var containedNodes = clusterNode.containedNodes;\n var containedEdges = clusterNode.containedEdges;\n\n // allow the user to position the nodes after release.\n if (options !== undefined && options.releaseFunction !== undefined && typeof options.releaseFunction === \"function\") {\n var positions = {};\n var clusterPosition = {\n x: clusterNode.x,\n y: clusterNode.y\n };\n for (var nodeId in containedNodes) {\n if (Object.prototype.hasOwnProperty.call(containedNodes, nodeId)) {\n var containedNode = this.body.nodes[nodeId];\n positions[nodeId] = {\n x: containedNode.x,\n y: containedNode.y\n };\n }\n }\n var newPositions = options.releaseFunction(clusterPosition, positions);\n for (var _nodeId2 in containedNodes) {\n if (Object.prototype.hasOwnProperty.call(containedNodes, _nodeId2)) {\n var _containedNode = this.body.nodes[_nodeId2];\n if (newPositions[_nodeId2] !== undefined) {\n _containedNode.x = newPositions[_nodeId2].x === undefined ? clusterNode.x : newPositions[_nodeId2].x;\n _containedNode.y = newPositions[_nodeId2].y === undefined ? clusterNode.y : newPositions[_nodeId2].y;\n }\n }\n }\n } else {\n // copy the position from the cluster\n forEach$5(containedNodes, function (containedNode) {\n // inherit position\n if (containedNode.options.fixed.x === false) {\n containedNode.x = clusterNode.x;\n }\n if (containedNode.options.fixed.y === false) {\n containedNode.y = clusterNode.y;\n }\n });\n }\n\n // release nodes\n for (var _nodeId3 in containedNodes) {\n if (Object.prototype.hasOwnProperty.call(containedNodes, _nodeId3)) {\n var _containedNode2 = this.body.nodes[_nodeId3];\n\n // inherit speed\n _containedNode2.vx = clusterNode.vx;\n _containedNode2.vy = clusterNode.vy;\n _containedNode2.setOptions({\n physics: true\n });\n delete this.clusteredNodes[_nodeId3];\n }\n }\n\n // copy the clusterNode edges because we cannot iterate over an object that we add or remove from.\n var edgesToBeDeleted = [];\n for (var i = 0; i < clusterNode.edges.length; i++) {\n edgesToBeDeleted.push(clusterNode.edges[i]);\n }\n\n // actually handling the deleting.\n for (var _i3 = 0; _i3 < edgesToBeDeleted.length; _i3++) {\n var edge = edgesToBeDeleted[_i3];\n var otherNodeId = this._getConnectedId(edge, clusterNodeId);\n var otherNode = this.clusteredNodes[otherNodeId];\n for (var j = 0; j < edge.clusteringEdgeReplacingIds.length; j++) {\n var transferId = edge.clusteringEdgeReplacingIds[j];\n var transferEdge = this.body.edges[transferId];\n if (transferEdge === undefined) continue;\n\n // if the other node is in another cluster, we transfer ownership of this edge to the other cluster\n if (otherNode !== undefined) {\n // transfer ownership:\n var otherCluster = this.body.nodes[otherNode.clusterId];\n otherCluster.containedEdges[transferEdge.id] = transferEdge;\n\n // delete local reference\n delete containedEdges[transferEdge.id];\n\n // get to and from\n var fromId = transferEdge.fromId;\n var toId = transferEdge.toId;\n if (transferEdge.toId == otherNodeId) {\n toId = otherNode.clusterId;\n } else {\n fromId = otherNode.clusterId;\n }\n\n // create new cluster edge from the otherCluster\n this._createClusteredEdge(fromId, toId, transferEdge, otherCluster.clusterEdgeProperties, {\n hidden: false,\n physics: true\n });\n } else {\n this._restoreEdge(transferEdge);\n }\n }\n edge.remove();\n }\n\n // handle the releasing of the edges\n for (var edgeId in containedEdges) {\n if (Object.prototype.hasOwnProperty.call(containedEdges, edgeId)) {\n this._restoreEdge(containedEdges[edgeId]);\n }\n }\n\n // remove clusterNode\n delete this.body.nodes[clusterNodeId];\n if (refreshData === true) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n\n /**\n *\n * @param {Cluster.id} clusterId\n * @returns {Array.}\n */\n }, {\n key: \"getNodesInCluster\",\n value: function getNodesInCluster(clusterId) {\n var nodesArray = [];\n if (this.isCluster(clusterId) === true) {\n var containedNodes = this.body.nodes[clusterId].containedNodes;\n for (var nodeId in containedNodes) {\n if (Object.prototype.hasOwnProperty.call(containedNodes, nodeId)) {\n nodesArray.push(this.body.nodes[nodeId].id);\n }\n }\n }\n return nodesArray;\n }\n\n /**\n * Get the stack clusterId's that a certain node resides in. cluster A -> cluster B -> cluster C -> node\n *\n * If a node can't be found in the chain, return an empty array.\n *\n * @param {string|number} nodeId\n * @returns {Array}\n */\n }, {\n key: \"findNode\",\n value: function findNode(nodeId) {\n var stack = [];\n var max = 100;\n var counter = 0;\n var node;\n while (this.clusteredNodes[nodeId] !== undefined && counter < max) {\n node = this.body.nodes[nodeId];\n if (node === undefined) return [];\n stack.push(node.id);\n nodeId = this.clusteredNodes[nodeId].clusterId;\n counter++;\n }\n node = this.body.nodes[nodeId];\n if (node === undefined) return [];\n stack.push(node.id);\n _reverseInstanceProperty(stack).call(stack);\n return stack;\n }\n\n /**\n * Using a clustered nodeId, update with the new options\n *\n * @param {Node.id} clusteredNodeId\n * @param {object} newOptions\n */\n }, {\n key: \"updateClusteredNode\",\n value: function updateClusteredNode(clusteredNodeId, newOptions) {\n if (clusteredNodeId === undefined) {\n throw new Error(\"No clusteredNodeId supplied to updateClusteredNode.\");\n }\n if (newOptions === undefined) {\n throw new Error(\"No newOptions supplied to updateClusteredNode.\");\n }\n if (this.body.nodes[clusteredNodeId] === undefined) {\n throw new Error(\"The clusteredNodeId supplied to updateClusteredNode does not exist.\");\n }\n this.body.nodes[clusteredNodeId].setOptions(newOptions);\n this.body.emitter.emit(\"_dataChanged\");\n }\n\n /**\n * Using a base edgeId, update all related clustered edges with the new options\n *\n * @param {vis.Edge.id} startEdgeId\n * @param {object} newOptions\n */\n }, {\n key: \"updateEdge\",\n value: function updateEdge(startEdgeId, newOptions) {\n if (startEdgeId === undefined) {\n throw new Error(\"No startEdgeId supplied to updateEdge.\");\n }\n if (newOptions === undefined) {\n throw new Error(\"No newOptions supplied to updateEdge.\");\n }\n if (this.body.edges[startEdgeId] === undefined) {\n throw new Error(\"The startEdgeId supplied to updateEdge does not exist.\");\n }\n var allEdgeIds = this.getClusteredEdges(startEdgeId);\n for (var i = 0; i < allEdgeIds.length; i++) {\n var edge = this.body.edges[allEdgeIds[i]];\n edge.setOptions(newOptions);\n }\n this.body.emitter.emit(\"_dataChanged\");\n }\n\n /**\n * Get a stack of clusterEdgeId's (+base edgeid) that a base edge is the same as. cluster edge C -> cluster edge B -> cluster edge A -> base edge(edgeId)\n *\n * @param {vis.Edge.id} edgeId\n * @returns {Array.}\n */\n }, {\n key: \"getClusteredEdges\",\n value: function getClusteredEdges(edgeId) {\n var stack = [];\n var max = 100;\n var counter = 0;\n while (edgeId !== undefined && this.body.edges[edgeId] !== undefined && counter < max) {\n stack.push(this.body.edges[edgeId].id);\n edgeId = this.body.edges[edgeId].edgeReplacedById;\n counter++;\n }\n _reverseInstanceProperty(stack).call(stack);\n return stack;\n }\n\n /**\n * Get the base edge id of clusterEdgeId. cluster edge (clusteredEdgeId) -> cluster edge B -> cluster edge C -> base edge\n *\n * @param {vis.Edge.id} clusteredEdgeId\n * @returns {vis.Edge.id} baseEdgeId\n *\n * TODO: deprecate in 5.0.0. Method getBaseEdges() is the correct one to use.\n */\n }, {\n key: \"getBaseEdge\",\n value: function getBaseEdge(clusteredEdgeId) {\n // Just kludge this by returning the first base edge id found\n return this.getBaseEdges(clusteredEdgeId)[0];\n }\n\n /**\n * Get all regular edges for this clustered edge id.\n *\n * @param {vis.Edge.id} clusteredEdgeId\n * @returns {Array.} all baseEdgeId's under this clustered edge\n */\n }, {\n key: \"getBaseEdges\",\n value: function getBaseEdges(clusteredEdgeId) {\n var IdsToHandle = [clusteredEdgeId];\n var doneIds = [];\n var foundIds = [];\n var max = 100;\n var counter = 0;\n while (IdsToHandle.length > 0 && counter < max) {\n var nextId = IdsToHandle.pop();\n if (nextId === undefined) continue; // Paranoia here and onwards\n var nextEdge = this.body.edges[nextId];\n if (nextEdge === undefined) continue;\n counter++;\n var replacingIds = nextEdge.clusteringEdgeReplacingIds;\n if (replacingIds === undefined) {\n // nextId is a base id\n foundIds.push(nextId);\n } else {\n // Another cluster edge, unravel this one as well\n for (var i = 0; i < replacingIds.length; ++i) {\n var replacingId = replacingIds[i];\n\n // Don't add if already handled\n // TODO: never triggers; find a test-case which does\n if (_indexOfInstanceProperty(IdsToHandle).call(IdsToHandle, replacingIds) !== -1 || _indexOfInstanceProperty(doneIds).call(doneIds, replacingIds) !== -1) {\n continue;\n }\n IdsToHandle.push(replacingId);\n }\n }\n doneIds.push(nextId);\n }\n return foundIds;\n }\n\n /**\n * Get the Id the node is connected to\n *\n * @param {vis.Edge} edge\n * @param {Node.id} nodeId\n * @returns {*}\n * @private\n */\n }, {\n key: \"_getConnectedId\",\n value: function _getConnectedId(edge, nodeId) {\n if (edge.toId != nodeId) {\n return edge.toId;\n } else if (edge.fromId != nodeId) {\n return edge.fromId;\n } else {\n return edge.fromId;\n }\n }\n\n /**\n * We determine how many connections denote an important hub.\n * We take the mean + 2*std as the important hub size. (Assuming a normal distribution of data, ~2.2%)\n *\n * @returns {number}\n * @private\n */\n }, {\n key: \"_getHubSize\",\n value: function _getHubSize() {\n var average = 0;\n var averageSquared = 0;\n var hubCounter = 0;\n var largestHub = 0;\n for (var i = 0; i < this.body.nodeIndices.length; i++) {\n var node = this.body.nodes[this.body.nodeIndices[i]];\n if (node.edges.length > largestHub) {\n largestHub = node.edges.length;\n }\n average += node.edges.length;\n averageSquared += Math.pow(node.edges.length, 2);\n hubCounter += 1;\n }\n average = average / hubCounter;\n averageSquared = averageSquared / hubCounter;\n var variance = averageSquared - Math.pow(average, 2);\n var standardDeviation = Math.sqrt(variance);\n var hubThreshold = Math.floor(average + 2 * standardDeviation);\n\n // always have at least one to cluster\n if (hubThreshold > largestHub) {\n hubThreshold = largestHub;\n }\n return hubThreshold;\n }\n\n /**\n * Create an edge for the cluster representation.\n *\n * @param {Node.id} fromId\n * @param {Node.id} toId\n * @param {vis.Edge} baseEdge\n * @param {object} clusterEdgeProperties\n * @param {object} extraOptions\n * @returns {Edge} newly created clustered edge\n * @private\n */\n }, {\n key: \"_createClusteredEdge\",\n value: function _createClusteredEdge(fromId, toId, baseEdge, clusterEdgeProperties, extraOptions) {\n // copy the options of the edge we will replace\n var clonedOptions = NetworkUtil.cloneOptions(baseEdge, \"edge\");\n // make sure the properties of clusterEdges are superimposed on it\n deepExtend(clonedOptions, clusterEdgeProperties);\n\n // set up the edge\n clonedOptions.from = fromId;\n clonedOptions.to = toId;\n clonedOptions.id = \"clusterEdge:\" + v4();\n\n // apply the edge specific options to it if specified\n if (extraOptions !== undefined) {\n deepExtend(clonedOptions, extraOptions);\n }\n var newEdge = this.body.functions.createEdge(clonedOptions);\n newEdge.clusteringEdgeReplacingIds = [baseEdge.id];\n newEdge.connect();\n\n // Register the new edge\n this.body.edges[newEdge.id] = newEdge;\n return newEdge;\n }\n\n /**\n * Add the passed child nodes and edges to the given cluster node.\n *\n * @param {object | Node} childNodes hash of nodes or single node to add in cluster\n * @param {object | Edge} childEdges hash of edges or single edge to take into account when clustering\n * @param {Node} clusterNode cluster node to add nodes and edges to\n * @param {object} [clusterEdgeProperties]\n * @private\n */\n }, {\n key: \"_clusterEdges\",\n value: function _clusterEdges(childNodes, childEdges, clusterNode, clusterEdgeProperties) {\n if (childEdges instanceof Edge) {\n var edge = childEdges;\n var obj = {};\n obj[edge.id] = edge;\n childEdges = obj;\n }\n if (childNodes instanceof Node) {\n var node = childNodes;\n var _obj = {};\n _obj[node.id] = node;\n childNodes = _obj;\n }\n if (clusterNode === undefined || clusterNode === null) {\n throw new Error(\"_clusterEdges: parameter clusterNode required\");\n }\n if (clusterEdgeProperties === undefined) {\n // Take the required properties from the cluster node\n clusterEdgeProperties = clusterNode.clusterEdgeProperties;\n }\n\n // create the new edges that will connect to the cluster.\n // All self-referencing edges will be added to childEdges here.\n this._createClusterEdges(childNodes, childEdges, clusterNode, clusterEdgeProperties);\n\n // disable the childEdges\n for (var edgeId in childEdges) {\n if (Object.prototype.hasOwnProperty.call(childEdges, edgeId)) {\n if (this.body.edges[edgeId] !== undefined) {\n var _edge2 = this.body.edges[edgeId];\n // cache the options before changing\n this._backupEdgeOptions(_edge2);\n // disable physics and hide the edge\n _edge2.setOptions({\n physics: false\n });\n }\n }\n }\n\n // disable the childNodes\n for (var nodeId in childNodes) {\n if (Object.prototype.hasOwnProperty.call(childNodes, nodeId)) {\n this.clusteredNodes[nodeId] = {\n clusterId: clusterNode.id,\n node: this.body.nodes[nodeId]\n };\n this.body.nodes[nodeId].setOptions({\n physics: false\n });\n }\n }\n }\n\n /**\n * Determine in which cluster given nodeId resides.\n *\n * If not in cluster, return undefined.\n *\n * NOTE: If you know a cleaner way to do this, please enlighten me (wimrijnders).\n *\n * @param {Node.id} nodeId\n * @returns {Node|undefined} Node instance for cluster, if present\n * @private\n */\n }, {\n key: \"_getClusterNodeForNode\",\n value: function _getClusterNodeForNode(nodeId) {\n if (nodeId === undefined) return undefined;\n var clusteredNode = this.clusteredNodes[nodeId];\n\n // NOTE: If no cluster info found, it should actually be an error\n if (clusteredNode === undefined) return undefined;\n var clusterId = clusteredNode.clusterId;\n if (clusterId === undefined) return undefined;\n return this.body.nodes[clusterId];\n }\n\n /**\n * Internal helper function for conditionally removing items in array\n *\n * Done like this because Array.filter() is not fully supported by all IE's.\n *\n * @param {Array} arr\n * @param {Function} callback\n * @returns {Array}\n * @private\n */\n }, {\n key: \"_filter\",\n value: function _filter(arr, callback) {\n var ret = [];\n forEach$5(arr, function (item) {\n if (callback(item)) {\n ret.push(item);\n }\n });\n return ret;\n }\n\n /**\n * Scan all edges for changes in clustering and adjust this if necessary.\n *\n * Call this (internally) after there has been a change in node or edge data.\n *\n * Pre: States of this.body.nodes and this.body.edges consistent\n * Pre: this.clusteredNodes and this.clusteredEdge consistent with containedNodes and containedEdges\n * of cluster nodes.\n */\n }, {\n key: \"_updateState\",\n value: function _updateState() {\n var _this4 = this;\n var nodeId;\n var deletedNodeIds = [];\n var deletedEdgeIds = {};\n\n /**\n * Utility function to iterate over clustering nodes only\n *\n * @param {Function} callback function to call for each cluster node\n */\n var eachClusterNode = function eachClusterNode(callback) {\n forEach$5(_this4.body.nodes, function (node) {\n if (node.isCluster === true) {\n callback(node);\n }\n });\n };\n\n //\n // Remove deleted regular nodes from clustering\n //\n\n // Determine the deleted nodes\n for (nodeId in this.clusteredNodes) {\n if (!Object.prototype.hasOwnProperty.call(this.clusteredNodes, nodeId)) continue;\n var node = this.body.nodes[nodeId];\n if (node === undefined) {\n deletedNodeIds.push(nodeId);\n }\n }\n\n // Remove nodes from cluster nodes\n eachClusterNode(function (clusterNode) {\n for (var n = 0; n < deletedNodeIds.length; n++) {\n delete clusterNode.containedNodes[deletedNodeIds[n]];\n }\n });\n\n // Remove nodes from cluster list\n for (var n = 0; n < deletedNodeIds.length; n++) {\n delete this.clusteredNodes[deletedNodeIds[n]];\n }\n\n //\n // Remove deleted edges from clustering\n //\n\n // Add the deleted clustered edges to the list\n forEach$5(this.clusteredEdges, function (edgeId) {\n var edge = _this4.body.edges[edgeId];\n if (edge === undefined || !edge.endPointsValid()) {\n deletedEdgeIds[edgeId] = edgeId;\n }\n });\n\n // Cluster nodes can also contain edges which are not clustered,\n // i.e. nodes 1-2 within cluster with an edge in between.\n // So the cluster nodes also need to be scanned for invalid edges\n eachClusterNode(function (clusterNode) {\n forEach$5(clusterNode.containedEdges, function (edge, edgeId) {\n if (!edge.endPointsValid() && !deletedEdgeIds[edgeId]) {\n deletedEdgeIds[edgeId] = edgeId;\n }\n });\n });\n\n // Also scan for cluster edges which need to be removed in the active list.\n // Regular edges have been removed beforehand, so this only picks up the cluster edges.\n forEach$5(this.body.edges, function (edge, edgeId) {\n // Explicitly scan the contained edges for validity\n var isValid = true;\n var replacedIds = edge.clusteringEdgeReplacingIds;\n if (replacedIds !== undefined) {\n var numValid = 0;\n forEach$5(replacedIds, function (containedEdgeId) {\n var containedEdge = _this4.body.edges[containedEdgeId];\n if (containedEdge !== undefined && containedEdge.endPointsValid()) {\n numValid += 1;\n }\n });\n isValid = numValid > 0;\n }\n if (!edge.endPointsValid() || !isValid) {\n deletedEdgeIds[edgeId] = edgeId;\n }\n });\n\n // Remove edges from cluster nodes\n eachClusterNode(function (clusterNode) {\n forEach$5(deletedEdgeIds, function (deletedEdgeId) {\n delete clusterNode.containedEdges[deletedEdgeId];\n forEach$5(clusterNode.edges, function (edge, m) {\n if (edge.id === deletedEdgeId) {\n clusterNode.edges[m] = null; // Don't want to directly delete here, because in the loop\n return;\n }\n edge.clusteringEdgeReplacingIds = _this4._filter(edge.clusteringEdgeReplacingIds, function (id) {\n return !deletedEdgeIds[id];\n });\n });\n\n // Clean up the nulls\n clusterNode.edges = _this4._filter(clusterNode.edges, function (item) {\n return item !== null;\n });\n });\n });\n\n // Remove from cluster list\n forEach$5(deletedEdgeIds, function (edgeId) {\n delete _this4.clusteredEdges[edgeId];\n });\n\n // Remove cluster edges from active list (this.body.edges).\n // deletedEdgeIds still contains id of regular edges, but these should all\n // be gone when you reach here.\n forEach$5(deletedEdgeIds, function (edgeId) {\n delete _this4.body.edges[edgeId];\n });\n\n //\n // Check changed cluster state of edges\n //\n\n // Iterating over keys here, because edges may be removed in the loop\n var ids = _Object$keys(this.body.edges);\n forEach$5(ids, function (edgeId) {\n var edge = _this4.body.edges[edgeId];\n var shouldBeClustered = _this4._isClusteredNode(edge.fromId) || _this4._isClusteredNode(edge.toId);\n if (shouldBeClustered === _this4._isClusteredEdge(edge.id)) {\n return; // all is well\n }\n\n if (shouldBeClustered) {\n // add edge to clustering\n var clusterFrom = _this4._getClusterNodeForNode(edge.fromId);\n if (clusterFrom !== undefined) {\n _this4._clusterEdges(_this4.body.nodes[edge.fromId], edge, clusterFrom);\n }\n var clusterTo = _this4._getClusterNodeForNode(edge.toId);\n if (clusterTo !== undefined) {\n _this4._clusterEdges(_this4.body.nodes[edge.toId], edge, clusterTo);\n }\n\n // TODO: check that it works for both edges clustered\n // (This might be paranoia)\n } else {\n delete _this4._clusterEdges[edgeId];\n _this4._restoreEdge(edge);\n // This should not be happening, the state should\n // be properly updated at this point.\n //\n // If it *is* reached during normal operation, then we have to implement\n // undo clustering for this edge here.\n // throw new Error('remove edge from clustering not implemented!')\n }\n });\n\n // Clusters may be nested to any level. Keep on opening until nothing to open\n var changed = false;\n var continueLoop = true;\n var _loop2 = function _loop2() {\n var clustersToOpen = [];\n\n // Determine the id's of clusters that need opening\n eachClusterNode(function (clusterNode) {\n var numNodes = _Object$keys(clusterNode.containedNodes).length;\n var allowSingle = clusterNode.options.allowSingleNodeCluster === true;\n if (allowSingle && numNodes < 1 || !allowSingle && numNodes < 2) {\n clustersToOpen.push(clusterNode.id);\n }\n });\n\n // Open them\n for (var _n = 0; _n < clustersToOpen.length; ++_n) {\n _this4.openCluster(clustersToOpen[_n], {}, false /* Don't refresh, we're in an refresh/update already */);\n }\n\n continueLoop = clustersToOpen.length > 0;\n changed = changed || continueLoop;\n };\n while (continueLoop) {\n _loop2();\n }\n if (changed) {\n this._updateState(); // Redo this method (recursion possible! should be safe)\n }\n }\n\n /**\n * Determine if node with given id is part of a cluster.\n *\n * @param {Node.id} nodeId\n * @returns {boolean} true if part of a cluster.\n */\n }, {\n key: \"_isClusteredNode\",\n value: function _isClusteredNode(nodeId) {\n return this.clusteredNodes[nodeId] !== undefined;\n }\n\n /**\n * Determine if edge with given id is not visible due to clustering.\n *\n * An edge is considered clustered if:\n * - it is directly replaced by a clustering edge\n * - any of its connecting nodes is in a cluster\n *\n * @param {vis.Edge.id} edgeId\n * @returns {boolean} true if part of a cluster.\n */\n }, {\n key: \"_isClusteredEdge\",\n value: function _isClusteredEdge(edgeId) {\n return this.clusteredEdges[edgeId] !== undefined;\n }\n }]);\n return ClusterEngine;\n}();\n\n/**\n * Initializes window.requestAnimationFrame() to a usable form.\n *\n * Specifically, set up this method for the case of running on node.js with jsdom enabled.\n *\n * NOTES:\n *\n * On node.js, when calling this directly outside of this class, `window` is not defined.\n * This happens even if jsdom is used.\n * For node.js + jsdom, `window` is available at the moment the constructor is called.\n * For this reason, the called is placed within the constructor.\n * Even then, `window.requestAnimationFrame()` is not defined, so it still needs to be added.\n * During unit testing, it happens that the window object is reset during execution, causing\n * a runtime error due to missing `requestAnimationFrame()`. This needs to be compensated for,\n * see `_requestNextFrame()`.\n * Since this is a global object, it may affect other modules besides `Network`. With normal\n * usage, this does not cause any problems. During unit testing, errors may occur. These have\n * been compensated for, see comment block in _requestNextFrame().\n *\n * @private\n */\nfunction _initRequestAnimationFrame() {\n var func;\n if (window !== undefined) {\n func = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;\n }\n if (func === undefined) {\n // window or method not present, setting mock requestAnimationFrame\n window.requestAnimationFrame = function (callback) {\n //console.log(\"Called mock requestAnimationFrame\");\n callback();\n };\n } else {\n window.requestAnimationFrame = func;\n }\n}\n\n/**\n * The canvas renderer\n */\nvar CanvasRenderer = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {Canvas} canvas\n */\n function CanvasRenderer(body, canvas) {\n _classCallCheck(this, CanvasRenderer);\n _initRequestAnimationFrame();\n this.body = body;\n this.canvas = canvas;\n this.redrawRequested = false;\n this.renderTimer = undefined;\n this.requiresTimeout = true;\n this.renderingActive = false;\n this.renderRequests = 0;\n this.allowRedraw = true;\n this.dragging = false;\n this.zooming = false;\n this.options = {};\n this.defaultOptions = {\n hideEdgesOnDrag: false,\n hideEdgesOnZoom: false,\n hideNodesOnDrag: false\n };\n _Object$assign(this.options, this.defaultOptions);\n this._determineBrowserMethod();\n this.bindEventListeners();\n }\n\n /**\n * Binds event listeners\n */\n _createClass(CanvasRenderer, [{\n key: \"bindEventListeners\",\n value: function bindEventListeners() {\n var _this = this,\n _context2;\n this.body.emitter.on(\"dragStart\", function () {\n _this.dragging = true;\n });\n this.body.emitter.on(\"dragEnd\", function () {\n _this.dragging = false;\n });\n this.body.emitter.on(\"zoom\", function () {\n _this.zooming = true;\n window.clearTimeout(_this.zoomTimeoutId);\n _this.zoomTimeoutId = _setTimeout(function () {\n var _context;\n _this.zooming = false;\n _bindInstanceProperty$1(_context = _this._requestRedraw).call(_context, _this)();\n }, 250);\n });\n this.body.emitter.on(\"_resizeNodes\", function () {\n _this._resizeNodes();\n });\n this.body.emitter.on(\"_redraw\", function () {\n if (_this.renderingActive === false) {\n _this._redraw();\n }\n });\n this.body.emitter.on(\"_blockRedraw\", function () {\n _this.allowRedraw = false;\n });\n this.body.emitter.on(\"_allowRedraw\", function () {\n _this.allowRedraw = true;\n _this.redrawRequested = false;\n });\n this.body.emitter.on(\"_requestRedraw\", _bindInstanceProperty$1(_context2 = this._requestRedraw).call(_context2, this));\n this.body.emitter.on(\"_startRendering\", function () {\n _this.renderRequests += 1;\n _this.renderingActive = true;\n _this._startRendering();\n });\n this.body.emitter.on(\"_stopRendering\", function () {\n _this.renderRequests -= 1;\n _this.renderingActive = _this.renderRequests > 0;\n _this.renderTimer = undefined;\n });\n this.body.emitter.on(\"destroy\", function () {\n _this.renderRequests = 0;\n _this.allowRedraw = false;\n _this.renderingActive = false;\n if (_this.requiresTimeout === true) {\n clearTimeout(_this.renderTimer);\n } else {\n window.cancelAnimationFrame(_this.renderTimer);\n }\n _this.body.emitter.off();\n });\n }\n\n /**\n *\n * @param {object} options\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options !== undefined) {\n var fields = [\"hideEdgesOnDrag\", \"hideEdgesOnZoom\", \"hideNodesOnDrag\"];\n selectiveDeepExtend(fields, this.options, options);\n }\n }\n\n /**\n * Prepare the drawing of the next frame.\n *\n * Calls the callback when the next frame can or will be drawn.\n *\n * @param {Function} callback\n * @param {number} delay - timeout case only, wait this number of milliseconds\n * @returns {Function | undefined}\n * @private\n */\n }, {\n key: \"_requestNextFrame\",\n value: function _requestNextFrame(callback, delay) {\n // During unit testing, it happens that the mock window object is reset while\n // the next frame is still pending. Then, either 'window' is not present, or\n // 'requestAnimationFrame()' is not present because it is not defined on the\n // mock window object.\n //\n // As a consequence, unrelated unit tests may appear to fail, even if the problem\n // described happens in the current unit test.\n //\n // This is not something that will happen in normal operation, but we still need\n // to take it into account.\n //\n if (typeof window === \"undefined\") return; // Doing `if (window === undefined)` does not work here!\n\n var timer;\n var myWindow = window; // Grab a reference to reduce the possibility that 'window' is reset\n // while running this method.\n\n if (this.requiresTimeout === true) {\n // wait given number of milliseconds and perform the animation step function\n timer = _setTimeout(callback, delay);\n } else {\n if (myWindow.requestAnimationFrame) {\n timer = myWindow.requestAnimationFrame(callback);\n }\n }\n return timer;\n }\n\n /**\n *\n * @private\n */\n }, {\n key: \"_startRendering\",\n value: function _startRendering() {\n if (this.renderingActive === true) {\n if (this.renderTimer === undefined) {\n var _context3;\n this.renderTimer = this._requestNextFrame(_bindInstanceProperty$1(_context3 = this._renderStep).call(_context3, this), this.simulationInterval);\n }\n }\n }\n\n /**\n *\n * @private\n */\n }, {\n key: \"_renderStep\",\n value: function _renderStep() {\n if (this.renderingActive === true) {\n // reset the renderTimer so a new scheduled animation step can be set\n this.renderTimer = undefined;\n if (this.requiresTimeout === true) {\n // this schedules a new simulation step\n this._startRendering();\n }\n this._redraw();\n if (this.requiresTimeout === false) {\n // this schedules a new simulation step\n this._startRendering();\n }\n }\n }\n\n /**\n * Redraw the network with the current data\n * chart will be resized too.\n */\n }, {\n key: \"redraw\",\n value: function redraw() {\n this.body.emitter.emit(\"setSize\");\n this._redraw();\n }\n\n /**\n * Redraw the network with the current data\n *\n * @private\n */\n }, {\n key: \"_requestRedraw\",\n value: function _requestRedraw() {\n var _this2 = this;\n if (this.redrawRequested !== true && this.renderingActive === false && this.allowRedraw === true) {\n this.redrawRequested = true;\n this._requestNextFrame(function () {\n _this2._redraw(false);\n }, 0);\n }\n }\n\n /**\n * Redraw the network with the current data\n *\n * @param {boolean} [hidden=false] | Used to get the first estimate of the node sizes.\n * Only the nodes are drawn after which they are quickly drawn over.\n * @private\n */\n }, {\n key: \"_redraw\",\n value: function _redraw() {\n var hidden = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n if (this.allowRedraw === true) {\n this.body.emitter.emit(\"initRedraw\");\n this.redrawRequested = false;\n var drawLater = {\n drawExternalLabels: null\n };\n\n // when the container div was hidden, this fixes it back up!\n if (this.canvas.frame.canvas.width === 0 || this.canvas.frame.canvas.height === 0) {\n this.canvas.setSize();\n }\n this.canvas.setTransform();\n var ctx = this.canvas.getContext();\n\n // clear the canvas\n var w = this.canvas.frame.canvas.clientWidth;\n var h = this.canvas.frame.canvas.clientHeight;\n ctx.clearRect(0, 0, w, h);\n\n // if the div is hidden, we stop the redraw here for performance.\n if (this.canvas.frame.clientWidth === 0) {\n return;\n }\n\n // set scaling and translation\n ctx.save();\n ctx.translate(this.body.view.translation.x, this.body.view.translation.y);\n ctx.scale(this.body.view.scale, this.body.view.scale);\n ctx.beginPath();\n this.body.emitter.emit(\"beforeDrawing\", ctx);\n ctx.closePath();\n if (hidden === false) {\n if ((this.dragging === false || this.dragging === true && this.options.hideEdgesOnDrag === false) && (this.zooming === false || this.zooming === true && this.options.hideEdgesOnZoom === false)) {\n this._drawEdges(ctx);\n }\n }\n if (this.dragging === false || this.dragging === true && this.options.hideNodesOnDrag === false) {\n var _this$_drawNodes = this._drawNodes(ctx, hidden),\n drawExternalLabels = _this$_drawNodes.drawExternalLabels;\n drawLater.drawExternalLabels = drawExternalLabels;\n }\n\n // draw the arrows last so they will be at the top\n if (hidden === false) {\n if ((this.dragging === false || this.dragging === true && this.options.hideEdgesOnDrag === false) && (this.zooming === false || this.zooming === true && this.options.hideEdgesOnZoom === false)) {\n this._drawArrows(ctx);\n }\n }\n if (drawLater.drawExternalLabels != null) {\n drawLater.drawExternalLabels();\n }\n if (hidden === false) {\n this._drawSelectionBox(ctx);\n }\n ctx.beginPath();\n this.body.emitter.emit(\"afterDrawing\", ctx);\n ctx.closePath();\n\n // restore original scaling and translation\n ctx.restore();\n if (hidden === true) {\n ctx.clearRect(0, 0, w, h);\n }\n }\n }\n\n /**\n * Redraw all nodes\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} [alwaysShow]\n * @private\n */\n }, {\n key: \"_resizeNodes\",\n value: function _resizeNodes() {\n this.canvas.setTransform();\n var ctx = this.canvas.getContext();\n ctx.save();\n ctx.translate(this.body.view.translation.x, this.body.view.translation.y);\n ctx.scale(this.body.view.scale, this.body.view.scale);\n var nodes = this.body.nodes;\n var node;\n\n // resize all nodes\n for (var nodeId in nodes) {\n if (Object.prototype.hasOwnProperty.call(nodes, nodeId)) {\n node = nodes[nodeId];\n node.resize(ctx);\n node.updateBoundingBox(ctx, node.selected);\n }\n }\n\n // restore original scaling and translation\n ctx.restore();\n }\n\n /**\n * Redraw all nodes\n *\n * @param {CanvasRenderingContext2D} ctx 2D context of a HTML canvas\n * @param {boolean} [alwaysShow]\n * @private\n * @returns {object} Callbacks to draw later on higher layers.\n */\n }, {\n key: \"_drawNodes\",\n value: function _drawNodes(ctx) {\n var alwaysShow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var nodes = this.body.nodes;\n var nodeIndices = this.body.nodeIndices;\n var node;\n var selected = [];\n var hovered = [];\n var margin = 20;\n var topLeft = this.canvas.DOMtoCanvas({\n x: -margin,\n y: -margin\n });\n var bottomRight = this.canvas.DOMtoCanvas({\n x: this.canvas.frame.canvas.clientWidth + margin,\n y: this.canvas.frame.canvas.clientHeight + margin\n });\n var viewableArea = {\n top: topLeft.y,\n left: topLeft.x,\n bottom: bottomRight.y,\n right: bottomRight.x\n };\n var _drawExternalLabels = [];\n\n // draw unselected nodes;\n for (var _i = 0; _i < nodeIndices.length; _i++) {\n node = nodes[nodeIndices[_i]];\n // set selected and hovered nodes aside\n if (node.hover) {\n hovered.push(nodeIndices[_i]);\n } else if (node.isSelected()) {\n selected.push(nodeIndices[_i]);\n } else {\n if (alwaysShow === true) {\n var drawLater = node.draw(ctx);\n if (drawLater.drawExternalLabel != null) {\n _drawExternalLabels.push(drawLater.drawExternalLabel);\n }\n } else if (node.isBoundingBoxOverlappingWith(viewableArea) === true) {\n var _drawLater = node.draw(ctx);\n if (_drawLater.drawExternalLabel != null) {\n _drawExternalLabels.push(_drawLater.drawExternalLabel);\n }\n } else {\n node.updateBoundingBox(ctx, node.selected);\n }\n }\n }\n var i;\n var selectedLength = selected.length;\n var hoveredLength = hovered.length;\n\n // draw the selected nodes on top\n for (i = 0; i < selectedLength; i++) {\n node = nodes[selected[i]];\n var _drawLater2 = node.draw(ctx);\n if (_drawLater2.drawExternalLabel != null) {\n _drawExternalLabels.push(_drawLater2.drawExternalLabel);\n }\n }\n\n // draw hovered nodes above everything else: fixes https://github.com/visjs/vis-network/issues/226\n for (i = 0; i < hoveredLength; i++) {\n node = nodes[hovered[i]];\n var _drawLater3 = node.draw(ctx);\n if (_drawLater3.drawExternalLabel != null) {\n _drawExternalLabels.push(_drawLater3.drawExternalLabel);\n }\n }\n return {\n drawExternalLabels: function drawExternalLabels() {\n for (var _i2 = 0, _drawExternalLabels2 = _drawExternalLabels; _i2 < _drawExternalLabels2.length; _i2++) {\n var draw = _drawExternalLabels2[_i2];\n draw();\n }\n }\n };\n }\n\n /**\n * Redraw all edges\n *\n * @param {CanvasRenderingContext2D} ctx 2D context of a HTML canvas\n * @private\n */\n }, {\n key: \"_drawEdges\",\n value: function _drawEdges(ctx) {\n var edges = this.body.edges;\n var edgeIndices = this.body.edgeIndices;\n for (var i = 0; i < edgeIndices.length; i++) {\n var edge = edges[edgeIndices[i]];\n if (edge.connected === true) {\n edge.draw(ctx);\n }\n }\n }\n\n /**\n * Redraw all arrows\n *\n * @param {CanvasRenderingContext2D} ctx 2D context of a HTML canvas\n * @private\n */\n }, {\n key: \"_drawArrows\",\n value: function _drawArrows(ctx) {\n var edges = this.body.edges;\n var edgeIndices = this.body.edgeIndices;\n for (var i = 0; i < edgeIndices.length; i++) {\n var edge = edges[edgeIndices[i]];\n if (edge.connected === true) {\n edge.drawArrows(ctx);\n }\n }\n }\n\n /**\n * Determine if the browser requires a setTimeout or a requestAnimationFrame. This was required because\n * some implementations (safari and IE9) did not support requestAnimationFrame\n *\n * @private\n */\n }, {\n key: \"_determineBrowserMethod\",\n value: function _determineBrowserMethod() {\n if (typeof window !== \"undefined\") {\n var browserType = navigator.userAgent.toLowerCase();\n this.requiresTimeout = false;\n if (_indexOfInstanceProperty(browserType).call(browserType, \"msie 9.0\") != -1) {\n // IE 9\n this.requiresTimeout = true;\n } else if (_indexOfInstanceProperty(browserType).call(browserType, \"safari\") != -1) {\n // safari\n if (_indexOfInstanceProperty(browserType).call(browserType, \"chrome\") <= -1) {\n this.requiresTimeout = true;\n }\n }\n } else {\n this.requiresTimeout = true;\n }\n }\n\n /**\n * Redraw selection box\n *\n * @param {CanvasRenderingContext2D} ctx 2D context of a HTML canvas\n * @private\n */\n }, {\n key: \"_drawSelectionBox\",\n value: function _drawSelectionBox(ctx) {\n if (this.body.selectionBox.show) {\n ctx.beginPath();\n var width = this.body.selectionBox.position.end.x - this.body.selectionBox.position.start.x;\n var height = this.body.selectionBox.position.end.y - this.body.selectionBox.position.start.y;\n ctx.rect(this.body.selectionBox.position.start.x, this.body.selectionBox.position.start.y, width, height);\n ctx.fillStyle = \"rgba(151, 194, 252, 0.2)\";\n ctx.fillRect(this.body.selectionBox.position.start.x, this.body.selectionBox.position.start.y, width, height);\n ctx.strokeStyle = \"rgba(151, 194, 252, 1)\";\n ctx.stroke();\n } else {\n ctx.closePath();\n }\n }\n }]);\n return CanvasRenderer;\n}();\n\nvar setIntervalExports = {};\nvar setInterval$1 = {\n get exports(){ return setIntervalExports; },\n set exports(v){ setIntervalExports = v; },\n};\n\nvar path$1 = path$z;\n\nvar setInterval = path$1.setInterval;\n\n(function (module) {\n\tmodule.exports = setInterval;\n} (setInterval$1));\n\nvar _setInterval = /*@__PURE__*/getDefaultExportFromCjs(setIntervalExports);\n\n/**\n * Register a touch event, taking place before a gesture\n *\n * @param {Hammer} hammer A hammer instance\n * @param {Function} callback Callback, called as callback(event)\n */\nfunction onTouch(hammer, callback) {\n callback.inputHandler = function (event) {\n if (event.isFirst) {\n callback(event);\n }\n };\n hammer.on(\"hammer.input\", callback.inputHandler);\n}\n\n/**\n * Register a release event, taking place after a gesture\n *\n * @param {Hammer} hammer A hammer instance\n * @param {Function} callback Callback, called as callback(event)\n * @returns {*}\n */\nfunction onRelease(hammer, callback) {\n callback.inputHandler = function (event) {\n if (event.isFinal) {\n callback(event);\n }\n };\n return hammer.on(\"hammer.input\", callback.inputHandler);\n}\n\n/**\n * Create the main frame for the Network.\n * This function is executed once when a Network object is created. The frame\n * contains a canvas, and this canvas contains all objects like the axis and\n * nodes.\n */\nvar Canvas = /*#__PURE__*/function () {\n /**\n * @param {object} body\n */\n function Canvas(body) {\n _classCallCheck(this, Canvas);\n this.body = body;\n this.pixelRatio = 1;\n this.cameraState = {};\n this.initialized = false;\n this.canvasViewCenter = {};\n this._cleanupCallbacks = [];\n this.options = {};\n this.defaultOptions = {\n autoResize: true,\n height: \"100%\",\n width: \"100%\"\n };\n _Object$assign(this.options, this.defaultOptions);\n this.bindEventListeners();\n }\n\n /**\n * Binds event listeners\n */\n _createClass(Canvas, [{\n key: \"bindEventListeners\",\n value: function bindEventListeners() {\n var _this = this,\n _context;\n // bind the events\n this.body.emitter.once(\"resize\", function (obj) {\n if (obj.width !== 0) {\n _this.body.view.translation.x = obj.width * 0.5;\n }\n if (obj.height !== 0) {\n _this.body.view.translation.y = obj.height * 0.5;\n }\n });\n this.body.emitter.on(\"setSize\", _bindInstanceProperty$1(_context = this.setSize).call(_context, this));\n this.body.emitter.on(\"destroy\", function () {\n _this.hammerFrame.destroy();\n _this.hammer.destroy();\n _this._cleanUp();\n });\n }\n\n /**\n * @param {object} options\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n var _this2 = this;\n if (options !== undefined) {\n var fields = [\"width\", \"height\", \"autoResize\"];\n selectiveDeepExtend(fields, this.options, options);\n }\n\n // Automatically adapt to changing size of the container element.\n this._cleanUp();\n if (this.options.autoResize === true) {\n var _context2;\n if (window.ResizeObserver) {\n // decent browsers, immediate reactions\n var observer = new ResizeObserver(function () {\n var changed = _this2.setSize();\n if (changed === true) {\n _this2.body.emitter.emit(\"_requestRedraw\");\n }\n });\n var frame = this.frame;\n observer.observe(frame);\n this._cleanupCallbacks.push(function () {\n observer.unobserve(frame);\n });\n } else {\n // IE11, continous polling\n var resizeTimer = _setInterval(function () {\n var changed = _this2.setSize();\n if (changed === true) {\n _this2.body.emitter.emit(\"_requestRedraw\");\n }\n }, 1000);\n this._cleanupCallbacks.push(function () {\n clearInterval(resizeTimer);\n });\n }\n\n // Automatically adapt to changing size of the browser.\n var resizeFunction = _bindInstanceProperty$1(_context2 = this._onResize).call(_context2, this);\n addEventListener(window, \"resize\", resizeFunction);\n this._cleanupCallbacks.push(function () {\n removeEventListener(window, \"resize\", resizeFunction);\n });\n }\n }\n\n /**\n * @private\n */\n }, {\n key: \"_cleanUp\",\n value: function _cleanUp() {\n var _context3, _context4, _context5;\n _forEachInstanceProperty(_context3 = _reverseInstanceProperty(_context4 = _spliceInstanceProperty(_context5 = this._cleanupCallbacks).call(_context5, 0)).call(_context4)).call(_context3, function (callback) {\n try {\n callback();\n } catch (error) {\n console.error(error);\n }\n });\n }\n\n /**\n * @private\n */\n }, {\n key: \"_onResize\",\n value: function _onResize() {\n this.setSize();\n this.body.emitter.emit(\"_redraw\");\n }\n\n /**\n * Get and store the cameraState\n *\n * @param {number} [pixelRatio=this.pixelRatio]\n * @private\n */\n }, {\n key: \"_getCameraState\",\n value: function _getCameraState() {\n var pixelRatio = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.pixelRatio;\n if (this.initialized === true) {\n this.cameraState.previousWidth = this.frame.canvas.width / pixelRatio;\n this.cameraState.previousHeight = this.frame.canvas.height / pixelRatio;\n this.cameraState.scale = this.body.view.scale;\n this.cameraState.position = this.DOMtoCanvas({\n x: 0.5 * this.frame.canvas.width / pixelRatio,\n y: 0.5 * this.frame.canvas.height / pixelRatio\n });\n }\n }\n\n /**\n * Set the cameraState\n *\n * @private\n */\n }, {\n key: \"_setCameraState\",\n value: function _setCameraState() {\n if (this.cameraState.scale !== undefined && this.frame.canvas.clientWidth !== 0 && this.frame.canvas.clientHeight !== 0 && this.pixelRatio !== 0 && this.cameraState.previousWidth > 0 && this.cameraState.previousHeight > 0) {\n var widthRatio = this.frame.canvas.width / this.pixelRatio / this.cameraState.previousWidth;\n var heightRatio = this.frame.canvas.height / this.pixelRatio / this.cameraState.previousHeight;\n var newScale = this.cameraState.scale;\n if (widthRatio != 1 && heightRatio != 1) {\n newScale = this.cameraState.scale * 0.5 * (widthRatio + heightRatio);\n } else if (widthRatio != 1) {\n newScale = this.cameraState.scale * widthRatio;\n } else if (heightRatio != 1) {\n newScale = this.cameraState.scale * heightRatio;\n }\n this.body.view.scale = newScale;\n // this comes from the view module.\n var currentViewCenter = this.DOMtoCanvas({\n x: 0.5 * this.frame.canvas.clientWidth,\n y: 0.5 * this.frame.canvas.clientHeight\n });\n var distanceFromCenter = {\n // offset from view, distance view has to change by these x and y to center the node\n x: currentViewCenter.x - this.cameraState.position.x,\n y: currentViewCenter.y - this.cameraState.position.y\n };\n this.body.view.translation.x += distanceFromCenter.x * this.body.view.scale;\n this.body.view.translation.y += distanceFromCenter.y * this.body.view.scale;\n }\n }\n\n /**\n *\n * @param {number|string} value\n * @returns {string}\n * @private\n */\n }, {\n key: \"_prepareValue\",\n value: function _prepareValue(value) {\n if (typeof value === \"number\") {\n return value + \"px\";\n } else if (typeof value === \"string\") {\n if (_indexOfInstanceProperty(value).call(value, \"%\") !== -1 || _indexOfInstanceProperty(value).call(value, \"px\") !== -1) {\n return value;\n } else if (_indexOfInstanceProperty(value).call(value, \"%\") === -1) {\n return value + \"px\";\n }\n }\n throw new Error(\"Could not use the value supplied for width or height:\" + value);\n }\n\n /**\n * Create the HTML\n */\n }, {\n key: \"_create\",\n value: function _create() {\n // remove all elements from the container element.\n while (this.body.container.hasChildNodes()) {\n this.body.container.removeChild(this.body.container.firstChild);\n }\n this.frame = document.createElement(\"div\");\n this.frame.className = \"vis-network\";\n this.frame.style.position = \"relative\";\n this.frame.style.overflow = \"hidden\";\n this.frame.tabIndex = 0; // tab index is required for keycharm to bind keystrokes to the div instead of the window\n\n //////////////////////////////////////////////////////////////////\n\n this.frame.canvas = document.createElement(\"canvas\");\n this.frame.canvas.style.position = \"relative\";\n this.frame.appendChild(this.frame.canvas);\n if (!this.frame.canvas.getContext) {\n var noCanvas = document.createElement(\"DIV\");\n noCanvas.style.color = \"red\";\n noCanvas.style.fontWeight = \"bold\";\n noCanvas.style.padding = \"10px\";\n noCanvas.innerText = \"Error: your browser does not support HTML canvas\";\n this.frame.canvas.appendChild(noCanvas);\n } else {\n this._setPixelRatio();\n this.setTransform();\n }\n\n // add the frame to the container element\n this.body.container.appendChild(this.frame);\n this.body.view.scale = 1;\n this.body.view.translation = {\n x: 0.5 * this.frame.canvas.clientWidth,\n y: 0.5 * this.frame.canvas.clientHeight\n };\n this._bindHammer();\n }\n\n /**\n * This function binds hammer, it can be repeated over and over due to the uniqueness check.\n *\n * @private\n */\n }, {\n key: \"_bindHammer\",\n value: function _bindHammer() {\n var _this3 = this;\n if (this.hammer !== undefined) {\n this.hammer.destroy();\n }\n this.drag = {};\n this.pinch = {};\n\n // init hammer\n this.hammer = new Hammer(this.frame.canvas);\n this.hammer.get(\"pinch\").set({\n enable: true\n });\n // enable to get better response, todo: test on mobile.\n this.hammer.get(\"pan\").set({\n threshold: 5,\n direction: Hammer.DIRECTION_ALL\n });\n onTouch(this.hammer, function (event) {\n _this3.body.eventListeners.onTouch(event);\n });\n this.hammer.on(\"tap\", function (event) {\n _this3.body.eventListeners.onTap(event);\n });\n this.hammer.on(\"doubletap\", function (event) {\n _this3.body.eventListeners.onDoubleTap(event);\n });\n this.hammer.on(\"press\", function (event) {\n _this3.body.eventListeners.onHold(event);\n });\n this.hammer.on(\"panstart\", function (event) {\n _this3.body.eventListeners.onDragStart(event);\n });\n this.hammer.on(\"panmove\", function (event) {\n _this3.body.eventListeners.onDrag(event);\n });\n this.hammer.on(\"panend\", function (event) {\n _this3.body.eventListeners.onDragEnd(event);\n });\n this.hammer.on(\"pinch\", function (event) {\n _this3.body.eventListeners.onPinch(event);\n });\n\n // TODO: neatly cleanup these handlers when re-creating the Canvas, IF these are done with hammer, event.stopPropagation will not work?\n this.frame.canvas.addEventListener(\"wheel\", function (event) {\n _this3.body.eventListeners.onMouseWheel(event);\n });\n this.frame.canvas.addEventListener(\"mousemove\", function (event) {\n _this3.body.eventListeners.onMouseMove(event);\n });\n this.frame.canvas.addEventListener(\"contextmenu\", function (event) {\n _this3.body.eventListeners.onContext(event);\n });\n this.hammerFrame = new Hammer(this.frame);\n onRelease(this.hammerFrame, function (event) {\n _this3.body.eventListeners.onRelease(event);\n });\n }\n\n /**\n * Set a new size for the network\n *\n * @param {string} width Width in pixels or percentage (for example '800px'\n * or '50%')\n * @param {string} height Height in pixels or percentage (for example '400px'\n * or '30%')\n * @returns {boolean}\n */\n }, {\n key: \"setSize\",\n value: function setSize() {\n var width = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.options.width;\n var height = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.options.height;\n width = this._prepareValue(width);\n height = this._prepareValue(height);\n var emitEvent = false;\n var oldWidth = this.frame.canvas.width;\n var oldHeight = this.frame.canvas.height;\n\n // update the pixel ratio\n //\n // NOTE: Comment in following is rather inconsistent; this is the ONLY place in the code\n // where it is assumed that the pixel ratio could change at runtime.\n // The only way I can think of this happening is a rotating screen or tablet; but then\n // there should be a mechanism for reloading the data (TODO: check if this is present).\n //\n // If the assumption is true (i.e. pixel ratio can change at runtime), then *all* usage\n // of pixel ratio must be overhauled for this.\n //\n // For the time being, I will humor the assumption here, and in the rest of the code assume it is\n // constant.\n var previousRatio = this.pixelRatio; // we cache this because the camera state storage needs the old value\n this._setPixelRatio();\n if (width != this.options.width || height != this.options.height || this.frame.style.width != width || this.frame.style.height != height) {\n this._getCameraState(previousRatio);\n this.frame.style.width = width;\n this.frame.style.height = height;\n this.frame.canvas.style.width = \"100%\";\n this.frame.canvas.style.height = \"100%\";\n this.frame.canvas.width = Math.round(this.frame.canvas.clientWidth * this.pixelRatio);\n this.frame.canvas.height = Math.round(this.frame.canvas.clientHeight * this.pixelRatio);\n this.options.width = width;\n this.options.height = height;\n this.canvasViewCenter = {\n x: 0.5 * this.frame.clientWidth,\n y: 0.5 * this.frame.clientHeight\n };\n emitEvent = true;\n } else {\n // this would adapt the width of the canvas to the width from 100% if and only if\n // there is a change.\n\n var newWidth = Math.round(this.frame.canvas.clientWidth * this.pixelRatio);\n var newHeight = Math.round(this.frame.canvas.clientHeight * this.pixelRatio);\n\n // store the camera if there is a change in size.\n if (this.frame.canvas.width !== newWidth || this.frame.canvas.height !== newHeight) {\n this._getCameraState(previousRatio);\n }\n if (this.frame.canvas.width !== newWidth) {\n this.frame.canvas.width = newWidth;\n emitEvent = true;\n }\n if (this.frame.canvas.height !== newHeight) {\n this.frame.canvas.height = newHeight;\n emitEvent = true;\n }\n }\n if (emitEvent === true) {\n this.body.emitter.emit(\"resize\", {\n width: Math.round(this.frame.canvas.width / this.pixelRatio),\n height: Math.round(this.frame.canvas.height / this.pixelRatio),\n oldWidth: Math.round(oldWidth / this.pixelRatio),\n oldHeight: Math.round(oldHeight / this.pixelRatio)\n });\n\n // restore the camera on change.\n this._setCameraState();\n }\n\n // set initialized so the get and set camera will work from now on.\n this.initialized = true;\n return emitEvent;\n }\n\n /**\n *\n * @returns {CanvasRenderingContext2D}\n */\n }, {\n key: \"getContext\",\n value: function getContext() {\n return this.frame.canvas.getContext(\"2d\");\n }\n\n /**\n * Determine the pixel ratio for various browsers.\n *\n * @returns {number}\n * @private\n */\n }, {\n key: \"_determinePixelRatio\",\n value: function _determinePixelRatio() {\n var ctx = this.getContext();\n if (ctx === undefined) {\n throw new Error(\"Could not get canvax context\");\n }\n var numerator = 1;\n if (typeof window !== \"undefined\") {\n // (window !== undefined) doesn't work here!\n // Protection during unit tests, where 'window' can be missing\n numerator = window.devicePixelRatio || 1;\n }\n var denominator = ctx.webkitBackingStorePixelRatio || ctx.mozBackingStorePixelRatio || ctx.msBackingStorePixelRatio || ctx.oBackingStorePixelRatio || ctx.backingStorePixelRatio || 1;\n return numerator / denominator;\n }\n\n /**\n * Lazy determination of pixel ratio.\n *\n * @private\n */\n }, {\n key: \"_setPixelRatio\",\n value: function _setPixelRatio() {\n this.pixelRatio = this._determinePixelRatio();\n }\n\n /**\n * Set the transform in the contained context, based on its pixelRatio\n */\n }, {\n key: \"setTransform\",\n value: function setTransform() {\n var ctx = this.getContext();\n if (ctx === undefined) {\n throw new Error(\"Could not get canvax context\");\n }\n ctx.setTransform(this.pixelRatio, 0, 0, this.pixelRatio, 0, 0);\n }\n\n /**\n * Convert the X coordinate in DOM-space (coordinate point in browser relative to the container div) to\n * the X coordinate in canvas-space (the simulation sandbox, which the camera looks upon)\n *\n * @param {number} x\n * @returns {number}\n * @private\n */\n }, {\n key: \"_XconvertDOMtoCanvas\",\n value: function _XconvertDOMtoCanvas(x) {\n return (x - this.body.view.translation.x) / this.body.view.scale;\n }\n\n /**\n * Convert the X coordinate in canvas-space (the simulation sandbox, which the camera looks upon) to\n * the X coordinate in DOM-space (coordinate point in browser relative to the container div)\n *\n * @param {number} x\n * @returns {number}\n * @private\n */\n }, {\n key: \"_XconvertCanvasToDOM\",\n value: function _XconvertCanvasToDOM(x) {\n return x * this.body.view.scale + this.body.view.translation.x;\n }\n\n /**\n * Convert the Y coordinate in DOM-space (coordinate point in browser relative to the container div) to\n * the Y coordinate in canvas-space (the simulation sandbox, which the camera looks upon)\n *\n * @param {number} y\n * @returns {number}\n * @private\n */\n }, {\n key: \"_YconvertDOMtoCanvas\",\n value: function _YconvertDOMtoCanvas(y) {\n return (y - this.body.view.translation.y) / this.body.view.scale;\n }\n\n /**\n * Convert the Y coordinate in canvas-space (the simulation sandbox, which the camera looks upon) to\n * the Y coordinate in DOM-space (coordinate point in browser relative to the container div)\n *\n * @param {number} y\n * @returns {number}\n * @private\n */\n }, {\n key: \"_YconvertCanvasToDOM\",\n value: function _YconvertCanvasToDOM(y) {\n return y * this.body.view.scale + this.body.view.translation.y;\n }\n\n /**\n * @param {point} pos\n * @returns {point}\n */\n }, {\n key: \"canvasToDOM\",\n value: function canvasToDOM(pos) {\n return {\n x: this._XconvertCanvasToDOM(pos.x),\n y: this._YconvertCanvasToDOM(pos.y)\n };\n }\n\n /**\n *\n * @param {point} pos\n * @returns {point}\n */\n }, {\n key: \"DOMtoCanvas\",\n value: function DOMtoCanvas(pos) {\n return {\n x: this._XconvertDOMtoCanvas(pos.x),\n y: this._YconvertDOMtoCanvas(pos.y)\n };\n }\n }]);\n return Canvas;\n}();\n\n/**\r\n * Validate the fit options, replace missing optional values by defaults etc.\r\n *\r\n * @param rawOptions - The raw options.\r\n * @param allNodeIds - All node ids that will be used if nodes are omitted in\r\n * the raw options.\r\n * @returns Options with everything filled in and validated.\r\n */\nfunction normalizeFitOptions(rawOptions, allNodeIds) {\n var options = _Object$assign({\n nodes: allNodeIds,\n minZoomLevel: Number.MIN_VALUE,\n maxZoomLevel: 1\n }, rawOptions !== null && rawOptions !== void 0 ? rawOptions : {});\n if (!_Array$isArray(options.nodes)) {\n throw new TypeError(\"Nodes has to be an array of ids.\");\n }\n if (options.nodes.length === 0) {\n options.nodes = allNodeIds;\n }\n if (!(typeof options.minZoomLevel === \"number\" && options.minZoomLevel > 0)) {\n throw new TypeError(\"Min zoom level has to be a number higher than zero.\");\n }\n if (!(typeof options.maxZoomLevel === \"number\" && options.minZoomLevel <= options.maxZoomLevel)) {\n throw new TypeError(\"Max zoom level has to be a number higher than min zoom level.\");\n }\n return options;\n}\n\n/**\n * The view\n */\nvar View = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {Canvas} canvas\n */\n function View(body, canvas) {\n var _context,\n _this = this,\n _context2;\n _classCallCheck(this, View);\n this.body = body;\n this.canvas = canvas;\n this.animationSpeed = 1 / this.renderRefreshRate;\n this.animationEasingFunction = \"easeInOutQuint\";\n this.easingTime = 0;\n this.sourceScale = 0;\n this.targetScale = 0;\n this.sourceTranslation = 0;\n this.targetTranslation = 0;\n this.lockedOnNodeId = undefined;\n this.lockedOnNodeOffset = undefined;\n this.touchTime = 0;\n this.viewFunction = undefined;\n this.body.emitter.on(\"fit\", _bindInstanceProperty$1(_context = this.fit).call(_context, this));\n this.body.emitter.on(\"animationFinished\", function () {\n _this.body.emitter.emit(\"_stopRendering\");\n });\n this.body.emitter.on(\"unlockNode\", _bindInstanceProperty$1(_context2 = this.releaseNode).call(_context2, this));\n }\n\n /**\n *\n * @param {object} [options={}]\n */\n _createClass(View, [{\n key: \"setOptions\",\n value: function setOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n this.options = options;\n }\n\n /**\n * This function zooms out to fit all data on screen based on amount of nodes\n *\n * @param {object} [options={{nodes=Array}}]\n * @param options\n * @param {boolean} [initialZoom=false] | zoom based on fitted formula or range, true = fitted, default = false;\n */\n }, {\n key: \"fit\",\n value: function fit(options) {\n var initialZoom = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n options = normalizeFitOptions(options, this.body.nodeIndices);\n var canvasWidth = this.canvas.frame.canvas.clientWidth;\n var canvasHeight = this.canvas.frame.canvas.clientHeight;\n var range;\n var zoomLevel;\n if (canvasWidth === 0 || canvasHeight === 0) {\n // There's no point in trying to fit into zero sized canvas. This could\n // potentially even result in invalid values being computed. For example\n // for network without nodes and zero sized canvas the zoom level would\n // end up being computed as 0/0 which results in NaN. In any other case\n // this would be 0/something which is again pointless to compute.\n zoomLevel = 1;\n range = NetworkUtil.getRange(this.body.nodes, options.nodes);\n } else if (initialZoom === true) {\n // check if more than half of the nodes have a predefined position. If so, we use the range, not the approximation.\n var positionDefined = 0;\n for (var nodeId in this.body.nodes) {\n if (Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId)) {\n var node = this.body.nodes[nodeId];\n if (node.predefinedPosition === true) {\n positionDefined += 1;\n }\n }\n }\n if (positionDefined > 0.5 * this.body.nodeIndices.length) {\n this.fit(options, false);\n return;\n }\n range = NetworkUtil.getRange(this.body.nodes, options.nodes);\n var numberOfNodes = this.body.nodeIndices.length;\n zoomLevel = 12.662 / (numberOfNodes + 7.4147) + 0.0964822; // this is obtained from fitting a dataset from 5 points with scale levels that looked good.\n\n // correct for larger canvasses.\n var factor = Math.min(canvasWidth / 600, canvasHeight / 600);\n zoomLevel *= factor;\n } else {\n this.body.emitter.emit(\"_resizeNodes\");\n range = NetworkUtil.getRange(this.body.nodes, options.nodes);\n var xDistance = Math.abs(range.maxX - range.minX) * 1.1;\n var yDistance = Math.abs(range.maxY - range.minY) * 1.1;\n var xZoomLevel = canvasWidth / xDistance;\n var yZoomLevel = canvasHeight / yDistance;\n zoomLevel = xZoomLevel <= yZoomLevel ? xZoomLevel : yZoomLevel;\n }\n if (zoomLevel > options.maxZoomLevel) {\n zoomLevel = options.maxZoomLevel;\n } else if (zoomLevel < options.minZoomLevel) {\n zoomLevel = options.minZoomLevel;\n }\n var center = NetworkUtil.findCenter(range);\n var animationOptions = {\n position: center,\n scale: zoomLevel,\n animation: options.animation\n };\n this.moveTo(animationOptions);\n }\n\n // animation\n\n /**\n * Center a node in view.\n *\n * @param {number} nodeId\n * @param {number} [options]\n */\n }, {\n key: \"focus\",\n value: function focus(nodeId) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (this.body.nodes[nodeId] !== undefined) {\n var nodePosition = {\n x: this.body.nodes[nodeId].x,\n y: this.body.nodes[nodeId].y\n };\n options.position = nodePosition;\n options.lockedOnNode = nodeId;\n this.moveTo(options);\n } else {\n console.error(\"Node: \" + nodeId + \" cannot be found.\");\n }\n }\n\n /**\n *\n * @param {object} options | options.offset = {x:number, y:number} // offset from the center in DOM pixels\n * | options.scale = number // scale to move to\n * | options.position = {x:number, y:number} // position to move to\n * | options.animation = {duration:number, easingFunction:String} || Boolean // position to move to\n */\n }, {\n key: \"moveTo\",\n value: function moveTo(options) {\n if (options === undefined) {\n options = {};\n return;\n }\n if (options.offset != null) {\n if (options.offset.x != null) {\n // Coerce and verify that x is valid.\n options.offset.x = +options.offset.x;\n if (!_Number$isFinite(options.offset.x)) {\n throw new TypeError('The option \"offset.x\" has to be a finite number.');\n }\n } else {\n options.offset.x = 0;\n }\n if (options.offset.y != null) {\n // Coerce and verify that y is valid.\n options.offset.y = +options.offset.y;\n if (!_Number$isFinite(options.offset.y)) {\n throw new TypeError('The option \"offset.y\" has to be a finite number.');\n }\n } else {\n options.offset.x = 0;\n }\n } else {\n options.offset = {\n x: 0,\n y: 0\n };\n }\n if (options.position != null) {\n if (options.position.x != null) {\n // Coerce and verify that x is valid.\n options.position.x = +options.position.x;\n if (!_Number$isFinite(options.position.x)) {\n throw new TypeError('The option \"position.x\" has to be a finite number.');\n }\n } else {\n options.position.x = 0;\n }\n if (options.position.y != null) {\n // Coerce and verify that y is valid.\n options.position.y = +options.position.y;\n if (!_Number$isFinite(options.position.y)) {\n throw new TypeError('The option \"position.y\" has to be a finite number.');\n }\n } else {\n options.position.x = 0;\n }\n } else {\n options.position = this.getViewPosition();\n }\n if (options.scale != null) {\n // Coerce and verify that the scale is valid.\n options.scale = +options.scale;\n if (!(options.scale > 0)) {\n throw new TypeError('The option \"scale\" has to be a number greater than zero.');\n }\n } else {\n options.scale = this.body.view.scale;\n }\n if (options.animation === undefined) {\n options.animation = {\n duration: 0\n };\n }\n if (options.animation === false) {\n options.animation = {\n duration: 0\n };\n }\n if (options.animation === true) {\n options.animation = {};\n }\n if (options.animation.duration === undefined) {\n options.animation.duration = 1000;\n } // default duration\n if (options.animation.easingFunction === undefined) {\n options.animation.easingFunction = \"easeInOutQuad\";\n } // default easing function\n\n this.animateView(options);\n }\n\n /**\n *\n * @param {object} options | options.offset = {x:number, y:number} // offset from the center in DOM pixels\n * | options.time = number // animation time in milliseconds\n * | options.scale = number // scale to animate to\n * | options.position = {x:number, y:number} // position to animate to\n * | options.easingFunction = String // linear, easeInQuad, easeOutQuad, easeInOutQuad,\n * // easeInCubic, easeOutCubic, easeInOutCubic,\n * // easeInQuart, easeOutQuart, easeInOutQuart,\n * // easeInQuint, easeOutQuint, easeInOutQuint\n */\n }, {\n key: \"animateView\",\n value: function animateView(options) {\n if (options === undefined) {\n return;\n }\n this.animationEasingFunction = options.animation.easingFunction;\n // release if something focussed on the node\n this.releaseNode();\n if (options.locked === true) {\n this.lockedOnNodeId = options.lockedOnNode;\n this.lockedOnNodeOffset = options.offset;\n }\n\n // forcefully complete the old animation if it was still running\n if (this.easingTime != 0) {\n this._transitionRedraw(true); // by setting easingtime to 1, we finish the animation.\n }\n\n this.sourceScale = this.body.view.scale;\n this.sourceTranslation = this.body.view.translation;\n this.targetScale = options.scale;\n\n // set the scale so the viewCenter is based on the correct zoom level. This is overridden in the transitionRedraw\n // but at least then we'll have the target transition\n this.body.view.scale = this.targetScale;\n var viewCenter = this.canvas.DOMtoCanvas({\n x: 0.5 * this.canvas.frame.canvas.clientWidth,\n y: 0.5 * this.canvas.frame.canvas.clientHeight\n });\n var distanceFromCenter = {\n // offset from view, distance view has to change by these x and y to center the node\n x: viewCenter.x - options.position.x,\n y: viewCenter.y - options.position.y\n };\n this.targetTranslation = {\n x: this.sourceTranslation.x + distanceFromCenter.x * this.targetScale + options.offset.x,\n y: this.sourceTranslation.y + distanceFromCenter.y * this.targetScale + options.offset.y\n };\n\n // if the time is set to 0, don't do an animation\n if (options.animation.duration === 0) {\n if (this.lockedOnNodeId != undefined) {\n var _context3;\n this.viewFunction = _bindInstanceProperty$1(_context3 = this._lockedRedraw).call(_context3, this);\n this.body.emitter.on(\"initRedraw\", this.viewFunction);\n } else {\n this.body.view.scale = this.targetScale;\n this.body.view.translation = this.targetTranslation;\n this.body.emitter.emit(\"_requestRedraw\");\n }\n } else {\n var _context4;\n this.animationSpeed = 1 / (60 * options.animation.duration * 0.001) || 1 / 60; // 60 for 60 seconds, 0.001 for milli's\n this.animationEasingFunction = options.animation.easingFunction;\n this.viewFunction = _bindInstanceProperty$1(_context4 = this._transitionRedraw).call(_context4, this);\n this.body.emitter.on(\"initRedraw\", this.viewFunction);\n this.body.emitter.emit(\"_startRendering\");\n }\n }\n\n /**\n * used to animate smoothly by hijacking the redraw function.\n *\n * @private\n */\n }, {\n key: \"_lockedRedraw\",\n value: function _lockedRedraw() {\n var nodePosition = {\n x: this.body.nodes[this.lockedOnNodeId].x,\n y: this.body.nodes[this.lockedOnNodeId].y\n };\n var viewCenter = this.canvas.DOMtoCanvas({\n x: 0.5 * this.canvas.frame.canvas.clientWidth,\n y: 0.5 * this.canvas.frame.canvas.clientHeight\n });\n var distanceFromCenter = {\n // offset from view, distance view has to change by these x and y to center the node\n x: viewCenter.x - nodePosition.x,\n y: viewCenter.y - nodePosition.y\n };\n var sourceTranslation = this.body.view.translation;\n var targetTranslation = {\n x: sourceTranslation.x + distanceFromCenter.x * this.body.view.scale + this.lockedOnNodeOffset.x,\n y: sourceTranslation.y + distanceFromCenter.y * this.body.view.scale + this.lockedOnNodeOffset.y\n };\n this.body.view.translation = targetTranslation;\n }\n\n /**\n * Resets state of a locked on Node\n */\n }, {\n key: \"releaseNode\",\n value: function releaseNode() {\n if (this.lockedOnNodeId !== undefined && this.viewFunction !== undefined) {\n this.body.emitter.off(\"initRedraw\", this.viewFunction);\n this.lockedOnNodeId = undefined;\n this.lockedOnNodeOffset = undefined;\n }\n }\n\n /**\n * @param {boolean} [finished=false]\n * @private\n */\n }, {\n key: \"_transitionRedraw\",\n value: function _transitionRedraw() {\n var finished = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n this.easingTime += this.animationSpeed;\n this.easingTime = finished === true ? 1.0 : this.easingTime;\n var progress = easingFunctions[this.animationEasingFunction](this.easingTime);\n this.body.view.scale = this.sourceScale + (this.targetScale - this.sourceScale) * progress;\n this.body.view.translation = {\n x: this.sourceTranslation.x + (this.targetTranslation.x - this.sourceTranslation.x) * progress,\n y: this.sourceTranslation.y + (this.targetTranslation.y - this.sourceTranslation.y) * progress\n };\n\n // cleanup\n if (this.easingTime >= 1.0) {\n this.body.emitter.off(\"initRedraw\", this.viewFunction);\n this.easingTime = 0;\n if (this.lockedOnNodeId != undefined) {\n var _context5;\n this.viewFunction = _bindInstanceProperty$1(_context5 = this._lockedRedraw).call(_context5, this);\n this.body.emitter.on(\"initRedraw\", this.viewFunction);\n }\n this.body.emitter.emit(\"animationFinished\");\n }\n }\n\n /**\n *\n * @returns {number}\n */\n }, {\n key: \"getScale\",\n value: function getScale() {\n return this.body.view.scale;\n }\n\n /**\n *\n * @returns {{x: number, y: number}}\n */\n }, {\n key: \"getViewPosition\",\n value: function getViewPosition() {\n return this.canvas.DOMtoCanvas({\n x: 0.5 * this.canvas.frame.canvas.clientWidth,\n y: 0.5 * this.canvas.frame.canvas.clientHeight\n });\n }\n }]);\n return View;\n}();\n\nvar css_248z$1 = \"div.vis-network div.vis-navigation div.vis-button {\\n width: 34px;\\n height: 34px;\\n -moz-border-radius: 17px;\\n border-radius: 17px;\\n position: absolute;\\n display: inline-block;\\n background-position: 2px 2px;\\n background-repeat: no-repeat;\\n cursor: pointer;\\n -webkit-touch-callout: none;\\n -webkit-user-select: none;\\n -khtml-user-select: none;\\n -moz-user-select: none;\\n -ms-user-select: none;\\n user-select: none;\\n}\\n\\ndiv.vis-network div.vis-navigation div.vis-button:hover {\\n box-shadow: 0 0 3px 3px rgba(56, 207, 21, 0.3);\\n}\\n\\ndiv.vis-network div.vis-navigation div.vis-button:active {\\n box-shadow: 0 0 1px 3px rgba(56, 207, 21, 0.95);\\n}\\n\\ndiv.vis-network div.vis-navigation div.vis-button.vis-up {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUii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X6Ud2cwC449PRamifDm6Auc0rTXokci+Xo1EAgBckiDuYGLjpTvntcGIA+SFcp6uUAaAI879VhWrRteYAqn/edq758brXJ1327QMhgJcZjA3EBjNrgZjOG1PkAjyTGENMjZPq5ECQ0MDE9ERBqFZrk0OJ3i4x/7vyIjBxGERt3takgVJEAp9xq3f769WiPDNvSsJdT3HDOEASPelmoBRYT3Kzt5uMtwauJEgSOCpwrk1DIJCoNUMwj9v7MweP9XSQ8/hJPp496fZTAICvLqcyv2B7nRbrgCA03JN5h8ub7A8VqpB437xHvsOy3l3cyaB4L2uqxhti1WLMcSgZQCw7+bOooO3Pk4JBZIYYXISMV5sKH59UePM10GESRGpIf/bE92HU452HywSJIGIllctrhp6YAK5+fHds0lLtJFMXNwkV6fFqA29mROefqiMJj1h6um4a5vY/92dKGaBxIhU5zJTWW2cJmEgGOmeb3c8FxAfb9mdf2RzyGGv5MvU7QwuEySwKHFp/c/M71zA/2F7b1RajnYdLAqMukMVu2YcfmDYE2MD7H+7/Xlq6cRIJqm4zXM+qd3TGjVBir43KSLlXjiELe5TsX+3/yW/ST45PaAHbKmccWh12AP93JNZywj0kSABIobpiXRHjtZ6faout2tyZMadGLXBCxBcvl6NfaAz+tKdFmObpzWl2+tIIBACYy0t/yj34M7HvsKUK+CGassvicX7alYDwwq+vykIEqPVa+Q9gdYk5+V+UE7lj3+FGbuBM/X5JUT8QwIVSSSZiTgmoFR2MfiqYFFPfjpkyrfWPopwxP47AP1pK1g9/dqeAAAAAElFTkSuQmCC');\\n bottom: 50px;\\n left: 55px;\\n}\\ndiv.vis-network div.vis-navigation div.vis-button.vis-down {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAO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qcq9AtioqbJy7ufQ3lhfu8sR+s9+3vL8klACsQSu7AnxMY1MxH7YXJp7oPpLulrrj+9575Ni2aeVt1teWfEWfHQLCaspseHzOU7VWU+aM5G2NoyL4i+6j8XWDNQsmGsKu/cv+nTtjQb/mm7hfENyvqEAK5v8opjPJaL26KGBpd5TfguuBvuZRgBgY6zO0jlyZXXe9JqR+8MK8ntHOMHfHIkhu2b/0yIH7/oXJ0yFlxYnPUdRbvuILgO7+y+91l6Ka6M+cnCf4fMSypXvymHf/vzBTD3CuNGUFKT8lmK5Rs5ASqKiBlAGBXFaiSuni0fkp1pJ7Ed4e/xsAqLk46EWsG1EAAAAASUVORK5CYII=');\\n bottom: 10px;\\n left: 55px;\\n}\\ndiv.vis-network div.vis-navigation div.vis-button.vis-left {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/q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X1XGF8ct++QAAAABJRU5ErkJggg==');\\n bottom: 10px;\\n left: 15px;\\n}\\ndiv.vis-network div.vis-navigation div.vis-button.vis-right {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4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BXE7OmkHzJ6JNemLfv51bniGqzVPoIkyLbpfK7ZMFIkE6FlrMn7Ql+BbiHg+zXGbgLjylDpyosD58KZmKM0cfWHI9//aD5o1VCZrnO83VuQQOja5PMCfwK8n3K2ChIbLVOD9KB36le3A+u/s2Q81C2yRavQmQNdVnamLnmq4nHD9jpB0rwm77jpjTW9E906Bu18fWlWCQHAox9CtGoXTwmS8IThZyXPB+29inuoE6bMsDM9ufEAMNHqJuU8ljMtAKA2B7IhzaWNiLfWjVQb3J10/SGuEZZ7Af1X7+lluZ3HkpgEQPL291M+qbzJgXQcG60ypKlVTGwsMxcFaJW6/hDXVZZvCz3RlrmRiQHwy9nRn2bM6bnas4cLfH6s1RIorsJcFDA2PToR7Z7QezfQD9qzwvI6TyTZC47ttXeiT+2c1+wBgOndoTPLt7mrmCRjvfULQ4O1xsVVchu7b9GysYUAqy3lnsdNb0aXmQuj7PYWL2etuRl6S0OfXLjiGQIdEY6K5esc2BWhjvkqXLO6x08VPKxV6iYAwuBkv5NpvNmtbrhaX2+tWdY70eVNINhtLW0/sjrv6B0/YdJlcGlR2AvE4hUlKwHQ7BU5cz8LRx0HaPY7gXb53L/67+mUfudPmP/twOWS6AQi/j6B4iWS/IlYK+yGYJDB1wWLErLRKd/omOJbAWf03wEAyO9m+/TtS3AAAAAASUVORK5CYII=');\\n bottom: 10px;\\n left: 95px;\\n}\\ndiv.vis-network div.vis-navigation div.vis-button.vis-zoomIn {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz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1LU7yMkItCHzREZrGQV6ONmy5TggHk247sL/1jFqof/hRn/AWfqC0pI+QHBIk3tICXRrFTpF8hlJaqefh6yFxQ6HwQYlK8HAKyt3WsWxl7fAAAAAElFTkSuQmCC');\\n bottom: 10px;\\n right: 15px;\\n}\\ndiv.vis-network div.vis-navigation div.vis-button.vis-zoomOut {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQ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zdW4s+tI5HPBwQTTzziKY3v/7HGlhmS23g90T+OO5L1Nu7MMw3Fv/Tx1f97/FnsAYPui8/D4nBB/oZZR230uoq67auQoLaB37Iio3sEAK52nR39p+zS13HFiilHeYtOOabdC71jQzz2R+ALBbcrjWNF+cfaUwLSrk4KmtsT4T+gK9jG7AKKjv93X1lcfUNNVaantropqddnDCcIoa7lk29S92+/5CpOvQ04VJ79KUe/7iI/Hh40U6c3PyuPjhmWKN8G8Fvnw1A/zmX/vV5h/T+CXstRMUp4kOFOjZiUlWBkFQYdALitRZXRzf3RqWumdgF79NQDBOa2V/iYSHAAAAABJRU5ErkJggg==');\\n bottom: 10px;\\n right: 55px;\\n}\\ndiv.vis-network div.vis-navigation div.vis-button.vis-zoomExtends {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeL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43QBotBECAFFyZHo6dz6CKCizAPFPivzUWqxm2AqIgnwkFvZNn4uczGK3Hah7wpet98UZ85R8aKScIcXYEWpMLkx8fvleHpNjlAWtTsakQa0pVKGcJQqMGUqCHBvfdjp/gTP6xwFzg85PdyaH2J4SUowKiw3889e4KBACnT582W5uKTV2uusAdUFlgzBcFQoFGDT35HwW+82mhqaenxwwA4WtYfRNnUkMZUqsJpEkn8cXU5yktYw2JjsTCMQDwer0ekt6GhgZPUVGRd3fu7qjqdU9Mj7mlpcVD0tvS0uKxWCyVANB5rS3x8s3BFEUFgTTLtuZndQHLBMSfB6pyZtfqMDQ3NzfqTcJisficTqc3BI+8bxh9L8corarM3fnDoIT+rACAU/7m7MOfHbCEwQDQ2Njo6erqinqTOHfuXNjjiI23+ystZ8c7smmkWgVJcN++fRARfLDhlacEUqVEQ1nm77xPrHjSh/+Djo3WmN/s/6OHEOgIPr2h63tVuq5Dud1ukETWoK3zorkzTiiONn/TKlNM4lj24m+Pf13o2wOVHqGA5MsAXjKPrDaqnMvlQnjTzhy0Nlw0d5oI5p3yN62amrk+ve5B5+hXgb47WGX52+V3NgoFOvQKAGUkkTqcbZy5XC7XHYf4zEFr3aXU7jih5uidPPOtvsmzixZr8VMrHjBHddLsHj+Z9Fb/n9a1+T/JDaXey0IpEzEKkHnU8Jj79++PeEwSSimQRGP+Gz8j5DVFBVKQtjBj6JGlNt/D8Y+OpMdlTphiEqcB4tqtsVjfjUtLLkx0J/dOnjWPTg+lEARIEHwaQJVQIYggACC/qxi6rn8ZHL4XETSsf0MU1HOk/CFGYgAwskUqY5eBitRxzn7/a0V1EEBwdqkN6jPI7y4xPmHmC5unbWdQRMqP2d86qANOksU6gvmArNQRNClqABnQgYuK0krI+wCOAyH3DK/vqOXhaf3PAO7mIRjDNV25AAAAAElFTkSuQmCC');\\n bottom: 50px;\\n right: 15px;\\n}\\n\";\nstyleInject(css_248z$1);\n\n/**\r\n * Created by Alex on 11/6/2014.\r\n */\r\nfunction keycharm(options) {\r\n var preventDefault = options && options.preventDefault || false;\r\n\r\n var container = options && options.container || window;\r\n\r\n var _exportFunctions = {};\r\n var _bound = {keydown:{}, keyup:{}};\r\n var _keys = {};\r\n var i;\r\n\r\n // a - z\r\n for (i = 97; i <= 122; i++) {_keys[String.fromCharCode(i)] = {code:65 + (i - 97), shift: false};}\r\n // A - Z\r\n for (i = 65; i <= 90; i++) {_keys[String.fromCharCode(i)] = {code:i, shift: true};}\r\n // 0 - 9\r\n for (i = 0; i <= 9; i++) {_keys['' + i] = {code:48 + i, shift: false};}\r\n // F1 - F12\r\n for (i = 1; i <= 12; i++) {_keys['F' + i] = {code:111 + i, shift: false};}\r\n // num0 - num9\r\n for (i = 0; i <= 9; i++) {_keys['num' + i] = {code:96 + i, shift: false};}\r\n\r\n // numpad misc\r\n _keys['num*'] = {code:106, shift: false};\r\n _keys['num+'] = {code:107, shift: false};\r\n _keys['num-'] = {code:109, shift: false};\r\n _keys['num/'] = {code:111, shift: false};\r\n _keys['num.'] = {code:110, shift: false};\r\n // arrows\r\n _keys['left'] = {code:37, shift: false};\r\n _keys['up'] = {code:38, shift: false};\r\n _keys['right'] = {code:39, shift: false};\r\n _keys['down'] = {code:40, shift: false};\r\n // extra keys\r\n _keys['space'] = {code:32, shift: false};\r\n _keys['enter'] = {code:13, shift: false};\r\n _keys['shift'] = {code:16, shift: undefined};\r\n _keys['esc'] = {code:27, shift: false};\r\n _keys['backspace'] = {code:8, shift: false};\r\n _keys['tab'] = {code:9, shift: false};\r\n _keys['ctrl'] = {code:17, shift: false};\r\n _keys['alt'] = {code:18, shift: false};\r\n _keys['delete'] = {code:46, shift: false};\r\n _keys['pageup'] = {code:33, shift: false};\r\n _keys['pagedown'] = {code:34, shift: false};\r\n // symbols\r\n _keys['='] = {code:187, shift: false};\r\n _keys['-'] = {code:189, shift: false};\r\n _keys[']'] = {code:221, shift: false};\r\n _keys['['] = {code:219, shift: false};\r\n\r\n\r\n\r\n var down = function(event) {handleEvent(event,'keydown');};\r\n var up = function(event) {handleEvent(event,'keyup');};\r\n\r\n // handle the actualy bound key with the event\r\n var handleEvent = function(event,type) {\r\n if (_bound[type][event.keyCode] !== undefined) {\r\n var bound = _bound[type][event.keyCode];\r\n for (var i = 0; i < bound.length; i++) {\r\n if (bound[i].shift === undefined) {\r\n bound[i].fn(event);\r\n }\r\n else if (bound[i].shift == true && event.shiftKey == true) {\r\n bound[i].fn(event);\r\n }\r\n else if (bound[i].shift == false && event.shiftKey == false) {\r\n bound[i].fn(event);\r\n }\r\n }\r\n\r\n if (preventDefault == true) {\r\n event.preventDefault();\r\n }\r\n }\r\n };\r\n\r\n // bind a key to a callback\r\n _exportFunctions.bind = function(key, callback, type) {\r\n if (type === undefined) {\r\n type = 'keydown';\r\n }\r\n if (_keys[key] === undefined) {\r\n throw new Error(\"unsupported key: \" + key);\r\n }\r\n if (_bound[type][_keys[key].code] === undefined) {\r\n _bound[type][_keys[key].code] = [];\r\n }\r\n _bound[type][_keys[key].code].push({fn:callback, shift:_keys[key].shift});\r\n };\r\n\r\n\r\n // bind all keys to a call back (demo purposes)\r\n _exportFunctions.bindAll = function(callback, type) {\r\n if (type === undefined) {\r\n type = 'keydown';\r\n }\r\n for (var key in _keys) {\r\n if (_keys.hasOwnProperty(key)) {\r\n _exportFunctions.bind(key,callback,type);\r\n }\r\n }\r\n };\r\n\r\n // get the key label from an event\r\n _exportFunctions.getKey = function(event) {\r\n for (var key in _keys) {\r\n if (_keys.hasOwnProperty(key)) {\r\n if (event.shiftKey == true && _keys[key].shift == true && event.keyCode == _keys[key].code) {\r\n return key;\r\n }\r\n else if (event.shiftKey == false && _keys[key].shift == false && event.keyCode == _keys[key].code) {\r\n return key;\r\n }\r\n else if (event.keyCode == _keys[key].code && key == 'shift') {\r\n return key;\r\n }\r\n }\r\n }\r\n return \"unknown key, currently not supported\";\r\n };\r\n\r\n // unbind either a specific callback from a key or all of them (by leaving callback undefined)\r\n _exportFunctions.unbind = function(key, callback, type) {\r\n if (type === undefined) {\r\n type = 'keydown';\r\n }\r\n if (_keys[key] === undefined) {\r\n throw new Error(\"unsupported key: \" + key);\r\n }\r\n if (callback !== undefined) {\r\n var newBindings = [];\r\n var bound = _bound[type][_keys[key].code];\r\n if (bound !== undefined) {\r\n for (var i = 0; i < bound.length; i++) {\r\n if (!(bound[i].fn == callback && bound[i].shift == _keys[key].shift)) {\r\n newBindings.push(_bound[type][_keys[key].code][i]);\r\n }\r\n }\r\n }\r\n _bound[type][_keys[key].code] = newBindings;\r\n }\r\n else {\r\n _bound[type][_keys[key].code] = [];\r\n }\r\n };\r\n\r\n // reset all bound variables.\r\n _exportFunctions.reset = function() {\r\n _bound = {keydown:{}, keyup:{}};\r\n };\r\n\r\n // unbind all listeners and reset all variables.\r\n _exportFunctions.destroy = function() {\r\n _bound = {keydown:{}, keyup:{}};\r\n container.removeEventListener('keydown', down, true);\r\n container.removeEventListener('keyup', up, true);\r\n };\r\n\r\n // create listeners.\r\n container.addEventListener('keydown',down,true);\r\n container.addEventListener('keyup',up,true);\r\n\r\n // return the public functions.\r\n return _exportFunctions;\r\n}\n\n/**\n * Navigation Handler\n */\nvar NavigationHandler = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {Canvas} canvas\n */\n function NavigationHandler(body, canvas) {\n var _this = this;\n _classCallCheck(this, NavigationHandler);\n this.body = body;\n this.canvas = canvas;\n this.iconsCreated = false;\n this.navigationHammers = [];\n this.boundFunctions = {};\n this.touchTime = 0;\n this.activated = false;\n this.body.emitter.on(\"activate\", function () {\n _this.activated = true;\n _this.configureKeyboardBindings();\n });\n this.body.emitter.on(\"deactivate\", function () {\n _this.activated = false;\n _this.configureKeyboardBindings();\n });\n this.body.emitter.on(\"destroy\", function () {\n if (_this.keycharm !== undefined) {\n _this.keycharm.destroy();\n }\n });\n this.options = {};\n }\n\n /**\n *\n * @param {object} options\n */\n _createClass(NavigationHandler, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options !== undefined) {\n this.options = options;\n this.create();\n }\n }\n\n /**\n * Creates or refreshes navigation and sets key bindings\n */\n }, {\n key: \"create\",\n value: function create() {\n if (this.options.navigationButtons === true) {\n if (this.iconsCreated === false) {\n this.loadNavigationElements();\n }\n } else if (this.iconsCreated === true) {\n this.cleanNavigation();\n }\n this.configureKeyboardBindings();\n }\n\n /**\n * Cleans up previous navigation items\n */\n }, {\n key: \"cleanNavigation\",\n value: function cleanNavigation() {\n // clean hammer bindings\n if (this.navigationHammers.length != 0) {\n for (var i = 0; i < this.navigationHammers.length; i++) {\n this.navigationHammers[i].destroy();\n }\n this.navigationHammers = [];\n }\n\n // clean up previous navigation items\n if (this.navigationDOM && this.navigationDOM[\"wrapper\"] && this.navigationDOM[\"wrapper\"].parentNode) {\n this.navigationDOM[\"wrapper\"].parentNode.removeChild(this.navigationDOM[\"wrapper\"]);\n }\n this.iconsCreated = false;\n }\n\n /**\n * Creation of the navigation controls nodes. They are drawn over the rest of the nodes and are not affected by scale and translation\n * they have a triggerFunction which is called on click. If the position of the navigation controls is dependent\n * on this.frame.canvas.clientWidth or this.frame.canvas.clientHeight, we flag horizontalAlignLeft and verticalAlignTop false.\n * This means that the location will be corrected by the _relocateNavigation function on a size change of the canvas.\n *\n * @private\n */\n }, {\n key: \"loadNavigationElements\",\n value: function loadNavigationElements() {\n var _this2 = this;\n this.cleanNavigation();\n this.navigationDOM = {};\n var navigationDivs = [\"up\", \"down\", \"left\", \"right\", \"zoomIn\", \"zoomOut\", \"zoomExtends\"];\n var navigationDivActions = [\"_moveUp\", \"_moveDown\", \"_moveLeft\", \"_moveRight\", \"_zoomIn\", \"_zoomOut\", \"_fit\"];\n this.navigationDOM[\"wrapper\"] = document.createElement(\"div\");\n this.navigationDOM[\"wrapper\"].className = \"vis-navigation\";\n this.canvas.frame.appendChild(this.navigationDOM[\"wrapper\"]);\n for (var i = 0; i < navigationDivs.length; i++) {\n this.navigationDOM[navigationDivs[i]] = document.createElement(\"div\");\n this.navigationDOM[navigationDivs[i]].className = \"vis-button vis-\" + navigationDivs[i];\n this.navigationDOM[\"wrapper\"].appendChild(this.navigationDOM[navigationDivs[i]]);\n var hammer = new Hammer(this.navigationDOM[navigationDivs[i]]);\n if (navigationDivActions[i] === \"_fit\") {\n var _context;\n onTouch(hammer, _bindInstanceProperty$1(_context = this._fit).call(_context, this));\n } else {\n var _context2;\n onTouch(hammer, _bindInstanceProperty$1(_context2 = this.bindToRedraw).call(_context2, this, navigationDivActions[i]));\n }\n this.navigationHammers.push(hammer);\n }\n\n // use a hammer for the release so we do not require the one used in the rest of the network\n // the one the rest uses can be overloaded by the manipulation system.\n var hammerFrame = new Hammer(this.canvas.frame);\n onRelease(hammerFrame, function () {\n _this2._stopMovement();\n });\n this.navigationHammers.push(hammerFrame);\n this.iconsCreated = true;\n }\n\n /**\n *\n * @param {string} action\n */\n }, {\n key: \"bindToRedraw\",\n value: function bindToRedraw(action) {\n if (this.boundFunctions[action] === undefined) {\n var _context3;\n this.boundFunctions[action] = _bindInstanceProperty$1(_context3 = this[action]).call(_context3, this);\n this.body.emitter.on(\"initRedraw\", this.boundFunctions[action]);\n this.body.emitter.emit(\"_startRendering\");\n }\n }\n\n /**\n *\n * @param {string} action\n */\n }, {\n key: \"unbindFromRedraw\",\n value: function unbindFromRedraw(action) {\n if (this.boundFunctions[action] !== undefined) {\n this.body.emitter.off(\"initRedraw\", this.boundFunctions[action]);\n this.body.emitter.emit(\"_stopRendering\");\n delete this.boundFunctions[action];\n }\n }\n\n /**\n * this stops all movement induced by the navigation buttons\n *\n * @private\n */\n }, {\n key: \"_fit\",\n value: function _fit() {\n if (new Date().valueOf() - this.touchTime > 700) {\n // TODO: fix ugly hack to avoid hammer's double fireing of event (because we use release?)\n this.body.emitter.emit(\"fit\", {\n duration: 700\n });\n this.touchTime = new Date().valueOf();\n }\n }\n\n /**\n * this stops all movement induced by the navigation buttons\n *\n * @private\n */\n }, {\n key: \"_stopMovement\",\n value: function _stopMovement() {\n for (var boundAction in this.boundFunctions) {\n if (Object.prototype.hasOwnProperty.call(this.boundFunctions, boundAction)) {\n this.body.emitter.off(\"initRedraw\", this.boundFunctions[boundAction]);\n this.body.emitter.emit(\"_stopRendering\");\n }\n }\n this.boundFunctions = {};\n }\n /**\n *\n * @private\n */\n }, {\n key: \"_moveUp\",\n value: function _moveUp() {\n this.body.view.translation.y += this.options.keyboard.speed.y;\n }\n /**\n *\n * @private\n */\n }, {\n key: \"_moveDown\",\n value: function _moveDown() {\n this.body.view.translation.y -= this.options.keyboard.speed.y;\n }\n /**\n *\n * @private\n */\n }, {\n key: \"_moveLeft\",\n value: function _moveLeft() {\n this.body.view.translation.x += this.options.keyboard.speed.x;\n }\n /**\n *\n * @private\n */\n }, {\n key: \"_moveRight\",\n value: function _moveRight() {\n this.body.view.translation.x -= this.options.keyboard.speed.x;\n }\n /**\n *\n * @private\n */\n }, {\n key: \"_zoomIn\",\n value: function _zoomIn() {\n var scaleOld = this.body.view.scale;\n var scale = this.body.view.scale * (1 + this.options.keyboard.speed.zoom);\n var translation = this.body.view.translation;\n var scaleFrac = scale / scaleOld;\n var tx = (1 - scaleFrac) * this.canvas.canvasViewCenter.x + translation.x * scaleFrac;\n var ty = (1 - scaleFrac) * this.canvas.canvasViewCenter.y + translation.y * scaleFrac;\n this.body.view.scale = scale;\n this.body.view.translation = {\n x: tx,\n y: ty\n };\n this.body.emitter.emit(\"zoom\", {\n direction: \"+\",\n scale: this.body.view.scale,\n pointer: null\n });\n }\n\n /**\n *\n * @private\n */\n }, {\n key: \"_zoomOut\",\n value: function _zoomOut() {\n var scaleOld = this.body.view.scale;\n var scale = this.body.view.scale / (1 + this.options.keyboard.speed.zoom);\n var translation = this.body.view.translation;\n var scaleFrac = scale / scaleOld;\n var tx = (1 - scaleFrac) * this.canvas.canvasViewCenter.x + translation.x * scaleFrac;\n var ty = (1 - scaleFrac) * this.canvas.canvasViewCenter.y + translation.y * scaleFrac;\n this.body.view.scale = scale;\n this.body.view.translation = {\n x: tx,\n y: ty\n };\n this.body.emitter.emit(\"zoom\", {\n direction: \"-\",\n scale: this.body.view.scale,\n pointer: null\n });\n }\n\n /**\n * bind all keys using keycharm.\n */\n }, {\n key: \"configureKeyboardBindings\",\n value: function configureKeyboardBindings() {\n var _this3 = this;\n if (this.keycharm !== undefined) {\n this.keycharm.destroy();\n }\n if (this.options.keyboard.enabled === true) {\n if (this.options.keyboard.bindToWindow === true) {\n this.keycharm = keycharm({\n container: window,\n preventDefault: true\n });\n } else {\n this.keycharm = keycharm({\n container: this.canvas.frame,\n preventDefault: true\n });\n }\n this.keycharm.reset();\n if (this.activated === true) {\n var _context4, _context5, _context6, _context7, _context8, _context9, _context10, _context11, _context12, _context13, _context14, _context15, _context16, _context17, _context18, _context19, _context20, _context21, _context22, _context23, _context24, _context25, _context26, _context27;\n _bindInstanceProperty$1(_context4 = this.keycharm).call(_context4, \"up\", function () {\n _this3.bindToRedraw(\"_moveUp\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context5 = this.keycharm).call(_context5, \"down\", function () {\n _this3.bindToRedraw(\"_moveDown\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context6 = this.keycharm).call(_context6, \"left\", function () {\n _this3.bindToRedraw(\"_moveLeft\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context7 = this.keycharm).call(_context7, \"right\", function () {\n _this3.bindToRedraw(\"_moveRight\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context8 = this.keycharm).call(_context8, \"=\", function () {\n _this3.bindToRedraw(\"_zoomIn\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context9 = this.keycharm).call(_context9, \"num+\", function () {\n _this3.bindToRedraw(\"_zoomIn\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context10 = this.keycharm).call(_context10, \"num-\", function () {\n _this3.bindToRedraw(\"_zoomOut\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context11 = this.keycharm).call(_context11, \"-\", function () {\n _this3.bindToRedraw(\"_zoomOut\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context12 = this.keycharm).call(_context12, \"[\", function () {\n _this3.bindToRedraw(\"_zoomOut\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context13 = this.keycharm).call(_context13, \"]\", function () {\n _this3.bindToRedraw(\"_zoomIn\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context14 = this.keycharm).call(_context14, \"pageup\", function () {\n _this3.bindToRedraw(\"_zoomIn\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context15 = this.keycharm).call(_context15, \"pagedown\", function () {\n _this3.bindToRedraw(\"_zoomOut\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context16 = this.keycharm).call(_context16, \"up\", function () {\n _this3.unbindFromRedraw(\"_moveUp\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context17 = this.keycharm).call(_context17, \"down\", function () {\n _this3.unbindFromRedraw(\"_moveDown\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context18 = this.keycharm).call(_context18, \"left\", function () {\n _this3.unbindFromRedraw(\"_moveLeft\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context19 = this.keycharm).call(_context19, \"right\", function () {\n _this3.unbindFromRedraw(\"_moveRight\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context20 = this.keycharm).call(_context20, \"=\", function () {\n _this3.unbindFromRedraw(\"_zoomIn\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context21 = this.keycharm).call(_context21, \"num+\", function () {\n _this3.unbindFromRedraw(\"_zoomIn\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context22 = this.keycharm).call(_context22, \"num-\", function () {\n _this3.unbindFromRedraw(\"_zoomOut\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context23 = this.keycharm).call(_context23, \"-\", function () {\n _this3.unbindFromRedraw(\"_zoomOut\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context24 = this.keycharm).call(_context24, \"[\", function () {\n _this3.unbindFromRedraw(\"_zoomOut\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context25 = this.keycharm).call(_context25, \"]\", function () {\n _this3.unbindFromRedraw(\"_zoomIn\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context26 = this.keycharm).call(_context26, \"pageup\", function () {\n _this3.unbindFromRedraw(\"_zoomIn\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context27 = this.keycharm).call(_context27, \"pagedown\", function () {\n _this3.unbindFromRedraw(\"_zoomOut\");\n }, \"keyup\");\n }\n }\n }\n }]);\n return NavigationHandler;\n}();\n\nfunction _createForOfIteratorHelper$4(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray$4(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray$4(o, minLen) { var _context15; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray$4(o, minLen); var n = _sliceInstanceProperty(_context15 = Object.prototype.toString.call(o)).call(_context15, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen); }\nfunction _arrayLikeToArray$4(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n/**\n * Handler for interactions\n */\nvar InteractionHandler = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {Canvas} canvas\n * @param {SelectionHandler} selectionHandler\n */\n function InteractionHandler(body, canvas, selectionHandler) {\n var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context10, _context11, _context12, _context13;\n _classCallCheck(this, InteractionHandler);\n this.body = body;\n this.canvas = canvas;\n this.selectionHandler = selectionHandler;\n this.navigationHandler = new NavigationHandler(body, canvas);\n\n // bind the events from hammer to functions in this object\n this.body.eventListeners.onTap = _bindInstanceProperty$1(_context = this.onTap).call(_context, this);\n this.body.eventListeners.onTouch = _bindInstanceProperty$1(_context2 = this.onTouch).call(_context2, this);\n this.body.eventListeners.onDoubleTap = _bindInstanceProperty$1(_context3 = this.onDoubleTap).call(_context3, this);\n this.body.eventListeners.onHold = _bindInstanceProperty$1(_context4 = this.onHold).call(_context4, this);\n this.body.eventListeners.onDragStart = _bindInstanceProperty$1(_context5 = this.onDragStart).call(_context5, this);\n this.body.eventListeners.onDrag = _bindInstanceProperty$1(_context6 = this.onDrag).call(_context6, this);\n this.body.eventListeners.onDragEnd = _bindInstanceProperty$1(_context7 = this.onDragEnd).call(_context7, this);\n this.body.eventListeners.onMouseWheel = _bindInstanceProperty$1(_context8 = this.onMouseWheel).call(_context8, this);\n this.body.eventListeners.onPinch = _bindInstanceProperty$1(_context9 = this.onPinch).call(_context9, this);\n this.body.eventListeners.onMouseMove = _bindInstanceProperty$1(_context10 = this.onMouseMove).call(_context10, this);\n this.body.eventListeners.onRelease = _bindInstanceProperty$1(_context11 = this.onRelease).call(_context11, this);\n this.body.eventListeners.onContext = _bindInstanceProperty$1(_context12 = this.onContext).call(_context12, this);\n this.touchTime = 0;\n this.drag = {};\n this.pinch = {};\n this.popup = undefined;\n this.popupObj = undefined;\n this.popupTimer = undefined;\n this.body.functions.getPointer = _bindInstanceProperty$1(_context13 = this.getPointer).call(_context13, this);\n this.options = {};\n this.defaultOptions = {\n dragNodes: true,\n dragView: true,\n hover: false,\n keyboard: {\n enabled: false,\n speed: {\n x: 10,\n y: 10,\n zoom: 0.02\n },\n bindToWindow: true,\n autoFocus: true\n },\n navigationButtons: false,\n tooltipDelay: 300,\n zoomView: true,\n zoomSpeed: 1\n };\n _Object$assign(this.options, this.defaultOptions);\n this.bindEventListeners();\n }\n\n /**\n * Binds event listeners\n */\n _createClass(InteractionHandler, [{\n key: \"bindEventListeners\",\n value: function bindEventListeners() {\n var _this = this;\n this.body.emitter.on(\"destroy\", function () {\n clearTimeout(_this.popupTimer);\n delete _this.body.functions.getPointer;\n });\n }\n\n /**\n *\n * @param {object} options\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options !== undefined) {\n // extend all but the values in fields\n var fields = [\"hideEdgesOnDrag\", \"hideEdgesOnZoom\", \"hideNodesOnDrag\", \"keyboard\", \"multiselect\", \"selectable\", \"selectConnectedEdges\"];\n selectiveNotDeepExtend(fields, this.options, options);\n\n // merge the keyboard options in.\n mergeOptions(this.options, options, \"keyboard\");\n if (options.tooltip) {\n _Object$assign(this.options.tooltip, options.tooltip);\n if (options.tooltip.color) {\n this.options.tooltip.color = parseColor(options.tooltip.color);\n }\n }\n }\n this.navigationHandler.setOptions(this.options);\n }\n\n /**\n * Get the pointer location from a touch location\n *\n * @param {{x: number, y: number}} touch\n * @returns {{x: number, y: number}} pointer\n * @private\n */\n }, {\n key: \"getPointer\",\n value: function getPointer(touch) {\n return {\n x: touch.x - getAbsoluteLeft(this.canvas.frame.canvas),\n y: touch.y - getAbsoluteTop(this.canvas.frame.canvas)\n };\n }\n\n /**\n * On start of a touch gesture, store the pointer\n *\n * @param {Event} event The event\n * @private\n */\n }, {\n key: \"onTouch\",\n value: function onTouch(event) {\n if (new Date().valueOf() - this.touchTime > 50) {\n this.drag.pointer = this.getPointer(event.center);\n this.drag.pinched = false;\n this.pinch.scale = this.body.view.scale;\n // to avoid double fireing of this event because we have two hammer instances. (on canvas and on frame)\n this.touchTime = new Date().valueOf();\n }\n }\n\n /**\n * handle tap/click event: select/unselect a node\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"onTap\",\n value: function onTap(event) {\n var pointer = this.getPointer(event.center);\n var multiselect = this.selectionHandler.options.multiselect && (event.changedPointers[0].ctrlKey || event.changedPointers[0].metaKey);\n this.checkSelectionChanges(pointer, multiselect);\n this.selectionHandler.commitAndEmit(pointer, event);\n this.selectionHandler.generateClickEvent(\"click\", event, pointer);\n }\n\n /**\n * handle doubletap event\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"onDoubleTap\",\n value: function onDoubleTap(event) {\n var pointer = this.getPointer(event.center);\n this.selectionHandler.generateClickEvent(\"doubleClick\", event, pointer);\n }\n\n /**\n * handle long tap event: multi select nodes\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"onHold\",\n value: function onHold(event) {\n var pointer = this.getPointer(event.center);\n var multiselect = this.selectionHandler.options.multiselect;\n this.checkSelectionChanges(pointer, multiselect);\n this.selectionHandler.commitAndEmit(pointer, event);\n this.selectionHandler.generateClickEvent(\"click\", event, pointer);\n this.selectionHandler.generateClickEvent(\"hold\", event, pointer);\n }\n\n /**\n * handle the release of the screen\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"onRelease\",\n value: function onRelease(event) {\n if (new Date().valueOf() - this.touchTime > 10) {\n var pointer = this.getPointer(event.center);\n this.selectionHandler.generateClickEvent(\"release\", event, pointer);\n // to avoid double fireing of this event because we have two hammer instances. (on canvas and on frame)\n this.touchTime = new Date().valueOf();\n }\n }\n\n /**\n *\n * @param {Event} event\n */\n }, {\n key: \"onContext\",\n value: function onContext(event) {\n var pointer = this.getPointer({\n x: event.clientX,\n y: event.clientY\n });\n this.selectionHandler.generateClickEvent(\"oncontext\", event, pointer);\n }\n\n /**\n * Select and deselect nodes depending current selection change.\n *\n * @param {{x: number, y: number}} pointer\n * @param {boolean} [add=false]\n */\n }, {\n key: \"checkSelectionChanges\",\n value: function checkSelectionChanges(pointer) {\n var add = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n if (add === true) {\n this.selectionHandler.selectAdditionalOnPoint(pointer);\n } else {\n this.selectionHandler.selectOnPoint(pointer);\n }\n }\n\n /**\n * Remove all node and edge id's from the first set that are present in the second one.\n *\n * @param {{nodes: Array., edges: Array.}} firstSet\n * @param {{nodes: Array., edges: Array.}} secondSet\n * @returns {{nodes: Array., edges: Array.}}\n * @private\n */\n }, {\n key: \"_determineDifference\",\n value: function _determineDifference(firstSet, secondSet) {\n var arrayDiff = function arrayDiff(firstArr, secondArr) {\n var result = [];\n for (var i = 0; i < firstArr.length; i++) {\n var value = firstArr[i];\n if (_indexOfInstanceProperty(secondArr).call(secondArr, value) === -1) {\n result.push(value);\n }\n }\n return result;\n };\n return {\n nodes: arrayDiff(firstSet.nodes, secondSet.nodes),\n edges: arrayDiff(firstSet.edges, secondSet.edges)\n };\n }\n\n /**\n * This function is called by onDragStart.\n * It is separated out because we can then overload it for the datamanipulation system.\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"onDragStart\",\n value: function onDragStart(event) {\n // if already dragging, do not start\n // this can happen on touch screens with multiple fingers\n if (this.drag.dragging) {\n return;\n }\n\n //in case the touch event was triggered on an external div, do the initial touch now.\n if (this.drag.pointer === undefined) {\n this.onTouch(event);\n }\n\n // note: drag.pointer is set in onTouch to get the initial touch location\n var node = this.selectionHandler.getNodeAt(this.drag.pointer);\n this.drag.dragging = true;\n this.drag.selection = [];\n this.drag.translation = _Object$assign({}, this.body.view.translation); // copy the object\n this.drag.nodeId = undefined;\n if (event.srcEvent.shiftKey) {\n this.body.selectionBox.show = true;\n var pointer = this.getPointer(event.center);\n this.body.selectionBox.position.start = {\n x: this.canvas._XconvertDOMtoCanvas(pointer.x),\n y: this.canvas._YconvertDOMtoCanvas(pointer.y)\n };\n this.body.selectionBox.position.end = {\n x: this.canvas._XconvertDOMtoCanvas(pointer.x),\n y: this.canvas._YconvertDOMtoCanvas(pointer.y)\n };\n } else if (node !== undefined && this.options.dragNodes === true) {\n this.drag.nodeId = node.id;\n // select the clicked node if not yet selected\n if (node.isSelected() === false) {\n this.selectionHandler.setSelection({\n nodes: [node.id]\n });\n }\n\n // after select to contain the node\n this.selectionHandler.generateClickEvent(\"dragStart\", event, this.drag.pointer);\n\n // create an array with the selected nodes and their original location and status\n var _iterator = _createForOfIteratorHelper$4(this.selectionHandler.getSelectedNodes()),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _node = _step.value;\n var s = {\n id: _node.id,\n node: _node,\n // store original x, y, xFixed and yFixed, make the node temporarily Fixed\n x: _node.x,\n y: _node.y,\n xFixed: _node.options.fixed.x,\n yFixed: _node.options.fixed.y\n };\n _node.options.fixed.x = true;\n _node.options.fixed.y = true;\n this.drag.selection.push(s);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n } else {\n // fallback if no node is selected and thus the view is dragged.\n this.selectionHandler.generateClickEvent(\"dragStart\", event, this.drag.pointer, undefined, true);\n }\n }\n\n /**\n * handle drag event\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"onDrag\",\n value: function onDrag(event) {\n var _this2 = this;\n if (this.drag.pinched === true) {\n return;\n }\n\n // remove the focus on node if it is focussed on by the focusOnNode\n this.body.emitter.emit(\"unlockNode\");\n var pointer = this.getPointer(event.center);\n var selection = this.drag.selection;\n if (selection && selection.length && this.options.dragNodes === true) {\n this.selectionHandler.generateClickEvent(\"dragging\", event, pointer);\n\n // calculate delta's and new location\n var deltaX = pointer.x - this.drag.pointer.x;\n var deltaY = pointer.y - this.drag.pointer.y;\n\n // update position of all selected nodes\n _forEachInstanceProperty(selection).call(selection, function (selection) {\n var node = selection.node;\n // only move the node if it was not fixed initially\n if (selection.xFixed === false) {\n node.x = _this2.canvas._XconvertDOMtoCanvas(_this2.canvas._XconvertCanvasToDOM(selection.x) + deltaX);\n }\n // only move the node if it was not fixed initially\n if (selection.yFixed === false) {\n node.y = _this2.canvas._YconvertDOMtoCanvas(_this2.canvas._YconvertCanvasToDOM(selection.y) + deltaY);\n }\n });\n\n // start the simulation of the physics\n this.body.emitter.emit(\"startSimulation\");\n } else {\n // create selection box\n if (event.srcEvent.shiftKey) {\n this.selectionHandler.generateClickEvent(\"dragging\", event, pointer, undefined, true);\n\n // if the drag was not started properly because the click started outside the network div, start it now.\n if (this.drag.pointer === undefined) {\n this.onDragStart(event);\n return;\n }\n this.body.selectionBox.position.end = {\n x: this.canvas._XconvertDOMtoCanvas(pointer.x),\n y: this.canvas._YconvertDOMtoCanvas(pointer.y)\n };\n this.body.emitter.emit(\"_requestRedraw\");\n }\n\n // move the network\n if (this.options.dragView === true && !event.srcEvent.shiftKey) {\n this.selectionHandler.generateClickEvent(\"dragging\", event, pointer, undefined, true);\n\n // if the drag was not started properly because the click started outside the network div, start it now.\n if (this.drag.pointer === undefined) {\n this.onDragStart(event);\n return;\n }\n var diffX = pointer.x - this.drag.pointer.x;\n var diffY = pointer.y - this.drag.pointer.y;\n this.body.view.translation = {\n x: this.drag.translation.x + diffX,\n y: this.drag.translation.y + diffY\n };\n this.body.emitter.emit(\"_requestRedraw\");\n }\n }\n }\n\n /**\n * handle drag start event\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"onDragEnd\",\n value: function onDragEnd(event) {\n var _this3 = this;\n this.drag.dragging = false;\n if (this.body.selectionBox.show) {\n var _context14;\n this.body.selectionBox.show = false;\n var selectionBoxPosition = this.body.selectionBox.position;\n var selectionBoxPositionMinMax = {\n minX: Math.min(selectionBoxPosition.start.x, selectionBoxPosition.end.x),\n minY: Math.min(selectionBoxPosition.start.y, selectionBoxPosition.end.y),\n maxX: Math.max(selectionBoxPosition.start.x, selectionBoxPosition.end.x),\n maxY: Math.max(selectionBoxPosition.start.y, selectionBoxPosition.end.y)\n };\n var toBeSelectedNodes = _filterInstanceProperty(_context14 = this.body.nodeIndices).call(_context14, function (nodeId) {\n var node = _this3.body.nodes[nodeId];\n return node.x >= selectionBoxPositionMinMax.minX && node.x <= selectionBoxPositionMinMax.maxX && node.y >= selectionBoxPositionMinMax.minY && node.y <= selectionBoxPositionMinMax.maxY;\n });\n _forEachInstanceProperty(toBeSelectedNodes).call(toBeSelectedNodes, function (nodeId) {\n return _this3.selectionHandler.selectObject(_this3.body.nodes[nodeId]);\n });\n var pointer = this.getPointer(event.center);\n this.selectionHandler.commitAndEmit(pointer, event);\n this.selectionHandler.generateClickEvent(\"dragEnd\", event, this.getPointer(event.center), undefined, true);\n this.body.emitter.emit(\"_requestRedraw\");\n } else {\n var selection = this.drag.selection;\n if (selection && selection.length) {\n _forEachInstanceProperty(selection).call(selection, function (s) {\n // restore original xFixed and yFixed\n s.node.options.fixed.x = s.xFixed;\n s.node.options.fixed.y = s.yFixed;\n });\n this.selectionHandler.generateClickEvent(\"dragEnd\", event, this.getPointer(event.center));\n this.body.emitter.emit(\"startSimulation\");\n } else {\n this.selectionHandler.generateClickEvent(\"dragEnd\", event, this.getPointer(event.center), undefined, true);\n this.body.emitter.emit(\"_requestRedraw\");\n }\n }\n }\n\n /**\n * Handle pinch event\n *\n * @param {Event} event The event\n * @private\n */\n }, {\n key: \"onPinch\",\n value: function onPinch(event) {\n var pointer = this.getPointer(event.center);\n this.drag.pinched = true;\n if (this.pinch[\"scale\"] === undefined) {\n this.pinch.scale = 1;\n }\n\n // TODO: enabled moving while pinching?\n var scale = this.pinch.scale * event.scale;\n this.zoom(scale, pointer);\n }\n\n /**\n * Zoom the network in or out\n *\n * @param {number} scale a number around 1, and between 0.01 and 10\n * @param {{x: number, y: number}} pointer Position on screen\n * @private\n */\n }, {\n key: \"zoom\",\n value: function zoom(scale, pointer) {\n if (this.options.zoomView === true) {\n var scaleOld = this.body.view.scale;\n if (scale < 0.00001) {\n scale = 0.00001;\n }\n if (scale > 10) {\n scale = 10;\n }\n var preScaleDragPointer = undefined;\n if (this.drag !== undefined) {\n if (this.drag.dragging === true) {\n preScaleDragPointer = this.canvas.DOMtoCanvas(this.drag.pointer);\n }\n }\n // + this.canvas.frame.canvas.clientHeight / 2\n var translation = this.body.view.translation;\n var scaleFrac = scale / scaleOld;\n var tx = (1 - scaleFrac) * pointer.x + translation.x * scaleFrac;\n var ty = (1 - scaleFrac) * pointer.y + translation.y * scaleFrac;\n this.body.view.scale = scale;\n this.body.view.translation = {\n x: tx,\n y: ty\n };\n if (preScaleDragPointer != undefined) {\n var postScaleDragPointer = this.canvas.canvasToDOM(preScaleDragPointer);\n this.drag.pointer.x = postScaleDragPointer.x;\n this.drag.pointer.y = postScaleDragPointer.y;\n }\n this.body.emitter.emit(\"_requestRedraw\");\n if (scaleOld < scale) {\n this.body.emitter.emit(\"zoom\", {\n direction: \"+\",\n scale: this.body.view.scale,\n pointer: pointer\n });\n } else {\n this.body.emitter.emit(\"zoom\", {\n direction: \"-\",\n scale: this.body.view.scale,\n pointer: pointer\n });\n }\n }\n }\n\n /**\n * Event handler for mouse wheel event, used to zoom the timeline\n * See http://adomas.org/javascript-mouse-wheel/\n * https://github.com/EightMedia/hammer.js/issues/256\n *\n * @param {MouseEvent} event\n * @private\n */\n }, {\n key: \"onMouseWheel\",\n value: function onMouseWheel(event) {\n if (this.options.zoomView === true) {\n // If delta is nonzero, handle it.\n // Basically, delta is now positive if wheel was scrolled up,\n // and negative, if wheel was scrolled down.\n if (event.deltaY !== 0) {\n // calculate the new scale\n var scale = this.body.view.scale;\n scale *= 1 + (event.deltaY < 0 ? 1 : -1) * (this.options.zoomSpeed * 0.1);\n\n // calculate the pointer location\n var pointer = this.getPointer({\n x: event.clientX,\n y: event.clientY\n });\n\n // apply the new scale\n this.zoom(scale, pointer);\n }\n\n // Prevent default actions caused by mouse wheel.\n event.preventDefault();\n }\n }\n\n /**\n * Mouse move handler for checking whether the title moves over a node with a title.\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"onMouseMove\",\n value: function onMouseMove(event) {\n var _this4 = this;\n var pointer = this.getPointer({\n x: event.clientX,\n y: event.clientY\n });\n var popupVisible = false;\n\n // check if the previously selected node is still selected\n if (this.popup !== undefined) {\n if (this.popup.hidden === false) {\n this._checkHidePopup(pointer);\n }\n\n // if the popup was not hidden above\n if (this.popup.hidden === false) {\n popupVisible = true;\n this.popup.setPosition(pointer.x + 3, pointer.y - 5);\n this.popup.show();\n }\n }\n\n // if we bind the keyboard to the div, we have to highlight it to use it. This highlights it on mouse over.\n if (this.options.keyboard.autoFocus && this.options.keyboard.bindToWindow === false && this.options.keyboard.enabled === true) {\n this.canvas.frame.focus();\n }\n\n // start a timeout that will check if the mouse is positioned above an element\n if (popupVisible === false) {\n if (this.popupTimer !== undefined) {\n clearInterval(this.popupTimer); // stop any running calculationTimer\n this.popupTimer = undefined;\n }\n if (!this.drag.dragging) {\n this.popupTimer = _setTimeout(function () {\n return _this4._checkShowPopup(pointer);\n }, this.options.tooltipDelay);\n }\n }\n\n // adding hover highlights\n if (this.options.hover === true) {\n this.selectionHandler.hoverObject(event, pointer);\n }\n }\n\n /**\n * Check if there is an element on the given position in the network\n * (a node or edge). If so, and if this element has a title,\n * show a popup window with its title.\n *\n * @param {{x:number, y:number}} pointer\n * @private\n */\n }, {\n key: \"_checkShowPopup\",\n value: function _checkShowPopup(pointer) {\n var x = this.canvas._XconvertDOMtoCanvas(pointer.x);\n var y = this.canvas._YconvertDOMtoCanvas(pointer.y);\n var pointerObj = {\n left: x,\n top: y,\n right: x,\n bottom: y\n };\n var previousPopupObjId = this.popupObj === undefined ? undefined : this.popupObj.id;\n var nodeUnderCursor = false;\n var popupType = \"node\";\n\n // check if a node is under the cursor.\n if (this.popupObj === undefined) {\n // search the nodes for overlap, select the top one in case of multiple nodes\n var nodeIndices = this.body.nodeIndices;\n var nodes = this.body.nodes;\n var node;\n var overlappingNodes = [];\n for (var i = 0; i < nodeIndices.length; i++) {\n node = nodes[nodeIndices[i]];\n if (node.isOverlappingWith(pointerObj) === true) {\n nodeUnderCursor = true;\n if (node.getTitle() !== undefined) {\n overlappingNodes.push(nodeIndices[i]);\n }\n }\n }\n if (overlappingNodes.length > 0) {\n // if there are overlapping nodes, select the last one, this is the one which is drawn on top of the others\n this.popupObj = nodes[overlappingNodes[overlappingNodes.length - 1]];\n // if you hover over a node, the title of the edge is not supposed to be shown.\n nodeUnderCursor = true;\n }\n }\n if (this.popupObj === undefined && nodeUnderCursor === false) {\n // search the edges for overlap\n var edgeIndices = this.body.edgeIndices;\n var edges = this.body.edges;\n var edge;\n var overlappingEdges = [];\n for (var _i = 0; _i < edgeIndices.length; _i++) {\n edge = edges[edgeIndices[_i]];\n if (edge.isOverlappingWith(pointerObj) === true) {\n if (edge.connected === true && edge.getTitle() !== undefined) {\n overlappingEdges.push(edgeIndices[_i]);\n }\n }\n }\n if (overlappingEdges.length > 0) {\n this.popupObj = edges[overlappingEdges[overlappingEdges.length - 1]];\n popupType = \"edge\";\n }\n }\n if (this.popupObj !== undefined) {\n // show popup message window\n if (this.popupObj.id !== previousPopupObjId) {\n if (this.popup === undefined) {\n this.popup = new Popup(this.canvas.frame);\n }\n this.popup.popupTargetType = popupType;\n this.popup.popupTargetId = this.popupObj.id;\n\n // adjust a small offset such that the mouse cursor is located in the\n // bottom left location of the popup, and you can easily move over the\n // popup area\n this.popup.setPosition(pointer.x + 3, pointer.y - 5);\n this.popup.setText(this.popupObj.getTitle());\n this.popup.show();\n this.body.emitter.emit(\"showPopup\", this.popupObj.id);\n }\n } else {\n if (this.popup !== undefined) {\n this.popup.hide();\n this.body.emitter.emit(\"hidePopup\");\n }\n }\n }\n\n /**\n * Check if the popup must be hidden, which is the case when the mouse is no\n * longer hovering on the object\n *\n * @param {{x:number, y:number}} pointer\n * @private\n */\n }, {\n key: \"_checkHidePopup\",\n value: function _checkHidePopup(pointer) {\n var pointerObj = this.selectionHandler._pointerToPositionObject(pointer);\n var stillOnObj = false;\n if (this.popup.popupTargetType === \"node\") {\n if (this.body.nodes[this.popup.popupTargetId] !== undefined) {\n stillOnObj = this.body.nodes[this.popup.popupTargetId].isOverlappingWith(pointerObj);\n\n // if the mouse is still one the node, we have to check if it is not also on one that is drawn on top of it.\n // we initially only check stillOnObj because this is much faster.\n if (stillOnObj === true) {\n var overNode = this.selectionHandler.getNodeAt(pointer);\n stillOnObj = overNode === undefined ? false : overNode.id === this.popup.popupTargetId;\n }\n }\n } else {\n if (this.selectionHandler.getNodeAt(pointer) === undefined) {\n if (this.body.edges[this.popup.popupTargetId] !== undefined) {\n stillOnObj = this.body.edges[this.popup.popupTargetId].isOverlappingWith(pointerObj);\n }\n }\n }\n if (stillOnObj === false) {\n this.popupObj = undefined;\n this.popup.hide();\n this.body.emitter.emit(\"hidePopup\");\n }\n }\n }]);\n return InteractionHandler;\n}();\n\nvar weakMapExports = {};\nvar weakMap$2 = {\n get exports(){ return weakMapExports; },\n set exports(v){ weakMapExports = v; },\n};\n\nvar uncurryThis$1 = functionUncurryThis;\nvar defineBuiltIns$1 = defineBuiltIns$3;\nvar getWeakData = internalMetadataExports.getWeakData;\nvar anInstance = anInstance$4;\nvar anObject = anObject$f;\nvar isNullOrUndefined = isNullOrUndefined$6;\nvar isObject$1 = isObject$m;\nvar iterate = iterate$8;\nvar ArrayIterationModule = arrayIteration;\nvar hasOwn = hasOwnProperty_1;\nvar InternalStateModule = internalState;\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\nvar find = ArrayIterationModule.find;\nvar findIndex = ArrayIterationModule.findIndex;\nvar splice = uncurryThis$1([].splice);\nvar id = 0;\n\n// fallback for uncaught frozen keys\nvar uncaughtFrozenStore = function (state) {\n return state.frozen || (state.frozen = new UncaughtFrozenStore());\n};\n\nvar UncaughtFrozenStore = function () {\n this.entries = [];\n};\n\nvar findUncaughtFrozen = function (store, key) {\n return find(store.entries, function (it) {\n return it[0] === key;\n });\n};\n\nUncaughtFrozenStore.prototype = {\n get: function (key) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) return entry[1];\n },\n has: function (key) {\n return !!findUncaughtFrozen(this, key);\n },\n set: function (key, value) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) entry[1] = value;\n else this.entries.push([key, value]);\n },\n 'delete': function (key) {\n var index = findIndex(this.entries, function (it) {\n return it[0] === key;\n });\n if (~index) splice(this.entries, index, 1);\n return !!~index;\n }\n};\n\nvar collectionWeak$1 = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance(that, Prototype);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n id: id++,\n frozen: undefined\n });\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var data = getWeakData(anObject(key), true);\n if (data === true) uncaughtFrozenStore(state).set(key, value);\n else data[state.id] = value;\n return that;\n };\n\n defineBuiltIns$1(Prototype, {\n // `{ WeakMap, WeakSet }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-weakmap.prototype.delete\n // https://tc39.es/ecma262/#sec-weakset.prototype.delete\n 'delete': function (key) {\n var state = getInternalState(this);\n if (!isObject$1(key)) return false;\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state)['delete'](key);\n return data && hasOwn(data, state.id) && delete data[state.id];\n },\n // `{ WeakMap, WeakSet }.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-weakmap.prototype.has\n // https://tc39.es/ecma262/#sec-weakset.prototype.has\n has: function has(key) {\n var state = getInternalState(this);\n if (!isObject$1(key)) return false;\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state).has(key);\n return data && hasOwn(data, state.id);\n }\n });\n\n defineBuiltIns$1(Prototype, IS_MAP ? {\n // `WeakMap.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-weakmap.prototype.get\n get: function get(key) {\n var state = getInternalState(this);\n if (isObject$1(key)) {\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state).get(key);\n return data ? data[state.id] : undefined;\n }\n },\n // `WeakMap.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-weakmap.prototype.set\n set: function set(key, value) {\n return define(this, key, value);\n }\n } : {\n // `WeakSet.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-weakset.prototype.add\n add: function add(value) {\n return define(this, value, true);\n }\n });\n\n return Constructor;\n }\n};\n\nvar FREEZING = freezing;\nvar global$1 = global$q;\nvar uncurryThis = functionUncurryThis;\nvar defineBuiltIns = defineBuiltIns$3;\nvar InternalMetadataModule = internalMetadataExports;\nvar collection = collection$3;\nvar collectionWeak = collectionWeak$1;\nvar isObject = isObject$m;\nvar enforceInternalState = internalState.enforce;\nvar fails = fails$z;\nvar NATIVE_WEAK_MAP = weakMapBasicDetection;\n\nvar $Object = Object;\n// eslint-disable-next-line es/no-array-isarray -- safe\nvar isArray = Array.isArray;\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar isExtensible = $Object.isExtensible;\n// eslint-disable-next-line es/no-object-isfrozen -- safe\nvar isFrozen = $Object.isFrozen;\n// eslint-disable-next-line es/no-object-issealed -- safe\nvar isSealed = $Object.isSealed;\n// eslint-disable-next-line es/no-object-freeze -- safe\nvar freeze = $Object.freeze;\n// eslint-disable-next-line es/no-object-seal -- safe\nvar seal = $Object.seal;\n\nvar FROZEN = {};\nvar SEALED = {};\nvar IS_IE11 = !global$1.ActiveXObject && 'ActiveXObject' in global$1;\nvar InternalWeakMap;\n\nvar wrapper = function (init) {\n return function WeakMap() {\n return init(this, arguments.length ? arguments[0] : undefined);\n };\n};\n\n// `WeakMap` constructor\n// https://tc39.es/ecma262/#sec-weakmap-constructor\nvar $WeakMap = collection('WeakMap', wrapper, collectionWeak);\nvar WeakMapPrototype = $WeakMap.prototype;\nvar nativeSet = uncurryThis(WeakMapPrototype.set);\n\n// Chakra Edge bug: adding frozen arrays to WeakMap unfreeze them\nvar hasMSEdgeFreezingBug = function () {\n return FREEZING && fails(function () {\n var frozenArray = freeze([]);\n nativeSet(new $WeakMap(), frozenArray, 1);\n return !isFrozen(frozenArray);\n });\n};\n\n// IE11 WeakMap frozen keys fix\n// We can't use feature detection because it crash some old IE builds\n// https://github.com/zloirock/core-js/issues/485\nif (NATIVE_WEAK_MAP) if (IS_IE11) {\n InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);\n InternalMetadataModule.enable();\n var nativeDelete = uncurryThis(WeakMapPrototype['delete']);\n var nativeHas = uncurryThis(WeakMapPrototype.has);\n var nativeGet = uncurryThis(WeakMapPrototype.get);\n defineBuiltIns(WeakMapPrototype, {\n 'delete': function (key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeDelete(this, key) || state.frozen['delete'](key);\n } return nativeDelete(this, key);\n },\n has: function has(key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeHas(this, key) || state.frozen.has(key);\n } return nativeHas(this, key);\n },\n get: function get(key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);\n } return nativeGet(this, key);\n },\n set: function set(key, value) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);\n } else nativeSet(this, key, value);\n return this;\n }\n });\n// Chakra Edge frozen keys fix\n} else if (hasMSEdgeFreezingBug()) {\n defineBuiltIns(WeakMapPrototype, {\n set: function set(key, value) {\n var arrayIntegrityLevel;\n if (isArray(key)) {\n if (isFrozen(key)) arrayIntegrityLevel = FROZEN;\n else if (isSealed(key)) arrayIntegrityLevel = SEALED;\n }\n nativeSet(this, key, value);\n if (arrayIntegrityLevel == FROZEN) freeze(key);\n if (arrayIntegrityLevel == SEALED) seal(key);\n return this;\n }\n });\n}\n\nvar path = path$z;\n\nvar weakMap$1 = path.WeakMap;\n\nvar parent$1 = weakMap$1;\n\n\nvar weakMap = parent$1;\n\n(function (module) {\n\tmodule.exports = weakMap;\n} (weakMap$2));\n\nvar _WeakMap = /*@__PURE__*/getDefaultExportFromCjs(weakMapExports);\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nfunction __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\n\nfunction _createForOfIteratorHelper$3(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray$3(o, minLen) { var _context2; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray$3(o, minLen); var n = _sliceInstanceProperty(_context2 = Object.prototype.toString.call(o)).call(_context2, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen); }\nfunction _arrayLikeToArray$3(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nvar _SingleTypeSelectionAccumulator_previousSelection, _SingleTypeSelectionAccumulator_selection, _SelectionAccumulator_nodes, _SelectionAccumulator_edges, _SelectionAccumulator_commitHandler;\n/**\r\n * @param prev\r\n * @param next\r\n */\nfunction diffSets(prev, next) {\n var diff = new _Set();\n var _iterator = _createForOfIteratorHelper$3(next),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n if (!prev.has(item)) {\n diff.add(item);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return diff;\n}\nvar SingleTypeSelectionAccumulator = /*#__PURE__*/function () {\n function SingleTypeSelectionAccumulator() {\n _classCallCheck(this, SingleTypeSelectionAccumulator);\n _SingleTypeSelectionAccumulator_previousSelection.set(this, new _Set());\n _SingleTypeSelectionAccumulator_selection.set(this, new _Set());\n }\n _createClass(SingleTypeSelectionAccumulator, [{\n key: \"size\",\n get: function get() {\n return __classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_selection, \"f\").size;\n }\n }, {\n key: \"add\",\n value: function add() {\n for (var _len = arguments.length, items = new Array(_len), _key = 0; _key < _len; _key++) {\n items[_key] = arguments[_key];\n }\n for (var _i = 0, _items = items; _i < _items.length; _i++) {\n var item = _items[_i];\n __classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_selection, \"f\").add(item);\n }\n }\n }, {\n key: \"delete\",\n value: function _delete() {\n for (var _len2 = arguments.length, items = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n items[_key2] = arguments[_key2];\n }\n for (var _i2 = 0, _items2 = items; _i2 < _items2.length; _i2++) {\n var item = _items2[_i2];\n __classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_selection, \"f\").delete(item);\n }\n }\n }, {\n key: \"clear\",\n value: function clear() {\n __classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_selection, \"f\").clear();\n }\n }, {\n key: \"getSelection\",\n value: function getSelection() {\n return _toConsumableArray(__classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_selection, \"f\"));\n }\n }, {\n key: \"getChanges\",\n value: function getChanges() {\n return {\n added: _toConsumableArray(diffSets(__classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_previousSelection, \"f\"), __classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_selection, \"f\"))),\n deleted: _toConsumableArray(diffSets(__classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_selection, \"f\"), __classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_previousSelection, \"f\"))),\n previous: _toConsumableArray(new _Set(__classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_previousSelection, \"f\"))),\n current: _toConsumableArray(new _Set(__classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_selection, \"f\")))\n };\n }\n }, {\n key: \"commit\",\n value: function commit() {\n var changes = this.getChanges();\n __classPrivateFieldSet(this, _SingleTypeSelectionAccumulator_previousSelection, __classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_selection, \"f\"), \"f\");\n __classPrivateFieldSet(this, _SingleTypeSelectionAccumulator_selection, new _Set(__classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_previousSelection, \"f\")), \"f\");\n var _iterator2 = _createForOfIteratorHelper$3(changes.added),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var item = _step2.value;\n item.select();\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n var _iterator3 = _createForOfIteratorHelper$3(changes.deleted),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var _item = _step3.value;\n _item.unselect();\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n return changes;\n }\n }]);\n return SingleTypeSelectionAccumulator;\n}();\n_SingleTypeSelectionAccumulator_previousSelection = new _WeakMap(), _SingleTypeSelectionAccumulator_selection = new _WeakMap();\nvar SelectionAccumulator = /*#__PURE__*/function () {\n function SelectionAccumulator() {\n var commitHandler = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {};\n _classCallCheck(this, SelectionAccumulator);\n _SelectionAccumulator_nodes.set(this, new SingleTypeSelectionAccumulator());\n _SelectionAccumulator_edges.set(this, new SingleTypeSelectionAccumulator());\n _SelectionAccumulator_commitHandler.set(this, void 0);\n __classPrivateFieldSet(this, _SelectionAccumulator_commitHandler, commitHandler, \"f\");\n }\n _createClass(SelectionAccumulator, [{\n key: \"sizeNodes\",\n get: function get() {\n return __classPrivateFieldGet(this, _SelectionAccumulator_nodes, \"f\").size;\n }\n }, {\n key: \"sizeEdges\",\n get: function get() {\n return __classPrivateFieldGet(this, _SelectionAccumulator_edges, \"f\").size;\n }\n }, {\n key: \"getNodes\",\n value: function getNodes() {\n return __classPrivateFieldGet(this, _SelectionAccumulator_nodes, \"f\").getSelection();\n }\n }, {\n key: \"getEdges\",\n value: function getEdges() {\n return __classPrivateFieldGet(this, _SelectionAccumulator_edges, \"f\").getSelection();\n }\n }, {\n key: \"addNodes\",\n value: function addNodes() {\n var _classPrivateFieldGe;\n (_classPrivateFieldGe = __classPrivateFieldGet(this, _SelectionAccumulator_nodes, \"f\")).add.apply(_classPrivateFieldGe, arguments);\n }\n }, {\n key: \"addEdges\",\n value: function addEdges() {\n var _classPrivateFieldGe2;\n (_classPrivateFieldGe2 = __classPrivateFieldGet(this, _SelectionAccumulator_edges, \"f\")).add.apply(_classPrivateFieldGe2, arguments);\n }\n }, {\n key: \"deleteNodes\",\n value: function deleteNodes(node) {\n __classPrivateFieldGet(this, _SelectionAccumulator_nodes, \"f\").delete(node);\n }\n }, {\n key: \"deleteEdges\",\n value: function deleteEdges(edge) {\n __classPrivateFieldGet(this, _SelectionAccumulator_edges, \"f\").delete(edge);\n }\n }, {\n key: \"clear\",\n value: function clear() {\n __classPrivateFieldGet(this, _SelectionAccumulator_nodes, \"f\").clear();\n __classPrivateFieldGet(this, _SelectionAccumulator_edges, \"f\").clear();\n }\n }, {\n key: \"commit\",\n value: function commit() {\n var _classPrivateFieldGe3, _context;\n var summary = {\n nodes: __classPrivateFieldGet(this, _SelectionAccumulator_nodes, \"f\").commit(),\n edges: __classPrivateFieldGet(this, _SelectionAccumulator_edges, \"f\").commit()\n };\n for (var _len3 = arguments.length, rest = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n rest[_key3] = arguments[_key3];\n }\n (_classPrivateFieldGe3 = __classPrivateFieldGet(this, _SelectionAccumulator_commitHandler, \"f\")).call.apply(_classPrivateFieldGe3, _concatInstanceProperty(_context = [this, summary]).call(_context, rest));\n return summary;\n }\n }]);\n return SelectionAccumulator;\n}();\n_SelectionAccumulator_nodes = new _WeakMap(), _SelectionAccumulator_edges = new _WeakMap(), _SelectionAccumulator_commitHandler = new _WeakMap();\n\nfunction _createForOfIteratorHelper$2(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray$2(o, minLen) { var _context3; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray$2(o, minLen); var n = _sliceInstanceProperty(_context3 = Object.prototype.toString.call(o)).call(_context3, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }\nfunction _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n/**\n * The handler for selections\n */\nvar SelectionHandler = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {Canvas} canvas\n */\n function SelectionHandler(body, canvas) {\n var _this = this;\n _classCallCheck(this, SelectionHandler);\n this.body = body;\n this.canvas = canvas;\n // TODO: Consider firing an event on any change to the selection, not\n // only those caused by clicks and taps. It would be easy to implement\n // now and (at least to me) it seems like something that could be\n // quite useful.\n this._selectionAccumulator = new SelectionAccumulator();\n this.hoverObj = {\n nodes: {},\n edges: {}\n };\n this.options = {};\n this.defaultOptions = {\n multiselect: false,\n selectable: true,\n selectConnectedEdges: true,\n hoverConnectedEdges: true\n };\n _Object$assign(this.options, this.defaultOptions);\n this.body.emitter.on(\"_dataChanged\", function () {\n _this.updateSelection();\n });\n }\n\n /**\n *\n * @param {object} [options]\n */\n _createClass(SelectionHandler, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options !== undefined) {\n var fields = [\"multiselect\", \"hoverConnectedEdges\", \"selectable\", \"selectConnectedEdges\"];\n selectiveDeepExtend(fields, this.options, options);\n }\n }\n\n /**\n * handles the selection part of the tap;\n *\n * @param {{x: number, y: number}} pointer\n * @returns {boolean}\n */\n }, {\n key: \"selectOnPoint\",\n value: function selectOnPoint(pointer) {\n var selected = false;\n if (this.options.selectable === true) {\n var obj = this.getNodeAt(pointer) || this.getEdgeAt(pointer);\n\n // unselect after getting the objects in order to restore width and height.\n this.unselectAll();\n if (obj !== undefined) {\n selected = this.selectObject(obj);\n }\n this.body.emitter.emit(\"_requestRedraw\");\n }\n return selected;\n }\n\n /**\n *\n * @param {{x: number, y: number}} pointer\n * @returns {boolean}\n */\n }, {\n key: \"selectAdditionalOnPoint\",\n value: function selectAdditionalOnPoint(pointer) {\n var selectionChanged = false;\n if (this.options.selectable === true) {\n var obj = this.getNodeAt(pointer) || this.getEdgeAt(pointer);\n if (obj !== undefined) {\n selectionChanged = true;\n if (obj.isSelected() === true) {\n this.deselectObject(obj);\n } else {\n this.selectObject(obj);\n }\n this.body.emitter.emit(\"_requestRedraw\");\n }\n }\n return selectionChanged;\n }\n\n /**\n * Create an object containing the standard fields for an event.\n *\n * @param {Event} event\n * @param {{x: number, y: number}} pointer Object with the x and y screen coordinates of the mouse\n * @returns {{}}\n * @private\n */\n }, {\n key: \"_initBaseEvent\",\n value: function _initBaseEvent(event, pointer) {\n var properties = {};\n properties[\"pointer\"] = {\n DOM: {\n x: pointer.x,\n y: pointer.y\n },\n canvas: this.canvas.DOMtoCanvas(pointer)\n };\n properties[\"event\"] = event;\n return properties;\n }\n\n /**\n * Generate an event which the user can catch.\n *\n * This adds some extra data to the event with respect to cursor position and\n * selected nodes and edges.\n *\n * @param {string} eventType Name of event to send\n * @param {Event} event\n * @param {{x: number, y: number}} pointer Object with the x and y screen coordinates of the mouse\n * @param {object | undefined} oldSelection If present, selection state before event occured\n * @param {boolean|undefined} [emptySelection=false] Indicate if selection data should be passed\n */\n }, {\n key: \"generateClickEvent\",\n value: function generateClickEvent(eventType, event, pointer, oldSelection) {\n var emptySelection = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var properties = this._initBaseEvent(event, pointer);\n if (emptySelection === true) {\n properties.nodes = [];\n properties.edges = [];\n } else {\n var tmp = this.getSelection();\n properties.nodes = tmp.nodes;\n properties.edges = tmp.edges;\n }\n if (oldSelection !== undefined) {\n properties[\"previousSelection\"] = oldSelection;\n }\n if (eventType == \"click\") {\n // For the time being, restrict this functionality to\n // just the click event.\n properties.items = this.getClickedItems(pointer);\n }\n if (event.controlEdge !== undefined) {\n properties.controlEdge = event.controlEdge;\n }\n this.body.emitter.emit(eventType, properties);\n }\n\n /**\n *\n * @param {object} obj\n * @param {boolean} [highlightEdges=this.options.selectConnectedEdges]\n * @returns {boolean}\n */\n }, {\n key: \"selectObject\",\n value: function selectObject(obj) {\n var highlightEdges = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.options.selectConnectedEdges;\n if (obj !== undefined) {\n if (obj instanceof Node) {\n if (highlightEdges === true) {\n var _this$_selectionAccum;\n (_this$_selectionAccum = this._selectionAccumulator).addEdges.apply(_this$_selectionAccum, _toConsumableArray(obj.edges));\n }\n this._selectionAccumulator.addNodes(obj);\n } else {\n this._selectionAccumulator.addEdges(obj);\n }\n return true;\n }\n return false;\n }\n\n /**\n *\n * @param {object} obj\n */\n }, {\n key: \"deselectObject\",\n value: function deselectObject(obj) {\n if (obj.isSelected() === true) {\n obj.selected = false;\n this._removeFromSelection(obj);\n }\n }\n\n /**\n * retrieve all nodes overlapping with given object\n *\n * @param {object} object An object with parameters left, top, right, bottom\n * @returns {number[]} An array with id's of the overlapping nodes\n * @private\n */\n }, {\n key: \"_getAllNodesOverlappingWith\",\n value: function _getAllNodesOverlappingWith(object) {\n var overlappingNodes = [];\n var nodes = this.body.nodes;\n for (var i = 0; i < this.body.nodeIndices.length; i++) {\n var nodeId = this.body.nodeIndices[i];\n if (nodes[nodeId].isOverlappingWith(object)) {\n overlappingNodes.push(nodeId);\n }\n }\n return overlappingNodes;\n }\n\n /**\n * Return a position object in canvasspace from a single point in screenspace\n *\n * @param {{x: number, y: number}} pointer\n * @returns {{left: number, top: number, right: number, bottom: number}}\n * @private\n */\n }, {\n key: \"_pointerToPositionObject\",\n value: function _pointerToPositionObject(pointer) {\n var canvasPos = this.canvas.DOMtoCanvas(pointer);\n return {\n left: canvasPos.x - 1,\n top: canvasPos.y + 1,\n right: canvasPos.x + 1,\n bottom: canvasPos.y - 1\n };\n }\n\n /**\n * Get the top node at the passed point (like a click)\n *\n * @param {{x: number, y: number}} pointer\n * @param {boolean} [returnNode=true]\n * @returns {Node | undefined} node\n */\n }, {\n key: \"getNodeAt\",\n value: function getNodeAt(pointer) {\n var returnNode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n // we first check if this is an navigation controls element\n var positionObject = this._pointerToPositionObject(pointer);\n var overlappingNodes = this._getAllNodesOverlappingWith(positionObject);\n // if there are overlapping nodes, select the last one, this is the\n // one which is drawn on top of the others\n if (overlappingNodes.length > 0) {\n if (returnNode === true) {\n return this.body.nodes[overlappingNodes[overlappingNodes.length - 1]];\n } else {\n return overlappingNodes[overlappingNodes.length - 1];\n }\n } else {\n return undefined;\n }\n }\n\n /**\n * retrieve all edges overlapping with given object, selector is around center\n *\n * @param {object} object An object with parameters left, top, right, bottom\n * @param {number[]} overlappingEdges An array with id's of the overlapping nodes\n * @private\n */\n }, {\n key: \"_getEdgesOverlappingWith\",\n value: function _getEdgesOverlappingWith(object, overlappingEdges) {\n var edges = this.body.edges;\n for (var i = 0; i < this.body.edgeIndices.length; i++) {\n var edgeId = this.body.edgeIndices[i];\n if (edges[edgeId].isOverlappingWith(object)) {\n overlappingEdges.push(edgeId);\n }\n }\n }\n\n /**\n * retrieve all nodes overlapping with given object\n *\n * @param {object} object An object with parameters left, top, right, bottom\n * @returns {number[]} An array with id's of the overlapping nodes\n * @private\n */\n }, {\n key: \"_getAllEdgesOverlappingWith\",\n value: function _getAllEdgesOverlappingWith(object) {\n var overlappingEdges = [];\n this._getEdgesOverlappingWith(object, overlappingEdges);\n return overlappingEdges;\n }\n\n /**\n * Get the edges nearest to the passed point (like a click)\n *\n * @param {{x: number, y: number}} pointer\n * @param {boolean} [returnEdge=true]\n * @returns {Edge | undefined} node\n */\n }, {\n key: \"getEdgeAt\",\n value: function getEdgeAt(pointer) {\n var returnEdge = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n // Iterate over edges, pick closest within 10\n var canvasPos = this.canvas.DOMtoCanvas(pointer);\n var mindist = 10;\n var overlappingEdge = null;\n var edges = this.body.edges;\n for (var i = 0; i < this.body.edgeIndices.length; i++) {\n var edgeId = this.body.edgeIndices[i];\n var edge = edges[edgeId];\n if (edge.connected) {\n var xFrom = edge.from.x;\n var yFrom = edge.from.y;\n var xTo = edge.to.x;\n var yTo = edge.to.y;\n var dist = edge.edgeType.getDistanceToEdge(xFrom, yFrom, xTo, yTo, canvasPos.x, canvasPos.y);\n if (dist < mindist) {\n overlappingEdge = edgeId;\n mindist = dist;\n }\n }\n }\n if (overlappingEdge !== null) {\n if (returnEdge === true) {\n return this.body.edges[overlappingEdge];\n } else {\n return overlappingEdge;\n }\n } else {\n return undefined;\n }\n }\n\n /**\n * Add object to the selection array.\n *\n * @param {object} obj\n * @private\n */\n }, {\n key: \"_addToHover\",\n value: function _addToHover(obj) {\n if (obj instanceof Node) {\n this.hoverObj.nodes[obj.id] = obj;\n } else {\n this.hoverObj.edges[obj.id] = obj;\n }\n }\n\n /**\n * Remove a single option from selection.\n *\n * @param {object} obj\n * @private\n */\n }, {\n key: \"_removeFromSelection\",\n value: function _removeFromSelection(obj) {\n if (obj instanceof Node) {\n var _this$_selectionAccum2;\n this._selectionAccumulator.deleteNodes(obj);\n (_this$_selectionAccum2 = this._selectionAccumulator).deleteEdges.apply(_this$_selectionAccum2, _toConsumableArray(obj.edges));\n } else {\n this._selectionAccumulator.deleteEdges(obj);\n }\n }\n\n /**\n * Unselect all nodes and edges.\n */\n }, {\n key: \"unselectAll\",\n value: function unselectAll() {\n this._selectionAccumulator.clear();\n }\n\n /**\n * return the number of selected nodes\n *\n * @returns {number}\n */\n }, {\n key: \"getSelectedNodeCount\",\n value: function getSelectedNodeCount() {\n return this._selectionAccumulator.sizeNodes;\n }\n\n /**\n * return the number of selected edges\n *\n * @returns {number}\n */\n }, {\n key: \"getSelectedEdgeCount\",\n value: function getSelectedEdgeCount() {\n return this._selectionAccumulator.sizeEdges;\n }\n\n /**\n * select the edges connected to the node that is being selected\n *\n * @param {Node} node\n * @private\n */\n }, {\n key: \"_hoverConnectedEdges\",\n value: function _hoverConnectedEdges(node) {\n for (var i = 0; i < node.edges.length; i++) {\n var edge = node.edges[i];\n edge.hover = true;\n this._addToHover(edge);\n }\n }\n\n /**\n * Remove the highlight from a node or edge, in response to mouse movement\n *\n * @param {Event} event\n * @param {{x: number, y: number}} pointer object with the x and y screen coordinates of the mouse\n * @param {Node|vis.Edge} object\n * @private\n */\n }, {\n key: \"emitBlurEvent\",\n value: function emitBlurEvent(event, pointer, object) {\n var properties = this._initBaseEvent(event, pointer);\n if (object.hover === true) {\n object.hover = false;\n if (object instanceof Node) {\n properties.node = object.id;\n this.body.emitter.emit(\"blurNode\", properties);\n } else {\n properties.edge = object.id;\n this.body.emitter.emit(\"blurEdge\", properties);\n }\n }\n }\n\n /**\n * Create the highlight for a node or edge, in response to mouse movement\n *\n * @param {Event} event\n * @param {{x: number, y: number}} pointer object with the x and y screen coordinates of the mouse\n * @param {Node|vis.Edge} object\n * @returns {boolean} hoverChanged\n * @private\n */\n }, {\n key: \"emitHoverEvent\",\n value: function emitHoverEvent(event, pointer, object) {\n var properties = this._initBaseEvent(event, pointer);\n var hoverChanged = false;\n if (object.hover === false) {\n object.hover = true;\n this._addToHover(object);\n hoverChanged = true;\n if (object instanceof Node) {\n properties.node = object.id;\n this.body.emitter.emit(\"hoverNode\", properties);\n } else {\n properties.edge = object.id;\n this.body.emitter.emit(\"hoverEdge\", properties);\n }\n }\n return hoverChanged;\n }\n\n /**\n * Perform actions in response to a mouse movement.\n *\n * @param {Event} event\n * @param {{x: number, y: number}} pointer | object with the x and y screen coordinates of the mouse\n */\n }, {\n key: \"hoverObject\",\n value: function hoverObject(event, pointer) {\n var object = this.getNodeAt(pointer);\n if (object === undefined) {\n object = this.getEdgeAt(pointer);\n }\n var hoverChanged = false;\n // remove all node hover highlights\n for (var nodeId in this.hoverObj.nodes) {\n if (Object.prototype.hasOwnProperty.call(this.hoverObj.nodes, nodeId)) {\n if (object === undefined || object instanceof Node && object.id != nodeId || object instanceof Edge) {\n this.emitBlurEvent(event, pointer, this.hoverObj.nodes[nodeId]);\n delete this.hoverObj.nodes[nodeId];\n hoverChanged = true;\n }\n }\n }\n\n // removing all edge hover highlights\n for (var edgeId in this.hoverObj.edges) {\n if (Object.prototype.hasOwnProperty.call(this.hoverObj.edges, edgeId)) {\n // if the hover has been changed here it means that the node has been hovered over or off\n // we then do not use the emitBlurEvent method here.\n if (hoverChanged === true) {\n this.hoverObj.edges[edgeId].hover = false;\n delete this.hoverObj.edges[edgeId];\n }\n // if the blur remains the same and the object is undefined (mouse off) or another\n // edge has been hovered, or another node has been hovered we blur the edge.\n else if (object === undefined || object instanceof Edge && object.id != edgeId || object instanceof Node && !object.hover) {\n this.emitBlurEvent(event, pointer, this.hoverObj.edges[edgeId]);\n delete this.hoverObj.edges[edgeId];\n hoverChanged = true;\n }\n }\n }\n if (object !== undefined) {\n var hoveredEdgesCount = _Object$keys(this.hoverObj.edges).length;\n var hoveredNodesCount = _Object$keys(this.hoverObj.nodes).length;\n var newOnlyHoveredEdge = object instanceof Edge && hoveredEdgesCount === 0 && hoveredNodesCount === 0;\n var newOnlyHoveredNode = object instanceof Node && hoveredEdgesCount === 0 && hoveredNodesCount === 0;\n if (hoverChanged || newOnlyHoveredEdge || newOnlyHoveredNode) {\n hoverChanged = this.emitHoverEvent(event, pointer, object);\n }\n if (object instanceof Node && this.options.hoverConnectedEdges === true) {\n this._hoverConnectedEdges(object);\n }\n }\n if (hoverChanged === true) {\n this.body.emitter.emit(\"_requestRedraw\");\n }\n }\n\n /**\n * Commit the selection changes but don't emit any events.\n */\n }, {\n key: \"commitWithoutEmitting\",\n value: function commitWithoutEmitting() {\n this._selectionAccumulator.commit();\n }\n\n /**\n * Select and deselect nodes depending current selection change.\n *\n * For changing nodes, select/deselect events are fired.\n *\n * NOTE: For a given edge, if one connecting node is deselected and with the\n * same click the other node is selected, no events for the edge will fire. It\n * was selected and it will remain selected.\n *\n * @param {{x: number, y: number}} pointer - The x and y coordinates of the\n * click, tap, dragend… that triggered this.\n * @param {UIEvent} event - The event that triggered this.\n */\n }, {\n key: \"commitAndEmit\",\n value: function commitAndEmit(pointer, event) {\n var selected = false;\n var selectionChanges = this._selectionAccumulator.commit();\n var previousSelection = {\n nodes: selectionChanges.nodes.previous,\n edges: selectionChanges.edges.previous\n };\n if (selectionChanges.edges.deleted.length > 0) {\n this.generateClickEvent(\"deselectEdge\", event, pointer, previousSelection);\n selected = true;\n }\n if (selectionChanges.nodes.deleted.length > 0) {\n this.generateClickEvent(\"deselectNode\", event, pointer, previousSelection);\n selected = true;\n }\n if (selectionChanges.nodes.added.length > 0) {\n this.generateClickEvent(\"selectNode\", event, pointer);\n selected = true;\n }\n if (selectionChanges.edges.added.length > 0) {\n this.generateClickEvent(\"selectEdge\", event, pointer);\n selected = true;\n }\n\n // fire the select event if anything has been selected or deselected\n if (selected === true) {\n // select or unselect\n this.generateClickEvent(\"select\", event, pointer);\n }\n }\n\n /**\n * Retrieve the currently selected node and edge ids.\n *\n * @returns {{nodes: Array., edges: Array.}} Arrays with the\n * ids of the selected nodes and edges.\n */\n }, {\n key: \"getSelection\",\n value: function getSelection() {\n return {\n nodes: this.getSelectedNodeIds(),\n edges: this.getSelectedEdgeIds()\n };\n }\n\n /**\n * Retrieve the currently selected nodes.\n *\n * @returns {Array} An array with selected nodes.\n */\n }, {\n key: \"getSelectedNodes\",\n value: function getSelectedNodes() {\n return this._selectionAccumulator.getNodes();\n }\n\n /**\n * Retrieve the currently selected edges.\n *\n * @returns {Array} An array with selected edges.\n */\n }, {\n key: \"getSelectedEdges\",\n value: function getSelectedEdges() {\n return this._selectionAccumulator.getEdges();\n }\n\n /**\n * Retrieve the currently selected node ids.\n *\n * @returns {Array} An array with the ids of the selected nodes.\n */\n }, {\n key: \"getSelectedNodeIds\",\n value: function getSelectedNodeIds() {\n var _context;\n return _mapInstanceProperty(_context = this._selectionAccumulator.getNodes()).call(_context, function (node) {\n return node.id;\n });\n }\n\n /**\n * Retrieve the currently selected edge ids.\n *\n * @returns {Array} An array with the ids of the selected edges.\n */\n }, {\n key: \"getSelectedEdgeIds\",\n value: function getSelectedEdgeIds() {\n var _context2;\n return _mapInstanceProperty(_context2 = this._selectionAccumulator.getEdges()).call(_context2, function (edge) {\n return edge.id;\n });\n }\n\n /**\n * Updates the current selection\n *\n * @param {{nodes: Array., edges: Array.}} selection\n * @param {object} options Options\n */\n }, {\n key: \"setSelection\",\n value: function setSelection(selection) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (!selection || !selection.nodes && !selection.edges) {\n throw new TypeError(\"Selection must be an object with nodes and/or edges properties\");\n }\n\n // first unselect any selected node, if option is true or undefined\n if (options.unselectAll || options.unselectAll === undefined) {\n this.unselectAll();\n }\n if (selection.nodes) {\n var _iterator = _createForOfIteratorHelper$2(selection.nodes),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var id = _step.value;\n var node = this.body.nodes[id];\n if (!node) {\n throw new RangeError('Node with id \"' + id + '\" not found');\n }\n // don't select edges with it\n this.selectObject(node, options.highlightEdges);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n if (selection.edges) {\n var _iterator2 = _createForOfIteratorHelper$2(selection.edges),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var _id = _step2.value;\n var edge = this.body.edges[_id];\n if (!edge) {\n throw new RangeError('Edge with id \"' + _id + '\" not found');\n }\n this.selectObject(edge);\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n }\n this.body.emitter.emit(\"_requestRedraw\");\n this._selectionAccumulator.commit();\n }\n\n /**\n * select zero or more nodes with the option to highlight edges\n *\n * @param {number[] | string[]} selection An array with the ids of the\n * selected nodes.\n * @param {boolean} [highlightEdges]\n */\n }, {\n key: \"selectNodes\",\n value: function selectNodes(selection) {\n var highlightEdges = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (!selection || selection.length === undefined) throw \"Selection must be an array with ids\";\n this.setSelection({\n nodes: selection\n }, {\n highlightEdges: highlightEdges\n });\n }\n\n /**\n * select zero or more edges\n *\n * @param {number[] | string[]} selection An array with the ids of the\n * selected nodes.\n */\n }, {\n key: \"selectEdges\",\n value: function selectEdges(selection) {\n if (!selection || selection.length === undefined) throw \"Selection must be an array with ids\";\n this.setSelection({\n edges: selection\n });\n }\n\n /**\n * Validate the selection: remove ids of nodes which no longer exist\n *\n * @private\n */\n }, {\n key: \"updateSelection\",\n value: function updateSelection() {\n for (var node in this._selectionAccumulator.getNodes()) {\n if (!Object.prototype.hasOwnProperty.call(this.body.nodes, node.id)) {\n this._selectionAccumulator.deleteNodes(node);\n }\n }\n for (var edge in this._selectionAccumulator.getEdges()) {\n if (!Object.prototype.hasOwnProperty.call(this.body.edges, edge.id)) {\n this._selectionAccumulator.deleteEdges(edge);\n }\n }\n }\n\n /**\n * Determine all the visual elements clicked which are on the given point.\n *\n * All elements are returned; this includes nodes, edges and their labels.\n * The order returned is from highest to lowest, i.e. element 0 of the return\n * value is the topmost item clicked on.\n *\n * The return value consists of an array of the following possible elements:\n *\n * - `{nodeId:number}` - node with given id clicked on\n * - `{nodeId:number, labelId:0}` - label of node with given id clicked on\n * - `{edgeId:number}` - edge with given id clicked on\n * - `{edge:number, labelId:0}` - label of edge with given id clicked on\n *\n * ## NOTES\n *\n * - Currently, there is only one label associated with a node or an edge,\n * but this is expected to change somewhere in the future.\n * - Since there is no z-indexing yet, it is not really possible to set the nodes and\n * edges in the correct order. For the time being, nodes come first.\n *\n * @param {point} pointer mouse position in screen coordinates\n * @returns {Array.}\n * @private\n */\n }, {\n key: \"getClickedItems\",\n value: function getClickedItems(pointer) {\n var point = this.canvas.DOMtoCanvas(pointer);\n var items = [];\n\n // Note reverse order; we want the topmost clicked items to be first in the array\n // Also note that selected nodes are disregarded here; these normally display on top\n var nodeIndices = this.body.nodeIndices;\n var nodes = this.body.nodes;\n for (var i = nodeIndices.length - 1; i >= 0; i--) {\n var node = nodes[nodeIndices[i]];\n var ret = node.getItemsOnPoint(point);\n items.push.apply(items, ret); // Append the return value to the running list.\n }\n\n var edgeIndices = this.body.edgeIndices;\n var edges = this.body.edges;\n for (var _i = edgeIndices.length - 1; _i >= 0; _i--) {\n var edge = edges[edgeIndices[_i]];\n var _ret = edge.getItemsOnPoint(point);\n items.push.apply(items, _ret); // Append the return value to the running list.\n }\n\n return items;\n }\n }]);\n return SelectionHandler;\n}();\n\nvar timsortExports = {};\nvar timsort$1 = {\n get exports(){ return timsortExports; },\n set exports(v){ timsortExports = v; },\n};\n\nvar timsort = {};\n\n/****\n * The MIT License\n *\n * Copyright (c) 2015 Marco Ziccardi\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n ****/\n\n(function (exports) {\n\t(function (global, factory) {\n\t {\n\t factory(exports);\n\t }\n\t})(commonjsGlobal, function (exports) {\n\n\t exports.__esModule = true;\n\t exports.sort = sort;\n\n\t function _classCallCheck(instance, Constructor) {\n\t if (!(instance instanceof Constructor)) {\n\t throw new TypeError('Cannot call a class as a function');\n\t }\n\t }\n\n\t var DEFAULT_MIN_MERGE = 32;\n\n\t var DEFAULT_MIN_GALLOPING = 7;\n\n\t var DEFAULT_TMP_STORAGE_LENGTH = 256;\n\n\t var POWERS_OF_TEN = [1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9];\n\n\t function log10(x) {\n\t if (x < 1e5) {\n\t if (x < 1e2) {\n\t return x < 1e1 ? 0 : 1;\n\t }\n\n\t if (x < 1e4) {\n\t return x < 1e3 ? 2 : 3;\n\t }\n\n\t return 4;\n\t }\n\n\t if (x < 1e7) {\n\t return x < 1e6 ? 5 : 6;\n\t }\n\n\t if (x < 1e9) {\n\t return x < 1e8 ? 7 : 8;\n\t }\n\n\t return 9;\n\t }\n\n\t function alphabeticalCompare(a, b) {\n\t if (a === b) {\n\t return 0;\n\t }\n\n\t if (~ ~a === a && ~ ~b === b) {\n\t if (a === 0 || b === 0) {\n\t return a < b ? -1 : 1;\n\t }\n\n\t if (a < 0 || b < 0) {\n\t if (b >= 0) {\n\t return -1;\n\t }\n\n\t if (a >= 0) {\n\t return 1;\n\t }\n\n\t a = -a;\n\t b = -b;\n\t }\n\n\t var al = log10(a);\n\t var bl = log10(b);\n\n\t var t = 0;\n\n\t if (al < bl) {\n\t a *= POWERS_OF_TEN[bl - al - 1];\n\t b /= 10;\n\t t = -1;\n\t } else if (al > bl) {\n\t b *= POWERS_OF_TEN[al - bl - 1];\n\t a /= 10;\n\t t = 1;\n\t }\n\n\t if (a === b) {\n\t return t;\n\t }\n\n\t return a < b ? -1 : 1;\n\t }\n\n\t var aStr = String(a);\n\t var bStr = String(b);\n\n\t if (aStr === bStr) {\n\t return 0;\n\t }\n\n\t return aStr < bStr ? -1 : 1;\n\t }\n\n\t function minRunLength(n) {\n\t var r = 0;\n\n\t while (n >= DEFAULT_MIN_MERGE) {\n\t r |= n & 1;\n\t n >>= 1;\n\t }\n\n\t return n + r;\n\t }\n\n\t function makeAscendingRun(array, lo, hi, compare) {\n\t var runHi = lo + 1;\n\n\t if (runHi === hi) {\n\t return 1;\n\t }\n\n\t if (compare(array[runHi++], array[lo]) < 0) {\n\t while (runHi < hi && compare(array[runHi], array[runHi - 1]) < 0) {\n\t runHi++;\n\t }\n\n\t reverseRun(array, lo, runHi);\n\t } else {\n\t while (runHi < hi && compare(array[runHi], array[runHi - 1]) >= 0) {\n\t runHi++;\n\t }\n\t }\n\n\t return runHi - lo;\n\t }\n\n\t function reverseRun(array, lo, hi) {\n\t hi--;\n\n\t while (lo < hi) {\n\t var t = array[lo];\n\t array[lo++] = array[hi];\n\t array[hi--] = t;\n\t }\n\t }\n\n\t function binaryInsertionSort(array, lo, hi, start, compare) {\n\t if (start === lo) {\n\t start++;\n\t }\n\n\t for (; start < hi; start++) {\n\t var pivot = array[start];\n\n\t var left = lo;\n\t var right = start;\n\n\t while (left < right) {\n\t var mid = left + right >>> 1;\n\n\t if (compare(pivot, array[mid]) < 0) {\n\t right = mid;\n\t } else {\n\t left = mid + 1;\n\t }\n\t }\n\n\t var n = start - left;\n\n\t switch (n) {\n\t case 3:\n\t array[left + 3] = array[left + 2];\n\n\t case 2:\n\t array[left + 2] = array[left + 1];\n\n\t case 1:\n\t array[left + 1] = array[left];\n\t break;\n\t default:\n\t while (n > 0) {\n\t array[left + n] = array[left + n - 1];\n\t n--;\n\t }\n\t }\n\n\t array[left] = pivot;\n\t }\n\t }\n\n\t function gallopLeft(value, array, start, length, hint, compare) {\n\t var lastOffset = 0;\n\t var maxOffset = 0;\n\t var offset = 1;\n\n\t if (compare(value, array[start + hint]) > 0) {\n\t maxOffset = length - hint;\n\n\t while (offset < maxOffset && compare(value, array[start + hint + offset]) > 0) {\n\t lastOffset = offset;\n\t offset = (offset << 1) + 1;\n\n\t if (offset <= 0) {\n\t offset = maxOffset;\n\t }\n\t }\n\n\t if (offset > maxOffset) {\n\t offset = maxOffset;\n\t }\n\n\t lastOffset += hint;\n\t offset += hint;\n\t } else {\n\t maxOffset = hint + 1;\n\t while (offset < maxOffset && compare(value, array[start + hint - offset]) <= 0) {\n\t lastOffset = offset;\n\t offset = (offset << 1) + 1;\n\n\t if (offset <= 0) {\n\t offset = maxOffset;\n\t }\n\t }\n\t if (offset > maxOffset) {\n\t offset = maxOffset;\n\t }\n\n\t var tmp = lastOffset;\n\t lastOffset = hint - offset;\n\t offset = hint - tmp;\n\t }\n\n\t lastOffset++;\n\t while (lastOffset < offset) {\n\t var m = lastOffset + (offset - lastOffset >>> 1);\n\n\t if (compare(value, array[start + m]) > 0) {\n\t lastOffset = m + 1;\n\t } else {\n\t offset = m;\n\t }\n\t }\n\t return offset;\n\t }\n\n\t function gallopRight(value, array, start, length, hint, compare) {\n\t var lastOffset = 0;\n\t var maxOffset = 0;\n\t var offset = 1;\n\n\t if (compare(value, array[start + hint]) < 0) {\n\t maxOffset = hint + 1;\n\n\t while (offset < maxOffset && compare(value, array[start + hint - offset]) < 0) {\n\t lastOffset = offset;\n\t offset = (offset << 1) + 1;\n\n\t if (offset <= 0) {\n\t offset = maxOffset;\n\t }\n\t }\n\n\t if (offset > maxOffset) {\n\t offset = maxOffset;\n\t }\n\n\t var tmp = lastOffset;\n\t lastOffset = hint - offset;\n\t offset = hint - tmp;\n\t } else {\n\t maxOffset = length - hint;\n\n\t while (offset < maxOffset && compare(value, array[start + hint + offset]) >= 0) {\n\t lastOffset = offset;\n\t offset = (offset << 1) + 1;\n\n\t if (offset <= 0) {\n\t offset = maxOffset;\n\t }\n\t }\n\n\t if (offset > maxOffset) {\n\t offset = maxOffset;\n\t }\n\n\t lastOffset += hint;\n\t offset += hint;\n\t }\n\n\t lastOffset++;\n\n\t while (lastOffset < offset) {\n\t var m = lastOffset + (offset - lastOffset >>> 1);\n\n\t if (compare(value, array[start + m]) < 0) {\n\t offset = m;\n\t } else {\n\t lastOffset = m + 1;\n\t }\n\t }\n\n\t return offset;\n\t }\n\n\t var TimSort = (function () {\n\t function TimSort(array, compare) {\n\t _classCallCheck(this, TimSort);\n\n\t this.array = null;\n\t this.compare = null;\n\t this.minGallop = DEFAULT_MIN_GALLOPING;\n\t this.length = 0;\n\t this.tmpStorageLength = DEFAULT_TMP_STORAGE_LENGTH;\n\t this.stackLength = 0;\n\t this.runStart = null;\n\t this.runLength = null;\n\t this.stackSize = 0;\n\n\t this.array = array;\n\t this.compare = compare;\n\n\t this.length = array.length;\n\n\t if (this.length < 2 * DEFAULT_TMP_STORAGE_LENGTH) {\n\t this.tmpStorageLength = this.length >>> 1;\n\t }\n\n\t this.tmp = new Array(this.tmpStorageLength);\n\n\t this.stackLength = this.length < 120 ? 5 : this.length < 1542 ? 10 : this.length < 119151 ? 19 : 40;\n\n\t this.runStart = new Array(this.stackLength);\n\t this.runLength = new Array(this.stackLength);\n\t }\n\n\t TimSort.prototype.pushRun = function pushRun(runStart, runLength) {\n\t this.runStart[this.stackSize] = runStart;\n\t this.runLength[this.stackSize] = runLength;\n\t this.stackSize += 1;\n\t };\n\n\t TimSort.prototype.mergeRuns = function mergeRuns() {\n\t while (this.stackSize > 1) {\n\t var n = this.stackSize - 2;\n\n\t if (n >= 1 && this.runLength[n - 1] <= this.runLength[n] + this.runLength[n + 1] || n >= 2 && this.runLength[n - 2] <= this.runLength[n] + this.runLength[n - 1]) {\n\n\t if (this.runLength[n - 1] < this.runLength[n + 1]) {\n\t n--;\n\t }\n\t } else if (this.runLength[n] > this.runLength[n + 1]) {\n\t break;\n\t }\n\t this.mergeAt(n);\n\t }\n\t };\n\n\t TimSort.prototype.forceMergeRuns = function forceMergeRuns() {\n\t while (this.stackSize > 1) {\n\t var n = this.stackSize - 2;\n\n\t if (n > 0 && this.runLength[n - 1] < this.runLength[n + 1]) {\n\t n--;\n\t }\n\n\t this.mergeAt(n);\n\t }\n\t };\n\n\t TimSort.prototype.mergeAt = function mergeAt(i) {\n\t var compare = this.compare;\n\t var array = this.array;\n\n\t var start1 = this.runStart[i];\n\t var length1 = this.runLength[i];\n\t var start2 = this.runStart[i + 1];\n\t var length2 = this.runLength[i + 1];\n\n\t this.runLength[i] = length1 + length2;\n\n\t if (i === this.stackSize - 3) {\n\t this.runStart[i + 1] = this.runStart[i + 2];\n\t this.runLength[i + 1] = this.runLength[i + 2];\n\t }\n\n\t this.stackSize--;\n\n\t var k = gallopRight(array[start2], array, start1, length1, 0, compare);\n\t start1 += k;\n\t length1 -= k;\n\n\t if (length1 === 0) {\n\t return;\n\t }\n\n\t length2 = gallopLeft(array[start1 + length1 - 1], array, start2, length2, length2 - 1, compare);\n\n\t if (length2 === 0) {\n\t return;\n\t }\n\n\t if (length1 <= length2) {\n\t this.mergeLow(start1, length1, start2, length2);\n\t } else {\n\t this.mergeHigh(start1, length1, start2, length2);\n\t }\n\t };\n\n\t TimSort.prototype.mergeLow = function mergeLow(start1, length1, start2, length2) {\n\n\t var compare = this.compare;\n\t var array = this.array;\n\t var tmp = this.tmp;\n\t var i = 0;\n\n\t for (i = 0; i < length1; i++) {\n\t tmp[i] = array[start1 + i];\n\t }\n\n\t var cursor1 = 0;\n\t var cursor2 = start2;\n\t var dest = start1;\n\n\t array[dest++] = array[cursor2++];\n\n\t if (--length2 === 0) {\n\t for (i = 0; i < length1; i++) {\n\t array[dest + i] = tmp[cursor1 + i];\n\t }\n\t return;\n\t }\n\n\t if (length1 === 1) {\n\t for (i = 0; i < length2; i++) {\n\t array[dest + i] = array[cursor2 + i];\n\t }\n\t array[dest + length2] = tmp[cursor1];\n\t return;\n\t }\n\n\t var minGallop = this.minGallop;\n\n\t while (true) {\n\t var count1 = 0;\n\t var count2 = 0;\n\t var exit = false;\n\n\t do {\n\t if (compare(array[cursor2], tmp[cursor1]) < 0) {\n\t array[dest++] = array[cursor2++];\n\t count2++;\n\t count1 = 0;\n\n\t if (--length2 === 0) {\n\t exit = true;\n\t break;\n\t }\n\t } else {\n\t array[dest++] = tmp[cursor1++];\n\t count1++;\n\t count2 = 0;\n\t if (--length1 === 1) {\n\t exit = true;\n\t break;\n\t }\n\t }\n\t } while ((count1 | count2) < minGallop);\n\n\t if (exit) {\n\t break;\n\t }\n\n\t do {\n\t count1 = gallopRight(array[cursor2], tmp, cursor1, length1, 0, compare);\n\n\t if (count1 !== 0) {\n\t for (i = 0; i < count1; i++) {\n\t array[dest + i] = tmp[cursor1 + i];\n\t }\n\n\t dest += count1;\n\t cursor1 += count1;\n\t length1 -= count1;\n\t if (length1 <= 1) {\n\t exit = true;\n\t break;\n\t }\n\t }\n\n\t array[dest++] = array[cursor2++];\n\n\t if (--length2 === 0) {\n\t exit = true;\n\t break;\n\t }\n\n\t count2 = gallopLeft(tmp[cursor1], array, cursor2, length2, 0, compare);\n\n\t if (count2 !== 0) {\n\t for (i = 0; i < count2; i++) {\n\t array[dest + i] = array[cursor2 + i];\n\t }\n\n\t dest += count2;\n\t cursor2 += count2;\n\t length2 -= count2;\n\n\t if (length2 === 0) {\n\t exit = true;\n\t break;\n\t }\n\t }\n\t array[dest++] = tmp[cursor1++];\n\n\t if (--length1 === 1) {\n\t exit = true;\n\t break;\n\t }\n\n\t minGallop--;\n\t } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING);\n\n\t if (exit) {\n\t break;\n\t }\n\n\t if (minGallop < 0) {\n\t minGallop = 0;\n\t }\n\n\t minGallop += 2;\n\t }\n\n\t this.minGallop = minGallop;\n\n\t if (minGallop < 1) {\n\t this.minGallop = 1;\n\t }\n\n\t if (length1 === 1) {\n\t for (i = 0; i < length2; i++) {\n\t array[dest + i] = array[cursor2 + i];\n\t }\n\t array[dest + length2] = tmp[cursor1];\n\t } else if (length1 === 0) {\n\t throw new Error('mergeLow preconditions were not respected');\n\t } else {\n\t for (i = 0; i < length1; i++) {\n\t array[dest + i] = tmp[cursor1 + i];\n\t }\n\t }\n\t };\n\n\t TimSort.prototype.mergeHigh = function mergeHigh(start1, length1, start2, length2) {\n\t var compare = this.compare;\n\t var array = this.array;\n\t var tmp = this.tmp;\n\t var i = 0;\n\n\t for (i = 0; i < length2; i++) {\n\t tmp[i] = array[start2 + i];\n\t }\n\n\t var cursor1 = start1 + length1 - 1;\n\t var cursor2 = length2 - 1;\n\t var dest = start2 + length2 - 1;\n\t var customCursor = 0;\n\t var customDest = 0;\n\n\t array[dest--] = array[cursor1--];\n\n\t if (--length1 === 0) {\n\t customCursor = dest - (length2 - 1);\n\n\t for (i = 0; i < length2; i++) {\n\t array[customCursor + i] = tmp[i];\n\t }\n\n\t return;\n\t }\n\n\t if (length2 === 1) {\n\t dest -= length1;\n\t cursor1 -= length1;\n\t customDest = dest + 1;\n\t customCursor = cursor1 + 1;\n\n\t for (i = length1 - 1; i >= 0; i--) {\n\t array[customDest + i] = array[customCursor + i];\n\t }\n\n\t array[dest] = tmp[cursor2];\n\t return;\n\t }\n\n\t var minGallop = this.minGallop;\n\n\t while (true) {\n\t var count1 = 0;\n\t var count2 = 0;\n\t var exit = false;\n\n\t do {\n\t if (compare(tmp[cursor2], array[cursor1]) < 0) {\n\t array[dest--] = array[cursor1--];\n\t count1++;\n\t count2 = 0;\n\t if (--length1 === 0) {\n\t exit = true;\n\t break;\n\t }\n\t } else {\n\t array[dest--] = tmp[cursor2--];\n\t count2++;\n\t count1 = 0;\n\t if (--length2 === 1) {\n\t exit = true;\n\t break;\n\t }\n\t }\n\t } while ((count1 | count2) < minGallop);\n\n\t if (exit) {\n\t break;\n\t }\n\n\t do {\n\t count1 = length1 - gallopRight(tmp[cursor2], array, start1, length1, length1 - 1, compare);\n\n\t if (count1 !== 0) {\n\t dest -= count1;\n\t cursor1 -= count1;\n\t length1 -= count1;\n\t customDest = dest + 1;\n\t customCursor = cursor1 + 1;\n\n\t for (i = count1 - 1; i >= 0; i--) {\n\t array[customDest + i] = array[customCursor + i];\n\t }\n\n\t if (length1 === 0) {\n\t exit = true;\n\t break;\n\t }\n\t }\n\n\t array[dest--] = tmp[cursor2--];\n\n\t if (--length2 === 1) {\n\t exit = true;\n\t break;\n\t }\n\n\t count2 = length2 - gallopLeft(array[cursor1], tmp, 0, length2, length2 - 1, compare);\n\n\t if (count2 !== 0) {\n\t dest -= count2;\n\t cursor2 -= count2;\n\t length2 -= count2;\n\t customDest = dest + 1;\n\t customCursor = cursor2 + 1;\n\n\t for (i = 0; i < count2; i++) {\n\t array[customDest + i] = tmp[customCursor + i];\n\t }\n\n\t if (length2 <= 1) {\n\t exit = true;\n\t break;\n\t }\n\t }\n\n\t array[dest--] = array[cursor1--];\n\n\t if (--length1 === 0) {\n\t exit = true;\n\t break;\n\t }\n\n\t minGallop--;\n\t } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING);\n\n\t if (exit) {\n\t break;\n\t }\n\n\t if (minGallop < 0) {\n\t minGallop = 0;\n\t }\n\n\t minGallop += 2;\n\t }\n\n\t this.minGallop = minGallop;\n\n\t if (minGallop < 1) {\n\t this.minGallop = 1;\n\t }\n\n\t if (length2 === 1) {\n\t dest -= length1;\n\t cursor1 -= length1;\n\t customDest = dest + 1;\n\t customCursor = cursor1 + 1;\n\n\t for (i = length1 - 1; i >= 0; i--) {\n\t array[customDest + i] = array[customCursor + i];\n\t }\n\n\t array[dest] = tmp[cursor2];\n\t } else if (length2 === 0) {\n\t throw new Error('mergeHigh preconditions were not respected');\n\t } else {\n\t customCursor = dest - (length2 - 1);\n\t for (i = 0; i < length2; i++) {\n\t array[customCursor + i] = tmp[i];\n\t }\n\t }\n\t };\n\n\t return TimSort;\n\t })();\n\n\t function sort(array, compare, lo, hi) {\n\t if (!Array.isArray(array)) {\n\t throw new TypeError('Can only sort arrays');\n\t }\n\n\t if (!compare) {\n\t compare = alphabeticalCompare;\n\t } else if (typeof compare !== 'function') {\n\t hi = lo;\n\t lo = compare;\n\t compare = alphabeticalCompare;\n\t }\n\n\t if (!lo) {\n\t lo = 0;\n\t }\n\t if (!hi) {\n\t hi = array.length;\n\t }\n\n\t var remaining = hi - lo;\n\n\t if (remaining < 2) {\n\t return;\n\t }\n\n\t var runLength = 0;\n\n\t if (remaining < DEFAULT_MIN_MERGE) {\n\t runLength = makeAscendingRun(array, lo, hi, compare);\n\t binaryInsertionSort(array, lo, hi, lo + runLength, compare);\n\t return;\n\t }\n\n\t var ts = new TimSort(array, compare);\n\n\t var minRun = minRunLength(remaining);\n\n\t do {\n\t runLength = makeAscendingRun(array, lo, hi, compare);\n\t if (runLength < minRun) {\n\t var force = remaining;\n\t if (force > minRun) {\n\t force = minRun;\n\t }\n\n\t binaryInsertionSort(array, lo, lo + force, lo + runLength, compare);\n\t runLength = force;\n\t }\n\n\t ts.pushRun(lo, runLength);\n\t ts.mergeRuns();\n\n\t remaining -= runLength;\n\t lo += runLength;\n\t } while (remaining !== 0);\n\n\t ts.forceMergeRuns();\n\t }\n\t});\n} (timsort));\n\n(function (module) {\n\tmodule.exports = timsort;\n} (timsort$1));\n\nvar TimSort = /*@__PURE__*/getDefaultExportFromCjs(timsortExports);\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * Interface definition for direction strategy classes.\n *\n * This class describes the interface for the Strategy\n * pattern classes used to differentiate horizontal and vertical\n * direction of hierarchical results.\n *\n * For a given direction, one coordinate will be 'fixed', meaning that it is\n * determined by level.\n * The other coordinate is 'unfixed', meaning that the nodes on a given level\n * can still move along that coordinate. So:\n *\n * - `vertical` layout: `x` unfixed, `y` fixed per level\n * - `horizontal` layout: `x` fixed per level, `y` unfixed\n *\n * The local methods are stubs and should be regarded as abstract.\n * Derived classes **must** implement all the methods themselves.\n *\n * @private\n */\nvar DirectionInterface = /*#__PURE__*/function () {\n function DirectionInterface() {\n _classCallCheck(this, DirectionInterface);\n }\n _createClass(DirectionInterface, [{\n key: \"abstract\",\n value:\n /**\n * @ignore\n */\n function abstract() {\n throw new Error(\"Can't instantiate abstract class!\");\n }\n\n /**\n * This is a dummy call which is used to suppress the jsdoc errors of type:\n *\n * \"'param' is assigned a value but never used\"\n *\n * @ignore\n */\n }, {\n key: \"fake_use\",\n value: function fake_use() {\n // Do nothing special\n }\n\n /**\n * Type to use to translate dynamic curves to, in the case of hierarchical layout.\n * Dynamic curves do not work for these.\n *\n * The value should be perpendicular to the actual direction of the layout.\n *\n * @returns {string} Direction, either 'vertical' or 'horizontal'\n */\n }, {\n key: \"curveType\",\n value: function curveType() {\n return this.abstract();\n }\n\n /**\n * Return the value of the coordinate that is not fixed for this direction.\n *\n * @param {Node} node The node to read\n * @returns {number} Value of the unfixed coordinate\n */\n }, {\n key: \"getPosition\",\n value: function getPosition(node) {\n this.fake_use(node);\n return this.abstract();\n }\n\n /**\n * Set the value of the coordinate that is not fixed for this direction.\n *\n * @param {Node} node The node to adjust\n * @param {number} position\n * @param {number} [level] if specified, the hierarchy level that this node should be fixed to\n */\n }, {\n key: \"setPosition\",\n value: function setPosition(node, position) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;\n this.fake_use(node, position, level);\n this.abstract();\n }\n\n /**\n * Get the width of a tree.\n *\n * A `tree` here is a subset of nodes within the network which are not connected to other nodes,\n * only among themselves. In essence, it is a sub-network.\n *\n * @param {number} index The index number of a tree\n * @returns {number} the width of a tree in the view coordinates\n */\n }, {\n key: \"getTreeSize\",\n value: function getTreeSize(index) {\n this.fake_use(index);\n return this.abstract();\n }\n\n /**\n * Sort array of nodes on the unfixed coordinates.\n *\n * Note:** chrome has non-stable sorting implementation, which\n * has a tendency to change the order of the array items,\n * even if the custom sort function returns 0.\n *\n * For this reason, an external sort implementation is used,\n * which has the added benefit of being faster than the standard\n * platforms implementation. This has been verified on `node.js`,\n * `firefox` and `chrome` (all linux).\n *\n * @param {Array.} nodeArray array of nodes to sort\n */\n }, {\n key: \"sort\",\n value: function sort(nodeArray) {\n this.fake_use(nodeArray);\n this.abstract();\n }\n\n /**\n * Assign the fixed coordinate of the node to the given level\n *\n * @param {Node} node The node to adjust\n * @param {number} level The level to fix to\n */\n }, {\n key: \"fix\",\n value: function fix(node, level) {\n this.fake_use(node, level);\n this.abstract();\n }\n\n /**\n * Add an offset to the unfixed coordinate of the given node.\n *\n * @param {NodeId} nodeId Id of the node to adjust\n * @param {number} diff Offset to add to the unfixed coordinate\n */\n }, {\n key: \"shift\",\n value: function shift(nodeId, diff) {\n this.fake_use(nodeId, diff);\n this.abstract();\n }\n }]);\n return DirectionInterface;\n}();\n/**\n * Vertical Strategy\n *\n * Coordinate `y` is fixed on levels, coordinate `x` is unfixed.\n *\n * @augments DirectionInterface\n * @private\n */\nvar VerticalStrategy = /*#__PURE__*/function (_DirectionInterface) {\n _inherits(VerticalStrategy, _DirectionInterface);\n var _super = _createSuper(VerticalStrategy);\n /**\n * Constructor\n *\n * @param {object} layout reference to the parent LayoutEngine instance.\n */\n function VerticalStrategy(layout) {\n var _this;\n _classCallCheck(this, VerticalStrategy);\n _this = _super.call(this);\n _this.layout = layout;\n return _this;\n }\n\n /** @inheritDoc */\n _createClass(VerticalStrategy, [{\n key: \"curveType\",\n value: function curveType() {\n return \"horizontal\";\n }\n\n /** @inheritDoc */\n }, {\n key: \"getPosition\",\n value: function getPosition(node) {\n return node.x;\n }\n\n /** @inheritDoc */\n }, {\n key: \"setPosition\",\n value: function setPosition(node, position) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;\n if (level !== undefined) {\n this.layout.hierarchical.addToOrdering(node, level);\n }\n node.x = position;\n }\n\n /** @inheritDoc */\n }, {\n key: \"getTreeSize\",\n value: function getTreeSize(index) {\n var res = this.layout.hierarchical.getTreeSize(this.layout.body.nodes, index);\n return {\n min: res.min_x,\n max: res.max_x\n };\n }\n\n /** @inheritDoc */\n }, {\n key: \"sort\",\n value: function sort(nodeArray) {\n timsortExports.sort(nodeArray, function (a, b) {\n return a.x - b.x;\n });\n }\n\n /** @inheritDoc */\n }, {\n key: \"fix\",\n value: function fix(node, level) {\n node.y = this.layout.options.hierarchical.levelSeparation * level;\n node.options.fixed.y = true;\n }\n\n /** @inheritDoc */\n }, {\n key: \"shift\",\n value: function shift(nodeId, diff) {\n this.layout.body.nodes[nodeId].x += diff;\n }\n }]);\n return VerticalStrategy;\n}(DirectionInterface);\n/**\n * Horizontal Strategy\n *\n * Coordinate `x` is fixed on levels, coordinate `y` is unfixed.\n *\n * @augments DirectionInterface\n * @private\n */\nvar HorizontalStrategy = /*#__PURE__*/function (_DirectionInterface2) {\n _inherits(HorizontalStrategy, _DirectionInterface2);\n var _super2 = _createSuper(HorizontalStrategy);\n /**\n * Constructor\n *\n * @param {object} layout reference to the parent LayoutEngine instance.\n */\n function HorizontalStrategy(layout) {\n var _this2;\n _classCallCheck(this, HorizontalStrategy);\n _this2 = _super2.call(this);\n _this2.layout = layout;\n return _this2;\n }\n\n /** @inheritDoc */\n _createClass(HorizontalStrategy, [{\n key: \"curveType\",\n value: function curveType() {\n return \"vertical\";\n }\n\n /** @inheritDoc */\n }, {\n key: \"getPosition\",\n value: function getPosition(node) {\n return node.y;\n }\n\n /** @inheritDoc */\n }, {\n key: \"setPosition\",\n value: function setPosition(node, position) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;\n if (level !== undefined) {\n this.layout.hierarchical.addToOrdering(node, level);\n }\n node.y = position;\n }\n\n /** @inheritDoc */\n }, {\n key: \"getTreeSize\",\n value: function getTreeSize(index) {\n var res = this.layout.hierarchical.getTreeSize(this.layout.body.nodes, index);\n return {\n min: res.min_y,\n max: res.max_y\n };\n }\n\n /** @inheritDoc */\n }, {\n key: \"sort\",\n value: function sort(nodeArray) {\n timsortExports.sort(nodeArray, function (a, b) {\n return a.y - b.y;\n });\n }\n\n /** @inheritDoc */\n }, {\n key: \"fix\",\n value: function fix(node, level) {\n node.x = this.layout.options.hierarchical.levelSeparation * level;\n node.options.fixed.x = true;\n }\n\n /** @inheritDoc */\n }, {\n key: \"shift\",\n value: function shift(nodeId, diff) {\n this.layout.body.nodes[nodeId].y += diff;\n }\n }]);\n return HorizontalStrategy;\n}(DirectionInterface);\n\nvar everyExports = {};\nvar every$3 = {\n get exports(){ return everyExports; },\n set exports(v){ everyExports = v; },\n};\n\nvar $ = _export;\nvar $every = arrayIteration.every;\nvar arrayMethodIsStrict = arrayMethodIsStrict$6;\n\nvar STRICT_METHOD = arrayMethodIsStrict('every');\n\n// `Array.prototype.every` method\n// https://tc39.es/ecma262/#sec-array.prototype.every\n$({ target: 'Array', proto: true, forced: !STRICT_METHOD }, {\n every: function every(callbackfn /* , thisArg */) {\n return $every(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\nvar entryVirtual = entryVirtual$l;\n\nvar every$2 = entryVirtual('Array').every;\n\nvar isPrototypeOf = objectIsPrototypeOf;\nvar method = every$2;\n\nvar ArrayPrototype = Array.prototype;\n\nvar every$1 = function (it) {\n var own = it.every;\n return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.every) ? method : own;\n};\n\nvar parent = every$1;\n\nvar every = parent;\n\n(function (module) {\n\tmodule.exports = every;\n} (every$3));\n\nvar _everyInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(everyExports);\n\nfunction _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray$1(o, minLen) { var _context9; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray$1(o, minLen); var n = _sliceInstanceProperty(_context9 = Object.prototype.toString.call(o)).call(_context9, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }\nfunction _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n/**\r\n * Try to assign levels to nodes according to their positions in the cyclic “hierarchy”.\r\n *\r\n * @param nodes - Visible nodes of the graph.\r\n * @param levels - If present levels will be added to it, if not a new object will be created.\r\n * @returns Populated node levels.\r\n */\nfunction fillLevelsByDirectionCyclic(nodes, levels) {\n var edges = new _Set();\n _forEachInstanceProperty(nodes).call(nodes, function (node) {\n var _context;\n _forEachInstanceProperty(_context = node.edges).call(_context, function (edge) {\n if (edge.connected) {\n edges.add(edge);\n }\n });\n });\n _forEachInstanceProperty(edges).call(edges, function (edge) {\n var fromId = edge.from.id;\n var toId = edge.to.id;\n if (levels[fromId] == null) {\n levels[fromId] = 0;\n }\n if (levels[toId] == null || levels[fromId] >= levels[toId]) {\n levels[toId] = levels[fromId] + 1;\n }\n });\n return levels;\n}\n/**\r\n * Assign levels to nodes according to their positions in the hierarchy. Leaves will be lined up at the bottom and all other nodes as close to their children as possible.\r\n *\r\n * @param nodes - Visible nodes of the graph.\r\n * @returns Populated node levels.\r\n */\nfunction fillLevelsByDirectionLeaves(nodes) {\n return fillLevelsByDirection(\n // Pick only leaves (nodes without children).\n function (node) {\n var _context2, _context3;\n return _everyInstanceProperty(_context2 = _filterInstanceProperty(_context3 = node.edges\n // Take only visible nodes into account.\n ).call(_context3, function (edge) {\n return nodes.has(edge.toId);\n })\n // Check that all edges lead to this node (leaf).\n ).call(_context2, function (edge) {\n return edge.to === node;\n });\n },\n // Use the lowest level.\n function (newLevel, oldLevel) {\n return oldLevel > newLevel;\n },\n // Go against the direction of the edges.\n \"from\", nodes);\n}\n/**\r\n * Assign levels to nodes according to their positions in the hierarchy. Roots will be lined up at the top and all nodes as close to their parents as possible.\r\n *\r\n * @param nodes - Visible nodes of the graph.\r\n * @returns Populated node levels.\r\n */\nfunction fillLevelsByDirectionRoots(nodes) {\n return fillLevelsByDirection(\n // Pick only roots (nodes without parents).\n function (node) {\n var _context4, _context5;\n return _everyInstanceProperty(_context4 = _filterInstanceProperty(_context5 = node.edges\n // Take only visible nodes into account.\n ).call(_context5, function (edge) {\n return nodes.has(edge.toId);\n })\n // Check that all edges lead from this node (root).\n ).call(_context4, function (edge) {\n return edge.from === node;\n });\n },\n // Use the highest level.\n function (newLevel, oldLevel) {\n return oldLevel < newLevel;\n },\n // Go in the direction of the edges.\n \"to\", nodes);\n}\n/**\r\n * Assign levels to nodes according to their positions in the hierarchy.\r\n *\r\n * @param isEntryNode - Checks and return true if the graph should be traversed from this node.\r\n * @param shouldLevelBeReplaced - Checks and returns true if the level of given node should be updated to the new value.\r\n * @param direction - Wheter the graph should be traversed in the direction of the edges `\"to\"` or in the other way `\"from\"`.\r\n * @param nodes - Visible nodes of the graph.\r\n * @returns Populated node levels.\r\n */\nfunction fillLevelsByDirection(isEntryNode, shouldLevelBeReplaced, direction, nodes) {\n var _context6;\n var levels = _Object$create$1(null);\n // If acyclic, the graph can be walked through with (most likely way) fewer\n // steps than the number bellow. The exact value isn't too important as long\n // as it's quick to compute (doesn't impact acyclic graphs too much), is\n // higher than the number of steps actually needed (doesn't cut off before\n // acyclic graph is walked through) and prevents infinite loops (cuts off for\n // cyclic graphs).\n var limit = _reduceInstanceProperty(_context6 = _toConsumableArray(_valuesInstanceProperty(nodes).call(nodes))).call(_context6, function (acc, node) {\n return acc + 1 + node.edges.length;\n }, 0);\n var edgeIdProp = direction + \"Id\";\n var newLevelDiff = direction === \"to\" ? 1 : -1;\n var _iterator = _createForOfIteratorHelper$1(nodes),\n _step;\n try {\n var _loop = function _loop() {\n var _step$value = _slicedToArray(_step.value, 2),\n entryNodeId = _step$value[0],\n entryNode = _step$value[1];\n if (\n // Skip if the node is not visible.\n !nodes.has(entryNodeId) ||\n // Skip if the node is not an entry node.\n !isEntryNode(entryNode)) {\n return \"continue\";\n }\n // Line up all the entry nodes on level 0.\n levels[entryNodeId] = 0;\n var stack = [entryNode];\n var done = 0;\n var node;\n var _loop2 = function _loop2() {\n var _context7, _context8;\n if (!nodes.has(entryNodeId)) {\n // Skip if the node is not visible.\n return \"continue\";\n }\n var newLevel = levels[node.id] + newLevelDiff;\n _forEachInstanceProperty(_context7 = _filterInstanceProperty(_context8 = node.edges).call(_context8, function (edge) {\n return (\n // Ignore disconnected edges.\n edge.connected &&\n // Ignore circular edges.\n edge.to !== edge.from &&\n // Ignore edges leading to the node that's currently being processed.\n edge[direction] !== node &&\n // Ignore edges connecting to an invisible node.\n nodes.has(edge.toId) &&\n // Ignore edges connecting from an invisible node.\n nodes.has(edge.fromId)\n );\n })).call(_context7, function (edge) {\n var targetNodeId = edge[edgeIdProp];\n var oldLevel = levels[targetNodeId];\n if (oldLevel == null || shouldLevelBeReplaced(newLevel, oldLevel)) {\n levels[targetNodeId] = newLevel;\n stack.push(edge[direction]);\n }\n });\n if (done > limit) {\n // This would run forever on a cyclic graph.\n return {\n v: {\n v: fillLevelsByDirectionCyclic(nodes, levels)\n }\n };\n } else {\n ++done;\n }\n };\n while (node = stack.pop()) {\n var _ret2 = _loop2();\n if (_ret2 === \"continue\") continue;\n if (_typeof$1(_ret2) === \"object\") return _ret2.v;\n }\n };\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _ret = _loop();\n if (_ret === \"continue\") continue;\n if (_typeof$1(_ret) === \"object\") return _ret.v;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return levels;\n}\n\n/**\n * There's a mix-up with terms in the code. Following are the formal definitions:\n *\n * tree - a strict hierarchical network, i.e. every node has at most one parent\n * forest - a collection of trees. These distinct trees are thus not connected.\n *\n * So:\n * - in a network that is not a tree, there exist nodes with multiple parents.\n * - a network consisting of unconnected sub-networks, of which at least one\n * is not a tree, is not a forest.\n *\n * In the code, the definitions are:\n *\n * tree - any disconnected sub-network, strict hierarchical or not.\n * forest - a bunch of these sub-networks\n *\n * The difference between tree and not-tree is important in the code, notably within\n * to the block-shifting algorithm. The algorithm assumes formal trees and fails\n * for not-trees, often in a spectacular manner (search for 'exploding network' in the issues).\n *\n * In order to distinguish the definitions in the following code, the adjective 'formal' is\n * used. If 'formal' is absent, you must assume the non-formal definition.\n *\n * ----------------------------------------------------------------------------------\n * NOTES\n * =====\n *\n * A hierarchical layout is a different thing from a hierarchical network.\n * The layout is a way to arrange the nodes in the view; this can be done\n * on non-hierarchical networks as well. The converse is also possible.\n */\n\n/**\n * Container for derived data on current network, relating to hierarchy.\n *\n * @private\n */\nvar HierarchicalStatus = /*#__PURE__*/function () {\n /**\n * @ignore\n */\n function HierarchicalStatus() {\n _classCallCheck(this, HierarchicalStatus);\n this.childrenReference = {}; // child id's per node id\n this.parentReference = {}; // parent id's per node id\n this.trees = {}; // tree id per node id; i.e. to which tree does given node id belong\n\n this.distributionOrdering = {}; // The nodes per level, in the display order\n this.levels = {}; // hierarchy level per node id\n this.distributionIndex = {}; // The position of the node in the level sorting order, per node id.\n\n this.isTree = false; // True if current network is a formal tree\n this.treeIndex = -1; // Highest tree id in current network.\n }\n\n /**\n * Add the relation between given nodes to the current state.\n *\n * @param {Node.id} parentNodeId\n * @param {Node.id} childNodeId\n */\n _createClass(HierarchicalStatus, [{\n key: \"addRelation\",\n value: function addRelation(parentNodeId, childNodeId) {\n if (this.childrenReference[parentNodeId] === undefined) {\n this.childrenReference[parentNodeId] = [];\n }\n this.childrenReference[parentNodeId].push(childNodeId);\n if (this.parentReference[childNodeId] === undefined) {\n this.parentReference[childNodeId] = [];\n }\n this.parentReference[childNodeId].push(parentNodeId);\n }\n\n /**\n * Check if the current state is for a formal tree or formal forest.\n *\n * This is the case if every node has at most one parent.\n *\n * Pre: parentReference init'ed properly for current network\n */\n }, {\n key: \"checkIfTree\",\n value: function checkIfTree() {\n for (var i in this.parentReference) {\n if (this.parentReference[i].length > 1) {\n this.isTree = false;\n return;\n }\n }\n this.isTree = true;\n }\n\n /**\n * Return the number of separate trees in the current network.\n *\n * @returns {number}\n */\n }, {\n key: \"numTrees\",\n value: function numTrees() {\n return this.treeIndex + 1; // This assumes the indexes are assigned consecitively\n }\n\n /**\n * Assign a tree id to a node\n *\n * @param {Node} node\n * @param {string|number} treeId\n */\n }, {\n key: \"setTreeIndex\",\n value: function setTreeIndex(node, treeId) {\n if (treeId === undefined) return; // Don't bother\n\n if (this.trees[node.id] === undefined) {\n this.trees[node.id] = treeId;\n this.treeIndex = Math.max(treeId, this.treeIndex);\n }\n }\n\n /**\n * Ensure level for given id is defined.\n *\n * Sets level to zero for given node id if not already present\n *\n * @param {Node.id} nodeId\n */\n }, {\n key: \"ensureLevel\",\n value: function ensureLevel(nodeId) {\n if (this.levels[nodeId] === undefined) {\n this.levels[nodeId] = 0;\n }\n }\n\n /**\n * get the maximum level of a branch.\n *\n * TODO: Never entered; find a test case to test this!\n *\n * @param {Node.id} nodeId\n * @returns {number}\n */\n }, {\n key: \"getMaxLevel\",\n value: function getMaxLevel(nodeId) {\n var _this = this;\n var accumulator = {};\n var _getMaxLevel = function _getMaxLevel(nodeId) {\n if (accumulator[nodeId] !== undefined) {\n return accumulator[nodeId];\n }\n var level = _this.levels[nodeId];\n if (_this.childrenReference[nodeId]) {\n var children = _this.childrenReference[nodeId];\n if (children.length > 0) {\n for (var i = 0; i < children.length; i++) {\n level = Math.max(level, _getMaxLevel(children[i]));\n }\n }\n }\n accumulator[nodeId] = level;\n return level;\n };\n return _getMaxLevel(nodeId);\n }\n\n /**\n *\n * @param {Node} nodeA\n * @param {Node} nodeB\n */\n }, {\n key: \"levelDownstream\",\n value: function levelDownstream(nodeA, nodeB) {\n if (this.levels[nodeB.id] === undefined) {\n // set initial level\n if (this.levels[nodeA.id] === undefined) {\n this.levels[nodeA.id] = 0;\n }\n // set level\n this.levels[nodeB.id] = this.levels[nodeA.id] + 1;\n }\n }\n\n /**\n * Small util method to set the minimum levels of the nodes to zero.\n *\n * @param {Array.} nodes\n */\n }, {\n key: \"setMinLevelToZero\",\n value: function setMinLevelToZero(nodes) {\n var minLevel = 1e9;\n // get the minimum level\n for (var nodeId in nodes) {\n if (Object.prototype.hasOwnProperty.call(nodes, nodeId)) {\n if (this.levels[nodeId] !== undefined) {\n minLevel = Math.min(this.levels[nodeId], minLevel);\n }\n }\n }\n\n // subtract the minimum from the set so we have a range starting from 0\n for (var _nodeId in nodes) {\n if (Object.prototype.hasOwnProperty.call(nodes, _nodeId)) {\n if (this.levels[_nodeId] !== undefined) {\n this.levels[_nodeId] -= minLevel;\n }\n }\n }\n }\n\n /**\n * Get the min and max xy-coordinates of a given tree\n *\n * @param {Array.} nodes\n * @param {number} index\n * @returns {{min_x: number, max_x: number, min_y: number, max_y: number}}\n */\n }, {\n key: \"getTreeSize\",\n value: function getTreeSize(nodes, index) {\n var min_x = 1e9;\n var max_x = -1e9;\n var min_y = 1e9;\n var max_y = -1e9;\n for (var nodeId in this.trees) {\n if (Object.prototype.hasOwnProperty.call(this.trees, nodeId)) {\n if (this.trees[nodeId] === index) {\n var node = nodes[nodeId];\n min_x = Math.min(node.x, min_x);\n max_x = Math.max(node.x, max_x);\n min_y = Math.min(node.y, min_y);\n max_y = Math.max(node.y, max_y);\n }\n }\n }\n return {\n min_x: min_x,\n max_x: max_x,\n min_y: min_y,\n max_y: max_y\n };\n }\n\n /**\n * Check if two nodes have the same parent(s)\n *\n * @param {Node} node1\n * @param {Node} node2\n * @returns {boolean} true if the two nodes have a same ancestor node, false otherwise\n */\n }, {\n key: \"hasSameParent\",\n value: function hasSameParent(node1, node2) {\n var parents1 = this.parentReference[node1.id];\n var parents2 = this.parentReference[node2.id];\n if (parents1 === undefined || parents2 === undefined) {\n return false;\n }\n for (var i = 0; i < parents1.length; i++) {\n for (var j = 0; j < parents2.length; j++) {\n if (parents1[i] == parents2[j]) {\n return true;\n }\n }\n }\n return false;\n }\n\n /**\n * Check if two nodes are in the same tree.\n *\n * @param {Node} node1\n * @param {Node} node2\n * @returns {boolean} true if this is so, false otherwise\n */\n }, {\n key: \"inSameSubNetwork\",\n value: function inSameSubNetwork(node1, node2) {\n return this.trees[node1.id] === this.trees[node2.id];\n }\n\n /**\n * Get a list of the distinct levels in the current network\n *\n * @returns {Array}\n */\n }, {\n key: \"getLevels\",\n value: function getLevels() {\n return _Object$keys(this.distributionOrdering);\n }\n\n /**\n * Add a node to the ordering per level\n *\n * @param {Node} node\n * @param {number} level\n */\n }, {\n key: \"addToOrdering\",\n value: function addToOrdering(node, level) {\n if (this.distributionOrdering[level] === undefined) {\n this.distributionOrdering[level] = [];\n }\n var isPresent = false;\n var curLevel = this.distributionOrdering[level];\n for (var n in curLevel) {\n //if (curLevel[n].id === node.id) {\n if (curLevel[n] === node) {\n isPresent = true;\n break;\n }\n }\n if (!isPresent) {\n this.distributionOrdering[level].push(node);\n this.distributionIndex[node.id] = this.distributionOrdering[level].length - 1;\n }\n }\n }]);\n return HierarchicalStatus;\n}();\n/**\n * The Layout Engine\n */\nvar LayoutEngine = /*#__PURE__*/function () {\n /**\n * @param {object} body\n */\n function LayoutEngine(body) {\n _classCallCheck(this, LayoutEngine);\n this.body = body;\n\n // Make sure there always is some RNG because the setOptions method won't\n // set it unless there's a seed for it.\n this._resetRNG(Math.random() + \":\" + _Date$now());\n this.setPhysics = false;\n this.options = {};\n this.optionsBackup = {\n physics: {}\n };\n this.defaultOptions = {\n randomSeed: undefined,\n improvedLayout: true,\n clusterThreshold: 150,\n hierarchical: {\n enabled: false,\n levelSeparation: 150,\n nodeSpacing: 100,\n treeSpacing: 200,\n blockShifting: true,\n edgeMinimization: true,\n parentCentralization: true,\n direction: \"UD\",\n // UD, DU, LR, RL\n sortMethod: \"hubsize\" // hubsize, directed\n }\n };\n\n _Object$assign(this.options, this.defaultOptions);\n this.bindEventListeners();\n }\n\n /**\n * Binds event listeners\n */\n _createClass(LayoutEngine, [{\n key: \"bindEventListeners\",\n value: function bindEventListeners() {\n var _this2 = this;\n this.body.emitter.on(\"_dataChanged\", function () {\n _this2.setupHierarchicalLayout();\n });\n this.body.emitter.on(\"_dataLoaded\", function () {\n _this2.layoutNetwork();\n });\n this.body.emitter.on(\"_resetHierarchicalLayout\", function () {\n _this2.setupHierarchicalLayout();\n });\n this.body.emitter.on(\"_adjustEdgesForHierarchicalLayout\", function () {\n if (_this2.options.hierarchical.enabled !== true) {\n return;\n }\n // get the type of static smooth curve in case it is required\n var type = _this2.direction.curveType();\n\n // force all edges into static smooth curves.\n _this2.body.emitter.emit(\"_forceDisableDynamicCurves\", type, false);\n });\n }\n\n /**\n *\n * @param {object} options\n * @param {object} allOptions\n * @returns {object}\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options, allOptions) {\n if (options !== undefined) {\n var hierarchical = this.options.hierarchical;\n var prevHierarchicalState = hierarchical.enabled;\n selectiveDeepExtend([\"randomSeed\", \"improvedLayout\", \"clusterThreshold\"], this.options, options);\n mergeOptions(this.options, options, \"hierarchical\");\n if (options.randomSeed !== undefined) {\n this._resetRNG(options.randomSeed);\n }\n if (hierarchical.enabled === true) {\n if (prevHierarchicalState === true) {\n // refresh the overridden options for nodes and edges.\n this.body.emitter.emit(\"refresh\", true);\n }\n\n // make sure the level separation is the right way up\n if (hierarchical.direction === \"RL\" || hierarchical.direction === \"DU\") {\n if (hierarchical.levelSeparation > 0) {\n hierarchical.levelSeparation *= -1;\n }\n } else {\n if (hierarchical.levelSeparation < 0) {\n hierarchical.levelSeparation *= -1;\n }\n }\n this.setDirectionStrategy();\n this.body.emitter.emit(\"_resetHierarchicalLayout\");\n // because the hierarchical system needs it's own physics and smooth curve settings,\n // we adapt the other options if needed.\n return this.adaptAllOptionsForHierarchicalLayout(allOptions);\n } else {\n if (prevHierarchicalState === true) {\n // refresh the overridden options for nodes and edges.\n this.body.emitter.emit(\"refresh\");\n return deepExtend(allOptions, this.optionsBackup);\n }\n }\n }\n return allOptions;\n }\n\n /**\n * Reset the random number generator with given seed.\n *\n * @param {any} seed - The seed that will be forwarded the the RNG.\n */\n }, {\n key: \"_resetRNG\",\n value: function _resetRNG(seed) {\n this.initialRandomSeed = seed;\n this._rng = Alea(this.initialRandomSeed);\n }\n\n /**\n *\n * @param {object} allOptions\n * @returns {object}\n */\n }, {\n key: \"adaptAllOptionsForHierarchicalLayout\",\n value: function adaptAllOptionsForHierarchicalLayout(allOptions) {\n if (this.options.hierarchical.enabled === true) {\n var backupPhysics = this.optionsBackup.physics;\n\n // set the physics\n if (allOptions.physics === undefined || allOptions.physics === true) {\n allOptions.physics = {\n enabled: backupPhysics.enabled === undefined ? true : backupPhysics.enabled,\n solver: \"hierarchicalRepulsion\"\n };\n backupPhysics.enabled = backupPhysics.enabled === undefined ? true : backupPhysics.enabled;\n backupPhysics.solver = backupPhysics.solver || \"barnesHut\";\n } else if (_typeof$1(allOptions.physics) === \"object\") {\n backupPhysics.enabled = allOptions.physics.enabled === undefined ? true : allOptions.physics.enabled;\n backupPhysics.solver = allOptions.physics.solver || \"barnesHut\";\n allOptions.physics.solver = \"hierarchicalRepulsion\";\n } else if (allOptions.physics !== false) {\n backupPhysics.solver = \"barnesHut\";\n allOptions.physics = {\n solver: \"hierarchicalRepulsion\"\n };\n }\n\n // get the type of static smooth curve in case it is required\n var type = this.direction.curveType();\n\n // disable smooth curves if nothing is defined. If smooth curves have been turned on,\n // turn them into static smooth curves.\n if (allOptions.edges === undefined) {\n this.optionsBackup.edges = {\n smooth: {\n enabled: true,\n type: \"dynamic\"\n }\n };\n allOptions.edges = {\n smooth: false\n };\n } else if (allOptions.edges.smooth === undefined) {\n this.optionsBackup.edges = {\n smooth: {\n enabled: true,\n type: \"dynamic\"\n }\n };\n allOptions.edges.smooth = false;\n } else {\n if (typeof allOptions.edges.smooth === \"boolean\") {\n this.optionsBackup.edges = {\n smooth: allOptions.edges.smooth\n };\n allOptions.edges.smooth = {\n enabled: allOptions.edges.smooth,\n type: type\n };\n } else {\n var smooth = allOptions.edges.smooth;\n\n // allow custom types except for dynamic\n if (smooth.type !== undefined && smooth.type !== \"dynamic\") {\n type = smooth.type;\n }\n\n // TODO: this is options merging; see if the standard routines can be used here.\n this.optionsBackup.edges = {\n smooth: {\n enabled: smooth.enabled === undefined ? true : smooth.enabled,\n type: smooth.type === undefined ? \"dynamic\" : smooth.type,\n roundness: smooth.roundness === undefined ? 0.5 : smooth.roundness,\n forceDirection: smooth.forceDirection === undefined ? false : smooth.forceDirection\n }\n };\n\n // NOTE: Copying an object to self; this is basically setting defaults for undefined variables\n allOptions.edges.smooth = {\n enabled: smooth.enabled === undefined ? true : smooth.enabled,\n type: type,\n roundness: smooth.roundness === undefined ? 0.5 : smooth.roundness,\n forceDirection: smooth.forceDirection === undefined ? false : smooth.forceDirection\n };\n }\n }\n\n // Force all edges into static smooth curves.\n // Only applies to edges that do not use the global options for smooth.\n this.body.emitter.emit(\"_forceDisableDynamicCurves\", type);\n }\n return allOptions;\n }\n\n /**\n *\n * @param {Array.} nodesArray\n */\n }, {\n key: \"positionInitially\",\n value: function positionInitially(nodesArray) {\n if (this.options.hierarchical.enabled !== true) {\n this._resetRNG(this.initialRandomSeed);\n var radius = nodesArray.length + 50;\n for (var i = 0; i < nodesArray.length; i++) {\n var node = nodesArray[i];\n var angle = 2 * Math.PI * this._rng();\n if (node.x === undefined) {\n node.x = radius * Math.cos(angle);\n }\n if (node.y === undefined) {\n node.y = radius * Math.sin(angle);\n }\n }\n }\n }\n\n /**\n * Use Kamada Kawai to position nodes. This is quite a heavy algorithm so if there are a lot of nodes we\n * cluster them first to reduce the amount.\n */\n }, {\n key: \"layoutNetwork\",\n value: function layoutNetwork() {\n if (this.options.hierarchical.enabled !== true && this.options.improvedLayout === true) {\n var indices = this.body.nodeIndices;\n\n // first check if we should Kamada Kawai to layout. The threshold is if less than half of the visible\n // nodes have predefined positions we use this.\n var positionDefined = 0;\n for (var i = 0; i < indices.length; i++) {\n var node = this.body.nodes[indices[i]];\n if (node.predefinedPosition === true) {\n positionDefined += 1;\n }\n }\n\n // if less than half of the nodes have a predefined position we continue\n if (positionDefined < 0.5 * indices.length) {\n var MAX_LEVELS = 10;\n var level = 0;\n var clusterThreshold = this.options.clusterThreshold;\n\n //\n // Define the options for the hidden cluster nodes\n // These options don't propagate outside the clustering phase.\n //\n // Some options are explicitly disabled, because they may be set in group or default node options.\n // The clusters are never displayed, so most explicit settings here serve as performance optimizations.\n //\n // The explicit setting of 'shape' is to avoid `shape: 'image'`; images are not passed to the hidden\n // cluster nodes, leading to an exception on creation.\n //\n // All settings here are performance related, except when noted otherwise.\n //\n var clusterOptions = {\n clusterNodeProperties: {\n shape: \"ellipse\",\n // Bugfix: avoid type 'image', no images supplied\n label: \"\",\n // avoid label handling\n group: \"\",\n // avoid group handling\n font: {\n multi: false\n } // avoid font propagation\n },\n\n clusterEdgeProperties: {\n label: \"\",\n // avoid label handling\n font: {\n multi: false\n },\n // avoid font propagation\n smooth: {\n enabled: false // avoid drawing penalty for complex edges\n }\n }\n };\n\n // if there are a lot of nodes, we cluster before we run the algorithm.\n // NOTE: this part fails to find clusters for large scale-free networks, which should\n // be easily clusterable.\n // TODO: examine why this is so\n if (indices.length > clusterThreshold) {\n var startLength = indices.length;\n while (indices.length > clusterThreshold && level <= MAX_LEVELS) {\n //console.time(\"clustering\")\n level += 1;\n var before = indices.length;\n // if there are many nodes we do a hubsize cluster\n if (level % 3 === 0) {\n this.body.modules.clustering.clusterBridges(clusterOptions);\n } else {\n this.body.modules.clustering.clusterOutliers(clusterOptions);\n }\n var after = indices.length;\n if (before == after && level % 3 !== 0) {\n this._declusterAll();\n this.body.emitter.emit(\"_layoutFailed\");\n console.info(\"This network could not be positioned by this version of the improved layout algorithm.\" + \" Please disable improvedLayout for better performance.\");\n return;\n }\n //console.timeEnd(\"clustering\")\n //console.log(before,level,after);\n }\n // increase the size of the edges\n this.body.modules.kamadaKawai.setOptions({\n springLength: Math.max(150, 2 * startLength)\n });\n }\n if (level > MAX_LEVELS) {\n console.info(\"The clustering didn't succeed within the amount of interations allowed,\" + \" progressing with partial result.\");\n }\n\n // position the system for these nodes and edges\n this.body.modules.kamadaKawai.solve(indices, this.body.edgeIndices, true);\n\n // shift to center point\n this._shiftToCenter();\n\n // perturb the nodes a little bit to force the physics to kick in\n var offset = 70;\n for (var _i = 0; _i < indices.length; _i++) {\n // Only perturb the nodes that aren't fixed\n var _node = this.body.nodes[indices[_i]];\n if (_node.predefinedPosition === false) {\n _node.x += (0.5 - this._rng()) * offset;\n _node.y += (0.5 - this._rng()) * offset;\n }\n }\n\n // uncluster all clusters\n this._declusterAll();\n\n // reposition all bezier nodes.\n this.body.emitter.emit(\"_repositionBezierNodes\");\n }\n }\n }\n\n /**\n * Move all the nodes towards to the center so gravitational pull wil not move the nodes away from view\n *\n * @private\n */\n }, {\n key: \"_shiftToCenter\",\n value: function _shiftToCenter() {\n var range = NetworkUtil.getRangeCore(this.body.nodes, this.body.nodeIndices);\n var center = NetworkUtil.findCenter(range);\n for (var i = 0; i < this.body.nodeIndices.length; i++) {\n var node = this.body.nodes[this.body.nodeIndices[i]];\n node.x -= center.x;\n node.y -= center.y;\n }\n }\n\n /**\n * Expands all clusters\n *\n * @private\n */\n }, {\n key: \"_declusterAll\",\n value: function _declusterAll() {\n var clustersPresent = true;\n while (clustersPresent === true) {\n clustersPresent = false;\n for (var i = 0; i < this.body.nodeIndices.length; i++) {\n if (this.body.nodes[this.body.nodeIndices[i]].isCluster === true) {\n clustersPresent = true;\n this.body.modules.clustering.openCluster(this.body.nodeIndices[i], {}, false);\n }\n }\n if (clustersPresent === true) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n }\n\n /**\n *\n * @returns {number|*}\n */\n }, {\n key: \"getSeed\",\n value: function getSeed() {\n return this.initialRandomSeed;\n }\n\n /**\n * This is the main function to layout the nodes in a hierarchical way.\n * It checks if the node details are supplied correctly\n *\n * @private\n */\n }, {\n key: \"setupHierarchicalLayout\",\n value: function setupHierarchicalLayout() {\n if (this.options.hierarchical.enabled === true && this.body.nodeIndices.length > 0) {\n // get the size of the largest hubs and check if the user has defined a level for a node.\n var node, nodeId;\n var definedLevel = false;\n var undefinedLevel = false;\n this.lastNodeOnLevel = {};\n this.hierarchical = new HierarchicalStatus();\n for (nodeId in this.body.nodes) {\n if (Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId)) {\n node = this.body.nodes[nodeId];\n if (node.options.level !== undefined) {\n definedLevel = true;\n this.hierarchical.levels[nodeId] = node.options.level;\n } else {\n undefinedLevel = true;\n }\n }\n }\n\n // if the user defined some levels but not all, alert and run without hierarchical layout\n if (undefinedLevel === true && definedLevel === true) {\n throw new Error(\"To use the hierarchical layout, nodes require either no predefined levels\" + \" or levels have to be defined for all nodes.\");\n } else {\n // define levels if undefined by the users. Based on hubsize.\n if (undefinedLevel === true) {\n var sortMethod = this.options.hierarchical.sortMethod;\n if (sortMethod === \"hubsize\") {\n this._determineLevelsByHubsize();\n } else if (sortMethod === \"directed\") {\n this._determineLevelsDirected();\n } else if (sortMethod === \"custom\") {\n this._determineLevelsCustomCallback();\n }\n }\n\n // fallback for cases where there are nodes but no edges\n for (var _nodeId2 in this.body.nodes) {\n if (Object.prototype.hasOwnProperty.call(this.body.nodes, _nodeId2)) {\n this.hierarchical.ensureLevel(_nodeId2);\n }\n }\n // check the distribution of the nodes per level.\n var distribution = this._getDistribution();\n\n // get the parent children relations.\n this._generateMap();\n\n // place the nodes on the canvas.\n this._placeNodesByHierarchy(distribution);\n\n // condense the whitespace.\n this._condenseHierarchy();\n\n // shift to center so gravity does not have to do much\n this._shiftToCenter();\n }\n }\n }\n\n /**\n * @private\n */\n }, {\n key: \"_condenseHierarchy\",\n value: function _condenseHierarchy() {\n var _this3 = this;\n // Global var in this scope to define when the movement has stopped.\n var stillShifting = false;\n var branches = {};\n // first we have some methods to help shifting trees around.\n // the main method to shift the trees\n var shiftTrees = function shiftTrees() {\n var treeSizes = getTreeSizes();\n var shiftBy = 0;\n for (var i = 0; i < treeSizes.length - 1; i++) {\n var diff = treeSizes[i].max - treeSizes[i + 1].min;\n shiftBy += diff + _this3.options.hierarchical.treeSpacing;\n shiftTree(i + 1, shiftBy);\n }\n };\n\n // shift a single tree by an offset\n var shiftTree = function shiftTree(index, offset) {\n var trees = _this3.hierarchical.trees;\n for (var nodeId in trees) {\n if (Object.prototype.hasOwnProperty.call(trees, nodeId)) {\n if (trees[nodeId] === index) {\n _this3.direction.shift(nodeId, offset);\n }\n }\n }\n };\n\n // get the width of all trees\n var getTreeSizes = function getTreeSizes() {\n var treeWidths = [];\n for (var i = 0; i < _this3.hierarchical.numTrees(); i++) {\n treeWidths.push(_this3.direction.getTreeSize(i));\n }\n return treeWidths;\n };\n\n // get a map of all nodes in this branch\n var getBranchNodes = function getBranchNodes(source, map) {\n if (map[source.id]) {\n return;\n }\n map[source.id] = true;\n if (_this3.hierarchical.childrenReference[source.id]) {\n var children = _this3.hierarchical.childrenReference[source.id];\n if (children.length > 0) {\n for (var i = 0; i < children.length; i++) {\n getBranchNodes(_this3.body.nodes[children[i]], map);\n }\n }\n }\n };\n\n // get a min max width as well as the maximum movement space it has on either sides\n // we use min max terminology because width and height can interchange depending on the direction of the layout\n var getBranchBoundary = function getBranchBoundary(branchMap) {\n var maxLevel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1e9;\n var minSpace = 1e9;\n var maxSpace = 1e9;\n var min = 1e9;\n var max = -1e9;\n for (var branchNode in branchMap) {\n if (Object.prototype.hasOwnProperty.call(branchMap, branchNode)) {\n var node = _this3.body.nodes[branchNode];\n var level = _this3.hierarchical.levels[node.id];\n var position = _this3.direction.getPosition(node);\n\n // get the space around the node.\n var _this3$_getSpaceAroun = _this3._getSpaceAroundNode(node, branchMap),\n _this3$_getSpaceAroun2 = _slicedToArray(_this3$_getSpaceAroun, 2),\n minSpaceNode = _this3$_getSpaceAroun2[0],\n maxSpaceNode = _this3$_getSpaceAroun2[1];\n minSpace = Math.min(minSpaceNode, minSpace);\n maxSpace = Math.min(maxSpaceNode, maxSpace);\n\n // the width is only relevant for the levels two nodes have in common. This is why we filter on this.\n if (level <= maxLevel) {\n min = Math.min(position, min);\n max = Math.max(position, max);\n }\n }\n }\n return [min, max, minSpace, maxSpace];\n };\n\n // check what the maximum level is these nodes have in common.\n var getCollisionLevel = function getCollisionLevel(node1, node2) {\n var maxLevel1 = _this3.hierarchical.getMaxLevel(node1.id);\n var maxLevel2 = _this3.hierarchical.getMaxLevel(node2.id);\n return Math.min(maxLevel1, maxLevel2);\n };\n\n /**\n * Condense elements. These can be nodes or branches depending on the callback.\n *\n * @param {Function} callback\n * @param {Array.} levels\n * @param {*} centerParents\n */\n var shiftElementsCloser = function shiftElementsCloser(callback, levels, centerParents) {\n var hier = _this3.hierarchical;\n for (var i = 0; i < levels.length; i++) {\n var level = levels[i];\n var levelNodes = hier.distributionOrdering[level];\n if (levelNodes.length > 1) {\n for (var j = 0; j < levelNodes.length - 1; j++) {\n var node1 = levelNodes[j];\n var node2 = levelNodes[j + 1];\n\n // NOTE: logic maintained as it was; if nodes have same ancestor,\n // then of course they are in the same sub-network.\n if (hier.hasSameParent(node1, node2) && hier.inSameSubNetwork(node1, node2)) {\n callback(node1, node2, centerParents);\n }\n }\n }\n }\n };\n\n // callback for shifting branches\n var branchShiftCallback = function branchShiftCallback(node1, node2) {\n var centerParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n //window.CALLBACKS.push(() => {\n var pos1 = _this3.direction.getPosition(node1);\n var pos2 = _this3.direction.getPosition(node2);\n var diffAbs = Math.abs(pos2 - pos1);\n var nodeSpacing = _this3.options.hierarchical.nodeSpacing;\n //console.log(\"NOW CHECKING:\", node1.id, node2.id, diffAbs);\n if (diffAbs > nodeSpacing) {\n var branchNodes1 = {};\n var branchNodes2 = {};\n getBranchNodes(node1, branchNodes1);\n getBranchNodes(node2, branchNodes2);\n\n // check the largest distance between the branches\n var maxLevel = getCollisionLevel(node1, node2);\n var branchNodeBoundary1 = getBranchBoundary(branchNodes1, maxLevel);\n var branchNodeBoundary2 = getBranchBoundary(branchNodes2, maxLevel);\n var max1 = branchNodeBoundary1[1];\n var min2 = branchNodeBoundary2[0];\n var minSpace2 = branchNodeBoundary2[2];\n\n //console.log(node1.id, getBranchBoundary(branchNodes1, maxLevel), node2.id,\n // getBranchBoundary(branchNodes2, maxLevel), maxLevel);\n var diffBranch = Math.abs(max1 - min2);\n if (diffBranch > nodeSpacing) {\n var offset = max1 - min2 + nodeSpacing;\n if (offset < -minSpace2 + nodeSpacing) {\n offset = -minSpace2 + nodeSpacing;\n //console.log(\"RESETTING OFFSET\", max1 - min2 + this.options.hierarchical.nodeSpacing, -minSpace2, offset);\n }\n\n if (offset < 0) {\n //console.log(\"SHIFTING\", node2.id, offset);\n _this3._shiftBlock(node2.id, offset);\n stillShifting = true;\n if (centerParent === true) _this3._centerParent(node2);\n }\n }\n }\n //this.body.emitter.emit(\"_redraw\");})\n };\n\n var minimizeEdgeLength = function minimizeEdgeLength(iterations, node) {\n //window.CALLBACKS.push(() => {\n // console.log(\"ts\",node.id);\n var nodeId = node.id;\n var allEdges = node.edges;\n var nodeLevel = _this3.hierarchical.levels[node.id];\n\n // gather constants\n var C2 = _this3.options.hierarchical.levelSeparation * _this3.options.hierarchical.levelSeparation;\n var referenceNodes = {};\n var aboveEdges = [];\n for (var i = 0; i < allEdges.length; i++) {\n var edge = allEdges[i];\n if (edge.toId != edge.fromId) {\n var otherNode = edge.toId == nodeId ? edge.from : edge.to;\n referenceNodes[allEdges[i].id] = otherNode;\n if (_this3.hierarchical.levels[otherNode.id] < nodeLevel) {\n aboveEdges.push(edge);\n }\n }\n }\n\n // differentiated sum of lengths based on only moving one node over one axis\n var getFx = function getFx(point, edges) {\n var sum = 0;\n for (var _i2 = 0; _i2 < edges.length; _i2++) {\n if (referenceNodes[edges[_i2].id] !== undefined) {\n var a = _this3.direction.getPosition(referenceNodes[edges[_i2].id]) - point;\n sum += a / Math.sqrt(a * a + C2);\n }\n }\n return sum;\n };\n\n // doubly differentiated sum of lengths based on only moving one node over one axis\n var getDFx = function getDFx(point, edges) {\n var sum = 0;\n for (var _i3 = 0; _i3 < edges.length; _i3++) {\n if (referenceNodes[edges[_i3].id] !== undefined) {\n var a = _this3.direction.getPosition(referenceNodes[edges[_i3].id]) - point;\n sum -= C2 * Math.pow(a * a + C2, -1.5);\n }\n }\n return sum;\n };\n var getGuess = function getGuess(iterations, edges) {\n var guess = _this3.direction.getPosition(node);\n // Newton's method for optimization\n var guessMap = {};\n for (var _i4 = 0; _i4 < iterations; _i4++) {\n var fx = getFx(guess, edges);\n var dfx = getDFx(guess, edges);\n\n // we limit the movement to avoid instability.\n var limit = 40;\n var ratio = Math.max(-limit, Math.min(limit, Math.round(fx / dfx)));\n guess = guess - ratio;\n // reduce duplicates\n if (guessMap[guess] !== undefined) {\n break;\n }\n guessMap[guess] = _i4;\n }\n return guess;\n };\n var moveBranch = function moveBranch(guess) {\n // position node if there is space\n var nodePosition = _this3.direction.getPosition(node);\n\n // check movable area of the branch\n if (branches[node.id] === undefined) {\n var branchNodes = {};\n getBranchNodes(node, branchNodes);\n branches[node.id] = branchNodes;\n }\n var branchBoundary = getBranchBoundary(branches[node.id]);\n var minSpaceBranch = branchBoundary[2];\n var maxSpaceBranch = branchBoundary[3];\n var diff = guess - nodePosition;\n\n // check if we are allowed to move the node:\n var branchOffset = 0;\n if (diff > 0) {\n branchOffset = Math.min(diff, maxSpaceBranch - _this3.options.hierarchical.nodeSpacing);\n } else if (diff < 0) {\n branchOffset = -Math.min(-diff, minSpaceBranch - _this3.options.hierarchical.nodeSpacing);\n }\n if (branchOffset != 0) {\n //console.log(\"moving branch:\",branchOffset, maxSpaceBranch, minSpaceBranch)\n _this3._shiftBlock(node.id, branchOffset);\n //this.body.emitter.emit(\"_redraw\");\n stillShifting = true;\n }\n };\n var moveNode = function moveNode(guess) {\n var nodePosition = _this3.direction.getPosition(node);\n\n // position node if there is space\n var _this3$_getSpaceAroun3 = _this3._getSpaceAroundNode(node),\n _this3$_getSpaceAroun4 = _slicedToArray(_this3$_getSpaceAroun3, 2),\n minSpace = _this3$_getSpaceAroun4[0],\n maxSpace = _this3$_getSpaceAroun4[1];\n var diff = guess - nodePosition;\n // check if we are allowed to move the node:\n var newPosition = nodePosition;\n if (diff > 0) {\n newPosition = Math.min(nodePosition + (maxSpace - _this3.options.hierarchical.nodeSpacing), guess);\n } else if (diff < 0) {\n newPosition = Math.max(nodePosition - (minSpace - _this3.options.hierarchical.nodeSpacing), guess);\n }\n if (newPosition !== nodePosition) {\n //console.log(\"moving Node:\",diff, minSpace, maxSpace);\n _this3.direction.setPosition(node, newPosition);\n //this.body.emitter.emit(\"_redraw\");\n stillShifting = true;\n }\n };\n var guess = getGuess(iterations, aboveEdges);\n moveBranch(guess);\n guess = getGuess(iterations, allEdges);\n moveNode(guess);\n //})\n };\n\n // method to remove whitespace between branches. Because we do bottom up, we can center the parents.\n var minimizeEdgeLengthBottomUp = function minimizeEdgeLengthBottomUp(iterations) {\n var levels = _this3.hierarchical.getLevels();\n levels = _reverseInstanceProperty(levels).call(levels);\n for (var i = 0; i < iterations; i++) {\n stillShifting = false;\n for (var j = 0; j < levels.length; j++) {\n var level = levels[j];\n var levelNodes = _this3.hierarchical.distributionOrdering[level];\n for (var k = 0; k < levelNodes.length; k++) {\n minimizeEdgeLength(1000, levelNodes[k]);\n }\n }\n if (stillShifting !== true) {\n //console.log(\"FINISHED minimizeEdgeLengthBottomUp IN \" + i);\n break;\n }\n }\n };\n\n // method to remove whitespace between branches. Because we do bottom up, we can center the parents.\n var shiftBranchesCloserBottomUp = function shiftBranchesCloserBottomUp(iterations) {\n var levels = _this3.hierarchical.getLevels();\n levels = _reverseInstanceProperty(levels).call(levels);\n for (var i = 0; i < iterations; i++) {\n stillShifting = false;\n shiftElementsCloser(branchShiftCallback, levels, true);\n if (stillShifting !== true) {\n //console.log(\"FINISHED shiftBranchesCloserBottomUp IN \" + (i+1));\n break;\n }\n }\n };\n\n // center all parents\n var centerAllParents = function centerAllParents() {\n for (var nodeId in _this3.body.nodes) {\n if (Object.prototype.hasOwnProperty.call(_this3.body.nodes, nodeId)) _this3._centerParent(_this3.body.nodes[nodeId]);\n }\n };\n\n // center all parents\n var centerAllParentsBottomUp = function centerAllParentsBottomUp() {\n var levels = _this3.hierarchical.getLevels();\n levels = _reverseInstanceProperty(levels).call(levels);\n for (var i = 0; i < levels.length; i++) {\n var level = levels[i];\n var levelNodes = _this3.hierarchical.distributionOrdering[level];\n for (var j = 0; j < levelNodes.length; j++) {\n _this3._centerParent(levelNodes[j]);\n }\n }\n };\n\n // the actual work is done here.\n if (this.options.hierarchical.blockShifting === true) {\n shiftBranchesCloserBottomUp(5);\n centerAllParents();\n }\n\n // minimize edge length\n if (this.options.hierarchical.edgeMinimization === true) {\n minimizeEdgeLengthBottomUp(20);\n }\n if (this.options.hierarchical.parentCentralization === true) {\n centerAllParentsBottomUp();\n }\n shiftTrees();\n }\n\n /**\n * This gives the space around the node. IF a map is supplied, it will only check against nodes NOT in the map.\n * This is used to only get the distances to nodes outside of a branch.\n *\n * @param {Node} node\n * @param {{Node.id: vis.Node}} map\n * @returns {number[]}\n * @private\n */\n }, {\n key: \"_getSpaceAroundNode\",\n value: function _getSpaceAroundNode(node, map) {\n var useMap = true;\n if (map === undefined) {\n useMap = false;\n }\n var level = this.hierarchical.levels[node.id];\n if (level !== undefined) {\n var index = this.hierarchical.distributionIndex[node.id];\n var position = this.direction.getPosition(node);\n var ordering = this.hierarchical.distributionOrdering[level];\n var minSpace = 1e9;\n var maxSpace = 1e9;\n if (index !== 0) {\n var prevNode = ordering[index - 1];\n if (useMap === true && map[prevNode.id] === undefined || useMap === false) {\n var prevPos = this.direction.getPosition(prevNode);\n minSpace = position - prevPos;\n }\n }\n if (index != ordering.length - 1) {\n var nextNode = ordering[index + 1];\n if (useMap === true && map[nextNode.id] === undefined || useMap === false) {\n var nextPos = this.direction.getPosition(nextNode);\n maxSpace = Math.min(maxSpace, nextPos - position);\n }\n }\n return [minSpace, maxSpace];\n } else {\n return [0, 0];\n }\n }\n\n /**\n * We use this method to center a parent node and check if it does not cross other nodes when it does.\n *\n * @param {Node} node\n * @private\n */\n }, {\n key: \"_centerParent\",\n value: function _centerParent(node) {\n if (this.hierarchical.parentReference[node.id]) {\n var parents = this.hierarchical.parentReference[node.id];\n for (var i = 0; i < parents.length; i++) {\n var parentId = parents[i];\n var parentNode = this.body.nodes[parentId];\n var children = this.hierarchical.childrenReference[parentId];\n if (children !== undefined) {\n // get the range of the children\n var newPosition = this._getCenterPosition(children);\n var position = this.direction.getPosition(parentNode);\n var _this$_getSpaceAround = this._getSpaceAroundNode(parentNode),\n _this$_getSpaceAround2 = _slicedToArray(_this$_getSpaceAround, 2),\n minSpace = _this$_getSpaceAround2[0],\n maxSpace = _this$_getSpaceAround2[1];\n var diff = position - newPosition;\n if (diff < 0 && Math.abs(diff) < maxSpace - this.options.hierarchical.nodeSpacing || diff > 0 && Math.abs(diff) < minSpace - this.options.hierarchical.nodeSpacing) {\n this.direction.setPosition(parentNode, newPosition);\n }\n }\n }\n }\n }\n\n /**\n * This function places the nodes on the canvas based on the hierarchial distribution.\n *\n * @param {object} distribution | obtained by the function this._getDistribution()\n * @private\n */\n }, {\n key: \"_placeNodesByHierarchy\",\n value: function _placeNodesByHierarchy(distribution) {\n this.positionedNodes = {};\n // start placing all the level 0 nodes first. Then recursively position their branches.\n for (var level in distribution) {\n if (Object.prototype.hasOwnProperty.call(distribution, level)) {\n var _context;\n // sort nodes in level by position:\n var nodeArray = _Object$keys(distribution[level]);\n nodeArray = this._indexArrayToNodes(nodeArray);\n _sortInstanceProperty(_context = this.direction).call(_context, nodeArray);\n var handledNodeCount = 0;\n for (var i = 0; i < nodeArray.length; i++) {\n var node = nodeArray[i];\n if (this.positionedNodes[node.id] === undefined) {\n var spacing = this.options.hierarchical.nodeSpacing;\n var pos = spacing * handledNodeCount;\n // We get the X or Y values we need and store them in pos and previousPos.\n // The get and set make sure we get X or Y\n if (handledNodeCount > 0) {\n pos = this.direction.getPosition(nodeArray[i - 1]) + spacing;\n }\n this.direction.setPosition(node, pos, level);\n this._validatePositionAndContinue(node, level, pos);\n handledNodeCount++;\n }\n }\n }\n }\n }\n\n /**\n * This is a recursively called function to enumerate the branches from the largest hubs and place the nodes\n * on a X position that ensures there will be no overlap.\n *\n * @param {Node.id} parentId\n * @param {number} parentLevel\n * @private\n */\n }, {\n key: \"_placeBranchNodes\",\n value: function _placeBranchNodes(parentId, parentLevel) {\n var _context2;\n var childRef = this.hierarchical.childrenReference[parentId];\n\n // if this is not a parent, cancel the placing. This can happen with multiple parents to one child.\n if (childRef === undefined) {\n return;\n }\n\n // get a list of childNodes\n var childNodes = [];\n for (var i = 0; i < childRef.length; i++) {\n childNodes.push(this.body.nodes[childRef[i]]);\n }\n\n // use the positions to order the nodes.\n _sortInstanceProperty(_context2 = this.direction).call(_context2, childNodes);\n\n // position the childNodes\n for (var _i5 = 0; _i5 < childNodes.length; _i5++) {\n var childNode = childNodes[_i5];\n var childNodeLevel = this.hierarchical.levels[childNode.id];\n // check if the child node is below the parent node and if it has already been positioned.\n if (childNodeLevel > parentLevel && this.positionedNodes[childNode.id] === undefined) {\n // get the amount of space required for this node. If parent the width is based on the amount of children.\n var spacing = this.options.hierarchical.nodeSpacing;\n var pos = void 0;\n\n // we get the X or Y values we need and store them in pos and previousPos.\n // The get and set make sure we get X or Y\n if (_i5 === 0) {\n pos = this.direction.getPosition(this.body.nodes[parentId]);\n } else {\n pos = this.direction.getPosition(childNodes[_i5 - 1]) + spacing;\n }\n this.direction.setPosition(childNode, pos, childNodeLevel);\n this._validatePositionAndContinue(childNode, childNodeLevel, pos);\n } else {\n return;\n }\n }\n\n // center the parent nodes.\n var center = this._getCenterPosition(childNodes);\n this.direction.setPosition(this.body.nodes[parentId], center, parentLevel);\n }\n\n /**\n * This method checks for overlap and if required shifts the branch. It also keeps records of positioned nodes.\n * Finally it will call _placeBranchNodes to place the branch nodes.\n *\n * @param {Node} node\n * @param {number} level\n * @param {number} pos\n * @private\n */\n }, {\n key: \"_validatePositionAndContinue\",\n value: function _validatePositionAndContinue(node, level, pos) {\n // This method only works for formal trees and formal forests\n // Early exit if this is not the case\n if (!this.hierarchical.isTree) return;\n\n // if overlap has been detected, we shift the branch\n if (this.lastNodeOnLevel[level] !== undefined) {\n var previousPos = this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[level]]);\n if (pos - previousPos < this.options.hierarchical.nodeSpacing) {\n var diff = previousPos + this.options.hierarchical.nodeSpacing - pos;\n var sharedParent = this._findCommonParent(this.lastNodeOnLevel[level], node.id);\n this._shiftBlock(sharedParent.withChild, diff);\n }\n }\n this.lastNodeOnLevel[level] = node.id; // store change in position.\n this.positionedNodes[node.id] = true;\n this._placeBranchNodes(node.id, level);\n }\n\n /**\n * Receives an array with node indices and returns an array with the actual node references.\n * Used for sorting based on node properties.\n *\n * @param {Array.} idArray\n * @returns {Array.}\n */\n }, {\n key: \"_indexArrayToNodes\",\n value: function _indexArrayToNodes(idArray) {\n var array = [];\n for (var i = 0; i < idArray.length; i++) {\n array.push(this.body.nodes[idArray[i]]);\n }\n return array;\n }\n\n /**\n * This function get the distribution of levels based on hubsize\n *\n * @returns {object}\n * @private\n */\n }, {\n key: \"_getDistribution\",\n value: function _getDistribution() {\n var distribution = {};\n var nodeId, node;\n\n // we fix Y because the hierarchy is vertical,\n // we fix X so we do not give a node an x position for a second time.\n // the fix of X is removed after the x value has been set.\n for (nodeId in this.body.nodes) {\n if (Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId)) {\n node = this.body.nodes[nodeId];\n var level = this.hierarchical.levels[nodeId] === undefined ? 0 : this.hierarchical.levels[nodeId];\n this.direction.fix(node, level);\n if (distribution[level] === undefined) {\n distribution[level] = {};\n }\n distribution[level][nodeId] = node;\n }\n }\n return distribution;\n }\n\n /**\n * Return the active (i.e. visible) edges for this node\n *\n * @param {Node} node\n * @returns {Array.} Array of edge instances\n * @private\n */\n }, {\n key: \"_getActiveEdges\",\n value: function _getActiveEdges(node) {\n var _this4 = this;\n var result = [];\n forEach$5(node.edges, function (edge) {\n var _context3;\n if (_indexOfInstanceProperty(_context3 = _this4.body.edgeIndices).call(_context3, edge.id) !== -1) {\n result.push(edge);\n }\n });\n return result;\n }\n\n /**\n * Get the hubsizes for all active nodes.\n *\n * @returns {number}\n * @private\n */\n }, {\n key: \"_getHubSizes\",\n value: function _getHubSizes() {\n var _this5 = this;\n var hubSizes = {};\n var nodeIds = this.body.nodeIndices;\n forEach$5(nodeIds, function (nodeId) {\n var node = _this5.body.nodes[nodeId];\n var hubSize = _this5._getActiveEdges(node).length;\n hubSizes[hubSize] = true;\n });\n\n // Make an array of the size sorted descending\n var result = [];\n forEach$5(hubSizes, function (size) {\n result.push(Number(size));\n });\n _sortInstanceProperty(TimSort).call(TimSort, result, function (a, b) {\n return b - a;\n });\n return result;\n }\n\n /**\n * this function allocates nodes in levels based on the recursive branching from the largest hubs.\n *\n * @private\n */\n }, {\n key: \"_determineLevelsByHubsize\",\n value: function _determineLevelsByHubsize() {\n var _this6 = this;\n var levelDownstream = function levelDownstream(nodeA, nodeB) {\n _this6.hierarchical.levelDownstream(nodeA, nodeB);\n };\n var hubSizes = this._getHubSizes();\n var _loop = function _loop() {\n var hubSize = hubSizes[i];\n if (hubSize === 0) return \"break\";\n forEach$5(_this6.body.nodeIndices, function (nodeId) {\n var node = _this6.body.nodes[nodeId];\n if (hubSize === _this6._getActiveEdges(node).length) {\n _this6._crawlNetwork(levelDownstream, nodeId);\n }\n });\n };\n for (var i = 0; i < hubSizes.length; ++i) {\n var _ret = _loop();\n if (_ret === \"break\") break;\n }\n }\n\n /**\n * TODO: release feature\n * TODO: Determine if this feature is needed at all\n *\n * @private\n */\n }, {\n key: \"_determineLevelsCustomCallback\",\n value: function _determineLevelsCustomCallback() {\n var _this7 = this;\n var minLevel = 100000;\n\n // TODO: this should come from options.\n // eslint-disable-next-line no-unused-vars -- This should eventually be implemented with these parameters used.\n var customCallback = function customCallback(nodeA, nodeB, edge) {};\n\n // TODO: perhaps move to HierarchicalStatus.\n // But I currently don't see the point, this method is not used.\n var levelByDirection = function levelByDirection(nodeA, nodeB, edge) {\n var levelA = _this7.hierarchical.levels[nodeA.id];\n // set initial level\n if (levelA === undefined) {\n levelA = _this7.hierarchical.levels[nodeA.id] = minLevel;\n }\n var diff = customCallback(NetworkUtil.cloneOptions(nodeA, \"node\"), NetworkUtil.cloneOptions(nodeB, \"node\"), NetworkUtil.cloneOptions(edge, \"edge\"));\n _this7.hierarchical.levels[nodeB.id] = levelA + diff;\n };\n this._crawlNetwork(levelByDirection);\n this.hierarchical.setMinLevelToZero(this.body.nodes);\n }\n\n /**\n * Allocate nodes in levels based on the direction of the edges.\n *\n * @private\n */\n }, {\n key: \"_determineLevelsDirected\",\n value: function _determineLevelsDirected() {\n var _context4,\n _this8 = this;\n var nodes = _reduceInstanceProperty(_context4 = this.body.nodeIndices).call(_context4, function (acc, id) {\n acc.set(id, _this8.body.nodes[id]);\n return acc;\n }, new _Map());\n if (this.options.hierarchical.shakeTowards === \"roots\") {\n this.hierarchical.levels = fillLevelsByDirectionRoots(nodes);\n } else {\n this.hierarchical.levels = fillLevelsByDirectionLeaves(nodes);\n }\n this.hierarchical.setMinLevelToZero(this.body.nodes);\n }\n\n /**\n * Update the bookkeeping of parent and child.\n *\n * @private\n */\n }, {\n key: \"_generateMap\",\n value: function _generateMap() {\n var _this9 = this;\n var fillInRelations = function fillInRelations(parentNode, childNode) {\n if (_this9.hierarchical.levels[childNode.id] > _this9.hierarchical.levels[parentNode.id]) {\n _this9.hierarchical.addRelation(parentNode.id, childNode.id);\n }\n };\n this._crawlNetwork(fillInRelations);\n this.hierarchical.checkIfTree();\n }\n\n /**\n * Crawl over the entire network and use a callback on each node couple that is connected to each other.\n *\n * @param {Function} [callback=function(){}] | will receive nodeA, nodeB and the connecting edge. A and B are distinct.\n * @param {Node.id} startingNodeId\n * @private\n */\n }, {\n key: \"_crawlNetwork\",\n value: function _crawlNetwork() {\n var _this10 = this;\n var callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {};\n var startingNodeId = arguments.length > 1 ? arguments[1] : undefined;\n var progress = {};\n var crawler = function crawler(node, tree) {\n if (progress[node.id] === undefined) {\n _this10.hierarchical.setTreeIndex(node, tree);\n progress[node.id] = true;\n var childNode;\n var edges = _this10._getActiveEdges(node);\n for (var i = 0; i < edges.length; i++) {\n var edge = edges[i];\n if (edge.connected === true) {\n if (edge.toId == node.id) {\n // Not '===' because id's can be string and numeric\n childNode = edge.from;\n } else {\n childNode = edge.to;\n }\n if (node.id != childNode.id) {\n // Not '!==' because id's can be string and numeric\n callback(node, childNode, edge);\n crawler(childNode, tree);\n }\n }\n }\n }\n };\n if (startingNodeId === undefined) {\n // Crawl over all nodes\n var treeIndex = 0; // Serves to pass a unique id for the current distinct tree\n\n for (var i = 0; i < this.body.nodeIndices.length; i++) {\n var nodeId = this.body.nodeIndices[i];\n if (progress[nodeId] === undefined) {\n var node = this.body.nodes[nodeId];\n crawler(node, treeIndex);\n treeIndex += 1;\n }\n }\n } else {\n // Crawl from the given starting node\n var _node2 = this.body.nodes[startingNodeId];\n if (_node2 === undefined) {\n console.error(\"Node not found:\", startingNodeId);\n return;\n }\n crawler(_node2);\n }\n }\n\n /**\n * Shift a branch a certain distance\n *\n * @param {Node.id} parentId\n * @param {number} diff\n * @private\n */\n }, {\n key: \"_shiftBlock\",\n value: function _shiftBlock(parentId, diff) {\n var _this11 = this;\n var progress = {};\n var shifter = function shifter(parentId) {\n if (progress[parentId]) {\n return;\n }\n progress[parentId] = true;\n _this11.direction.shift(parentId, diff);\n var childRef = _this11.hierarchical.childrenReference[parentId];\n if (childRef !== undefined) {\n for (var i = 0; i < childRef.length; i++) {\n shifter(childRef[i]);\n }\n }\n };\n shifter(parentId);\n }\n\n /**\n * Find a common parent between branches.\n *\n * @param {Node.id} childA\n * @param {Node.id} childB\n * @returns {{foundParent, withChild}}\n * @private\n */\n }, {\n key: \"_findCommonParent\",\n value: function _findCommonParent(childA, childB) {\n var _this12 = this;\n var parents = {};\n var iterateParents = function iterateParents(parents, child) {\n var parentRef = _this12.hierarchical.parentReference[child];\n if (parentRef !== undefined) {\n for (var i = 0; i < parentRef.length; i++) {\n var parent = parentRef[i];\n parents[parent] = true;\n iterateParents(parents, parent);\n }\n }\n };\n var findParent = function findParent(parents, child) {\n var parentRef = _this12.hierarchical.parentReference[child];\n if (parentRef !== undefined) {\n for (var i = 0; i < parentRef.length; i++) {\n var parent = parentRef[i];\n if (parents[parent] !== undefined) {\n return {\n foundParent: parent,\n withChild: child\n };\n }\n var branch = findParent(parents, parent);\n if (branch.foundParent !== null) {\n return branch;\n }\n }\n }\n return {\n foundParent: null,\n withChild: child\n };\n };\n iterateParents(parents, childA);\n return findParent(parents, childB);\n }\n\n /**\n * Set the strategy pattern for handling the coordinates given the current direction.\n *\n * The individual instances contain all the operations and data specific to a layout direction.\n *\n * @param {Node} node\n * @param {{x: number, y: number}} position\n * @param {number} level\n * @param {boolean} [doNotUpdate=false]\n * @private\n */\n }, {\n key: \"setDirectionStrategy\",\n value: function setDirectionStrategy() {\n var isVertical = this.options.hierarchical.direction === \"UD\" || this.options.hierarchical.direction === \"DU\";\n if (isVertical) {\n this.direction = new VerticalStrategy(this);\n } else {\n this.direction = new HorizontalStrategy(this);\n }\n }\n\n /**\n * Determine the center position of a branch from the passed list of child nodes\n *\n * This takes into account the positions of all the child nodes.\n *\n * @param {Array.} childNodes Array of either child nodes or node id's\n * @returns {number}\n * @private\n */\n }, {\n key: \"_getCenterPosition\",\n value: function _getCenterPosition(childNodes) {\n var minPos = 1e9;\n var maxPos = -1e9;\n for (var i = 0; i < childNodes.length; i++) {\n var childNode = void 0;\n if (childNodes[i].id !== undefined) {\n childNode = childNodes[i];\n } else {\n var childNodeId = childNodes[i];\n childNode = this.body.nodes[childNodeId];\n }\n var position = this.direction.getPosition(childNode);\n minPos = Math.min(minPos, position);\n maxPos = Math.max(maxPos, position);\n }\n return 0.5 * (minPos + maxPos);\n }\n }]);\n return LayoutEngine;\n}();\n\nvar css_248z = \"div.vis-network div.vis-manipulation {\\n box-sizing: content-box;\\n\\n border-width: 0;\\n border-bottom: 1px;\\n border-style: solid;\\n border-color: #d6d9d8;\\n background: #ffffff; /* Old browsers */\\n background: -moz-linear-gradient(\\n top,\\n #ffffff 0%,\\n #fcfcfc 48%,\\n #fafafa 50%,\\n #fcfcfc 100%\\n ); /* FF3.6+ */\\n background: -webkit-gradient(\\n linear,\\n left top,\\n left bottom,\\n color-stop(0%, #ffffff),\\n color-stop(48%, #fcfcfc),\\n color-stop(50%, #fafafa),\\n color-stop(100%, #fcfcfc)\\n ); /* Chrome,Safari4+ */\\n background: -webkit-linear-gradient(\\n top,\\n #ffffff 0%,\\n #fcfcfc 48%,\\n #fafafa 50%,\\n #fcfcfc 100%\\n ); /* Chrome10+,Safari5.1+ */\\n background: -o-linear-gradient(\\n top,\\n #ffffff 0%,\\n #fcfcfc 48%,\\n #fafafa 50%,\\n #fcfcfc 100%\\n ); /* Opera 11.10+ */\\n background: -ms-linear-gradient(\\n top,\\n #ffffff 0%,\\n #fcfcfc 48%,\\n #fafafa 50%,\\n #fcfcfc 100%\\n ); /* IE10+ */\\n background: linear-gradient(\\n to bottom,\\n #ffffff 0%,\\n #fcfcfc 48%,\\n #fafafa 50%,\\n #fcfcfc 100%\\n ); /* W3C */\\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#fcfcfc',GradientType=0 ); /* IE6-9 */\\n\\n padding-top: 4px;\\n position: absolute;\\n left: 0;\\n top: 0;\\n width: 100%;\\n height: 28px;\\n}\\n\\ndiv.vis-network div.vis-edit-mode,\\ndiv.vis-network button.vis-edit-mode {\\n position: absolute;\\n left: 0;\\n top: 5px;\\n height: 30px;\\n}\\n\\n/* FIXME: shouldn't the vis-close button be a child of the vis-manipulation div? */\\n\\ndiv.vis-network button.vis-close {\\n position: absolute;\\n right: 0;\\n top: 0;\\n width: 30px;\\n height: 30px;\\n\\n background-color: transparent;\\n background-position: 20px 3px;\\n background-repeat: no-repeat;\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8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x0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDAwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjc8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+NzwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+cZUZMwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAA2ElEQVR42gDLADT/AS0tLUQFBQUVFxcXtPHx8fPl5eUNCAgITCkpKesEHx8fGgYGBjH+/v4a+Pj4qgQEBFU6OjodMTExzwQUFBSvEBAQEfX19SD19fVqNDQ0CElJSd/9/f2vAwEBAfrn5+fkBwcHLRYWFgsXFxfz29vbo9LS0uwDDQ0NDfPz81orKysXIyMj+ODg4Avh4eEa/f391gMkJCRYPz8/KUhISOMCAgKh8fHxHRsbGx4UFBQQBDk5OeY7Ozv7CAgItPb29vMEBASaJSUlTQ0NDesDAEwpT0Ko8Ri2AAAAAElFTkSuQmCC');\\n border: none;\\n cursor: pointer;\\n -webkit-touch-callout: none;\\n -webkit-user-select: none;\\n -khtml-user-select: none;\\n -moz-user-select: none;\\n -ms-user-select: none;\\n user-select: none;\\n}\\n\\ndiv.vis-network button.vis-close:hover {\\n opacity: 0.6;\\n}\\n\\ndiv.vis-network div.vis-manipulation button.vis-button,\\ndiv.vis-network div.vis-edit-mode button.vis-button {\\n float: left;\\n font-family: verdana;\\n font-size: 12px;\\n border: none;\\n box-sizing: content-box;\\n -moz-border-radius: 15px;\\n border-radius: 15px;\\n background-color: transparent;\\n background-position: 0px 0px;\\n background-repeat: no-repeat;\\n height: 24px;\\n margin-left: 10px;\\n cursor: pointer;\\n padding: 0px 8px 0px 8px;\\n -webkit-touch-callout: none;\\n -webkit-user-select: none;\\n -khtml-user-select: none;\\n -moz-user-select: none;\\n -ms-user-select: none;\\n user-select: none;\\n}\\n\\ndiv.vis-network div.vis-manipulation button.vis-button:hover {\\n box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.2);\\n}\\n\\ndiv.vis-network div.vis-manipulation button.vis-button:active {\\n box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);\\n}\\n\\ndiv.vis-network div.vis-manipulation button.vis-button.vis-back {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7i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A8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAg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ndiv.vis-network div.vis-manipulation div.vis-none:active {\\n box-shadow: 1px 1px 8px rgba(0, 0, 0, 0);\\n}\\ndiv.vis-network div.vis-manipulation div.vis-none {\\n padding: 0px;\\n line-height: 23px;\\n}\\ndiv.vis-network div.vis-manipulation div.notification {\\n margin: 2px;\\n font-weight: bold;\\n}\\n\\ndiv.vis-network div.vis-manipulation button.vis-button.vis-add {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgD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PGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/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JHC9rKh+KVhOsD4+Dj+MwADIf8n5m4xGwAAAABJRU5ErkJggg==');\\n}\\n\\ndiv.vis-network div.vis-manipulation button.vis-button.vis-edit,\\ndiv.vis-network div.vis-edit-mode button.vis-button.vis-edit {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhB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4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4ykninAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAA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.vis-network div.vis-edit-mode button.vis-button.vis-edit.vis-edit-mode {\\n background-color: #fcfcfc;\\n border: 1px solid #cccccc;\\n}\\n\\ndiv.vis-network div.vis-manipulation button.vis-button.vis-connect {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQii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W5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4ubxs+AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAUtSURBVH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xTkodmcWRGkf3pcX0r8xoAaBixKu4U5/xwndM+0tpAvS6mP+PZK2nb1UBvPEKwKMLDvPj4ESGc55lGy303sdJKQdZB2rkMdctAB/4gzN+/Q2ENNd4LyUi/xN+bTtquX2thk5nk4wI3gAF+OMNcA1nFQDfK+BY5GqbkwWabTY5QZhXWlnNx1ntrY1Rz87fuvw29m/Sn8J+PUGAFj5T19baA1IspuBZp7cx1x4SwG1cEf+lgRSROs8jGwb+Ht4QB/GSSsAhYano39LWIBxNEIbP14hPDuiyS2VtJuHXQlKKvxM/jiXDq/D/xPlwifGMkJZB2NIoKpr69nxeiZxLHicFSFVWfGqBidIP3LSjrWltD94CyufF/4kQgPuVz2Lz93+dDRa9eu5QQ8Hg8/iXee+Dy4CKMs7xqn4nwKz9IirhQqmVuB42m8ey+x7LMoD6iAON782eChhqmRuXfvXgKBAKqKqtI0/8nNKrQI4BVYXkzHgzPpC88gWuHL/caXrhLoGiN0apSKr0ZZRBZM7q2w5ZnLR1oAnHOMjY0hra2tFBQUYIyZmstvVT1Z6eDlAuEVq7merxmwueNPDXy9PvybjKP5mctHLk4/XTKZRJqbm/H7/VNw1VyEMYbW4FN3WNWnnchKoy5sHeVGBRX6VWi3ymFx7r11Ix8MTX/y5C2RSPC/AQB61erowbpqSwAAAABJRU5ErkJggg==');\\n}\\n\\ndiv.vis-network div.vis-manipulation button.vis-button.vis-delete {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAM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lZEZyb20+CiAgICAgICAgIDxwaG90b3Nob3A6Q29sb3JNb2RlPjM8L3Bob3Rvc2hvcDpDb2xvck1vZGU+CiAgICAgICAgIDxwaG90b3Nob3A6SUNDUHJvZmlsZT5zUkdCIElFQzYxOTY2LTIuMTwvcGhvdG9zaG9wOklDQ1Byb2ZpbGU+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDA5MC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDkwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4aYJzYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAYGSURBVHjalJZ7UJTnFcZ/73m/72PdJY1RbhoQp6lkXRAvmIYxdCUadLVOozPNtGObap1JsKipjiShbdoRbeKEiQHpQK3xj0xa03aamTbaTGyAYV1QGeqFi+JyiZFLAlmESBkWRmS3fyzslGkmnZ5/v/M873Oe75zzvqqoqAibzQaAiKCUAkApRdHIK/NFsx2NR91nOSILADDoJyzNaM4xxbtvPHh0iC+JiYkJ1OHDh4mJiUEpFSXPv/ziPC28TIiXDCOSrAClQDSEpsCwJPIhrEBRQpiSytXlQwDhcBilFPfu3UMVFxdjt9ujFTzfcLBADCoEEAFr1ZbrrNjch2vtEImPBgHob7fTcWE+bVXJNJ/NiFQlEGLvieXHKmYqGB8fRx05cgSbzYaIsPvywV8pKFaA7fGtLTzz61YWpo/xVTHQbufsq5lcez9zWuWhk5mvFwMEg0H0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SzeD69kcpIfxymFWLNrka+ljhBTWkWwz2JiJT84YHnz2iPx0P20PkmRF5i6HYiwZFJsn/YzdezbzE3cQibY5xV266z6RfXohakb+xB9CjanCD9qTbW7Grk4WV38VZm0l6dhQiEw9taHSuDqrS0FIfDwXM3X9mHMsvRAk/sauDpQy38P+GtzOTGB9mEpkD0C2dS8n8zOjqK9ng8WJZFU+JTjasGvaCNXPpvJBPoMlm0OoDNMfWVxONfWNSUPUZ7TUQ56tCZlPwSgMnJSVRpaSmxsbFE1raw82ZxAZZRQUiBYUKGp5UlOX2krBzmoUVjiIKhHge9rfPo+Wcy3ZeXIYASgL1/X5RfMXMvj46OosrLy7HZbGitUUohIuzoem0RofALaOsghgWGjky0MiJTL8b0lOvI8hN1DKXKP0jd3TNTWDgcJhgMoo4ePYrD4Yi+KmaeLlprnrtXFo9h/AAlG1AqE8yFmBrC+jO0bgH9EVpO/1F2Dc5g//OAsbEx/j0Af+USsQynL1UAAAAASUVORK5CYII=');\\n}\\n/* top right bottom left */\\ndiv.vis-network div.vis-manipulation div.vis-label,\\ndiv.vis-network div.vis-edit-mode div.vis-label {\\n margin: 0 0 0 23px;\\n line-height: 25px;\\n}\\ndiv.vis-network div.vis-manipulation div.vis-separator-line {\\n float: left;\\n display: inline-block;\\n width: 1px;\\n height: 21px;\\n background-color: #bdbdbd;\\n margin: 0px 7px 0 15px; /*top right bottom left*/\\n}\\n\\n/* TODO: is this redundant?\\ndiv.network-navigation_wrapper {\\n position: absolute;\\n left: 0;\\n top: 0;\\n width: 100%;\\n height: 100%;\\n}\\n*/\\n\";\nstyleInject(css_248z);\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { var _context32; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context32 = Object.prototype.toString.call(o)).call(_context32, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n/**\n * Clears the toolbar div element of children\n *\n * @private\n */\nvar ManipulationSystem = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {Canvas} canvas\n * @param {SelectionHandler} selectionHandler\n * @param {InteractionHandler} interactionHandler\n */\n function ManipulationSystem(body, canvas, selectionHandler, interactionHandler) {\n var _this = this,\n _context,\n _context2;\n _classCallCheck(this, ManipulationSystem);\n this.body = body;\n this.canvas = canvas;\n this.selectionHandler = selectionHandler;\n this.interactionHandler = interactionHandler;\n this.editMode = false;\n this.manipulationDiv = undefined;\n this.editModeDiv = undefined;\n this.closeDiv = undefined;\n this._domEventListenerCleanupQueue = [];\n this.temporaryUIFunctions = {};\n this.temporaryEventFunctions = [];\n this.touchTime = 0;\n this.temporaryIds = {\n nodes: [],\n edges: []\n };\n this.guiEnabled = false;\n this.inMode = false;\n this.selectedControlNode = undefined;\n this.options = {};\n this.defaultOptions = {\n enabled: false,\n initiallyActive: false,\n addNode: true,\n addEdge: true,\n editNode: undefined,\n editEdge: true,\n deleteNode: true,\n deleteEdge: true,\n controlNodeStyle: {\n shape: \"dot\",\n size: 6,\n color: {\n background: \"#ff0000\",\n border: \"#3c3c3c\",\n highlight: {\n background: \"#07f968\",\n border: \"#3c3c3c\"\n }\n },\n borderWidth: 2,\n borderWidthSelected: 2\n }\n };\n _Object$assign(this.options, this.defaultOptions);\n this.body.emitter.on(\"destroy\", function () {\n _this._clean();\n });\n this.body.emitter.on(\"_dataChanged\", _bindInstanceProperty$1(_context = this._restore).call(_context, this));\n this.body.emitter.on(\"_resetData\", _bindInstanceProperty$1(_context2 = this._restore).call(_context2, this));\n }\n\n /**\n * If something changes in the data during editing, switch back to the initial datamanipulation state and close all edit modes.\n *\n * @private\n */\n _createClass(ManipulationSystem, [{\n key: \"_restore\",\n value: function _restore() {\n if (this.inMode !== false) {\n if (this.options.initiallyActive === true) {\n this.enableEditMode();\n } else {\n this.disableEditMode();\n }\n }\n }\n\n /**\n * Set the Options\n *\n * @param {object} options\n * @param {object} allOptions\n * @param {object} globalOptions\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options, allOptions, globalOptions) {\n if (allOptions !== undefined) {\n if (allOptions.locale !== undefined) {\n this.options.locale = allOptions.locale;\n } else {\n this.options.locale = globalOptions.locale;\n }\n if (allOptions.locales !== undefined) {\n this.options.locales = allOptions.locales;\n } else {\n this.options.locales = globalOptions.locales;\n }\n }\n if (options !== undefined) {\n if (typeof options === \"boolean\") {\n this.options.enabled = options;\n } else {\n this.options.enabled = true;\n deepExtend(this.options, options);\n }\n if (this.options.initiallyActive === true) {\n this.editMode = true;\n }\n this._setup();\n }\n }\n\n /**\n * Enable or disable edit-mode. Draws the DOM required and cleans up after itself.\n *\n * @private\n */\n }, {\n key: \"toggleEditMode\",\n value: function toggleEditMode() {\n if (this.editMode === true) {\n this.disableEditMode();\n } else {\n this.enableEditMode();\n }\n }\n\n /**\n * Enables Edit Mode\n */\n }, {\n key: \"enableEditMode\",\n value: function enableEditMode() {\n this.editMode = true;\n this._clean();\n if (this.guiEnabled === true) {\n this.manipulationDiv.style.display = \"block\";\n this.closeDiv.style.display = \"block\";\n this.editModeDiv.style.display = \"none\";\n this.showManipulatorToolbar();\n }\n }\n\n /**\n * Disables Edit Mode\n */\n }, {\n key: \"disableEditMode\",\n value: function disableEditMode() {\n this.editMode = false;\n this._clean();\n if (this.guiEnabled === true) {\n this.manipulationDiv.style.display = \"none\";\n this.closeDiv.style.display = \"none\";\n this.editModeDiv.style.display = \"block\";\n this._createEditButton();\n }\n }\n\n /**\n * Creates the main toolbar. Removes functions bound to the select event. Binds all the buttons of the toolbar.\n *\n * @private\n */\n }, {\n key: \"showManipulatorToolbar\",\n value: function showManipulatorToolbar() {\n // restore the state of any bound functions or events, remove control nodes, restore physics\n this._clean();\n\n // reset global variables\n this.manipulationDOM = {};\n\n // if the gui is enabled, draw all elements.\n if (this.guiEnabled === true) {\n var _context3, _context4;\n // a _restore will hide these menus\n this.editMode = true;\n this.manipulationDiv.style.display = \"block\";\n this.closeDiv.style.display = \"block\";\n var selectedNodeCount = this.selectionHandler.getSelectedNodeCount();\n var selectedEdgeCount = this.selectionHandler.getSelectedEdgeCount();\n var selectedTotalCount = selectedNodeCount + selectedEdgeCount;\n var locale = this.options.locales[this.options.locale];\n var needSeperator = false;\n if (this.options.addNode !== false) {\n this._createAddNodeButton(locale);\n needSeperator = true;\n }\n if (this.options.addEdge !== false) {\n if (needSeperator === true) {\n this._createSeperator(1);\n } else {\n needSeperator = true;\n }\n this._createAddEdgeButton(locale);\n }\n if (selectedNodeCount === 1 && typeof this.options.editNode === \"function\") {\n if (needSeperator === true) {\n this._createSeperator(2);\n } else {\n needSeperator = true;\n }\n this._createEditNodeButton(locale);\n } else if (selectedEdgeCount === 1 && selectedNodeCount === 0 && this.options.editEdge !== false) {\n if (needSeperator === true) {\n this._createSeperator(3);\n } else {\n needSeperator = true;\n }\n this._createEditEdgeButton(locale);\n }\n\n // remove buttons\n if (selectedTotalCount !== 0) {\n if (selectedNodeCount > 0 && this.options.deleteNode !== false) {\n if (needSeperator === true) {\n this._createSeperator(4);\n }\n this._createDeleteButton(locale);\n } else if (selectedNodeCount === 0 && this.options.deleteEdge !== false) {\n if (needSeperator === true) {\n this._createSeperator(4);\n }\n this._createDeleteButton(locale);\n }\n }\n\n // bind the close button\n this._bindElementEvents(this.closeDiv, _bindInstanceProperty$1(_context3 = this.toggleEditMode).call(_context3, this));\n\n // refresh this bar based on what has been selected\n this._temporaryBindEvent(\"select\", _bindInstanceProperty$1(_context4 = this.showManipulatorToolbar).call(_context4, this));\n }\n\n // redraw to show any possible changes\n this.body.emitter.emit(\"_redraw\");\n }\n\n /**\n * Create the toolbar for adding Nodes\n */\n }, {\n key: \"addNodeMode\",\n value: function addNodeMode() {\n var _context6;\n // when using the gui, enable edit mode if it wasnt already.\n if (this.editMode !== true) {\n this.enableEditMode();\n }\n\n // restore the state of any bound functions or events, remove control nodes, restore physics\n this._clean();\n this.inMode = \"addNode\";\n if (this.guiEnabled === true) {\n var _context5;\n var locale = this.options.locales[this.options.locale];\n this.manipulationDOM = {};\n this._createBackButton(locale);\n this._createSeperator();\n this._createDescription(locale[\"addDescription\"] || this.options.locales[\"en\"][\"addDescription\"]);\n\n // bind the close button\n this._bindElementEvents(this.closeDiv, _bindInstanceProperty$1(_context5 = this.toggleEditMode).call(_context5, this));\n }\n this._temporaryBindEvent(\"click\", _bindInstanceProperty$1(_context6 = this._performAddNode).call(_context6, this));\n }\n\n /**\n * call the bound function to handle the editing of the node. The node has to be selected.\n */\n }, {\n key: \"editNode\",\n value: function editNode() {\n var _this2 = this;\n // when using the gui, enable edit mode if it wasnt already.\n if (this.editMode !== true) {\n this.enableEditMode();\n }\n\n // restore the state of any bound functions or events, remove control nodes, restore physics\n this._clean();\n var node = this.selectionHandler.getSelectedNodes()[0];\n if (node !== undefined) {\n this.inMode = \"editNode\";\n if (typeof this.options.editNode === \"function\") {\n if (node.isCluster !== true) {\n var data = deepExtend({}, node.options, false);\n data.x = node.x;\n data.y = node.y;\n if (this.options.editNode.length === 2) {\n this.options.editNode(data, function (finalizedData) {\n if (finalizedData !== null && finalizedData !== undefined && _this2.inMode === \"editNode\") {\n // if for whatever reason the mode has changes (due to dataset change) disregard the callback) {\n _this2.body.data.nodes.getDataSet().update(finalizedData);\n }\n _this2.showManipulatorToolbar();\n });\n } else {\n throw new Error(\"The function for edit does not support two arguments (data, callback)\");\n }\n } else {\n alert(this.options.locales[this.options.locale][\"editClusterError\"] || this.options.locales[\"en\"][\"editClusterError\"]);\n }\n } else {\n throw new Error(\"No function has been configured to handle the editing of nodes.\");\n }\n } else {\n this.showManipulatorToolbar();\n }\n }\n\n /**\n * create the toolbar to connect nodes\n */\n }, {\n key: \"addEdgeMode\",\n value: function addEdgeMode() {\n var _context8, _context9, _context10, _context11, _context12;\n // when using the gui, enable edit mode if it wasnt already.\n if (this.editMode !== true) {\n this.enableEditMode();\n }\n\n // restore the state of any bound functions or events, remove control nodes, restore physics\n this._clean();\n this.inMode = \"addEdge\";\n if (this.guiEnabled === true) {\n var _context7;\n var locale = this.options.locales[this.options.locale];\n this.manipulationDOM = {};\n this._createBackButton(locale);\n this._createSeperator();\n this._createDescription(locale[\"edgeDescription\"] || this.options.locales[\"en\"][\"edgeDescription\"]);\n\n // bind the close button\n this._bindElementEvents(this.closeDiv, _bindInstanceProperty$1(_context7 = this.toggleEditMode).call(_context7, this));\n }\n\n // temporarily overload functions\n this._temporaryBindUI(\"onTouch\", _bindInstanceProperty$1(_context8 = this._handleConnect).call(_context8, this));\n this._temporaryBindUI(\"onDragEnd\", _bindInstanceProperty$1(_context9 = this._finishConnect).call(_context9, this));\n this._temporaryBindUI(\"onDrag\", _bindInstanceProperty$1(_context10 = this._dragControlNode).call(_context10, this));\n this._temporaryBindUI(\"onRelease\", _bindInstanceProperty$1(_context11 = this._finishConnect).call(_context11, this));\n this._temporaryBindUI(\"onDragStart\", _bindInstanceProperty$1(_context12 = this._dragStartEdge).call(_context12, this));\n this._temporaryBindUI(\"onHold\", function () {});\n }\n\n /**\n * create the toolbar to edit edges\n */\n }, {\n key: \"editEdgeMode\",\n value: function editEdgeMode() {\n // when using the gui, enable edit mode if it wasn't already.\n if (this.editMode !== true) {\n this.enableEditMode();\n }\n\n // restore the state of any bound functions or events, remove control nodes, restore physics\n this._clean();\n this.inMode = \"editEdge\";\n if (_typeof$1(this.options.editEdge) === \"object\" && typeof this.options.editEdge.editWithoutDrag === \"function\") {\n this.edgeBeingEditedId = this.selectionHandler.getSelectedEdgeIds()[0];\n if (this.edgeBeingEditedId !== undefined) {\n var edge = this.body.edges[this.edgeBeingEditedId];\n this._performEditEdge(edge.from.id, edge.to.id);\n return;\n }\n }\n if (this.guiEnabled === true) {\n var _context13;\n var locale = this.options.locales[this.options.locale];\n this.manipulationDOM = {};\n this._createBackButton(locale);\n this._createSeperator();\n this._createDescription(locale[\"editEdgeDescription\"] || this.options.locales[\"en\"][\"editEdgeDescription\"]);\n\n // bind the close button\n this._bindElementEvents(this.closeDiv, _bindInstanceProperty$1(_context13 = this.toggleEditMode).call(_context13, this));\n }\n this.edgeBeingEditedId = this.selectionHandler.getSelectedEdgeIds()[0];\n if (this.edgeBeingEditedId !== undefined) {\n var _context14, _context15, _context16, _context17;\n var _edge = this.body.edges[this.edgeBeingEditedId];\n\n // create control nodes\n var controlNodeFrom = this._getNewTargetNode(_edge.from.x, _edge.from.y);\n var controlNodeTo = this._getNewTargetNode(_edge.to.x, _edge.to.y);\n this.temporaryIds.nodes.push(controlNodeFrom.id);\n this.temporaryIds.nodes.push(controlNodeTo.id);\n this.body.nodes[controlNodeFrom.id] = controlNodeFrom;\n this.body.nodeIndices.push(controlNodeFrom.id);\n this.body.nodes[controlNodeTo.id] = controlNodeTo;\n this.body.nodeIndices.push(controlNodeTo.id);\n\n // temporarily overload UI functions, cleaned up automatically because of _temporaryBindUI\n this._temporaryBindUI(\"onTouch\", _bindInstanceProperty$1(_context14 = this._controlNodeTouch).call(_context14, this)); // used to get the position\n this._temporaryBindUI(\"onTap\", function () {}); // disabled\n this._temporaryBindUI(\"onHold\", function () {}); // disabled\n this._temporaryBindUI(\"onDragStart\", _bindInstanceProperty$1(_context15 = this._controlNodeDragStart).call(_context15, this)); // used to select control node\n this._temporaryBindUI(\"onDrag\", _bindInstanceProperty$1(_context16 = this._controlNodeDrag).call(_context16, this)); // used to drag control node\n this._temporaryBindUI(\"onDragEnd\", _bindInstanceProperty$1(_context17 = this._controlNodeDragEnd).call(_context17, this)); // used to connect or revert control nodes\n this._temporaryBindUI(\"onMouseMove\", function () {}); // disabled\n\n // create function to position control nodes correctly on movement\n // automatically cleaned up because we use the temporary bind\n this._temporaryBindEvent(\"beforeDrawing\", function (ctx) {\n var positions = _edge.edgeType.findBorderPositions(ctx);\n if (controlNodeFrom.selected === false) {\n controlNodeFrom.x = positions.from.x;\n controlNodeFrom.y = positions.from.y;\n }\n if (controlNodeTo.selected === false) {\n controlNodeTo.x = positions.to.x;\n controlNodeTo.y = positions.to.y;\n }\n });\n this.body.emitter.emit(\"_redraw\");\n } else {\n this.showManipulatorToolbar();\n }\n }\n\n /**\n * delete everything in the selection\n */\n }, {\n key: \"deleteSelected\",\n value: function deleteSelected() {\n var _this3 = this;\n // when using the gui, enable edit mode if it wasnt already.\n if (this.editMode !== true) {\n this.enableEditMode();\n }\n\n // restore the state of any bound functions or events, remove control nodes, restore physics\n this._clean();\n this.inMode = \"delete\";\n var selectedNodes = this.selectionHandler.getSelectedNodeIds();\n var selectedEdges = this.selectionHandler.getSelectedEdgeIds();\n var deleteFunction = undefined;\n if (selectedNodes.length > 0) {\n for (var i = 0; i < selectedNodes.length; i++) {\n if (this.body.nodes[selectedNodes[i]].isCluster === true) {\n alert(this.options.locales[this.options.locale][\"deleteClusterError\"] || this.options.locales[\"en\"][\"deleteClusterError\"]);\n return;\n }\n }\n if (typeof this.options.deleteNode === \"function\") {\n deleteFunction = this.options.deleteNode;\n }\n } else if (selectedEdges.length > 0) {\n if (typeof this.options.deleteEdge === \"function\") {\n deleteFunction = this.options.deleteEdge;\n }\n }\n if (typeof deleteFunction === \"function\") {\n var data = {\n nodes: selectedNodes,\n edges: selectedEdges\n };\n if (deleteFunction.length === 2) {\n deleteFunction(data, function (finalizedData) {\n if (finalizedData !== null && finalizedData !== undefined && _this3.inMode === \"delete\") {\n // if for whatever reason the mode has changes (due to dataset change) disregard the callback) {\n _this3.body.data.edges.getDataSet().remove(finalizedData.edges);\n _this3.body.data.nodes.getDataSet().remove(finalizedData.nodes);\n _this3.body.emitter.emit(\"startSimulation\");\n _this3.showManipulatorToolbar();\n } else {\n _this3.body.emitter.emit(\"startSimulation\");\n _this3.showManipulatorToolbar();\n }\n });\n } else {\n throw new Error(\"The function for delete does not support two arguments (data, callback)\");\n }\n } else {\n this.body.data.edges.getDataSet().remove(selectedEdges);\n this.body.data.nodes.getDataSet().remove(selectedNodes);\n this.body.emitter.emit(\"startSimulation\");\n this.showManipulatorToolbar();\n }\n }\n\n //********************************************** PRIVATE ***************************************//\n\n /**\n * draw or remove the DOM\n *\n * @private\n */\n }, {\n key: \"_setup\",\n value: function _setup() {\n if (this.options.enabled === true) {\n // Enable the GUI\n this.guiEnabled = true;\n this._createWrappers();\n if (this.editMode === false) {\n this._createEditButton();\n } else {\n this.showManipulatorToolbar();\n }\n } else {\n this._removeManipulationDOM();\n\n // disable the gui\n this.guiEnabled = false;\n }\n }\n\n /**\n * create the div overlays that contain the DOM\n *\n * @private\n */\n }, {\n key: \"_createWrappers\",\n value: function _createWrappers() {\n // load the manipulator HTML elements. All styling done in css.\n if (this.manipulationDiv === undefined) {\n this.manipulationDiv = document.createElement(\"div\");\n this.manipulationDiv.className = \"vis-manipulation\";\n if (this.editMode === true) {\n this.manipulationDiv.style.display = \"block\";\n } else {\n this.manipulationDiv.style.display = \"none\";\n }\n this.canvas.frame.appendChild(this.manipulationDiv);\n }\n\n // container for the edit button.\n if (this.editModeDiv === undefined) {\n this.editModeDiv = document.createElement(\"div\");\n this.editModeDiv.className = \"vis-edit-mode\";\n if (this.editMode === true) {\n this.editModeDiv.style.display = \"none\";\n } else {\n this.editModeDiv.style.display = \"block\";\n }\n this.canvas.frame.appendChild(this.editModeDiv);\n }\n\n // container for the close div button\n if (this.closeDiv === undefined) {\n var _this$options$locales, _this$options$locales2;\n this.closeDiv = document.createElement(\"button\");\n this.closeDiv.className = \"vis-close\";\n this.closeDiv.setAttribute(\"aria-label\", (_this$options$locales = (_this$options$locales2 = this.options.locales[this.options.locale]) === null || _this$options$locales2 === void 0 ? void 0 : _this$options$locales2[\"close\"]) !== null && _this$options$locales !== void 0 ? _this$options$locales : this.options.locales[\"en\"][\"close\"]);\n this.closeDiv.style.display = this.manipulationDiv.style.display;\n this.canvas.frame.appendChild(this.closeDiv);\n }\n }\n\n /**\n * generate a new target node. Used for creating new edges and editing edges\n *\n * @param {number} x\n * @param {number} y\n * @returns {Node}\n * @private\n */\n }, {\n key: \"_getNewTargetNode\",\n value: function _getNewTargetNode(x, y) {\n var controlNodeStyle = deepExtend({}, this.options.controlNodeStyle);\n controlNodeStyle.id = \"targetNode\" + v4();\n controlNodeStyle.hidden = false;\n controlNodeStyle.physics = false;\n controlNodeStyle.x = x;\n controlNodeStyle.y = y;\n\n // we have to define the bounding box in order for the nodes to be drawn immediately\n var node = this.body.functions.createNode(controlNodeStyle);\n node.shape.boundingBox = {\n left: x,\n right: x,\n top: y,\n bottom: y\n };\n return node;\n }\n\n /**\n * Create the edit button\n */\n }, {\n key: \"_createEditButton\",\n value: function _createEditButton() {\n var _context18;\n // restore everything to it's original state (if applicable)\n this._clean();\n\n // reset the manipulationDOM\n this.manipulationDOM = {};\n\n // empty the editModeDiv\n recursiveDOMDelete(this.editModeDiv);\n\n // create the contents for the editMode button\n var locale = this.options.locales[this.options.locale];\n var button = this._createButton(\"editMode\", \"vis-edit vis-edit-mode\", locale[\"edit\"] || this.options.locales[\"en\"][\"edit\"]);\n this.editModeDiv.appendChild(button);\n\n // bind a hammer listener to the button, calling the function toggleEditMode.\n this._bindElementEvents(button, _bindInstanceProperty$1(_context18 = this.toggleEditMode).call(_context18, this));\n }\n\n /**\n * this function cleans up after everything this module does. Temporary elements, functions and events are removed, physics restored, hammers removed.\n *\n * @private\n */\n }, {\n key: \"_clean\",\n value: function _clean() {\n // not in mode\n this.inMode = false;\n\n // _clean the divs\n if (this.guiEnabled === true) {\n recursiveDOMDelete(this.editModeDiv);\n recursiveDOMDelete(this.manipulationDiv);\n\n // removes all the bindings and overloads\n this._cleanupDOMEventListeners();\n }\n\n // remove temporary nodes and edges\n this._cleanupTemporaryNodesAndEdges();\n\n // restore overloaded UI functions\n this._unbindTemporaryUIs();\n\n // remove the temporaryEventFunctions\n this._unbindTemporaryEvents();\n\n // restore the physics if required\n this.body.emitter.emit(\"restorePhysics\");\n }\n\n /**\n * Each dom element has it's own hammer. They are stored in this.manipulationHammers. This cleans them up.\n *\n * @private\n */\n }, {\n key: \"_cleanupDOMEventListeners\",\n value: function _cleanupDOMEventListeners() {\n var _context19;\n // _clean DOM event listener bindings\n var _iterator = _createForOfIteratorHelper(_spliceInstanceProperty(_context19 = this._domEventListenerCleanupQueue).call(_context19, 0)),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var callback = _step.value;\n callback();\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n\n /**\n * Remove all DOM elements created by this module.\n *\n * @private\n */\n }, {\n key: \"_removeManipulationDOM\",\n value: function _removeManipulationDOM() {\n // removes all the bindings and overloads\n this._clean();\n\n // empty the manipulation divs\n recursiveDOMDelete(this.manipulationDiv);\n recursiveDOMDelete(this.editModeDiv);\n recursiveDOMDelete(this.closeDiv);\n\n // remove the manipulation divs\n if (this.manipulationDiv) {\n this.canvas.frame.removeChild(this.manipulationDiv);\n }\n if (this.editModeDiv) {\n this.canvas.frame.removeChild(this.editModeDiv);\n }\n if (this.closeDiv) {\n this.canvas.frame.removeChild(this.closeDiv);\n }\n\n // set the references to undefined\n this.manipulationDiv = undefined;\n this.editModeDiv = undefined;\n this.closeDiv = undefined;\n }\n\n /**\n * create a seperator line. the index is to differentiate in the manipulation dom\n *\n * @param {number} [index=1]\n * @private\n */\n }, {\n key: \"_createSeperator\",\n value: function _createSeperator() {\n var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n this.manipulationDOM[\"seperatorLineDiv\" + index] = document.createElement(\"div\");\n this.manipulationDOM[\"seperatorLineDiv\" + index].className = \"vis-separator-line\";\n this.manipulationDiv.appendChild(this.manipulationDOM[\"seperatorLineDiv\" + index]);\n }\n\n // ---------------------- DOM functions for buttons --------------------------//\n\n /**\n *\n * @param {Locale} locale\n * @private\n */\n }, {\n key: \"_createAddNodeButton\",\n value: function _createAddNodeButton(locale) {\n var _context20;\n var button = this._createButton(\"addNode\", \"vis-add\", locale[\"addNode\"] || this.options.locales[\"en\"][\"addNode\"]);\n this.manipulationDiv.appendChild(button);\n this._bindElementEvents(button, _bindInstanceProperty$1(_context20 = this.addNodeMode).call(_context20, this));\n }\n\n /**\n *\n * @param {Locale} locale\n * @private\n */\n }, {\n key: \"_createAddEdgeButton\",\n value: function _createAddEdgeButton(locale) {\n var _context21;\n var button = this._createButton(\"addEdge\", \"vis-connect\", locale[\"addEdge\"] || this.options.locales[\"en\"][\"addEdge\"]);\n this.manipulationDiv.appendChild(button);\n this._bindElementEvents(button, _bindInstanceProperty$1(_context21 = this.addEdgeMode).call(_context21, this));\n }\n\n /**\n *\n * @param {Locale} locale\n * @private\n */\n }, {\n key: \"_createEditNodeButton\",\n value: function _createEditNodeButton(locale) {\n var _context22;\n var button = this._createButton(\"editNode\", \"vis-edit\", locale[\"editNode\"] || this.options.locales[\"en\"][\"editNode\"]);\n this.manipulationDiv.appendChild(button);\n this._bindElementEvents(button, _bindInstanceProperty$1(_context22 = this.editNode).call(_context22, this));\n }\n\n /**\n *\n * @param {Locale} locale\n * @private\n */\n }, {\n key: \"_createEditEdgeButton\",\n value: function _createEditEdgeButton(locale) {\n var _context23;\n var button = this._createButton(\"editEdge\", \"vis-edit\", locale[\"editEdge\"] || this.options.locales[\"en\"][\"editEdge\"]);\n this.manipulationDiv.appendChild(button);\n this._bindElementEvents(button, _bindInstanceProperty$1(_context23 = this.editEdgeMode).call(_context23, this));\n }\n\n /**\n *\n * @param {Locale} locale\n * @private\n */\n }, {\n key: \"_createDeleteButton\",\n value: function _createDeleteButton(locale) {\n var _context24;\n var deleteBtnClass;\n if (this.options.rtl) {\n deleteBtnClass = \"vis-delete-rtl\";\n } else {\n deleteBtnClass = \"vis-delete\";\n }\n var button = this._createButton(\"delete\", deleteBtnClass, locale[\"del\"] || this.options.locales[\"en\"][\"del\"]);\n this.manipulationDiv.appendChild(button);\n this._bindElementEvents(button, _bindInstanceProperty$1(_context24 = this.deleteSelected).call(_context24, this));\n }\n\n /**\n *\n * @param {Locale} locale\n * @private\n */\n }, {\n key: \"_createBackButton\",\n value: function _createBackButton(locale) {\n var _context25;\n var button = this._createButton(\"back\", \"vis-back\", locale[\"back\"] || this.options.locales[\"en\"][\"back\"]);\n this.manipulationDiv.appendChild(button);\n this._bindElementEvents(button, _bindInstanceProperty$1(_context25 = this.showManipulatorToolbar).call(_context25, this));\n }\n\n /**\n *\n * @param {number|string} id\n * @param {string} className\n * @param {label} label\n * @param {string} labelClassName\n * @returns {HTMLElement}\n * @private\n */\n }, {\n key: \"_createButton\",\n value: function _createButton(id, className, label) {\n var labelClassName = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : \"vis-label\";\n this.manipulationDOM[id + \"Div\"] = document.createElement(\"button\");\n this.manipulationDOM[id + \"Div\"].className = \"vis-button \" + className;\n this.manipulationDOM[id + \"Label\"] = document.createElement(\"div\");\n this.manipulationDOM[id + \"Label\"].className = labelClassName;\n this.manipulationDOM[id + \"Label\"].innerText = label;\n this.manipulationDOM[id + \"Div\"].appendChild(this.manipulationDOM[id + \"Label\"]);\n return this.manipulationDOM[id + \"Div\"];\n }\n\n /**\n *\n * @param {Label} label\n * @private\n */\n }, {\n key: \"_createDescription\",\n value: function _createDescription(label) {\n this.manipulationDOM[\"descriptionLabel\"] = document.createElement(\"div\");\n this.manipulationDOM[\"descriptionLabel\"].className = \"vis-none\";\n this.manipulationDOM[\"descriptionLabel\"].innerText = label;\n this.manipulationDiv.appendChild(this.manipulationDOM[\"descriptionLabel\"]);\n }\n\n // -------------------------- End of DOM functions for buttons ------------------------------//\n\n /**\n * this binds an event until cleanup by the clean functions.\n *\n * @param {Event} event The event\n * @param {Function} newFunction\n * @private\n */\n }, {\n key: \"_temporaryBindEvent\",\n value: function _temporaryBindEvent(event, newFunction) {\n this.temporaryEventFunctions.push({\n event: event,\n boundFunction: newFunction\n });\n this.body.emitter.on(event, newFunction);\n }\n\n /**\n * this overrides an UI function until cleanup by the clean function\n *\n * @param {string} UIfunctionName\n * @param {Function} newFunction\n * @private\n */\n }, {\n key: \"_temporaryBindUI\",\n value: function _temporaryBindUI(UIfunctionName, newFunction) {\n if (this.body.eventListeners[UIfunctionName] !== undefined) {\n this.temporaryUIFunctions[UIfunctionName] = this.body.eventListeners[UIfunctionName];\n this.body.eventListeners[UIfunctionName] = newFunction;\n } else {\n throw new Error(\"This UI function does not exist. Typo? You tried: \" + UIfunctionName + \" possible are: \" + _JSON$stringify(_Object$keys(this.body.eventListeners)));\n }\n }\n\n /**\n * Restore the overridden UI functions to their original state.\n *\n * @private\n */\n }, {\n key: \"_unbindTemporaryUIs\",\n value: function _unbindTemporaryUIs() {\n for (var functionName in this.temporaryUIFunctions) {\n if (Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions, functionName)) {\n this.body.eventListeners[functionName] = this.temporaryUIFunctions[functionName];\n delete this.temporaryUIFunctions[functionName];\n }\n }\n this.temporaryUIFunctions = {};\n }\n\n /**\n * Unbind the events created by _temporaryBindEvent\n *\n * @private\n */\n }, {\n key: \"_unbindTemporaryEvents\",\n value: function _unbindTemporaryEvents() {\n for (var i = 0; i < this.temporaryEventFunctions.length; i++) {\n var eventName = this.temporaryEventFunctions[i].event;\n var boundFunction = this.temporaryEventFunctions[i].boundFunction;\n this.body.emitter.off(eventName, boundFunction);\n }\n this.temporaryEventFunctions = [];\n }\n\n /**\n * Bind an hammer instance to a DOM element.\n *\n * @param {Element} domElement\n * @param {Function} boundFunction\n */\n }, {\n key: \"_bindElementEvents\",\n value: function _bindElementEvents(domElement, boundFunction) {\n // Bind touch events.\n var hammer = new Hammer(domElement, {});\n onTouch(hammer, boundFunction);\n this._domEventListenerCleanupQueue.push(function () {\n hammer.destroy();\n });\n\n // Bind keyboard events.\n var keyupListener = function keyupListener(_ref) {\n var keyCode = _ref.keyCode,\n key = _ref.key;\n if (key === \"Enter\" || key === \" \" || keyCode === 13 || keyCode === 32) {\n boundFunction();\n }\n };\n domElement.addEventListener(\"keyup\", keyupListener, false);\n this._domEventListenerCleanupQueue.push(function () {\n domElement.removeEventListener(\"keyup\", keyupListener, false);\n });\n }\n\n /**\n * Neatly clean up temporary edges and nodes\n *\n * @private\n */\n }, {\n key: \"_cleanupTemporaryNodesAndEdges\",\n value: function _cleanupTemporaryNodesAndEdges() {\n // _clean temporary edges\n for (var i = 0; i < this.temporaryIds.edges.length; i++) {\n var _context26;\n this.body.edges[this.temporaryIds.edges[i]].disconnect();\n delete this.body.edges[this.temporaryIds.edges[i]];\n var indexTempEdge = _indexOfInstanceProperty(_context26 = this.body.edgeIndices).call(_context26, this.temporaryIds.edges[i]);\n if (indexTempEdge !== -1) {\n var _context27;\n _spliceInstanceProperty(_context27 = this.body.edgeIndices).call(_context27, indexTempEdge, 1);\n }\n }\n\n // _clean temporary nodes\n for (var _i = 0; _i < this.temporaryIds.nodes.length; _i++) {\n var _context28;\n delete this.body.nodes[this.temporaryIds.nodes[_i]];\n var indexTempNode = _indexOfInstanceProperty(_context28 = this.body.nodeIndices).call(_context28, this.temporaryIds.nodes[_i]);\n if (indexTempNode !== -1) {\n var _context29;\n _spliceInstanceProperty(_context29 = this.body.nodeIndices).call(_context29, indexTempNode, 1);\n }\n }\n this.temporaryIds = {\n nodes: [],\n edges: []\n };\n }\n\n // ------------------------------------------ EDIT EDGE FUNCTIONS -----------------------------------------//\n\n /**\n * the touch is used to get the position of the initial click\n *\n * @param {Event} event The event\n * @private\n */\n }, {\n key: \"_controlNodeTouch\",\n value: function _controlNodeTouch(event) {\n this.selectionHandler.unselectAll();\n this.lastTouch = this.body.functions.getPointer(event.center);\n this.lastTouch.translation = _Object$assign({}, this.body.view.translation); // copy the object\n }\n\n /**\n * the drag start is used to mark one of the control nodes as selected.\n *\n * @private\n */\n }, {\n key: \"_controlNodeDragStart\",\n value: function _controlNodeDragStart() {\n var pointer = this.lastTouch;\n var pointerObj = this.selectionHandler._pointerToPositionObject(pointer);\n var from = this.body.nodes[this.temporaryIds.nodes[0]];\n var to = this.body.nodes[this.temporaryIds.nodes[1]];\n var edge = this.body.edges[this.edgeBeingEditedId];\n this.selectedControlNode = undefined;\n var fromSelect = from.isOverlappingWith(pointerObj);\n var toSelect = to.isOverlappingWith(pointerObj);\n if (fromSelect === true) {\n this.selectedControlNode = from;\n edge.edgeType.from = from;\n } else if (toSelect === true) {\n this.selectedControlNode = to;\n edge.edgeType.to = to;\n }\n\n // we use the selection to find the node that is being dragged. We explicitly select it here.\n if (this.selectedControlNode !== undefined) {\n this.selectionHandler.selectObject(this.selectedControlNode);\n }\n this.body.emitter.emit(\"_redraw\");\n }\n\n /**\n * dragging the control nodes or the canvas\n *\n * @param {Event} event The event\n * @private\n */\n }, {\n key: \"_controlNodeDrag\",\n value: function _controlNodeDrag(event) {\n this.body.emitter.emit(\"disablePhysics\");\n var pointer = this.body.functions.getPointer(event.center);\n var pos = this.canvas.DOMtoCanvas(pointer);\n if (this.selectedControlNode !== undefined) {\n this.selectedControlNode.x = pos.x;\n this.selectedControlNode.y = pos.y;\n } else {\n this.interactionHandler.onDrag(event);\n }\n this.body.emitter.emit(\"_redraw\");\n }\n\n /**\n * connecting or restoring the control nodes.\n *\n * @param {Event} event The event\n * @private\n */\n }, {\n key: \"_controlNodeDragEnd\",\n value: function _controlNodeDragEnd(event) {\n var pointer = this.body.functions.getPointer(event.center);\n var pointerObj = this.selectionHandler._pointerToPositionObject(pointer);\n var edge = this.body.edges[this.edgeBeingEditedId];\n // if the node that was dragged is not a control node, return\n if (this.selectedControlNode === undefined) {\n return;\n }\n\n // we use the selection to find the node that is being dragged. We explicitly DEselect the control node here.\n this.selectionHandler.unselectAll();\n var overlappingNodeIds = this.selectionHandler._getAllNodesOverlappingWith(pointerObj);\n var node = undefined;\n for (var i = overlappingNodeIds.length - 1; i >= 0; i--) {\n if (overlappingNodeIds[i] !== this.selectedControlNode.id) {\n node = this.body.nodes[overlappingNodeIds[i]];\n break;\n }\n }\n // perform the connection\n if (node !== undefined && this.selectedControlNode !== undefined) {\n if (node.isCluster === true) {\n alert(this.options.locales[this.options.locale][\"createEdgeError\"] || this.options.locales[\"en\"][\"createEdgeError\"]);\n } else {\n var from = this.body.nodes[this.temporaryIds.nodes[0]];\n if (this.selectedControlNode.id === from.id) {\n this._performEditEdge(node.id, edge.to.id);\n } else {\n this._performEditEdge(edge.from.id, node.id);\n }\n }\n } else {\n edge.updateEdgeType();\n this.body.emitter.emit(\"restorePhysics\");\n }\n this.body.emitter.emit(\"_redraw\");\n }\n\n // ------------------------------------ END OF EDIT EDGE FUNCTIONS -----------------------------------------//\n\n // ------------------------------------------- ADD EDGE FUNCTIONS -----------------------------------------//\n /**\n * the function bound to the selection event. It checks if you want to connect a cluster and changes the description\n * to walk the user through the process.\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"_handleConnect\",\n value: function _handleConnect(event) {\n // check to avoid double fireing of this function.\n if (new Date().valueOf() - this.touchTime > 100) {\n this.lastTouch = this.body.functions.getPointer(event.center);\n this.lastTouch.translation = _Object$assign({}, this.body.view.translation); // copy the object\n\n this.interactionHandler.drag.pointer = this.lastTouch; // Drag pointer is not updated when adding edges\n this.interactionHandler.drag.translation = this.lastTouch.translation;\n var pointer = this.lastTouch;\n var node = this.selectionHandler.getNodeAt(pointer);\n if (node !== undefined) {\n if (node.isCluster === true) {\n alert(this.options.locales[this.options.locale][\"createEdgeError\"] || this.options.locales[\"en\"][\"createEdgeError\"]);\n } else {\n // create a node the temporary line can look at\n var targetNode = this._getNewTargetNode(node.x, node.y);\n this.body.nodes[targetNode.id] = targetNode;\n this.body.nodeIndices.push(targetNode.id);\n\n // create a temporary edge\n var connectionEdge = this.body.functions.createEdge({\n id: \"connectionEdge\" + v4(),\n from: node.id,\n to: targetNode.id,\n physics: false,\n smooth: {\n enabled: true,\n type: \"continuous\",\n roundness: 0.5\n }\n });\n this.body.edges[connectionEdge.id] = connectionEdge;\n this.body.edgeIndices.push(connectionEdge.id);\n this.temporaryIds.nodes.push(targetNode.id);\n this.temporaryIds.edges.push(connectionEdge.id);\n }\n }\n this.touchTime = new Date().valueOf();\n }\n }\n\n /**\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"_dragControlNode\",\n value: function _dragControlNode(event) {\n var pointer = this.body.functions.getPointer(event.center);\n var pointerObj = this.selectionHandler._pointerToPositionObject(pointer);\n // remember the edge id\n var connectFromId = undefined;\n if (this.temporaryIds.edges[0] !== undefined) {\n connectFromId = this.body.edges[this.temporaryIds.edges[0]].fromId;\n }\n\n // get the overlapping node but NOT the temporary node;\n var overlappingNodeIds = this.selectionHandler._getAllNodesOverlappingWith(pointerObj);\n var node = undefined;\n for (var i = overlappingNodeIds.length - 1; i >= 0; i--) {\n var _context30;\n // if the node id is NOT a temporary node, accept the node.\n if (_indexOfInstanceProperty(_context30 = this.temporaryIds.nodes).call(_context30, overlappingNodeIds[i]) === -1) {\n node = this.body.nodes[overlappingNodeIds[i]];\n break;\n }\n }\n event.controlEdge = {\n from: connectFromId,\n to: node ? node.id : undefined\n };\n this.selectionHandler.generateClickEvent(\"controlNodeDragging\", event, pointer);\n if (this.temporaryIds.nodes[0] !== undefined) {\n var targetNode = this.body.nodes[this.temporaryIds.nodes[0]]; // there is only one temp node in the add edge mode.\n targetNode.x = this.canvas._XconvertDOMtoCanvas(pointer.x);\n targetNode.y = this.canvas._YconvertDOMtoCanvas(pointer.y);\n this.body.emitter.emit(\"_redraw\");\n } else {\n this.interactionHandler.onDrag(event);\n }\n }\n\n /**\n * Connect the new edge to the target if one exists, otherwise remove temp line\n *\n * @param {Event} event The event\n * @private\n */\n }, {\n key: \"_finishConnect\",\n value: function _finishConnect(event) {\n var pointer = this.body.functions.getPointer(event.center);\n var pointerObj = this.selectionHandler._pointerToPositionObject(pointer);\n\n // remember the edge id\n var connectFromId = undefined;\n if (this.temporaryIds.edges[0] !== undefined) {\n connectFromId = this.body.edges[this.temporaryIds.edges[0]].fromId;\n }\n\n // get the overlapping node but NOT the temporary node;\n var overlappingNodeIds = this.selectionHandler._getAllNodesOverlappingWith(pointerObj);\n var node = undefined;\n for (var i = overlappingNodeIds.length - 1; i >= 0; i--) {\n var _context31;\n // if the node id is NOT a temporary node, accept the node.\n if (_indexOfInstanceProperty(_context31 = this.temporaryIds.nodes).call(_context31, overlappingNodeIds[i]) === -1) {\n node = this.body.nodes[overlappingNodeIds[i]];\n break;\n }\n }\n\n // clean temporary nodes and edges.\n this._cleanupTemporaryNodesAndEdges();\n\n // perform the connection\n if (node !== undefined) {\n if (node.isCluster === true) {\n alert(this.options.locales[this.options.locale][\"createEdgeError\"] || this.options.locales[\"en\"][\"createEdgeError\"]);\n } else {\n if (this.body.nodes[connectFromId] !== undefined && this.body.nodes[node.id] !== undefined) {\n this._performAddEdge(connectFromId, node.id);\n }\n }\n }\n event.controlEdge = {\n from: connectFromId,\n to: node ? node.id : undefined\n };\n this.selectionHandler.generateClickEvent(\"controlNodeDragEnd\", event, pointer);\n\n // No need to do _generateclickevent('dragEnd') here, the regular dragEnd event fires.\n this.body.emitter.emit(\"_redraw\");\n }\n\n /**\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"_dragStartEdge\",\n value: function _dragStartEdge(event) {\n var pointer = this.lastTouch;\n this.selectionHandler.generateClickEvent(\"dragStart\", event, pointer, undefined, true);\n }\n\n // --------------------------------------- END OF ADD EDGE FUNCTIONS -------------------------------------//\n\n // ------------------------------ Performing all the actual data manipulation ------------------------//\n\n /**\n * Adds a node on the specified location\n *\n * @param {object} clickData\n * @private\n */\n }, {\n key: \"_performAddNode\",\n value: function _performAddNode(clickData) {\n var _this4 = this;\n var defaultData = {\n id: v4(),\n x: clickData.pointer.canvas.x,\n y: clickData.pointer.canvas.y,\n label: \"new\"\n };\n if (typeof this.options.addNode === \"function\") {\n if (this.options.addNode.length === 2) {\n this.options.addNode(defaultData, function (finalizedData) {\n if (finalizedData !== null && finalizedData !== undefined && _this4.inMode === \"addNode\") {\n // if for whatever reason the mode has changes (due to dataset change) disregard the callback\n _this4.body.data.nodes.getDataSet().add(finalizedData);\n }\n _this4.showManipulatorToolbar();\n });\n } else {\n this.showManipulatorToolbar();\n throw new Error(\"The function for add does not support two arguments (data,callback)\");\n }\n } else {\n this.body.data.nodes.getDataSet().add(defaultData);\n this.showManipulatorToolbar();\n }\n }\n\n /**\n * connect two nodes with a new edge.\n *\n * @param {Node.id} sourceNodeId\n * @param {Node.id} targetNodeId\n * @private\n */\n }, {\n key: \"_performAddEdge\",\n value: function _performAddEdge(sourceNodeId, targetNodeId) {\n var _this5 = this;\n var defaultData = {\n from: sourceNodeId,\n to: targetNodeId\n };\n if (typeof this.options.addEdge === \"function\") {\n if (this.options.addEdge.length === 2) {\n this.options.addEdge(defaultData, function (finalizedData) {\n if (finalizedData !== null && finalizedData !== undefined && _this5.inMode === \"addEdge\") {\n // if for whatever reason the mode has changes (due to dataset change) disregard the callback\n _this5.body.data.edges.getDataSet().add(finalizedData);\n _this5.selectionHandler.unselectAll();\n _this5.showManipulatorToolbar();\n }\n });\n } else {\n throw new Error(\"The function for connect does not support two arguments (data,callback)\");\n }\n } else {\n this.body.data.edges.getDataSet().add(defaultData);\n this.selectionHandler.unselectAll();\n this.showManipulatorToolbar();\n }\n }\n\n /**\n * connect two nodes with a new edge.\n *\n * @param {Node.id} sourceNodeId\n * @param {Node.id} targetNodeId\n * @private\n */\n }, {\n key: \"_performEditEdge\",\n value: function _performEditEdge(sourceNodeId, targetNodeId) {\n var _this6 = this;\n var defaultData = {\n id: this.edgeBeingEditedId,\n from: sourceNodeId,\n to: targetNodeId,\n label: this.body.data.edges.get(this.edgeBeingEditedId).label\n };\n var eeFunct = this.options.editEdge;\n if (_typeof$1(eeFunct) === \"object\") {\n eeFunct = eeFunct.editWithoutDrag;\n }\n if (typeof eeFunct === \"function\") {\n if (eeFunct.length === 2) {\n eeFunct(defaultData, function (finalizedData) {\n if (finalizedData === null || finalizedData === undefined || _this6.inMode !== \"editEdge\") {\n // if for whatever reason the mode has changes (due to dataset change) disregard the callback) {\n _this6.body.edges[defaultData.id].updateEdgeType();\n _this6.body.emitter.emit(\"_redraw\");\n _this6.showManipulatorToolbar();\n } else {\n _this6.body.data.edges.getDataSet().update(finalizedData);\n _this6.selectionHandler.unselectAll();\n _this6.showManipulatorToolbar();\n }\n });\n } else {\n throw new Error(\"The function for edit does not support two arguments (data, callback)\");\n }\n } else {\n this.body.data.edges.getDataSet().update(defaultData);\n this.selectionHandler.unselectAll();\n this.showManipulatorToolbar();\n }\n }\n }]);\n return ManipulationSystem;\n}();\n\n/**\r\n * This object contains all possible options. It will check if the types are correct, if required if the option is one\r\n * of the allowed values.\r\n *\r\n * __any__ means that the name of the property does not matter.\r\n * __type__ is a required field for all objects and contains the allowed types of all objects\r\n */\nvar string = \"string\";\nvar bool = \"boolean\";\nvar number = \"number\";\nvar array = \"array\";\nvar object = \"object\"; // should only be in a __type__ property\nvar dom = \"dom\";\nvar any = \"any\";\n// List of endpoints\nvar endPoints = [\"arrow\", \"bar\", \"box\", \"circle\", \"crow\", \"curve\", \"diamond\", \"image\", \"inv_curve\", \"inv_triangle\", \"triangle\", \"vee\"];\n/* eslint-disable @typescript-eslint/naming-convention -- The __*__ format is used to prevent collisions with actual option names. */\nvar nodeOptions = {\n borderWidth: {\n number: number\n },\n borderWidthSelected: {\n number: number,\n undefined: \"undefined\"\n },\n brokenImage: {\n string: string,\n undefined: \"undefined\"\n },\n chosen: {\n label: {\n boolean: bool,\n function: \"function\"\n },\n node: {\n boolean: bool,\n function: \"function\"\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n color: {\n border: {\n string: string\n },\n background: {\n string: string\n },\n highlight: {\n border: {\n string: string\n },\n background: {\n string: string\n },\n __type__: {\n object: object,\n string: string\n }\n },\n hover: {\n border: {\n string: string\n },\n background: {\n string: string\n },\n __type__: {\n object: object,\n string: string\n }\n },\n __type__: {\n object: object,\n string: string\n }\n },\n opacity: {\n number: number,\n undefined: \"undefined\"\n },\n fixed: {\n x: {\n boolean: bool\n },\n y: {\n boolean: bool\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n font: {\n align: {\n string: string\n },\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n background: {\n string: string\n },\n strokeWidth: {\n number: number\n },\n strokeColor: {\n string: string\n },\n vadjust: {\n number: number\n },\n multi: {\n boolean: bool,\n string: string\n },\n bold: {\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n mod: {\n string: string\n },\n vadjust: {\n number: number\n },\n __type__: {\n object: object,\n string: string\n }\n },\n boldital: {\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n mod: {\n string: string\n },\n vadjust: {\n number: number\n },\n __type__: {\n object: object,\n string: string\n }\n },\n ital: {\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n mod: {\n string: string\n },\n vadjust: {\n number: number\n },\n __type__: {\n object: object,\n string: string\n }\n },\n mono: {\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n mod: {\n string: string\n },\n vadjust: {\n number: number\n },\n __type__: {\n object: object,\n string: string\n }\n },\n __type__: {\n object: object,\n string: string\n }\n },\n group: {\n string: string,\n number: number,\n undefined: \"undefined\"\n },\n heightConstraint: {\n minimum: {\n number: number\n },\n valign: {\n string: string\n },\n __type__: {\n object: object,\n boolean: bool,\n number: number\n }\n },\n hidden: {\n boolean: bool\n },\n icon: {\n face: {\n string: string\n },\n code: {\n string: string\n },\n size: {\n number: number\n },\n color: {\n string: string\n },\n weight: {\n string: string,\n number: number\n },\n __type__: {\n object: object\n }\n },\n id: {\n string: string,\n number: number\n },\n image: {\n selected: {\n string: string,\n undefined: \"undefined\"\n },\n unselected: {\n string: string,\n undefined: \"undefined\"\n },\n __type__: {\n object: object,\n string: string\n }\n },\n imagePadding: {\n top: {\n number: number\n },\n right: {\n number: number\n },\n bottom: {\n number: number\n },\n left: {\n number: number\n },\n __type__: {\n object: object,\n number: number\n }\n },\n label: {\n string: string,\n undefined: \"undefined\"\n },\n labelHighlightBold: {\n boolean: bool\n },\n level: {\n number: number,\n undefined: \"undefined\"\n },\n margin: {\n top: {\n number: number\n },\n right: {\n number: number\n },\n bottom: {\n number: number\n },\n left: {\n number: number\n },\n __type__: {\n object: object,\n number: number\n }\n },\n mass: {\n number: number\n },\n physics: {\n boolean: bool\n },\n scaling: {\n min: {\n number: number\n },\n max: {\n number: number\n },\n label: {\n enabled: {\n boolean: bool\n },\n min: {\n number: number\n },\n max: {\n number: number\n },\n maxVisible: {\n number: number\n },\n drawThreshold: {\n number: number\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n customScalingFunction: {\n function: \"function\"\n },\n __type__: {\n object: object\n }\n },\n shadow: {\n enabled: {\n boolean: bool\n },\n color: {\n string: string\n },\n size: {\n number: number\n },\n x: {\n number: number\n },\n y: {\n number: number\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n shape: {\n string: [\"custom\", \"ellipse\", \"circle\", \"database\", \"box\", \"text\", \"image\", \"circularImage\", \"diamond\", \"dot\", \"star\", \"triangle\", \"triangleDown\", \"square\", \"icon\", \"hexagon\"]\n },\n ctxRenderer: {\n function: \"function\"\n },\n shapeProperties: {\n borderDashes: {\n boolean: bool,\n array: array\n },\n borderRadius: {\n number: number\n },\n interpolation: {\n boolean: bool\n },\n useImageSize: {\n boolean: bool\n },\n useBorderWithImage: {\n boolean: bool\n },\n coordinateOrigin: {\n string: [\"center\", \"top-left\"]\n },\n __type__: {\n object: object\n }\n },\n size: {\n number: number\n },\n title: {\n string: string,\n dom: dom,\n undefined: \"undefined\"\n },\n value: {\n number: number,\n undefined: \"undefined\"\n },\n widthConstraint: {\n minimum: {\n number: number\n },\n maximum: {\n number: number\n },\n __type__: {\n object: object,\n boolean: bool,\n number: number\n }\n },\n x: {\n number: number\n },\n y: {\n number: number\n },\n __type__: {\n object: object\n }\n};\nvar allOptions = {\n configure: {\n enabled: {\n boolean: bool\n },\n filter: {\n boolean: bool,\n string: string,\n array: array,\n function: \"function\"\n },\n container: {\n dom: dom\n },\n showButton: {\n boolean: bool\n },\n __type__: {\n object: object,\n boolean: bool,\n string: string,\n array: array,\n function: \"function\"\n }\n },\n edges: {\n arrows: {\n to: {\n enabled: {\n boolean: bool\n },\n scaleFactor: {\n number: number\n },\n type: {\n string: endPoints\n },\n imageHeight: {\n number: number\n },\n imageWidth: {\n number: number\n },\n src: {\n string: string\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n middle: {\n enabled: {\n boolean: bool\n },\n scaleFactor: {\n number: number\n },\n type: {\n string: endPoints\n },\n imageWidth: {\n number: number\n },\n imageHeight: {\n number: number\n },\n src: {\n string: string\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n from: {\n enabled: {\n boolean: bool\n },\n scaleFactor: {\n number: number\n },\n type: {\n string: endPoints\n },\n imageWidth: {\n number: number\n },\n imageHeight: {\n number: number\n },\n src: {\n string: string\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n __type__: {\n string: [\"from\", \"to\", \"middle\"],\n object: object\n }\n },\n endPointOffset: {\n from: {\n number: number\n },\n to: {\n number: number\n },\n __type__: {\n object: object,\n number: number\n }\n },\n arrowStrikethrough: {\n boolean: bool\n },\n background: {\n enabled: {\n boolean: bool\n },\n color: {\n string: string\n },\n size: {\n number: number\n },\n dashes: {\n boolean: bool,\n array: array\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n chosen: {\n label: {\n boolean: bool,\n function: \"function\"\n },\n edge: {\n boolean: bool,\n function: \"function\"\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n color: {\n color: {\n string: string\n },\n highlight: {\n string: string\n },\n hover: {\n string: string\n },\n inherit: {\n string: [\"from\", \"to\", \"both\"],\n boolean: bool\n },\n opacity: {\n number: number\n },\n __type__: {\n object: object,\n string: string\n }\n },\n dashes: {\n boolean: bool,\n array: array\n },\n font: {\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n background: {\n string: string\n },\n strokeWidth: {\n number: number\n },\n strokeColor: {\n string: string\n },\n align: {\n string: [\"horizontal\", \"top\", \"middle\", \"bottom\"]\n },\n vadjust: {\n number: number\n },\n multi: {\n boolean: bool,\n string: string\n },\n bold: {\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n mod: {\n string: string\n },\n vadjust: {\n number: number\n },\n __type__: {\n object: object,\n string: string\n }\n },\n boldital: {\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n mod: {\n string: string\n },\n vadjust: {\n number: number\n },\n __type__: {\n object: object,\n string: string\n }\n },\n ital: {\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n mod: {\n string: string\n },\n vadjust: {\n number: number\n },\n __type__: {\n object: object,\n string: string\n }\n },\n mono: {\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n mod: {\n string: string\n },\n vadjust: {\n number: number\n },\n __type__: {\n object: object,\n string: string\n }\n },\n __type__: {\n object: object,\n string: string\n }\n },\n hidden: {\n boolean: bool\n },\n hoverWidth: {\n function: \"function\",\n number: number\n },\n label: {\n string: string,\n undefined: \"undefined\"\n },\n labelHighlightBold: {\n boolean: bool\n },\n length: {\n number: number,\n undefined: \"undefined\"\n },\n physics: {\n boolean: bool\n },\n scaling: {\n min: {\n number: number\n },\n max: {\n number: number\n },\n label: {\n enabled: {\n boolean: bool\n },\n min: {\n number: number\n },\n max: {\n number: number\n },\n maxVisible: {\n number: number\n },\n drawThreshold: {\n number: number\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n customScalingFunction: {\n function: \"function\"\n },\n __type__: {\n object: object\n }\n },\n selectionWidth: {\n function: \"function\",\n number: number\n },\n selfReferenceSize: {\n number: number\n },\n selfReference: {\n size: {\n number: number\n },\n angle: {\n number: number\n },\n renderBehindTheNode: {\n boolean: bool\n },\n __type__: {\n object: object\n }\n },\n shadow: {\n enabled: {\n boolean: bool\n },\n color: {\n string: string\n },\n size: {\n number: number\n },\n x: {\n number: number\n },\n y: {\n number: number\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n smooth: {\n enabled: {\n boolean: bool\n },\n type: {\n string: [\"dynamic\", \"continuous\", \"discrete\", \"diagonalCross\", \"straightCross\", \"horizontal\", \"vertical\", \"curvedCW\", \"curvedCCW\", \"cubicBezier\"]\n },\n roundness: {\n number: number\n },\n forceDirection: {\n string: [\"horizontal\", \"vertical\", \"none\"],\n boolean: bool\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n title: {\n string: string,\n undefined: \"undefined\"\n },\n width: {\n number: number\n },\n widthConstraint: {\n maximum: {\n number: number\n },\n __type__: {\n object: object,\n boolean: bool,\n number: number\n }\n },\n value: {\n number: number,\n undefined: \"undefined\"\n },\n __type__: {\n object: object\n }\n },\n groups: {\n useDefaultGroups: {\n boolean: bool\n },\n __any__: nodeOptions,\n __type__: {\n object: object\n }\n },\n interaction: {\n dragNodes: {\n boolean: bool\n },\n dragView: {\n boolean: bool\n },\n hideEdgesOnDrag: {\n boolean: bool\n },\n hideEdgesOnZoom: {\n boolean: bool\n },\n hideNodesOnDrag: {\n boolean: bool\n },\n hover: {\n boolean: bool\n },\n keyboard: {\n enabled: {\n boolean: bool\n },\n speed: {\n x: {\n number: number\n },\n y: {\n number: number\n },\n zoom: {\n number: number\n },\n __type__: {\n object: object\n }\n },\n bindToWindow: {\n boolean: bool\n },\n autoFocus: {\n boolean: bool\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n multiselect: {\n boolean: bool\n },\n navigationButtons: {\n boolean: bool\n },\n selectable: {\n boolean: bool\n },\n selectConnectedEdges: {\n boolean: bool\n },\n hoverConnectedEdges: {\n boolean: bool\n },\n tooltipDelay: {\n number: number\n },\n zoomView: {\n boolean: bool\n },\n zoomSpeed: {\n number: number\n },\n __type__: {\n object: object\n }\n },\n layout: {\n randomSeed: {\n undefined: \"undefined\",\n number: number,\n string: string\n },\n improvedLayout: {\n boolean: bool\n },\n clusterThreshold: {\n number: number\n },\n hierarchical: {\n enabled: {\n boolean: bool\n },\n levelSeparation: {\n number: number\n },\n nodeSpacing: {\n number: number\n },\n treeSpacing: {\n number: number\n },\n blockShifting: {\n boolean: bool\n },\n edgeMinimization: {\n boolean: bool\n },\n parentCentralization: {\n boolean: bool\n },\n direction: {\n string: [\"UD\", \"DU\", \"LR\", \"RL\"]\n },\n sortMethod: {\n string: [\"hubsize\", \"directed\"]\n },\n shakeTowards: {\n string: [\"leaves\", \"roots\"]\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n __type__: {\n object: object\n }\n },\n manipulation: {\n enabled: {\n boolean: bool\n },\n initiallyActive: {\n boolean: bool\n },\n addNode: {\n boolean: bool,\n function: \"function\"\n },\n addEdge: {\n boolean: bool,\n function: \"function\"\n },\n editNode: {\n function: \"function\"\n },\n editEdge: {\n editWithoutDrag: {\n function: \"function\"\n },\n __type__: {\n object: object,\n boolean: bool,\n function: \"function\"\n }\n },\n deleteNode: {\n boolean: bool,\n function: \"function\"\n },\n deleteEdge: {\n boolean: bool,\n function: \"function\"\n },\n controlNodeStyle: nodeOptions,\n __type__: {\n object: object,\n boolean: bool\n }\n },\n nodes: nodeOptions,\n physics: {\n enabled: {\n boolean: bool\n },\n barnesHut: {\n theta: {\n number: number\n },\n gravitationalConstant: {\n number: number\n },\n centralGravity: {\n number: number\n },\n springLength: {\n number: number\n },\n springConstant: {\n number: number\n },\n damping: {\n number: number\n },\n avoidOverlap: {\n number: number\n },\n __type__: {\n object: object\n }\n },\n forceAtlas2Based: {\n theta: {\n number: number\n },\n gravitationalConstant: {\n number: number\n },\n centralGravity: {\n number: number\n },\n springLength: {\n number: number\n },\n springConstant: {\n number: number\n },\n damping: {\n number: number\n },\n avoidOverlap: {\n number: number\n },\n __type__: {\n object: object\n }\n },\n repulsion: {\n centralGravity: {\n number: number\n },\n springLength: {\n number: number\n },\n springConstant: {\n number: number\n },\n nodeDistance: {\n number: number\n },\n damping: {\n number: number\n },\n __type__: {\n object: object\n }\n },\n hierarchicalRepulsion: {\n centralGravity: {\n number: number\n },\n springLength: {\n number: number\n },\n springConstant: {\n number: number\n },\n nodeDistance: {\n number: number\n },\n damping: {\n number: number\n },\n avoidOverlap: {\n number: number\n },\n __type__: {\n object: object\n }\n },\n maxVelocity: {\n number: number\n },\n minVelocity: {\n number: number\n },\n solver: {\n string: [\"barnesHut\", \"repulsion\", \"hierarchicalRepulsion\", \"forceAtlas2Based\"]\n },\n stabilization: {\n enabled: {\n boolean: bool\n },\n iterations: {\n number: number\n },\n updateInterval: {\n number: number\n },\n onlyDynamicEdges: {\n boolean: bool\n },\n fit: {\n boolean: bool\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n timestep: {\n number: number\n },\n adaptiveTimestep: {\n boolean: bool\n },\n wind: {\n x: {\n number: number\n },\n y: {\n number: number\n },\n __type__: {\n object: object\n }\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n //globals :\n autoResize: {\n boolean: bool\n },\n clickToUse: {\n boolean: bool\n },\n locale: {\n string: string\n },\n locales: {\n __any__: {\n any: any\n },\n __type__: {\n object: object\n }\n },\n height: {\n string: string\n },\n width: {\n string: string\n },\n __type__: {\n object: object\n }\n};\n/* eslint-enable @typescript-eslint/naming-convention */\n/**\r\n * This provides ranges, initial values, steps and dropdown menu choices for the\r\n * configuration.\r\n *\r\n * @remarks\r\n * Checkbox: `boolean`\r\n * The value supllied will be used as the initial value.\r\n *\r\n * Text field: `string`\r\n * The passed text will be used as the initial value. Any text will be\r\n * accepted afterwards.\r\n *\r\n * Number range: `[number, number, number, number]`\r\n * The meanings are `[initial value, min, max, step]`.\r\n *\r\n * Dropdown: `[Exclude, ...(string | number | boolean)[]]`\r\n * Translations for people with poor understanding of TypeScript: the first\r\n * value always has to be a string but never `\"color\"`, the rest can be any\r\n * combination of strings, numbers and booleans.\r\n *\r\n * Color picker: `[\"color\", string]`\r\n * The first value says this will be a color picker not a dropdown menu. The\r\n * next value is the initial color.\r\n */\nvar configureOptions = {\n nodes: {\n borderWidth: [1, 0, 10, 1],\n borderWidthSelected: [2, 0, 10, 1],\n color: {\n border: [\"color\", \"#2B7CE9\"],\n background: [\"color\", \"#97C2FC\"],\n highlight: {\n border: [\"color\", \"#2B7CE9\"],\n background: [\"color\", \"#D2E5FF\"]\n },\n hover: {\n border: [\"color\", \"#2B7CE9\"],\n background: [\"color\", \"#D2E5FF\"]\n }\n },\n opacity: [0, 0, 1, 0.1],\n fixed: {\n x: false,\n y: false\n },\n font: {\n color: [\"color\", \"#343434\"],\n size: [14, 0, 100, 1],\n face: [\"arial\", \"verdana\", \"tahoma\"],\n background: [\"color\", \"none\"],\n strokeWidth: [0, 0, 50, 1],\n strokeColor: [\"color\", \"#ffffff\"]\n },\n //group: 'string',\n hidden: false,\n labelHighlightBold: true,\n //icon: {\n // face: 'string', //'FontAwesome',\n // code: 'string', //'\\uf007',\n // size: [50, 0, 200, 1], //50,\n // color: ['color','#2B7CE9'] //'#aa00ff'\n //},\n //image: 'string', // --> URL\n physics: true,\n scaling: {\n min: [10, 0, 200, 1],\n max: [30, 0, 200, 1],\n label: {\n enabled: false,\n min: [14, 0, 200, 1],\n max: [30, 0, 200, 1],\n maxVisible: [30, 0, 200, 1],\n drawThreshold: [5, 0, 20, 1]\n }\n },\n shadow: {\n enabled: false,\n color: \"rgba(0,0,0,0.5)\",\n size: [10, 0, 20, 1],\n x: [5, -30, 30, 1],\n y: [5, -30, 30, 1]\n },\n shape: [\"ellipse\", \"box\", \"circle\", \"database\", \"diamond\", \"dot\", \"square\", \"star\", \"text\", \"triangle\", \"triangleDown\", \"hexagon\"],\n shapeProperties: {\n borderDashes: false,\n borderRadius: [6, 0, 20, 1],\n interpolation: true,\n useImageSize: false\n },\n size: [25, 0, 200, 1]\n },\n edges: {\n arrows: {\n to: {\n enabled: false,\n scaleFactor: [1, 0, 3, 0.05],\n type: \"arrow\"\n },\n middle: {\n enabled: false,\n scaleFactor: [1, 0, 3, 0.05],\n type: \"arrow\"\n },\n from: {\n enabled: false,\n scaleFactor: [1, 0, 3, 0.05],\n type: \"arrow\"\n }\n },\n endPointOffset: {\n from: [0, -10, 10, 1],\n to: [0, -10, 10, 1]\n },\n arrowStrikethrough: true,\n color: {\n color: [\"color\", \"#848484\"],\n highlight: [\"color\", \"#848484\"],\n hover: [\"color\", \"#848484\"],\n inherit: [\"from\", \"to\", \"both\", true, false],\n opacity: [1, 0, 1, 0.05]\n },\n dashes: false,\n font: {\n color: [\"color\", \"#343434\"],\n size: [14, 0, 100, 1],\n face: [\"arial\", \"verdana\", \"tahoma\"],\n background: [\"color\", \"none\"],\n strokeWidth: [2, 0, 50, 1],\n strokeColor: [\"color\", \"#ffffff\"],\n align: [\"horizontal\", \"top\", \"middle\", \"bottom\"]\n },\n hidden: false,\n hoverWidth: [1.5, 0, 5, 0.1],\n labelHighlightBold: true,\n physics: true,\n scaling: {\n min: [1, 0, 100, 1],\n max: [15, 0, 100, 1],\n label: {\n enabled: true,\n min: [14, 0, 200, 1],\n max: [30, 0, 200, 1],\n maxVisible: [30, 0, 200, 1],\n drawThreshold: [5, 0, 20, 1]\n }\n },\n selectionWidth: [1.5, 0, 5, 0.1],\n selfReferenceSize: [20, 0, 200, 1],\n selfReference: {\n size: [20, 0, 200, 1],\n angle: [Math.PI / 2, -6 * Math.PI, 6 * Math.PI, Math.PI / 8],\n renderBehindTheNode: true\n },\n shadow: {\n enabled: false,\n color: \"rgba(0,0,0,0.5)\",\n size: [10, 0, 20, 1],\n x: [5, -30, 30, 1],\n y: [5, -30, 30, 1]\n },\n smooth: {\n enabled: true,\n type: [\"dynamic\", \"continuous\", \"discrete\", \"diagonalCross\", \"straightCross\", \"horizontal\", \"vertical\", \"curvedCW\", \"curvedCCW\", \"cubicBezier\"],\n forceDirection: [\"horizontal\", \"vertical\", \"none\"],\n roundness: [0.5, 0, 1, 0.05]\n },\n width: [1, 0, 30, 1]\n },\n layout: {\n //randomSeed: [0, 0, 500, 1],\n //improvedLayout: true,\n hierarchical: {\n enabled: false,\n levelSeparation: [150, 20, 500, 5],\n nodeSpacing: [100, 20, 500, 5],\n treeSpacing: [200, 20, 500, 5],\n blockShifting: true,\n edgeMinimization: true,\n parentCentralization: true,\n direction: [\"UD\", \"DU\", \"LR\", \"RL\"],\n sortMethod: [\"hubsize\", \"directed\"],\n shakeTowards: [\"leaves\", \"roots\"] // leaves, roots\n }\n },\n\n interaction: {\n dragNodes: true,\n dragView: true,\n hideEdgesOnDrag: false,\n hideEdgesOnZoom: false,\n hideNodesOnDrag: false,\n hover: false,\n keyboard: {\n enabled: false,\n speed: {\n x: [10, 0, 40, 1],\n y: [10, 0, 40, 1],\n zoom: [0.02, 0, 0.1, 0.005]\n },\n bindToWindow: true,\n autoFocus: true\n },\n multiselect: false,\n navigationButtons: false,\n selectable: true,\n selectConnectedEdges: true,\n hoverConnectedEdges: true,\n tooltipDelay: [300, 0, 1000, 25],\n zoomView: true,\n zoomSpeed: [1, 0.1, 2, 0.1]\n },\n manipulation: {\n enabled: false,\n initiallyActive: false\n },\n physics: {\n enabled: true,\n barnesHut: {\n theta: [0.5, 0.1, 1, 0.05],\n gravitationalConstant: [-2000, -30000, 0, 50],\n centralGravity: [0.3, 0, 10, 0.05],\n springLength: [95, 0, 500, 5],\n springConstant: [0.04, 0, 1.2, 0.005],\n damping: [0.09, 0, 1, 0.01],\n avoidOverlap: [0, 0, 1, 0.01]\n },\n forceAtlas2Based: {\n theta: [0.5, 0.1, 1, 0.05],\n gravitationalConstant: [-50, -500, 0, 1],\n centralGravity: [0.01, 0, 1, 0.005],\n springLength: [95, 0, 500, 5],\n springConstant: [0.08, 0, 1.2, 0.005],\n damping: [0.4, 0, 1, 0.01],\n avoidOverlap: [0, 0, 1, 0.01]\n },\n repulsion: {\n centralGravity: [0.2, 0, 10, 0.05],\n springLength: [200, 0, 500, 5],\n springConstant: [0.05, 0, 1.2, 0.005],\n nodeDistance: [100, 0, 500, 5],\n damping: [0.09, 0, 1, 0.01]\n },\n hierarchicalRepulsion: {\n centralGravity: [0.2, 0, 10, 0.05],\n springLength: [100, 0, 500, 5],\n springConstant: [0.01, 0, 1.2, 0.005],\n nodeDistance: [120, 0, 500, 5],\n damping: [0.09, 0, 1, 0.01],\n avoidOverlap: [0, 0, 1, 0.01]\n },\n maxVelocity: [50, 0, 150, 1],\n minVelocity: [0.1, 0.01, 0.5, 0.01],\n solver: [\"barnesHut\", \"forceAtlas2Based\", \"repulsion\", \"hierarchicalRepulsion\"],\n timestep: [0.5, 0.01, 1, 0.01],\n wind: {\n x: [0, -10, 10, 0.1],\n y: [0, -10, 10, 0.1]\n }\n //adaptiveTimestep: true\n }\n};\n\nvar configuratorHideOption = function configuratorHideOption(parentPath, optionName, options) {\n var _context;\n if (_includesInstanceProperty(parentPath).call(parentPath, \"physics\") && _includesInstanceProperty(_context = configureOptions.physics.solver).call(_context, optionName) && options.physics.solver !== optionName && optionName !== \"wind\") {\n return true;\n }\n return false;\n};\n\nvar options = /*#__PURE__*/Object.freeze({\n\t__proto__: null,\n\tallOptions: allOptions,\n\tconfiguratorHideOption: configuratorHideOption,\n\tconfigureOptions: configureOptions\n});\n\n/**\n * The Floyd–Warshall algorithm is an algorithm for finding shortest paths in\n * a weighted graph with positive or negative edge weights (but with no negative\n * cycles). - https://en.wikipedia.org/wiki/Floyd–Warshall_algorithm\n */\nvar FloydWarshall = /*#__PURE__*/function () {\n /**\n * @ignore\n */\n function FloydWarshall() {\n _classCallCheck(this, FloydWarshall);\n }\n\n /**\n *\n * @param {object} body\n * @param {Array.} nodesArray\n * @param {Array.} edgesArray\n * @returns {{}}\n */\n _createClass(FloydWarshall, [{\n key: \"getDistances\",\n value: function getDistances(body, nodesArray, edgesArray) {\n var D_matrix = {};\n var edges = body.edges;\n\n // prepare matrix with large numbers\n for (var i = 0; i < nodesArray.length; i++) {\n var node = nodesArray[i];\n var cell = {};\n D_matrix[node] = cell;\n for (var j = 0; j < nodesArray.length; j++) {\n cell[nodesArray[j]] = i == j ? 0 : 1e9;\n }\n }\n\n // put the weights for the edges in. This assumes unidirectionality.\n for (var _i = 0; _i < edgesArray.length; _i++) {\n var edge = edges[edgesArray[_i]];\n // edge has to be connected if it counts to the distances. If it is connected to inner clusters it will crash so we also check if it is in the D_matrix\n if (edge.connected === true && D_matrix[edge.fromId] !== undefined && D_matrix[edge.toId] !== undefined) {\n D_matrix[edge.fromId][edge.toId] = 1;\n D_matrix[edge.toId][edge.fromId] = 1;\n }\n }\n var nodeCount = nodesArray.length;\n\n // Adapted FloydWarshall based on unidirectionality to greatly reduce complexity.\n for (var k = 0; k < nodeCount; k++) {\n var knode = nodesArray[k];\n var kcolm = D_matrix[knode];\n for (var _i2 = 0; _i2 < nodeCount - 1; _i2++) {\n var inode = nodesArray[_i2];\n var icolm = D_matrix[inode];\n for (var _j = _i2 + 1; _j < nodeCount; _j++) {\n var jnode = nodesArray[_j];\n var jcolm = D_matrix[jnode];\n var val = Math.min(icolm[jnode], icolm[knode] + kcolm[jnode]);\n icolm[jnode] = val;\n jcolm[inode] = val;\n }\n }\n }\n return D_matrix;\n }\n }]);\n return FloydWarshall;\n}();\n\n/**\n * KamadaKawai positions the nodes initially based on\n *\n * \"AN ALGORITHM FOR DRAWING GENERAL UNDIRECTED GRAPHS\"\n * -- Tomihisa KAMADA and Satoru KAWAI in 1989\n *\n * Possible optimizations in the distance calculation can be implemented.\n */\nvar KamadaKawai = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {number} edgeLength\n * @param {number} edgeStrength\n */\n function KamadaKawai(body, edgeLength, edgeStrength) {\n _classCallCheck(this, KamadaKawai);\n this.body = body;\n this.springLength = edgeLength;\n this.springConstant = edgeStrength;\n this.distanceSolver = new FloydWarshall();\n }\n\n /**\n * Not sure if needed but can be used to update the spring length and spring constant\n *\n * @param {object} options\n */\n _createClass(KamadaKawai, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options) {\n if (options.springLength) {\n this.springLength = options.springLength;\n }\n if (options.springConstant) {\n this.springConstant = options.springConstant;\n }\n }\n }\n\n /**\n * Position the system\n *\n * @param {Array.} nodesArray\n * @param {Array.} edgesArray\n * @param {boolean} [ignoreClusters=false]\n */\n }, {\n key: \"solve\",\n value: function solve(nodesArray, edgesArray) {\n var ignoreClusters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n // get distance matrix\n var D_matrix = this.distanceSolver.getDistances(this.body, nodesArray, edgesArray); // distance matrix\n\n // get the L Matrix\n this._createL_matrix(D_matrix);\n\n // get the K Matrix\n this._createK_matrix(D_matrix);\n\n // initial E Matrix\n this._createE_matrix();\n\n // calculate positions\n var threshold = 0.01;\n var innerThreshold = 1;\n var iterations = 0;\n var maxIterations = Math.max(1000, Math.min(10 * this.body.nodeIndices.length, 6000));\n var maxInnerIterations = 5;\n var maxEnergy = 1e9;\n var highE_nodeId = 0,\n dE_dx = 0,\n dE_dy = 0,\n delta_m = 0,\n subIterations = 0;\n while (maxEnergy > threshold && iterations < maxIterations) {\n iterations += 1;\n var _this$_getHighestEner = this._getHighestEnergyNode(ignoreClusters);\n var _this$_getHighestEner2 = _slicedToArray(_this$_getHighestEner, 4);\n highE_nodeId = _this$_getHighestEner2[0];\n maxEnergy = _this$_getHighestEner2[1];\n dE_dx = _this$_getHighestEner2[2];\n dE_dy = _this$_getHighestEner2[3];\n delta_m = maxEnergy;\n subIterations = 0;\n while (delta_m > innerThreshold && subIterations < maxInnerIterations) {\n subIterations += 1;\n this._moveNode(highE_nodeId, dE_dx, dE_dy);\n var _this$_getEnergy = this._getEnergy(highE_nodeId);\n var _this$_getEnergy2 = _slicedToArray(_this$_getEnergy, 3);\n delta_m = _this$_getEnergy2[0];\n dE_dx = _this$_getEnergy2[1];\n dE_dy = _this$_getEnergy2[2];\n }\n }\n }\n\n /**\n * get the node with the highest energy\n *\n * @param {boolean} ignoreClusters\n * @returns {number[]}\n * @private\n */\n }, {\n key: \"_getHighestEnergyNode\",\n value: function _getHighestEnergyNode(ignoreClusters) {\n var nodesArray = this.body.nodeIndices;\n var nodes = this.body.nodes;\n var maxEnergy = 0;\n var maxEnergyNodeId = nodesArray[0];\n var dE_dx_max = 0,\n dE_dy_max = 0;\n for (var nodeIdx = 0; nodeIdx < nodesArray.length; nodeIdx++) {\n var m = nodesArray[nodeIdx];\n // by not evaluating nodes with predefined positions we should only move nodes that have no positions.\n if (nodes[m].predefinedPosition !== true || nodes[m].isCluster === true && ignoreClusters === true || nodes[m].options.fixed.x !== true || nodes[m].options.fixed.y !== true) {\n var _this$_getEnergy3 = this._getEnergy(m),\n _this$_getEnergy4 = _slicedToArray(_this$_getEnergy3, 3),\n delta_m = _this$_getEnergy4[0],\n dE_dx = _this$_getEnergy4[1],\n dE_dy = _this$_getEnergy4[2];\n if (maxEnergy < delta_m) {\n maxEnergy = delta_m;\n maxEnergyNodeId = m;\n dE_dx_max = dE_dx;\n dE_dy_max = dE_dy;\n }\n }\n }\n return [maxEnergyNodeId, maxEnergy, dE_dx_max, dE_dy_max];\n }\n\n /**\n * calculate the energy of a single node\n *\n * @param {Node.id} m\n * @returns {number[]}\n * @private\n */\n }, {\n key: \"_getEnergy\",\n value: function _getEnergy(m) {\n var _this$E_sums$m = _slicedToArray(this.E_sums[m], 2),\n dE_dx = _this$E_sums$m[0],\n dE_dy = _this$E_sums$m[1];\n var delta_m = Math.sqrt(Math.pow(dE_dx, 2) + Math.pow(dE_dy, 2));\n return [delta_m, dE_dx, dE_dy];\n }\n\n /**\n * move the node based on it's energy\n * the dx and dy are calculated from the linear system proposed by Kamada and Kawai\n *\n * @param {number} m\n * @param {number} dE_dx\n * @param {number} dE_dy\n * @private\n */\n }, {\n key: \"_moveNode\",\n value: function _moveNode(m, dE_dx, dE_dy) {\n var nodesArray = this.body.nodeIndices;\n var nodes = this.body.nodes;\n var d2E_dx2 = 0;\n var d2E_dxdy = 0;\n var d2E_dy2 = 0;\n var x_m = nodes[m].x;\n var y_m = nodes[m].y;\n var km = this.K_matrix[m];\n var lm = this.L_matrix[m];\n for (var iIdx = 0; iIdx < nodesArray.length; iIdx++) {\n var i = nodesArray[iIdx];\n if (i !== m) {\n var x_i = nodes[i].x;\n var y_i = nodes[i].y;\n var kmat = km[i];\n var lmat = lm[i];\n var denominator = 1.0 / Math.pow(Math.pow(x_m - x_i, 2) + Math.pow(y_m - y_i, 2), 1.5);\n d2E_dx2 += kmat * (1 - lmat * Math.pow(y_m - y_i, 2) * denominator);\n d2E_dxdy += kmat * (lmat * (x_m - x_i) * (y_m - y_i) * denominator);\n d2E_dy2 += kmat * (1 - lmat * Math.pow(x_m - x_i, 2) * denominator);\n }\n }\n // make the variable names easier to make the solving of the linear system easier to read\n var A = d2E_dx2,\n B = d2E_dxdy,\n C = dE_dx,\n D = d2E_dy2,\n E = dE_dy;\n\n // solve the linear system for dx and dy\n var dy = (C / A + E / B) / (B / A - D / B);\n var dx = -(B * dy + C) / A;\n\n // move the node\n nodes[m].x += dx;\n nodes[m].y += dy;\n\n // Recalculate E_matrix (should be incremental)\n this._updateE_matrix(m);\n }\n\n /**\n * Create the L matrix: edge length times shortest path\n *\n * @param {object} D_matrix\n * @private\n */\n }, {\n key: \"_createL_matrix\",\n value: function _createL_matrix(D_matrix) {\n var nodesArray = this.body.nodeIndices;\n var edgeLength = this.springLength;\n this.L_matrix = [];\n for (var i = 0; i < nodesArray.length; i++) {\n this.L_matrix[nodesArray[i]] = {};\n for (var j = 0; j < nodesArray.length; j++) {\n this.L_matrix[nodesArray[i]][nodesArray[j]] = edgeLength * D_matrix[nodesArray[i]][nodesArray[j]];\n }\n }\n }\n\n /**\n * Create the K matrix: spring constants times shortest path\n *\n * @param {object} D_matrix\n * @private\n */\n }, {\n key: \"_createK_matrix\",\n value: function _createK_matrix(D_matrix) {\n var nodesArray = this.body.nodeIndices;\n var edgeStrength = this.springConstant;\n this.K_matrix = [];\n for (var i = 0; i < nodesArray.length; i++) {\n this.K_matrix[nodesArray[i]] = {};\n for (var j = 0; j < nodesArray.length; j++) {\n this.K_matrix[nodesArray[i]][nodesArray[j]] = edgeStrength * Math.pow(D_matrix[nodesArray[i]][nodesArray[j]], -2);\n }\n }\n }\n\n /**\n * Create matrix with all energies between nodes\n *\n * @private\n */\n }, {\n key: \"_createE_matrix\",\n value: function _createE_matrix() {\n var nodesArray = this.body.nodeIndices;\n var nodes = this.body.nodes;\n this.E_matrix = {};\n this.E_sums = {};\n for (var mIdx = 0; mIdx < nodesArray.length; mIdx++) {\n this.E_matrix[nodesArray[mIdx]] = [];\n }\n for (var _mIdx = 0; _mIdx < nodesArray.length; _mIdx++) {\n var m = nodesArray[_mIdx];\n var x_m = nodes[m].x;\n var y_m = nodes[m].y;\n var dE_dx = 0;\n var dE_dy = 0;\n for (var iIdx = _mIdx; iIdx < nodesArray.length; iIdx++) {\n var i = nodesArray[iIdx];\n if (i !== m) {\n var x_i = nodes[i].x;\n var y_i = nodes[i].y;\n var denominator = 1.0 / Math.sqrt(Math.pow(x_m - x_i, 2) + Math.pow(y_m - y_i, 2));\n this.E_matrix[m][iIdx] = [this.K_matrix[m][i] * (x_m - x_i - this.L_matrix[m][i] * (x_m - x_i) * denominator), this.K_matrix[m][i] * (y_m - y_i - this.L_matrix[m][i] * (y_m - y_i) * denominator)];\n this.E_matrix[i][_mIdx] = this.E_matrix[m][iIdx];\n dE_dx += this.E_matrix[m][iIdx][0];\n dE_dy += this.E_matrix[m][iIdx][1];\n }\n }\n //Store sum\n this.E_sums[m] = [dE_dx, dE_dy];\n }\n }\n\n /**\n * Update method, just doing single column (rows are auto-updated) (update all sums)\n *\n * @param {number} m\n * @private\n */\n }, {\n key: \"_updateE_matrix\",\n value: function _updateE_matrix(m) {\n var nodesArray = this.body.nodeIndices;\n var nodes = this.body.nodes;\n var colm = this.E_matrix[m];\n var kcolm = this.K_matrix[m];\n var lcolm = this.L_matrix[m];\n var x_m = nodes[m].x;\n var y_m = nodes[m].y;\n var dE_dx = 0;\n var dE_dy = 0;\n for (var iIdx = 0; iIdx < nodesArray.length; iIdx++) {\n var i = nodesArray[iIdx];\n if (i !== m) {\n //Keep old energy value for sum modification below\n var cell = colm[iIdx];\n var oldDx = cell[0];\n var oldDy = cell[1];\n\n //Calc new energy:\n var x_i = nodes[i].x;\n var y_i = nodes[i].y;\n var denominator = 1.0 / Math.sqrt(Math.pow(x_m - x_i, 2) + Math.pow(y_m - y_i, 2));\n var dx = kcolm[i] * (x_m - x_i - lcolm[i] * (x_m - x_i) * denominator);\n var dy = kcolm[i] * (y_m - y_i - lcolm[i] * (y_m - y_i) * denominator);\n colm[iIdx] = [dx, dy];\n dE_dx += dx;\n dE_dy += dy;\n\n //add new energy to sum of each column\n var sum = this.E_sums[i];\n sum[0] += dx - oldDx;\n sum[1] += dy - oldDy;\n }\n }\n //Store sum at -1 index\n this.E_sums[m] = [dE_dx, dE_dy];\n }\n }]);\n return KamadaKawai;\n}();\n\n/**\n * Create a network visualization, displaying nodes and edges.\n *\n * @param {Element} container The DOM element in which the Network will\n * be created. Normally a div element.\n * @param {object} data An object containing parameters\n * {Array} nodes\n * {Array} edges\n * @param {object} options Options\n * @class Network\n */\nfunction Network(container, data, options) {\n var _context,\n _context2,\n _context3,\n _context4,\n _this = this;\n if (!(this instanceof Network)) {\n throw new SyntaxError(\"Constructor must be called with the new operator\");\n }\n\n // set constant values\n this.options = {};\n this.defaultOptions = {\n locale: \"en\",\n locales: locales,\n clickToUse: false\n };\n _Object$assign(this.options, this.defaultOptions);\n\n /**\n * Containers for nodes and edges.\n *\n * 'edges' and 'nodes' contain the full definitions of all the network elements.\n * 'nodeIndices' and 'edgeIndices' contain the id's of the active elements.\n *\n * The distinction is important, because a defined node need not be active, i.e.\n * visible on the canvas. This happens in particular when clusters are defined, in\n * that case there will be nodes and edges not displayed.\n * The bottom line is that all code with actions related to visibility, *must* use\n * 'nodeIndices' and 'edgeIndices', not 'nodes' and 'edges' directly.\n */\n this.body = {\n container: container,\n // See comment above for following fields\n nodes: {},\n nodeIndices: [],\n edges: {},\n edgeIndices: [],\n emitter: {\n on: _bindInstanceProperty$1(_context = this.on).call(_context, this),\n off: _bindInstanceProperty$1(_context2 = this.off).call(_context2, this),\n emit: _bindInstanceProperty$1(_context3 = this.emit).call(_context3, this),\n once: _bindInstanceProperty$1(_context4 = this.once).call(_context4, this)\n },\n eventListeners: {\n onTap: function onTap() {},\n onTouch: function onTouch() {},\n onDoubleTap: function onDoubleTap() {},\n onHold: function onHold() {},\n onDragStart: function onDragStart() {},\n onDrag: function onDrag() {},\n onDragEnd: function onDragEnd() {},\n onMouseWheel: function onMouseWheel() {},\n onPinch: function onPinch() {},\n onMouseMove: function onMouseMove() {},\n onRelease: function onRelease() {},\n onContext: function onContext() {}\n },\n data: {\n nodes: null,\n // A DataSet or DataView\n edges: null // A DataSet or DataView\n },\n\n functions: {\n createNode: function createNode() {},\n createEdge: function createEdge() {},\n getPointer: function getPointer() {}\n },\n modules: {},\n view: {\n scale: 1,\n translation: {\n x: 0,\n y: 0\n }\n },\n selectionBox: {\n show: false,\n position: {\n start: {\n x: 0,\n y: 0\n },\n end: {\n x: 0,\n y: 0\n }\n }\n }\n };\n\n // bind the event listeners\n this.bindEventListeners();\n\n // setting up all modules\n this.images = new Images(function () {\n return _this.body.emitter.emit(\"_requestRedraw\");\n }); // object with images\n this.groups = new Groups(); // object with groups\n this.canvas = new Canvas(this.body); // DOM handler\n this.selectionHandler = new SelectionHandler(this.body, this.canvas); // Selection handler\n this.interactionHandler = new InteractionHandler(this.body, this.canvas, this.selectionHandler); // Interaction handler handles all the hammer bindings (that are bound by canvas), key\n this.view = new View(this.body, this.canvas); // camera handler, does animations and zooms\n this.renderer = new CanvasRenderer(this.body, this.canvas); // renderer, starts renderloop, has events that modules can hook into\n this.physics = new PhysicsEngine(this.body); // physics engine, does all the simulations\n this.layoutEngine = new LayoutEngine(this.body); // layout engine for inital layout and hierarchical layout\n this.clustering = new ClusterEngine(this.body); // clustering api\n this.manipulation = new ManipulationSystem(this.body, this.canvas, this.selectionHandler, this.interactionHandler); // data manipulation system\n\n this.nodesHandler = new NodesHandler(this.body, this.images, this.groups, this.layoutEngine); // Handle adding, deleting and updating of nodes as well as global options\n this.edgesHandler = new EdgesHandler(this.body, this.images, this.groups); // Handle adding, deleting and updating of edges as well as global options\n\n this.body.modules[\"kamadaKawai\"] = new KamadaKawai(this.body, 150, 0.05); // Layouting algorithm.\n this.body.modules[\"clustering\"] = this.clustering;\n\n // create the DOM elements\n this.canvas._create();\n\n // apply options\n this.setOptions(options);\n\n // load data (the disable start variable will be the same as the enabled clustering)\n this.setData(data);\n}\n\n// Extend Network with an Emitter mixin\nEmitter(Network.prototype);\n\n/**\n * Set options\n *\n * @param {object} options\n */\nNetwork.prototype.setOptions = function (options) {\n var _this2 = this;\n if (options === null) {\n options = undefined; // This ensures that options handling doesn't crash in the handling\n }\n\n if (options !== undefined) {\n var errorFound = Validator.validate(options, allOptions);\n if (errorFound === true) {\n console.error(\"%cErrors have been found in the supplied options object.\", VALIDATOR_PRINT_STYLE);\n }\n\n // copy the global fields over\n var fields = [\"locale\", \"locales\", \"clickToUse\"];\n selectiveDeepExtend(fields, this.options, options);\n\n // normalize the locale or use English\n if (options.locale !== undefined) {\n options.locale = normalizeLanguageCode(options.locales || this.options.locales, options.locale);\n }\n\n // the hierarchical system can adapt the edges and the physics to it's own options because not all combinations work with the hierarichical system.\n options = this.layoutEngine.setOptions(options.layout, options);\n this.canvas.setOptions(options); // options for canvas are in globals\n\n // pass the options to the modules\n this.groups.setOptions(options.groups);\n this.nodesHandler.setOptions(options.nodes);\n this.edgesHandler.setOptions(options.edges);\n this.physics.setOptions(options.physics);\n this.manipulation.setOptions(options.manipulation, options, this.options); // manipulation uses the locales in the globals\n\n this.interactionHandler.setOptions(options.interaction);\n this.renderer.setOptions(options.interaction); // options for rendering are in interaction\n this.selectionHandler.setOptions(options.interaction); // options for selection are in interaction\n\n // reload the settings of the nodes to apply changes in groups that are not referenced by pointer.\n if (options.groups !== undefined) {\n this.body.emitter.emit(\"refreshNodes\");\n }\n // these two do not have options at the moment, here for completeness\n //this.view.setOptions(options.view);\n //this.clustering.setOptions(options.clustering);\n\n if (\"configure\" in options) {\n if (!this.configurator) {\n this.configurator = new Configurator(this, this.body.container, configureOptions, this.canvas.pixelRatio, configuratorHideOption);\n }\n this.configurator.setOptions(options.configure);\n }\n\n // if the configuration system is enabled, copy all options and put them into the config system\n if (this.configurator && this.configurator.options.enabled === true) {\n var networkOptions = {\n nodes: {},\n edges: {},\n layout: {},\n interaction: {},\n manipulation: {},\n physics: {},\n global: {}\n };\n deepExtend(networkOptions.nodes, this.nodesHandler.options);\n deepExtend(networkOptions.edges, this.edgesHandler.options);\n deepExtend(networkOptions.layout, this.layoutEngine.options);\n // load the selectionHandler and render default options in to the interaction group\n deepExtend(networkOptions.interaction, this.selectionHandler.options);\n deepExtend(networkOptions.interaction, this.renderer.options);\n deepExtend(networkOptions.interaction, this.interactionHandler.options);\n deepExtend(networkOptions.manipulation, this.manipulation.options);\n deepExtend(networkOptions.physics, this.physics.options);\n\n // load globals into the global object\n deepExtend(networkOptions.global, this.canvas.options);\n deepExtend(networkOptions.global, this.options);\n this.configurator.setModuleOptions(networkOptions);\n }\n\n // handle network global options\n if (options.clickToUse !== undefined) {\n if (options.clickToUse === true) {\n if (this.activator === undefined) {\n this.activator = new Activator(this.canvas.frame);\n this.activator.on(\"change\", function () {\n _this2.body.emitter.emit(\"activate\");\n });\n }\n } else {\n if (this.activator !== undefined) {\n this.activator.destroy();\n delete this.activator;\n }\n this.body.emitter.emit(\"activate\");\n }\n } else {\n this.body.emitter.emit(\"activate\");\n }\n this.canvas.setSize();\n // start the physics simulation. Can be safely called multiple times.\n this.body.emitter.emit(\"startSimulation\");\n }\n};\n\n/**\n * Update the visible nodes and edges list with the most recent node state.\n *\n * Visible nodes are stored in this.body.nodeIndices.\n * Visible edges are stored in this.body.edgeIndices.\n * A node or edges is visible if it is not hidden or clustered.\n *\n * @private\n */\nNetwork.prototype._updateVisibleIndices = function () {\n var nodes = this.body.nodes;\n var edges = this.body.edges;\n this.body.nodeIndices = [];\n this.body.edgeIndices = [];\n for (var nodeId in nodes) {\n if (Object.prototype.hasOwnProperty.call(nodes, nodeId)) {\n if (!this.clustering._isClusteredNode(nodeId) && nodes[nodeId].options.hidden === false) {\n this.body.nodeIndices.push(nodes[nodeId].id);\n }\n }\n }\n for (var edgeId in edges) {\n if (Object.prototype.hasOwnProperty.call(edges, edgeId)) {\n var edge = edges[edgeId];\n\n // It can happen that this is executed *after* a node edge has been removed,\n // but *before* the edge itself has been removed. Taking this into account.\n var fromNode = nodes[edge.fromId];\n var toNode = nodes[edge.toId];\n var edgeNodesPresent = fromNode !== undefined && toNode !== undefined;\n var isVisible = !this.clustering._isClusteredEdge(edgeId) && edge.options.hidden === false && edgeNodesPresent && fromNode.options.hidden === false &&\n // Also hidden if any of its connecting nodes are hidden\n toNode.options.hidden === false; // idem\n\n if (isVisible) {\n this.body.edgeIndices.push(edge.id);\n }\n }\n }\n};\n\n/**\n * Bind all events\n */\nNetwork.prototype.bindEventListeners = function () {\n var _this3 = this;\n // This event will trigger a rebuilding of the cache everything.\n // Used when nodes or edges have been added or removed.\n this.body.emitter.on(\"_dataChanged\", function () {\n _this3.edgesHandler._updateState();\n _this3.body.emitter.emit(\"_dataUpdated\");\n });\n\n // this is called when options of EXISTING nodes or edges have changed.\n this.body.emitter.on(\"_dataUpdated\", function () {\n // Order important in following block\n _this3.clustering._updateState();\n _this3._updateVisibleIndices();\n _this3._updateValueRange(_this3.body.nodes);\n _this3._updateValueRange(_this3.body.edges);\n // start simulation (can be called safely, even if already running)\n _this3.body.emitter.emit(\"startSimulation\");\n _this3.body.emitter.emit(\"_requestRedraw\");\n });\n};\n\n/**\n * Set nodes and edges, and optionally options as well.\n *\n * @param {object} data Object containing parameters:\n * {Array | DataSet | DataView} [nodes] Array with nodes\n * {Array | DataSet | DataView} [edges] Array with edges\n * {String} [dot] String containing data in DOT format\n * {String} [gephi] String containing data in gephi JSON format\n * {Options} [options] Object with options\n */\nNetwork.prototype.setData = function (data) {\n // reset the physics engine.\n this.body.emitter.emit(\"resetPhysics\");\n this.body.emitter.emit(\"_resetData\");\n\n // unselect all to ensure no selections from old data are carried over.\n this.selectionHandler.unselectAll();\n if (data && data.dot && (data.nodes || data.edges)) {\n throw new SyntaxError('Data must contain either parameter \"dot\" or ' + ' parameter pair \"nodes\" and \"edges\", but not both.');\n }\n\n // set options\n this.setOptions(data && data.options);\n // set all data\n if (data && data.dot) {\n console.warn(\"The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);\");\n // parse DOT file\n var dotData = DOTToGraph(data.dot);\n this.setData(dotData);\n return;\n } else if (data && data.gephi) {\n // parse DOT file\n console.warn(\"The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);\");\n var gephiData = parseGephi(data.gephi);\n this.setData(gephiData);\n return;\n } else {\n this.nodesHandler.setData(data && data.nodes, true);\n this.edgesHandler.setData(data && data.edges, true);\n }\n\n // emit change in data\n this.body.emitter.emit(\"_dataChanged\");\n\n // emit data loaded\n this.body.emitter.emit(\"_dataLoaded\");\n\n // find a stable position or start animating to a stable position\n this.body.emitter.emit(\"initPhysics\");\n};\n\n/**\n * Cleans up all bindings of the network, removing it fully from the memory IF the variable is set to null after calling this function.\n * var network = new vis.Network(..);\n * network.destroy();\n * network = null;\n */\nNetwork.prototype.destroy = function () {\n this.body.emitter.emit(\"destroy\");\n // clear events\n this.body.emitter.off();\n this.off();\n\n // delete modules\n delete this.groups;\n delete this.canvas;\n delete this.selectionHandler;\n delete this.interactionHandler;\n delete this.view;\n delete this.renderer;\n delete this.physics;\n delete this.layoutEngine;\n delete this.clustering;\n delete this.manipulation;\n delete this.nodesHandler;\n delete this.edgesHandler;\n delete this.configurator;\n delete this.images;\n for (var nodeId in this.body.nodes) {\n if (!Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId)) continue;\n delete this.body.nodes[nodeId];\n }\n for (var edgeId in this.body.edges) {\n if (!Object.prototype.hasOwnProperty.call(this.body.edges, edgeId)) continue;\n delete this.body.edges[edgeId];\n }\n\n // remove the container and everything inside it recursively\n recursiveDOMDelete(this.body.container);\n};\n\n/**\n * Update the values of all object in the given array according to the current\n * value range of the objects in the array.\n *\n * @param {object} obj An object containing a set of Edges or Nodes\n * The objects must have a method getValue() and\n * setValueRange(min, max).\n * @private\n */\nNetwork.prototype._updateValueRange = function (obj) {\n var id;\n\n // determine the range of the objects\n var valueMin = undefined;\n var valueMax = undefined;\n var valueTotal = 0;\n for (id in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, id)) {\n var value = obj[id].getValue();\n if (value !== undefined) {\n valueMin = valueMin === undefined ? value : Math.min(value, valueMin);\n valueMax = valueMax === undefined ? value : Math.max(value, valueMax);\n valueTotal += value;\n }\n }\n }\n\n // adjust the range of all objects\n if (valueMin !== undefined && valueMax !== undefined) {\n for (id in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, id)) {\n obj[id].setValueRange(valueMin, valueMax, valueTotal);\n }\n }\n }\n};\n\n/**\n * Returns true when the Network is active.\n *\n * @returns {boolean}\n */\nNetwork.prototype.isActive = function () {\n return !this.activator || this.activator.active;\n};\nNetwork.prototype.setSize = function () {\n return this.canvas.setSize.apply(this.canvas, arguments);\n};\nNetwork.prototype.canvasToDOM = function () {\n return this.canvas.canvasToDOM.apply(this.canvas, arguments);\n};\nNetwork.prototype.DOMtoCanvas = function () {\n return this.canvas.DOMtoCanvas.apply(this.canvas, arguments);\n};\n\n/**\n * Nodes can be in clusters. Clusters can also be in clusters. This function returns and array of\n * nodeIds showing where the node is.\n *\n * If any nodeId in the chain, especially the first passed in as a parameter, is not present in\n * the current nodes list, an empty array is returned.\n *\n * Example:\n * cluster 'A' contains cluster 'B',\n * cluster 'B' contains cluster 'C',\n * cluster 'C' contains node 'fred'.\n * `jsnetwork.clustering.findNode('fred')` will return `['A','B','C','fred']`.\n *\n * @param {string|number} nodeId\n * @returns {Array}\n */\nNetwork.prototype.findNode = function () {\n return this.clustering.findNode.apply(this.clustering, arguments);\n};\nNetwork.prototype.isCluster = function () {\n return this.clustering.isCluster.apply(this.clustering, arguments);\n};\nNetwork.prototype.openCluster = function () {\n return this.clustering.openCluster.apply(this.clustering, arguments);\n};\nNetwork.prototype.cluster = function () {\n return this.clustering.cluster.apply(this.clustering, arguments);\n};\nNetwork.prototype.getNodesInCluster = function () {\n return this.clustering.getNodesInCluster.apply(this.clustering, arguments);\n};\nNetwork.prototype.clusterByConnection = function () {\n return this.clustering.clusterByConnection.apply(this.clustering, arguments);\n};\nNetwork.prototype.clusterByHubsize = function () {\n return this.clustering.clusterByHubsize.apply(this.clustering, arguments);\n};\nNetwork.prototype.updateClusteredNode = function () {\n return this.clustering.updateClusteredNode.apply(this.clustering, arguments);\n};\nNetwork.prototype.getClusteredEdges = function () {\n return this.clustering.getClusteredEdges.apply(this.clustering, arguments);\n};\nNetwork.prototype.getBaseEdge = function () {\n return this.clustering.getBaseEdge.apply(this.clustering, arguments);\n};\nNetwork.prototype.getBaseEdges = function () {\n return this.clustering.getBaseEdges.apply(this.clustering, arguments);\n};\nNetwork.prototype.updateEdge = function () {\n return this.clustering.updateEdge.apply(this.clustering, arguments);\n};\n\n/**\n * This method will cluster all nodes with 1 edge with their respective connected node.\n * The options object is explained in full below.\n *\n * @param {object} [options]\n * @returns {undefined}\n */\nNetwork.prototype.clusterOutliers = function () {\n return this.clustering.clusterOutliers.apply(this.clustering, arguments);\n};\nNetwork.prototype.getSeed = function () {\n return this.layoutEngine.getSeed.apply(this.layoutEngine, arguments);\n};\nNetwork.prototype.enableEditMode = function () {\n return this.manipulation.enableEditMode.apply(this.manipulation, arguments);\n};\nNetwork.prototype.disableEditMode = function () {\n return this.manipulation.disableEditMode.apply(this.manipulation, arguments);\n};\nNetwork.prototype.addNodeMode = function () {\n return this.manipulation.addNodeMode.apply(this.manipulation, arguments);\n};\nNetwork.prototype.editNode = function () {\n return this.manipulation.editNode.apply(this.manipulation, arguments);\n};\nNetwork.prototype.editNodeMode = function () {\n console.warn(\"Deprecated: Please use editNode instead of editNodeMode.\");\n return this.manipulation.editNode.apply(this.manipulation, arguments);\n};\nNetwork.prototype.addEdgeMode = function () {\n return this.manipulation.addEdgeMode.apply(this.manipulation, arguments);\n};\nNetwork.prototype.editEdgeMode = function () {\n return this.manipulation.editEdgeMode.apply(this.manipulation, arguments);\n};\nNetwork.prototype.deleteSelected = function () {\n return this.manipulation.deleteSelected.apply(this.manipulation, arguments);\n};\nNetwork.prototype.getPositions = function () {\n return this.nodesHandler.getPositions.apply(this.nodesHandler, arguments);\n};\nNetwork.prototype.getPosition = function () {\n return this.nodesHandler.getPosition.apply(this.nodesHandler, arguments);\n};\nNetwork.prototype.storePositions = function () {\n return this.nodesHandler.storePositions.apply(this.nodesHandler, arguments);\n};\nNetwork.prototype.moveNode = function () {\n return this.nodesHandler.moveNode.apply(this.nodesHandler, arguments);\n};\nNetwork.prototype.getBoundingBox = function () {\n return this.nodesHandler.getBoundingBox.apply(this.nodesHandler, arguments);\n};\nNetwork.prototype.getConnectedNodes = function (objectId) {\n if (this.body.nodes[objectId] !== undefined) {\n return this.nodesHandler.getConnectedNodes.apply(this.nodesHandler, arguments);\n } else {\n return this.edgesHandler.getConnectedNodes.apply(this.edgesHandler, arguments);\n }\n};\nNetwork.prototype.getConnectedEdges = function () {\n return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler, arguments);\n};\nNetwork.prototype.startSimulation = function () {\n return this.physics.startSimulation.apply(this.physics, arguments);\n};\nNetwork.prototype.stopSimulation = function () {\n return this.physics.stopSimulation.apply(this.physics, arguments);\n};\nNetwork.prototype.stabilize = function () {\n return this.physics.stabilize.apply(this.physics, arguments);\n};\nNetwork.prototype.getSelection = function () {\n return this.selectionHandler.getSelection.apply(this.selectionHandler, arguments);\n};\nNetwork.prototype.setSelection = function () {\n return this.selectionHandler.setSelection.apply(this.selectionHandler, arguments);\n};\nNetwork.prototype.getSelectedNodes = function () {\n return this.selectionHandler.getSelectedNodeIds.apply(this.selectionHandler, arguments);\n};\nNetwork.prototype.getSelectedEdges = function () {\n return this.selectionHandler.getSelectedEdgeIds.apply(this.selectionHandler, arguments);\n};\nNetwork.prototype.getNodeAt = function () {\n var node = this.selectionHandler.getNodeAt.apply(this.selectionHandler, arguments);\n if (node !== undefined && node.id !== undefined) {\n return node.id;\n }\n return node;\n};\nNetwork.prototype.getEdgeAt = function () {\n var edge = this.selectionHandler.getEdgeAt.apply(this.selectionHandler, arguments);\n if (edge !== undefined && edge.id !== undefined) {\n return edge.id;\n }\n return edge;\n};\nNetwork.prototype.selectNodes = function () {\n return this.selectionHandler.selectNodes.apply(this.selectionHandler, arguments);\n};\nNetwork.prototype.selectEdges = function () {\n return this.selectionHandler.selectEdges.apply(this.selectionHandler, arguments);\n};\nNetwork.prototype.unselectAll = function () {\n this.selectionHandler.unselectAll.apply(this.selectionHandler, arguments);\n this.selectionHandler.commitWithoutEmitting.apply(this.selectionHandler);\n this.redraw();\n};\nNetwork.prototype.redraw = function () {\n return this.renderer.redraw.apply(this.renderer, arguments);\n};\nNetwork.prototype.getScale = function () {\n return this.view.getScale.apply(this.view, arguments);\n};\nNetwork.prototype.getViewPosition = function () {\n return this.view.getViewPosition.apply(this.view, arguments);\n};\nNetwork.prototype.fit = function () {\n return this.view.fit.apply(this.view, arguments);\n};\nNetwork.prototype.moveTo = function () {\n return this.view.moveTo.apply(this.view, arguments);\n};\nNetwork.prototype.focus = function () {\n return this.view.focus.apply(this.view, arguments);\n};\nNetwork.prototype.releaseNode = function () {\n return this.view.releaseNode.apply(this.view, arguments);\n};\nNetwork.prototype.getOptionsFromConfigurator = function () {\n var options = {};\n if (this.configurator) {\n options = this.configurator.getOptions.apply(this.configurator);\n }\n return options;\n};\n\nvar parseDOTNetwork = DOTToGraph;\n// DataSet, utils etc. can't be reexported here because that would cause stack\n// overflow in UMD builds. They all export vis namespace therefore reexporting\n// leads to loading vis to load vis to load vis…\n\nexport { DataSet, DataView, Network, Images as NetworkImages, Queue, index as data, dotparser as networkDOTParser, gephiParser as networkGephiParser, options as networkOptions, parseDOTNetwork, parseGephi as parseGephiNetwork };\n//# sourceMappingURL=vis-network.js.map\n","const defaults = {\r\n\r\n\tneo4j: {\r\n\t\tinitialQuery: `MATCH (n) WHERE exists(n.pagerank)\r\n WITH (n), RAND() AS random\r\n ORDER BY random LIMIT 3000\r\n OPTIONAL MATCH (n)-[r]-(m)\r\n //WITH n,r,m WHERE exists(n.pagerank) AND exists(m.pagerank) AND exists(m.community)\r\n RETURN n, r, m;`,\r\n\t\tneo4jUri: 'bolt://localhost:7687',\r\n\t\tneo4jUser: 'neo4j',\r\n\t\tneo4jPassword: 'neo4j',\r\n\t\tdriverConfig: {\r\n\t\t\tencrypted: 'ENCRYPTION_OFF',\r\n\t\t\ttrust: 'TRUST_ALL_CERTIFICATES',\r\n\t\t\tmaxConnectionPoolSize: 100,\r\n\t\t\tconnectionAcquisitionTimeout: 10000,\r\n\t\t\tdisableLosslessIntegers: true,\r\n\t\t}\r\n\t},\r\n\r\n\tvisJs: {\r\n\t\tnodes: {\r\n\t\t\tfont: {\r\n\t\t\t\tsize: 26,\r\n\t\t\t\tstrokeWidth: 7\r\n\t\t\t},\r\n\t\t\tscaling: {}\r\n\t\t},\r\n\t\tedges: {\r\n\t\t\tarrows: {\r\n\t\t\t\tto: { enabled: false }\r\n\t\t\t},\r\n\t\t\tlength: 200\r\n\t\t},\r\n\t\tlayout: {\r\n\t\t\timprovedLayout: false,\r\n\t\t\thierarchical: {\r\n\t\t\t\tenabled: false,\r\n\t\t\t\tsortMethod: 'hubsize'\r\n\t\t\t}\r\n\t\t},\r\n\t\tphysics: { // TODO: adaptive physics settings based on size of graph rendered\r\n\t\t\t// enabled: true,\r\n\t\t\t// timestep: 0.5,\r\n\t\t\t// stabilization: {\r\n\t\t\t// iterations: 10\r\n\t\t\t// }\r\n\r\n\t\t\tadaptiveTimestep: true,\r\n\t\t\t// barnesHut: {\r\n\t\t\t// gravitationalConstant: -8000,\r\n\t\t\t// springConstant: 0.04,\r\n\t\t\t// springLength: 95\r\n\t\t\t// },\r\n\t\t\tstabilization: {\r\n\t\t\t\titerations: 200,\r\n\t\t\t\tfit: true\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n\r\nexport { defaults };","import { Edge, Node } from './types';\r\n\r\nexport enum NeoVisEvents {\r\n\tCompletionEvent = 'completed',\r\n\tClickNodeEvent = 'clickNode',\r\n\tClickEdgeEvent = 'clickEdge',\r\n\tErrorEvent = 'error'\r\n}\r\n\r\nexport interface EventFunctionTypes {\r\n\t[NeoVisEvents.CompletionEvent]: (event: { recordCount: number }) => void;\r\n\t[NeoVisEvents.ClickNodeEvent]: (event: { nodeId: number, node: Node }) => void;\r\n\t[NeoVisEvents.ClickEdgeEvent]: (event: { edgeId: number, edge: Edge }) => void;\r\n\t[NeoVisEvents.ErrorEvent]: (event: { error: Error }) => void;\r\n}\r\n\r\nexport class EventController {\r\n\tprivate readonly _handlers: { [p: string]: Function[] };\r\n\r\n\tconstructor() {\r\n\t\tthis._handlers = {\r\n\t\t\t[NeoVisEvents.CompletionEvent]: [],\r\n\t\t\t[NeoVisEvents.ErrorEvent]: [],\r\n\t\t\t[NeoVisEvents.ClickNodeEvent]: [],\r\n\t\t\t[NeoVisEvents.ClickEdgeEvent]: [],\r\n\t\t};\r\n\t}\r\n\r\n\t/**\r\n\t *\r\n\t * @param eventType - Type of the event to be handled\r\n\t * @param handler - Handler to manage the event\r\n\t */\r\n\tregister(eventType: T, handler: EventFunctionTypes[T]): void {\r\n\t\tif (this._handlers[eventType] === undefined) {\r\n\t\t\tthrow new Error('Unknown event: ' + eventType);\r\n\t\t}\r\n\r\n\t\tthis._handlers[eventType].push(handler);\r\n\t}\r\n\r\n\t/**\r\n\t *\r\n\t * @param {string} eventType - Type of the event generated\r\n\t * @param {any} values - Values associated to the event\r\n\t */\r\n\tgenerateEvent(eventType: T, values: Parameters[0]): void {\r\n\t\tif (this._handlers[eventType] === undefined) {\r\n\t\t\tthrow new Error('Unknown event: ' + eventType);\r\n\t\t}\r\n\r\n\t\tfor (const handler of this._handlers[eventType]) {\r\n\t\t\thandler(values);\r\n\t\t}\r\n\t}\r\n}\r\n","import type * as Neo4jTypes from 'neo4j-driver';\r\nimport type * as VisNetwork from 'vis-network';\r\n\r\n\r\nexport const NEOVIS_DEFAULT_CONFIG = Symbol();\r\nexport const NEOVIS_ADVANCED_CONFIG = Symbol();\r\nexport type NumberOrInteger = number | Neo4jTypes.Integer;\r\n\r\nexport type RecursiveMapToDist = T extends object ? RecursiveMapTo : New\r\n\r\n/**\r\n * Maps a type recursively and replace each non object type with the new type\r\n * @param type to map\r\n * @param type to map to for each non object type\r\n */\r\nexport type RecursiveMapTo = { [P in keyof T]: RecursiveMapToDist }\r\n\r\nexport type RecursiveMapToFunctionDist = T extends object ? ((param: PARAM_TYPE) => T) | (RecursiveMapToFunction) : (param: PARAM_TYPE) => T\r\n/**\r\n * Maps a type recursively and adds the ability for each object property to be a function that returns the same type\r\n * but replace each non object type with a function that returns the same type\r\n * @param type to map\r\n * @param type of parameter the functions get\r\n */\r\nexport type RecursiveMapToFunction = {\r\n\t[P in keyof T]: RecursiveMapToFunctionDist\r\n};\r\n\r\n/**\r\n * Cypher quarry\r\n */\r\nexport type Cypher = string;\r\n\r\nexport interface NeoVisAdvanceConfig {\r\n\t/**\r\n\t * Static values that will the same for every node/relationship\r\n\t * */\r\n\tstatic?: VIS_TYPE;\r\n\t/**\r\n\t * Cypher that will be called for every object (will look the same as\r\n\t */\r\n\tcypher?: RecursiveMapTo;\r\n\tfunction?: RecursiveMapToFunction;\r\n}\r\n\r\nexport interface NonFlatNeoVisAdvanceConfig extends NeoVisAdvanceConfig {\r\n\tproperty?: RecursiveMapTo;\r\n}\r\n\r\nexport type NeovisDataConfig =\r\n\tRecursiveMapTo\r\n\t& { [NEOVIS_ADVANCED_CONFIG]?: NeoVisAdvanceConfig };\r\n\r\n/**\r\n * A mapper between neo4j node properties names to vis-network node config\r\n * @link https://visjs.github.io/vis-network/docs/network/nodes.html\r\n */\r\nexport interface LabelConfig extends RecursiveMapTo {\r\n\t/**\r\n\t * advance options which allow for:\r\n\t * mapping static options to each node\r\n\t * mapping cypher to run for each node to determine vis-network node option\r\n\t * mapping function that gets the neo4j node and returns vis-network node option\r\n\t */\r\n\t[NEOVIS_ADVANCED_CONFIG]?: NeoVisAdvanceConfig>;\r\n}\r\n\r\n/**\r\n * A mapper between neo4j relationship properties names to vis-network edge config\r\n * @link https://visjs.github.io/vis-network/docs/network/edges.html\r\n */\r\nexport interface RelationshipConfig extends RecursiveMapTo {\r\n\t/**\r\n\t * advance options which allow for:\r\n\t * mapping static options to each edge\r\n\t * mapping cypher to run for each relationship to determine vis-network edge option\r\n\t * mapping function that gets the neo4j relationship and returns vis-network edge option\r\n\t */\r\n\t[NEOVIS_ADVANCED_CONFIG]?: NeoVisAdvanceConfig>;\r\n}\r\n\r\nexport interface Neo4jConfig {\r\n\t/**\r\n\t * neo4j server\r\n\t * @example bolt://localhost:7687\r\n\t */\r\n\tserverUrl?: string;\r\n\tserverUser?: string;\r\n\tserverPassword?: string;\r\n\t/**\r\n\t * @link https://neo4j.com/docs/api/javascript-driver/current/function/index.html#configuration\r\n\t */\r\n\tdriverConfig?: Neo4jTypes.Config;\r\n}\r\n\r\nexport interface BaseNeovisConfig {\r\n\t/**\r\n\t * Html id of the element you want Neovis to render on\r\n\t */\r\n\tcontainerId: string;\r\n\t/**\r\n\t * database name you want to connect to\r\n\t * @default neo4j\r\n\t */\r\n\tserverDatabase?: string;\r\n\t/**\r\n\t * Neo4j Driver instance or configuration to make one\r\n\t */\r\n\tneo4j?: Neo4jTypes.Driver | Neo4jConfig;\r\n\t/**\r\n\t * Vis network config to override neovis defaults\r\n\t * @link https://visjs.github.io/vis-network/docs/network/#options\r\n\t */\r\n\tvisConfig?: VisNetwork.Options;\r\n\r\n\t/**\r\n\t * The Cypher query that will get the data\r\n\t */\r\n\tinitialCypher?: Cypher;\r\n\t/**\r\n\t * Should output debug messages to console\r\n\t * @default false\r\n\t */\r\n\tconsoleDebug?: boolean;\r\n\r\n\r\n\t/**\r\n\t * Tells Neovis is the config is flat or not\r\n\t * @default false\r\n\t */\r\n\tnonFlat?: boolean;\r\n}\r\n\r\n/**\r\n * @example\r\n * ```js\r\n * //simple\r\n * {\r\n * containerId: \"viz\",\r\n * neo4j: {\r\n * \tserverUrl: \"bolt://localhost:7687\",\r\n * \tserverUser: \"neo4j\",\r\n * \tserverPassword: \"sorts-swims-burglaries\"\r\n * },\r\n * labels: {\r\n * \tCharacter: {\r\n * \t\tlabel: \"name\",\r\n * \t\tvalue: \"pagerank\",\r\n * \t\tgroup: \"community\"\r\n * \t}\r\n * },\r\n * relationships: {\r\n * \tINTERACTS: {\r\n * \t\tvalue: \"weight\"\r\n * \t}\r\n * },\r\n * initialCypher: \"MATCH (n)-[r:INTERACTS]->(m) RETURN n,r,m\"\r\n * }\r\n * // advance\r\n * {\r\n * containerId: 'viz',\r\n * neo4j: {\r\n * \tserverUrl: 'bolt://localhost:7687',\r\n * \tserverUser: 'neo4j',\r\n * \tserverPassword: 'gland-presentation-worry'\r\n * },\r\n * visConfig: {\r\n * \tnodes: {\r\n * \t\tshape: 'square'\r\n * \t},\r\n * \tedges: {\r\n * \t\tarrows: {\r\n * \t\t\tto: {enabled: true}\r\n * \t\t}\r\n * \t},\r\n * },\r\n * labels: {\r\n * \tCharacter: {\r\n * \t\tlabel: 'pagerank',\r\n * \t\tgroup: 'community',\r\n * \t\t[Neovis.NEOVIS_ADVANCED_CONFIG]: {\r\n * \t\t\tcypher: {\r\n * \t\t\t\tvalue: \"MATCH (n) WHERE id(n) = $id RETURN n.size\"\r\n * \t\t\t},\r\n * \t\t\tfunction: {\r\n * \t\t\t\ttitle: (node) => {\r\n * \t\t\t\t\treturn viz.nodeToHtml(node, undefined);\r\n * \t\t\t\t}\r\n * \t\t\t},\r\n * \t\t}\r\n * \t}\r\n * },\r\n * relationships: {\r\n * \tINTERACTS: {\r\n * \t\tvalue: 'weight',\r\n * \t\t[Neovis.NEOVIS_ADVANCED_CONFIG]: {\r\n * \t\t\tfunction: {\r\n * \t\t\t\ttitle: (edge) => {\r\n * \t\t\t\t\treturn viz.nodeToHtml(edge, undefined);\r\n * \t\t\t\t}\r\n * \t\t\t},\r\n * \t\t}\r\n * \t}\r\n * },\r\n * initialCypher: 'MATCH (n)-[r]->(m) RETURN n,r,m'\r\n * }\r\n * ```\r\n */\r\nexport interface NeovisConfig extends BaseNeovisConfig {\r\n\tnonFlat?: false;\r\n\t/**\r\n\t * @example ```javascript\r\n\t *{\r\n\t * \tCharacter: {\r\n\t * \tlabel: 'pagerank',\r\n\t * \t\tgroup: 'community',\r\n\t * \t\t[Neovis.NEOVIS_ADVANCED_CONFIG]: {\r\n\t * \t\t\tcypher: {\r\n\t * \t\t\t\tvalue: \"MATCH (n) WHERE id(n) = $id RETURN n.size\"\r\n\t * \t\t\t},\r\n\t * \t\t\tfunction: {\r\n\t * \t\t\t\ttitle: (node) => {\r\n\t * \t\t\t\t\treturn viz.nodeToHtml(node, undefined);\r\n\t * \t\t\t\t}\r\n\t * \t\t\t},\r\n\t * \t\t}\r\n\t * \t}\r\n\t * }\r\n\t * ```\r\n\t */\r\n\tlabels?: {\r\n\t\t[label: string]: LabelConfig,\r\n\t\t[NEOVIS_DEFAULT_CONFIG]?: LabelConfig\r\n\t};\r\n\t/**\r\n\t * @example\r\n\t * ``` js\r\n\t * {\r\n\t * INTERACTS: {\r\n\t * \t value: 'weight',\r\n\t * \t [Neovis.NEOVIS_ADVANCED_CONFIG]: {\r\n\t * \t \tfunction: {\r\n\t * \t \t\ttitle: (edge) => {\r\n\t * \t \t\t\treturn viz.nodeToHtml(edge, undefined);\r\n\t * \t \t\t}\r\n\t * \t \t},\r\n\t * \t }\r\n\t * }\r\n\t * }\r\n\t * ```\r\n\t */\r\n\trelationships?: {\r\n\t\t[relationship: string]: RelationshipConfig,\r\n\t\t[NEOVIS_DEFAULT_CONFIG]?: RelationshipConfig\r\n\t};\r\n}\r\n\r\nexport type NonFlatLabelConfig = NonFlatNeoVisAdvanceConfig>;\r\nexport type NonFlatRelationsipConfig = NonFlatNeoVisAdvanceConfig>;\r\n\r\n/**\r\n * non flat version of the configuration (without Symbols)\r\n * look at the normal config for more information\r\n *\r\n * @example\r\n * ```js\r\n * {\r\n * containerId: 'viz',\r\n * nonFlat: true,\r\n * neo4j: {\r\n * \tserverUrl: 'bolt://localhost:7687',\r\n * \tserverUser: 'neo4j',\r\n * \tserverPassword: 'gland-presentation-worry'\r\n * },\r\n * visConfig: {\r\n * \tnodes: {\r\n * \t\tshape: 'square'\r\n * \t},\r\n * \tedges: {\r\n * \t\tarrows: {\r\n * \t\t\tto: {enabled: true}\r\n * \t\t}\r\n * \t},\r\n * },\r\n * labels: {\r\n * \tCharacter: {\r\n * \t\tproperty: {\r\n * \t\t label: 'pagerank',\r\n * \t\t group: 'community'\r\n * \t }\r\n * \t\tcypher: {\r\n * \t\t\tvalue: \"MATCH (n) WHERE id(n) = $id RETURN n.size\"\r\n * \t\t},\r\n * \t\tfunction: {\r\n * \t\t\ttitle: (node) => {\r\n * \t\t\t\treturn viz.nodeToHtml(node, undefined);\r\n * \t\t\t}\r\n * \t\t}\r\n * \t}\r\n * },\r\n * relationships: {\r\n * \tINTERACTS: {\r\n * property: {\r\n * \t\t value: 'weight'\r\n * \t }\r\n * \t\tfunction: {\r\n * \t\t\ttitle: (edge) => {\r\n * \t\t\t\treturn viz.nodeToHtml(edge, undefined);\r\n * \t\t\t}\r\n * \t\t}\r\n * \t}\r\n * },\r\n * initialCypher: 'MATCH (n)-[r]->(m) RETURN n,r,m'\r\n * }\r\n * ```\r\n */\r\nexport interface NonFlatNeovisConfig extends BaseNeovisConfig {\r\n\tnonFlat: true;\r\n\tdefaultLabelConfig?: NonFlatLabelConfig;\r\n\tdefaultRelationshipsConfig?: NonFlatRelationsipConfig;\r\n\tlabels?: Record;\r\n\trelationships?: Record;\r\n}\r\n\r\n/**\r\n * A network node with raw neo4j node\r\n */\r\nexport interface Node extends VisNetwork.Node {\r\n\t/**\r\n\t * @link https://neo4j.com/docs/api/javascript-driver/current/class/src/graph-types.js~Node.html\r\n\t */\r\n\tid: number;\r\n\traw: Neo4jTypes.Node;\r\n}\r\n\r\n/**\r\n * A network edge with raw neo4j relationship\r\n */\r\nexport interface Edge extends VisNetwork.Edge {\r\n\t/**\r\n\t * https://neo4j.com/docs/api/javascript-driver/current/class/src/graph-types.js~Relationship.html\r\n\t */\r\n\tid: number;\r\n\traw: Neo4jTypes.Relationship;\r\n}","'use strict';\r\n\r\nimport type * as Neo4jTypes from 'neo4j-driver';\r\nimport Neo4j from 'neo4j-driver';\r\nimport type * as Neo4jCore from 'neo4j-driver-core';\r\nimport { isInt, isNode, isPath, isRelationship } from 'neo4j-driver-core';\r\nimport * as vis from 'vis-network/standalone';\r\nimport { defaults } from './defaults';\r\nimport { EventController, EventFunctionTypes, NeoVisEvents } from './events';\r\nimport deepmerge from 'deepmerge';\r\nimport type * as VisNetwork from 'vis-network';\r\nimport {\r\n\tCypher,\r\n\tEdge,\r\n\tLabelConfig,\r\n\tNeo4jConfig,\r\n\tNEOVIS_ADVANCED_CONFIG,\r\n\tNEOVIS_DEFAULT_CONFIG,\r\n\tNeovisConfig,\r\n\tNeovisDataConfig,\r\n\tNode,\r\n\tNonFlatLabelConfig,\r\n\tNonFlatNeoVisAdvanceConfig,\r\n\tNonFlatNeovisConfig,\r\n\tNonFlatRelationsipConfig,\r\n\tNumberOrInteger,\r\n\tRecursiveMapTo,\r\n\tRecursiveMapToFunction,\r\n\tRelationshipConfig\r\n} from './types';\r\n\r\nexport * from './events';\r\nexport * from './types';\r\n\r\nfunction isNeo4jDriver(neo4jConfig: Neo4jTypes.Driver | Neo4jConfig): neo4jConfig is Neo4jTypes.Driver {\r\n\treturn neo4jConfig instanceof Neo4j.driver;\r\n}\r\nfunction _propertyToHtml string }>(key: string, value: T | T[]): string {\r\n\tif (Array.isArray(value) && value.length > 1) {\r\n\t\tlet out = `${key}:
    `;\r\n\t\tfor (const val of value) {\r\n\t\t\tout += `
  • ${val}
  • `;\r\n\t\t}\r\n\t\treturn out + '
';\r\n\t}\r\n\treturn `${key}: ${value}
`;\r\n}\r\n\r\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\r\nfunction _retrieveProperty(prop: string, obj: any): T {\r\n\tif (typeof obj?.properties === 'object') {\r\n\t\treturn isInt(obj.properties[prop]) ? obj.properties[prop].toInt() : obj.properties[prop];\r\n\t}\r\n\tthrow new Error('Neo4j object is not properly constructed');\r\n}\r\n\r\n/**\r\n * create html display of the node\r\n * @param neo4jObject node to create html from\r\n * @param titleProperties which properties to map\r\n */\r\nexport function objectToTitleHtml(neo4jObject: Neo4jTypes.Node | Neo4jTypes.Relationship, titleProperties: string[]): HTMLDivElement {\r\n\tlet titleString = '';\r\n\tif (!titleProperties) {\r\n\t\ttitleProperties = Object.keys(neo4jObject.properties);\r\n\t}\r\n\tfor (const key of titleProperties) {\r\n\t\tconst propVal = _retrieveProperty(key, neo4jObject);\r\n\t\tif (propVal) {\r\n\t\t\ttitleString += _propertyToHtml(key, propVal);\r\n\t\t}\r\n\t}\r\n\tconst title = document.createElement('div');\r\n\ttitle.innerHTML = titleString;\r\n\treturn title;\r\n}\r\n\r\n/**\r\n * create string display of the node\r\n * @param neo4jObject node to create title string from\r\n * @param titleProperties which properties to map\r\n */\r\nexport function objectToTitleString(neo4jObject: Neo4jTypes.Node | Neo4jTypes.Relationship, titleProperties: string[]): string {\r\n\tlet title = '';\r\n\tif (!titleProperties) {\r\n\t\ttitleProperties = Object.keys(neo4jObject.properties);\r\n\t}\r\n\tfor (const key of titleProperties) {\r\n\t\tconst propVal = _retrieveProperty(key, neo4jObject);\r\n\t\tif (propVal) {\r\n\t\t\ttitle += `${key}: ${propVal}\\n`;\r\n\t\t}\r\n\t}\r\n\treturn title;\r\n}\r\n\r\nexport class NeoVis {\r\n\tstatic NEOVIS_DEFAULT_CONFIG = NEOVIS_DEFAULT_CONFIG;\r\n\tstatic NEOVIS_ADVANCED_CONFIG = NEOVIS_ADVANCED_CONFIG;\r\n\tstatic objectToTitleHtml = objectToTitleHtml;\r\n\tstatic objectToTitleString = objectToTitleString;\r\n\t#data = {\r\n\t\tnodes: new vis.DataSet(),\r\n\t\tedges: new vis.DataSet()\r\n\t};\r\n\t#network: VisNetwork.Network = null;\r\n\t#events = new EventController();\r\n\t#config: NeovisConfig | NonFlatNeovisConfig;\r\n\t#driver: Neo4jTypes.Driver;\r\n\t#database: string;\r\n\t#query: Cypher;\r\n\t#container: HTMLElement;\r\n\r\n\t/**\r\n\t * All view nodes as DataSet\r\n\t * @link https://visjs.github.io/vis-data/data/dataset.html\r\n\t */\r\n\tget nodes(): VisNetwork.DataSet {\r\n\t\treturn this.#data.nodes;\r\n\t}\r\n\r\n\t/**\r\n\t * All view edges as DataSet\r\n\t * @link https://visjs.github.io/vis-data/data/dataset.html\r\n\t */\r\n\tget edges(): VisNetwork.DataSet {\r\n\t\treturn this.#data.edges;\r\n\t}\r\n\r\n\t/**\r\n\t * @ignore for test purposes only\r\n\t */\r\n\tget _config(): NeovisConfig | NonFlatNeovisConfig {\r\n\t\treturn this.#config;\r\n\t}\r\n\r\n\t/**\r\n\t * The vis network object\r\n\t * @link https://visjs.github.io/vis-network/docs/network/#methods\r\n\t */\r\n\tget network(): VisNetwork.Network | undefined {\r\n\t\treturn this.#network;\r\n\t}\r\n\r\n\t/**\r\n\t *\r\n\t * @constructor\r\n\t * @param {object} config - configures the visualization and Neo4j server connection\r\n\t */\r\n\tconstructor(config: NeovisConfig | NonFlatNeovisConfig) {\r\n\t\tthis.#init(config);\r\n\r\n\t\tthis.#consoleLog(config);\r\n\t\tthis.#consoleLog(defaults);\r\n\t}\r\n\r\n\t#consoleLog(message: object | string, level = 'log'): void {\r\n\t\tif (level !== 'log' || this.#config.consoleDebug) {\r\n\t\t\t// eslint-disable-next-line no-console\r\n\t\t\tconsole[level](message);\r\n\t\t}\r\n\t}\r\n\r\n\t#init(config: NeovisConfig | NonFlatNeovisConfig): void {\r\n\t\tlet defaultLabelConfig: NonFlatLabelConfig | LabelConfig;\r\n\t\tlet defaultRelationshipConfig: NonFlatRelationsipConfig | RelationshipConfig;\r\n\t\tif (config.nonFlat && config.defaultLabelConfig) {\r\n\t\t\tdefaultLabelConfig = config.defaultLabelConfig;\r\n\t\t\tif (defaultLabelConfig[NEOVIS_ADVANCED_CONFIG]) {\r\n\t\t\t\tthrow new Error('non flat config can\\'t use NEOVIS_ADVANCED_CONFIG, read the doc to see how the config should look');\r\n\t\t\t}\r\n\t\t\tdefaultRelationshipConfig = config.defaultRelationshipsConfig;\r\n\t\t\tif (defaultRelationshipConfig[NEOVIS_ADVANCED_CONFIG]) {\r\n\t\t\t\tthrow new Error('non flat config can\\'t use NEOVIS_ADVANCED_CONFIG, read the doc to see how the config should look');\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tdefaultLabelConfig = (config as NeovisConfig).labels?.[NEOVIS_DEFAULT_CONFIG];\r\n\t\t\tdefaultRelationshipConfig = (config as NeovisConfig).relationships?.[NEOVIS_DEFAULT_CONFIG];\r\n\t\t}\r\n\t\tif (defaultLabelConfig) {\r\n\t\t\tfor (const key of Object.keys(config.labels)) {\r\n\t\t\t\t// getting out of my for not changing the original config object\r\n\t\t\t\tif (config.nonFlat) {\r\n\t\t\t\t\t(config as NonFlatNeovisConfig) = {\r\n\t\t\t\t\t\t...config as NonFlatNeovisConfig,\r\n\t\t\t\t\t\tlabels: {\r\n\t\t\t\t\t\t\t...config.labels as Record,\r\n\t\t\t\t\t\t\t[key]: deepmerge(defaultLabelConfig as NonFlatLabelConfig, config.labels?.[key] as NonFlatLabelConfig)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t};\r\n\t\t\t\t} else {\r\n\t\t\t\t\t(config as NeovisConfig) = {\r\n\t\t\t\t\t\t...config as NeovisConfig,\r\n\t\t\t\t\t\tlabels: {\r\n\t\t\t\t\t\t\t...config.labels as Record,\r\n\t\t\t\t\t\t\t[key]: {\r\n\t\t\t\t\t\t\t\t...deepmerge(defaultLabelConfig as LabelConfig, config.labels?.[key] as LabelConfig),\r\n\t\t\t\t\t\t\t\t[NEOVIS_ADVANCED_CONFIG]: deepmerge((defaultLabelConfig as LabelConfig)[NEOVIS_ADVANCED_CONFIG] ?? {}, (config.labels?.[key] as LabelConfig)[NEOVIS_ADVANCED_CONFIG] ?? {}),\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (defaultRelationshipConfig) {\r\n\t\t\tfor (const key of Object.keys(config.relationships)) {\r\n\t\t\t\t// getting out of my for not changing the original config object\r\n\t\t\t\tif (config.nonFlat) {\r\n\t\t\t\t\t(config as NonFlatNeovisConfig) = {\r\n\t\t\t\t\t\t...config as NonFlatNeovisConfig,\r\n\t\t\t\t\t\trelationships: {\r\n\t\t\t\t\t\t\t...config.relationships as Record,\r\n\t\t\t\t\t\t\t[key]: deepmerge(defaultRelationshipConfig as NonFlatRelationsipConfig, config.relationships?.[key] as NonFlatRelationsipConfig)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t};\r\n\t\t\t\t} else {\r\n\t\t\t\t\t(config as NeovisConfig) = {\r\n\t\t\t\t\t\t...config as NeovisConfig,\r\n\t\t\t\t\t\trelationships: {\r\n\t\t\t\t\t\t\t...config.relationships as Record,\r\n\t\t\t\t\t\t\t[key]: {\r\n\t\t\t\t\t\t\t\t...deepmerge(defaultRelationshipConfig as RelationshipConfig, config.relationships?.[key] as RelationshipConfig),\r\n\t\t\t\t\t\t\t\t[NEOVIS_ADVANCED_CONFIG]: deepmerge((defaultRelationshipConfig as RelationshipConfig)[NEOVIS_ADVANCED_CONFIG] ?? {}, (config.relationships?.[key] as RelationshipConfig)[NEOVIS_ADVANCED_CONFIG] ?? {}),\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.#config = config;\r\n\t\tthis.#driver = isNeo4jDriver(config.neo4j) ? config.neo4j : Neo4j.driver(\r\n\t\t\tconfig.neo4j?.serverUrl ?? defaults.neo4j.neo4jUri,\r\n\t\t\tNeo4j.auth.basic(\r\n\t\t\t\tconfig.neo4j?.serverUser ?? defaults.neo4j.neo4jUser,\r\n\t\t\t\tconfig.neo4j?.serverPassword ?? defaults.neo4j.neo4jPassword\r\n\t\t\t),\r\n\t\t\tdeepmerge(defaults.neo4j.driverConfig, config.neo4j?.driverConfig ?? {})\r\n\t\t);\r\n\t\tthis.#database = config.serverDatabase;\r\n\t\tthis.#query = config.initialCypher ?? defaults.neo4j.initialQuery;\r\n\t\tthis.#container = document.getElementById(config.containerId);\r\n\t}\r\n\r\n\tasync #runCypher(cypher: Cypher, id: number): Promise {\r\n\t\tconst session = this.#driver.session(this.#database && { database: this.#database });\r\n\t\tconst results: T[] = [];\r\n\r\n\t\ttry {\r\n\t\t\tconst result = await session.readTransaction(tx => tx.run(cypher, { id }));\r\n\t\t\tfor (const record of result.records) {\r\n\t\t\t\trecord.forEach((v) => {\r\n\t\t\t\t\tresults.push(v);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tawait session.close();\r\n\t\t}\r\n\r\n\t\tif (results.length === 0) {\r\n\t\t\treturn undefined;\r\n\t\t} else if (results.length === 1) {\r\n\t\t\treturn results.pop();\r\n\t\t}\r\n\r\n\t\treturn results;\r\n\t}\r\n\r\n\t#runFunction(func: (neoObj: NEO_TYPE) => VIS_TYPE | Promise, node: NEO_TYPE): Promise | VIS_TYPE {\r\n\t\tif (typeof func === 'function') {\r\n\t\t\treturn func(node);\r\n\t\t}\r\n\t\tthrow new Error('Function type property field must be a function');\r\n\t}\r\n\r\n\t#buildStaticObject(staticConfig: VIS_TYPE, object: VIS_TYPE): void {\r\n\t\tif (staticConfig && typeof staticConfig === 'object') {\r\n\t\t\tfor (const prop of Object.keys(staticConfig) as (keyof VIS_TYPE)[]) {\r\n\t\t\t\tconst value = staticConfig[prop];\r\n\t\t\t\tif (value && typeof value === 'object') {\r\n\t\t\t\t\tif (!object[prop]) {\r\n\t\t\t\t\t\tobject[prop as string] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.#buildStaticObject(value, object[prop] as VIS_TYPE[keyof VIS_TYPE] & object);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tobject[prop] = value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t#buildPropertyNameObject(propertyNameConfig: RecursiveMapTo, object: VIS_TYPE, neo4jObj: NEO_TYPE): void {\r\n\t\tif (propertyNameConfig && typeof propertyNameConfig === 'object') {\r\n\t\t\tfor (const prop of Object.keys(propertyNameConfig) as (keyof VIS_TYPE)[]) {\r\n\t\t\t\tconst property = propertyNameConfig[prop];\r\n\t\t\t\tif (typeof property === 'object') {\r\n\t\t\t\t\tif (!object[prop]) {\r\n\t\t\t\t\t\tobject[prop as string] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.#buildPropertyNameObject(property as RecursiveMapTo, object[prop], neo4jObj);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst value = propertyNameConfig[prop];\r\n\t\t\t\t\tobject[prop] = _retrieveProperty(value as string, neo4jObj);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t*#buildCypherObject(cypherConfig: RecursiveMapTo, object: VIS_TYPE, id: number): Generator> {\r\n\t\tif (cypherConfig && typeof cypherConfig === 'object') {\r\n\t\t\tfor (const prop of Object.keys(cypherConfig) as (keyof VIS_TYPE)[]) {\r\n\t\t\t\tconst value = cypherConfig[prop];\r\n\t\t\t\tif (value && typeof value === 'object') {\r\n\t\t\t\t\tif (!object[prop]) {\r\n\t\t\t\t\t\tobject[prop as string] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tyield *this.#buildCypherObject(value as RecursiveMapTo, object[prop], id);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst promise = this.#runCypher(value as string, id) as Promise;\r\n\t\t\t\t\tyield Promise.resolve(promise).then(value => { object[prop] = value; } ) as Promise;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t*#buildFunctionObject(functionConfig: RecursiveMapToFunction, object: VIS_TYPE, neo4jObj: NEO_TYPE): Generator> {\r\n\t\tif (functionConfig && typeof functionConfig === 'object') {\r\n\t\t\tfor (const prop of Object.keys(functionConfig) as (keyof VIS_TYPE)[]) {\r\n\t\t\t\tconst func = functionConfig[prop];\r\n\t\t\t\tif (func && typeof func === 'object') {\r\n\t\t\t\t\tif (!object[prop]) {\r\n\t\t\t\t\t\tobject[prop as string] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tyield *this.#buildFunctionObject(func as RecursiveMapToFunction, object[prop], neo4jObj);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst promise = this.#runFunction(func as (neo: NEO_TYPE) => VIS_TYPE[keyof VIS_TYPE], neo4jObj);\r\n\t\t\t\t\tyield Promise.resolve(promise).then(value => { object[prop] = value; } ) as Promise;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tasync #buildVisObject(\r\n\t\tconfig: NeovisDataConfig | NonFlatNeoVisAdvanceConfig, baseObject: VIS_TYPE, neo4jObject: NEO_TYPE, id: number\r\n\t): Promise {\r\n\t\tif (!config) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlet staticConfig: VIS_TYPE;\r\n\t\tlet cypherConfig: RecursiveMapTo;\r\n\t\tlet propertyConfig: RecursiveMapTo;\r\n\t\tlet functionConfig: RecursiveMapToFunction;\r\n\r\n\t\tif (this.#config.nonFlat) {\r\n\t\t\tif (config[NEOVIS_ADVANCED_CONFIG] !== undefined) {\r\n\t\t\t\tthrow new Error('Advanced config and non flat config should not be together');\r\n\t\t\t}\r\n\t\t\tconfig = config as NonFlatNeoVisAdvanceConfig;\r\n\t\t\tstaticConfig = config.static;\r\n\t\t\tcypherConfig = config.cypher;\r\n\t\t\tpropertyConfig = config.property;\r\n\t\t\tfunctionConfig = config.function;\r\n\t\t} else {\r\n\t\t\tconfig = config as NeovisDataConfig;\r\n\t\t\tconst advancedConfig = config[NEOVIS_ADVANCED_CONFIG];\r\n\t\t\tpropertyConfig = config;\r\n\t\t\tif (advancedConfig !== undefined && typeof advancedConfig != 'object') {\r\n\t\t\t\tthrow new Error('Advanced config should be an object. See documentation for details.');\r\n\t\t\t}\r\n\t\t\tcypherConfig = advancedConfig?.cypher;\r\n\t\t\tstaticConfig = advancedConfig?.static;\r\n\t\t\tfunctionConfig = advancedConfig?.function;\r\n\t\t}\r\n\t\tthis.#buildPropertyNameObject(propertyConfig, baseObject, neo4jObject);\r\n\t\tthis.#buildStaticObject(staticConfig, baseObject);\r\n\t\tawait Promise.all(this.#buildCypherObject(cypherConfig, baseObject, id));\r\n\t\tawait Promise.all(this.#buildFunctionObject(functionConfig, baseObject, neo4jObject));\r\n\t}\r\n\r\n\t/**\r\n\t * Build node object for vis from a neo4j Node\r\n\t * @param neo4jNode\r\n\t * @returns {{}}\r\n\t */\r\n\tasync #buildNodeVisObject(neo4jNode: Neo4jTypes.Node): Promise {\r\n\t\tconst node: Partial = {};\r\n\t\tconst label: string = neo4jNode.labels[0];\r\n\r\n\t\tconst labelConfig: LabelConfig | NonFlatLabelConfig = this.#config?.labels?.[label] ?? (this.#config as NonFlatNeovisConfig)?.defaultLabelConfig ??\r\n\t\t\t(this.#config as NeovisConfig)?.labels?.[NEOVIS_DEFAULT_CONFIG];\r\n\r\n\t\tnode.id = isInt(neo4jNode.identity) ? (neo4jNode.identity as Neo4jTypes.Integer).toInt() : neo4jNode.identity as number;\r\n\t\tnode.raw = neo4jNode;\r\n\r\n\t\tawait this.#buildVisObject(labelConfig, node as Node, neo4jNode, node.id);\r\n\r\n\t\treturn node as Node;\r\n\t}\r\n\r\n\r\n\t/**\r\n\t * Build edge object for vis from a neo4j Relationship\r\n\t * @param r\r\n\t * @returns {{}}\r\n\t */\r\n\tasync #buildEdgeVisObject(r: Neo4jTypes.Relationship): Promise {\r\n\t\tconst relationshipConfig = this.#config?.relationships?.[r.type] ?? (this.#config as NonFlatNeovisConfig).defaultRelationshipsConfig ??\r\n\t\t\t(this.#config as NeovisConfig)?.relationships?.[NEOVIS_DEFAULT_CONFIG];\r\n\r\n\t\tconst edge: Partial = {};\r\n\t\tedge.id = isInt(r.identity) ? (r.identity as Neo4jTypes.Integer).toInt() : r.identity as number;\r\n\t\tedge.from = isInt(r.start) ? (r.start as Neo4jTypes.Integer).toInt() : r.start as number;\r\n\t\tedge.to = isInt(r.end) ? (r.end as Neo4jTypes.Integer).toInt() : r.end as number;\r\n\t\tedge.raw = r;\r\n\r\n\t\tawait this.#buildVisObject(relationshipConfig, edge as Edge, r, edge.id);\r\n\r\n\t\treturn edge as Edge;\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the network\r\n\t */\r\n\trender(query?: Cypher): void {\r\n\r\n\t\t// connect to Neo4j instance\r\n\t\t// run query\r\n\t\tlet recordCount = 0;\r\n\t\tconst _query = query || this.#query;\r\n\t\tconst session = this.#driver.session(this.#database ? { database: this.#database } : undefined);\r\n\t\tconst dataBuildPromises = [];\r\n\t\tsession\r\n\t\t\t.run(_query, { limit: 30 })\r\n\t\t\t.subscribe({\r\n\t\t\t\tonNext: (record) => {\r\n\t\t\t\t\trecordCount++;\r\n\r\n\t\t\t\t\tthis.#consoleLog('CLASS NAME');\r\n\t\t\t\t\tthis.#consoleLog(record?.constructor.name);\r\n\t\t\t\t\tthis.#consoleLog(record);\r\n\r\n\t\t\t\t\tconst dataPromises = record.map(async (v: object) => {\r\n\t\t\t\t\t\tthis.#consoleLog('Constructor:');\r\n\t\t\t\t\t\tthis.#consoleLog(v?.constructor.name);\r\n\t\t\t\t\t\tif (isNode(v)) {\r\n\t\t\t\t\t\t\tconst node = await this.#buildNodeVisObject(v);\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tthis.#data.nodes.update(node);\r\n\t\t\t\t\t\t\t} catch (e) {\r\n\t\t\t\t\t\t\t\tthis.#consoleLog(e, 'error');\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else if (isRelationship(v)) {\r\n\t\t\t\t\t\t\tconst edge = await this.#buildEdgeVisObject(v);\r\n\t\t\t\t\t\t\tthis.#data.edges.update(edge);\r\n\r\n\t\t\t\t\t\t} else if (isPath(v)) {\r\n\t\t\t\t\t\t\tthis.#consoleLog('PATH');\r\n\t\t\t\t\t\t\tthis.#consoleLog(v);\r\n\t\t\t\t\t\t\tconst startNode = await this.#buildNodeVisObject(v.start);\r\n\t\t\t\t\t\t\tconst endNode = await this.#buildNodeVisObject(v.end);\r\n\r\n\t\t\t\t\t\t\tthis.#data.nodes.update(startNode);\r\n\t\t\t\t\t\t\tthis.#data.nodes.update(endNode);\r\n\r\n\t\t\t\t\t\t\tfor (const obj of v.segments) {\r\n\t\t\t\t\t\t\t\tthis.#data.nodes.update(await this.#buildNodeVisObject(obj.start));\r\n\t\t\t\t\t\t\t\tthis.#data.nodes.update(await this.#buildNodeVisObject(obj.end));\r\n\t\t\t\t\t\t\t\tthis.#data.edges.update(await this.#buildEdgeVisObject(obj.relationship));\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else if (Array.isArray(v)) {\r\n\t\t\t\t\t\t\tfor (const obj of v) {\r\n\t\t\t\t\t\t\t\tthis.#consoleLog('Array element constructor:');\r\n\t\t\t\t\t\t\t\tthis.#consoleLog(obj?.constructor.name);\r\n\t\t\t\t\t\t\t\tif (isNode(obj)) {\r\n\t\t\t\t\t\t\t\t\tconst node = await this.#buildNodeVisObject(obj);\r\n\t\t\t\t\t\t\t\t\tthis.#data.nodes.update(node);\r\n\r\n\t\t\t\t\t\t\t\t} else if (isRelationship(obj)) {\r\n\t\t\t\t\t\t\t\t\tconst edge = await this.#buildEdgeVisObject(obj);\r\n\r\n\t\t\t\t\t\t\t\t\tthis.#data.edges.update(edge);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\tdataBuildPromises.push(Promise.all(dataPromises));\r\n\t\t\t\t},\r\n\t\t\t\tonCompleted: async () => {\r\n\t\t\t\t\tawait Promise.all(dataBuildPromises);\r\n\t\t\t\t\tawait session.close();\r\n\r\n\t\t\t\t\tif (!this.#network) {\r\n\t\t\t\t\t\tconst options = deepmerge(defaults.visJs, this.#config.visConfig ?? {});\r\n\r\n\t\t\t\t\t\tconst container = this.#container;\r\n\r\n\t\t\t\t\t\tthis.#consoleLog(this.#data.nodes);\r\n\t\t\t\t\t\tthis.#consoleLog(this.#data.edges);\r\n\r\n\t\t\t\t\t\tthis.#network = new vis.Network(container, this.#data, options);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.#consoleLog('completed');\r\n\t\t\t\t\tsetTimeout(\r\n\t\t\t\t\t\t() => {\r\n\t\t\t\t\t\t\tthis.#network.stopSimulation();\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t10000\r\n\t\t\t\t\t);\r\n\t\t\t\t\tthis.#events.generateEvent(NeoVisEvents.CompletionEvent, { recordCount });\r\n\r\n\t\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-this-alias\r\n\t\t\t\t\tconst neoVis = this;\r\n\t\t\t\t\tthis.#network.on('click', function (this: VisNetwork.Network, params: { nodes: Node[], edges: Edge[], pointer: { DOM: VisNetwork.Position } }) {\r\n\t\t\t\t\t\tif (params.nodes.length > 0) {\r\n\t\t\t\t\t\t\tconst nodeId = this.getNodeAt(params.pointer.DOM) as number;\r\n\t\t\t\t\t\t\tneoVis.#events.generateEvent(NeoVisEvents.ClickNodeEvent, {\r\n\t\t\t\t\t\t\t\tnodeId,\r\n\t\t\t\t\t\t\t\tnode: neoVis.#data.nodes.get(nodeId)\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t} else if (params.edges.length > 0) {\r\n\t\t\t\t\t\t\tconst edgeId = this.getEdgeAt(params.pointer.DOM) as number;\r\n\t\t\t\t\t\t\tneoVis.#events.generateEvent(NeoVisEvents.ClickEdgeEvent, {\r\n\t\t\t\t\t\t\t\tedgeId,\r\n\t\t\t\t\t\t\t\tedge: neoVis.#data.edges.get(edgeId)\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t},\r\n\t\t\t\tonError: (error) => {\r\n\t\t\t\t\tthis.#consoleLog(error, 'error');\r\n\t\t\t\t\tthis.#events.generateEvent(NeoVisEvents.ErrorEvent, { error });\r\n\t\t\t\t}\r\n\t\t\t} as Neo4jCore.ResultObserver);\r\n\t}\r\n\r\n\t/**\r\n\t * Clear the data for the visualization\r\n\t */\r\n\tclearNetwork(): void {\r\n\t\tthis.#data.nodes.clear();\r\n\t\tthis.#data.edges.clear();\r\n\t}\r\n\r\n\r\n\t/**\r\n\t *\r\n\t * @param {string} eventType Event type to be handled\r\n\t * @param {Function} handler Handler to manage the event\r\n\t */\r\n\tregisterOnEvent(eventType: T, handler: EventFunctionTypes[T]): void {\r\n\t\tthis.#events.register(eventType, handler);\r\n\t}\r\n\r\n\r\n\t/**\r\n\t * Reset the config object and reload data\r\n\t * @param config\r\n\t */\r\n\treinit(config: NeovisConfig | NonFlatNeovisConfig): void {\r\n\t\tthis.#init(config);\r\n\t\tthis.render();\r\n\t}\r\n\r\n\t/**\r\n\t * Clear the network and fetch live data form the server and reload the visualization\r\n\t */\r\n\treload(): void {\r\n\t\tthis.clearNetwork();\r\n\t\tthis.render();\r\n\t}\r\n\r\n\t/**\r\n\t * Stabilize the visualization\r\n\t */\r\n\tstabilize(): void {\r\n\t\tthis.#network.stopSimulation();\r\n\t\tthis.#consoleLog('Calling stopSimulation');\r\n\t}\r\n\r\n\t/**\r\n\t * Execute an arbitrary Cypher query and re-render the visualization\r\n\t * @param query\r\n\t */\r\n\trenderWithCypher(query: Cypher): void {\r\n\t\t// this._config.initialCypher = query;\r\n\t\tthis.clearNetwork();\r\n\t\tthis.#query = query;\r\n\t\tthis.render();\r\n\t}\r\n\r\n\t/**\r\n\t * Execute an arbitrary Cypher query and update the current visualization, retaning current nodes\r\n\t * This function will not change the original query given by renderWithCypher or the inital cypher.\r\n\t * @param query\r\n\t */\r\n\tupdateWithCypher(query: Cypher): void {\r\n\t\tthis.render(query);\r\n\t}\r\n}\r\n\r\n/**\r\n * @deprecated for migration only\r\n */\r\nexport interface OldLabelConfig {\r\n\tcaption?: string | ((node: Neo4jTypes.Node) => string);\r\n\tsize?: number;\r\n\tcommunity?: string;\r\n\tsizeCypher?: string;\r\n\timage?: string;\r\n\tfont?: string | VisNetwork.Font;\r\n\ttitle_properties?: string[];\r\n}\r\n\r\n/**\r\n * @deprecated for migration only\r\n */\r\nexport interface OldRelationshipConfig {\r\n\tthickness?: number;\r\n\tcaption?: boolean | string;\r\n}\r\n\r\n/**\r\n * @deprecated for migration only\r\n */\r\nexport interface OldNeoVisConfig {\r\n\tcontainer_id: string;\r\n\tserver_url: string;\r\n\tserver_user: string;\r\n\tserver_password: string;\r\n\tserver_database: string;\r\n\tlabels?: {\r\n\t\t[label: string]: OldLabelConfig,\r\n\t\t[NEOVIS_DEFAULT_CONFIG]?: OldLabelConfig\r\n\t};\r\n\trelationships?: {\r\n\t\t[relationship: string]: OldRelationshipConfig,\r\n\t\t[NEOVIS_DEFAULT_CONFIG]?: OldRelationshipConfig\r\n\t};\r\n\tarrows?: boolean;\r\n\thierarchical?: boolean;\r\n\thierarchical_sort_method?: 'hubsize' | 'directed';\r\n\tinitial_cypher?: string;\r\n\tconsole_debug?: boolean;\r\n\tencrypted?: 'ENCRYPTION_OFF' | 'ENCRYPTION_ON';\r\n\ttrust?: 'TRUST_ALL_CERTIFICATES' | 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES';\r\n}\r\n\r\n/**\r\n * @deprecated will be removed in the future\r\n * migrate old config to the new one\r\n * @param oldNeoVisConfig 1.0.0 config object\r\n */\r\nexport function migrateFromOldConfig(oldNeoVisConfig: OldNeoVisConfig): NeovisConfig {\r\n\treturn {\r\n\t\tcontainerId: oldNeoVisConfig.container_id,\r\n\t\tinitialCypher: oldNeoVisConfig.initial_cypher,\r\n\t\tconsoleDebug: oldNeoVisConfig.console_debug,\r\n\t\tserverDatabase: oldNeoVisConfig.server_database,\r\n\t\tneo4j: {\r\n\t\t\tserverUrl: oldNeoVisConfig.server_url,\r\n\t\t\tserverUser: oldNeoVisConfig.server_user,\r\n\t\t\tserverPassword: oldNeoVisConfig.server_password,\r\n\t\t\tdriverConfig: oldNeoVisConfig.encrypted || oldNeoVisConfig.trust ? {\r\n\t\t\t\tencrypted: oldNeoVisConfig.encrypted,\r\n\t\t\t\ttrust: oldNeoVisConfig.trust\r\n\t\t\t} : undefined\r\n\t\t},\r\n\t\tvisConfig: oldNeoVisConfig.arrows || oldNeoVisConfig.hierarchical ? {\r\n\t\t\tedges: oldNeoVisConfig.arrows ? {\r\n\t\t\t\tarrows: {\r\n\t\t\t\t\tto: {\r\n\t\t\t\t\t\tenabled: oldNeoVisConfig.arrows\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} : undefined,\r\n\t\t\tlayout: oldNeoVisConfig.hierarchical ? {\r\n\t\t\t\tenabled: oldNeoVisConfig.hierarchical,\r\n\t\t\t\tsortMethod: oldNeoVisConfig.hierarchical_sort_method\r\n\t\t\t} : undefined\r\n\t\t} : undefined,\r\n\t\tlabels: oldNeoVisConfig.labels ? (Object.entries(oldNeoVisConfig.labels) as [string | typeof NEOVIS_DEFAULT_CONFIG, OldLabelConfig][])\r\n\t\t\t.concat(oldNeoVisConfig.labels?.[NEOVIS_DEFAULT_CONFIG] ? [[NEOVIS_DEFAULT_CONFIG, oldNeoVisConfig.labels[NEOVIS_DEFAULT_CONFIG]]] : [])\r\n\t\t\t.reduce((newLabelsConfig, [label, oldLabelConfig]) => {\r\n\t\t\t\tnewLabelsConfig[label] = {\r\n\t\t\t\t\tlabel: typeof oldLabelConfig.caption !== 'function' ? oldLabelConfig.caption : undefined,\r\n\t\t\t\t\tvalue: oldLabelConfig.size,\r\n\t\t\t\t\tgroup: oldLabelConfig.community,\r\n\t\t\t\t\t[NEOVIS_ADVANCED_CONFIG]: {\r\n\t\t\t\t\t\tcypher: oldLabelConfig.sizeCypher ? {\r\n\t\t\t\t\t\t\tvalue: oldLabelConfig.sizeCypher\r\n\t\t\t\t\t\t} : undefined,\r\n\t\t\t\t\t\tfunction: deepmerge({\r\n\t\t\t\t\t\t\ttitle: (props) => objectToTitleHtml(props, oldLabelConfig.title_properties)\r\n\t\t\t\t\t\t}, typeof oldLabelConfig.caption === 'function' ? { label: oldLabelConfig.caption } : {}),\r\n\t\t\t\t\t\tstatic: {\r\n\t\t\t\t\t\t\tfont: oldLabelConfig.font,\r\n\t\t\t\t\t\t\tshape: oldLabelConfig.image ? 'image' : 'dot',\r\n\t\t\t\t\t\t\timage: oldLabelConfig.image\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\treturn newLabelsConfig;\r\n\t\t\t}, {}) : undefined,\r\n\t\trelationships: oldNeoVisConfig.relationships ? (Object.entries(oldNeoVisConfig.relationships) as [string | typeof NEOVIS_DEFAULT_CONFIG, OldRelationshipConfig][])\r\n\t\t\t.concat(oldNeoVisConfig.relationships[NEOVIS_DEFAULT_CONFIG] ? [[NEOVIS_DEFAULT_CONFIG, oldNeoVisConfig.relationships[NEOVIS_DEFAULT_CONFIG]]] : [])\r\n\t\t\t.reduce((newLabelsConfig, [relationship, oldRelationshipsConfig]) => {\r\n\t\t\t\tnewLabelsConfig[relationship] = {\r\n\t\t\t\t\tvalue: oldRelationshipsConfig.thickness,\r\n\t\t\t\t\tlabel: typeof oldRelationshipsConfig.caption === 'string' ? oldRelationshipsConfig.caption : undefined,\r\n\t\t\t\t\t[NEOVIS_ADVANCED_CONFIG]: {\r\n\t\t\t\t\t\tfunction: {\r\n\t\t\t\t\t\t\ttitle: objectToTitleHtml\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\treturn newLabelsConfig;\r\n\t\t\t}, {}) : undefined\r\n\t};\r\n}\r\n\r\nexport default NeoVis;\r\n"],"names":["root","factory","exports","module","define","amd","self","byteLength","b64","lens","getLens","validLen","placeHoldersLen","toByteArray","tmp","i","arr","Arr","_byteLength","curByte","len","revLookup","charCodeAt","fromByteArray","uint8","length","extraBytes","parts","maxChunkLength","len2","push","encodeChunk","lookup","join","Uint8Array","Array","code","Error","indexOf","start","end","num","output","base64","ieee754","customInspectSymbol","Symbol","Buffer","SlowBuffer","alloc","INSPECT_MAX_BYTES","K_MAX_LENGTH","createBuffer","RangeError","buf","Object","setPrototypeOf","prototype","arg","encodingOrOffset","TypeError","allocUnsafe","from","value","string","encoding","isEncoding","actual","write","slice","fromString","ArrayBuffer","isView","arrayView","isInstance","copy","fromArrayBuffer","buffer","byteOffset","fromArrayLike","fromArrayView","SharedArrayBuffer","valueOf","b","obj","isBuffer","checked","undefined","numberIsNaN","type","isArray","data","fromObject","toPrimitive","assertSize","size","array","toString","mustMatch","arguments","loweredCase","utf8ToBytes","base64ToBytes","toLowerCase","slowToString","this","hexSlice","utf8Slice","asciiSlice","latin1Slice","base64Slice","utf16leSlice","swap","n","m","bidirectionalIndexOf","val","dir","arrayIndexOf","call","lastIndexOf","indexSize","arrLength","valLength","String","read","readUInt16BE","foundIndex","found","j","hexWrite","offset","Number","remaining","strLen","parsed","parseInt","substr","utf8Write","blitBuffer","asciiWrite","str","byteArray","asciiToBytes","base64Write","ucs2Write","units","c","hi","lo","utf16leToBytes","Math","min","res","firstByte","codePoint","bytesPerSequence","secondByte","thirdByte","fourthByte","tempCodePoint","codePoints","MAX_ARGUMENTS_LENGTH","fromCharCode","apply","decodeCodePointsArray","kMaxLength","TYPED_ARRAY_SUPPORT","proto","foo","e","typedArraySupport","console","error","defineProperty","enumerable","get","poolSize","fill","allocUnsafeSlow","_isBuffer","compare","a","x","y","concat","list","pos","set","swap16","swap32","swap64","toLocaleString","equals","inspect","max","replace","trim","target","thisStart","thisEnd","thisCopy","targetCopy","includes","isFinite","toJSON","_arr","ret","out","hexSliceLookupTable","bytes","checkOffset","ext","checkInt","wrtBigUInt64LE","checkIntBI","BigInt","wrtBigUInt64BE","checkIEEE754","writeFloat","littleEndian","noAssert","writeDouble","newBuf","subarray","readUintLE","readUIntLE","mul","readUintBE","readUIntBE","readUint8","readUInt8","readUint16LE","readUInt16LE","readUint16BE","readUint32LE","readUInt32LE","readUint32BE","readUInt32BE","readBigUInt64LE","defineBigIntMethod","validateNumber","first","last","boundsError","readBigUInt64BE","readIntLE","pow","readIntBE","readInt8","readInt16LE","readInt16BE","readInt32LE","readInt32BE","readBigInt64LE","readBigInt64BE","readFloatLE","readFloatBE","readDoubleLE","readDoubleBE","writeUintLE","writeUIntLE","writeUintBE","writeUIntBE","writeUint8","writeUInt8","writeUint16LE","writeUInt16LE","writeUint16BE","writeUInt16BE","writeUint32LE","writeUInt32LE","writeUint32BE","writeUInt32BE","writeBigUInt64LE","writeBigUInt64BE","writeIntLE","limit","sub","writeIntBE","writeInt8","writeInt16LE","writeInt16BE","writeInt32LE","writeInt32BE","writeBigInt64LE","writeBigInt64BE","writeFloatLE","writeFloatBE","writeDoubleLE","writeDoubleBE","targetStart","copyWithin","errors","E","sym","getMessage","Base","constructor","super","writable","configurable","name","stack","message","addNumericalSeparator","range","ERR_OUT_OF_RANGE","checkBounds","ERR_INVALID_ARG_TYPE","floor","ERR_BUFFER_OUT_OF_BOUNDS","input","msg","received","isInteger","abs","INVALID_BASE64_RE","Infinity","leadSurrogate","split","base64clean","src","dst","alphabet","table","i16","fn","BufferBigIntNotDefined","parent","path","entryVirtual","forEach","map","reduce","isPrototypeOf","method","ArrayPrototype","it","own","key","desc","sham","entries","keys","Promise","WrappedWellKnownSymbolModule","f","WeakMap","WeakSet","isCallable","tryToString","$TypeError","argument","isConstructor","$String","Prototype","isObject","fails","isExtensible","$forEach","STRICT_METHOD","arrayMethodIsStrict","callbackfn","toIndexedObject","toAbsoluteIndex","lengthOfArrayLike","createMethod","IS_INCLUDES","$this","el","fromIndex","O","index","bind","uncurryThis","IndexedObject","toObject","arraySpeciesCreate","TYPE","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_REJECT","NO_HOLES","that","specificCreate","result","boundFunction","create","filter","some","every","find","findIndex","filterReject","wellKnownSymbol","V8_VERSION","SPECIES","METHOD_NAME","Boolean","aCallable","IS_RIGHT","argumentsLength","memo","left","right","createProperty","$Array","k","fin","originalArray","C","arraySpeciesConstructor","ITERATOR","SAFE_CLOSING","called","iteratorWithReturn","next","done","exec","SKIP_CLOSING","ITERATION_SUPPORT","object","stringSlice","TO_STRING_TAG_SUPPORT","classofRaw","TO_STRING_TAG","$Object","CORRECT_ARGUMENTS","tag","tryGet","callee","defineBuiltIns","getWeakData","anInstance","anObject","isNullOrUndefined","iterate","ArrayIterationModule","hasOwn","InternalStateModule","setInternalState","internalStateGetterFor","getterFor","splice","id","uncaughtFrozenStore","state","frozen","UncaughtFrozenStore","findUncaughtFrozen","store","entry","has","getConstructor","wrapper","CONSTRUCTOR_NAME","ADDER","Constructor","iterable","AS_ENTRIES","getInternalState","add","$","global","InternalMetadataModule","createNonEnumerableProperty","setToStringTag","DESCRIPTORS","common","IS_WEAK","NativeConstructor","NativePrototype","exported","collection","KEY","IS_ADDER","enable","forced","setStrong","ownKeys","getOwnPropertyDescriptorModule","definePropertyModule","source","exceptions","getOwnPropertyDescriptor","F","getPrototypeOf","createPropertyDescriptor","bitmap","toPropertyKey","propertyKey","descriptor","options","defineBuiltIn","unsafe","documentAll","document","all","IS_HTMLDDA","EXISTS","createElement","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","IS_DENO","IS_NODE","window","Bun","version","Deno","userAgent","test","Pebble","classof","process","navigator","match","versions","v8","CONSTRUCTOR","$Error","TEST","V8_OR_CHAKRA_STACK_ENTRY","IS_V8_OR_CHAKRA_STACK","dropEntries","prepareStackTrace","clearErrorStack","ERROR_STACK_INSTALLABLE","captureStackTrace","isForced","wrapConstructor","Wrapper","FORCED","USE_NATIVE","VIRTUAL_PROTOTYPE","sourceProperty","targetProperty","nativeProperty","resultProperty","TARGET","GLOBAL","STATIC","stat","PROTO","nativeSource","targetPrototype","dontCallGetSet","wrap","real","preventExtensions","NATIVE_BIND","FunctionPrototype","Function","Reflect","hasOwnProperty","getDescriptor","PROPER","CONFIGURABLE","uncurryThisWithBind","aFunction","variable","namespace","getMethod","Iterators","getIteratorMethod","usingIterator","iteratorMethod","replacer","rawLength","element","keysLength","V","P","func","check","globalThis","g","getBuiltIn","propertyIsEnumerable","functionToString","inspectSource","cause","hiddenKeys","getOwnPropertyNamesModule","getOwnPropertyNamesExternalModule","uid","FREEZING","REQUIRED","METADATA","setMetadata","objectID","weakData","meta","getOwnPropertyNames","fastKey","onFreeze","NATIVE_WEAK_MAP","shared","sharedKey","OBJECT_ALREADY_INITIALIZED","metadata","facade","STATE","enforce","$documentAll","noop","empty","construct","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructorLegacy","replacement","feature","detection","normalize","POLYFILL","NATIVE","USE_SYMBOL_AS_UID","$Symbol","isArrayIteratorMethod","getIterator","iteratorClose","Result","stopped","ResultPrototype","unboundFunction","iterator","iterFn","step","IS_RECORD","IS_ITERATOR","INTERRUPTED","stop","condition","callFn","kind","innerResult","innerError","IteratorPrototype","returnThis","IteratorConstructor","NAME","ENUMERABLE_NEXT","IS_PURE","FunctionName","createIteratorConstructor","IteratorsCore","PROPER_FUNCTION_NAME","CONFIGURABLE_FUNCTION_NAME","BUGGY_SAFARI_ITERATORS","KEYS","VALUES","ENTRIES","Iterable","DEFAULT","IS_SET","CurrentIteratorPrototype","methods","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","values","PrototypeOfArrayIteratorPrototype","arrayIterator","toLength","ceil","trunc","notify","toggle","node","promise","then","macrotask","Queue","IS_IOS","IS_IOS_PEBBLE","IS_WEBOS_WEBKIT","MutationObserver","WebKitMutationObserver","queueMicrotaskDescriptor","microtask","queue","flush","domain","exit","head","enter","resolve","nextTick","createTextNode","observe","characterData","PromiseCapability","reject","$$resolve","$$reject","$default","activeXDocument","definePropertiesModule","enumBugKeys","html","documentCreateElement","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","content","LT","NullProtoObjectViaActiveX","close","temp","parentWindow","NullProtoObject","ActiveXObject","iframeDocument","iframe","JS","style","display","appendChild","contentWindow","open","Properties","V8_PROTOTYPE_DEFINE_BUG","objectKeys","defineProperties","props","IE8_DOM_DEFINE","$defineProperty","$getOwnPropertyDescriptor","ENUMERABLE","WRITABLE","Attributes","current","propertyIsEnumerableModule","$getOwnPropertyNames","arraySlice","windowNames","getWindowNames","internalObjectKeys","getOwnPropertySymbols","CORRECT_PROTOTYPE_GETTER","ObjectPrototype","ARRAY_BUFFER_NON_EXTENSIBLE","$isExtensible","FAILS_ON_PRIMITIVES","names","$propertyIsEnumerable","NASHORN_BUG","uncurryThisAccessor","aPossiblePrototype","setter","CORRECT_SETTER","__proto__","TO_ENTRIES","pref","getOwnPropertySymbolsModule","NativePromiseConstructor","IS_BROWSER","NativePromisePrototype","SUBCLASSING","NATIVE_PROMISE_REJECTION_EVENT","PromiseRejectionEvent","FORCED_PROMISE_CONSTRUCTOR","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","FakePromise","REJECTION_EVENT","newPromiseCapability","promiseCapability","checkCorrectnessOfIteration","tail","item","ENGINE_IS_BUN","USER_AGENT","validateArgumentsLength","WRAP","scheduler","hasTimeArg","firstParamIndex","handler","timeout","boundArgs","params","callback","defineBuiltInAccessor","TAG","SET_METHOD","defineGlobalProperty","SHARED","mode","copyright","license","aConstructor","defaultConstructor","S","toIntegerOrInfinity","requireObjectCoercible","charAt","CONVERT_TO_STRING","second","position","codeAt","symbol","SymbolPrototype","TO_PRIMITIVE","hint","arity","NATIVE_SYMBOL","keyFor","$location","defer","channel","port","setImmediate","clear","clearImmediate","Dispatch","MessageChannel","counter","ONREADYSTATECHANGE","location","run","runner","eventListener","event","globalPostMessageDefer","postMessage","protocol","host","args","now","port2","port1","onmessage","addEventListener","importScripts","removeChild","setTimeout","integer","number","isSymbol","ordinaryToPrimitive","exoticToPrim","postfix","random","passed","required","wrappedWellKnownSymbolModule","WellKnownSymbolsStore","createWellKnownSymbol","withoutSetter","copyConstructorProperties","installErrorCause","installErrorStack","normalizeStringArgument","$AggregateError","AggregateErrorPrototype","errorsArray","AggregateError","doesNotExceedSafeInteger","arrayMethodHasSpeciesSupport","IS_CONCAT_SPREADABLE","IS_CONCAT_SPREADABLE_SUPPORT","isConcatSpreadable","spreadable","A","addToUnscopables","defineIterator","createIterResultObject","ARRAY_ITERATOR","iterated","Arguments","$map","$reduce","CHROME_VERSION","getReplacerFunction","$stringify","numberToString","tester","low","WRONG_SYMBOLS_CONVERSION","ILL_FORMED_UNICODE","stringifyWithSymbolsFix","$replacer","fixIllFormed","prev","stringify","space","JSON","$entries","$getOwnPropertySymbols","nativeKeys","newPromiseCapabilityModule","perform","allSettled","capability","promiseResolve","alreadyCalled","status","reason","$promiseResolve","PROMISE_STATICS_INCORRECT_ITERATION","PROMISE_ANY_ERROR","any","alreadyResolved","alreadyRejected","onRejected","Internal","OwnPromiseCapability","nativeThen","setSpecies","speciesConstructor","task","hostReportErrors","PromiseConstructorDetection","PROMISE","NATIVE_PROMISE_SUBCLASSING","getInternalPromiseState","PromiseConstructor","PromisePrototype","newGenericPromiseCapability","DISPATCH_EVENT","createEvent","dispatchEvent","UNHANDLED_REJECTION","isThenable","callReaction","reaction","exited","ok","fail","rejection","onHandleUnhandled","isReject","notified","reactions","onUnhandled","initEvent","isUnhandled","emit","unwrap","internalReject","internalResolve","executor","onFulfilled","PromiseWrapper","onFinally","isFunction","race","r","PromiseConstructorWrapper","CHECK_WRAPPER","STRING_ITERATOR","point","defineWellKnownSymbol","$toString","nativeObjectCreate","getOwnPropertyNamesExternal","defineSymbolToPrimitive","HIDDEN","SYMBOL","QObject","nativeGetOwnPropertyDescriptor","nativeDefineProperty","nativeGetOwnPropertyNames","nativePropertyIsEnumerable","AllSymbols","ObjectPrototypeSymbols","USE_SETTER","findChild","setSymbolDescriptor","ObjectPrototypeDescriptor","description","$defineProperties","properties","IS_OBJECT_PROTOTYPE","useSetter","useSimple","NATIVE_SYMBOL_REGISTRY","StringToSymbolRegistry","SymbolToStringRegistry","InternalWeakMap","collectionWeak","enforceInternalState","isFrozen","isSealed","freeze","seal","FROZEN","SEALED","IS_IE11","init","$WeakMap","WeakMapPrototype","nativeSet","nativeDelete","nativeHas","nativeGet","frozenArray","arrayIntegrityLevel","thisSymbolValue","isRegistered","$isWellKnown","isWellKnown","symbolKeys","symbolKeysLength","symbolKey","DOMIterables","COLLECTION_NAME","Collection","CollectionPrototype","setInterval","schedulersFix","isMergeableObject","isNonNullObject","stringValue","$$typeof","REACT_ELEMENT_TYPE","isReactElement","isSpecial","for","cloneUnlessOtherwiseSpecified","clone","deepmerge","defaultArrayMerge","getKeys","getEnumerableOwnPropertySymbols","propertyIsOnObject","property","_","arrayMerge","sourceIsArray","destination","propertyIsUnsafe","customMerge","getMergeFunction","mergeObject","deepmerge_1","isLE","mLen","nBytes","eLen","eMax","eBias","nBits","d","s","NaN","rt","isNaN","log","LN2","assertImpersonatedUserIsEmpty","assertTxConfigIsEmpty","assertDatabaseIsEmpty","neo4j_driver_core_1","txConfig","onProtocolError","observer","isEmpty","newError","onError","database","impersonatedUser","__importDefault","mod","__esModule","bolt_protocol_util_1","packstream_1","request_message_1","stream_observers_1","Bookmark","internal","bookmark","_a","constants","ACCESS_MODE_WRITE","BOLT_PROTOCOL_V1","TxConfig","logger","Logger","BoltProtocol","server","chunker","createResponseHandler","_b","disableLosslessIntegers","useBigInt","_server","_chunker","_packer","_createPacker","_unpacker","_createUnpacker","_responseHandler","_log","_onProtocolError","_fatalError","packer","unpacker","transformMetadata","initialize","_this","authToken","onComplete","LoginObserver","_onLoginError","onCompleted","_onLoginCompleted","default","prepareToClose","beginTransaction","beforeError","afterError","beforeComplete","afterComplete","asBeginTransactionParameters","commitTransaction","rollbackTransaction","query","parameters","beforeKeys","afterKeys","_c","ResultStreamObserver","pullAll","currentFailure","reset","ResetObserver","v1","Packer","Unpacker","queueObserverIfProtocolIsNotBroken","isDebugEnabled","debug","packStruct","signature","fields","field","packable","messageBoundary","notifyFatalError","_notifyErrorToObservers","updateCurrentObserver","_updateCurrentObserver","hasOngoingObservableRequests","isBroken","notifyFatalErrorToObserver","_queueObserver","resetFailure","_resetFailure","serverVersion","extendStatics","__extends","p","__","bolt_protocol_v1_1","BOLT_PROTOCOL_V2","_super","__assign","assign","t","bolt_protocol_v2_1","BOLT_PROTOCOL_V3","CONTEXT","CALL_GET_ROUTING_TABLE","noOpObserver","StreamObserver","result_available_after","t_first","result_consumed_after","t_last","hello","goodbye","prepareToHandleSingleResponse","begin","commit","rollback","runWithMetadata","requestRoutingInformation","routingContext","_d","sessionContext","resultObserver","ProcedureRouteObserver","bolt_protocol_v3_1","BOLT_PROTOCOL_V4_0","FETCH_ALL","DATABASE","CALL_GET_ROUTING_TABLE_MULTI_DB","reactive","_e","fetchSize","moreFunction","_requestMore","discardFunction","_requestDiscard","flushRun","pull","stmtId","discard","_noOp","databaseName","bolt_protocol_v4x0_1","BOLT_PROTOCOL_V4_1","packstreamConfig","serversideRouting","_serversideRouting","bolt_protocol_v4x1_1","BOLT_PROTOCOL_V4_2","bolt_protocol_v4x2_1","stream_observers_2","BOLT_PROTOCOL_V4_3","RouteObserver","route","patch_bolt","_applyPatches","patches","_applyUtcPatch","useUtc","bolt_protocol_v4x3_1","BOLT_PROTOCOL_V4_4","routeV4x4","bolt_protocol_v4x4_1","response_handler_1","dechunker","packingConfig","createProtocol","responseHandler","onerror","handleResponse","unpack","channel_1","major","minor","handshakeErrorHandler","_error","protocolVersion","h","parseNegotiatedResponse","consumeRemainingBuffer","consumer","hasRemaining","readSlice","handshakeBuffer","writeInt32","createHandshakeMessage","__createBinding","o","k2","__exportStar","RawRoutingTable","handshake_1","create_1","routing_table_raw_1","handshake","ACCESS_MODE_READ","assertString","util","RequestMessage","clientName","json","PULL_ALL_MESSAGE","RESET_MESSAGE","routing","patchs","user_agent","buildTxMetadata","COMMIT_MESSAGE","ROLLBACK_MESSAGE","GOODBYE_MESSAGE","buildStreamMetadata","bookmarks","databaseContext","dbContext","db","imp_user","tx_timeout","tx_metadata","int","qid","NO_OP","NO_OP_IDENTITY","subject","NO_OP_OBSERVER","onNext","ResponseHandler","_pendingObservers","_transformMetadata","_observer","onPendingObserversChange","onFailure","onErrorApplyTransformation","_currentFailure","payload","_currentObserver","shift","ofRecord","record","ofNull","RecordRawRoutingTable","ofMessageResponse","response","ResponseRawRoutingTable","NullRawRoutingTable","_response","ttl","servers","_record","CompletedObserver","FailedObserver","PROTOCOL_ERROR","rawRecord","_fieldKeys","_fieldLookup","_head","_queuedRecords","_tail","_observers","_meta","_beforeError","_afterError","_beforeKeys","_afterKeys","_beforeComplete","_afterComplete","_queryId","_moreFunction","_discardFunction","_discard","_fetchSize","_setState","_states","READY","READY_STREAMING","_setupAuoPull","Record","_highRecordWatermark","_autoPull","_state","onSuccess","cancel","STREAMING","markCompleted","SUCCEEDED","subscribe","onKeys","_lowRecordWatermark","_handleStreaming","_handleHasMore","has_more","_handlePullSuccess","completionMetadata","beforeHandlerResult","continuation","_handleRunSuccess","afterSuccess","_storeMetadataForCompletion","continuation_1","_handleError","FAILED","MAX_VALUE","_onError","_onCompleted","_onComplete","_resultObserver","_records","streamObserver","BaseBuffer","getUInt8","getInt8","getFloat64","putUInt8","putInt8","putFloat64","getInt16","getUInt16","getInt32","getUInt32","getInt64","getSlice","SliceBuffer","putInt16","putUInt16","putInt32","putUInt32","putInt64","putBytes","other","_updatePos","readUInt16","readUInt32","readInt16","readInt32","readInt64","readFloat64","writeInt16","writeUInt32","writeInt64","writeFloat64","writeBytes","toHex","hexByte","inner","_start","_inner","base_buf_1","channel_buf_1","ENCRYPTION_OFF","ENCRYPTION_ON","WebSocketChannel","config","protocolSupplier","socketFactory","detectWebPageProtocol","url","WebSocket","_open","_pending","_handleConnectionError","_config","encryptionOn","encrypted","isEncryptionExplicitlyTurnedOn","encryptionOff","isEncryptionExplicitlyTurnedOff","trust","secureProtocol","isProtocolSecure","warn","verifyEncryptionSettings","scheme","determineWebSocketScheme","_ws","address","asHostPort","hostAndPort","isIPv6AddressIssueOnWindows","windowsFriendlyUrl","RegExp","asWindowsFriendlyIPv6Address","createWebSocket","binaryType","onclose","wasClean","onopen","_clearConnectionTimeout","pending","_connectionTimeoutFired","_connectionTimeoutId","_setupConnectionTimeout","connectionTimeout","connectionErrorCode","readyState","send","_buffer","setupReceiveTimeout","receiveTimeout","stopReceiveTimeout","startReceiveTimeout","webSocket_1","timeoutId","clearTimeout","BrowserHostNameResolver","_resolveToItself","resolver","BaseHostNameResolver","HostNameResolver","Channel","browser_channel_1","browser_host_name_resolver_1","buffer_1","ChannelBuffer","newChannelJSBuffer","bytesToCopy","SERVICE_UNAVAILABLE","ALLOWED_VALUES_ENCRYPTED","ALLOWED_VALUES_TRUST","driverConfig","extractEncrypted","extractTrust","trustedCertificates","extractTrustedCertificates","knownHostsPath","knownHosts","extractKnownHostsPath","configuredTimeout","extractConnectionTimeout","Dechunker","Chunker","combined_buf_1","bufferSize","_bufferSize","_ch","_currentChunkStart","_chunkOpen","_ensure","_closeChunkIfOpen","toWriteSize","chunkSize","_currentMessage","_partialChunkHeader","AWAITING_CHUNK","_onHeader","IN_HEADER","IN_CHUNK","_chunkSize","CLOSED","header","buf_1","CombinedBuffer","buffers","_buffers","utf8","ChannelConfig","channel_config_1","utf8_1","decoder","StringDecoder","encode","newBuffer","decode","decodeChannelBuffer","combinedBuffers","decodeFn","endFn","remainingBytesToRead","partBuffer","bytesToRead","lastSlice","streamDecodeCombinedBuffer","decodeCombinedBuffer","__awaiter","thisArg","_arguments","generator","fulfilled","rejected","__generator","body","label","sent","trys","ops","verb","v","op","pop","connection_provider_pooled_1","connection_1","DirectConnectionProvider","_address","acquireConnection","accessMode","databaseSpecificErrorHandler","ConnectionErrorHandler","errorCode","handleAuthorizationExpired","_handleAuthorizationExpired","_connectionPool","acquire","connection","DelegateConnection","_id","purge","catch","_hasProtocolVersion","versionPredicate","createChannelConnection","_createConnectionErrorHandler","supportsMultiDb","supportsTransactionConfig","supportsUserImpersonation","__setModuleDefault","__importStar","pool_1","PooledConnectionProvider","createChannelConnectionHook","_userAgent","_authToken","_createChannelConnection","_createConnection","destroy","_destroyConnection","validate","_validateConnection","installIdleObserver","_installIdleObserverOnConnection","removeIdleObserver","_removeIdleObserverOnConnection","PoolConfig","fromDriverConfig","_openConnections","release","_release","connect","conn","isOpen","maxConnectionLifetime","Date","creationTimestamp","ConnectionProvider","__values","__read","ar","rediscovery_1","connection_provider_single_1","load_balancing_1","SESSION_EXPIRED","READ","WRITE","DEFAULT_DB_NAME","DEFAULT_ROUTING_TABLE_PURGE_DELAY","RoutingConnectionProvider","hostNameResolver","routingTablePurgeDelay","_routingContext","_seedRouter","_rediscovery","_loadBalancingStrategy","LeastConnectedLoadBalancingStrategy","_hostNameResolver","_dnsResolver","_useSeedRouter","_routingTableRegistry","RoutingTableRegistry","_handleUnavailability","forget","_handleWriteFailure","forgetWriter","onDatabaseNameResolved","context","routingTable","error_1","_freshRoutingTable","selectReader","readers","selectWriter","writers","_acquireConnectionToServer","handleAndTransformError","addresses","lastError","error_2","_resolveSeedRouter","applyWhenExists","serverName","currentRoutingTable","RoutingTable","isStaleFor","info","_refreshRoutingTable","knownRouters","routers","_fetchRoutingTableFromSeedRouterFallbackToKnownRouters","_fetchRoutingTableFromKnownRoutersFallbackToSeedRouter","seenRouters","newRoutingTable","_fetchRoutingTableUsingSeedRouter","_fetchRoutingTableUsingKnownRouters","_applyRoutingTableIfPossible","lastRouterIndex","_fetchRoutingTable","_forgetRouter","seedRouter","resolvedAddresses","newAddresses","dnsResolvedAddresses","routerAddresses","refreshedTablePromise","currentRouter","currentIndex","previousRouterIndex","session","error_3","_createSessionForRediscovery","lookupRoutingTableOnRouter","routerAddress","connectionProvider","error_4","Session","_updateRoutingTable","keepAll","allServers","removeExpired","register","routersArray","routerIndex","forgetRouter","_tables","Map","_routingTablePurgeDelay","applyWhenDontExists","_forEach","defaultSupplier","_removeIf","isExpiredFor","e_1","e_1_1","return","_remove","delete","predicate","e_2","e_2_1","SingleConnectionProvider","_connection","connection_provider_direct_1","connection_provider_routing_1","bolt_1","idGenerator","errorHandler","createChannel","channelConfig","ChannelConnection","_handleOngoingRequestsNumberChange","_handleFatalError","_resetOnFailure","_handleProtocolError","_disableLosslessIntegers","_level","level","_loggerFunction","_dbConnectionId","_protocol","_isBroken","_initialize","err","dbConnectionId","connection_id","databaseId","hints","receiveTimeoutRaw","receiveTimeoutInSeconds","toNumber","isErrorEnabled","resetAndFlush","neo4jError","requestsNumber","delegate","_originalErrorHandler","_errorHandler","_delegate","handleUnavailability","handleWriteFailure","_errorCode","noOpHandler","isAutorizationExpiredError","isAvailabilityError","isFailureToWrite","Connection","connection_channel_1","connection_delegate_1","connection_error_handler_1","pool","packstream","bolt","loadBalancing","LoadBalancingStrategy","load_balancing_strategy_1","least_connected_load_balancing_strategy_1","round_robin_array_index_1","connectionPool","_readersIndex","_writersIndex","knownReaders","_select","knownWriters","roundRobinIndex","startIndex","leastConnectedAddress","leastActiveConnections","MAX_SAFE_INTEGER","activeConnections","activeResourceCount","RoundRobinArrayIndex","initialOffset","_offset","arrayLength","nextOffset","v2","packDateTime","unpackDateTimeWithZoneId","unpackDateTimeWithZoneOffset","DATE_TIME_WITH_ZONE_ID","DATE_TIME_WITH_ZONE_OFFSET","temporal_factory_1","localDateTimeToEpochSecond","temporalUtil","getTimeInZoneId","timeZoneId","epochSecond","nano","formatter","Intl","DateTimeFormat","timeZone","year","month","day","hour","minute","hour12","era","utc","multiply","div","localDateTime","formatToParts","currentValue","adjustEra","toUpperCase","subtract","negate","epochInTimeZone","nanosecond","timeZoneOffsetSeconds","modulo","convertIntegerPropsIfNeeded","convert","toBigInt","toNumberOrInfinity","prop","isInt","structSize","_verifyStructSize","utcSecond","unpackInteger","epochSecondAndNanoToLocalDateTime","DateTime","dateTimeWithZoneAppliedTwice","offsetOfZoneInTheFutureUtc","guessedUtc","zonedDateTimeFromGuessedUtc","getOffsetFromZoneId","packableStructFields","packDateTimeWithZoneId","packDateTimeWithZoneOffset","Structure","objectUtil","fieldStr","_byteArraysSupported","packFloat","packString","packInteger","Int8Array","packBytes","packListHeader","i_1","packableIterable","Node","_nonPackableValue","Relationship","Path","packableFields","count","i_2","packMapHeader","i_3","packStructHeader","high","greaterThanOrEqual","lessThan","packBytesHeader","disableByteArrays","_useBigInt","marker","markerHigh","markerLow","boolean","_unpackBoolean","numberOrInteger","_unpackNumberOrInteger","_unpackString","_unpackList","_unpackByteArray","_unpackMap","struct","_unpackStruct","_unpackInteger","Integer","_unpackListWithSize","_unpackByteArrayWithSize","_unpackMapWithSize","_unpackStructWithSize","createBrokenObject","_unpackNode","_unpackRelationship","_unpackUnboundRelationship","_unpackPath","_unpackUnknownStruct","UnboundRelationship","nodes","rels","sequence","segments","prevNode","nextNode","relIndex","rel","identity","PathSegment","structName","expectedSize","actualSize","dateToEpochDay","localTimeToNanoOfDay","isPoint","z","srid","packPoint2D","packPoint3D","isDuration","months","days","seconds","nanoseconds","isLocalTime","nanoOfDay","isTime","offsetSeconds","isDate","epochDay","isLocalDateTime","isDateTime","Point","unpackPoint2D","unpackPoint3D","Duration","unpackDuration","nanoOfDayToLocalTime","unpackLocalTime","localTime","Time","unpackTime","epochDayToDate","unpackDate","unpackLocalDateTime","DAYS_0000_TO_1970","DAYS_PER_400_YEAR_CYCLE","NANOS_PER_HOUR","NANOS_PER_MINUTE","NANOS_PER_SECOND","SECONDS_PER_DAY","floorDiv","floorMod","zeroDay","adjust","adjustCycles","dayOfYearEst","marchDayOfYear","marchMonth","LocalTime","localDate","LocalDateTime","DEFAULT_MAX_SIZE","DEFAULT_ACQUISITION_TIMEOUT","Pool","pool_config_1","maxSize","acquisitionTimeout","valueOrDefault","defaultConfig","isConfigured","maxConnectionPoolSize","connectionAcquisitionTimeout","defaultValue","_f","_g","_h","_j","noOp","_create","_destroy","_validate","_installIdleObserver","_removeIdleObserver","_maxSize","_acquisitionTimeout","_pools","_pendingCreates","_acquireRequests","_activeResourceCounts","_poolState","_closed","_acquire","resource","asKey","allRequests","request","pendingRequests","isCompleted","activeCount","idleCount","PendingRequest","_purgeKey","keysToKeep","keysToPurge","poolState","resource_1","PoolState","resourceAcquired","isActive","activeResourceCounts","nextCount","resourceReleased","_processPendingAcquireRequests","destructionList","requests","pendingRequest_1","currentCount","_key","_resolve","_reject","_timeoutId","_completed","_active","Rediscovery","routing_table_1","_acquireConnection","_requestRawRoutingTable","rawRoutingTable","isNull","fromRawRoutingTable","_lastBookmark","_mode","_database","__spreadArray","to","pack","l","createValidRoutingTable","ServerAddress","serverAddress","expirationTime","removeFromArray","duration","expires","calculateExpirationTime","routers_1","readers_1","writers_1","role","parseArray","fromUrl","parseServers","assertNonEmpty","serverAddressesArray","serversName","basic","username","password","realm","principal","credentials","kerberos","base64EncodedTicket","bearer","base64EncodedToken","custom","param","Driver","bookmark_1","connectivity_verifier_1","configured_custom_resolver_1","constants_1","logger_1","session_1","util_1","createConnectonProvider","createSession","sanitizeIntValue","DEFAULT_POOL_MAX_SIZE","DEFAULT_POOL_ACQUISITION_TIMEOUT","validateFetchSizeValue","sanitizeConfig","validateConfig","_createConnectionProvider","_createSession","_connectionProvider","_afterConstruction","verifyConnectivity","_getOrCreateConnectionProvider","ConnectivityVerifier","verify","_supportsRouting","_isEncrypted","_getTrust","defaultAccessMode","bookmarkOrBookmarks","_newSession","typename","sessionMode","_validateSessionMode","rawValue","defaultWhenAbsent","sanitizedValue","Neo4jError","isPathSegment","isPath","isUnboundRelationship","isRelationship","isNode","json_1","IDENTIFIER_PROPERTY_ATTRIBUTES","NODE_IDENTIFIER_PROPERTY","RELATIONSHIP_IDENTIFIER_PROPERTY","UNBOUND_RELATIONSHIP_IDENTIFIER_PROPERTY","PATH_IDENTIFIER_PROPERTY","PATH_SEGMENT_IDENTIFIER_PROPERTY","hasIdentifierProperty","labels","relationship","types","Transaction","Stats","QueryStatistics","ProfiledPlan","Plan","Notification","ServerInfo","queryType","ResultSummary","inSafeRange","auth","driver","integer_1","temporal_types_1","graph_types_1","record_1","spatial_types_1","result_summary_1","result_1","connection_provider_1","transaction_1","driver_1","auth_1","forExport","INT_CACHE","MIN_SAFE_VALUE","lessThanOrEqual","MAX_SAFE_VALUE","toInt","TWO_PWR_32_DBL","isZero","isPositive","NEGATIVE_INFINITY","greaterThan","POSITIVE_INFINITY","radix","rem","isNegative","MIN_VALUE","radixInteger","fromNumber","radixToPower","remDiv","digits","getHighBits","getLowBits","getNumBitsAbs","bit","isOdd","isEven","theOther","fromValue","notEquals","thisNeg","otherNeg","not","ONE","addend","theAddend","a48","a32","a16","a00","b48","b32","b16","c48","c32","c16","c00","fromBits","subtrahend","theSubtrahend","multiplier","ZERO","theMultiplier","TWO_PWR_24","b00","divisor","approx","theDivisor","NEG_ONE","shiftRight","shiftLeft","log2","delta","approxRes","approxRem","and","or","xor","numBits","bitsCount","__isInteger__","fromInt","cachedObj","lowBits","highBits","TWO_PWR_63_DBL","strictStringValidation","substring","valueString","_isValidNumberFromString","power","opts","theString","theNumber","minSize","theNumberString","paddingLength","repeat","_convertNumberToString","TWO_PWR_16_DBL","_values","isString","flattenedValue","flattenArray","asStringArray","EMPTY_BOOKMARK","dest","EMPTY_CONNECTION_HOLDER","ReadOnlyConnectionHolder","ConnectionHolder","_bookmark","_impersonatedUser","_referenceCount","_connectionPromise","_onDatabaseNameResolved","setDatabase","referenceCount","initializeConnection","getConnection","releaseConnection","_releaseConnection","ignoreError","connectionHolder","_connectionHolder","EmptyConnectionHolder","connection_holder_1","ignoredError","acquireAndReleaseDummyConnection","retryStrategy","urlUtil","connectivityVerifier","transactionExecutor","ERROR","WARN","INFO","DEBUG","DEFAULT_LEVEL","levels","loggerFunction","logging","loggingConfig","configuredLevel","extractConfiguredLevel","configuredLogger","extractConfiguredLogger","noOpLogger","isLevelEnabled","isWarnEnabled","isInfoEnabled","NoOpLogger","targetLevel","getBrokenObjectReason","isBrokenObject","__isBrokenObject__","__reason__","Proxy","deleteProperty","server_address_1","resolveToSelf","ConfiguredCustomResolver","resolverFunction","_resolverFunction","resolved","base_host_name_resolver_1","canRetryOn","hostPort","_host","_resolved","_port","assertNumber","_hostPort","_stringValue","resolvedHost","resolveWith","urlParsed","parseDatabaseUrl","assertValidZoneId","assertValidNanosecond","assertValidSecond","assertValidMinute","assertValidHour","assertValidDay","assertValidMonth","assertValidYear","timeZoneOffsetInSeconds","totalNanoseconds","newDate","toStandardDate","isoStringToStandardDate","dateToIsoString","timeZoneOffsetToIsoString","timeToIsoString","durationToIsoString","normalizeNanosecondsForDuration","normalizeSecondsForDuration","NANOS_PER_MILLISECOND","SECONDS_PER_HOUR","SECONDS_PER_MINUTE","MINUTES_PER_HOUR","NANOSECOND_OF_SECOND_RANGE","SECOND_OF_MINUTE_RANGE","MINUTE_OF_HOUR_RANGE","HOUR_OF_DAY_RANGE","DAY_OF_MONTH_RANGE","MONTH_OF_YEAR_RANGE","YEAR_RANGE","ValueRange","_minNumber","_maxNumber","_minInteger","_maxInteger","contains","intValue","isLeapYear","assertValidTemporalValue","assertNumberOrInteger","formatNanosecond","formatNumber","stringLength","numString","usePositiveSign","totalNanos","localTimeSeconds","totalSeconds","localTimeToSecondOfDay","monthsString","daysString","secondsAndNanosecondsString","secondsString","nanosecondsString","secondsNegative","nanosecondsGreaterThanZero","formatSecondsAndNanosecondsForDuration","signPrefix","hours","minutes","secondsValue","yearInteger","formatYear","isoString","date","standardDate","getMilliseconds","secondsPortion","getSeconds","getUTCSeconds","offsetInMinutes","getTimezoneOffset","fieldName","zoneId","TransactionExecutor","retry_strategy_1","maxRetryTimeMs","initialRetryDelayMs","jitterFactor","_maxRetryTimeMs","_valueOrDefault","_initialRetryDelayMs","_multiplier","_jitterFactor","_inFlightTimeoutIds","_verifyAfterConstruction","execute","transactionCreator","transactionWork","_executeTransactionInsidePromise","retryStartTimeMs","retryDelayMs","_retryTransactionPromise","retryStartTime","nextRetryTime","_computeDelayWithJitter","nextRetryDelayMs","tx","_safeExecuteTransactionWork","_handleTransactionWorkSuccess","_handleTransactionWorkFailure","ignore","delayMs","jitter","assertObject","assertValidConfig","extractTimeout","extractMetadata","EMPTY_CONFIG","Url","formatIPv6Address","formatIPv4Address","defaultPortForScheme","trimAndVerifyQueryElement","escapeIPv6Address","startsWithSquareBracket","endsWithSquareBracket","sanitized","schemeMissing","sanitizeUrl","parsedUrl","partition","delimiter","decodeURIComponent","fragment","startsWith","userInfo","ldelimiter","rdelimiter","lpartition","rpartition","between","ipv6Host","rest","parseAuthority","uriJsParse","extractScheme","extractHost","formattedHost","formatHost","portString","extractPort","queryString","trimAndSanitizeQuery","pair","keyValue","extractQuery","extractResourceQueryString","resourceName","validateQueryAndParameters","assertValidDate","isEmptyObjectOrNull","objName","opt","validatedQuery","skipAsserts","text","assertCypherQuery","assertQueryParameters","getTime","object_util_1","fieldLookup","_fields","idx","generateFieldLookup","visitor","resultArray","e_3","e_3_1","counters","stats","updateStatistics","plan","profile","notifications","_buildNotifications","resultConsumedAfter","resultAvailableAfter","hasPlan","hasProfile","operatorType","identifiers","children","child","dbHits","rows","pageCacheMisses","pageCacheHits","pageCacheHitRatio","time","hasPageCacheStats","nodesCreated","nodesDeleted","relationshipsCreated","relationshipsDeleted","propertiesSet","labelsAdded","labelsRemoved","indexesAdded","indexesRemoved","constraintsAdded","constraintsRemoved","statistics","_stats","_systemUpdates","camelCaseIndex","_containsSystemUpdates","_containsUpdates","containsUpdates","updates","containsSystemUpdates","systemUpdates","notification","title","severity","_constructPosition","line","column","serverMeta","agent","READ_ONLY","READ_WRITE","WRITE_ONLY","SCHEMA_WRITE","internal_1","DEFAULT_ON_ERROR","DEFAULT_ON_COMPLETED","summary","streamObserverPromise","_stack","_streamObserverPromise","_p","_query","_parameters","_createSummary","_getOrCreatePromise","records","finally","onfinally","onCompletedOriginal","onErrorOriginal","newStack","replaceStacktrace","_cancel","toStringTag","observers_1","transaction_executor_1","tx_config_1","_reactive","_readConnectionHolder","_writeConnectionHolder","_hasTx","_transactionExecutor","maxTransactionRetryTime","_createTransactionExecutor","_onCompleteCallback","_databaseNameResolved","transactionConfig","autoCommitTxConfig","_run","_assertSessionIsOpen","customRunner","observerPromise","_connectionHolderWithMode","connectionConsumer","_beginTransaction","onClose","_transactionClosed","onBookmark","_updateBookmark","onConnection","_begin","lastBookmark","readTransaction","_runTransaction","writeTransaction","normalizedDatabase","newBookmark","rawMode","POINT_IDENTIFIER_PROPERTY","formatAsFloat","DURATION_IDENTIFIER_PROPERTY","LOCAL_TIME_IDENTIFIER_PROPERTY","TIME_IDENTIFIER_PROPERTY","DATE_IDENTIFIER_PROPERTY","LOCAL_DATE_TIME_IDENTIFIER_PROPERTY","DATE_TIME_IDENTIFIER_PROPERTY","fromStandardDate","verifyStandardDateAndNanos","getHours","getMinutes","getFullYear","getMonth","getDate","localDateTimeToString","offsetDefined","idDefined","verifyTimeZoneArguments","ACTIVE","_onClose","_onBookmark","_onConnection","_onErrorCallback","_results","committed","pendingResults","rolledback","finishTransaction","ROLLED_BACK","newCompletedResult","results","_interopRequireDefault","_classCallCheck2","_createClass2","_inherits2","_possibleConstructorReturn2","_getPrototypeOf2","_neo4jDriverCore","_sessionRx","_CoreDriver","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","Super","NewTarget","_ref","_ref$defaultAccessMod","_ref$database","_default","_driver","_version","_neo4jDriverBoltConnection","_transactionRx","_resultRx","_internal$util","_console","_x","spatial","temporal","createConnectionProviderFunction","RxSession","RxTransaction","RxResult","_rxjs","_operators","RxRetryLogic","_ref$maxRetryTimeout","maxRetryTimeout","_ref$initialDelay","initialDelay","_ref$delayMultiplier","delayMultiplier","_ref$delayJitter","delayJitter","_ref$logger","_maxRetryTimeout","_initialDelay","_delayMultiplier","_delayJitter","_logger","work","pipe","retryWhen","failedWork","handledExceptions","startTime","retryCount","delayDuration","flatMap","throwError","seenErrors","nextDelayDuration","_computeNextDelay","of","delay","replayedResult","publishReplay","refCount","_result","_keys","Subject","_summary","ReplaySubject","Observable","recordsObserver","_startStreaming","_this2","summaryObserver","_this3","_ref$recordsObserver","_ref$summaryObserver","subscriptions","unsubscribe","observers","complete","_retryLogicRx","_internal$constants","_session","_retryLogic","_createRetryLogic","retry","txc","catchError","_txc","_this4","AnimationFrameAction","requestAsyncId","actions","scheduled","requestAnimationFrame","recycleAsyncId","cancelAnimationFrame","AsyncAction","animationFrameScheduler","AnimationFrameScheduler","action","active","AsyncScheduler","animationFrame","VirtualTimeScheduler","SchedulerAction","maxFrames","VirtualAction","frame","frameTimeFactor","schedule","sort","sortActions","_execute","isObservable","lift","bindCallback","callbackFunc","resultSelector","isScheduler","_i","subscriber","dispatch","AsyncSubject","innerArgs","canReportError","dispatchNext","bindNodeCallback","forkJoin","sources","first_1","forkJoinInternal","resultSelector_1","completed","emitted","_loop_1","hasValue","fromEvent","eventName","setupSubscription","sourceObj","removeEventListener","isEventTarget","source_1","on","off","isJQueryStyleEventEmitter","source_2","addListener","removeListener","isNodeStyleEventEmitter","source_3","fromEventPattern","addHandler","removeHandler","retValue","generate","initialStateOrOptions","resultSelectorOrObservable","initialState","conditionResult","closed","needIterate","iif","trueResult","falseResult","interval","period","isNumeric","NEVER","never","onErrorResumeNext","remainder","subNext","pairs","subscription","Subscription","subscribeTo","using","resourceFactory","observableFactory","hasNext","hasCompleted","_subscribe","hasError","thrownError","BehaviorSubject","_value","getValue","NotificationKind","do","accept","nextOrObserver","toObservable","createNext","undefinedValueNotification","createError","createComplete","completeNotification","_isScalar","operator","observable","observerOrNext","sink","Subscriber","rxSubscriber","toSubscriber","syncErrorThrowable","_trySubscribe","syncErrorThrown","syncErrorValue","promiseCtor","getPromiseCtor","operations","toPromise","OuterSubscriber","notifyNext","outerValue","innerValue","outerIndex","innerIndex","innerSub","notifyError","notifyComplete","windowTime","_events","_infiniteTimeWindow","_windowTime","nextInfiniteTimeWindow","nextTimeWindow","isStopped","ReplayEvent","_getNow","_trimBufferThenGetEvents","eventsCount","spliceCount","Scheduler","SubjectSubscriber","AnonymousSubject","asObservable","SubjectSubscription","subscriberIndex","destinationOrNext","SafeSubscriber","_next","_complete","_unsubscribeAndRecycle","_parentOrParents","_parentSubscriber","_context","__tryOrSetError","__tryOrUnsub","useDeprecatedSynchronousErrorHandling","wrappedComplete","_unsubscribe","_subscriptions","_ctorUnsubscribe","remove","flattenUnsubscriptionErrors","teardown","EMPTY","subscriptionIndex","errs","_enable_super_gross_mode_that_will_cause_bad_things","SimpleInnerSubscriber","SimpleOuterSubscriber","innerSubscribe","innerSubscriber","ConnectableObservable","subjectFactory","_refCount","_isComplete","getSubject","_subject","ConnectableSubscriber","connectableObservableDescriptor","connectableProto","connectable","NONE","combineLatest","observables","CombineLatestOperator","CombineLatestSubscriber","toRespond","unused","_outerValue","oldVal","_tryResultSelector","emptyScheduled","fromArray","merge","concurrent","RaceOperator","RaceSubscriber","hasFirst","timer","dueTime","periodOrScheduler","due","zip","ZipOperator","ZipSubscriber","iterators","StaticArrayIterator","StaticIterator","ZipBufferIterator","stillUnsubscribed","notifyInactive","checkIterators","shouldComplete","_tryresultSelector","nextResult","isComplete","concatAll","FilterOperator","FilterSubscriber","groupBy","keySelector","elementSelector","durationSelector","subjectSelector","GroupByOperator","GroupBySubscriber","groups","attemptedToUnsubscribe","_group","group","groupedObservable","GroupedObservable","GroupDurationSubscriber","removeGroup","groupSubject","refCountSubscription","InnerRefCountSubscription","project","MapOperator","MapSubscriber","mergeAll","mergeMap","ii","MergeMapOperator","MergeMapSubscriber","_tryNext","_innerSub","ish","innerSubscription","observeOn","ObserveOnOperator","ObserveOnSubscriber","scheduleMessage","ObserveOnMessage","RefCountOperator","refCounter","RefCountSubscriber","sharedConnection","scheduleArray","isInteropObservable","scheduleObservable","isPromise","schedulePromise","isArrayLike","isIterable","scheduleIterable","clearInterval","errored","errorValue","Action","nextHandle","RESOLVED","activeHandles","findAndClearHandle","handle","AsapAction","cb","asapScheduler","AsapScheduler","asap","asyncScheduler","async","QueueAction","queueScheduler","QueueScheduler","getSymbolIterator","ArgumentOutOfRangeError","ArgumentOutOfRangeErrorImpl","EmptyError","EmptyErrorImpl","ObjectUnsubscribedError","ObjectUnsubscribedErrorImpl","TimeoutError","TimeoutErrorImpl","UnsubscriptionError","UnsubscriptionErrorImpl","closed_1","hostReportError","parseFloat","pred","notPred","fns","pipeFromArray","obs","subscribeToArray","InnerSubscriber","subscribeToResult","outerSubscriber","audit","AuditOperator","AuditSubscriber","throttled","clearThrottle","auditTime","closingNotifier","BufferOperator","BufferSubscriber","bufferCount","startBufferEvery","BufferCountOperator","subscriberClass","BufferSkipCountSubscriber","BufferCountSubscriber","bufferTime","bufferTimeSpan","bufferCreationInterval","maxBufferSize","BufferTimeOperator","BufferTimeSubscriber","Context","contexts","openContext","timespanOnly","timeSpanOnlyState","closeAction","dispatchBufferTimeSpanOnly","closeState","creationState","dispatchBufferClose","dispatchBufferCreation","filledBufferContext","context_1","onBufferFull","context_2","closeContext","prevContext","bufferToggle","openings","closingSelector","BufferToggleOperator","BufferToggleSubscriber","closeBuffer","openBuffer","trySubscribe","bufferWhen","BufferWhenOperator","BufferWhenSubscriber","subscribing","closingSubscription","selector","CatchOperator","caught","CatchSubscriber","err2","combineAll","concatMap","concatMapTo","innerObservable","CountOperator","CountSubscriber","_tryPredicate","debounce","DebounceOperator","DebounceSubscriber","emitValue","durationSubscription","debounceTime","DebounceTimeOperator","DebounceTimeSubscriber","debouncedSubscription","lastValue","clearDebounce","debouncedNext","defaultIfEmpty","DefaultIfEmptyOperator","DefaultIfEmptySubscriber","delayFor","DelayOperator","DelaySubscriber","delay_1","_schedule","scheduleNotification","DelayMessage","delayWhen","delayDurationSelector","subscriptionDelay","SubscriptionDelayObservable","DelayWhenOperator","DelayWhenSubscriber","delayNotifierSubscriptions","_innerValue","_outerIndex","_innerIndex","removeSubscription","tryComplete","delayNotifier","tryDelay","subscriptionIdx","notifierSubscription","SubscriptionDelaySubscriber","sourceSubscribed","subscribeToSource","dematerialize","DeMaterializeOperator","DeMaterializeSubscriber","distinct","flushes","DistinctOperator","DistinctSubscriber","Set","_useKeySelector","_finalizeNext","distinctUntilChanged","DistinctUntilChangedOperator","DistinctUntilChangedSubscriber","hasKey","distinctUntilKeyChanged","throwIfEmpty","errorFactory","defaultErrorFactory","ThrowIfEmptyOperator","ThrowIfEmptySubscriber","take","TakeOperator","total","TakeSubscriber","elementAt","hasDefaultValue","endWith","EveryOperator","EverySubscriber","everyValueMatch","exhaust","SwitchFirstOperator","SwitchFirstSubscriber","hasSubscription","exhaustMap","ExhaustMapOperator","ExhaustMapSubscriber","tryNext","expand","ExpandOperator","ExpandSubscriber","subscribeToProjection","finalize","FinallyOperator","FinallySubscriber","FindValueOperator","yieldIndex","FindValueSubscriber","ignoreElements","IgnoreElementsOperator","IgnoreElementsSubscriber","IsEmptyOperator","IsEmptySubscriber","takeLast","TakeLastOperator","TakeLastSubscriber","ring","mapTo","MapToOperator","MapToSubscriber","materialize","MaterializeOperator","MaterializeSubscriber","scan","accumulator","seed","hasSeed","ScanOperator","ScanSubscriber","_seed","acc","comparer","mergeMapTo","mergeScan","MergeScanOperator","MergeScanSubscriber","multicast","subjectOrSubjectFactory","MulticastOperator","nextSources","OnErrorResumeNextOperator","OnErrorResumeNextSubscriber","subscribeToNextSource","pairwise","PairwiseOperator","PairwiseSubscriber","hasPrev","pluck","currentProp","plucker","publish","publishBehavior","publishLast","selectorOrScheduler","RepeatOperator","RepeatSubscriber","repeatWhen","notifier","RepeatWhenOperator","RepeatWhenSubscriber","sourceIsBeingSubscribedTo","retries","subscribeToRetries","retriesSubscription","RetryOperator","RetrySubscriber","RetryWhenOperator","RetryWhenSubscriber","sample","SampleOperator","sampleSubscriber","SampleSubscriber","sampleTime","SampleTimeOperator","SampleTimeSubscriber","dispatchNotification","sequenceEqual","compareTo","comparator","SequenceEqualOperator","SequenceEqualSubscriber","_oneComplete","SequenceEqualCompareToSubscriber","checkValues","areEqual","nextB","completeB","shareSubjectFactory","share","shareReplay","configOrBufferSize","useRefCount","shareReplayOperator","single","SingleOperator","SingleSubscriber","seenValue","applySingleValue","singleValue","skip","SkipOperator","SkipSubscriber","skipLast","SkipLastOperator","_skipCount","SkipLastSubscriber","_count","_ring","skipCount","oldValue","skipUntil","SkipUntilOperator","SkipUntilSubscriber","skipWhile","SkipWhileOperator","SkipWhileSubscriber","skipping","tryCallPredicate","startWith","SubscribeOnObservable","delayTime","subscribeOn","SubscribeOnOperator","switchMap","SwitchMapOperator","SwitchMapSubscriber","switchAll","switchMapTo","takeUntil","TakeUntilOperator","takeUntilSubscriber","TakeUntilSubscriber","takeWhile","inclusive","TakeWhileOperator","TakeWhileSubscriber","nextOrComplete","predicateResult","tap","DoOperator","TapSubscriber","_tapNext","_tapError","_tapComplete","defaultThrottleConfig","leading","trailing","throttle","ThrottleOperator","ThrottleSubscriber","_leading","_trailing","_hasValue","_sendValue","_throttled","tryDurationSelector","throttlingDone","throttleTime","ThrottleTimeOperator","ThrottleTimeSubscriber","_hasTrailingValue","_trailingValue","timeInterval","TimeInterval","timeoutWith","withObservable","absoluteTimeout","waitFor","TimeoutWithOperator","TimeoutWithSubscriber","scheduleTimeout","dispatchTimeout","timestamp","Timestamp","toArrayReducer","toArray","windowBoundaries","WindowOperator","windowSubscriber","WindowSubscriber","sourceSubscription","openWindow","prevWindow","newWindow","windowCount","windowSize","startWindowEvery","WindowCountOperator","WindowCountSubscriber","windows","window_1","windowTimeSpan","windowCreationInterval","maxWindowSize","WindowTimeOperator","WindowTimeSubscriber","CountedSubject","_numberOfNextedValues","dispatchWindowClose","dispatchWindowCreation","dispatchWindowTimeSpanOnly","numberOfNextedValues","closeWindow","window_2","timeSpanState","windowToggle","WindowToggleOperator","WindowToggleSubscriber","openSubscription","context_3","context_4","windowWhen","unsubscribeClosingNotification","closingNotification","withLatestFrom","WithLatestFromOperator","WithLatestFromSubscriber","_tryProject","zipAll","copyProps","SafeBuffer","nb","enc","nenc","retried","_normalizeEncoding","normalizeEncoding","utf16Text","utf16End","fillLast","utf8FillLast","base64Text","base64End","simpleWrite","simpleEnd","lastNeed","lastTotal","lastChar","utf8CheckByte","byte","utf8CheckExtraBytes","utf8CheckIncomplete","ReferenceError","instance","_defineProperties","protoProps","staticProps","_getPrototypeOf","subClass","superClass","_typeof","assertThisInitialized","_setPrototypeOf","prim","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","getter","definition","_defineProperty","_classExtractFieldDescriptor","receiver","privateMap","_classPrivateFieldSet","_classPrivateFieldGet","commonjsGlobal","getDefaultExportFromCjs","assignExports","assign$5","global$q","fails$z","functionBindNative","NATIVE_BIND$4","FunctionPrototype$3","apply$6","call$l","functionApply","NATIVE_BIND$3","FunctionPrototype$2","call$k","functionUncurryThis","uncurryThis$z","toString$d","stringSlice$1","classofRaw$2","classofRaw$1","uncurryThis$y","functionUncurryThisClause","documentAll$2","documentAll_1","documentAll$1","isCallable$m","objectGetOwnPropertyDescriptor","descriptors","NATIVE_BIND$2","call$j","functionCall","objectPropertyIsEnumerable","$propertyIsEnumerable$2","getOwnPropertyDescriptor$b","createPropertyDescriptor$7","fails$w","classof$g","$Object$5","indexedObject","isNullOrUndefined$6","isNullOrUndefined$5","$TypeError$h","requireObjectCoercible$5","IndexedObject$3","requireObjectCoercible$4","toIndexedObject$b","isCallable$l","isObject$m","path$z","path$y","global$p","isCallable$k","getBuiltIn$f","objectIsPrototypeOf","engineUserAgent","global$o","userAgent$5","process$4","Deno$1","engineV8Version","V8_VERSION$3","fails$v","symbolConstructorDetection","useSymbolAsUid","getBuiltIn$e","isCallable$j","isPrototypeOf$o","$Object$4","isSymbol$5","$String$4","tryToString$6","isCallable$i","tryToString$5","$TypeError$g","aCallable$e","aCallable$d","isNullOrUndefined$4","getMethod$3","call$i","isCallable$h","isObject$l","$TypeError$f","sharedExports","shared$7","global$n","defineProperty$f","sharedStore","store$2","requireObjectCoercible$3","$Object$3","toObject$e","toObject$d","hasOwnProperty_1","uncurryThis$u","id$2","toString$c","uid$4","shared$6","hasOwn$l","uid$3","NATIVE_SYMBOL$4","Symbol$5","WellKnownSymbolsStore$2","wellKnownSymbol$o","call$h","isObject$k","isSymbol$4","getMethod$2","$TypeError$e","toPrimitive$6","isSymbol$3","toPropertyKey$4","isObject$j","document$3","EXISTS$1","documentCreateElement$1","createElement$1","ie8DomDefine","DESCRIPTORS$h","call$g","propertyIsEnumerableModule$2","createPropertyDescriptor$6","toIndexedObject$a","toPropertyKey$3","hasOwn$k","IE8_DOM_DEFINE$1","$getOwnPropertyDescriptor$2","fails$t","isCallable$g","isForced$2","isForced_1","aCallable$c","NATIVE_BIND$1","bind$j","functionBindContext","objectDefineProperty","v8PrototypeDefineBug","isObject$i","$String$3","$TypeError$d","anObject$f","DESCRIPTORS$f","V8_PROTOTYPE_DEFINE_BUG$1","anObject$e","toPropertyKey$2","$TypeError$c","$defineProperty$1","$getOwnPropertyDescriptor$1","CONFIGURABLE$1","definePropertyModule$4","createPropertyDescriptor$5","createNonEnumerableProperty$9","global$j","apply$5","uncurryThis$s","isCallable$f","getOwnPropertyDescriptor$a","isForced$1","path$x","bind$i","createNonEnumerableProperty$8","hasOwn$j","_export","floor$1","toIntegerOrInfinity$4","toIntegerOrInfinity$3","max$3","min$2","toAbsoluteIndex$5","toIntegerOrInfinity$2","min$1","lengthOfArrayLike$d","toIndexedObject$9","toAbsoluteIndex$4","lengthOfArrayLike$c","createMethod$5","arrayIncludes","hiddenKeys$6","hasOwn$i","toIndexedObject$8","indexOf$4","hiddenKeys$5","push$7","objectKeysInternal","enumBugKeys$3","internalObjectKeys$1","enumBugKeys$2","objectKeys$4","objectGetOwnPropertySymbols","DESCRIPTORS$d","uncurryThis$q","call$f","fails$r","objectKeys$3","getOwnPropertySymbolsModule$3","propertyIsEnumerableModule$1","toObject$c","IndexedObject$2","$assign","defineProperty$e","concat$6","objectAssign","B","chr","T","assign$4","assign$2","_Object$assign","bindExports$2","bind$h","arraySlice$6","uncurryThis$o","aCallable$b","isObject$h","hasOwn$h","arraySlice$5","$Function","concat$5","factories","functionBind","partArgs","argsLength","construct$4","bind$g","path$v","entryVirtual$l","bind$f","isPrototypeOf$n","method$i","FunctionPrototype$1","bind$d","_bindInstanceProperty$1","drawCircle","ctx","beginPath","arc","PI","closePath","drawRoundRect","w","r2d","moveTo","lineTo","drawEllipse","kappa","ox","oy","xe","ye","xm","ym","bezierCurveTo","drawDatabase","hEllipse","ymb","yeb","drawDashedLine","x2","y2","pattern","patternLength","dx","dy","slope","distRemaining","sqrt","patternIndex","draw","xStep","dashLength","shapeMap","circle","dashedLine","diamond","ellipse","ellipse_vis","hexagon","cos","sin","roundRect","square","rect","star","radius","triangle","s2","ir","triangleDown","styleInject","css","ref","insertAt","getElementsByTagName","firstChild","insertBefore","styleSheet","cssText","componentEmitterExports","Emitter","mixin","_callbacks","once","removeAllListeners","callbacks","listeners","hasListeners","fromExports$2","from$7","test$2","set$4","get$7","toStringTagSupport","TO_STRING_TAG_SUPPORT$2","isCallable$e","TO_STRING_TAG$3","$Object$2","classof$f","classof$e","$String$2","toString$b","uncurryThis$n","toIntegerOrInfinity$1","toString$a","requireObjectCoercible$2","charAt$3","charCodeAt$1","createMethod$4","stringMultibyte","isCallable$d","WeakMap$1","weakMapBasicDetection","uid$2","keys$7","sharedKey$4","NATIVE_WEAK_MAP$1","global$h","isObject$g","createNonEnumerableProperty$7","hasOwn$g","shared$4","sharedKey$3","hiddenKeys$4","TypeError$3","store$1","internalState","DESCRIPTORS$c","hasOwn$f","functionName","objectDefineProperties","DESCRIPTORS$b","definePropertyModule$3","anObject$d","toIndexedObject$7","objectKeys$2","html$2","anObject$c","definePropertiesModule$1","enumBugKeys$1","hiddenKeys$3","html$1","PROTOTYPE$1","IE_PROTO$1","IteratorPrototype$1","objectCreate","correctPrototypeGetter","hasOwn$e","isCallable$c","toObject$b","CORRECT_PROTOTYPE_GETTER$1","$Object$1","ObjectPrototype$2","objectGetPrototypeOf","createNonEnumerableProperty$6","defineBuiltIn$6","fails$p","isCallable$b","isObject$f","create$c","getPrototypeOf$a","defineBuiltIn$5","ITERATOR$6","BUGGY_SAFARI_ITERATORS$1","NEW_ITERATOR_PROTOTYPE","iteratorsCore","classof$d","objectToString","defineProperty$d","createNonEnumerableProperty$5","hasOwn$d","toString$9","TO_STRING_TAG$2","setToStringTag$7","create$b","createPropertyDescriptor$4","setToStringTag$6","Iterators$5","returnThis$1","uncurryThis$m","aCallable$a","isCallable$a","$String$1","$TypeError$b","anObject$b","objectSetPrototypeOf","$$Y","call$e","getPrototypeOf$9","setToStringTag$5","defineBuiltIn$4","Iterators$4","PROPER_FUNCTION_NAME$1","ITERATOR$5","iteratorDefine","createIterResultObject$3","charAt$2","toString$8","InternalStateModule$6","defineIterator$2","createIterResultObject$2","setInternalState$6","getInternalState$2","call$d","anObject$a","getMethod$1","iteratorClose$2","anObject$9","iteratorClose$1","Iterators$3","ITERATOR$4","ArrayPrototype$i","isArrayIteratorMethod$2","isCallable$9","inspectSource$2","uncurryThis$k","fails$o","isCallable$8","classof$c","inspectSource$1","construct$3","exec$2","isConstructor$4","toPropertyKey$1","definePropertyModule$2","createPropertyDescriptor$3","createProperty$6","classof$b","isNullOrUndefined$3","Iterators$2","ITERATOR$3","getIteratorMethod$9","call$c","aCallable$9","anObject$8","tryToString$4","getIteratorMethod$8","$TypeError$a","getIterator$8","bind$c","call$b","toObject$a","callWithSafeIterationClosing","isArrayIteratorMethod$1","isConstructor$3","lengthOfArrayLike$b","createProperty$5","getIterator$7","getIteratorMethod$7","$Array$3","ITERATOR$2","checkCorrectnessOfIteration$2","arrayLike","IS_CONSTRUCTOR","mapfn","mapping","from$4","_Array$from$1","getIteratorMethodExports$1","getIteratorMethod$6","getIteratorMethodExports","getIteratorMethod$5","toIndexedObject$6","Iterators$1","InternalStateModule$5","defineIterator$1","createIterResultObject$1","setInternalState$5","getInternalState$1","getIteratorMethod_1","global$g","classof$a","createNonEnumerableProperty$4","TO_STRING_TAG$1","getIteratorMethod$1","_getIteratorMethod","getOwnPropertySymbolsExports","getOwnPropertySymbols$2","objectGetOwnPropertyNames","hiddenKeys$2","objectGetOwnPropertyNamesExternal","toAbsoluteIndex$3","lengthOfArrayLike$a","createProperty$4","$Array$2","max$2","arraySliceSimple","classof$9","toIndexedObject$5","$getOwnPropertyNames$1","arraySlice$4","defineProperty$c","defineBuiltInAccessor$3","wellKnownSymbolWrapped","wellKnownSymbol$d","path$t","hasOwn$c","wrappedWellKnownSymbolModule$1","defineProperty$b","wellKnownSymbolDefine","call$a","getBuiltIn$b","wellKnownSymbol$c","defineBuiltIn$3","symbolDefineToPrimitive","classof$8","isArray$g","isArray$f","isConstructor$2","isObject$e","SPECIES$5","$Array$1","arraySpeciesCreate$4","bind$b","IndexedObject$1","toObject$9","lengthOfArrayLike$9","arraySpeciesCreate$3","push$6","createMethod$3","arrayIteration","$$W","global$f","call$9","uncurryThis$i","DESCRIPTORS$a","NATIVE_SYMBOL$3","fails$n","hasOwn$b","isPrototypeOf$m","anObject$7","toIndexedObject$4","createPropertyDescriptor$2","objectKeys$1","getOwnPropertyNamesModule$2","getOwnPropertySymbolsModule$2","getOwnPropertyDescriptorModule$3","definePropertyModule$1","defineBuiltIn$2","defineBuiltInAccessor$2","shared$3","hiddenKeys$1","uid$1","wellKnownSymbol$a","defineWellKnownSymbol$l","defineSymbolToPrimitive$1","setToStringTag$4","InternalStateModule$4","$forEach$1","setInternalState$4","ObjectPrototype$1","TypeError$2","nativeGetOwnPropertyDescriptor$1","push$5","WellKnownSymbolsStore$1","$propertyIsEnumerable$1","symbolRegistryDetection","$$V","getBuiltIn$a","hasOwn$a","toString$7","shared$2","NATIVE_SYMBOL_REGISTRY$1","SymbolToStringRegistry$1","$$U","hasOwn$9","isSymbol$2","tryToString$3","isArray$e","isCallable$7","classof$7","toString$6","push$4","$$T","getBuiltIn$9","apply$4","call$8","uncurryThis$g","fails$m","isCallable$6","isSymbol$1","arraySlice$3","NATIVE_SYMBOL$1","exec$1","charAt$1","replace$2","getOwnPropertySymbolsModule$1","toObject$8","_Object$getOwnPropertySymbols","getOwnPropertyDescriptorExports$3","getOwnPropertyDescriptor$9","getOwnPropertyDescriptorExports$2","getOwnPropertyDescriptor$8","$$R","fails$k","toIndexedObject$3","DESCRIPTORS$9","Object$5","getOwnPropertyDescriptor$7","getOwnPropertyDescriptor$6","_Object$getOwnPropertyDescriptor$1","getOwnPropertyDescriptorsExports","getOwnPropertyDescriptors$2","getBuiltIn$8","getOwnPropertyNamesModule$1","anObject$6","concat$4","ownKeys$b","ownKeys$a","toIndexedObject$2","getOwnPropertyDescriptorModule$2","createProperty$3","getOwnPropertyDescriptors","_Object$getOwnPropertyDescriptors","definePropertiesExports$1","defineProperties$4","definePropertiesExports","defineProperties$3","$$P","DESCRIPTORS$7","defineProperties$2","Object$4","defineProperties$1","D","_Object$defineProperties","definePropertyExports$3","defineProperty$a","definePropertyExports$2","defineProperty$9","$$O","DESCRIPTORS$6","defineProperty$8","Object$3","defineProperty$7","defineProperty$6","_Object$defineProperty$1","_classCallCheck","definePropertyExports$1","defineProperty$5","definePropertyExports","defineProperty$2","_Object$defineProperty","symbolExports$2","symbol$6","symbolExports$1","symbol$5","$TypeError$9","doesNotExceedSafeInteger$3","fails$j","V8_VERSION$2","SPECIES$4","arrayMethodHasSpeciesSupport$5","$$N","fails$i","isArray$d","isObject$d","toObject$7","lengthOfArrayLike$8","doesNotExceedSafeInteger$2","createProperty$2","arraySpeciesCreate$2","arrayMethodHasSpeciesSupport$4","V8_VERSION$1","getBuiltIn$7","setToStringTag$3","symbol$3","symbol$2","$$M","uncurryThis$e","Symbol$4","thisSymbolValue$1","$$L","getBuiltIn$5","uncurryThis$d","wellKnownSymbol$7","Symbol$3","getOwnPropertyNames$4","symbol$1","_Symbol$1","iteratorExports$2","iterator$6","iteratorExports$1","iterator$5","iterator$3","iterator$1","_Symbol$iterator$1","_typeof$1","toPrimitiveExports$1","toPrimitive$5","toPrimitiveExports","toPrimitive$4","_Symbol$toPrimitive","_createClass","isArrayExports$2","isArray$c","isArrayExports$1","isArray$b","isArray$8","isArray$6","_Array$isArray$1","sliceExports$2","slice$7","sliceExports$1","slice$6","$$J","isArray$5","isConstructor$1","isObject$c","toAbsoluteIndex$2","lengthOfArrayLike$7","toIndexedObject$1","createProperty$1","wellKnownSymbol$6","nativeSlice","HAS_SPECIES_SUPPORT$3","SPECIES$3","max$1","slice$5","isPrototypeOf$l","method$h","ArrayPrototype$h","slice$3","slice$1","_sliceInstanceProperty$1","fromExports$1","from$3","fromExports","_Array$from","_arrayLikeToArray$8","arr2","_unsupportedIterableToArray$8","minLen","_slicedToArray","_arrayWithHoles","_s","_r","_n","_iterableToArrayLimit","_nonIterableRest","_toConsumableArray","_arrayWithoutHoles","iter","_iterableToArray","_nonIterableSpread","symbolExports","_Symbol","concatExports","concat$3","concat$2","isPrototypeOf$k","method$g","ArrayPrototype$g","_concatInstanceProperty","sliceExports","_sliceInstanceProperty","ownKeysExports","ownKeys$9","ownKeys$6","_Reflect$ownKeys","isArrayExports","_Array$isArray","mapExports$1","map$6","map$5","isPrototypeOf$j","method$f","ArrayPrototype$f","map$3","_mapInstanceProperty","keysExports$1","keys$6","toObject$6","keys$4","_Object$keys","nowExports","now$3","$$F","$Date","thisTimeValue","now$1","_Date$now","forEachExports$2","forEach$a","fails$g","arrayMethodIsStrict$6","arrayForEach","forEach$8","classof$6","hasOwn$8","isPrototypeOf$i","method$e","ArrayPrototype$e","DOMIterables$3","forEach$6","_forEachInstanceProperty","reverseExports$2","reverse$7","$$D","isArray$3","nativeReverse","reverse","test$1","reverse$6","isPrototypeOf$h","method$d","ArrayPrototype$d","reverse$4","_reverseInstanceProperty","spliceExports","splice$4","DESCRIPTORS$5","isArray$2","$TypeError$8","getOwnPropertyDescriptor$5","SILENT_ON_NON_WRITABLE_LENGTH_SET","tryToString$2","$TypeError$7","deletePropertyOrThrow$2","$$C","toObject$5","toAbsoluteIndex$1","lengthOfArrayLike$6","setArrayLength","doesNotExceedSafeInteger$1","arraySpeciesCreate$1","deletePropertyOrThrow$1","HAS_SPECIES_SUPPORT$1","deleteCount","insertCount","actualDeleteCount","actualStart","splice$3","isPrototypeOf$g","method$c","ArrayPrototype$c","splice$1","_spliceInstanceProperty","includesExports","includes$4","$includes","includes$3","isObject$b","classof$5","MATCH$1","$TypeError$6","MATCH","$$A","notARegExp","isRegExp","requireObjectCoercible$1","toString$5","stringIndexOf","regexp","error1","error2","correctIsRegExpLogic","searchString","includes$2","isPrototypeOf$f","arrayMethod","stringMethod","ArrayPrototype$b","StringPrototype$1","_includesInstanceProperty","getPrototypeOfExports$2","getPrototypeOf$8","toObject$4","nativeGetPrototypeOf","getPrototypeOf$6","_Object$getPrototypeOf$1","filterExports","filter$3","$filter","filter$2","isPrototypeOf$e","method$b","ArrayPrototype$a","_filterInstanceProperty","valuesExports$1","values$6","DESCRIPTORS$4","uncurryThis$9","push$3","createMethod$2","$values","values$4","_parseIntExports","_parseInt$3","whitespaces$4","toString$4","whitespaces$3","replace$1","ltrim","rtrim","createMethod$1","stringTrim","global$d","fails$d","uncurryThis$7","toString$3","trim$5","whitespaces$2","$parseInt$1","Symbol$2","ITERATOR$1","hex","numberParseInt","_parseInt$1","_parseInt","indexOfExports","indexOf$3","$$v","$indexOf","arrayMethodIsStrict$4","nativeIndexOf","NEGATIVE_ZERO","searchElement","indexOf$2","isPrototypeOf$d","method$a","ArrayPrototype$9","_indexOfInstanceProperty","trimExports","trim$4","whitespaces$1","$trim","trim$3","isPrototypeOf$c","method$9","StringPrototype","trim$1","createExports$2","create$a","Object$2","create$7","_Object$create$1","stringifyExports","stringify$2","path$e","apply$3","_JSON$stringify","setTimeoutExports","setTimeout$3","engineIsBun","$TypeError$5","validateArgumentsLength$2","global$c","apply$2","isCallable$5","arraySlice$2","validateArgumentsLength$1","Function$2","schedulersFix$2","$$s","global$b","setInterval$2","$$r","global$a","setTimeout$2","setTimeout$1","_setTimeout","fillExports","fill$4","toObject$3","lengthOfArrayLike$5","endPos","fill$2","isPrototypeOf$b","method$8","ArrayPrototype$8","_fillInstanceProperty","_extends","_inheritsLoose","_assertThisInitialized$1","win","assign$1","nextKey","VENDOR_PREFIXES","TEST_ELEMENT","round","abs$1","prefixed","prefix","camelProp","PREFIXED_TOUCH_ACTION","NATIVE_TOUCH_ACTION","TOUCH_ACTION_COMPUTE","TOUCH_ACTION_AUTO","TOUCH_ACTION_MANIPULATION","TOUCH_ACTION_NONE","TOUCH_ACTION_PAN_X","TOUCH_ACTION_PAN_Y","TOUCH_ACTION_MAP","touchMap","cssSupports","CSS","supports","getTouchActionProps","SUPPORT_TOUCH","SUPPORT_POINTER_EVENTS","SUPPORT_ONLY_TOUCH","INPUT_TYPE_TOUCH","INPUT_TYPE_MOUSE","COMPUTE_INTERVAL","INPUT_START","INPUT_END","INPUT_CANCEL","DIRECTION_NONE","DIRECTION_LEFT","DIRECTION_RIGHT","DIRECTION_UP","DIRECTION_DOWN","DIRECTION_HORIZONTAL","DIRECTION_VERTICAL","DIRECTION_ALL","PROPS_XY","PROPS_CLIENT_XY","each","boolOrFn","inStr","TouchAction","manager","_proto","compute","update","touchAction","recognizers","recognizer","getTouchAction","hasPanX","hasPanY","cleanTouchActions","preventDefaults","srcEvent","direction","offsetDirection","prevented","preventDefault","hasNone","isTapPointer","pointers","isTapMovement","distance","isTapTouchTime","deltaTime","preventSrc","hasParent","parentNode","getCenter","pointersLength","clientX","clientY","simpleCloneInputData","timeStamp","center","deltaX","deltaY","getDistance","p1","p2","getAngle","atan2","getDirection","getVelocity","inputHandler","eventType","pointersLen","changedPointersLen","changedPointers","isFirst","isFinal","firstInput","firstMultiple","offsetCenter","angle","offsetDelta","prevDelta","prevInput","computeDeltaXY","overallVelocity","overallVelocityX","overallVelocityY","scale","rotation","getRotation","maxPointers","velocity","velocityX","velocityY","lastInterval","computeIntervalInputData","srcEventTarget","composedPath","computeInputData","recognize","splitStr","addEventListeners","removeEventListeners","getWindowForElement","doc","ownerDocument","defaultView","Input","inputTarget","domHandler","ev","evEl","evTarget","evWin","inArray","findByKey","POINTER_INPUT_MAP","pointerdown","pointermove","pointerup","pointercancel","pointerout","IE10_POINTER_TYPE_ENUM","POINTER_ELEMENT_EVENTS","POINTER_WINDOW_EVENTS","MSPointerEvent","PointerEvent","PointerEventInput","_Input","pointerEvents","removePointer","eventTypeNormalized","pointerType","isTouch","storeIndex","pointerId","button","uniqueArray","TOUCH_INPUT_MAP","touchstart","touchmove","touchend","touchcancel","TouchInput","targetIds","touches","getTouches","targetTouches","allTouches","identifier","changedTouches","changedTargetTouches","touch","MOUSE_INPUT_MAP","mousedown","mousemove","mouseup","MouseInput","pressed","which","DEDUP_TIMEOUT","setLastTouch","eventData","primaryTouch","lastTouch","lts","lastTouches","recordTouches","isSyntheticEvent","TouchMouseInput","_manager","inputEvent","inputData","isMouse","sourceCapabilities","firesTouchEvents","mouse","invokeArrayArg","STATE_FAILED","_uniqueId","getRecognizerByNameIfManager","otherRecognizer","stateStr","Recognizer","simultaneous","requireFail","recognizeWith","dropRecognizeWith","requireFailure","dropRequireFailure","hasRequireFailures","canRecognizeWith","additionalEvent","tryEmit","canEmit","inputDataClone","TapRecognizer","_Recognizer","taps","threshold","posThreshold","pTime","pCenter","_timer","_input","validPointers","validMovement","validTouchTime","failTimeout","validInterval","validMultiTap","tapCount","AttrRecognizer","attrTest","optionPointers","isRecognized","isValid","directionStr","PanRecognizer","_AttrRecognizer","pX","pY","directionTest","hasMoved","SwipeRecognizer","PinchRecognizer","inOut","RotateRecognizer","PressRecognizer","validTime","defaults","domEvents","inputClass","cssProps","userSelect","touchSelect","touchCallout","contentZooming","userDrag","tapHighlightColor","preset","toggleCssProps","oldCssProps","Manager","handlers","force","curRecognizer","existing","targetRecognizer","events","gestureEvent","gesture","triggerDomEvent","SINGLE_TOUCH_INPUT_MAP","SingleTouchInput","started","normalizeSingleTouches","changed","deprecate","deprecationMessage","extend","merge$2","inherit","base","childP","baseP","bindFn","Hammer$2","Hammer","VERSION","INPUT_MOVE","STATE_POSSIBLE","STATE_BEGAN","STATE_CHANGED","STATE_ENDED","STATE_RECOGNIZED","STATE_CANCELLED","Tap","Pan","Swipe","Pinch","Rotate","Press","RealHammer","_createForOfIteratorHelper$7","allowArrayLike","_context21","_arrayLikeToArray$7","_unsupportedIterableToArray$7","normalCompletion","didErr","_e2","DELETE","deepObjectAssign","merged","deepObjectAssignNonentry","stripDelete","_len2","_key2","_context2","_step","_iterator","_Object$keys$1","Alea","_len3","_key3","_mashSeed","mash","Mash","s0","s1","mashSeed","_mashSeed2","uint32","fract53","algorithm","AleaImplementation","Hammer$1","hammerMock","Activator$1","container","_context3","_cleanupQueue","_dom","overlay","classList","hammer","_onTapOverlay","stopPropagation","_onClick","_hasParent","deactivate","_escListener","keyCode","_context4","_context5","_step2","_iterator2","activate","fullHexRE","shortHexRE","rgbRE","rgbaRE","recursiveDOMDelete","DOMobject","hasChildNodes","isObject$a","copyOrDelete","allowDeletion","doDeletion","fillIfDefined","aProp","bProp","selectiveDeepExtend","deepExtend","selectiveNotDeepExtend","propsToExclude","protoExtend","_context6","copyAndExtendArray","newValue","_context7","getAbsoluteTop","elem","getBoundingClientRect","top","forEach$5","hexToRGB","overrideOpacity","color","opacity","rgb","_rgb","RGBToHex","red","green","blue","_context10","parseColor","inputColor","defaultColor","colorStr","isValidRGB","_context11","isValidHex","hsv","RGBToHSV","hexToHSV","lighterColorHSV","darkerColorHSV","darkerColorHex","HSVToHex","lighterColorHex","background","border","highlight","hover","minRGB","maxRGB","HSVToRGB","q","bridgeObject","referenceObject","Element","objectTo","mergeOptions","mergeTarget","option","globalOptions","isPresent","srcOption","globalOption","globalEnabled","enabled","doMerge","easingFunctions","linear","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","topMost","pile","accessors","candidate","_step3","_iterator3","member","htmlColors","black","navy","darkblue","mediumblue","darkgreen","teal","darkcyan","deepskyblue","darkturquoise","mediumspringgreen","lime","springgreen","aqua","cyan","midnightblue","dodgerblue","lightseagreen","forestgreen","seagreen","darkslategray","limegreen","mediumseagreen","turquoise","royalblue","steelblue","darkslateblue","mediumturquoise","indigo","darkolivegreen","cadetblue","cornflowerblue","mediumaquamarine","dimgray","slateblue","olivedrab","slategray","lightslategray","mediumslateblue","lawngreen","chartreuse","aquamarine","maroon","purple","olive","gray","skyblue","lightskyblue","blueviolet","darkred","darkmagenta","saddlebrown","darkseagreen","lightgreen","mediumpurple","darkviolet","palegreen","darkorchid","yellowgreen","sienna","brown","darkgray","lightblue","greenyellow","paleturquoise","lightsteelblue","powderblue","firebrick","darkgoldenrod","mediumorchid","rosybrown","darkkhaki","silver","mediumvioletred","indianred","peru","chocolate","tan","lightgrey","palevioletred","thistle","orchid","goldenrod","crimson","gainsboro","plum","burlywood","lightcyan","lavender","darksalmon","violet","palegoldenrod","lightcoral","khaki","aliceblue","honeydew","azure","sandybrown","wheat","beige","whitesmoke","mintcream","ghostwhite","salmon","antiquewhite","linen","lightgoldenrodyellow","oldlace","fuchsia","magenta","deeppink","orangered","tomato","hotpink","coral","darkorange","lightsalmon","orange","lightpink","pink","gold","peachpuff","navajowhite","moccasin","bisque","mistyrose","blanchedalmond","papayawhip","lavenderblush","seashell","cornsilk","lemonchiffon","floralwhite","snow","yellow","lightyellow","ivory","white","ColorPicker$1","pixelRatio","generated","centerCoordinates","hueCircle","initialColor","previousColor","applied","updateCallback","closeCallback","_bindHammer","_setSize","setInitial","rgba","htmlColor","_isColorString","rgbaArray","isValidRGBA","_rgbaArray","rgbObj","alpha","_setColor","_generateHueCircle","_hide","_updatePicker","setColor","alert","angleConvert","colorPickerSelector","clientWidth","clientHeight","colorPickerCanvas","getContext","pixelRation","devicePixelRatio","webkitBackingStorePixelRatio","mozBackingStorePixelRatio","msBackingStorePixelRatio","oBackingStorePixelRatio","backingStorePixelRatio","setTransform","clearRect","putImageData","fillStyle","brightnessRange","opacityRange","initialColorDiv","backgroundColor","newColorDiv","width","height","_context16","_context17","_context18","_context19","className","colorPickerDiv","noCanvas","fontWeight","padding","innerText","opacityDiv","brightnessDiv","arrowDiv","me","onchange","_setOpacity","oninput","_setBrightness","brightnessLabel","opacityLabel","cancelButton","onclick","applyButton","_apply","saveButton","_save","loadButton","_loadLast","drag","pinch","_moveSelector","hue","sat","sfac","fillRect","strokeStyle","stroke","getImageData","centerY","centerX","newTop","newLeft","wrapInTag","_len5","_key5","allOptions$1","Configurator$1","parentModule","defaultContainer","configureOptions","hideOption","changedOptions","allowCreation","initialized","popupCounter","defaultOptions","showButton","moduleOptions","domElements","popupDiv","popupLimit","popupHistory","colorPicker","_removePopup","_clean","show","_option","_handleObject","_makeItem","_makeHeader","_makeButton","_push","_showPopupIfNeeded","_len6","_key6","objectLabel","select","selectedValue","_option2","selected","_update","_makeLabel","popupString","popupValue","factor","itemIndex","_setupPopup","generateButton","_printOptions","onmouseover","onmouseout","optionsContainer","_this5","hideTimeout","deleteTimeout","_this6","checkbox","_this7","_showColorPicker","_this8","insertTo","setUpdateCallback","colorString","setCloseCallback","checkOnly","visibleInSet","subObj","newPath","_getValue","_handleArray","_makeTextInput","_makeCheckbox","enabledPath","enabledValue","_label","_makeColorField","_makeDropdown","_makeRange","_constructOptions","emitter","setOptions","optionsObj","pointer","getOptions","Popup$1","overflowMethod","hidden","doShow","maxHeight","maxWidth","isLeft","isTop","visibility","hide","errorFound","VALIDATOR_PRINT_STYLE$1","Validator$1","referenceOptions","subObject","usedOptions","parse","_option3","__any__","referenceOption","is_object","getType","refOptionObj","__type__","checkFields","getSuggestion","printLocation","optionType","refOptionType","print","nodeType","_isAMomentObject","localSearch","findInOptions","globalSearch","indexMatch","closestMatch","recursive","closestMatchPath","lowerCaseOption","_context20","levenshteinDistance","_i3","_j2","matrix","Activator","Configurator","Popup","VALIDATOR_PRINT_STYLE","Validator","NODE_ATTR_MAPPING","fontsize","fontcolor","labelfontcolor","fontname","fillcolor","tooltip","labeltooltip","EDGE_ATTR_MAPPING","TOKENTYPE","NULL","DELIMITER","IDENTIFIER","UNKNOWN","DELIMITERS","dot","index$1","token","tokenType","nextPreview","isAlphaNumeric","charCode","merge$1","setValue","addNode","graph","graphs","attr","addEdge","edge","edges","createEdge","arrows","getToken","isComment","c2","newSyntaxError","SyntaxError","chop","parseStatements","parseStatement","subgraph","parseSubgraph","parseEdge","parseAttributeList","parseAttributeStatement","parseNodeStatement","subgraphs","nof_attr_list","edgeStyles","dashed","solid","dotted","arrowTypes","box","crow","curve","icurve","normal","inv","tee","vee","attr_list","attr_names","from_type","to_type","dir_type","idx_arrow","tmp_attr_list","maxLength","setProp","convertAttr","converted","visProp","visPropI","DOTToGraph","dotData","strict","parseGraph","parseDOT","graphData","dotNode","graphNode","image","shape","convertEdge","dotEdge","graphEdge","array1","array2","subEdge","elem1","elem2","locales","cn","addDescription","back","createEdgeError","del","deleteClusterError","edgeDescription","edit","editClusterError","editEdge","editEdgeDescription","editNode","cs","de","en","es","fr","nl","pt","ru","uk","CachedImage","NUM_ITERATIONS","Image","canvas","h2","h4","h8","h16","w2","w4","w8","w16","coordinates","_fillMipMap","drawImage","iterations","_to","Images","images","imageBroken","brokenUrl","imageToLoadBrokenUrlOn","imageToRedrawWith","cachedImage","img","onload","_fixImageCoordinates","_redrawWithImage","_tryloadBrokenUrl","imageToCache","offsetWidth","offsetHeight","mapExports","map$2","internalMetadataExports","internalMetadata","arrayBufferNonExtensible","fails$a","isObject$9","classof$4","objectIsExtensible","freezing","$$p","uncurryThis$5","isObject$8","hasOwn$7","defineProperty$1","isExtensible$1","FREEZING$1","id$1","bind$a","call$7","anObject$5","tryToString$1","lengthOfArrayLike$4","isPrototypeOf$a","getIterator$6","$TypeError$4","iterate$8","isPrototypeOf$9","$TypeError$3","anInstance$4","$$o","global$9","InternalMetadataModule$1","fails$8","createNonEnumerableProperty$3","iterate$7","anInstance$3","isCallable$4","isObject$7","setToStringTag$1","forEach$4","DESCRIPTORS$2","setInternalState$3","internalStateGetterFor$2","collection$3","defineBuiltIn$1","defineBuiltIns$3","getBuiltIn$4","defineBuiltInAccessor$1","DESCRIPTORS$1","SPECIES$2","setSpecies$2","create$6","defineBuiltIns$2","bind$9","anInstance$2","isNullOrUndefined$2","iterate$6","setSpecies$1","setInternalState$2","internalStateGetterFor$1","collectionStrong$2","previous","getEntry","removed","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","_Map","Groups","_defaultIndex","_groupIndex","_defaultGroups","useDefaultGroups","optionFields","groupName","_groups","_groupNames","groupname","shouldCreate","_index","isNanExports","isNan$2","isNan","_Number$isNaN","_isFiniteExports","_isFinite$2","globalIsFinite","_isFinite","_Number$isFinite","someExports","some$3","$some","some$2","isPrototypeOf$8","method$7","ArrayPrototype$7","_someInstanceProperty","_assertThisInitialized","createExports$1","create$5","createExports","create$2","_Object$create","setPrototypeOfExports$1","setPrototypeOf$7","setPrototypeOfExports","setPrototypeOf$6","setPrototypeOf$1","_Object$setPrototypeOf","bindExports$1","bind$8","bindExports","bind$5","_bindInstanceProperty","_inherits","_possibleConstructorReturn","getPrototypeOfExports$1","getPrototypeOf$5","getPrototypeOfExports","getPrototypeOf$2","_Object$getPrototypeOf","regeneratorRuntimeExports","regeneratorRuntime$1","_typeofExports","_Symbol$iterator","forEachExports$1","forEach$3","forEachExports","promiseExports$1","promise$6","promiseExports","promise$5","hasOwn$6","ownKeys$5","getOwnPropertyDescriptorModule$1","isObject$6","createNonEnumerableProperty$2","$Error$1","createPropertyDescriptor$1","errorStackInstallable","createNonEnumerableProperty$1","toString$2","$$j","isPrototypeOf$7","getPrototypeOf$1","create$1","iterate$5","push$2","engineIsNode","$TypeError$2","aConstructor$2","anObject$4","aConstructor$1","isNullOrUndefined$1","SPECIES$1","speciesConstructor$2","engineIsIos","global$7","apply$1","bind$4","isCallable$3","hasOwn$5","fails$6","arraySlice$1","IS_IOS$1","IS_NODE$4","set$3","process$3","Function$1","String$1","queue$2","task$1","Queue$3","notify$1","promise$4","queue$1","engineIsIosPebble","engineIsWebosWebkit","global$6","bind$3","getOwnPropertyDescriptor$4","Queue$2","IS_NODE$3","document$2","process$2","Promise$1","microtask$1","microtask_1","perform$6","promiseNativeConstructor","engineIsDeno","engineIsBrowser","global$4","NativePromiseConstructor$5","isCallable$2","NativePromisePrototype$2","NATIVE_PROMISE_REJECTION_EVENT$1","FORCED_PROMISE_CONSTRUCTOR$5","promiseConstructorDetection","newPromiseCapability$2","aCallable$8","$TypeError$1","$$i","IS_NODE$1","global$3","call$6","aCallable$7","isCallable$1","isObject$5","anInstance$1","speciesConstructor$1","perform$5","Queue$1","InternalStateModule$1","NativePromiseConstructor$4","newPromiseCapabilityModule$6","FORCED_PROMISE_CONSTRUCTOR$4","setInternalState$1","NativePromisePrototype$1","TypeError$1","document$1","process$1","newPromiseCapability$1","bind$2","NativePromiseConstructor$3","promiseStaticsIncorrectIteration","call$5","aCallable$6","newPromiseCapabilityModule$5","perform$4","iterate$4","$$g","FORCED_PROMISE_CONSTRUCTOR$2","call$4","aCallable$5","newPromiseCapabilityModule$4","perform$3","iterate$3","call$3","newPromiseCapabilityModule$3","anObject$3","isObject$4","promiseResolve$2","$$d","NativePromiseConstructor$1","promiseResolve$1","call$2","aCallable$4","newPromiseCapabilityModule$2","perform$2","iterate$2","call$1","aCallable$3","getBuiltIn$2","newPromiseCapabilityModule$1","perform$1","iterate$1","$$a","fails$5","getBuiltIn$1","promise$1","reverseExports$1","reverse$3","reverseExports","_Promise","_regeneratorRuntime","Op","iteratorSymbol","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","innerFn","outerFn","tryLocsList","protoGenerator","Generator","makeInvokeMethod","tryCatch","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","NativeIteratorPrototype","Gp","defineIteratorMethods","_invoke","AsyncIterator","PromiseImpl","invoke","__await","unwrapped","previousPromise","callInvokeWithMethodAndArg","delegateResult","maybeInvokeDelegate","_sent","dispatchException","abrupt","methodName","resultName","nextLoc","pushTryEntry","locs","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","doneResult","displayName","isGeneratorFunction","genFun","ctor","mark","awrap","skipTempReset","rootRecord","rval","exception","loc","hasCatch","hasFinally","finallyEntry","finish","thrown","delegateYield","runtime","regenerator","regeneratorRuntime","accidentalStrictMode","reduceExports","reduce$3","aCallable$2","toObject$2","lengthOfArrayLike$3","arrayReduce","reduce$2","isPrototypeOf$6","method$6","ArrayPrototype$6","_reduceInstanceProperty","flatMapExports","flatMap$3","isArray$1","lengthOfArrayLike$2","bind$1","flattenIntoArray$1","original","sourceLen","depth","mapper","elementLen","targetIndex","sourceIndex","mapFn","flattenIntoArray","aCallable$1","toObject$1","lengthOfArrayLike$1","flatMap$2","isPrototypeOf$5","method$5","ArrayPrototype$5","setExports","set$2","_Set","iteratorExports","_Symbol$iterator2","getIteratorExports$1","getIterator$5","getIteratorExports","_getIterator","sortExports","sort$3","mergeSort","comparefn","middle","insertionSort","llength","rlength","lindex","rindex","arraySort","firefox","engineFfVersion","engineIsIeOrEdge","webkit","engineWebkitVersion","$$6","uncurryThis$3","deletePropertyOrThrow","toString$1","fails$4","internalSort","arrayMethodIsStrict$1","FF","IE_OR_EDGE","V8","WEBKIT","nativeSort","push$1","FAILS_ON_UNDEFINED","FAILS_ON_NULL","STRICT_METHOD$1","STABLE_SORT","itemsLength","items","getSortCompare","sort$2","isPrototypeOf$4","method$4","ArrayPrototype$4","_sortInstanceProperty","keysExports","keys$3","keys$2","classof$2","hasOwn$4","isPrototypeOf$3","method$3","ArrayPrototype$3","DOMIterables$2","_keysInstanceProperty","valuesExports","values$3","values$2","classof$1","hasOwn$3","isPrototypeOf$2","method$2","ArrayPrototype$2","DOMIterables$1","_valuesInstanceProperty","entriesExports","entries$3","entries$2","hasOwn$2","isPrototypeOf$1","method$1","ArrayPrototype$1","_entriesInstanceProperty","constructExports","construct$2","$$5","anObject$2","isObject$3","fails$3","nativeConstruct","NEW_TARGET_BUG","ARGS_BUG","FORCED$2","Target","newTarget","$args","_Reflect$construct","getRandomValues","rnds8","rng","crypto","byteToHex","randomUUID","v4","rnds","unsafeStringify","ownKeys$4","enumerableOnly","symbols","_objectSpread$4","_context32","_context33","_createForOfIteratorHelper$6","_context31","_arrayLikeToArray$6","_unsupportedIterableToArray$6","isId","_flushIfNeeded","_extended","_len","_queue","_timeout","DataSetPart","senderId","_context8","_subscribers","_context9","DataStream","_pairs","_step$value","t0","_step2$value","_step3$value","_context12","_iterator4","_step4","_step4$value","_context13","_context14","_context15","_step5","_iterator5","_step5$value","toIdArray","toItemArray","_step6","_iterator6","_step6$value","_callee","_iterator7","_step7","_step7$value","_step8","_iterator8","_step8$value","_callee2","_iterator9","_step9","_step9$value","curr","maxItem","maxValue","_curr$value","minItem","minValue","_curr$value2","_value2","_step10","_iterator10","_step10$value","_ref2","_ref3","idA","itemA","_ref4","idB","itemB","DataSet","_DataSetPart","_isNativeReflectConstruct$t","_options","_data","_idProp","fieldId","addedIds","idsToAdd","_addItem","_trigger","updatedIds","oldData","updatedData","idProp","addOrUpdate","origId","fullItem","oldItem","_updateItem","updateEventData","_ref5","pureDeepObjectAssign","ids","_item","returnType","itemIds","itemId","order","_sort","_filterFields","_i2","_len4","resultant","_i4","_i5","_id3","_item2","_items","_i6","_len7","_id4","_i7","_len8","_i8","_len9","_id5","_item3","_i9","_len10","_id6","_item4","mappedItems","filteredItem","av","bv","removedIds","removedItems","ident","_context22","_context23","_step11","maxField","_iterator11","itemField","_context24","_step12","minField","_iterator12","_value3","exists","ensureFullItem","_callee3","_iterator13","_step13","_context25","_context26","isDataViewLike","getDataSet","getIds","stream","updateOnly","isDataSetLike","_parseFloatExports","_parseFloat$3","global$2","fails$2","whitespaces","$parseFloat$1","Symbol$1","numberParseFloat","trimmedString","_parseFloat$1","_parseFloat","getOwnPropertyNamesExports","getOwnPropertyNames$3","$$3","fails$1","getOwnPropertyNames$2","Object$1","_Object$getOwnPropertyNames","choosify","subOption","allowed","chosen","chosenEdge","pointInRect","rotationPoint","bottom","isValidLabel","getSelfRefCoordinates","distanceToBorder","toBorderDist","yFromNodeCenter","xFromNodeCenter","LabelAccumulator","measureText","lines","blocks","tmpText","block","_add","tmpLines","tmpLine","firstEmptyBlock","tmpBlocks","determineLineHeights","determineLabelSize","removeEmptyBlocks","tagPattern","afterBold","afterItal","afterMono","MarkupAccumulator","bold","ital","mono","spacing","modStack","modName","ch","tagName","emitBlock","unshift","setTag","advance","_this$prepareRegExp2","prepareRegExp","regExp","matched","nextTag","checkTag","unsetTag","prepared","LabelSplitter","getFormattingValues","font","fontOptions","nlLines","lineCount","multi","splitBlocks","maxWdt","_text","splitStringIntoLines","_mod","_text2","append","newLine","markupSystem","system","parseEntities","parseWS","parseStartTag","parseEndTag","beginable","parseOverride","decodeMarkupSystem","splitMarkdownBlocks","splitHtmlBlocks","curWidth","words","newText","overMaxWidth","appendLast","getLongestFit","word","getLongestFitWord","newW","multiFontStyle","Label","edgelabel","pointToSelf","baseSize","yLine","isEdgeLabel","elementOptions","initFontOptions","labelDirty","newFontOptions","parseFontString","vadjust","constrainWidth","minWdt","constrainHeight","minHgt","valign","widthConstraint","widthConstraintMaximum","widthConstraintMinimum","heightConstraint","heightConstraintMinimum","heightConstraintValign","propagateFonts","constrain","chooser","margins","widthBias","heightBias","dstPile","srcPile","addFontToPile","tmpShorthand","multiName","multiFont","optionNames","getFontOption","fontPile","addFontOptionsToPile","getBasicOptions","_loop","modOptions","getFontOptions","baseline","viewFontSize","view","scaling","drawThreshold","maxVisible","calculateLabelSize","_drawBackground","_drawText","getSize","_this$_setAlignment2","_setAlignment","textAlign","labelHeight","align","_this$_getColor2","_getColor","strokeColor","fontColor","strokeWidth","lineWidth","lineJoin","strokeText","fillText","textBaseline","initialStrokeColor","_processLabel","face","labelHighlightBold","fontString","selectedState","hoverState","inText","differentState","_processLabelText","outOptions","inOptions","newOptionsArray","NodeBase","labelModule","margin","refreshNeeded","boundingBox","adjustSizes","borderWidth","resize","shadow","shadowColor","shadowBlur","shadowSize","shadowOffsetX","shadowX","shadowOffsetY","shadowY","borderDashes","setLineDash","dashes","shapeProperties","borderColor","save","enableBorderDashes","disableBorderDashes","restore","enableShadow","disableShadow","performStroke","_updateBoundingBox","textSize","getTextSize","Box$1","_NodeBase","Box","_isNativeReflectConstruct$s","_setMargins","needsRefresh","dimensions","getDimensionsFromLabel","initContextForDraw","borderRadius","performFill","updateBoundingBox","_addBoundingBoxMargin","CircleImageBase","_isNativeReflectConstruct$r","labelOffset","imageObj","imageObjAlt","setImages","selection_changed","imageTmp","imgPadding","imagePadding","optImgPadding","useImageSize","ratio_width","ratio_height","_getImagePadding","globalAlpha","interpolation","imgPosLeft","imgPosTop","imgWidth","imgHeight","drawImageAtPosition","labelDimensions","yLabel","Circle$1","_CircleImageBase","Circle","_isNativeReflectConstruct$q","diameter","_drawRawCircle","CircularImage","_isNativeReflectConstruct$p","_resizeImage","switchImages","labelX","labelY","coordinateOrigin","clip","_drawImageAtPosition","_drawImageLabel","ShapeBase","_isNativeReflectConstruct$o","_this$customSizeWidth","_this$customSizeHeigh","customSizeWidth","customSizeHeight","sizeMultiplier","CanvasRenderingContext2D","icon","drawExternalLabel","ownKeys$3","_objectSpread$3","CustomShape","_ShapeBase","_isNativeReflectConstruct$n","ctxRenderer","drawLater","drawNode","nodeDimensions","_distanceToBorder","Database","_isNativeReflectConstruct$m","Diamond$1","Diamond","_isNativeReflectConstruct$l","_drawShape","Dot","_isNativeReflectConstruct$k","Ellipse","_isNativeReflectConstruct$j","Icon","_isNativeReflectConstruct$i","iconSize","_icon","weight","Image$2","_isNativeReflectConstruct$h","side","useBorderWithImage","neutralborderWidth","selectionLineWidth","borderWidthSelected","Square","_isNativeReflectConstruct$g","Hexagon","_isNativeReflectConstruct$f","Star","_isNativeReflectConstruct$e","Text","_isNativeReflectConstruct$d","Triangle$1","Triangle","_isNativeReflectConstruct$c","TriangleDown","_isNativeReflectConstruct$b","ownKeys$2","_objectSpread$2","imagelist","grouplist","baseFontSize","predefinedPosition","currentShape","_localColor","checkMass","parseOptions","_load_images","updateLabelModule","checkOpacity","updateShape","physics","load","brokenImage","unselected","updateGroupOptions","currentGroup","fixed","customScalingFunction","sizeDiff","fontDiff","visible","nodeId","labelId","origin","parentOptions","newOptions","groupList","groupObj","skipProperties","checkCoordinateOrigin","parsedColor","mass","strId","_arrayLikeToArray$5","NodesHandler","layoutEngine","functions","createNode","nodesListeners","boldital","bindEventListeners","refresh","_nodeId","_nodeId2","doNotEmit","oldNodesData","newNodes","positionInitially","changedData","dataChanged","clearPositions","dataArray","_node","nodeIndices","_node2","dataset","_unsupportedIterableToArray$5","_createForOfIteratorHelper$5","dsNode","bodyNode","nodeList","nodeObj","toId","fromId","edgeList","getExports$1","get$6","getExports","get$5","hasOwn$1","isObject$2","anObject$1","get$4","isDataDescriptor","_Reflect$get","getOwnPropertyDescriptorExports$1","getOwnPropertyDescriptor$3","getOwnPropertyDescriptorExports","_Object$getOwnPropertyDescriptor","_get","_superPropBase","hypotExports","hypot$2","$$1","$hypot","hypot","value1","value2","sum","aLen","larg","_Math$hypot","_createSuper$a","_isNativeReflectConstruct$a","EndPoint","points","arrowData","xt","yt","Image$1","_EndPoint","translate","rotate","imageWidth","imageHeight","Arrow","_EndPoint2","_super2","transform","drawPath","Crow","Curve","pi","startAngle","endAngle","InvertedCurve","InvertedTriangle","Bar","Vee","EndPoints","ownKeys$1","_objectSpread$1","EdgeBase","_body","_labelModule","colorDirty","hoverWidth","selectionWidth","fromPoint","toPoint","_selected","_hover","viaNode","getViaNode","getColor","_drawDashedLine","_drawLine","_line","_this$_getCircleData2","_getCircleData","_circle","_fromPoint","_toPoint","lineCap","lineDashOffset","_this$_getCircleData4","_this$_getCircleData6","_y","_radius","_findBorderPosition","_findBorderPositionCircle","_this$_getCircleData$2","selfReference","nearNode","endPointOffset","arrowStrikethrough","iteration","_pointOnCircle","difference","inheritsColor","grd","createLinearGradient","fromColor","toColor","addColorStop","angleFrom","angleTo","renderBehindTheNode","pointTFrom","pointTTo","x1","y1","x3","y3","_getDistanceToEdge","_this$_getCircleData8","px","py","u","arrowPoint","node1","node2","reversed","scaleFactor","fromArrowScale","fromArrowType","toArrowScale","toArrowType","middleArrowScale","middleArrowType","relativeLength","smooth","pointT","via","guidePos","getPoint","halfLength","guidePos1","guidePos2","_this$_getCircleData10","_pointT","_low","_high","_pointT2","core","origCtxAttr","backgroundSize","setStrokeDashed","backgroundDashes","_objectSpread","BezierEdgeBase","_EdgeBase","_isNativeReflectConstruct$9","_getViaCoordinates","minDistance","lastX","lastY","_getDistanceToLine","viaNode1","viaNode2","quadraticCurveTo","drawBackground","BezierEdgeDynamic","_BezierEdgeBase","_isNativeReflectConstruct$8","_boundFunction","positionBezierNode","physicsChange","setupSupportNode","parentEdgeId","_bezierCurve","cx","cy","cr","_findBorderPositionBezier","_getDistanceToBezierEdge","BezierEdgeStatic","_isNativeReflectConstruct$7","_stepX3","_stepY3","roundness","stepX","stepY","xVia","yVia","_stepX","_stepY","_stepX2","_stepY2","myAngle","_pi","_myAngle","_xVia","_yVia","CubicBezierEdgeBase","_isNativeReflectConstruct$6","via1","via2","vec","CubicBezierEdge","_CubicBezierEdgeBase","_isNativeReflectConstruct$5","viaNodes","forceDirection","_getDistanceToBezierEdge2","StraightEdge","_isNativeReflectConstruct$4","edgeSegmentLength","toBorderPoint","Edge","baseWidth","edgeType","connected","affectsLayout","updateEdgeType","_setInteractionWidths","toArrow","fromArrow","middleArrow","toArrowSrc","toArrowImageWidth","toArrowImageHeight","middleArrowSrc","middleArrowImageWidth","middleArrowImageHeight","fromArrowSrc","fromArrowImageWidth","fromArrowImageHeight","selectedWidth","changeInType","cleanup","disconnect","attachEdge","detachEdge","widthDiff","drawLine","drawLabel","getArrowData","drawArrowHead","_getRotation","edgeId","isOverlappingWith","xFrom","yFrom","xTo","yTo","xObj","yObj","getDistanceToEdge","copyFromGlobals","colorsDefined","selfReferenceSize","EdgesHandler","edgesListeners","edgeData","smoothOptions","reconnectEdges","_edgeId","oldEdgesData","edgesData","oldEdge","showInternalIds","_addMissingEdges","_removeInvalidEdges","edgesToDelete","toNode","fromNode","isCluster","addIds","BarnesHutSolver","physicsBody","barnesHutTree","_rng","thetaInversed","theta","overlapAvoidanceFactor","avoidOverlap","gravitationalConstant","physicsNodeIndices","nodeCount","_formBarnesHutTree","_getForceContributions","parentBranch","_getForceContribution","NW","NE","SW","SE","childrenCount","centerOfMass","calcSize","_calculateForces","gravityForce","fx","fy","forces","minX","minY","maxX","maxY","rootSize","halfRootSize","_splitBranch","_placeInTree","totalMass","totalMassInv","biggestSize","skipMassUpdate","_updateBranchMass","region","_placeInRegion","containedNode","_insertRegion","childSize","_drawBranch","branch","RepulsionSolver","repulsingForce","nodeDistance","HierarchicalRepulsionSolver","theseNodesDistance","SpringSolver","edgeLength","node3","edgeIndices","physicsEdgeIndices","springLength","_calculateSpringForce","springForce","springConstant","HierarchicalSpringSolver","springFx","springFy","totalFx","totalFy","correctionFx","correctionFy","_nodeId3","CentralGravitySolver","centralGravity","ForceAtlas2BasedRepulsionSolver","_BarnesHutSolver","_isNativeReflectConstruct$3","degree","ForceAtlas2BasedCentralGravitySolver","_CentralGravitySolver","_isNativeReflectConstruct$2","PhysicsEngine","velocities","physicsEnabled","simulationInterval","requiresTimeout","previousStates","referenceState","freezeCache","renderTimer","adaptiveTimestep","adaptiveTimestepEnabled","adaptiveCounter","adaptiveInterval","stabilized","startedStabilization","stabilizationIterations","ready","barnesHut","damping","forceAtlas2Based","repulsion","hierarchicalRepulsion","maxVelocity","minVelocity","solver","stabilization","updateInterval","onlyDynamicEdges","fit","timestep","wind","layoutFailed","initPhysics","stopSimulation","startSimulation","updatePhysicsData","nodesSolver","edgesSolver","gravitySolver","modelOptions","stabilize","viewFunction","simulationStep","_emitStabilized","physicsTick","runDoubleSpeed","amountOfIterations","solve","moveNodes","_evaluateStepQuality","_startStabilizing","physicsStep","revert","adjustTimeStep","nodeIds","positions","vx","vy","reference","maxNodeVelocity","averageNodeVelocity","nodeVelocity","_performStep","maxV","calculateComponentVelocity","targetIterations","_freezeNodes","_stabilizationBatch","running","sendProgress","_finalizeStabilization","_restoreFrozenNodes","forceSize","arrowSize","NetworkUtil","allNodes","specificNodes","clonedOptions","amountOfConnections","Cluster","_Node","_isNativeReflectConstruct$1","containedNodes","containedEdges","childClusterId","childCluster","clusterEdge","parentClusterEdge","clusteringEdgeReplacingIds","srcId","edgeReplacedById","ClusterEngine","clusteredNodes","clusteredEdges","hubsize","_getHubSize","_checkOptions","nodesToCluster","clusterByConnection","refreshData","joinCondition","childNodesObj","childEdgesObj","_cluster","edgeCount","relevantEdgeCount","clusters","usedNodes","checkJoinCondition","cloneOptions","gatheringSuccessful","childNodeId","_getConnectedId","foundCluster","findClusterData","_m","clusterByEdgeCount","clusterNodeProperties","parentNodeId","parentClonedOptions","childClonedOptions","childNodeIDs","childNode","childNodeKey","childEdge","clusterEdgeProperties","otherNodeId","childKeys","createEdges","newEdges","getNewEdge","createdEdge","newEdge","matchToDirection","matchFromDirection","_j3","_edge","_createClusteredEdge","_backupEdgeOptions","tmpNodesToRemove","allowSingleNodeCluster","processProperties","childNodesOptions","childEdgesOptions","_clonedOptions","clusterId","_getClusterPosition","clusterNode","_clusterEdges","originalOptions","clusterNodeId","findNode","parentIndex","parentClusterNodeId","_openChildCluster","releaseFunction","clusterPosition","newPositions","_containedNode","_containedNode2","edgesToBeDeleted","otherNode","transferId","transferEdge","otherCluster","_restoreEdge","nodesArray","clusteredNodeId","startEdgeId","allEdgeIds","getClusteredEdges","clusteredEdgeId","getBaseEdges","IdsToHandle","doneIds","foundIds","nextId","nextEdge","replacingIds","replacingId","average","averageSquared","hubCounter","largestHub","variance","standardDeviation","hubThreshold","baseEdge","extraOptions","childNodes","childEdges","_obj","_createClusterEdges","_edge2","clusteredNode","deletedNodeIds","deletedEdgeIds","eachClusterNode","endPointsValid","replacedIds","numValid","containedEdgeId","containedEdge","deletedEdgeId","_filter","shouldBeClustered","_isClusteredNode","_isClusteredEdge","clusterFrom","_getClusterNodeForNode","clusterTo","continueLoop","_loop2","clustersToOpen","numNodes","allowSingle","openCluster","_updateState","CanvasRenderer","mozRequestAnimationFrame","webkitRequestAnimationFrame","msRequestAnimationFrame","redrawRequested","renderingActive","renderRequests","allowRedraw","dragging","zooming","hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag","_determineBrowserMethod","zoomTimeoutId","_requestRedraw","_resizeNodes","_redraw","_startRendering","myWindow","_requestNextFrame","_renderStep","drawExternalLabels","setSize","translation","_drawEdges","_drawNodes","_drawArrows","_drawSelectionBox","alwaysShow","hovered","topLeft","DOMtoCanvas","bottomRight","viewableArea","_drawExternalLabels","isSelected","isBoundingBoxOverlappingWith","_drawLater","selectedLength","hoveredLength","_drawLater2","_drawLater3","_drawExternalLabels2","drawArrows","browserType","selectionBox","setIntervalExports","_setInterval","onTouch","onRelease","Canvas","cameraState","canvasViewCenter","_cleanupCallbacks","autoResize","hammerFrame","_cleanUp","listener","useCapture","ResizeObserver","unobserve","resizeTimer","resizeFunction","_onResize","attachEvent","detachEvent","previousWidth","previousHeight","widthRatio","heightRatio","newScale","currentViewCenter","distanceFromCenter","overflow","tabIndex","_setPixelRatio","eventListeners","onTap","onDoubleTap","onHold","onDragStart","onDrag","onDragEnd","onPinch","onMouseWheel","onMouseMove","onContext","_prepareValue","emitEvent","oldWidth","oldHeight","previousRatio","_getCameraState","newWidth","newHeight","_setCameraState","numerator","_determinePixelRatio","_XconvertCanvasToDOM","_YconvertCanvasToDOM","_XconvertDOMtoCanvas","_YconvertDOMtoCanvas","View","animationSpeed","renderRefreshRate","animationEasingFunction","easingTime","sourceScale","targetScale","sourceTranslation","targetTranslation","lockedOnNodeId","lockedOnNodeOffset","touchTime","releaseNode","initialZoom","rawOptions","allNodeIds","minZoomLevel","maxZoomLevel","normalizeFitOptions","zoomLevel","canvasWidth","canvasHeight","getRange","positionDefined","xZoomLevel","yZoomLevel","animationOptions","findCenter","animation","nodePosition","lockedOnNode","getViewPosition","easingFunction","animateView","locked","_transitionRedraw","viewCenter","_lockedRedraw","finished","progress","keycharm","_exportFunctions","_bound","keydown","keyup","down","handleEvent","up","bound","shiftKey","bindAll","getKey","unbind","newBindings","NavigationHandler","iconsCreated","navigationHammers","boundFunctions","activated","configureKeyboardBindings","navigationButtons","loadNavigationElements","cleanNavigation","navigationDOM","navigationDivs","navigationDivActions","_fit","bindToRedraw","_stopMovement","boundAction","keyboard","speed","scaleOld","zoom","scaleFrac","ty","_context27","bindToWindow","unbindFromRedraw","_arrayLikeToArray$4","InteractionHandler","selectionHandler","navigationHandler","popup","popupObj","popupTimer","getPointer","dragNodes","dragView","autoFocus","tooltipDelay","zoomView","zoomSpeed","pinched","multiselect","ctrlKey","metaKey","checkSelectionChanges","commitAndEmit","generateClickEvent","selectAdditionalOnPoint","selectOnPoint","firstSet","secondSet","arrayDiff","firstArr","secondArr","getNodeAt","selection","setSelection","_unsupportedIterableToArray$4","_createForOfIteratorHelper$4","getSelectedNodes","xFixed","yFixed","diffX","diffY","selectionBoxPosition","selectionBoxPositionMinMax","toBeSelectedNodes","selectObject","preScaleDragPointer","postScaleDragPointer","canvasToDOM","popupVisible","_checkHidePopup","setPosition","focus","_checkShowPopup","hoverObject","pointerObj","previousPopupObjId","nodeUnderCursor","popupType","overlappingNodes","getTitle","overlappingEdges","popupTargetType","popupTargetId","setText","_pointerToPositionObject","stillOnObj","overNode","weakMapExports","weakMap$2","uncurryThis$1","defineBuiltIns$1","isObject$1","collectionWeak$1","global$1","weakMap","_SingleTypeSelectionAccumulator_previousSelection","_SingleTypeSelectionAccumulator_selection","_SelectionAccumulator_nodes","_SelectionAccumulator_edges","_SelectionAccumulator_commitHandler","_WeakMap","__classPrivateFieldGet","__classPrivateFieldSet","_createForOfIteratorHelper$3","_arrayLikeToArray$3","_unsupportedIterableToArray$3","diffSets","diff","SingleTypeSelectionAccumulator","_items2","added","deleted","changes","getChanges","unselect","SelectionAccumulator","commitHandler","getSelection","_classPrivateFieldGe","_classPrivateFieldGe2","_classPrivateFieldGe3","_createForOfIteratorHelper$2","_arrayLikeToArray$2","_unsupportedIterableToArray$2","SelectionHandler","_selectionAccumulator","hoverObj","selectable","selectConnectedEdges","hoverConnectedEdges","updateSelection","getEdgeAt","unselectAll","selectionChanged","deselectObject","DOM","oldSelection","emptySelection","_initBaseEvent","getClickedItems","controlEdge","highlightEdges","_this$_selectionAccum","addEdges","addNodes","_removeFromSelection","canvasPos","returnNode","positionObject","_getAllNodesOverlappingWith","_getEdgesOverlappingWith","returnEdge","mindist","overlappingEdge","dist","_this$_selectionAccum2","deleteNodes","deleteEdges","sizeNodes","sizeEdges","_addToHover","hoverChanged","emitBlurEvent","hoveredEdgesCount","hoveredNodesCount","emitHoverEvent","_hoverConnectedEdges","selectionChanges","previousSelection","getSelectedNodeIds","getSelectedEdgeIds","getNodes","getEdges","getItemsOnPoint","_ret","timsortExports","timsort$1","timsort","alphabeticalCompare","runLength","DEFAULT_MIN_MERGE","binaryInsertionSort","makeAscendingRun","ts","TimSort","minRun","minRunLength","pushRun","mergeRuns","forceMergeRuns","POWERS_OF_TEN","log10","al","bl","aStr","bStr","runHi","reverseRun","pivot","mid","gallopLeft","lastOffset","maxOffset","gallopRight","minGallop","tmpStorageLength","stackLength","runStart","stackSize","mergeAt","start1","length1","start2","length2","mergeLow","mergeHigh","cursor1","cursor2","count1","count2","customCursor","customDest","_createSuper","DirectionInterface","abstract","fake_use","nodeArray","VerticalStrategy","_DirectionInterface","layout","hierarchical","addToOrdering","getTreeSize","min_x","max_x","levelSeparation","HorizontalStrategy","_DirectionInterface2","min_y","max_y","everyExports","every$3","$every","every$2","_everyInstanceProperty","_arrayLikeToArray$1","fillLevelsByDirectionCyclic","fillLevelsByDirection","isEntryNode","shouldLevelBeReplaced","edgeIdProp","newLevelDiff","_unsupportedIterableToArray$1","_createForOfIteratorHelper$1","entryNodeId","entryNode","newLevel","targetNodeId","oldLevel","_ret2","HierarchicalStatus","childrenReference","parentReference","trees","distributionOrdering","distributionIndex","isTree","treeIndex","treeId","_getMaxLevel","nodeA","nodeB","minLevel","parents1","parents2","curLevel","LayoutEngine","_resetRNG","setPhysics","optionsBackup","randomSeed","improvedLayout","clusterThreshold","nodeSpacing","treeSpacing","blockShifting","edgeMinimization","parentCentralization","sortMethod","setupHierarchicalLayout","layoutNetwork","curveType","allOptions","prevHierarchicalState","setDirectionStrategy","adaptAllOptionsForHierarchicalLayout","initialRandomSeed","backupPhysics","indices","clusterOptions","startLength","before","modules","clustering","clusterBridges","clusterOutliers","_declusterAll","kamadaKawai","_shiftToCenter","getRangeCore","clustersPresent","definedLevel","undefinedLevel","lastNodeOnLevel","_determineLevelsByHubsize","_determineLevelsDirected","_determineLevelsCustomCallback","ensureLevel","distribution","_getDistribution","_generateMap","_placeNodesByHierarchy","_condenseHierarchy","stillShifting","branches","shiftTree","getBranchNodes","getBranchBoundary","branchMap","maxLevel","minSpace","maxSpace","branchNode","getPosition","_this3$_getSpaceAroun2","_getSpaceAroundNode","minSpaceNode","maxSpaceNode","shiftElementsCloser","centerParents","hier","levelNodes","hasSameParent","inSameSubNetwork","branchShiftCallback","centerParent","pos1","pos2","diffAbs","branchNodes1","branchNodes2","maxLevel1","getMaxLevel","maxLevel2","getCollisionLevel","branchNodeBoundary1","branchNodeBoundary2","max1","min2","minSpace2","_shiftBlock","_centerParent","minimizeEdgeLength","allEdges","nodeLevel","C2","referenceNodes","aboveEdges","getFx","getDFx","getGuess","guess","guessMap","dfx","branchNodes","branchBoundary","minSpaceBranch","maxSpaceBranch","branchOffset","moveBranch","_this3$_getSpaceAroun4","newPosition","moveNode","getLevels","shiftBranchesCloserBottomUp","centerAllParents","minimizeEdgeLengthBottomUp","centerAllParentsBottomUp","treeSizes","treeWidths","numTrees","getTreeSizes","shiftBy","shiftTrees","useMap","ordering","nextPos","parents","parentId","_getCenterPosition","_this$_getSpaceAround2","positionedNodes","_indexArrayToNodes","handledNodeCount","_validatePositionAndContinue","parentLevel","childRef","childNodeLevel","previousPos","sharedParent","_findCommonParent","withChild","_placeBranchNodes","idArray","fix","hubSizes","hubSize","_getActiveEdges","levelDownstream","_getHubSizes","_crawlNetwork","levelA","setMinLevelToZero","shakeTowards","fillLevelsByDirectionRoots","fillLevelsByDirectionLeaves","_this9","addRelation","checkIfTree","_this10","startingNodeId","crawler","tree","setTreeIndex","_this11","shifter","childA","childB","_this12","iterateParents","parentRef","findParent","foundParent","isVertical","minPos","maxPos","_arrayLikeToArray","ManipulationSystem","interactionHandler","editMode","manipulationDiv","editModeDiv","closeDiv","_domEventListenerCleanupQueue","temporaryUIFunctions","temporaryEventFunctions","temporaryIds","guiEnabled","inMode","selectedControlNode","initiallyActive","deleteNode","deleteEdge","controlNodeStyle","_restore","enableEditMode","disableEditMode","locale","_setup","showManipulatorToolbar","_createEditButton","manipulationDOM","selectedNodeCount","getSelectedNodeCount","selectedEdgeCount","getSelectedEdgeCount","selectedTotalCount","needSeperator","_createAddNodeButton","_createSeperator","_createAddEdgeButton","_createEditNodeButton","_createEditEdgeButton","_createDeleteButton","_bindElementEvents","toggleEditMode","_temporaryBindEvent","_createBackButton","_createDescription","_performAddNode","finalizedData","_temporaryBindUI","_handleConnect","_finishConnect","_dragControlNode","_dragStartEdge","editWithoutDrag","edgeBeingEditedId","controlNodeFrom","_getNewTargetNode","controlNodeTo","_controlNodeTouch","_controlNodeDragStart","_controlNodeDrag","_controlNodeDragEnd","findBorderPositions","_performEditEdge","selectedNodes","selectedEdges","deleteFunction","_createWrappers","_removeManipulationDOM","_this$options$locales","_this$options$locales2","setAttribute","_createButton","_cleanupDOMEventListeners","_cleanupTemporaryNodesAndEdges","_unbindTemporaryUIs","_unbindTemporaryEvents","_unsupportedIterableToArray","_createForOfIteratorHelper","addNodeMode","addEdgeMode","editEdgeMode","deleteBtnClass","rtl","deleteSelected","labelClassName","newFunction","UIfunctionName","domElement","keyupListener","indexTempEdge","_context28","_context29","indexTempNode","fromSelect","toSelect","overlappingNodeIds","targetNode","connectionEdge","connectFromId","_context30","_performAddEdge","clickData","defaultData","sourceNodeId","eeFunct","bool","endPoints","nodeOptions","function","minimum","dom","maximum","configure","interaction","manipulation","clickToUse","configuratorHideOption","parentPath","optionName","FloydWarshall","edgesArray","D_matrix","cell","knode","kcolm","inode","icolm","jnode","jcolm","KamadaKawai","edgeStrength","distanceSolver","ignoreClusters","getDistances","_createL_matrix","_createK_matrix","_createE_matrix","maxIterations","maxEnergy","highE_nodeId","dE_dx","dE_dy","delta_m","subIterations","_this$_getHighestEner2","_getHighestEnergyNode","_moveNode","_this$_getEnergy2","_getEnergy","maxEnergyNodeId","dE_dx_max","dE_dy_max","nodeIdx","_this$_getEnergy4","_this$E_sums$m","E_sums","d2E_dx2","d2E_dxdy","d2E_dy2","x_m","y_m","km","K_matrix","lm","L_matrix","iIdx","x_i","y_i","kmat","lmat","denominator","_updateE_matrix","E_matrix","mIdx","_mIdx","colm","lcolm","oldDx","oldDy","Network","renderer","nodesHandler","edgesHandler","setData","rawCode","_rawCode$split2","rawLanguage","rawCountry","language","country","_code","normalizeLanguageCode","configurator","networkOptions","setModuleOptions","activator","_updateVisibleIndices","edgeNodesPresent","_updateValueRange","gephi","gephiData","gephiJSON","inheritColor","gEdges","vEdges","gEdge","vEdge","attributes","gNode","vNode","parseGephi","valueMin","valueMax","valueTotal","setValueRange","cluster","getNodesInCluster","clusterByHubsize","updateClusteredNode","getBaseEdge","updateEdge","getSeed","editNodeMode","getPositions","storePositions","getBoundingBox","getConnectedNodes","objectId","getConnectedEdges","getSelectedEdges","selectNodes","selectEdges","commitWithoutEmitting","redraw","getScale","getOptionsFromConfigurator","neo4j","initialQuery","neo4jUri","neo4jUser","neo4jPassword","visJs","NeoVisEvents","EventController","_handlers","CompletionEvent","ErrorEvent","ClickNodeEvent","ClickEdgeEvent","generateEvent","NEOVIS_DEFAULT_CONFIG","NEOVIS_ADVANCED_CONFIG","_classPrivateMethodInitSpec","privateSet","_checkPrivateRedeclaration","_classPrivateFieldInitSpec","privateCollection","_classPrivateMethodGet","_propertyToHtml","_retrieveProperty","objectToTitleHtml","neo4jObject","titleProperties","titleString","propVal","innerHTML","objectToTitleString","_network","_query2","_container","_consoleLog","_WeakSet","_init","_runCypher","_runFunction","_buildStaticObject","_buildPropertyNameObject","_buildCypherObject","_buildFunctionObject","_buildVisObject","_buildNodeVisObject","_buildEdgeVisObject","NeoVis","network","vis","_init2","_consoleLog2","render","recordCount","dataBuildPromises","dataPromises","_buildNodeVisObject2","_buildEdgeVisObject2","startNode","endNode","visConfig","neoVis","clearNetwork","registerOnEvent","reinit","reload","renderWithCypher","updateWithCypher","consoleDebug","defaultLabelConfig","defaultRelationshipConfig","nonFlat","defaultRelationshipsConfig","relationships","Neo4j","serverUrl","serverUser","serverPassword","serverDatabase","initialCypher","getElementById","containerId","_runCypher2","cypher","_runFunction2","_buildStaticObject2","staticConfig","_buildPropertyNameObject2","propertyNameConfig","neo4jObj","_buildCypherObject2","cypherConfig","_buildFunctionObject2","functionConfig","_buildVisObject2","baseObject","propertyConfig","static","advancedConfig","neo4jNode","labelConfig","raw","relationshipConfig","migrateFromOldConfig","oldNeoVisConfig","container_id","initial_cypher","console_debug","server_database","server_url","server_user","server_password","hierarchical_sort_method","_Object$entries","newLabelsConfig","oldLabelConfig","caption","community","sizeCypher","title_properties","oldRelationshipsConfig","thickness"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"neovis.js","mappings":";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAgB,OAAID,IAEpBD,EAAa,OAAIC,GAClB,CATD,CASGK,MAAM,2CCPTJ,EAAQK,WAuCR,SAAqBC,GACnB,IAAIC,EAAOC,EAAQF,GACfG,EAAWF,EAAK,GAChBG,EAAkBH,EAAK,GAC3B,OAAuC,GAA9BE,EAAWC,GAAuB,EAAKA,CAClD,EA3CAV,EAAQW,YAiDR,SAAsBL,GACpB,IAAIM,EAcAC,EAbAN,EAAOC,EAAQF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,CAAC,CAACA,GAAuByF,EAAgB/B,cAAc1D,MAA2B,KAAGhkP,KAAAilJ,GAC5I,CAACklG,EAAe/8D,KAA6C,IAA1CpuH,EAAcyrL,GAAuBr9D,EAU/D,OATA+8D,EAAgBnrL,GAAgB,CAC/BxiE,MAAOiuP,EAAuBC,UAC9BtvM,MAAiD,iBAAnCqvM,EAAuBJ,QAAuBI,EAAuBJ,aAAUrsP,EAC7F,CAACimP,IAAyB,CACzBhJ,SAAU,CACT7iK,MAAOssK,MAIHyF,CAAe,GACpB,CAAC,QAAKnsP,EAEZ,CA9SEozG,EArUW40I,GAAM,wBACahC,IAAqB5yI,EADxC40I,GAAM,yBAEc/B,IAAsB7yI,EAF1C40I,GAAM,oBAGStB,IAAiBtzI,EAHhC40I,GAAM,sBAIWhB,IAinB9B","sources":["webpack://NeoVis/webpack/universalModuleDefinition","webpack://NeoVis/./node_modules/base64-js/index.js","webpack://NeoVis/./node_modules/buffer/index.js","webpack://NeoVis/./node_modules/core-js-pure/actual/object/define-property.js","webpack://NeoVis/./node_modules/core-js-pure/actual/symbol/index.js","webpack://NeoVis/./node_modules/core-js-pure/actual/symbol/iterator.js","webpack://NeoVis/./node_modules/core-js-pure/actual/symbol/to-primitive.js","webpack://NeoVis/./node_modules/core-js-pure/es/array/is-array.js","webpack://NeoVis/./node_modules/core-js-pure/es/array/virtual/concat.js","webpack://NeoVis/./node_modules/core-js-pure/es/array/virtual/for-each.js","webpack://NeoVis/./node_modules/core-js-pure/es/array/virtual/map.js","webpack://NeoVis/./node_modules/core-js-pure/es/array/virtual/reduce.js","webpack://NeoVis/./node_modules/core-js-pure/es/instance/concat.js","webpack://NeoVis/./node_modules/core-js-pure/es/instance/map.js","webpack://NeoVis/./node_modules/core-js-pure/es/instance/reduce.js","webpack://NeoVis/./node_modules/core-js-pure/es/object/define-property.js","webpack://NeoVis/./node_modules/core-js-pure/es/object/entries.js","webpack://NeoVis/./node_modules/core-js-pure/es/object/keys.js","webpack://NeoVis/./node_modules/core-js-pure/es/promise/index.js","webpack://NeoVis/./node_modules/core-js-pure/es/symbol/index.js","webpack://NeoVis/./node_modules/core-js-pure/es/symbol/iterator.js","webpack://NeoVis/./node_modules/core-js-pure/es/symbol/to-primitive.js","webpack://NeoVis/./node_modules/core-js-pure/es/weak-map/index.js","webpack://NeoVis/./node_modules/core-js-pure/es/weak-set/index.js","webpack://NeoVis/./node_modules/core-js-pure/features/object/define-property.js","webpack://NeoVis/./node_modules/core-js-pure/features/symbol/index.js","webpack://NeoVis/./node_modules/core-js-pure/features/symbol/iterator.js","webpack://NeoVis/./node_modules/core-js-pure/features/symbol/to-primitive.js","webpack://NeoVis/./node_modules/core-js-pure/full/object/define-property.js","webpack://NeoVis/./node_modules/core-js-pure/full/symbol/index.js","webpack://NeoVis/./node_modules/core-js-pure/full/symbol/iterator.js","webpack://NeoVis/./node_modules/core-js-pure/full/symbol/to-primitive.js","webpack://NeoVis/./node_modules/core-js-pure/internals/a-callable.js","webpack://NeoVis/./node_modules/core-js-pure/internals/a-constructor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/a-possible-prototype.js","webpack://NeoVis/./node_modules/core-js-pure/internals/add-to-unscopables.js","webpack://NeoVis/./node_modules/core-js-pure/internals/an-instance.js","webpack://NeoVis/./node_modules/core-js-pure/internals/an-object.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-buffer-non-extensible.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-for-each.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-includes.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-iteration.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-method-has-species-support.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-method-is-strict.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-reduce.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-slice-simple.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-slice.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-species-constructor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/array-species-create.js","webpack://NeoVis/./node_modules/core-js-pure/internals/check-correctness-of-iteration.js","webpack://NeoVis/./node_modules/core-js-pure/internals/classof-raw.js","webpack://NeoVis/./node_modules/core-js-pure/internals/classof.js","webpack://NeoVis/./node_modules/core-js-pure/internals/collection-weak.js","webpack://NeoVis/./node_modules/core-js-pure/internals/collection.js","webpack://NeoVis/./node_modules/core-js-pure/internals/copy-constructor-properties.js","webpack://NeoVis/./node_modules/core-js-pure/internals/correct-prototype-getter.js","webpack://NeoVis/./node_modules/core-js-pure/internals/create-iter-result-object.js","webpack://NeoVis/./node_modules/core-js-pure/internals/create-non-enumerable-property.js","webpack://NeoVis/./node_modules/core-js-pure/internals/create-property-descriptor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/create-property.js","webpack://NeoVis/./node_modules/core-js-pure/internals/define-built-in-accessor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/define-built-in.js","webpack://NeoVis/./node_modules/core-js-pure/internals/define-built-ins.js","webpack://NeoVis/./node_modules/core-js-pure/internals/define-global-property.js","webpack://NeoVis/./node_modules/core-js-pure/internals/descriptors.js","webpack://NeoVis/./node_modules/core-js-pure/internals/document-all.js","webpack://NeoVis/./node_modules/core-js-pure/internals/document-create-element.js","webpack://NeoVis/./node_modules/core-js-pure/internals/does-not-exceed-safe-integer.js","webpack://NeoVis/./node_modules/core-js-pure/internals/dom-iterables.js","webpack://NeoVis/./node_modules/core-js-pure/internals/engine-is-browser.js","webpack://NeoVis/./node_modules/core-js-pure/internals/engine-is-bun.js","webpack://NeoVis/./node_modules/core-js-pure/internals/engine-is-deno.js","webpack://NeoVis/./node_modules/core-js-pure/internals/engine-is-ios-pebble.js","webpack://NeoVis/./node_modules/core-js-pure/internals/engine-is-ios.js","webpack://NeoVis/./node_modules/core-js-pure/internals/engine-is-node.js","webpack://NeoVis/./node_modules/core-js-pure/internals/engine-is-webos-webkit.js","webpack://NeoVis/./node_modules/core-js-pure/internals/engine-user-agent.js","webpack://NeoVis/./node_modules/core-js-pure/internals/engine-v8-version.js","webpack://NeoVis/./node_modules/core-js-pure/internals/entry-virtual.js","webpack://NeoVis/./node_modules/core-js-pure/internals/enum-bug-keys.js","webpack://NeoVis/./node_modules/core-js-pure/internals/error-stack-clear.js","webpack://NeoVis/./node_modules/core-js-pure/internals/error-stack-install.js","webpack://NeoVis/./node_modules/core-js-pure/internals/error-stack-installable.js","webpack://NeoVis/./node_modules/core-js-pure/internals/export.js","webpack://NeoVis/./node_modules/core-js-pure/internals/fails.js","webpack://NeoVis/./node_modules/core-js-pure/internals/freezing.js","webpack://NeoVis/./node_modules/core-js-pure/internals/function-apply.js","webpack://NeoVis/./node_modules/core-js-pure/internals/function-bind-context.js","webpack://NeoVis/./node_modules/core-js-pure/internals/function-bind-native.js","webpack://NeoVis/./node_modules/core-js-pure/internals/function-call.js","webpack://NeoVis/./node_modules/core-js-pure/internals/function-name.js","webpack://NeoVis/./node_modules/core-js-pure/internals/function-uncurry-this-accessor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/function-uncurry-this-clause.js","webpack://NeoVis/./node_modules/core-js-pure/internals/function-uncurry-this.js","webpack://NeoVis/./node_modules/core-js-pure/internals/get-built-in.js","webpack://NeoVis/./node_modules/core-js-pure/internals/get-iterator-method.js","webpack://NeoVis/./node_modules/core-js-pure/internals/get-iterator.js","webpack://NeoVis/./node_modules/core-js-pure/internals/get-json-replacer-function.js","webpack://NeoVis/./node_modules/core-js-pure/internals/get-method.js","webpack://NeoVis/./node_modules/core-js-pure/internals/global.js","webpack://NeoVis/./node_modules/core-js-pure/internals/has-own-property.js","webpack://NeoVis/./node_modules/core-js-pure/internals/hidden-keys.js","webpack://NeoVis/./node_modules/core-js-pure/internals/host-report-errors.js","webpack://NeoVis/./node_modules/core-js-pure/internals/html.js","webpack://NeoVis/./node_modules/core-js-pure/internals/ie8-dom-define.js","webpack://NeoVis/./node_modules/core-js-pure/internals/indexed-object.js","webpack://NeoVis/./node_modules/core-js-pure/internals/inspect-source.js","webpack://NeoVis/./node_modules/core-js-pure/internals/install-error-cause.js","webpack://NeoVis/./node_modules/core-js-pure/internals/internal-metadata.js","webpack://NeoVis/./node_modules/core-js-pure/internals/internal-state.js","webpack://NeoVis/./node_modules/core-js-pure/internals/is-array-iterator-method.js","webpack://NeoVis/./node_modules/core-js-pure/internals/is-array.js","webpack://NeoVis/./node_modules/core-js-pure/internals/is-callable.js","webpack://NeoVis/./node_modules/core-js-pure/internals/is-constructor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/is-forced.js","webpack://NeoVis/./node_modules/core-js-pure/internals/is-null-or-undefined.js","webpack://NeoVis/./node_modules/core-js-pure/internals/is-object.js","webpack://NeoVis/./node_modules/core-js-pure/internals/is-pure.js","webpack://NeoVis/./node_modules/core-js-pure/internals/is-symbol.js","webpack://NeoVis/./node_modules/core-js-pure/internals/iterate.js","webpack://NeoVis/./node_modules/core-js-pure/internals/iterator-close.js","webpack://NeoVis/./node_modules/core-js-pure/internals/iterator-create-constructor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/iterator-define.js","webpack://NeoVis/./node_modules/core-js-pure/internals/iterators-core.js","webpack://NeoVis/./node_modules/core-js-pure/internals/iterators.js","webpack://NeoVis/./node_modules/core-js-pure/internals/length-of-array-like.js","webpack://NeoVis/./node_modules/core-js-pure/internals/math-trunc.js","webpack://NeoVis/./node_modules/core-js-pure/internals/microtask.js","webpack://NeoVis/./node_modules/core-js-pure/internals/new-promise-capability.js","webpack://NeoVis/./node_modules/core-js-pure/internals/normalize-string-argument.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-create.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-define-properties.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-define-property.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-get-own-property-descriptor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-get-own-property-names-external.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-get-own-property-names.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-get-own-property-symbols.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-get-prototype-of.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-is-extensible.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-is-prototype-of.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-keys-internal.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-keys.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-property-is-enumerable.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-set-prototype-of.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-to-array.js","webpack://NeoVis/./node_modules/core-js-pure/internals/object-to-string.js","webpack://NeoVis/./node_modules/core-js-pure/internals/ordinary-to-primitive.js","webpack://NeoVis/./node_modules/core-js-pure/internals/own-keys.js","webpack://NeoVis/./node_modules/core-js-pure/internals/path.js","webpack://NeoVis/./node_modules/core-js-pure/internals/perform.js","webpack://NeoVis/./node_modules/core-js-pure/internals/promise-constructor-detection.js","webpack://NeoVis/./node_modules/core-js-pure/internals/promise-native-constructor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/promise-resolve.js","webpack://NeoVis/./node_modules/core-js-pure/internals/promise-statics-incorrect-iteration.js","webpack://NeoVis/./node_modules/core-js-pure/internals/queue.js","webpack://NeoVis/./node_modules/core-js-pure/internals/require-object-coercible.js","webpack://NeoVis/./node_modules/core-js-pure/internals/schedulers-fix.js","webpack://NeoVis/./node_modules/core-js-pure/internals/set-species.js","webpack://NeoVis/./node_modules/core-js-pure/internals/set-to-string-tag.js","webpack://NeoVis/./node_modules/core-js-pure/internals/shared-key.js","webpack://NeoVis/./node_modules/core-js-pure/internals/shared-store.js","webpack://NeoVis/./node_modules/core-js-pure/internals/shared.js","webpack://NeoVis/./node_modules/core-js-pure/internals/species-constructor.js","webpack://NeoVis/./node_modules/core-js-pure/internals/string-multibyte.js","webpack://NeoVis/./node_modules/core-js-pure/internals/symbol-constructor-detection.js","webpack://NeoVis/./node_modules/core-js-pure/internals/symbol-define-to-primitive.js","webpack://NeoVis/./node_modules/core-js-pure/internals/symbol-registry-detection.js","webpack://NeoVis/./node_modules/core-js-pure/internals/task.js","webpack://NeoVis/./node_modules/core-js-pure/internals/to-absolute-index.js","webpack://NeoVis/./node_modules/core-js-pure/internals/to-indexed-object.js","webpack://NeoVis/./node_modules/core-js-pure/internals/to-integer-or-infinity.js","webpack://NeoVis/./node_modules/core-js-pure/internals/to-length.js","webpack://NeoVis/./node_modules/core-js-pure/internals/to-object.js","webpack://NeoVis/./node_modules/core-js-pure/internals/to-primitive.js","webpack://NeoVis/./node_modules/core-js-pure/internals/to-property-key.js","webpack://NeoVis/./node_modules/core-js-pure/internals/to-string-tag-support.js","webpack://NeoVis/./node_modules/core-js-pure/internals/to-string.js","webpack://NeoVis/./node_modules/core-js-pure/internals/try-to-string.js","webpack://NeoVis/./node_modules/core-js-pure/internals/uid.js","webpack://NeoVis/./node_modules/core-js-pure/internals/use-symbol-as-uid.js","webpack://NeoVis/./node_modules/core-js-pure/internals/v8-prototype-define-bug.js","webpack://NeoVis/./node_modules/core-js-pure/internals/validate-arguments-length.js","webpack://NeoVis/./node_modules/core-js-pure/internals/weak-map-basic-detection.js","webpack://NeoVis/./node_modules/core-js-pure/internals/well-known-symbol-define.js","webpack://NeoVis/./node_modules/core-js-pure/internals/well-known-symbol-wrapped.js","webpack://NeoVis/./node_modules/core-js-pure/internals/well-known-symbol.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.aggregate-error.constructor.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.aggregate-error.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.array.concat.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.array.for-each.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.array.is-array.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.array.iterator.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.array.map.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.array.reduce.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.json.stringify.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.json.to-string-tag.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.object.define-property.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.object.entries.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.object.get-own-property-symbols.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.object.keys.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.all-settled.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.all.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.any.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.catch.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.constructor.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.finally.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.race.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.reject.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.promise.resolve.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.string.iterator.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.async-iterator.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.constructor.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.for.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.has-instance.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.is-concat-spreadable.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.iterator.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.key-for.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.match-all.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.match.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.replace.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.search.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.species.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.split.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.to-primitive.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.to-string-tag.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.symbol.unscopables.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.weak-map.constructor.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.weak-map.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.weak-set.constructor.js","webpack://NeoVis/./node_modules/core-js-pure/modules/es.weak-set.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.async-dispose.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.dispose.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.is-registered.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.is-well-known.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.matcher.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.metadata-key.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.metadata.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.observable.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.pattern-match.js","webpack://NeoVis/./node_modules/core-js-pure/modules/esnext.symbol.replace-all.js","webpack://NeoVis/./node_modules/core-js-pure/modules/web.dom-collections.iterator.js","webpack://NeoVis/./node_modules/core-js-pure/modules/web.set-interval.js","webpack://NeoVis/./node_modules/core-js-pure/modules/web.set-timeout.js","webpack://NeoVis/./node_modules/core-js-pure/modules/web.timers.js","webpack://NeoVis/./node_modules/core-js-pure/stable/array/is-array.js","webpack://NeoVis/./node_modules/core-js-pure/stable/array/virtual/for-each.js","webpack://NeoVis/./node_modules/core-js-pure/stable/instance/concat.js","webpack://NeoVis/./node_modules/core-js-pure/stable/instance/for-each.js","webpack://NeoVis/./node_modules/core-js-pure/stable/instance/map.js","webpack://NeoVis/./node_modules/core-js-pure/stable/instance/reduce.js","webpack://NeoVis/./node_modules/core-js-pure/stable/object/define-property.js","webpack://NeoVis/./node_modules/core-js-pure/stable/object/entries.js","webpack://NeoVis/./node_modules/core-js-pure/stable/object/keys.js","webpack://NeoVis/./node_modules/core-js-pure/stable/promise/index.js","webpack://NeoVis/./node_modules/core-js-pure/stable/set-timeout.js","webpack://NeoVis/./node_modules/core-js-pure/stable/symbol/index.js","webpack://NeoVis/./node_modules/core-js-pure/stable/symbol/iterator.js","webpack://NeoVis/./node_modules/core-js-pure/stable/symbol/to-primitive.js","webpack://NeoVis/./node_modules/core-js-pure/stable/weak-map/index.js","webpack://NeoVis/./node_modules/core-js-pure/stable/weak-set/index.js","webpack://NeoVis/./node_modules/deepmerge/dist/cjs.js","webpack://NeoVis/./node_modules/ieee754/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/bolt-protocol-util.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/bolt-protocol-v1.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/bolt-protocol-v2.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/bolt-protocol-v3.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/bolt-protocol-v4x0.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/bolt-protocol-v4x1.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/bolt-protocol-v4x2.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/bolt-protocol-v4x3.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/bolt-protocol-v4x4.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/create.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/handshake.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/request-message.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/response-handler.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/routing-table-raw.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/bolt/stream-observers.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/buf/base-buf.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/buf/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/channel/browser/browser-channel.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/channel/browser/browser-host-name-resolver.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/channel/browser/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/channel/channel-buf.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/channel/channel-config.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/channel/chunking.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/channel/combined-buf.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/channel/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/channel/utf8.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection-provider/connection-provider-direct.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection-provider/connection-provider-pooled.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection-provider/connection-provider-routing.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection-provider/connection-provider-single.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection-provider/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection/connection-channel.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection/connection-delegate.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection/connection-error-handler.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection/connection.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/connection/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/load-balancing/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/load-balancing/least-connected-load-balancing-strategy.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/load-balancing/load-balancing-strategy.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/load-balancing/round-robin-array-index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/packstream/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/packstream/packstream-utc.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/packstream/packstream-v1.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/packstream/packstream-v2.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/packstream/temporal-factory.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/pool/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/pool/pool-config.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/pool/pool.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/rediscovery/index.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/rediscovery/rediscovery.js","webpack://NeoVis/./node_modules/neo4j-driver-bolt-connection/lib/rediscovery/routing-table.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/auth.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/connection-provider.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/connection.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/driver.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/error.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/graph-types.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/index.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/integer.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/bookmark.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/connection-holder.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/connectivity-verifier.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/constants.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/index.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/logger.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/object-util.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/observers.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/resolver/base-host-name-resolver.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/resolver/configured-custom-resolver.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/resolver/index.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/retry-strategy.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/server-address.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/temporal-util.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/transaction-executor.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/tx-config.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/url-util.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/internal/util.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/json.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/record.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/result-summary.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/result.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/session.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/spatial-types.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/temporal-types.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/transaction.js","webpack://NeoVis/./node_modules/neo4j-driver-core/lib/types.js","webpack://NeoVis/./node_modules/neo4j-driver/lib/driver.js","webpack://NeoVis/./node_modules/neo4j-driver/lib/index.js","webpack://NeoVis/./node_modules/neo4j-driver/lib/internal/retry-logic-rx.js","webpack://NeoVis/./node_modules/neo4j-driver/lib/result-rx.js","webpack://NeoVis/./node_modules/neo4j-driver/lib/session-rx.js","webpack://NeoVis/./node_modules/neo4j-driver/lib/transaction-rx.js","webpack://NeoVis/./node_modules/neo4j-driver/lib/version.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/AnimationFrameAction.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/animationFrame.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/AnimationFrameScheduler.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/VirtualTimeScheduler.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isObservable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/bindCallback.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/bindNodeCallback.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/forkJoin.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/fromEvent.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/fromEventPattern.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/generate.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/iif.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/interval.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/never.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/onErrorResumeNext.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/pairs.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/partition.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/range.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/using.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/AsyncSubject.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/BehaviorSubject.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/Notification.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/Observable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/toSubscriber.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/Observer.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/OuterSubscriber.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/ReplaySubject.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/Scheduler.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/Subject.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/SubjectSubscription.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/Subscriber.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/Subscription.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/config.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/innerSubscribe.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/ConnectableObservable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/combineLatest.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/concat.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/defer.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/empty.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/from.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/fromArray.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/merge.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/of.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/race.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/throwError.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/timer.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/zip.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/concatAll.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/filter.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/groupBy.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/map.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/mergeAll.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/mergeMap.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/observeOn.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/refCount.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduled/scheduleArray.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduled/scheduled.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isInteropObservable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduled/scheduleObservable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduled/schedulePromise.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isIterable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduled/scheduleIterable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/AsyncAction.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/Action.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/AsyncScheduler.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/Immediate.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/AsapAction.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/asap.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/AsapScheduler.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/async.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/QueueAction.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/queue.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/scheduler/QueueScheduler.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/symbol/iterator.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/symbol/observable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/symbol/rxSubscriber.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/ArgumentOutOfRangeError.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/EmptyError.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/ObjectUnsubscribedError.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/TimeoutError.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/UnsubscriptionError.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/canReportError.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/hostReportError.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/identity.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isArray.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isArrayLike.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isFunction.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isNumeric.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isObject.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isPromise.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isScheduler.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/noop.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/not.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/pipe.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/subscribeTo.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/subscribeToObservable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/subscribeToPromise.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/subscribeToIterable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/subscribeToArray.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/InnerSubscriber.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/audit.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/auditTime.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/buffer.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/bufferCount.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/bufferTime.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/bufferToggle.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/bufferWhen.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/catchError.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/combineAll.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/combineLatest.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/concat.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/concatMap.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/concatMapTo.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/count.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/debounce.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/debounceTime.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/defaultIfEmpty.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/util/isDate.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/delay.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/delayWhen.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/dematerialize.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/distinct.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/distinctUntilChanged.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/distinctUntilKeyChanged.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/throwIfEmpty.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/take.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/elementAt.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/endWith.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/every.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/exhaust.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/exhaustMap.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/expand.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/finalize.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/find.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/findIndex.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/first.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/ignoreElements.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/isEmpty.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/takeLast.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/last.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/mapTo.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/materialize.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/scan.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/reduce.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/max.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/merge.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/mergeMapTo.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/mergeScan.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/min.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/multicast.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/onErrorResumeNext.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/pairwise.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/partition.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/pluck.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/publish.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/publishBehavior.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/publishLast.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/publishReplay.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/race.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/repeat.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/repeatWhen.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/retry.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/retryWhen.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/sample.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/sampleTime.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/sequenceEqual.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/share.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/shareReplay.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/single.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/skip.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/skipLast.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/skipUntil.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/skipWhile.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/startWith.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/observable/SubscribeOnObservable.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/subscribeOn.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/switchMap.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/switchAll.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/switchMapTo.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/takeUntil.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/takeWhile.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/tap.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/throttle.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/throttleTime.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/timeInterval.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/timeoutWith.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/timeout.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/timestamp.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/toArray.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/window.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/windowCount.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/windowTime.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/windowToggle.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/windowWhen.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/withLatestFrom.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/zip.js","webpack://NeoVis/./node_modules/rxjs/_esm5/internal/operators/zipAll.js","webpack://NeoVis/./node_modules/safe-buffer/index.js","webpack://NeoVis/./node_modules/string_decoder/lib/string_decoder.js","webpack://NeoVis/./node_modules/tslib/tslib.es6.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/array/is-array.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/for-each.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/object/entries.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/promise.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/set-timeout.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js-stable/weak-set.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js/object/define-property.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js/symbol.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js/symbol/iterator.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/core-js/symbol/to-primitive.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/classCallCheck.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/createClass.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/inherits.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/toPrimitive.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/toPropertyKey.js","webpack://NeoVis/./node_modules/@babel/runtime/helpers/typeof.js","webpack://NeoVis/webpack/bootstrap","webpack://NeoVis/webpack/runtime/compat get default export","webpack://NeoVis/webpack/runtime/define property getters","webpack://NeoVis/webpack/runtime/global","webpack://NeoVis/webpack/runtime/hasOwnProperty shorthand","webpack://NeoVis/webpack/runtime/make namespace object","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/helpers/esm/typeof.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/helpers/esm/toPropertyKey.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/helpers/esm/toPrimitive.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/helpers/esm/classExtractFieldDescriptor.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldSet.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/helpers/esm/classApplyDescriptorSet.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldGet.js","webpack://NeoVis/./node_modules/@babel/runtime-corejs3/helpers/esm/classApplyDescriptorGet.js","webpack://NeoVis/./node_modules/vis-network/standalone/esm/vis-network.js","webpack://NeoVis/./src/defaults.ts","webpack://NeoVis/./src/events.ts","webpack://NeoVis/./src/types.ts","webpack://NeoVis/./src/neovis.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"NeoVis\"] = factory();\n\telse\n\t\troot[\"NeoVis\"] = factory();\n})(self, () => {\nreturn ","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nconst base64 = require('base64-js')\nconst ieee754 = require('ieee754')\nconst customInspectSymbol =\n (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation\n ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation\n : null\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nconst K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n const arr = new Uint8Array(1)\n const proto = { foo: function () { return 42 } }\n Object.setPrototypeOf(proto, Uint8Array.prototype)\n Object.setPrototypeOf(arr, proto)\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n const buf = new Uint8Array(length)\n Object.setPrototypeOf(buf, Buffer.prototype)\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayView(value)\n }\n\n if (value == null) {\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof SharedArrayBuffer !== 'undefined' &&\n (isInstance(value, SharedArrayBuffer) ||\n (value && isInstance(value.buffer, SharedArrayBuffer)))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n const valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n const b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\nObject.setPrototypeOf(Buffer, Uint8Array)\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpreted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n const length = byteLength(string, encoding) | 0\n let buf = createBuffer(length)\n\n const actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n const length = array.length < 0 ? 0 : checked(array.length) | 0\n const buf = createBuffer(length)\n for (let i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayView (arrayView) {\n if (isInstance(arrayView, Uint8Array)) {\n const copy = new Uint8Array(arrayView)\n return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)\n }\n return fromArrayLike(arrayView)\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n let buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(buf, Buffer.prototype)\n\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n const len = checked(obj.length) | 0\n const buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n let x = a.length\n let y = b.length\n\n for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n let i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n const buffer = Buffer.allocUnsafe(length)\n let pos = 0\n for (i = 0; i < list.length; ++i) {\n let buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n if (pos + buf.length > buffer.length) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)\n buf.copy(buffer, pos)\n } else {\n Uint8Array.prototype.set.call(\n buffer,\n buf,\n pos\n )\n }\n } else if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n } else {\n buf.copy(buffer, pos)\n }\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n const len = string.length\n const mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n let loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n const i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n const len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (let i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n const len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (let i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n const len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (let i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n const length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n let str = ''\n const max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return ''\n}\nif (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n let x = thisEnd - thisStart\n let y = end - start\n const len = Math.min(x, y)\n\n const thisCopy = this.slice(thisStart, thisEnd)\n const targetCopy = target.slice(start, end)\n\n for (let i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n let indexSize = 1\n let arrLength = arr.length\n let valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n let i\n if (dir) {\n let foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n let found = true\n for (let j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n const remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n const strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n let i\n for (i = 0; i < length; ++i) {\n const parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n const remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n case 'latin1':\n case 'binary':\n return asciiWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n const res = []\n\n let i = start\n while (i < end) {\n const firstByte = buf[i]\n let codePoint = null\n let bytesPerSequence = (firstByte > 0xEF)\n ? 4\n : (firstByte > 0xDF)\n ? 3\n : (firstByte > 0xBF)\n ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n let secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nconst MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n const len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n let res = ''\n let i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n const len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n let out = ''\n for (let i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]]\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n const bytes = buf.slice(start, end)\n let res = ''\n // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n for (let i = 0; i < bytes.length - 1; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n const len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n const newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(newBuf, Buffer.prototype)\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUintLE =\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUintBE =\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n let val = this[offset + --byteLength]\n let mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUint8 =\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUint16LE =\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUint16BE =\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUint32LE =\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUint32BE =\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const lo = first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24\n\n const hi = this[++offset] +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24\n\n return BigInt(lo) + (BigInt(hi) << BigInt(32))\n})\n\nBuffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const hi = first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n const lo = this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last\n\n return (BigInt(hi) << BigInt(32)) + BigInt(lo)\n})\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let i = byteLength\n let mul = 1\n let val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = this[offset + 4] +\n this[offset + 5] * 2 ** 8 +\n this[offset + 6] * 2 ** 16 +\n (last << 24) // Overflow\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24)\n})\n\nBuffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last)\n})\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUintLE =\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let mul = 1\n let i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUintBE =\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let i = byteLength - 1\n let mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUint8 =\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUint16LE =\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUint16BE =\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUint32LE =\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUint32BE =\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction wrtBigUInt64LE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n return offset\n}\n\nfunction wrtBigUInt64BE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset + 7] = lo\n lo = lo >> 8\n buf[offset + 6] = lo\n lo = lo >> 8\n buf[offset + 5] = lo\n lo = lo >> 8\n buf[offset + 4] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset + 3] = hi\n hi = hi >> 8\n buf[offset + 2] = hi\n hi = hi >> 8\n buf[offset + 1] = hi\n hi = hi >> 8\n buf[offset] = hi\n return offset + 8\n}\n\nBuffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = 0\n let mul = 1\n let sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = byteLength - 1\n let mul = 1\n let sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nBuffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n const len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n const code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n } else if (typeof val === 'boolean') {\n val = Number(val)\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n let i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n const bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n const len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// CUSTOM ERRORS\n// =============\n\n// Simplified versions from Node, changed for Buffer-only usage\nconst errors = {}\nfunction E (sym, getMessage, Base) {\n errors[sym] = class NodeError extends Base {\n constructor () {\n super()\n\n Object.defineProperty(this, 'message', {\n value: getMessage.apply(this, arguments),\n writable: true,\n configurable: true\n })\n\n // Add the error code to the name to include it in the stack trace.\n this.name = `${this.name} [${sym}]`\n // Access the stack to generate the error message including the error code\n // from the name.\n this.stack // eslint-disable-line no-unused-expressions\n // Reset the name to the actual name.\n delete this.name\n }\n\n get code () {\n return sym\n }\n\n set code (value) {\n Object.defineProperty(this, 'code', {\n configurable: true,\n enumerable: true,\n value,\n writable: true\n })\n }\n\n toString () {\n return `${this.name} [${sym}]: ${this.message}`\n }\n }\n}\n\nE('ERR_BUFFER_OUT_OF_BOUNDS',\n function (name) {\n if (name) {\n return `${name} is outside of buffer bounds`\n }\n\n return 'Attempt to access memory outside buffer bounds'\n }, RangeError)\nE('ERR_INVALID_ARG_TYPE',\n function (name, actual) {\n return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`\n }, TypeError)\nE('ERR_OUT_OF_RANGE',\n function (str, range, input) {\n let msg = `The value of \"${str}\" is out of range.`\n let received = input\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n }\n msg += ` It must be ${range}. Received ${received}`\n return msg\n }, RangeError)\n\nfunction addNumericalSeparator (val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\n\n// CHECK FUNCTIONS\n// ===============\n\nfunction checkBounds (buf, offset, byteLength) {\n validateNumber(offset, 'offset')\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n boundsError(offset, buf.length - (byteLength + 1))\n }\n}\n\nfunction checkIntBI (value, min, max, buf, offset, byteLength) {\n if (value > max || value < min) {\n const n = typeof min === 'bigint' ? 'n' : ''\n let range\n if (byteLength > 3) {\n if (min === 0 || min === BigInt(0)) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +\n `${(byteLength + 1) * 8 - 1}${n}`\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`\n }\n throw new errors.ERR_OUT_OF_RANGE('value', range, value)\n }\n checkBounds(buf, offset, byteLength)\n}\n\nfunction validateNumber (value, name) {\n if (typeof value !== 'number') {\n throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n}\n\nfunction boundsError (value, length, type) {\n if (Math.floor(value) !== value) {\n validateNumber(value, type)\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)\n }\n\n if (length < 0) {\n throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()\n }\n\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset',\n `>= ${type ? 1 : 0} and <= ${length}`,\n value)\n}\n\n// HELPER FUNCTIONS\n// ================\n\nconst INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n let codePoint\n const length = string.length\n let leadSurrogate = null\n const bytes = []\n\n for (let i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n let c, hi, lo\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n let i\n for (i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n// Create lookup table for `toString('hex')`\n// See: https://github.com/feross/buffer/issues/219\nconst hexSliceLookupTable = (function () {\n const alphabet = '0123456789abcdef'\n const table = new Array(256)\n for (let i = 0; i < 16; ++i) {\n const i16 = i * 16\n for (let j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j]\n }\n }\n return table\n})()\n\n// Return not function with Error if BigInt not supported\nfunction defineBigIntMethod (fn) {\n return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn\n}\n\nfunction BufferBigIntNotDefined () {\n throw new Error('BigInt not supported')\n}\n","var parent = require('../../stable/object/define-property');\n\nmodule.exports = parent;\n","var parent = require('../../stable/symbol');\n\nrequire('../../modules/esnext.symbol.dispose');\n\nmodule.exports = parent;\n","var parent = require('../../stable/symbol/iterator');\n\nmodule.exports = parent;\n","var parent = require('../../stable/symbol/to-primitive');\n\nmodule.exports = parent;\n","require('../../modules/es.array.is-array');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Array.isArray;\n","require('../../../modules/es.array.concat');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').concat;\n","require('../../../modules/es.array.for-each');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').forEach;\n","require('../../../modules/es.array.map');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').map;\n","require('../../../modules/es.array.reduce');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').reduce;\n","var isPrototypeOf = require('../../internals/object-is-prototype-of');\nvar method = require('../array/virtual/concat');\n\nvar ArrayPrototype = Array.prototype;\n\nmodule.exports = function (it) {\n var own = it.concat;\n return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.concat) ? method : own;\n};\n","var isPrototypeOf = require('../../internals/object-is-prototype-of');\nvar method = require('../array/virtual/map');\n\nvar ArrayPrototype = Array.prototype;\n\nmodule.exports = function (it) {\n var own = it.map;\n return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.map) ? method : own;\n};\n","var isPrototypeOf = require('../../internals/object-is-prototype-of');\nvar method = require('../array/virtual/reduce');\n\nvar ArrayPrototype = Array.prototype;\n\nmodule.exports = function (it) {\n var own = it.reduce;\n return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.reduce) ? method : own;\n};\n","require('../../modules/es.object.define-property');\nvar path = require('../../internals/path');\n\nvar Object = path.Object;\n\nvar defineProperty = module.exports = function defineProperty(it, key, desc) {\n return Object.defineProperty(it, key, desc);\n};\n\nif (Object.defineProperty.sham) defineProperty.sham = true;\n","require('../../modules/es.object.entries');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.entries;\n","require('../../modules/es.object.keys');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.keys;\n","require('../../modules/es.aggregate-error');\nrequire('../../modules/es.array.iterator');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.promise');\nrequire('../../modules/es.promise.all-settled');\nrequire('../../modules/es.promise.any');\nrequire('../../modules/es.promise.finally');\nrequire('../../modules/es.string.iterator');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Promise;\n","require('../../modules/es.array.concat');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.symbol');\nrequire('../../modules/es.symbol.async-iterator');\nrequire('../../modules/es.symbol.description');\nrequire('../../modules/es.symbol.has-instance');\nrequire('../../modules/es.symbol.is-concat-spreadable');\nrequire('../../modules/es.symbol.iterator');\nrequire('../../modules/es.symbol.match');\nrequire('../../modules/es.symbol.match-all');\nrequire('../../modules/es.symbol.replace');\nrequire('../../modules/es.symbol.search');\nrequire('../../modules/es.symbol.species');\nrequire('../../modules/es.symbol.split');\nrequire('../../modules/es.symbol.to-primitive');\nrequire('../../modules/es.symbol.to-string-tag');\nrequire('../../modules/es.symbol.unscopables');\nrequire('../../modules/es.json.to-string-tag');\nrequire('../../modules/es.math.to-string-tag');\nrequire('../../modules/es.reflect.to-string-tag');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Symbol;\n","require('../../modules/es.array.iterator');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.string.iterator');\nrequire('../../modules/es.symbol.iterator');\nvar WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');\n\nmodule.exports = WrappedWellKnownSymbolModule.f('iterator');\n","require('../../modules/es.date.to-primitive');\nrequire('../../modules/es.symbol.to-primitive');\nvar WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');\n\nmodule.exports = WrappedWellKnownSymbolModule.f('toPrimitive');\n","require('../../modules/es.array.iterator');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.weak-map');\nvar path = require('../../internals/path');\n\nmodule.exports = path.WeakMap;\n","require('../../modules/es.array.iterator');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.weak-set');\nvar path = require('../../internals/path');\n\nmodule.exports = path.WeakSet;\n","module.exports = require('../../full/object/define-property');\n","module.exports = require('../../full/symbol');\n","module.exports = require('../../full/symbol/iterator');\n","module.exports = require('../../full/symbol/to-primitive');\n","var parent = require('../../actual/object/define-property');\n\nmodule.exports = parent;\n","var parent = require('../../actual/symbol');\nrequire('../../modules/esnext.symbol.async-dispose');\nrequire('../../modules/esnext.symbol.is-registered');\nrequire('../../modules/esnext.symbol.is-well-known');\nrequire('../../modules/esnext.symbol.matcher');\nrequire('../../modules/esnext.symbol.metadata-key');\nrequire('../../modules/esnext.symbol.observable');\n// TODO: Remove from `core-js@4`\nrequire('../../modules/esnext.symbol.metadata');\nrequire('../../modules/esnext.symbol.pattern-match');\nrequire('../../modules/esnext.symbol.replace-all');\n\nmodule.exports = parent;\n","var parent = require('../../actual/symbol/iterator');\n\nmodule.exports = parent;\n","var parent = require('../../actual/symbol/to-primitive');\n\nmodule.exports = parent;\n","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var isConstructor = require('../internals/is-constructor');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsConstructor(argument) is true`\nmodule.exports = function (argument) {\n if (isConstructor(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a constructor');\n};\n","var isCallable = require('../internals/is-callable');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n","module.exports = function () { /* empty */ };\n","var isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw $TypeError('Incorrect invocation');\n};\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it\nvar fails = require('../internals/fails');\n\nmodule.exports = fails(function () {\n if (typeof ArrayBuffer == 'function') {\n var buffer = new ArrayBuffer(8);\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe\n if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });\n }\n});\n","'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\nmodule.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n} : [].forEach;\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var bind = require('../internals/function-bind-context');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = uncurryThis([].push);\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var IS_FILTER_REJECT = TYPE == 7;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that);\n var length = lengthOfArrayLike(self);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push(target, value); // filterReject\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod(7)\n};\n","var fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n};\n","var aCallable = require('../internals/a-callable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\nvar $TypeError = TypeError;\n\n// `Array.prototype.{ reduce, reduceRight }` methods implementation\nvar createMethod = function (IS_RIGHT) {\n return function (that, callbackfn, argumentsLength, memo) {\n aCallable(callbackfn);\n var O = toObject(that);\n var self = IndexedObject(O);\n var length = lengthOfArrayLike(O);\n var index = IS_RIGHT ? length - 1 : 0;\n var i = IS_RIGHT ? -1 : 1;\n if (argumentsLength < 2) while (true) {\n if (index in self) {\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if (IS_RIGHT ? index < 0 : length <= index) {\n throw $TypeError('Reduce of empty array with no initial value');\n }\n }\n for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.reduce` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduce\n left: createMethod(false),\n // `Array.prototype.reduceRight` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduceright\n right: createMethod(true)\n};\n","var toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\n\nvar $Array = Array;\nvar max = Math.max;\n\nmodule.exports = function (O, start, end) {\n var length = lengthOfArrayLike(O);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n var result = $Array(max(fin - k, 0));\n for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis([].slice);\n","var isArray = require('../internals/is-array');\nvar isConstructor = require('../internals/is-constructor');\nvar isObject = require('../internals/is-object');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\nvar $Array = Array;\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? $Array : C;\n};\n","var arraySpeciesConstructor = require('../internals/array-species-constructor');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar getWeakData = require('../internals/internal-metadata').getWeakData;\nvar anInstance = require('../internals/an-instance');\nvar anObject = require('../internals/an-object');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isObject = require('../internals/is-object');\nvar iterate = require('../internals/iterate');\nvar ArrayIterationModule = require('../internals/array-iteration');\nvar hasOwn = require('../internals/has-own-property');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\nvar find = ArrayIterationModule.find;\nvar findIndex = ArrayIterationModule.findIndex;\nvar splice = uncurryThis([].splice);\nvar id = 0;\n\n// fallback for uncaught frozen keys\nvar uncaughtFrozenStore = function (state) {\n return state.frozen || (state.frozen = new UncaughtFrozenStore());\n};\n\nvar UncaughtFrozenStore = function () {\n this.entries = [];\n};\n\nvar findUncaughtFrozen = function (store, key) {\n return find(store.entries, function (it) {\n return it[0] === key;\n });\n};\n\nUncaughtFrozenStore.prototype = {\n get: function (key) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) return entry[1];\n },\n has: function (key) {\n return !!findUncaughtFrozen(this, key);\n },\n set: function (key, value) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) entry[1] = value;\n else this.entries.push([key, value]);\n },\n 'delete': function (key) {\n var index = findIndex(this.entries, function (it) {\n return it[0] === key;\n });\n if (~index) splice(this.entries, index, 1);\n return !!~index;\n }\n};\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance(that, Prototype);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n id: id++,\n frozen: undefined\n });\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var data = getWeakData(anObject(key), true);\n if (data === true) uncaughtFrozenStore(state).set(key, value);\n else data[state.id] = value;\n return that;\n };\n\n defineBuiltIns(Prototype, {\n // `{ WeakMap, WeakSet }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-weakmap.prototype.delete\n // https://tc39.es/ecma262/#sec-weakset.prototype.delete\n 'delete': function (key) {\n var state = getInternalState(this);\n if (!isObject(key)) return false;\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state)['delete'](key);\n return data && hasOwn(data, state.id) && delete data[state.id];\n },\n // `{ WeakMap, WeakSet }.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-weakmap.prototype.has\n // https://tc39.es/ecma262/#sec-weakset.prototype.has\n has: function has(key) {\n var state = getInternalState(this);\n if (!isObject(key)) return false;\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state).has(key);\n return data && hasOwn(data, state.id);\n }\n });\n\n defineBuiltIns(Prototype, IS_MAP ? {\n // `WeakMap.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-weakmap.prototype.get\n get: function get(key) {\n var state = getInternalState(this);\n if (isObject(key)) {\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state).get(key);\n return data ? data[state.id] : undefined;\n }\n },\n // `WeakMap.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-weakmap.prototype.set\n set: function set(key, value) {\n return define(this, key, value);\n }\n } : {\n // `WeakSet.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-weakset.prototype.add\n add: function add(value) {\n return define(this, value, true);\n }\n });\n\n return Constructor;\n }\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar fails = require('../internals/fails');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar defineProperty = require('../internals/object-define-property').f;\nvar forEach = require('../internals/array-iteration').forEach;\nvar DESCRIPTORS = require('../internals/descriptors');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var exported = {};\n var Constructor;\n\n if (!DESCRIPTORS || !isCallable(NativeConstructor)\n || !(IS_WEAK || NativePrototype.forEach && !fails(function () { new NativeConstructor().entries().next(); }))\n ) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.enable();\n } else {\n Constructor = wrapper(function (target, iterable) {\n setInternalState(anInstance(target, Prototype), {\n type: CONSTRUCTOR_NAME,\n collection: new NativeConstructor()\n });\n if (iterable != undefined) iterate(iterable, target[ADDER], { that: target, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n forEach(['add', 'clear', 'delete', 'forEach', 'get', 'has', 'set', 'keys', 'values', 'entries'], function (KEY) {\n var IS_ADDER = KEY == 'add' || KEY == 'set';\n if (KEY in NativePrototype && !(IS_WEAK && KEY == 'clear')) {\n createNonEnumerableProperty(Prototype, KEY, function (a, b) {\n var collection = getInternalState(this).collection;\n if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false;\n var result = collection[KEY](a === 0 ? 0 : a, b);\n return IS_ADDER ? this : result;\n });\n }\n });\n\n IS_WEAK || defineProperty(Prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).collection.size;\n }\n });\n }\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME, false, true);\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, forced: true }, exported);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nmodule.exports = function (value, done) {\n return { value: value, done: done };\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\nvar toPropertyKey = require('../internals/to-property-key');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPropertyKey(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","var defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n return defineProperty.f(target, name, descriptor);\n};\n","var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nmodule.exports = function (target, key, value, options) {\n if (options && options.enumerable) target[key] = value;\n else createNonEnumerableProperty(target, key, value);\n return target;\n};\n","var defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) {\n if (options && options.unsafe && target[key]) target[key] = src[key];\n else defineBuiltIn(target, key, src[key], options);\n } return target;\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","var IS_DENO = require('../internals/engine-is-deno');\nvar IS_NODE = require('../internals/engine-is-node');\n\nmodule.exports = !IS_DENO && !IS_NODE\n && typeof window == 'object'\n && typeof document == 'object';\n","/* global Bun -- Deno case */\nmodule.exports = typeof Bun == 'function' && Bun && typeof Bun.version == 'string';\n","/* global Deno -- Deno case */\nmodule.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined';\n","var userAgent = require('../internals/engine-user-agent');\n\n// eslint-disable-next-line redos/no-vulnerable -- safe\nmodule.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);\n","var classof = require('../internals/classof-raw');\n\nmodule.exports = typeof process != 'undefined' && classof(process) == 'process';\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /web0s(?!.*chrome)/i.test(userAgent);\n","module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","var path = require('../internals/path');\n\nmodule.exports = function (CONSTRUCTOR) {\n return path[CONSTRUCTOR + 'Prototype'];\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar $Error = Error;\nvar replace = uncurryThis(''.replace);\n\nvar TEST = (function (arg) { return String($Error(arg).stack); })('zxcasd');\n// eslint-disable-next-line redos/no-vulnerable -- safe\nvar V8_OR_CHAKRA_STACK_ENTRY = /\\n\\s*at [^:]*:[^\\n]*/;\nvar IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);\n\nmodule.exports = function (stack, dropEntries) {\n if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {\n while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');\n } return stack;\n};\n","var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar clearErrorStack = require('../internals/error-stack-clear');\nvar ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');\n\n// non-standard V8\nvar captureStackTrace = Error.captureStackTrace;\n\nmodule.exports = function (error, C, stack, dropEntries) {\n if (ERROR_STACK_INSTALLABLE) {\n if (captureStackTrace) captureStackTrace(error, C);\n else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries));\n }\n};\n","var fails = require('../internals/fails');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = !fails(function () {\n var error = Error('a');\n if (!('stack' in error)) return true;\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));\n return error.stack !== 7;\n});\n","'use strict';\nvar global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar uncurryThis = require('../internals/function-uncurry-this-clause');\nvar isCallable = require('../internals/is-callable');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar isForced = require('../internals/is-forced');\nvar path = require('../internals/path');\nvar bind = require('../internals/function-bind-context');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\n\nvar wrapConstructor = function (NativeConstructor) {\n var Wrapper = function (a, b, c) {\n if (this instanceof Wrapper) {\n switch (arguments.length) {\n case 0: return new NativeConstructor();\n case 1: return new NativeConstructor(a);\n case 2: return new NativeConstructor(a, b);\n } return new NativeConstructor(a, b, c);\n } return apply(NativeConstructor, this, arguments);\n };\n Wrapper.prototype = NativeConstructor.prototype;\n return Wrapper;\n};\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var PROTO = options.proto;\n\n var nativeSource = GLOBAL ? global : STATIC ? global[TARGET] : (global[TARGET] || {}).prototype;\n\n var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET];\n var targetPrototype = target.prototype;\n\n var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;\n var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;\n\n for (key in source) {\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contains in native\n USE_NATIVE = !FORCED && nativeSource && hasOwn(nativeSource, key);\n\n targetProperty = target[key];\n\n if (USE_NATIVE) if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(nativeSource, key);\n nativeProperty = descriptor && descriptor.value;\n } else nativeProperty = nativeSource[key];\n\n // export native or implementation\n sourceProperty = (USE_NATIVE && nativeProperty) ? nativeProperty : source[key];\n\n if (USE_NATIVE && typeof targetProperty == typeof sourceProperty) continue;\n\n // bind methods to global for calling from export context\n if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, global);\n // wrap global constructors for prevent changes in this version\n else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);\n // make static versions for prototype methods\n else if (PROTO && isCallable(sourceProperty)) resultProperty = uncurryThis(sourceProperty);\n // default case\n else resultProperty = sourceProperty;\n\n // add a flag to not completely full polyfills\n if (options.sham || (sourceProperty && sourceProperty.sham) || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(resultProperty, 'sham', true);\n }\n\n createNonEnumerableProperty(target, key, resultProperty);\n\n if (PROTO) {\n VIRTUAL_PROTOTYPE = TARGET + 'Prototype';\n if (!hasOwn(path, VIRTUAL_PROTOTYPE)) {\n createNonEnumerableProperty(path, VIRTUAL_PROTOTYPE, {});\n }\n // export virtual prototype methods\n createNonEnumerableProperty(path[VIRTUAL_PROTOTYPE], key, sourceProperty);\n // export real prototype methods\n if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) {\n createNonEnumerableProperty(targetPrototype, key, sourceProperty);\n }\n }\n }\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var uncurryThis = require('../internals/function-uncurry-this-clause');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nmodule.exports = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n};\n","var classofRaw = require('../internals/classof-raw');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThis(fn);\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","var path = require('../internals/path');\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (variable) {\n return isCallable(variable) ? variable : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])\n : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];\n};\n","var classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)\n || getMethod(it, '@@iterator')\n || Iterators[classof(it)];\n};\n","var call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n throw $TypeError(tryToString(argument) + ' is not iterable');\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isArray = require('../internals/is-array');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof-raw');\nvar toString = require('../internals/to-string');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (replacer) {\n if (isCallable(replacer)) return replacer;\n if (!isArray(replacer)) return;\n var rawLength = replacer.length;\n var keys = [];\n for (var i = 0; i < rawLength; i++) {\n var element = replacer[i];\n if (typeof element == 'string') push(keys, element);\n else if (typeof element == 'number' || classof(element) == 'Number' || classof(element) == 'String') push(keys, toString(element));\n }\n var keysLength = keys.length;\n var root = true;\n return function (key, value) {\n if (root) {\n root = false;\n return value;\n }\n if (isArray(this)) return value;\n for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;\n };\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || this || Function('return this')();\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","module.exports = {};\n","module.exports = function (a, b) {\n try {\n // eslint-disable-next-line no-console -- safe\n arguments.length == 1 ? console.error(a) : console.error(a, b);\n } catch (error) { /* empty */ }\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\n// `InstallErrorCause` abstract operation\n// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause\nmodule.exports = function (O, options) {\n if (isObject(options) && 'cause' in options) {\n createNonEnumerableProperty(O, 'cause', options.cause);\n }\n};\n","var $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external');\nvar isExtensible = require('../internals/object-is-extensible');\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id = 0;\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + id++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = module.exports = {\n enable: enable,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","var $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof');\nvar getBuiltIn = require('../internals/get-built-in');\nvar inspectSource = require('../internals/inspect-source');\n\nvar noop = function () { /* empty */ };\nvar empty = [];\nvar construct = getBuiltIn('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec = uncurryThis(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.exec(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n try {\n construct(noop, empty, argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n switch (classof(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nmodule.exports = !construct || fails(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","module.exports = true;\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar $TypeError = TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_RECORD = !!(options && options.IS_RECORD);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_RECORD) {\n iterator = iterable.iterator;\n } else if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = IS_RECORD ? iterable.next : iterator.next;\n while (!(step = call(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n","var call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar IS_PURE = require('../internals/is-pure');\nvar FunctionName = require('../internals/function-name');\nvar isCallable = require('../internals/is-callable');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {\n defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {\n createNonEnumerableProperty(IterablePrototype, 'name', VALUES);\n } else {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n defineBuiltIn(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });\n }\n Iterators[NAME] = defaultIterator;\n\n return methods;\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\nelse if (IS_PURE) IteratorPrototype = create(IteratorPrototype);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable(IteratorPrototype[ITERATOR])) {\n defineBuiltIn(IteratorPrototype, ITERATOR, function () {\n return this;\n });\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","module.exports = {};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar macrotask = require('../internals/task').set;\nvar Queue = require('../internals/queue');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_IOS_PEBBLE = require('../internals/engine-is-ios-pebble');\nvar IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar document = global.document;\nvar process = global.process;\nvar Promise = global.Promise;\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar microtask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\nvar notify, toggle, node, promise, then;\n\n// modern engines have queueMicrotask method\nif (!microtask) {\n var queue = new Queue();\n\n var flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n while (fn = queue.get()) try {\n fn();\n } catch (error) {\n if (queue.head) notify();\n throw error;\n }\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise.constructor = Promise;\n then = bind(promise.then, promise);\n notify = function () {\n then(flush);\n };\n // Node.js without promises\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessage\n // - onreadystatechange\n // - setTimeout\n } else {\n // `webpack` dev server bug on IE global methods - use bind(fn, global)\n macrotask = bind(macrotask, global);\n notify = function () {\n macrotask(flush);\n };\n }\n\n microtask = function (fn) {\n if (!queue.head) notify();\n queue.add(fn);\n };\n}\n\nmodule.exports = microtask;\n","'use strict';\nvar aCallable = require('../internals/a-callable');\n\nvar $TypeError = TypeError;\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw $TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aCallable(resolve);\n this.reject = aCallable(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","var toString = require('../internals/to-string');\n\nmodule.exports = function (argument, $default) {\n return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);\n};\n","/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","/* eslint-disable es/no-object-getownpropertynames -- safe */\nvar classof = require('../internals/classof-raw');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar arraySlice = require('../internals/array-slice-simple');\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames(it);\n } catch (error) {\n return arraySlice(windowNames);\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && classof(it) == 'Window'\n ? getWindowNames(it)\n : $getOwnPropertyNames(toIndexedObject(it));\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar $Object = Object;\nvar ObjectPrototype = $Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {\n var object = toObject(O);\n if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object ? ObjectPrototype : null;\n};\n","var fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible');\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\nmodule.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n} : $isExtensible;\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","/* eslint-disable no-proto -- safe */\nvar uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","var DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar objectKeys = require('../internals/object-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;\n\nvar propertyIsEnumerable = uncurryThis($propertyIsEnumerable);\nvar push = uncurryThis([].push);\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {\n push(result, TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.es/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n values: createMethod(false)\n};\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","module.exports = {};\n","module.exports = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n","var global = require('../internals/global');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar isCallable = require('../internals/is-callable');\nvar isForced = require('../internals/is-forced');\nvar inspectSource = require('../internals/inspect-source');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_BROWSER = require('../internals/engine-is-browser');\nvar IS_DENO = require('../internals/engine-is-deno');\nvar IS_PURE = require('../internals/is-pure');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar SPECIES = wellKnownSymbol('species');\nvar SUBCLASSING = false;\nvar NATIVE_PROMISE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);\n\nvar FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution\n if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {\n // Detect correctness of subclassing with @@species support\n var promise = new NativePromiseConstructor(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT;\n});\n\nmodule.exports = {\n CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR,\n REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT,\n SUBCLASSING: SUBCLASSING\n};\n","var global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","var anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","var NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\nmodule.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) {\n NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ });\n});\n","var Queue = function () {\n this.head = null;\n this.tail = null;\n};\n\nQueue.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n var tail = this.tail;\n if (tail) tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n var next = this.head = entry.next;\n if (next === null) this.tail = null;\n return entry.item;\n }\n }\n};\n\nmodule.exports = Queue;\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar isCallable = require('../internals/is-callable');\nvar ENGINE_IS_BUN = require('../internals/engine-is-bun');\nvar USER_AGENT = require('../internals/engine-user-agent');\nvar arraySlice = require('../internals/array-slice');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\n\nvar Function = global.Function;\n// dirty IE9- and Bun 0.3.0- checks\nvar WRAP = /MSIE .\\./.test(USER_AGENT) || ENGINE_IS_BUN && (function () {\n var version = global.Bun.version.split('.');\n return version.length < 3 || version[0] == 0 && (version[1] < 3 || version[1] == 3 && version[2] == 0);\n})();\n\n// IE9- / Bun 0.3.0- setTimeout / setInterval / setImmediate additional parameters fix\n// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers\n// https://github.com/oven-sh/bun/issues/1633\nmodule.exports = function (scheduler, hasTimeArg) {\n var firstParamIndex = hasTimeArg ? 2 : 1;\n return WRAP ? function (handler, timeout /* , ...arguments */) {\n var boundArgs = validateArgumentsLength(arguments.length, 1) > firstParamIndex;\n var fn = isCallable(handler) ? handler : Function(handler);\n var params = boundArgs ? arraySlice(arguments, firstParamIndex) : [];\n var callback = boundArgs ? function () {\n apply(fn, this, params);\n } : fn;\n return hasTimeArg ? scheduler(callback, timeout) : scheduler(callback);\n } : scheduler;\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineBuiltInAccessor(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar defineProperty = require('../internals/object-define-property').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar toString = require('../internals/object-to-string');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (it, TAG, STATIC, SET_METHOD) {\n if (it) {\n var target = STATIC ? it : it.prototype;\n if (!hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n if (SET_METHOD && !TO_STRING_TAG_SUPPORT) {\n createNonEnumerableProperty(target, 'toString', toString);\n }\n }\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.30.2',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","var anObject = require('../internals/an-object');\nvar aConstructor = require('../internals/a-constructor');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringSlice = uncurryThis(''.slice);\n\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(requireObjectCoercible($this));\n var position = toIntegerOrInfinity(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\nvar global = require('../internals/global');\n\nvar $String = global.String;\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,\n // of course, fail.\n return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","var call = require('../internals/function-call');\nvar getBuiltIn = require('../internals/get-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function () {\n var Symbol = getBuiltIn('Symbol');\n var SymbolPrototype = Symbol && Symbol.prototype;\n var valueOf = SymbolPrototype && SymbolPrototype.valueOf;\n var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n if (SymbolPrototype && !SymbolPrototype[TO_PRIMITIVE]) {\n // `Symbol.prototype[@@toPrimitive]` method\n // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive\n // eslint-disable-next-line no-unused-vars -- required for .length\n defineBuiltIn(SymbolPrototype, TO_PRIMITIVE, function (hint) {\n return call(valueOf, this);\n }, { arity: 1 });\n }\n};\n","var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\n/* eslint-disable es/no-symbol -- safe */\nmodule.exports = NATIVE_SYMBOL && !!Symbol['for'] && !!Symbol.keyFor;\n","var global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar bind = require('../internals/function-bind-context');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar fails = require('../internals/fails');\nvar html = require('../internals/html');\nvar arraySlice = require('../internals/array-slice');\nvar createElement = require('../internals/document-create-element');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar Dispatch = global.Dispatch;\nvar Function = global.Function;\nvar MessageChannel = global.MessageChannel;\nvar String = global.String;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar $location, defer, channel, port;\n\nfails(function () {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n $location = global.location;\n});\n\nvar run = function (id) {\n if (hasOwn(queue, id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar eventListener = function (event) {\n run(event.data);\n};\n\nvar globalPostMessageDefer = function (id) {\n // old engines have not location.origin\n global.postMessage(String(id), $location.protocol + '//' + $location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(handler) {\n validateArgumentsLength(arguments.length, 1);\n var fn = isCallable(handler) ? handler : Function(handler);\n var args = arraySlice(arguments, 1);\n queue[++counter] = function () {\n apply(fn, undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (IS_NODE) {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = eventListener;\n defer = bind(port.postMessage, port);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n isCallable(global.postMessage) &&\n !global.importScripts &&\n $location && $location.protocol !== 'file:' &&\n !fails(globalPostMessageDefer)\n ) {\n defer = globalPostMessageDefer;\n global.addEventListener('message', eventListener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw $TypeError('Not enough arguments');\n return passed;\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","var path = require('../internals/path');\nvar hasOwn = require('../internals/has-own-property');\nvar wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');\nvar defineProperty = require('../internals/object-define-property').f;\n\nmodule.exports = function (NAME) {\n var Symbol = path.Symbol || (path.Symbol = {});\n if (!hasOwn(Symbol, NAME)) defineProperty(Symbol, NAME, {\n value: wrappedWellKnownSymbolModule.f(NAME)\n });\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nexports.f = wellKnownSymbol;\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar create = require('../internals/object-create');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar installErrorCause = require('../internals/install-error-cause');\nvar installErrorStack = require('../internals/error-stack-install');\nvar iterate = require('../internals/iterate');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Error = Error;\nvar push = [].push;\n\nvar $AggregateError = function AggregateError(errors, message /* , options */) {\n var isInstance = isPrototypeOf(AggregateErrorPrototype, this);\n var that;\n if (setPrototypeOf) {\n that = setPrototypeOf($Error(), isInstance ? getPrototypeOf(this) : AggregateErrorPrototype);\n } else {\n that = isInstance ? this : create(AggregateErrorPrototype);\n createNonEnumerableProperty(that, TO_STRING_TAG, 'Error');\n }\n if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message));\n installErrorStack(that, $AggregateError, that.stack, 1);\n if (arguments.length > 2) installErrorCause(that, arguments[2]);\n var errorsArray = [];\n iterate(errors, push, { that: errorsArray });\n createNonEnumerableProperty(that, 'errors', errorsArray);\n return that;\n};\n\nif (setPrototypeOf) setPrototypeOf($AggregateError, $Error);\nelse copyConstructorProperties($AggregateError, $Error, { name: true });\n\nvar AggregateErrorPrototype = $AggregateError.prototype = create($Error.prototype, {\n constructor: createPropertyDescriptor(1, $AggregateError),\n message: createPropertyDescriptor(1, ''),\n name: createPropertyDescriptor(1, 'AggregateError')\n});\n\n// `AggregateError` constructor\n// https://tc39.es/ecma262/#sec-aggregate-error-constructor\n$({ global: true, constructor: true, arity: 2 }, {\n AggregateError: $AggregateError\n});\n","// TODO: Remove this module from `core-js@4` since it's replaced to module below\nrequire('../modules/es.aggregate-error.constructor');\n","'use strict';\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar createProperty = require('../internals/create-property');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');\n\n// We can't use this feature detection in V8 since it causes\n// deoptimization and serious performance degradation\n// https://github.com/zloirock/core-js/issues/679\nvar IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar isConcatSpreadable = function (O) {\n if (!isObject(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray(O);\n};\n\nvar FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');\n\n// `Array.prototype.concat` method\n// https://tc39.es/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n concat: function concat(arg) {\n var O = toObject(this);\n var A = arraySpeciesCreate(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = lengthOfArrayLike(E);\n doesNotExceedSafeInteger(n + len);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);\n } else {\n doesNotExceedSafeInteger(n + 1);\n createProperty(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar forEach = require('../internals/array-for-each');\n\n// `Array.prototype.forEach` method\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n$({ target: 'Array', proto: true, forced: [].forEach != forEach }, {\n forEach: forEach\n});\n","var $ = require('../internals/export');\nvar isArray = require('../internals/is-array');\n\n// `Array.isArray` method\n// https://tc39.es/ecma262/#sec-array.isarray\n$({ target: 'Array', stat: true }, {\n isArray: isArray\n});\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar Iterators = require('../internals/iterators');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineProperty = require('../internals/object-define-property').f;\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n if (kind == 'keys') return createIterResultObject(index, false);\n if (kind == 'values') return createIterResultObject(target[index], false);\n return createIterResultObject([index, target[index]], false);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nvar values = Iterators.Arguments = Iterators.Array;\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n// V8 ~ Chrome 45- bug\nif (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {\n defineProperty(values, 'name', { value: 'values' });\n} catch (error) { /* empty */ }\n","'use strict';\nvar $ = require('../internals/export');\nvar $map = require('../internals/array-iteration').map;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n\n// `Array.prototype.map` method\n// https://tc39.es/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $reduce = require('../internals/array-reduce').left;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar CHROME_VERSION = require('../internals/engine-v8-version');\nvar IS_NODE = require('../internals/engine-is-node');\n\n// Chrome 80-82 has a critical bug\n// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982\nvar CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;\nvar FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');\n\n// `Array.prototype.reduce` method\n// https://tc39.es/ecma262/#sec-array.prototype.reduce\n$({ target: 'Array', proto: true, forced: FORCED }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n var length = arguments.length;\n return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);\n }\n});\n","var $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar apply = require('../internals/function-apply');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar isSymbol = require('../internals/is-symbol');\nvar arraySlice = require('../internals/array-slice');\nvar getReplacerFunction = require('../internals/get-json-replacer-function');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nvar $String = String;\nvar $stringify = getBuiltIn('JSON', 'stringify');\nvar exec = uncurryThis(/./.exec);\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar replace = uncurryThis(''.replace);\nvar numberToString = uncurryThis(1.0.toString);\n\nvar tester = /[\\uD800-\\uDFFF]/g;\nvar low = /^[\\uD800-\\uDBFF]$/;\nvar hi = /^[\\uDC00-\\uDFFF]$/;\n\nvar WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function () {\n var symbol = getBuiltIn('Symbol')();\n // MS Edge converts symbol values to JSON as {}\n return $stringify([symbol]) != '[null]'\n // WebKit converts symbol values to JSON as null\n || $stringify({ a: symbol }) != '{}'\n // V8 throws on boxed symbols\n || $stringify(Object(symbol)) != '{}';\n});\n\n// https://github.com/tc39/proposal-well-formed-stringify\nvar ILL_FORMED_UNICODE = fails(function () {\n return $stringify('\\uDF06\\uD834') !== '\"\\\\udf06\\\\ud834\"'\n || $stringify('\\uDEAD') !== '\"\\\\udead\"';\n});\n\nvar stringifyWithSymbolsFix = function (it, replacer) {\n var args = arraySlice(arguments);\n var $replacer = getReplacerFunction(replacer);\n if (!isCallable($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined\n args[1] = function (key, value) {\n // some old implementations (like WebKit) could pass numbers as keys\n if (isCallable($replacer)) value = call($replacer, this, $String(key), value);\n if (!isSymbol(value)) return value;\n };\n return apply($stringify, null, args);\n};\n\nvar fixIllFormed = function (match, offset, string) {\n var prev = charAt(string, offset - 1);\n var next = charAt(string, offset + 1);\n if ((exec(low, match) && !exec(hi, next)) || (exec(hi, match) && !exec(low, prev))) {\n return '\\\\u' + numberToString(charCodeAt(match, 0), 16);\n } return match;\n};\n\nif ($stringify) {\n // `JSON.stringify` method\n // https://tc39.es/ecma262/#sec-json.stringify\n $({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n stringify: function stringify(it, replacer, space) {\n var args = arraySlice(arguments);\n var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);\n return ILL_FORMED_UNICODE && typeof result == 'string' ? replace(result, tester, fixIllFormed) : result;\n }\n });\n}\n","var global = require('../internals/global');\nvar setToStringTag = require('../internals/set-to-string-tag');\n\n// JSON[@@toStringTag] property\n// https://tc39.es/ecma262/#sec-json-@@tostringtag\nsetToStringTag(global.JSON, 'JSON', true);\n","var $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar defineProperty = require('../internals/object-define-property').f;\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\n// eslint-disable-next-line es/no-object-defineproperty -- safe\n$({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProperty, sham: !DESCRIPTORS }, {\n defineProperty: defineProperty\n});\n","var $ = require('../internals/export');\nvar $entries = require('../internals/object-to-array').entries;\n\n// `Object.entries` method\n// https://tc39.es/ecma262/#sec-object.entries\n$({ target: 'Object', stat: true }, {\n entries: function entries(O) {\n return $entries(O);\n }\n});\n","var $ = require('../internals/export');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar fails = require('../internals/fails');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar toObject = require('../internals/to-object');\n\n// V8 ~ Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\nvar FORCED = !NATIVE_SYMBOL || fails(function () { getOwnPropertySymbolsModule.f(1); });\n\n// `Object.getOwnPropertySymbols` method\n// https://tc39.es/ecma262/#sec-object.getownpropertysymbols\n$({ target: 'Object', stat: true, forced: FORCED }, {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n var $getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject(it)) : [];\n }\n});\n","var $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar nativeKeys = require('../internals/object-keys');\nvar fails = require('../internals/fails');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n keys: function keys(it) {\n return nativeKeys(toObject(it));\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.allSettled` method\n// https://tc39.es/ecma262/#sec-promise.allsettled\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n allSettled: function allSettled(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var promiseResolve = aCallable(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call(promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'fulfilled', value: value };\n --remaining || resolve(values);\n }, function (error) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'rejected', reason: error };\n --remaining || resolve(values);\n });\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.all` method\n// https://tc39.es/ecma262/#sec-promise.all\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call($promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar getBuiltIn = require('../internals/get-built-in');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\nvar PROMISE_ANY_ERROR = 'No one promise resolved';\n\n// `Promise.any` method\n// https://tc39.es/ecma262/#sec-promise.any\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n any: function any(iterable) {\n var C = this;\n var AggregateError = getBuiltIn('AggregateError');\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var promiseResolve = aCallable(C.resolve);\n var errors = [];\n var counter = 0;\n var remaining = 1;\n var alreadyResolved = false;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyRejected = false;\n remaining++;\n call(promiseResolve, C, promise).then(function (value) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyResolved = true;\n resolve(value);\n }, function (error) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyRejected = true;\n errors[index] = error;\n --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));\n });\n });\n --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// `Promise.prototype.catch` method\n// https://tc39.es/ecma262/#sec-promise.prototype.catch\n$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, {\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n});\n\n// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromiseConstructor)) {\n var method = getBuiltIn('Promise').prototype['catch'];\n if (NativePromisePrototype['catch'] !== method) {\n defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar IS_NODE = require('../internals/engine-is-node');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar aCallable = require('../internals/a-callable');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar anInstance = require('../internals/an-instance');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar perform = require('../internals/perform');\nvar Queue = require('../internals/queue');\nvar InternalStateModule = require('../internals/internal-state');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar PromiseConstructorDetection = require('../internals/promise-constructor-detection');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\n\nvar PROMISE = 'Promise';\nvar FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR;\nvar NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;\nvar NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar setInternalState = InternalStateModule.set;\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar PromiseConstructor = NativePromiseConstructor;\nvar PromisePrototype = NativePromisePrototype;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\n\nvar DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\n\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && isCallable(then = it.then) ? then : false;\n};\n\nvar callReaction = function (reaction, state) {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n call(then, result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n};\n\nvar notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n microtask(function () {\n var reactions = state.reactions;\n var reaction;\n while (reaction = reactions.get()) {\n callReaction(reaction, state);\n }\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\n};\n\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n call(then, value,\n bind(internalResolve, wrapper, state),\n bind(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED_PROMISE_CONSTRUCTOR) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromisePrototype);\n aCallable(executor);\n call(Internal, this);\n var state = getInternalPromiseState(this);\n try {\n executor(bind(internalResolve, state), bind(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n\n PromisePrototype = PromiseConstructor.prototype;\n\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: new Queue(),\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n state.parent = true;\n reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;\n reaction.fail = isCallable(onRejected) && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n if (state.state == PENDING) state.reactions.add(reaction);\n else microtask(function () {\n callReaction(reaction, state);\n });\n return reaction.promise;\n });\n\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalPromiseState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, state);\n this.reject = bind(internalReject, state);\n };\n\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n\n if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) {\n nativeThen = NativePromisePrototype.then;\n\n if (!NATIVE_PROMISE_SUBCLASSING) {\n // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs\n defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n call(nativeThen, that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, { unsafe: true });\n }\n\n // make `.constructor === Promise` work for native promise-based APIs\n try {\n delete NativePromisePrototype.constructor;\n } catch (error) { /* empty */ }\n\n // make `instanceof Promise` work for native promise-based APIs\n if (setPrototypeOf) {\n setPrototypeOf(NativePromisePrototype, PromisePrototype);\n }\n }\n}\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar fails = require('../internals/fails');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar speciesConstructor = require('../internals/species-constructor');\nvar promiseResolve = require('../internals/promise-resolve');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829\nvar NON_GENERIC = !!NativePromiseConstructor && fails(function () {\n // eslint-disable-next-line unicorn/no-thenable -- required for testing\n NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });\n});\n\n// `Promise.prototype.finally` method\n// https://tc39.es/ecma262/#sec-promise.prototype.finally\n$({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {\n 'finally': function (onFinally) {\n var C = speciesConstructor(this, getBuiltIn('Promise'));\n var isFunction = isCallable(onFinally);\n return this.then(\n isFunction ? function (x) {\n return promiseResolve(C, onFinally()).then(function () { return x; });\n } : onFinally,\n isFunction ? function (e) {\n return promiseResolve(C, onFinally()).then(function () { throw e; });\n } : onFinally\n );\n }\n});\n\n// makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromiseConstructor)) {\n var method = getBuiltIn('Promise').prototype['finally'];\n if (NativePromisePrototype['finally'] !== method) {\n defineBuiltIn(NativePromisePrototype, 'finally', method, { unsafe: true });\n }\n}\n","// TODO: Remove this module from `core-js@4` since it's split to modules listed below\nrequire('../modules/es.promise.constructor');\nrequire('../modules/es.promise.all');\nrequire('../modules/es.promise.catch');\nrequire('../modules/es.promise.race');\nrequire('../modules/es.promise.reject');\nrequire('../modules/es.promise.resolve');\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.race` method\n// https://tc39.es/ecma262/#sec-promise.race\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n iterate(iterable, function (promise) {\n call($promiseResolve, C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\n// `Promise.reject` method\n// https://tc39.es/ecma262/#sec-promise.reject\n$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n reject: function reject(r) {\n var capability = newPromiseCapabilityModule.f(this);\n call(capability.reject, undefined, r);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar promiseResolve = require('../internals/promise-resolve');\n\nvar PromiseConstructorWrapper = getBuiltIn('Promise');\nvar CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR;\n\n// `Promise.resolve` method\n// https://tc39.es/ecma262/#sec-promise.resolve\n$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, {\n resolve: function resolve(x) {\n return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x);\n }\n});\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return createIterResultObject(undefined, true);\n point = charAt(string, index);\n state.index += point.length;\n return createIterResultObject(point, false);\n});\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.asyncIterator` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.asynciterator\ndefineWellKnownSymbol('asyncIterator');\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar fails = require('../internals/fails');\nvar hasOwn = require('../internals/has-own-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar $toString = require('../internals/to-string');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar nativeObjectCreate = require('../internals/object-create');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternal = require('../internals/object-get-own-property-names-external');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar shared = require('../internals/shared');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar uid = require('../internals/uid');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');\nvar defineWellKnownSymbol = require('../internals/well-known-symbol-define');\nvar defineSymbolToPrimitive = require('../internals/symbol-define-to-primitive');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar InternalStateModule = require('../internals/internal-state');\nvar $forEach = require('../internals/array-iteration').forEach;\n\nvar HIDDEN = sharedKey('hidden');\nvar SYMBOL = 'Symbol';\nvar PROTOTYPE = 'prototype';\n\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(SYMBOL);\n\nvar ObjectPrototype = Object[PROTOTYPE];\nvar $Symbol = global.Symbol;\nvar SymbolPrototype = $Symbol && $Symbol[PROTOTYPE];\nvar TypeError = global.TypeError;\nvar QObject = global.QObject;\nvar nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\nvar nativeDefineProperty = definePropertyModule.f;\nvar nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;\nvar nativePropertyIsEnumerable = propertyIsEnumerableModule.f;\nvar push = uncurryThis([].push);\n\nvar AllSymbols = shared('symbols');\nvar ObjectPrototypeSymbols = shared('op-symbols');\nvar WellKnownSymbolsStore = shared('wks');\n\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDescriptor = DESCRIPTORS && fails(function () {\n return nativeObjectCreate(nativeDefineProperty({}, 'a', {\n get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (O, P, Attributes) {\n var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);\n if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];\n nativeDefineProperty(O, P, Attributes);\n if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {\n nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);\n }\n} : nativeDefineProperty;\n\nvar wrap = function (tag, description) {\n var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype);\n setInternalState(symbol, {\n type: SYMBOL,\n tag: tag,\n description: description\n });\n if (!DESCRIPTORS) symbol.description = description;\n return symbol;\n};\n\nvar $defineProperty = function defineProperty(O, P, Attributes) {\n if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);\n anObject(O);\n var key = toPropertyKey(P);\n anObject(Attributes);\n if (hasOwn(AllSymbols, key)) {\n if (!Attributes.enumerable) {\n if (!hasOwn(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));\n O[HIDDEN][key] = true;\n } else {\n if (hasOwn(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;\n Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });\n } return setSymbolDescriptor(O, key, Attributes);\n } return nativeDefineProperty(O, key, Attributes);\n};\n\nvar $defineProperties = function defineProperties(O, Properties) {\n anObject(O);\n var properties = toIndexedObject(Properties);\n var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));\n $forEach(keys, function (key) {\n if (!DESCRIPTORS || call($propertyIsEnumerable, properties, key)) $defineProperty(O, key, properties[key]);\n });\n return O;\n};\n\nvar $create = function create(O, Properties) {\n return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);\n};\n\nvar $propertyIsEnumerable = function propertyIsEnumerable(V) {\n var P = toPropertyKey(V);\n var enumerable = call(nativePropertyIsEnumerable, this, P);\n if (this === ObjectPrototype && hasOwn(AllSymbols, P) && !hasOwn(ObjectPrototypeSymbols, P)) return false;\n return enumerable || !hasOwn(this, P) || !hasOwn(AllSymbols, P) || hasOwn(this, HIDDEN) && this[HIDDEN][P]\n ? enumerable : true;\n};\n\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {\n var it = toIndexedObject(O);\n var key = toPropertyKey(P);\n if (it === ObjectPrototype && hasOwn(AllSymbols, key) && !hasOwn(ObjectPrototypeSymbols, key)) return;\n var descriptor = nativeGetOwnPropertyDescriptor(it, key);\n if (descriptor && hasOwn(AllSymbols, key) && !(hasOwn(it, HIDDEN) && it[HIDDEN][key])) {\n descriptor.enumerable = true;\n }\n return descriptor;\n};\n\nvar $getOwnPropertyNames = function getOwnPropertyNames(O) {\n var names = nativeGetOwnPropertyNames(toIndexedObject(O));\n var result = [];\n $forEach(names, function (key) {\n if (!hasOwn(AllSymbols, key) && !hasOwn(hiddenKeys, key)) push(result, key);\n });\n return result;\n};\n\nvar $getOwnPropertySymbols = function (O) {\n var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;\n var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));\n var result = [];\n $forEach(names, function (key) {\n if (hasOwn(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn(ObjectPrototype, key))) {\n push(result, AllSymbols[key]);\n }\n });\n return result;\n};\n\n// `Symbol` constructor\n// https://tc39.es/ecma262/#sec-symbol-constructor\nif (!NATIVE_SYMBOL) {\n $Symbol = function Symbol() {\n if (isPrototypeOf(SymbolPrototype, this)) throw TypeError('Symbol is not a constructor');\n var description = !arguments.length || arguments[0] === undefined ? undefined : $toString(arguments[0]);\n var tag = uid(description);\n var setter = function (value) {\n if (this === ObjectPrototype) call(setter, ObjectPrototypeSymbols, value);\n if (hasOwn(this, HIDDEN) && hasOwn(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));\n };\n if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });\n return wrap(tag, description);\n };\n\n SymbolPrototype = $Symbol[PROTOTYPE];\n\n defineBuiltIn(SymbolPrototype, 'toString', function toString() {\n return getInternalState(this).tag;\n });\n\n defineBuiltIn($Symbol, 'withoutSetter', function (description) {\n return wrap(uid(description), description);\n });\n\n propertyIsEnumerableModule.f = $propertyIsEnumerable;\n definePropertyModule.f = $defineProperty;\n definePropertiesModule.f = $defineProperties;\n getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;\n getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;\n getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;\n\n wrappedWellKnownSymbolModule.f = function (name) {\n return wrap(wellKnownSymbol(name), name);\n };\n\n if (DESCRIPTORS) {\n // https://github.com/tc39/proposal-Symbol-description\n defineBuiltInAccessor(SymbolPrototype, 'description', {\n configurable: true,\n get: function description() {\n return getInternalState(this).description;\n }\n });\n if (!IS_PURE) {\n defineBuiltIn(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });\n }\n }\n}\n\n$({ global: true, constructor: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {\n Symbol: $Symbol\n});\n\n$forEach(objectKeys(WellKnownSymbolsStore), function (name) {\n defineWellKnownSymbol(name);\n});\n\n$({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {\n useSetter: function () { USE_SETTER = true; },\n useSimple: function () { USE_SETTER = false; }\n});\n\n$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {\n // `Object.create` method\n // https://tc39.es/ecma262/#sec-object.create\n create: $create,\n // `Object.defineProperty` method\n // https://tc39.es/ecma262/#sec-object.defineproperty\n defineProperty: $defineProperty,\n // `Object.defineProperties` method\n // https://tc39.es/ecma262/#sec-object.defineproperties\n defineProperties: $defineProperties,\n // `Object.getOwnPropertyDescriptor` method\n // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor\n});\n\n$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {\n // `Object.getOwnPropertyNames` method\n // https://tc39.es/ecma262/#sec-object.getownpropertynames\n getOwnPropertyNames: $getOwnPropertyNames\n});\n\n// `Symbol.prototype[@@toPrimitive]` method\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive\ndefineSymbolToPrimitive();\n\n// `Symbol.prototype[@@toStringTag]` property\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag\nsetToStringTag($Symbol, SYMBOL);\n\nhiddenKeys[HIDDEN] = true;\n","var $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar hasOwn = require('../internals/has-own-property');\nvar toString = require('../internals/to-string');\nvar shared = require('../internals/shared');\nvar NATIVE_SYMBOL_REGISTRY = require('../internals/symbol-registry-detection');\n\nvar StringToSymbolRegistry = shared('string-to-symbol-registry');\nvar SymbolToStringRegistry = shared('symbol-to-string-registry');\n\n// `Symbol.for` method\n// https://tc39.es/ecma262/#sec-symbol.for\n$({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {\n 'for': function (key) {\n var string = toString(key);\n if (hasOwn(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];\n var symbol = getBuiltIn('Symbol')(string);\n StringToSymbolRegistry[string] = symbol;\n SymbolToStringRegistry[symbol] = string;\n return symbol;\n }\n});\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.hasInstance` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.hasinstance\ndefineWellKnownSymbol('hasInstance');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.isConcatSpreadable` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.isconcatspreadable\ndefineWellKnownSymbol('isConcatSpreadable');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.iterator` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.iterator\ndefineWellKnownSymbol('iterator');\n","// TODO: Remove this module from `core-js@4` since it's split to modules listed below\nrequire('../modules/es.symbol.constructor');\nrequire('../modules/es.symbol.for');\nrequire('../modules/es.symbol.key-for');\nrequire('../modules/es.json.stringify');\nrequire('../modules/es.object.get-own-property-symbols');\n","var $ = require('../internals/export');\nvar hasOwn = require('../internals/has-own-property');\nvar isSymbol = require('../internals/is-symbol');\nvar tryToString = require('../internals/try-to-string');\nvar shared = require('../internals/shared');\nvar NATIVE_SYMBOL_REGISTRY = require('../internals/symbol-registry-detection');\n\nvar SymbolToStringRegistry = shared('symbol-to-string-registry');\n\n// `Symbol.keyFor` method\n// https://tc39.es/ecma262/#sec-symbol.keyfor\n$({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(tryToString(sym) + ' is not a symbol');\n if (hasOwn(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];\n }\n});\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.matchAll` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.matchall\ndefineWellKnownSymbol('matchAll');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.match` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.match\ndefineWellKnownSymbol('match');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.replace` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.replace\ndefineWellKnownSymbol('replace');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.search` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.search\ndefineWellKnownSymbol('search');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.species` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.species\ndefineWellKnownSymbol('species');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.split` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.split\ndefineWellKnownSymbol('split');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\nvar defineSymbolToPrimitive = require('../internals/symbol-define-to-primitive');\n\n// `Symbol.toPrimitive` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.toprimitive\ndefineWellKnownSymbol('toPrimitive');\n\n// `Symbol.prototype[@@toPrimitive]` method\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive\ndefineSymbolToPrimitive();\n","var getBuiltIn = require('../internals/get-built-in');\nvar defineWellKnownSymbol = require('../internals/well-known-symbol-define');\nvar setToStringTag = require('../internals/set-to-string-tag');\n\n// `Symbol.toStringTag` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.tostringtag\ndefineWellKnownSymbol('toStringTag');\n\n// `Symbol.prototype[@@toStringTag]` property\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag\nsetToStringTag(getBuiltIn('Symbol'), 'Symbol');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.unscopables` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.unscopables\ndefineWellKnownSymbol('unscopables');\n","'use strict';\nvar FREEZING = require('../internals/freezing');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar collection = require('../internals/collection');\nvar collectionWeak = require('../internals/collection-weak');\nvar isObject = require('../internals/is-object');\nvar enforceInternalState = require('../internals/internal-state').enforce;\nvar fails = require('../internals/fails');\nvar NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\n\nvar $Object = Object;\n// eslint-disable-next-line es/no-array-isarray -- safe\nvar isArray = Array.isArray;\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar isExtensible = $Object.isExtensible;\n// eslint-disable-next-line es/no-object-isfrozen -- safe\nvar isFrozen = $Object.isFrozen;\n// eslint-disable-next-line es/no-object-issealed -- safe\nvar isSealed = $Object.isSealed;\n// eslint-disable-next-line es/no-object-freeze -- safe\nvar freeze = $Object.freeze;\n// eslint-disable-next-line es/no-object-seal -- safe\nvar seal = $Object.seal;\n\nvar FROZEN = {};\nvar SEALED = {};\nvar IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;\nvar InternalWeakMap;\n\nvar wrapper = function (init) {\n return function WeakMap() {\n return init(this, arguments.length ? arguments[0] : undefined);\n };\n};\n\n// `WeakMap` constructor\n// https://tc39.es/ecma262/#sec-weakmap-constructor\nvar $WeakMap = collection('WeakMap', wrapper, collectionWeak);\nvar WeakMapPrototype = $WeakMap.prototype;\nvar nativeSet = uncurryThis(WeakMapPrototype.set);\n\n// Chakra Edge bug: adding frozen arrays to WeakMap unfreeze them\nvar hasMSEdgeFreezingBug = function () {\n return FREEZING && fails(function () {\n var frozenArray = freeze([]);\n nativeSet(new $WeakMap(), frozenArray, 1);\n return !isFrozen(frozenArray);\n });\n};\n\n// IE11 WeakMap frozen keys fix\n// We can't use feature detection because it crash some old IE builds\n// https://github.com/zloirock/core-js/issues/485\nif (NATIVE_WEAK_MAP) if (IS_IE11) {\n InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);\n InternalMetadataModule.enable();\n var nativeDelete = uncurryThis(WeakMapPrototype['delete']);\n var nativeHas = uncurryThis(WeakMapPrototype.has);\n var nativeGet = uncurryThis(WeakMapPrototype.get);\n defineBuiltIns(WeakMapPrototype, {\n 'delete': function (key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeDelete(this, key) || state.frozen['delete'](key);\n } return nativeDelete(this, key);\n },\n has: function has(key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeHas(this, key) || state.frozen.has(key);\n } return nativeHas(this, key);\n },\n get: function get(key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);\n } return nativeGet(this, key);\n },\n set: function set(key, value) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);\n } else nativeSet(this, key, value);\n return this;\n }\n });\n// Chakra Edge frozen keys fix\n} else if (hasMSEdgeFreezingBug()) {\n defineBuiltIns(WeakMapPrototype, {\n set: function set(key, value) {\n var arrayIntegrityLevel;\n if (isArray(key)) {\n if (isFrozen(key)) arrayIntegrityLevel = FROZEN;\n else if (isSealed(key)) arrayIntegrityLevel = SEALED;\n }\n nativeSet(this, key, value);\n if (arrayIntegrityLevel == FROZEN) freeze(key);\n if (arrayIntegrityLevel == SEALED) seal(key);\n return this;\n }\n });\n}\n","// TODO: Remove this module from `core-js@4` since it's replaced to module below\nrequire('../modules/es.weak-map.constructor');\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionWeak = require('../internals/collection-weak');\n\n// `WeakSet` constructor\n// https://tc39.es/ecma262/#sec-weakset-constructor\ncollection('WeakSet', function (init) {\n return function WeakSet() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionWeak);\n","// TODO: Remove this module from `core-js@4` since it's replaced to module below\nrequire('../modules/es.weak-set.constructor');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.asyncDispose` well-known symbol\n// https://github.com/tc39/proposal-async-explicit-resource-management\ndefineWellKnownSymbol('asyncDispose');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.dispose` well-known symbol\n// https://github.com/tc39/proposal-explicit-resource-management\ndefineWellKnownSymbol('dispose');\n","var $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar Symbol = getBuiltIn('Symbol');\nvar keyFor = Symbol.keyFor;\nvar thisSymbolValue = uncurryThis(Symbol.prototype.valueOf);\n\n// `Symbol.isRegistered` method\n// https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregistered\n$({ target: 'Symbol', stat: true }, {\n isRegistered: function isRegistered(value) {\n try {\n return keyFor(thisSymbolValue(value)) !== undefined;\n } catch (error) {\n return false;\n }\n }\n});\n","var $ = require('../internals/export');\nvar shared = require('../internals/shared');\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isSymbol = require('../internals/is-symbol');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar Symbol = getBuiltIn('Symbol');\nvar $isWellKnown = Symbol.isWellKnown;\nvar getOwnPropertyNames = getBuiltIn('Object', 'getOwnPropertyNames');\nvar thisSymbolValue = uncurryThis(Symbol.prototype.valueOf);\nvar WellKnownSymbolsStore = shared('wks');\n\nfor (var i = 0, symbolKeys = getOwnPropertyNames(Symbol), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) {\n // some old engines throws on access to some keys like `arguments` or `caller`\n try {\n var symbolKey = symbolKeys[i];\n if (isSymbol(Symbol[symbolKey])) wellKnownSymbol(symbolKey);\n } catch (error) { /* empty */ }\n}\n\n// `Symbol.isWellKnown` method\n// https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknown\n// We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected\n$({ target: 'Symbol', stat: true, forced: true }, {\n isWellKnown: function isWellKnown(value) {\n if ($isWellKnown && $isWellKnown(value)) return true;\n try {\n var symbol = thisSymbolValue(value);\n for (var j = 0, keys = getOwnPropertyNames(WellKnownSymbolsStore), keysLength = keys.length; j < keysLength; j++) {\n if (WellKnownSymbolsStore[keys[j]] == symbol) return true;\n }\n } catch (error) { /* empty */ }\n return false;\n }\n});\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.matcher` well-known symbol\n// https://github.com/tc39/proposal-pattern-matching\ndefineWellKnownSymbol('matcher');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.metadataKey` well-known symbol\n// https://github.com/tc39/proposal-decorator-metadata\ndefineWellKnownSymbol('metadataKey');\n","// TODO: Remove from `core-js@4`\nvar defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.metadata` well-known symbol\n// https://github.com/tc39/proposal-decorators\ndefineWellKnownSymbol('metadata');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.observable` well-known symbol\n// https://github.com/tc39/proposal-observable\ndefineWellKnownSymbol('observable');\n","// TODO: remove from `core-js@4`\nvar defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.patternMatch` well-known symbol\n// https://github.com/tc39/proposal-pattern-matching\ndefineWellKnownSymbol('patternMatch');\n","// TODO: remove from `core-js@4`\nvar defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\ndefineWellKnownSymbol('replaceAll');\n","require('../modules/es.array.iterator');\nvar DOMIterables = require('../internals/dom-iterables');\nvar global = require('../internals/global');\nvar classof = require('../internals/classof');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nfor (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n if (CollectionPrototype && classof(CollectionPrototype) !== TO_STRING_TAG) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n Iterators[COLLECTION_NAME] = Iterators.Array;\n}\n","var $ = require('../internals/export');\nvar global = require('../internals/global');\nvar schedulersFix = require('../internals/schedulers-fix');\n\nvar setInterval = schedulersFix(global.setInterval, true);\n\n// Bun / IE9- setInterval additional parameters fix\n// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval\n$({ global: true, bind: true, forced: global.setInterval !== setInterval }, {\n setInterval: setInterval\n});\n","var $ = require('../internals/export');\nvar global = require('../internals/global');\nvar schedulersFix = require('../internals/schedulers-fix');\n\nvar setTimeout = schedulersFix(global.setTimeout, true);\n\n// Bun / IE9- setTimeout additional parameters fix\n// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout\n$({ global: true, bind: true, forced: global.setTimeout !== setTimeout }, {\n setTimeout: setTimeout\n});\n","// TODO: Remove this module from `core-js@4` since it's split to modules listed below\nrequire('../modules/web.set-interval');\nrequire('../modules/web.set-timeout');\n","var parent = require('../../es/array/is-array');\n\nmodule.exports = parent;\n","var parent = require('../../../es/array/virtual/for-each');\n\nmodule.exports = parent;\n","var parent = require('../../es/instance/concat');\n\nmodule.exports = parent;\n","require('../../modules/web.dom-collections.iterator');\nvar classof = require('../../internals/classof');\nvar hasOwn = require('../../internals/has-own-property');\nvar isPrototypeOf = require('../../internals/object-is-prototype-of');\nvar method = require('../array/virtual/for-each');\n\nvar ArrayPrototype = Array.prototype;\n\nvar DOMIterables = {\n DOMTokenList: true,\n NodeList: true\n};\n\nmodule.exports = function (it) {\n var own = it.forEach;\n return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.forEach)\n || hasOwn(DOMIterables, classof(it)) ? method : own;\n};\n","var parent = require('../../es/instance/map');\n\nmodule.exports = parent;\n","var parent = require('../../es/instance/reduce');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/define-property');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/entries');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/keys');\n\nmodule.exports = parent;\n","var parent = require('../../es/promise');\nrequire('../../modules/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","require('../modules/web.timers');\nvar path = require('../internals/path');\n\nmodule.exports = path.setTimeout;\n","var parent = require('../../es/symbol');\nrequire('../../modules/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","var parent = require('../../es/symbol/iterator');\nrequire('../../modules/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","var parent = require('../../es/symbol/to-primitive');\n\nmodule.exports = parent;\n","var parent = require('../../es/weak-map');\nrequire('../../modules/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","var parent = require('../../es/weak-set');\nrequire('../../modules/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","'use strict';\n\nvar isMergeableObject = function isMergeableObject(value) {\n\treturn isNonNullObject(value)\n\t\t&& !isSpecial(value)\n};\n\nfunction isNonNullObject(value) {\n\treturn !!value && typeof value === 'object'\n}\n\nfunction isSpecial(value) {\n\tvar stringValue = Object.prototype.toString.call(value);\n\n\treturn stringValue === '[object RegExp]'\n\t\t|| stringValue === '[object Date]'\n\t\t|| isReactElement(value)\n}\n\n// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25\nvar canUseSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;\n\nfunction isReactElement(value) {\n\treturn value.$$typeof === REACT_ELEMENT_TYPE\n}\n\nfunction emptyTarget(val) {\n\treturn Array.isArray(val) ? [] : {}\n}\n\nfunction cloneUnlessOtherwiseSpecified(value, options) {\n\treturn (options.clone !== false && options.isMergeableObject(value))\n\t\t? deepmerge(emptyTarget(value), value, options)\n\t\t: value\n}\n\nfunction defaultArrayMerge(target, source, options) {\n\treturn target.concat(source).map(function(element) {\n\t\treturn cloneUnlessOtherwiseSpecified(element, options)\n\t})\n}\n\nfunction getMergeFunction(key, options) {\n\tif (!options.customMerge) {\n\t\treturn deepmerge\n\t}\n\tvar customMerge = options.customMerge(key);\n\treturn typeof customMerge === 'function' ? customMerge : deepmerge\n}\n\nfunction getEnumerableOwnPropertySymbols(target) {\n\treturn Object.getOwnPropertySymbols\n\t\t? Object.getOwnPropertySymbols(target).filter(function(symbol) {\n\t\t\treturn Object.propertyIsEnumerable.call(target, symbol)\n\t\t})\n\t\t: []\n}\n\nfunction getKeys(target) {\n\treturn Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))\n}\n\nfunction propertyIsOnObject(object, property) {\n\ttry {\n\t\treturn property in object\n\t} catch(_) {\n\t\treturn false\n\t}\n}\n\n// Protects from prototype poisoning and unexpected merging up the prototype chain.\nfunction propertyIsUnsafe(target, key) {\n\treturn propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,\n\t\t&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,\n\t\t\t&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.\n}\n\nfunction mergeObject(target, source, options) {\n\tvar destination = {};\n\tif (options.isMergeableObject(target)) {\n\t\tgetKeys(target).forEach(function(key) {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(target[key], options);\n\t\t});\n\t}\n\tgetKeys(source).forEach(function(key) {\n\t\tif (propertyIsUnsafe(target, key)) {\n\t\t\treturn\n\t\t}\n\n\t\tif (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {\n\t\t\tdestination[key] = getMergeFunction(key, options)(target[key], source[key], options);\n\t\t} else {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(source[key], options);\n\t\t}\n\t});\n\treturn destination\n}\n\nfunction deepmerge(target, source, options) {\n\toptions = options || {};\n\toptions.arrayMerge = options.arrayMerge || defaultArrayMerge;\n\toptions.isMergeableObject = options.isMergeableObject || isMergeableObject;\n\t// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()\n\t// implementations can use it. The caller may not replace it.\n\toptions.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;\n\n\tvar sourceIsArray = Array.isArray(source);\n\tvar targetIsArray = Array.isArray(target);\n\tvar sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n\tif (!sourceAndTargetTypesMatch) {\n\t\treturn cloneUnlessOtherwiseSpecified(source, options)\n\t} else if (sourceIsArray) {\n\t\treturn options.arrayMerge(target, source, options)\n\t} else {\n\t\treturn mergeObject(target, source, options)\n\t}\n}\n\ndeepmerge.all = function deepmergeAll(array, options) {\n\tif (!Array.isArray(array)) {\n\t\tthrow new Error('first argument should be an array')\n\t}\n\n\treturn array.reduce(function(prev, next) {\n\t\treturn deepmerge(prev, next, options)\n\t}, {})\n};\n\nvar deepmerge_1 = deepmerge;\n\nmodule.exports = deepmerge_1;\n","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.assertImpersonatedUserIsEmpty = exports.assertTxConfigIsEmpty = exports.assertDatabaseIsEmpty = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\n/**\n * @param {TxConfig} txConfig the auto-commit transaction configuration.\n * @param {function(error: string)} onProtocolError called when the txConfig is not empty.\n * @param {ResultStreamObserver} observer the response observer.\n */\nfunction assertTxConfigIsEmpty(txConfig, onProtocolError, observer) {\n if (onProtocolError === void 0) { onProtocolError = function () { }; }\n if (txConfig && !txConfig.isEmpty()) {\n var error = (0, neo4j_driver_core_1.newError)('Driver is connected to the database that does not support transaction configuration. ' +\n 'Please upgrade to neo4j 3.5.0 or later in order to use this functionality');\n // unsupported API was used, consider this a fatal error for the current connection\n onProtocolError(error.message);\n observer.onError(error);\n throw error;\n }\n}\nexports.assertTxConfigIsEmpty = assertTxConfigIsEmpty;\n/**\n * Asserts that the passed-in database name is empty.\n * @param {string} database\n * @param {fuction(err: String)} onProtocolError Called when it doesn't have database set\n */\nfunction assertDatabaseIsEmpty(database, onProtocolError, observer) {\n if (onProtocolError === void 0) { onProtocolError = function () { }; }\n if (database) {\n var error = (0, neo4j_driver_core_1.newError)('Driver is connected to the database that does not support multiple databases. ' +\n 'Please upgrade to neo4j 4.0.0 or later in order to use this functionality');\n // unsupported API was used, consider this a fatal error for the current connection\n onProtocolError(error.message);\n observer.onError(error);\n throw error;\n }\n}\nexports.assertDatabaseIsEmpty = assertDatabaseIsEmpty;\n/**\n * Asserts that the passed-in impersonated user is empty\n * @param {string} impersonatedUser\n * @param {function (err:Error)} onProtocolError Called when it does have impersonated user set\n * @param {any} observer\n */\nfunction assertImpersonatedUserIsEmpty(impersonatedUser, onProtocolError, observer) {\n if (onProtocolError === void 0) { onProtocolError = function () { }; }\n if (impersonatedUser) {\n var error = (0, neo4j_driver_core_1.newError)('Driver is connected to the database that does not support user impersonation. ' +\n 'Please upgrade to neo4j 4.4.0 or later in order to use this functionality. ' +\n (\"Trying to impersonate \" + impersonatedUser + \".\"));\n // unsupported API was used, consider this a fatal error for the current connection\n onProtocolError(error.message);\n observer.onError(error);\n throw error;\n }\n}\nexports.assertImpersonatedUserIsEmpty = assertImpersonatedUserIsEmpty;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar bolt_protocol_util_1 = require(\"./bolt-protocol-util\");\nvar packstream_1 = require(\"../packstream\");\nvar request_message_1 = __importDefault(require(\"./request-message\"));\nvar stream_observers_1 = require(\"./stream-observers\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar Bookmark = neo4j_driver_core_1.internal.bookmark.Bookmark, _a = neo4j_driver_core_1.internal.constants, ACCESS_MODE_WRITE = _a.ACCESS_MODE_WRITE, BOLT_PROTOCOL_V1 = _a.BOLT_PROTOCOL_V1, Logger = neo4j_driver_core_1.internal.logger.Logger, TxConfig = neo4j_driver_core_1.internal.txConfig.TxConfig;\nvar BoltProtocol = /** @class */ (function () {\n /**\n * @callback CreateResponseHandler Creates the response handler\n * @param {BoltProtocol} protocol The bolt protocol\n * @returns {ResponseHandler} The response handler\n */\n /**\n * @callback OnProtocolError Handles protocol error\n * @param {string} error The description\n */\n /**\n * @constructor\n * @param {Object} server the server informatio.\n * @param {Chunker} chunker the chunker.\n * @param {Object} packstreamConfig Packstream configuration\n * @param {boolean} packstreamConfig.disableLosslessIntegers if this connection should convert all received integers to native JS numbers.\n * @param {boolean} packstreamConfig.useBigInt if this connection should convert all received integers to native BigInt numbers.\n * @param {CreateResponseHandler} createResponseHandler Function which creates the response handler\n * @param {Logger} log the logger\n * @param {OnProtocolError} onProtocolError handles protocol errors\n */\n function BoltProtocol(server, chunker, _a, createResponseHandler, log, onProtocolError) {\n var _b = _a === void 0 ? {} : _a, disableLosslessIntegers = _b.disableLosslessIntegers, useBigInt = _b.useBigInt;\n if (createResponseHandler === void 0) { createResponseHandler = function () { return null; }; }\n this._server = server || {};\n this._chunker = chunker;\n this._packer = this._createPacker(chunker);\n this._unpacker = this._createUnpacker(disableLosslessIntegers, useBigInt);\n this._responseHandler = createResponseHandler(this);\n this._log = log;\n this._onProtocolError = onProtocolError;\n this._fatalError = null;\n }\n Object.defineProperty(BoltProtocol.prototype, \"version\", {\n /**\n * Returns the numerical version identifier for this protocol\n */\n get: function () {\n return BOLT_PROTOCOL_V1;\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Get the packer.\n * @return {Packer} the protocol's packer.\n */\n BoltProtocol.prototype.packer = function () {\n return this._packer;\n };\n /**\n * Get the unpacker.\n * @return {Unpacker} the protocol's unpacker.\n */\n BoltProtocol.prototype.unpacker = function () {\n return this._unpacker;\n };\n /**\n * Transform metadata received in SUCCESS message before it is passed to the handler.\n * @param {Object} metadata the received metadata.\n * @return {Object} transformed metadata.\n */\n BoltProtocol.prototype.transformMetadata = function (metadata) {\n return metadata;\n };\n /**\n * Perform initialization and authentication of the underlying connection.\n * @param {Object} param\n * @param {string} param.userAgent the user agent.\n * @param {Object} param.authToken the authentication token.\n * @param {function(err: Error)} param.onError the callback to invoke on error.\n * @param {function()} param.onComplete the callback to invoke on completion.\n * @returns {StreamObserver} the stream observer that monitors the corresponding server response.\n */\n BoltProtocol.prototype.initialize = function (_a) {\n var _this = this;\n var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent, authToken = _b.authToken, onError = _b.onError, onComplete = _b.onComplete;\n var observer = new stream_observers_1.LoginObserver({\n onError: function (error) { return _this._onLoginError(error, onError); },\n onCompleted: function (metadata) { return _this._onLoginCompleted(metadata, onComplete); }\n });\n this.write(request_message_1.default.init(userAgent, authToken), observer, true);\n return observer;\n };\n /**\n * Perform protocol related operations for closing this connection\n */\n BoltProtocol.prototype.prepareToClose = function () {\n // no need to notify the database in this protocol version\n };\n /**\n * Begin an explicit transaction.\n * @param {Object} param\n * @param {Bookmark} param.bookmark the bookmark.\n * @param {TxConfig} param.txConfig the configuration.\n * @param {string} param.database the target database name.\n * @param {string} param.mode the access mode.\n * @param {string} param.impersonatedUser the impersonated user\n * @param {function(err: Error)} param.beforeError the callback to invoke before handling the error.\n * @param {function(err: Error)} param.afterError the callback to invoke after handling the error.\n * @param {function()} param.beforeComplete the callback to invoke before handling the completion.\n * @param {function()} param.afterComplete the callback to invoke after handling the completion.\n * @returns {StreamObserver} the stream observer that monitors the corresponding server response.\n */\n BoltProtocol.prototype.beginTransaction = function (_a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;\n return this.run('BEGIN', bookmark ? bookmark.asBeginTransactionParameters() : {}, {\n bookmark: bookmark,\n txConfig: txConfig,\n database: database,\n mode: mode,\n impersonatedUser: impersonatedUser,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete,\n flush: false\n });\n };\n /**\n * Commit the explicit transaction.\n * @param {Object} param\n * @param {function(err: Error)} param.beforeError the callback to invoke before handling the error.\n * @param {function(err: Error)} param.afterError the callback to invoke after handling the error.\n * @param {function()} param.beforeComplete the callback to invoke before handling the completion.\n * @param {function()} param.afterComplete the callback to invoke after handling the completion.\n * @returns {StreamObserver} the stream observer that monitors the corresponding server response.\n */\n BoltProtocol.prototype.commitTransaction = function (_a) {\n var _b = _a === void 0 ? {} : _a, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;\n // WRITE access mode is used as a place holder here, it has\n // no effect on behaviour for Bolt V1 & V2\n return this.run('COMMIT', {}, {\n bookmark: Bookmark.empty(),\n txConfig: TxConfig.empty(),\n mode: ACCESS_MODE_WRITE,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n };\n /**\n * Rollback the explicit transaction.\n * @param {Object} param\n * @param {function(err: Error)} param.beforeError the callback to invoke before handling the error.\n * @param {function(err: Error)} param.afterError the callback to invoke after handling the error.\n * @param {function()} param.beforeComplete the callback to invoke before handling the completion.\n * @param {function()} param.afterComplete the callback to invoke after handling the completion.\n * @returns {StreamObserver} the stream observer that monitors the corresponding server response.\n */\n BoltProtocol.prototype.rollbackTransaction = function (_a) {\n var _b = _a === void 0 ? {} : _a, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;\n // WRITE access mode is used as a place holder here, it has\n // no effect on behaviour for Bolt V1 & V2\n return this.run('ROLLBACK', {}, {\n bookmark: Bookmark.empty(),\n txConfig: TxConfig.empty(),\n mode: ACCESS_MODE_WRITE,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n };\n /**\n * Send a Cypher query through the underlying connection.\n * @param {string} query the cypher query.\n * @param {Object} parameters the query parameters.\n * @param {Object} param\n * @param {Bookmark} param.bookmark the bookmark.\n * @param {TxConfig} param.txConfig the transaction configuration.\n * @param {string} param.database the target database name.\n * @param {string} param.impersonatedUser the impersonated user\n * @param {string} param.mode the access mode.\n * @param {function(keys: string[])} param.beforeKeys the callback to invoke before handling the keys.\n * @param {function(keys: string[])} param.afterKeys the callback to invoke after handling the keys.\n * @param {function(err: Error)} param.beforeError the callback to invoke before handling the error.\n * @param {function(err: Error)} param.afterError the callback to invoke after handling the error.\n * @param {function()} param.beforeComplete the callback to invoke before handling the completion.\n * @param {function()} param.afterComplete the callback to invoke after handling the completion.\n * @param {boolean} param.flush whether to flush the buffered messages.\n * @returns {StreamObserver} the stream observer that monitors the corresponding server response.\n */\n BoltProtocol.prototype.run = function (query, parameters, _a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, _c = _b.flush, flush = _c === void 0 ? true : _c;\n var observer = new stream_observers_1.ResultStreamObserver({\n server: this._server,\n beforeKeys: beforeKeys,\n afterKeys: afterKeys,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n // bookmark and mode are ignored in this version of the protocol\n (0, bolt_protocol_util_1.assertTxConfigIsEmpty)(txConfig, this._onProtocolError, observer);\n // passing in a database name on this protocol version throws an error\n (0, bolt_protocol_util_1.assertDatabaseIsEmpty)(database, this._onProtocolError, observer);\n // passing impersonated user on this protocol version throws an error\n (0, bolt_protocol_util_1.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);\n this.write(request_message_1.default.run(query, parameters), observer, false);\n this.write(request_message_1.default.pullAll(), observer, flush);\n return observer;\n };\n Object.defineProperty(BoltProtocol.prototype, \"currentFailure\", {\n get: function () {\n return this._responseHandler.currentFailure;\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Send a RESET through the underlying connection.\n * @param {Object} param\n * @param {function(err: Error)} param.onError the callback to invoke on error.\n * @param {function()} param.onComplete the callback to invoke on completion.\n * @returns {StreamObserver} the stream observer that monitors the corresponding server response.\n */\n BoltProtocol.prototype.reset = function (_a) {\n var _b = _a === void 0 ? {} : _a, onError = _b.onError, onComplete = _b.onComplete;\n var observer = new stream_observers_1.ResetObserver({\n onProtocolError: this._onProtocolError,\n onError: onError,\n onComplete: onComplete\n });\n this.write(request_message_1.default.reset(), observer, true);\n return observer;\n };\n BoltProtocol.prototype._createPacker = function (chunker) {\n return new packstream_1.v1.Packer(chunker);\n };\n BoltProtocol.prototype._createUnpacker = function (disableLosslessIntegers, useBigInt) {\n return new packstream_1.v1.Unpacker(disableLosslessIntegers, useBigInt);\n };\n /**\n * Write a message to the network channel.\n * @param {RequestMessage} message the message to write.\n * @param {StreamObserver} observer the response observer.\n * @param {boolean} flush `true` if flush should happen after the message is written to the buffer.\n */\n BoltProtocol.prototype.write = function (message, observer, flush) {\n var _this = this;\n var queued = this.queueObserverIfProtocolIsNotBroken(observer);\n if (queued) {\n if (this._log.isDebugEnabled()) {\n this._log.debug(\"C: \" + message);\n }\n this.packer().packStruct(message.signature, message.fields.map(function (field) { return _this.packer().packable(field); }));\n this._chunker.messageBoundary();\n if (flush) {\n this._chunker.flush();\n }\n }\n };\n /**\n * Notifies faltal erros to the observers and mark the protocol in the fatal error state.\n * @param {Error} error The error\n */\n BoltProtocol.prototype.notifyFatalError = function (error) {\n this._fatalError = error;\n return this._responseHandler._notifyErrorToObservers(error);\n };\n /**\n * Updates the the current observer with the next one on the queue.\n */\n BoltProtocol.prototype.updateCurrentObserver = function () {\n return this._responseHandler._updateCurrentObserver();\n };\n /**\n * Checks if exist an ongoing observable requests\n * @return {boolean}\n */\n BoltProtocol.prototype.hasOngoingObservableRequests = function () {\n return this._responseHandler.hasOngoingObservableRequests();\n };\n /**\n * Enqueue the observer if the protocol is not broken.\n * In case it's broken, the observer will be notified about the error.\n *\n * @param {StreamObserver} observer The observer\n * @returns {boolean} if it was queued\n */\n BoltProtocol.prototype.queueObserverIfProtocolIsNotBroken = function (observer) {\n if (this.isBroken()) {\n this.notifyFatalErrorToObserver(observer);\n return false;\n }\n return this._responseHandler._queueObserver(observer);\n };\n /**\n * Veritfy the protocol is not broken.\n * @returns {boolean}\n */\n BoltProtocol.prototype.isBroken = function () {\n return !!this._fatalError;\n };\n /**\n * Notifies the current fatal error to the observer\n *\n * @param {StreamObserver} observer The observer\n */\n BoltProtocol.prototype.notifyFatalErrorToObserver = function (observer) {\n if (observer && observer.onError) {\n observer.onError(this._fatalError);\n }\n };\n /**\n * Reset current failure on the observable response handler to null.\n */\n BoltProtocol.prototype.resetFailure = function () {\n this._responseHandler._resetFailure();\n };\n BoltProtocol.prototype._onLoginCompleted = function (metadata, onCompleted) {\n if (metadata) {\n var serverVersion = metadata.server;\n if (!this._server.version) {\n this._server.version = serverVersion;\n }\n }\n if (onCompleted) {\n onCompleted(metadata);\n }\n };\n BoltProtocol.prototype._onLoginError = function (error, onError) {\n this._onProtocolError(error.message);\n if (onError) {\n onError(error);\n }\n };\n return BoltProtocol;\n}());\nexports.default = BoltProtocol;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar bolt_protocol_v1_1 = __importDefault(require(\"./bolt-protocol-v1\"));\nvar packstream_1 = __importDefault(require(\"../packstream\"));\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar BOLT_PROTOCOL_V2 = neo4j_driver_core_1.internal.constants.BOLT_PROTOCOL_V2;\nvar BoltProtocol = /** @class */ (function (_super) {\n __extends(BoltProtocol, _super);\n function BoltProtocol() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n BoltProtocol.prototype._createPacker = function (chunker) {\n return new packstream_1.default.Packer(chunker);\n };\n BoltProtocol.prototype._createUnpacker = function (disableLosslessIntegers, useBigInt) {\n return new packstream_1.default.Unpacker(disableLosslessIntegers, useBigInt);\n };\n Object.defineProperty(BoltProtocol.prototype, \"version\", {\n get: function () {\n return BOLT_PROTOCOL_V2;\n },\n enumerable: false,\n configurable: true\n });\n return BoltProtocol;\n}(bolt_protocol_v1_1.default));\nexports.default = BoltProtocol;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar bolt_protocol_v2_1 = __importDefault(require(\"./bolt-protocol-v2\"));\nvar request_message_1 = __importDefault(require(\"./request-message\"));\nvar bolt_protocol_util_1 = require(\"./bolt-protocol-util\");\nvar stream_observers_1 = require(\"./stream-observers\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar Bookmark = neo4j_driver_core_1.internal.bookmark.Bookmark, BOLT_PROTOCOL_V3 = neo4j_driver_core_1.internal.constants.BOLT_PROTOCOL_V3, TxConfig = neo4j_driver_core_1.internal.txConfig.TxConfig;\nvar CONTEXT = 'context';\nvar CALL_GET_ROUTING_TABLE = \"CALL dbms.cluster.routing.getRoutingTable($\" + CONTEXT + \")\";\nvar noOpObserver = new stream_observers_1.StreamObserver();\nvar BoltProtocol = /** @class */ (function (_super) {\n __extends(BoltProtocol, _super);\n function BoltProtocol() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Object.defineProperty(BoltProtocol.prototype, \"version\", {\n get: function () {\n return BOLT_PROTOCOL_V3;\n },\n enumerable: false,\n configurable: true\n });\n BoltProtocol.prototype.transformMetadata = function (metadata) {\n if ('t_first' in metadata) {\n // Bolt V3 uses shorter key 't_first' to represent 'result_available_after'\n // adjust the key to be the same as in Bolt V1 so that ResultSummary can retrieve the value\n metadata.result_available_after = metadata.t_first;\n delete metadata.t_first;\n }\n if ('t_last' in metadata) {\n // Bolt V3 uses shorter key 't_last' to represent 'result_consumed_after'\n // adjust the key to be the same as in Bolt V1 so that ResultSummary can retrieve the value\n metadata.result_consumed_after = metadata.t_last;\n delete metadata.t_last;\n }\n return metadata;\n };\n BoltProtocol.prototype.initialize = function (_a) {\n var _this = this;\n var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent, authToken = _b.authToken, onError = _b.onError, onComplete = _b.onComplete;\n var observer = new stream_observers_1.LoginObserver({\n onError: function (error) { return _this._onLoginError(error, onError); },\n onCompleted: function (metadata) { return _this._onLoginCompleted(metadata, onComplete); }\n });\n this.write(request_message_1.default.hello(userAgent, authToken), observer, true);\n return observer;\n };\n BoltProtocol.prototype.prepareToClose = function () {\n this.write(request_message_1.default.goodbye(), noOpObserver, true);\n };\n BoltProtocol.prototype.beginTransaction = function (_a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, impersonatedUser = _b.impersonatedUser, mode = _b.mode, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;\n var observer = new stream_observers_1.ResultStreamObserver({\n server: this._server,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n observer.prepareToHandleSingleResponse();\n // passing in a database name on this protocol version throws an error\n (0, bolt_protocol_util_1.assertDatabaseIsEmpty)(database, this._onProtocolError, observer);\n // passing impersonated user on this protocol version throws an error\n (0, bolt_protocol_util_1.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);\n this.write(request_message_1.default.begin({ bookmark: bookmark, txConfig: txConfig, mode: mode }), observer, true);\n return observer;\n };\n BoltProtocol.prototype.commitTransaction = function (_a) {\n var _b = _a === void 0 ? {} : _a, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;\n var observer = new stream_observers_1.ResultStreamObserver({\n server: this._server,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n observer.prepareToHandleSingleResponse();\n this.write(request_message_1.default.commit(), observer, true);\n return observer;\n };\n BoltProtocol.prototype.rollbackTransaction = function (_a) {\n var _b = _a === void 0 ? {} : _a, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;\n var observer = new stream_observers_1.ResultStreamObserver({\n server: this._server,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n observer.prepareToHandleSingleResponse();\n this.write(request_message_1.default.rollback(), observer, true);\n return observer;\n };\n BoltProtocol.prototype.run = function (query, parameters, _a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, impersonatedUser = _b.impersonatedUser, mode = _b.mode, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, _c = _b.flush, flush = _c === void 0 ? true : _c;\n var observer = new stream_observers_1.ResultStreamObserver({\n server: this._server,\n beforeKeys: beforeKeys,\n afterKeys: afterKeys,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n // passing in a database name on this protocol version throws an error\n (0, bolt_protocol_util_1.assertDatabaseIsEmpty)(database, this._onProtocolError, observer);\n // passing impersonated user on this protocol version throws an error\n (0, bolt_protocol_util_1.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);\n this.write(request_message_1.default.runWithMetadata(query, parameters, {\n bookmark: bookmark,\n txConfig: txConfig,\n mode: mode\n }), observer, false);\n this.write(request_message_1.default.pullAll(), observer, flush);\n return observer;\n };\n /**\n * Request routing information\n *\n * @param {Object} param -\n * @param {object} param.routingContext The routing context used to define the routing table.\n * Multi-datacenter deployments is one of its use cases\n * @param {string} param.databaseName The database name\n * @param {Bookmark} params.sessionContext.bookmark The bookmark used for request the routing table\n * @param {string} params.sessionContext.mode The session mode\n * @param {string} params.sessionContext.database The database name used on the session\n * @param {function()} params.sessionContext.afterComplete The session param used after the session closed\n * @param {function(err: Error)} param.onError\n * @param {function(RawRoutingTable)} param.onCompleted\n * @returns {RouteObserver} the route observer\n */\n BoltProtocol.prototype.requestRoutingInformation = function (_a) {\n var _b;\n var _c = _a.routingContext, routingContext = _c === void 0 ? {} : _c, _d = _a.sessionContext, sessionContext = _d === void 0 ? {} : _d, onError = _a.onError, onCompleted = _a.onCompleted;\n var resultObserver = this.run(CALL_GET_ROUTING_TABLE, (_b = {}, _b[CONTEXT] = routingContext, _b), __assign(__assign({}, sessionContext), { txConfig: TxConfig.empty() }));\n return new stream_observers_1.ProcedureRouteObserver({\n resultObserver: resultObserver,\n onProtocolError: this._onProtocolError,\n onError: onError,\n onCompleted: onCompleted\n });\n };\n return BoltProtocol;\n}(bolt_protocol_v2_1.default));\nexports.default = BoltProtocol;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar bolt_protocol_v3_1 = __importDefault(require(\"./bolt-protocol-v3\"));\nvar request_message_1 = __importDefault(require(\"./request-message\"));\nvar bolt_protocol_util_1 = require(\"./bolt-protocol-util\");\nvar stream_observers_1 = require(\"./stream-observers\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar Bookmark = neo4j_driver_core_1.internal.bookmark.Bookmark, _a = neo4j_driver_core_1.internal.constants, BOLT_PROTOCOL_V4_0 = _a.BOLT_PROTOCOL_V4_0, FETCH_ALL = _a.FETCH_ALL, TxConfig = neo4j_driver_core_1.internal.txConfig.TxConfig;\nvar CONTEXT = 'context';\nvar DATABASE = 'database';\nvar CALL_GET_ROUTING_TABLE_MULTI_DB = \"CALL dbms.routing.getRoutingTable($\" + CONTEXT + \", $\" + DATABASE + \")\";\nvar BoltProtocol = /** @class */ (function (_super) {\n __extends(BoltProtocol, _super);\n function BoltProtocol() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Object.defineProperty(BoltProtocol.prototype, \"version\", {\n get: function () {\n return BOLT_PROTOCOL_V4_0;\n },\n enumerable: false,\n configurable: true\n });\n BoltProtocol.prototype.beginTransaction = function (_a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, impersonatedUser = _b.impersonatedUser, mode = _b.mode, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;\n var observer = new stream_observers_1.ResultStreamObserver({\n server: this._server,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n observer.prepareToHandleSingleResponse();\n // passing impersonated user on this protocol version throws an error\n (0, bolt_protocol_util_1.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);\n this.write(request_message_1.default.begin({ bookmark: bookmark, txConfig: txConfig, database: database, mode: mode }), observer, true);\n return observer;\n };\n BoltProtocol.prototype.run = function (query, parameters, _a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, impersonatedUser = _b.impersonatedUser, mode = _b.mode, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, _c = _b.flush, flush = _c === void 0 ? true : _c, _d = _b.reactive, reactive = _d === void 0 ? false : _d, _e = _b.fetchSize, fetchSize = _e === void 0 ? FETCH_ALL : _e;\n var observer = new stream_observers_1.ResultStreamObserver({\n server: this._server,\n reactive: reactive,\n fetchSize: fetchSize,\n moreFunction: this._requestMore.bind(this),\n discardFunction: this._requestDiscard.bind(this),\n beforeKeys: beforeKeys,\n afterKeys: afterKeys,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n // passing impersonated user on this protocol version throws an error\n (0, bolt_protocol_util_1.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);\n var flushRun = reactive;\n this.write(request_message_1.default.runWithMetadata(query, parameters, {\n bookmark: bookmark,\n txConfig: txConfig,\n database: database,\n mode: mode\n }), observer, flushRun && flush);\n if (!reactive) {\n this.write(request_message_1.default.pull({ n: fetchSize }), observer, flush);\n }\n return observer;\n };\n BoltProtocol.prototype._requestMore = function (stmtId, n, observer) {\n this.write(request_message_1.default.pull({ stmtId: stmtId, n: n }), observer, true);\n };\n BoltProtocol.prototype._requestDiscard = function (stmtId, observer) {\n this.write(request_message_1.default.discard({ stmtId: stmtId }), observer, true);\n };\n BoltProtocol.prototype._noOp = function () { };\n /**\n * Request routing information\n *\n * @param {Object} param -\n * @param {object} param.routingContext The routing context used to define the routing table.\n * Multi-datacenter deployments is one of its use cases\n * @param {string} param.databaseName The database name\n * @param {Bookmark} params.sessionContext.bookmark The bookmark used for request the routing table\n * @param {string} params.sessionContext.mode The session mode\n * @param {string} params.sessionContext.database The database name used on the session\n * @param {function()} params.sessionContext.afterComplete The session param used after the session closed\n * @param {function(err: Error)} param.onError\n * @param {function(RawRoutingTable)} param.onCompleted\n * @returns {RouteObserver} the route observer\n */\n BoltProtocol.prototype.requestRoutingInformation = function (_a) {\n var _b;\n var _c = _a.routingContext, routingContext = _c === void 0 ? {} : _c, _d = _a.databaseName, databaseName = _d === void 0 ? null : _d, _e = _a.sessionContext, sessionContext = _e === void 0 ? {} : _e, onError = _a.onError, onCompleted = _a.onCompleted;\n var resultObserver = this.run(CALL_GET_ROUTING_TABLE_MULTI_DB, (_b = {},\n _b[CONTEXT] = routingContext,\n _b[DATABASE] = databaseName,\n _b), __assign(__assign({}, sessionContext), { txConfig: TxConfig.empty() }));\n return new stream_observers_1.ProcedureRouteObserver({\n resultObserver: resultObserver,\n onProtocolError: this._onProtocolError,\n onError: onError,\n onCompleted: onCompleted\n });\n };\n return BoltProtocol;\n}(bolt_protocol_v3_1.default));\nexports.default = BoltProtocol;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar bolt_protocol_v4x0_1 = __importDefault(require(\"./bolt-protocol-v4x0\"));\nvar request_message_1 = __importDefault(require(\"./request-message\"));\nvar stream_observers_1 = require(\"./stream-observers\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar BOLT_PROTOCOL_V4_1 = neo4j_driver_core_1.internal.constants.BOLT_PROTOCOL_V4_1;\nvar BoltProtocol = /** @class */ (function (_super) {\n __extends(BoltProtocol, _super);\n /**\n * @constructor\n * @param {Object} server the server informatio.\n * @param {Chunker} chunker the chunker.\n * @param {Object} packstreamConfig Packstream configuration\n * @param {boolean} packstreamConfig.disableLosslessIntegers if this connection should convert all received integers to native JS numbers.\n * @param {boolean} packstreamConfig.useBigInt if this connection should convert all received integers to native BigInt numbers.\n * @param {CreateResponseHandler} createResponseHandler Function which creates the response handler\n * @param {Logger} log the logger\n * @param {Object} serversideRouting\n *\n */\n function BoltProtocol(server, chunker, packstreamConfig, createResponseHandler, log, onProtocolError, serversideRouting) {\n if (createResponseHandler === void 0) { createResponseHandler = function () { return null; }; }\n var _this = _super.call(this, server, chunker, packstreamConfig, createResponseHandler, log, onProtocolError) || this;\n _this._serversideRouting = serversideRouting;\n return _this;\n }\n Object.defineProperty(BoltProtocol.prototype, \"version\", {\n get: function () {\n return BOLT_PROTOCOL_V4_1;\n },\n enumerable: false,\n configurable: true\n });\n BoltProtocol.prototype.initialize = function (_a) {\n var _this = this;\n var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent, authToken = _b.authToken, onError = _b.onError, onComplete = _b.onComplete;\n var observer = new stream_observers_1.LoginObserver({\n onError: function (error) { return _this._onLoginError(error, onError); },\n onCompleted: function (metadata) { return _this._onLoginCompleted(metadata, onComplete); }\n });\n this.write(request_message_1.default.hello(userAgent, authToken, this._serversideRouting), observer, true);\n return observer;\n };\n return BoltProtocol;\n}(bolt_protocol_v4x0_1.default));\nexports.default = BoltProtocol;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar bolt_protocol_v4x1_1 = __importDefault(require(\"./bolt-protocol-v4x1\"));\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar BOLT_PROTOCOL_V4_2 = neo4j_driver_core_1.internal.constants.BOLT_PROTOCOL_V4_2;\nvar BoltProtocol = /** @class */ (function (_super) {\n __extends(BoltProtocol, _super);\n function BoltProtocol() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Object.defineProperty(BoltProtocol.prototype, \"version\", {\n get: function () {\n return BOLT_PROTOCOL_V4_2;\n },\n enumerable: false,\n configurable: true\n });\n return BoltProtocol;\n}(bolt_protocol_v4x1_1.default));\nexports.default = BoltProtocol;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar bolt_protocol_v4x2_1 = __importDefault(require(\"./bolt-protocol-v4x2\"));\nvar request_message_1 = __importDefault(require(\"./request-message\"));\nvar stream_observers_1 = require(\"./stream-observers\");\nvar stream_observers_2 = require(\"./stream-observers\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar Bookmark = neo4j_driver_core_1.internal.bookmark.Bookmark, BOLT_PROTOCOL_V4_3 = neo4j_driver_core_1.internal.constants.BOLT_PROTOCOL_V4_3;\nvar BoltProtocol = /** @class */ (function (_super) {\n __extends(BoltProtocol, _super);\n function BoltProtocol() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Object.defineProperty(BoltProtocol.prototype, \"version\", {\n get: function () {\n return BOLT_PROTOCOL_V4_3;\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Request routing information\n *\n * @param {Object} param -\n * @param {object} param.routingContext The routing context used to define the routing table.\n * Multi-datacenter deployments is one of its use cases\n * @param {string} param.databaseName The database name\n * @param {Bookmark} params.sessionContext.bookmark The bookmark used for request the routing table\n * @param {function(err: Error)} param.onError\n * @param {function(RawRoutingTable)} param.onCompleted\n * @returns {RouteObserver} the route observer\n */\n BoltProtocol.prototype.requestRoutingInformation = function (_a) {\n var _b = _a.routingContext, routingContext = _b === void 0 ? {} : _b, _c = _a.databaseName, databaseName = _c === void 0 ? null : _c, _d = _a.sessionContext, sessionContext = _d === void 0 ? {} : _d, onError = _a.onError, onCompleted = _a.onCompleted;\n var observer = new stream_observers_1.RouteObserver({\n onProtocolError: this._onProtocolError,\n onError: onError,\n onCompleted: onCompleted\n });\n var bookmark = sessionContext.bookmark || Bookmark.empty();\n this.write(request_message_1.default.route(routingContext, bookmark.values(), databaseName), observer, true);\n return observer;\n };\n /**\n * Initialize a connection with the server\n *\n * @param {Object} param0 The params\n * @param {string} param0.userAgent The user agent\n * @param {any} param0.authToken The auth token\n * @param {function(error)} param0.onError On error callback\n * @param {function(onComplte)} param0.onComplete On complete callback\n * @returns {LoginObserver} The Login observer\n */\n BoltProtocol.prototype.initialize = function (_a) {\n var _this = this;\n var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent, authToken = _b.authToken, onError = _b.onError, onComplete = _b.onComplete;\n var observer = new stream_observers_2.LoginObserver({\n onError: function (error) { return _this._onLoginError(error, onError); },\n onCompleted: function (metadata) {\n if (metadata.patch_bolt !== undefined) {\n _this._applyPatches(metadata.patch_bolt);\n }\n return _this._onLoginCompleted(metadata, onComplete);\n }\n });\n this.write(request_message_1.default.hello(userAgent, authToken, this._serversideRouting, ['utc']), observer, true);\n return observer;\n };\n /**\n *\n * @param {string[]} patches Patches to be applied to the protocol\n */\n BoltProtocol.prototype._applyPatches = function (patches) {\n if (patches.includes('utc')) {\n this._applyUtcPatch();\n }\n };\n BoltProtocol.prototype._applyUtcPatch = function () {\n this._packer.useUtc = true;\n this._unpacker.useUtc = true;\n };\n return BoltProtocol;\n}(bolt_protocol_v4x2_1.default));\nexports.default = BoltProtocol;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar bolt_protocol_v4x3_1 = __importDefault(require(\"./bolt-protocol-v4x3\"));\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar request_message_1 = __importDefault(require(\"./request-message\"));\nvar stream_observers_1 = require(\"./stream-observers\");\nvar _a = neo4j_driver_core_1.internal.constants, BOLT_PROTOCOL_V4_4 = _a.BOLT_PROTOCOL_V4_4, FETCH_ALL = _a.FETCH_ALL, Bookmark = neo4j_driver_core_1.internal.bookmark.Bookmark;\nvar BoltProtocol = /** @class */ (function (_super) {\n __extends(BoltProtocol, _super);\n function BoltProtocol() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Object.defineProperty(BoltProtocol.prototype, \"version\", {\n get: function () {\n return BOLT_PROTOCOL_V4_4;\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Request routing information\n *\n * @param {Object} param -\n * @param {object} param.routingContext The routing context used to define the routing table.\n * Multi-datacenter deployments is one of its use cases\n * @param {string} param.databaseName The database name\n * @param {Bookmark} params.sessionContext.bookmark The bookmark used for request the routing table\n * @param {function(err: Error)} param.onError\n * @param {function(RawRoutingTable)} param.onCompleted\n * @returns {RouteObserver} the route observer\n */\n BoltProtocol.prototype.requestRoutingInformation = function (_a) {\n var _b = _a.routingContext, routingContext = _b === void 0 ? {} : _b, _c = _a.databaseName, databaseName = _c === void 0 ? null : _c, _d = _a.impersonatedUser, impersonatedUser = _d === void 0 ? null : _d, _e = _a.sessionContext, sessionContext = _e === void 0 ? {} : _e, onError = _a.onError, onCompleted = _a.onCompleted;\n var observer = new stream_observers_1.RouteObserver({\n onProtocolError: this._onProtocolError,\n onError: onError,\n onCompleted: onCompleted\n });\n var bookmark = sessionContext.bookmark || Bookmark.empty();\n this.write(request_message_1.default.routeV4x4(routingContext, bookmark.values(), { databaseName: databaseName, impersonatedUser: impersonatedUser }), observer, true);\n return observer;\n };\n BoltProtocol.prototype.run = function (query, parameters, _a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, _c = _b.flush, flush = _c === void 0 ? true : _c, _d = _b.reactive, reactive = _d === void 0 ? false : _d, _e = _b.fetchSize, fetchSize = _e === void 0 ? FETCH_ALL : _e;\n var observer = new stream_observers_1.ResultStreamObserver({\n server: this._server,\n reactive: reactive,\n fetchSize: fetchSize,\n moreFunction: this._requestMore.bind(this),\n discardFunction: this._requestDiscard.bind(this),\n beforeKeys: beforeKeys,\n afterKeys: afterKeys,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n var flushRun = reactive;\n this.write(request_message_1.default.runWithMetadata(query, parameters, {\n bookmark: bookmark,\n txConfig: txConfig,\n database: database,\n mode: mode,\n impersonatedUser: impersonatedUser\n }), observer, flushRun && flush);\n if (!reactive) {\n this.write(request_message_1.default.pull({ n: fetchSize }), observer, flush);\n }\n return observer;\n };\n BoltProtocol.prototype.beginTransaction = function (_a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;\n var observer = new stream_observers_1.ResultStreamObserver({\n server: this._server,\n beforeError: beforeError,\n afterError: afterError,\n beforeComplete: beforeComplete,\n afterComplete: afterComplete\n });\n observer.prepareToHandleSingleResponse();\n this.write(request_message_1.default.begin({ bookmark: bookmark, txConfig: txConfig, database: database, mode: mode, impersonatedUser: impersonatedUser }), observer, true);\n return observer;\n };\n return BoltProtocol;\n}(bolt_protocol_v4x3_1.default));\nexports.default = BoltProtocol;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar bolt_protocol_v1_1 = __importDefault(require(\"./bolt-protocol-v1\"));\nvar bolt_protocol_v2_1 = __importDefault(require(\"./bolt-protocol-v2\"));\nvar bolt_protocol_v3_1 = __importDefault(require(\"./bolt-protocol-v3\"));\nvar bolt_protocol_v4x0_1 = __importDefault(require(\"./bolt-protocol-v4x0\"));\nvar bolt_protocol_v4x1_1 = __importDefault(require(\"./bolt-protocol-v4x1\"));\nvar bolt_protocol_v4x2_1 = __importDefault(require(\"./bolt-protocol-v4x2\"));\nvar bolt_protocol_v4x3_1 = __importDefault(require(\"./bolt-protocol-v4x3\"));\nvar bolt_protocol_v4x4_1 = __importDefault(require(\"./bolt-protocol-v4x4\"));\nvar response_handler_1 = __importDefault(require(\"./response-handler\"));\n/**\n * Creates a protocol with a given version\n *\n * @param {object} config\n * @param {number} config.version The version of the protocol\n * @param {channel} config.channel The channel\n * @param {Chunker} config.chunker The chunker\n * @param {Dechunker} config.dechunker The dechunker\n * @param {Logger} config.log The logger\n * @param {ResponseHandler~Observer} config.observer Observer\n * @param {boolean} config.disableLosslessIntegers Disable the lossless integers\n * @param {boolean} packstreamConfig.useBigInt if this connection should convert all received integers to native BigInt numbers.\n * @param {boolean} config.serversideRouting It's using server side routing\n */\nfunction create(_a) {\n var _b = _a === void 0 ? {} : _a, version = _b.version, chunker = _b.chunker, dechunker = _b.dechunker, channel = _b.channel, disableLosslessIntegers = _b.disableLosslessIntegers, useBigInt = _b.useBigInt, serversideRouting = _b.serversideRouting, server = _b.server, // server info\n log = _b.log, observer = _b.observer;\n var createResponseHandler = function (protocol) {\n var responseHandler = new response_handler_1.default({\n transformMetadata: protocol.transformMetadata.bind(protocol),\n log: log,\n observer: observer\n });\n // reset the error handler to just handle errors and forget about the handshake promise\n channel.onerror = observer.onError.bind(observer);\n // Ok, protocol running. Simply forward all messages to the dechunker\n channel.onmessage = function (buf) { return dechunker.write(buf); };\n // setup dechunker to dechunk messages and forward them to the message handler\n dechunker.onmessage = function (buf) {\n try {\n responseHandler.handleResponse(protocol.unpacker().unpack(buf));\n }\n catch (e) {\n return observer.onError(e);\n }\n };\n return responseHandler;\n };\n return createProtocol(version, server, chunker, { disableLosslessIntegers: disableLosslessIntegers, useBigInt: useBigInt }, serversideRouting, createResponseHandler, observer.onProtocolError.bind(observer), log);\n}\nexports.default = create;\nfunction createProtocol(version, server, chunker, packingConfig, serversideRouting, createResponseHandler, onProtocolError, log) {\n switch (version) {\n case 1:\n return new bolt_protocol_v1_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError);\n case 2:\n return new bolt_protocol_v2_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError);\n case 3:\n return new bolt_protocol_v3_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError);\n case 4.0:\n return new bolt_protocol_v4x0_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError);\n case 4.1:\n return new bolt_protocol_v4x1_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);\n case 4.2:\n return new bolt_protocol_v4x2_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);\n case 4.3:\n return new bolt_protocol_v4x3_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);\n case 4.4:\n return new bolt_protocol_v4x4_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);\n default:\n throw (0, neo4j_driver_core_1.newError)('Unknown Bolt protocol version: ' + version);\n }\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"../channel\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar BOLT_MAGIC_PREAMBLE = 0x6060b017;\nfunction version(major, minor) {\n return {\n major: major,\n minor: minor\n };\n}\nfunction createHandshakeMessage(versions) {\n if (versions.length > 4) {\n throw (0, neo4j_driver_core_1.newError)('It should not have more than 4 versions of the protocol');\n }\n var handshakeBuffer = (0, channel_1.alloc)(5 * 4);\n handshakeBuffer.writeInt32(BOLT_MAGIC_PREAMBLE);\n versions.forEach(function (version) {\n if (version instanceof Array) {\n var _a = version[0], major = _a.major, minor = _a.minor;\n var minMinor = version[1].minor;\n var range = minor - minMinor;\n handshakeBuffer.writeInt32((range << 16) | (minor << 8) | major);\n }\n else {\n var major = version.major, minor = version.minor;\n handshakeBuffer.writeInt32((minor << 8) | major);\n }\n });\n handshakeBuffer.reset();\n return handshakeBuffer;\n}\nfunction parseNegotiatedResponse(buffer) {\n var h = [\n buffer.readUInt8(),\n buffer.readUInt8(),\n buffer.readUInt8(),\n buffer.readUInt8()\n ];\n if (h[0] === 0x48 && h[1] === 0x54 && h[2] === 0x54 && h[3] === 0x50) {\n throw (0, neo4j_driver_core_1.newError)('Server responded HTTP. Make sure you are not trying to connect to the http endpoint ' +\n '(HTTP defaults to port 7474 whereas BOLT defaults to port 7687)');\n }\n return Number(h[3] + '.' + h[2]);\n}\n/**\n * @return {BaseBuffer}\n * @private\n */\nfunction newHandshakeBuffer() {\n return createHandshakeMessage([\n [version(4, 4), version(4, 2)],\n version(4, 1),\n version(4, 0),\n version(3, 0)\n ]);\n}\n/**\n * This callback is displayed as a global member.\n * @callback BufferConsumerCallback\n * @param {buffer} buffer the remaining buffer\n */\n/**\n * @typedef HandshakeResult\n * @property {number} protocolVersion The protocol version negotiated in the handshake\n * @property {function(BufferConsumerCallback)} consumeRemainingBuffer A function to consume the remaining buffer if it exists\n */\n/**\n * Shake hands using the channel and return the protocol version\n *\n * @param {Channel} channel the channel use to shake hands\n * @returns {Promise} Promise of protocol version and consumeRemainingBuffer\n */\nfunction handshake(channel) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n var handshakeErrorHandler = function (error) {\n reject(error);\n };\n channel.onerror = handshakeErrorHandler.bind(_this);\n if (channel._error) {\n handshakeErrorHandler(channel._error);\n }\n channel.onmessage = function (buffer) {\n try {\n // read the response buffer and initialize the protocol\n var protocolVersion = parseNegotiatedResponse(buffer);\n resolve({\n protocolVersion: protocolVersion,\n consumeRemainingBuffer: function (consumer) {\n if (buffer.hasRemaining()) {\n consumer(buffer.readSlice(buffer.remaining()));\n }\n }\n });\n }\n catch (e) {\n reject(e);\n }\n };\n channel.write(newHandshakeBuffer());\n });\n}\nexports.default = handshake;\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RawRoutingTable = exports.BoltProtocol = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar handshake_1 = __importDefault(require(\"./handshake\"));\nvar create_1 = __importDefault(require(\"./create\"));\nvar bolt_protocol_v4x3_1 = __importDefault(require(\"./bolt-protocol-v4x3\"));\nvar routing_table_raw_1 = __importDefault(require(\"./routing-table-raw\"));\n__exportStar(require(\"./stream-observers\"), exports);\nexports.BoltProtocol = bolt_protocol_v4x3_1.default;\nexports.RawRoutingTable = routing_table_raw_1.default;\nexports.default = {\n handshake: handshake_1.default,\n create: create_1.default\n};\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar _a = neo4j_driver_core_1.internal.constants, ACCESS_MODE_READ = _a.ACCESS_MODE_READ, FETCH_ALL = _a.FETCH_ALL, assertString = neo4j_driver_core_1.internal.util.assertString;\n/* eslint-disable no-unused-vars */\n// Signature bytes for each request message type\nvar INIT = 0x01; // 0000 0001 // INIT \nvar ACK_FAILURE = 0x0e; // 0000 1110 // ACK_FAILURE - unused\nvar RESET = 0x0f; // 0000 1111 // RESET\nvar RUN = 0x10; // 0001 0000 // RUN \nvar DISCARD_ALL = 0x2f; // 0010 1111 // DISCARD_ALL - unused\nvar PULL_ALL = 0x3f; // 0011 1111 // PULL_ALL\nvar HELLO = 0x01; // 0000 0001 // HELLO \nvar GOODBYE = 0x02; // 0000 0010 // GOODBYE\nvar BEGIN = 0x11; // 0001 0001 // BEGIN \nvar COMMIT = 0x12; // 0001 0010 // COMMIT\nvar ROLLBACK = 0x13; // 0001 0011 // ROLLBACK\nvar ROUTE = 0x66; // 0110 0110 // ROUTE\nvar DISCARD = 0x2f; // 0010 1111 // DISCARD\nvar PULL = 0x3f; // 0011 1111 // PULL\nvar READ_MODE = 'r';\n/* eslint-enable no-unused-vars */\nvar NO_STATEMENT_ID = -1;\nvar RequestMessage = /** @class */ (function () {\n function RequestMessage(signature, fields, toString) {\n this.signature = signature;\n this.fields = fields;\n this.toString = toString;\n }\n /**\n * Create a new INIT message.\n * @param {string} clientName the client name.\n * @param {Object} authToken the authentication token.\n * @return {RequestMessage} new INIT message.\n */\n RequestMessage.init = function (clientName, authToken) {\n return new RequestMessage(INIT, [clientName, authToken], function () { return \"INIT \" + clientName + \" {...}\"; });\n };\n /**\n * Create a new RUN message.\n * @param {string} query the cypher query.\n * @param {Object} parameters the query parameters.\n * @return {RequestMessage} new RUN message.\n */\n RequestMessage.run = function (query, parameters) {\n return new RequestMessage(RUN, [query, parameters], function () { return \"RUN \" + query + \" \" + neo4j_driver_core_1.json.stringify(parameters); });\n };\n /**\n * Get a PULL_ALL message.\n * @return {RequestMessage} the PULL_ALL message.\n */\n RequestMessage.pullAll = function () {\n return PULL_ALL_MESSAGE;\n };\n /**\n * Get a RESET message.\n * @return {RequestMessage} the RESET message.\n */\n RequestMessage.reset = function () {\n return RESET_MESSAGE;\n };\n /**\n * Create a new HELLO message.\n * @param {string} userAgent the user agent.\n * @param {Object} authToken the authentication token.\n * @param {Object} optional server side routing, set to routing context to turn on server side routing (> 4.1)\n * @return {RequestMessage} new HELLO message.\n */\n RequestMessage.hello = function (userAgent, authToken, routing, patchs) {\n if (routing === void 0) { routing = null; }\n if (patchs === void 0) { patchs = null; }\n var metadata = Object.assign({ user_agent: userAgent }, authToken);\n if (routing) {\n metadata.routing = routing;\n }\n if (patchs) {\n metadata.patch_bolt = patchs;\n }\n return new RequestMessage(HELLO, [metadata], function () { return \"HELLO {user_agent: '\" + userAgent + \"', ...}\"; });\n };\n /**\n * Create a new BEGIN message.\n * @param {Bookmark} bookmark the bookmark.\n * @param {TxConfig} txConfig the configuration.\n * @param {string} database the database name.\n * @param {string} mode the access mode.\n * @param {string} impersonatedUser the impersonated user.\n * @return {RequestMessage} new BEGIN message.\n */\n RequestMessage.begin = function (_a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser;\n var metadata = buildTxMetadata(bookmark, txConfig, database, mode, impersonatedUser);\n return new RequestMessage(BEGIN, [metadata], function () { return \"BEGIN \" + neo4j_driver_core_1.json.stringify(metadata); });\n };\n /**\n * Get a COMMIT message.\n * @return {RequestMessage} the COMMIT message.\n */\n RequestMessage.commit = function () {\n return COMMIT_MESSAGE;\n };\n /**\n * Get a ROLLBACK message.\n * @return {RequestMessage} the ROLLBACK message.\n */\n RequestMessage.rollback = function () {\n return ROLLBACK_MESSAGE;\n };\n /**\n * Create a new RUN message with additional metadata.\n * @param {string} query the cypher query.\n * @param {Object} parameters the query parameters.\n * @param {Bookmark} bookmark the bookmark.\n * @param {TxConfig} txConfig the configuration.\n * @param {string} database the database name.\n * @param {string} mode the access mode.\n * @param {string} impersonatedUser the impersonated user.\n * @return {RequestMessage} new RUN message with additional metadata.\n */\n RequestMessage.runWithMetadata = function (query, parameters, _a) {\n var _b = _a === void 0 ? {} : _a, bookmark = _b.bookmark, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser;\n var metadata = buildTxMetadata(bookmark, txConfig, database, mode, impersonatedUser);\n return new RequestMessage(RUN, [query, parameters, metadata], function () {\n return \"RUN \" + query + \" \" + neo4j_driver_core_1.json.stringify(parameters) + \" \" + neo4j_driver_core_1.json.stringify(metadata);\n });\n };\n /**\n * Get a GOODBYE message.\n * @return {RequestMessage} the GOODBYE message.\n */\n RequestMessage.goodbye = function () {\n return GOODBYE_MESSAGE;\n };\n /**\n * Generates a new PULL message with additional metadata.\n * @param {Integer|number} stmtId\n * @param {Integer|number} n\n * @return {RequestMessage} the PULL message.\n */\n RequestMessage.pull = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.stmtId, stmtId = _c === void 0 ? NO_STATEMENT_ID : _c, _d = _b.n, n = _d === void 0 ? FETCH_ALL : _d;\n var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL);\n return new RequestMessage(PULL, [metadata], function () { return \"PULL \" + neo4j_driver_core_1.json.stringify(metadata); });\n };\n /**\n * Generates a new DISCARD message with additional metadata.\n * @param {Integer|number} stmtId\n * @param {Integer|number} n\n * @return {RequestMessage} the PULL message.\n */\n RequestMessage.discard = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.stmtId, stmtId = _c === void 0 ? NO_STATEMENT_ID : _c, _d = _b.n, n = _d === void 0 ? FETCH_ALL : _d;\n var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL);\n return new RequestMessage(DISCARD, [metadata], function () { return \"DISCARD \" + neo4j_driver_core_1.json.stringify(metadata); });\n };\n /**\n * Generate the ROUTE message, this message is used to fetch the routing table from the server\n *\n * @param {object} routingContext The routing context used to define the routing table. Multi-datacenter deployments is one of its use cases\n * @param {string[]} bookmarks The list of the bookmark should be used\n * @param {string} databaseName The name of the database to get the routing table for.\n * @return {RequestMessage} the ROUTE message.\n */\n RequestMessage.route = function (routingContext, bookmarks, databaseName) {\n if (routingContext === void 0) { routingContext = {}; }\n if (bookmarks === void 0) { bookmarks = []; }\n if (databaseName === void 0) { databaseName = null; }\n return new RequestMessage(ROUTE, [routingContext, bookmarks, databaseName], function () {\n return \"ROUTE \" + neo4j_driver_core_1.json.stringify(routingContext) + \" \" + neo4j_driver_core_1.json.stringify(bookmarks) + \" \" + databaseName;\n });\n };\n /**\n * Generate the ROUTE message, this message is used to fetch the routing table from the server\n *\n * @param {object} routingContext The routing context used to define the routing table. Multi-datacenter deployments is one of its use cases\n * @param {string[]} bookmarks The list of the bookmark should be used\n * @param {object} databaseContext The context inforamtion of the database to get the routing table for.\n * @param {string} databaseContext.databaseName The name of the database to get the routing table.\n * @param {string} databaseContext.impersonatedUser The name of the user to impersonation when getting the routing table.\n * @return {RequestMessage} the ROUTE message.\n */\n RequestMessage.routeV4x4 = function (routingContext, bookmarks, databaseContext) {\n if (routingContext === void 0) { routingContext = {}; }\n if (bookmarks === void 0) { bookmarks = []; }\n if (databaseContext === void 0) { databaseContext = {}; }\n var dbContext = {};\n if (databaseContext.databaseName) {\n dbContext.db = databaseContext.databaseName;\n }\n if (databaseContext.impersonatedUser) {\n dbContext.imp_user = databaseContext.impersonatedUser;\n }\n return new RequestMessage(ROUTE, [routingContext, bookmarks, dbContext], function () {\n return \"ROUTE \" + neo4j_driver_core_1.json.stringify(routingContext) + \" \" + neo4j_driver_core_1.json.stringify(bookmarks) + \" \" + neo4j_driver_core_1.json.stringify(dbContext);\n });\n };\n return RequestMessage;\n}());\nexports.default = RequestMessage;\n/**\n * Create an object that represent transaction metadata.\n * @param {Bookmark} bookmark the bookmark.\n * @param {TxConfig} txConfig the configuration.\n * @param {string} database the database name.\n * @param {string} mode the access mode.\n * @param {string} impersonatedUser the impersonated user mode.\n * @return {Object} a metadata object.\n */\nfunction buildTxMetadata(bookmark, txConfig, database, mode, impersonatedUser) {\n var metadata = {};\n if (!bookmark.isEmpty()) {\n metadata.bookmarks = bookmark.values();\n }\n if (txConfig.timeout) {\n metadata.tx_timeout = txConfig.timeout;\n }\n if (txConfig.metadata) {\n metadata.tx_metadata = txConfig.metadata;\n }\n if (database) {\n metadata.db = assertString(database, 'database');\n }\n if (impersonatedUser) {\n metadata.imp_user = assertString(impersonatedUser, 'impersonatedUser');\n }\n if (mode === ACCESS_MODE_READ) {\n metadata.mode = READ_MODE;\n }\n return metadata;\n}\n/**\n * Create an object that represents streaming metadata.\n * @param {Integer|number} stmtId The query id to stream its results.\n * @param {Integer|number} n The number of records to stream.\n * @returns {Object} a metadata object.\n */\nfunction buildStreamMetadata(stmtId, n) {\n var metadata = { n: (0, neo4j_driver_core_1.int)(n) };\n if (stmtId !== NO_STATEMENT_ID) {\n metadata.qid = (0, neo4j_driver_core_1.int)(stmtId);\n }\n return metadata;\n}\n// constants for messages that never change\nvar PULL_ALL_MESSAGE = new RequestMessage(PULL_ALL, [], function () { return 'PULL_ALL'; });\nvar RESET_MESSAGE = new RequestMessage(RESET, [], function () { return 'RESET'; });\nvar COMMIT_MESSAGE = new RequestMessage(COMMIT, [], function () { return 'COMMIT'; });\nvar ROLLBACK_MESSAGE = new RequestMessage(ROLLBACK, [], function () { return 'ROLLBACK'; });\nvar GOODBYE_MESSAGE = new RequestMessage(GOODBYE, [], function () { return 'GOODBYE'; });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\n// Signature bytes for each response message type\nvar SUCCESS = 0x70; // 0111 0000 // SUCCESS \nvar RECORD = 0x71; // 0111 0001 // RECORD \nvar IGNORED = 0x7e; // 0111 1110 // IGNORED \nvar FAILURE = 0x7f; // 0111 1111 // FAILURE \nfunction NO_OP() { }\nfunction NO_OP_IDENTITY(subject) {\n return subject;\n}\nvar NO_OP_OBSERVER = {\n onNext: NO_OP,\n onCompleted: NO_OP,\n onError: NO_OP\n};\n/**\n * Treat the protocol responses and notify the observers\n */\nvar ResponseHandler = /** @class */ (function () {\n /**\n * Called when something went wrong with the connectio\n * @callback ResponseHandler~Observer~OnErrorApplyTransformation\n * @param {any} error The error\n * @returns {any} The new error\n */\n /**\n * Called when something went wrong with the connectio\n * @callback ResponseHandler~Observer~OnError\n * @param {any} error The error\n */\n /**\n * Called when something went wrong with the connectio\n * @callback ResponseHandler~MetadataTransformer\n * @param {any} metadata The metadata got onSuccess\n * @returns {any} The transformed metadata\n */\n /**\n * @typedef {Object} ResponseHandler~Observer\n * @property {ResponseHandler~Observer~OnError} onError Invoke when a connection error occurs\n * @property {ResponseHandler~Observer~OnError} onFailure Invoke when a protocol failure occurs\n * @property {ResponseHandler~Observer~OnErrorApplyTransformation} onErrorApplyTransformation Invoke just after the failure occurs,\n * before notify to respective observer. This method should transform the failure reason to the approprited one.\n */\n /**\n * Constructor\n * @param {Object} param The params\n * @param {ResponseHandler~MetadataTransformer} transformMetadata Transform metadata when the SUCCESS is received.\n * @param {Channel} channel The channel used to exchange messages\n * @param {Logger} log The logger\n * @param {ResponseHandler~Observer} observer Object which will be notified about errors\n */\n function ResponseHandler(_a) {\n var _b = _a === void 0 ? {} : _a, transformMetadata = _b.transformMetadata, log = _b.log, observer = _b.observer;\n this._pendingObservers = [];\n this._log = log;\n this._transformMetadata = transformMetadata || NO_OP_IDENTITY;\n this._observer = Object.assign({\n onPendingObserversChange: NO_OP,\n onError: NO_OP,\n onFailure: NO_OP,\n onErrorApplyTransformation: NO_OP_IDENTITY\n }, observer);\n }\n Object.defineProperty(ResponseHandler.prototype, \"currentFailure\", {\n get: function () {\n return this._currentFailure;\n },\n enumerable: false,\n configurable: true\n });\n ResponseHandler.prototype.handleResponse = function (msg) {\n var payload = msg.fields[0];\n switch (msg.signature) {\n case RECORD:\n if (this._log.isDebugEnabled()) {\n this._log.debug(\"S: RECORD \" + neo4j_driver_core_1.json.stringify(msg));\n }\n this._currentObserver.onNext(payload);\n break;\n case SUCCESS:\n if (this._log.isDebugEnabled()) {\n this._log.debug(\"S: SUCCESS \" + neo4j_driver_core_1.json.stringify(msg));\n }\n try {\n var metadata = this._transformMetadata(payload);\n this._currentObserver.onCompleted(metadata);\n }\n finally {\n this._updateCurrentObserver();\n }\n break;\n case FAILURE:\n if (this._log.isDebugEnabled()) {\n this._log.debug(\"S: FAILURE \" + neo4j_driver_core_1.json.stringify(msg));\n }\n try {\n var error = (0, neo4j_driver_core_1.newError)(payload.message, payload.code);\n this._currentFailure = this._observer.onErrorApplyTransformation(error);\n this._currentObserver.onError(this._currentFailure);\n }\n finally {\n this._updateCurrentObserver();\n // Things are now broken. Pending observers will get FAILURE messages routed until we are done handling this failure.\n this._observer.onFailure(this._currentFailure);\n }\n break;\n case IGNORED:\n if (this._log.isDebugEnabled()) {\n this._log.debug(\"S: IGNORED \" + neo4j_driver_core_1.json.stringify(msg));\n }\n try {\n if (this._currentFailure && this._currentObserver.onError) {\n this._currentObserver.onError(this._currentFailure);\n }\n else if (this._currentObserver.onError) {\n this._currentObserver.onError((0, neo4j_driver_core_1.newError)('Ignored either because of an error or RESET'));\n }\n }\n finally {\n this._updateCurrentObserver();\n }\n break;\n default:\n this._observer.onError((0, neo4j_driver_core_1.newError)('Unknown Bolt protocol message: ' + msg));\n }\n };\n /*\n * Pop next pending observer form the list of observers and make it current observer.\n * @protected\n */\n ResponseHandler.prototype._updateCurrentObserver = function () {\n this._currentObserver = this._pendingObservers.shift();\n this._observer.onPendingObserversChange(this._pendingObservers.length);\n };\n ResponseHandler.prototype._queueObserver = function (observer) {\n observer = observer || NO_OP_OBSERVER;\n observer.onCompleted = observer.onCompleted || NO_OP;\n observer.onError = observer.onError || NO_OP;\n observer.onNext = observer.onNext || NO_OP;\n if (this._currentObserver === undefined) {\n this._currentObserver = observer;\n }\n else {\n this._pendingObservers.push(observer);\n }\n this._observer.onPendingObserversChange(this._pendingObservers.length);\n return true;\n };\n ResponseHandler.prototype._notifyErrorToObservers = function (error) {\n if (this._currentObserver && this._currentObserver.onError) {\n this._currentObserver.onError(error);\n }\n while (this._pendingObservers.length > 0) {\n var observer = this._pendingObservers.shift();\n if (observer && observer.onError) {\n observer.onError(error);\n }\n }\n };\n ResponseHandler.prototype.hasOngoingObservableRequests = function () {\n return this._currentObserver != null || this._pendingObservers.length > 0;\n };\n ResponseHandler.prototype._resetFailure = function () {\n this._currentFailure = null;\n };\n return ResponseHandler;\n}());\nexports.default = ResponseHandler;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Represente the raw version of the routing table\n */\nvar RawRoutingTable = /** @class */ (function () {\n function RawRoutingTable() {\n }\n /**\n * Constructs the raw routing table for Record based result\n * @param {Record} record The record which will be used get the raw routing table\n * @returns {RawRoutingTable} The raw routing table\n */\n RawRoutingTable.ofRecord = function (record) {\n if (record === null) {\n return RawRoutingTable.ofNull();\n }\n return new RecordRawRoutingTable(record);\n };\n /**\n * Constructs the raw routing table for Success result for a Routing Message\n * @param {object} response The result\n * @returns {RawRoutingTable} The raw routing table\n */\n RawRoutingTable.ofMessageResponse = function (response) {\n if (response === null) {\n return RawRoutingTable.ofNull();\n }\n return new ResponseRawRoutingTable(response);\n };\n /**\n * Construct the raw routing table of a null response\n *\n * @returns {RawRoutingTable} the raw routing table\n */\n RawRoutingTable.ofNull = function () {\n return new NullRawRoutingTable();\n };\n Object.defineProperty(RawRoutingTable.prototype, \"ttl\", {\n /**\n * Get raw ttl\n *\n * @returns {number|string} ttl Time to live\n */\n get: function () {\n throw new Error('Not implemented');\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(RawRoutingTable.prototype, \"db\", {\n /**\n * Get raw db\n *\n * @returns {string?} The database name\n */\n get: function () {\n throw new Error('Not implemented');\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(RawRoutingTable.prototype, \"servers\", {\n /**\n *\n * @typedef {Object} ServerRole\n * @property {string} role the role of the address on the cluster\n * @property {string[]} addresses the address within the role\n *\n * @return {ServerRole[]} list of servers addresses\n */\n get: function () {\n throw new Error('Not implemented');\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(RawRoutingTable.prototype, \"isNull\", {\n /**\n * Indicates the result is null\n *\n * @returns {boolean} Is null\n */\n get: function () {\n throw new Error('Not implemented');\n },\n enumerable: false,\n configurable: true\n });\n return RawRoutingTable;\n}());\nexports.default = RawRoutingTable;\n/**\n * Get the raw routing table information from route message response\n */\nvar ResponseRawRoutingTable = /** @class */ (function (_super) {\n __extends(ResponseRawRoutingTable, _super);\n function ResponseRawRoutingTable(response) {\n var _this = _super.call(this) || this;\n _this._response = response;\n return _this;\n }\n Object.defineProperty(ResponseRawRoutingTable.prototype, \"ttl\", {\n get: function () {\n return this._response.rt.ttl;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(ResponseRawRoutingTable.prototype, \"servers\", {\n get: function () {\n return this._response.rt.servers;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(ResponseRawRoutingTable.prototype, \"db\", {\n get: function () {\n return this._response.rt.db;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(ResponseRawRoutingTable.prototype, \"isNull\", {\n get: function () {\n return this._response === null;\n },\n enumerable: false,\n configurable: true\n });\n return ResponseRawRoutingTable;\n}(RawRoutingTable));\n/**\n * Null routing table\n */\nvar NullRawRoutingTable = /** @class */ (function (_super) {\n __extends(NullRawRoutingTable, _super);\n function NullRawRoutingTable() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Object.defineProperty(NullRawRoutingTable.prototype, \"isNull\", {\n get: function () {\n return true;\n },\n enumerable: false,\n configurable: true\n });\n return NullRawRoutingTable;\n}(RawRoutingTable));\n/**\n * Get the raw routing table information from the record\n */\nvar RecordRawRoutingTable = /** @class */ (function (_super) {\n __extends(RecordRawRoutingTable, _super);\n function RecordRawRoutingTable(record) {\n var _this = _super.call(this) || this;\n _this._record = record;\n return _this;\n }\n Object.defineProperty(RecordRawRoutingTable.prototype, \"ttl\", {\n get: function () {\n return this._record.get('ttl');\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(RecordRawRoutingTable.prototype, \"servers\", {\n get: function () {\n return this._record.get('servers');\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(RecordRawRoutingTable.prototype, \"db\", {\n get: function () {\n return this._record.has('db') ? this._record.get('db') : null;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(RecordRawRoutingTable.prototype, \"isNull\", {\n get: function () {\n return this._record === null;\n },\n enumerable: false,\n configurable: true\n });\n return RecordRawRoutingTable;\n}(RawRoutingTable));\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ProcedureRouteObserver = exports.RouteObserver = exports.CompletedObserver = exports.FailedObserver = exports.ResetObserver = exports.LoginObserver = exports.ResultStreamObserver = exports.StreamObserver = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar routing_table_raw_1 = __importDefault(require(\"./routing-table-raw\"));\nvar FETCH_ALL = neo4j_driver_core_1.internal.constants.FETCH_ALL;\nvar PROTOCOL_ERROR = neo4j_driver_core_1.error.PROTOCOL_ERROR;\nvar StreamObserver = /** @class */ (function () {\n function StreamObserver() {\n }\n StreamObserver.prototype.onNext = function (rawRecord) { };\n StreamObserver.prototype.onError = function (error) { };\n StreamObserver.prototype.onCompleted = function (meta) { };\n return StreamObserver;\n}());\nexports.StreamObserver = StreamObserver;\n/**\n * Handles a RUN/PULL_ALL, or RUN/DISCARD_ALL requests, maps the responses\n * in a way that a user-provided observer can see these as a clean Stream\n * of records.\n * This class will queue up incoming messages until a user-provided observer\n * for the incoming stream is registered. Thus, we keep fields around\n * for tracking head/records/tail. These are only used if there is no\n * observer registered.\n * @access private\n */\nvar ResultStreamObserver = /** @class */ (function (_super) {\n __extends(ResultStreamObserver, _super);\n /**\n *\n * @param {Object} param\n * @param {Object} param.server\n * @param {boolean} param.reactive\n * @param {function(stmtId: number|Integer, n: number|Integer, observer: StreamObserver)} param.moreFunction -\n * @param {function(stmtId: number|Integer, observer: StreamObserver)} param.discardFunction -\n * @param {number|Integer} param.fetchSize -\n * @param {function(err: Error): Promise|void} param.beforeError -\n * @param {function(err: Error): Promise|void} param.afterError -\n * @param {function(keys: string[]): Promise|void} param.beforeKeys -\n * @param {function(keys: string[]): Promise|void} param.afterKeys -\n * @param {function(metadata: Object): Promise|void} param.beforeComplete -\n * @param {function(metadata: Object): Promise|void} param.afterComplete -\n */\n function ResultStreamObserver(_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.reactive, reactive = _c === void 0 ? false : _c, moreFunction = _b.moreFunction, discardFunction = _b.discardFunction, _d = _b.fetchSize, fetchSize = _d === void 0 ? FETCH_ALL : _d, beforeError = _b.beforeError, afterError = _b.afterError, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, server = _b.server;\n var _this = _super.call(this) || this;\n _this._fieldKeys = null;\n _this._fieldLookup = null;\n _this._head = null;\n _this._queuedRecords = [];\n _this._tail = null;\n _this._error = null;\n _this._observers = [];\n _this._meta = {};\n _this._server = server;\n _this._beforeError = beforeError;\n _this._afterError = afterError;\n _this._beforeKeys = beforeKeys;\n _this._afterKeys = afterKeys;\n _this._beforeComplete = beforeComplete;\n _this._afterComplete = afterComplete;\n _this._queryId = null;\n _this._moreFunction = moreFunction;\n _this._discardFunction = discardFunction;\n _this._discard = false;\n _this._fetchSize = fetchSize;\n _this._setState(reactive ? _states.READY : _states.READY_STREAMING);\n _this._setupAuoPull(fetchSize);\n return _this;\n }\n /**\n * Will be called on every record that comes in and transform a raw record\n * to a Object. If user-provided observer is present, pass transformed record\n * to it's onNext method, otherwise, push to record que.\n * @param {Array} rawRecord - An array with the raw record\n */\n ResultStreamObserver.prototype.onNext = function (rawRecord) {\n var record = new neo4j_driver_core_1.Record(this._fieldKeys, rawRecord, this._fieldLookup);\n if (this._observers.some(function (o) { return o.onNext; })) {\n this._observers.forEach(function (o) {\n if (o.onNext) {\n o.onNext(record);\n }\n });\n }\n else {\n this._queuedRecords.push(record);\n if (this._queuedRecords.length > this._highRecordWatermark) {\n this._autoPull = false;\n }\n }\n };\n ResultStreamObserver.prototype.onCompleted = function (meta) {\n this._state.onSuccess(this, meta);\n };\n /**\n * Will be called on errors.\n * If user-provided observer is present, pass the error\n * to it's onError method, otherwise set instance variable _error.\n * @param {Object} error - An error object\n */\n ResultStreamObserver.prototype.onError = function (error) {\n this._state.onError(this, error);\n };\n /**\n * Cancel pending record stream\n */\n ResultStreamObserver.prototype.cancel = function () {\n this._discard = true;\n };\n /**\n * Stream observer defaults to handling responses for two messages: RUN + PULL_ALL or RUN + DISCARD_ALL.\n * Response for RUN initializes query keys. Response for PULL_ALL / DISCARD_ALL exposes the result stream.\n *\n * However, some operations can be represented as a single message which receives full metadata in a single response.\n * For example, operations to begin, commit and rollback an explicit transaction use two messages in Bolt V1 but a single message in Bolt V3.\n * Messages are `RUN \"BEGIN\" {}` + `PULL_ALL` in Bolt V1 and `BEGIN` in Bolt V3.\n *\n * This function prepares the observer to only handle a single response message.\n */\n ResultStreamObserver.prototype.prepareToHandleSingleResponse = function () {\n this._head = [];\n this._fieldKeys = [];\n this._setState(_states.STREAMING);\n };\n /**\n * Mark this observer as if it has completed with no metadata.\n */\n ResultStreamObserver.prototype.markCompleted = function () {\n this._head = [];\n this._fieldKeys = [];\n this._tail = {};\n this._setState(_states.SUCCEEDED);\n };\n /**\n * Subscribe to events with provided observer.\n * @param {Object} observer - Observer object\n * @param {function(keys: String[])} observer.onKeys - Handle stream header, field keys.\n * @param {function(record: Object)} observer.onNext - Handle records, one by one.\n * @param {function(metadata: Object)} observer.onCompleted - Handle stream tail, the metadata.\n * @param {function(error: Object)} observer.onError - Handle errors, should always be provided.\n */\n ResultStreamObserver.prototype.subscribe = function (observer) {\n if (this._error) {\n observer.onError(this._error);\n return;\n }\n if (this._head && observer.onKeys) {\n observer.onKeys(this._head);\n }\n if (this._queuedRecords.length > 0 && observer.onNext) {\n for (var i = 0; i < this._queuedRecords.length; i++) {\n observer.onNext(this._queuedRecords[i]);\n if (this._queuedRecords.length - i - 1 <= this._lowRecordWatermark) {\n this._autoPull = true;\n if (this._state === _states.READY) {\n this._handleStreaming();\n }\n }\n }\n }\n if (this._tail && observer.onCompleted) {\n observer.onCompleted(this._tail);\n }\n this._observers.push(observer);\n if (this._state === _states.READY) {\n this._handleStreaming();\n }\n };\n ResultStreamObserver.prototype._handleHasMore = function (meta) {\n // We've consumed current batch and server notified us that there're more\n // records to stream. Let's invoke more or discard function based on whether\n // the user wants to discard streaming or not\n this._setState(_states.READY); // we've done streaming\n this._handleStreaming();\n delete meta.has_more;\n };\n ResultStreamObserver.prototype._handlePullSuccess = function (meta) {\n var _this = this;\n this._setState(_states.SUCCEEDED);\n var completionMetadata = Object.assign(this._server ? { server: this._server } : {}, this._meta, meta);\n var beforeHandlerResult = null;\n if (this._beforeComplete) {\n beforeHandlerResult = this._beforeComplete(completionMetadata);\n }\n var continuation = function () {\n // End of stream\n _this._tail = completionMetadata;\n if (_this._observers.some(function (o) { return o.onCompleted; })) {\n _this._observers.forEach(function (o) {\n if (o.onCompleted) {\n o.onCompleted(completionMetadata);\n }\n });\n }\n if (_this._afterComplete) {\n _this._afterComplete(completionMetadata);\n }\n };\n if (beforeHandlerResult) {\n Promise.resolve(beforeHandlerResult).then(function () { return continuation(); });\n }\n else {\n continuation();\n }\n };\n ResultStreamObserver.prototype._handleRunSuccess = function (meta, afterSuccess) {\n var _this = this;\n if (this._fieldKeys === null) {\n // Stream header, build a name->index field lookup table\n // to be used by records. This is an optimization to make it\n // faster to look up fields in a record by name, rather than by index.\n // Since the records we get back via Bolt are just arrays of values.\n this._fieldKeys = [];\n this._fieldLookup = {};\n if (meta.fields && meta.fields.length > 0) {\n this._fieldKeys = meta.fields;\n for (var i = 0; i < meta.fields.length; i++) {\n this._fieldLookup[meta.fields[i]] = i;\n }\n // remove fields key from metadata object\n delete meta.fields;\n }\n // Extract server generated query id for use in requestMore and discard\n // functions\n if (meta.qid !== null && meta.qid !== undefined) {\n this._queryId = meta.qid;\n // remove qid from metadata object\n delete meta.qid;\n }\n this._storeMetadataForCompletion(meta);\n var beforeHandlerResult = null;\n if (this._beforeKeys) {\n beforeHandlerResult = this._beforeKeys(this._fieldKeys);\n }\n var continuation_1 = function () {\n _this._head = _this._fieldKeys;\n if (_this._observers.some(function (o) { return o.onKeys; })) {\n _this._observers.forEach(function (o) {\n if (o.onKeys) {\n o.onKeys(_this._fieldKeys);\n }\n });\n }\n if (_this._afterKeys) {\n _this._afterKeys(_this._fieldKeys);\n }\n afterSuccess();\n };\n if (beforeHandlerResult) {\n Promise.resolve(beforeHandlerResult).then(function () { return continuation_1(); });\n }\n else {\n continuation_1();\n }\n }\n };\n ResultStreamObserver.prototype._handleError = function (error) {\n var _this = this;\n this._setState(_states.FAILED);\n this._error = error;\n var beforeHandlerResult = null;\n if (this._beforeError) {\n beforeHandlerResult = this._beforeError(error);\n }\n var continuation = function () {\n if (_this._observers.some(function (o) { return o.onError; })) {\n _this._observers.forEach(function (o) {\n if (o.onError) {\n o.onError(error);\n }\n });\n }\n if (_this._afterError) {\n _this._afterError(error);\n }\n };\n if (beforeHandlerResult) {\n Promise.resolve(beforeHandlerResult).then(function () { return continuation(); });\n }\n else {\n continuation();\n }\n };\n ResultStreamObserver.prototype._handleStreaming = function () {\n if (this._head && this._observers.some(function (o) { return o.onNext || o.onCompleted; })) {\n if (this._discard) {\n this._discardFunction(this._queryId, this);\n this._setState(_states.STREAMING);\n }\n else if (this._autoPull) {\n this._moreFunction(this._queryId, this._fetchSize, this);\n this._setState(_states.STREAMING);\n }\n }\n };\n ResultStreamObserver.prototype._storeMetadataForCompletion = function (meta) {\n var keys = Object.keys(meta);\n var index = keys.length;\n var key = '';\n while (index--) {\n key = keys[index];\n this._meta[key] = meta[key];\n }\n };\n ResultStreamObserver.prototype._setState = function (state) {\n this._state = state;\n };\n ResultStreamObserver.prototype._setupAuoPull = function (fetchSize) {\n this._autoPull = true;\n if (fetchSize === FETCH_ALL) {\n this._lowRecordWatermark = Number.MAX_VALUE; // we shall always lower than this number to enable auto pull\n this._highRecordWatermark = Number.MAX_VALUE; // we shall never reach this number to disable auto pull\n }\n else {\n this._lowRecordWatermark = 0.3 * fetchSize;\n this._highRecordWatermark = 0.7 * fetchSize;\n }\n };\n return ResultStreamObserver;\n}(StreamObserver));\nexports.ResultStreamObserver = ResultStreamObserver;\nvar LoginObserver = /** @class */ (function (_super) {\n __extends(LoginObserver, _super);\n /**\n *\n * @param {Object} param -\n * @param {function(err: Error)} param.onError\n * @param {function(metadata)} param.onCompleted\n */\n function LoginObserver(_a) {\n var _b = _a === void 0 ? {} : _a, onError = _b.onError, onCompleted = _b.onCompleted;\n var _this = _super.call(this) || this;\n _this._onError = onError;\n _this._onCompleted = onCompleted;\n return _this;\n }\n LoginObserver.prototype.onNext = function (record) {\n this.onError((0, neo4j_driver_core_1.newError)('Received RECORD when initializing ' + neo4j_driver_core_1.json.stringify(record)));\n };\n LoginObserver.prototype.onError = function (error) {\n if (this._onError) {\n this._onError(error);\n }\n };\n LoginObserver.prototype.onCompleted = function (metadata) {\n if (this._onCompleted) {\n this._onCompleted(metadata);\n }\n };\n return LoginObserver;\n}(StreamObserver));\nexports.LoginObserver = LoginObserver;\nvar ResetObserver = /** @class */ (function (_super) {\n __extends(ResetObserver, _super);\n /**\n *\n * @param {Object} param -\n * @param {function(err: String)} param.onProtocolError\n * @param {function(err: Error)} param.onError\n * @param {function(metadata)} param.onComplete\n */\n function ResetObserver(_a) {\n var _b = _a === void 0 ? {} : _a, onProtocolError = _b.onProtocolError, onError = _b.onError, onComplete = _b.onComplete;\n var _this = _super.call(this) || this;\n _this._onProtocolError = onProtocolError;\n _this._onError = onError;\n _this._onComplete = onComplete;\n return _this;\n }\n ResetObserver.prototype.onNext = function (record) {\n this.onError((0, neo4j_driver_core_1.newError)('Received RECORD when resetting: received record is: ' +\n neo4j_driver_core_1.json.stringify(record), PROTOCOL_ERROR));\n };\n ResetObserver.prototype.onError = function (error) {\n if (error.code === PROTOCOL_ERROR && this._onProtocolError) {\n this._onProtocolError(error.message);\n }\n if (this._onError) {\n this._onError(error);\n }\n };\n ResetObserver.prototype.onCompleted = function (metadata) {\n if (this._onComplete) {\n this._onComplete(metadata);\n }\n };\n return ResetObserver;\n}(StreamObserver));\nexports.ResetObserver = ResetObserver;\nvar FailedObserver = /** @class */ (function (_super) {\n __extends(FailedObserver, _super);\n function FailedObserver(_a) {\n var error = _a.error, onError = _a.onError;\n var _this = _super.call(this, { beforeError: onError }) || this;\n _this.onError(error);\n return _this;\n }\n return FailedObserver;\n}(ResultStreamObserver));\nexports.FailedObserver = FailedObserver;\nvar CompletedObserver = /** @class */ (function (_super) {\n __extends(CompletedObserver, _super);\n function CompletedObserver() {\n var _this = _super.call(this) || this;\n _super.prototype.markCompleted.call(_this);\n return _this;\n }\n return CompletedObserver;\n}(ResultStreamObserver));\nexports.CompletedObserver = CompletedObserver;\nvar ProcedureRouteObserver = /** @class */ (function (_super) {\n __extends(ProcedureRouteObserver, _super);\n function ProcedureRouteObserver(_a) {\n var resultObserver = _a.resultObserver, onProtocolError = _a.onProtocolError, onError = _a.onError, onCompleted = _a.onCompleted;\n var _this = _super.call(this) || this;\n _this._resultObserver = resultObserver;\n _this._onError = onError;\n _this._onCompleted = onCompleted;\n _this._records = [];\n _this._onProtocolError = onProtocolError;\n resultObserver.subscribe(_this);\n return _this;\n }\n ProcedureRouteObserver.prototype.onNext = function (record) {\n this._records.push(record);\n };\n ProcedureRouteObserver.prototype.onError = function (error) {\n if (error.code === PROTOCOL_ERROR && this._onProtocolError) {\n this._onProtocolError(error.message);\n }\n if (this._onError) {\n this._onError(error);\n }\n };\n ProcedureRouteObserver.prototype.onCompleted = function () {\n if (this._records !== null && this._records.length !== 1) {\n this.onError((0, neo4j_driver_core_1.newError)('Illegal response from router. Received ' +\n this._records.length +\n ' records but expected only one.\\n' +\n neo4j_driver_core_1.json.stringify(this._records), PROTOCOL_ERROR));\n return;\n }\n if (this._onCompleted) {\n this._onCompleted(routing_table_raw_1.default.ofRecord(this._records[0]));\n }\n };\n return ProcedureRouteObserver;\n}(StreamObserver));\nexports.ProcedureRouteObserver = ProcedureRouteObserver;\nvar RouteObserver = /** @class */ (function (_super) {\n __extends(RouteObserver, _super);\n /**\n *\n * @param {Object} param -\n * @param {function(err: String)} param.onProtocolError\n * @param {function(err: Error)} param.onError\n * @param {function(RawRoutingTable)} param.onCompleted\n */\n function RouteObserver(_a) {\n var _b = _a === void 0 ? {} : _a, onProtocolError = _b.onProtocolError, onError = _b.onError, onCompleted = _b.onCompleted;\n var _this = _super.call(this) || this;\n _this._onProtocolError = onProtocolError;\n _this._onError = onError;\n _this._onCompleted = onCompleted;\n return _this;\n }\n RouteObserver.prototype.onNext = function (record) {\n this.onError((0, neo4j_driver_core_1.newError)('Received RECORD when resetting: received record is: ' +\n neo4j_driver_core_1.json.stringify(record), PROTOCOL_ERROR));\n };\n RouteObserver.prototype.onError = function (error) {\n if (error.code === PROTOCOL_ERROR && this._onProtocolError) {\n this._onProtocolError(error.message);\n }\n if (this._onError) {\n this._onError(error);\n }\n };\n RouteObserver.prototype.onCompleted = function (metadata) {\n if (this._onCompleted) {\n this._onCompleted(routing_table_raw_1.default.ofMessageResponse(metadata));\n }\n };\n return RouteObserver;\n}(StreamObserver));\nexports.RouteObserver = RouteObserver;\nvar _states = {\n READY_STREAMING: {\n // async start state\n onSuccess: function (streamObserver, meta) {\n streamObserver._handleRunSuccess(meta, function () {\n streamObserver._setState(_states.STREAMING);\n } // after run succeeded, async directly move to streaming\n // state\n );\n },\n onError: function (streamObserver, error) {\n streamObserver._handleError(error);\n },\n name: function () {\n return 'READY_STREAMING';\n }\n },\n READY: {\n // reactive start state\n onSuccess: function (streamObserver, meta) {\n streamObserver._handleRunSuccess(meta, function () { return streamObserver._handleStreaming(); } // after run succeeded received, reactive shall start pulling\n );\n },\n onError: function (streamObserver, error) {\n streamObserver._handleError(error);\n },\n name: function () {\n return 'READY';\n }\n },\n STREAMING: {\n onSuccess: function (streamObserver, meta) {\n if (meta.has_more) {\n streamObserver._handleHasMore(meta);\n }\n else {\n streamObserver._handlePullSuccess(meta);\n }\n },\n onError: function (streamObserver, error) {\n streamObserver._handleError(error);\n },\n name: function () {\n return 'STREAMING';\n }\n },\n FAILED: {\n onError: function (error) {\n // more errors are ignored\n },\n name: function () {\n return 'FAILED';\n }\n },\n SUCCEEDED: {\n name: function () {\n return 'SUCCEEDED';\n }\n }\n};\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Common base with default implementation for most buffer methods.\n * Buffers are stateful - they track a current \"position\", this helps greatly\n * when reading and writing from them incrementally. You can also ignore the\n * stateful read/write methods.\n * readXXX and writeXXX-methods move the inner position of the buffer.\n * putXXX and getXXX-methods do not.\n * @access private\n */\nvar BaseBuffer = /** @class */ (function () {\n /**\n * Create a instance with the injected size.\n * @constructor\n * @param {Integer} size\n */\n function BaseBuffer(size) {\n this.position = 0;\n this.length = size;\n }\n BaseBuffer.prototype.getUInt8 = function (position) {\n throw new Error('Not implemented');\n };\n BaseBuffer.prototype.getInt8 = function (position) {\n throw new Error('Not implemented');\n };\n BaseBuffer.prototype.getFloat64 = function (position) {\n throw new Error('Not implemented');\n };\n BaseBuffer.prototype.putUInt8 = function (position, val) {\n throw new Error('Not implemented');\n };\n BaseBuffer.prototype.putInt8 = function (position, val) {\n throw new Error('Not implemented');\n };\n BaseBuffer.prototype.putFloat64 = function (position, val) {\n throw new Error('Not implemented');\n };\n /**\n * @param p\n */\n BaseBuffer.prototype.getInt16 = function (p) {\n return (this.getInt8(p) << 8) | this.getUInt8(p + 1);\n };\n /**\n * @param p\n */\n BaseBuffer.prototype.getUInt16 = function (p) {\n return (this.getUInt8(p) << 8) | this.getUInt8(p + 1);\n };\n /**\n * @param p\n */\n BaseBuffer.prototype.getInt32 = function (p) {\n return ((this.getInt8(p) << 24) |\n (this.getUInt8(p + 1) << 16) |\n (this.getUInt8(p + 2) << 8) |\n this.getUInt8(p + 3));\n };\n /**\n * @param p\n */\n BaseBuffer.prototype.getUInt32 = function (p) {\n return ((this.getUInt8(p) << 24) |\n (this.getUInt8(p + 1) << 16) |\n (this.getUInt8(p + 2) << 8) |\n this.getUInt8(p + 3));\n };\n /**\n * @param p\n */\n BaseBuffer.prototype.getInt64 = function (p) {\n return ((this.getInt8(p) << 56) |\n (this.getUInt8(p + 1) << 48) |\n (this.getUInt8(p + 2) << 40) |\n (this.getUInt8(p + 3) << 32) |\n (this.getUInt8(p + 4) << 24) |\n (this.getUInt8(p + 5) << 16) |\n (this.getUInt8(p + 6) << 8) |\n this.getUInt8(p + 7));\n };\n /**\n * Get a slice of this buffer. This method does not copy any data,\n * but simply provides a slice view of this buffer\n * @param start\n * @param length\n */\n BaseBuffer.prototype.getSlice = function (start, length) {\n return new SliceBuffer(start, length, this);\n };\n /**\n * @param p\n * @param val\n */\n BaseBuffer.prototype.putInt16 = function (p, val) {\n this.putInt8(p, val >> 8);\n this.putUInt8(p + 1, val & 0xff);\n };\n /**\n * @param p\n * @param val\n */\n BaseBuffer.prototype.putUInt16 = function (p, val) {\n this.putUInt8(p, (val >> 8) & 0xff);\n this.putUInt8(p + 1, val & 0xff);\n };\n /**\n * @param p\n * @param val\n */\n BaseBuffer.prototype.putInt32 = function (p, val) {\n this.putInt8(p, val >> 24);\n this.putUInt8(p + 1, (val >> 16) & 0xff);\n this.putUInt8(p + 2, (val >> 8) & 0xff);\n this.putUInt8(p + 3, val & 0xff);\n };\n /**\n * @param p\n * @param val\n */\n BaseBuffer.prototype.putUInt32 = function (p, val) {\n this.putUInt8(p, (val >> 24) & 0xff);\n this.putUInt8(p + 1, (val >> 16) & 0xff);\n this.putUInt8(p + 2, (val >> 8) & 0xff);\n this.putUInt8(p + 3, val & 0xff);\n };\n /**\n * @param p\n * @param val\n */\n BaseBuffer.prototype.putInt64 = function (p, val) {\n this.putInt8(p, val >> 48);\n this.putUInt8(p + 1, (val >> 42) & 0xff);\n this.putUInt8(p + 2, (val >> 36) & 0xff);\n this.putUInt8(p + 3, (val >> 30) & 0xff);\n this.putUInt8(p + 4, (val >> 24) & 0xff);\n this.putUInt8(p + 5, (val >> 16) & 0xff);\n this.putUInt8(p + 6, (val >> 8) & 0xff);\n this.putUInt8(p + 7, val & 0xff);\n };\n /**\n * @param position\n * @param other\n */\n BaseBuffer.prototype.putBytes = function (position, other) {\n for (var i = 0, end = other.remaining(); i < end; i++) {\n this.putUInt8(position + i, other.readUInt8());\n }\n };\n /**\n * Read from state position.\n */\n BaseBuffer.prototype.readUInt8 = function () {\n return this.getUInt8(this._updatePos(1));\n };\n /**\n * Read from state position.\n */\n BaseBuffer.prototype.readInt8 = function () {\n return this.getInt8(this._updatePos(1));\n };\n /**\n * Read from state position.\n */\n BaseBuffer.prototype.readUInt16 = function () {\n return this.getUInt16(this._updatePos(2));\n };\n /**\n * Read from state position.\n */\n BaseBuffer.prototype.readUInt32 = function () {\n return this.getUInt32(this._updatePos(4));\n };\n /**\n * Read from state position.\n */\n BaseBuffer.prototype.readInt16 = function () {\n return this.getInt16(this._updatePos(2));\n };\n /**\n * Read from state position.\n */\n BaseBuffer.prototype.readInt32 = function () {\n return this.getInt32(this._updatePos(4));\n };\n /**\n * Read from state position.\n */\n BaseBuffer.prototype.readInt64 = function () {\n return this.getInt32(this._updatePos(8));\n };\n /**\n * Read from state position.\n */\n BaseBuffer.prototype.readFloat64 = function () {\n return this.getFloat64(this._updatePos(8));\n };\n /**\n * Write to state position.\n * @param val\n */\n BaseBuffer.prototype.writeUInt8 = function (val) {\n this.putUInt8(this._updatePos(1), val);\n };\n /**\n * Write to state position.\n * @param val\n */\n BaseBuffer.prototype.writeInt8 = function (val) {\n this.putInt8(this._updatePos(1), val);\n };\n /**\n * Write to state position.\n * @param val\n */\n BaseBuffer.prototype.writeInt16 = function (val) {\n this.putInt16(this._updatePos(2), val);\n };\n /**\n * Write to state position.\n * @param val\n */\n BaseBuffer.prototype.writeInt32 = function (val) {\n this.putInt32(this._updatePos(4), val);\n };\n /**\n * Write to state position.\n * @param val\n */\n BaseBuffer.prototype.writeUInt32 = function (val) {\n this.putUInt32(this._updatePos(4), val);\n };\n /**\n * Write to state position.\n * @param val\n */\n BaseBuffer.prototype.writeInt64 = function (val) {\n this.putInt64(this._updatePos(8), val);\n };\n /**\n * Write to state position.\n * @param val\n */\n BaseBuffer.prototype.writeFloat64 = function (val) {\n this.putFloat64(this._updatePos(8), val);\n };\n /**\n * Write to state position.\n * @param val\n */\n BaseBuffer.prototype.writeBytes = function (val) {\n this.putBytes(this._updatePos(val.remaining()), val);\n };\n /**\n * Get a slice of this buffer. This method does not copy any data,\n * but simply provides a slice view of this buffer\n * @param length\n */\n BaseBuffer.prototype.readSlice = function (length) {\n return this.getSlice(this._updatePos(length), length);\n };\n BaseBuffer.prototype._updatePos = function (length) {\n var p = this.position;\n this.position += length;\n return p;\n };\n /**\n * Get remaining\n */\n BaseBuffer.prototype.remaining = function () {\n return this.length - this.position;\n };\n /**\n * Has remaining\n */\n BaseBuffer.prototype.hasRemaining = function () {\n return this.remaining() > 0;\n };\n /**\n * Reset position state\n */\n BaseBuffer.prototype.reset = function () {\n this.position = 0;\n };\n /**\n * Get string representation of buffer and it's state.\n * @return {string} Buffer as a string\n */\n BaseBuffer.prototype.toString = function () {\n return (this.constructor.name +\n '( position=' +\n this.position +\n ' )\\n ' +\n this.toHex());\n };\n /**\n * Get string representation of buffer.\n * @return {string} Buffer as a string\n */\n BaseBuffer.prototype.toHex = function () {\n var out = '';\n for (var i = 0; i < this.length; i++) {\n var hexByte = this.getUInt8(i).toString(16);\n if (hexByte.length === 1) {\n hexByte = '0' + hexByte;\n }\n out += hexByte;\n if (i !== this.length - 1) {\n out += ' ';\n }\n }\n return out;\n };\n return BaseBuffer;\n}());\nexports.default = BaseBuffer;\n/**\n * Represents a view as slice of another buffer.\n * @access private\n */\nvar SliceBuffer = /** @class */ (function (_super) {\n __extends(SliceBuffer, _super);\n function SliceBuffer(start, length, inner) {\n var _this = _super.call(this, length) || this;\n _this._start = start;\n _this._inner = inner;\n return _this;\n }\n SliceBuffer.prototype.putUInt8 = function (position, val) {\n this._inner.putUInt8(this._start + position, val);\n };\n SliceBuffer.prototype.getUInt8 = function (position) {\n return this._inner.getUInt8(this._start + position);\n };\n SliceBuffer.prototype.putInt8 = function (position, val) {\n this._inner.putInt8(this._start + position, val);\n };\n SliceBuffer.prototype.putFloat64 = function (position, val) {\n this._inner.putFloat64(this._start + position, val);\n };\n SliceBuffer.prototype.getInt8 = function (position) {\n return this._inner.getInt8(this._start + position);\n };\n SliceBuffer.prototype.getFloat64 = function (position) {\n return this._inner.getFloat64(this._start + position);\n };\n return SliceBuffer;\n}(BaseBuffer));\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BaseBuffer = void 0;\nvar base_buf_1 = __importDefault(require(\"./base-buf\"));\nexports.BaseBuffer = base_buf_1.default;\nexports.default = base_buf_1.default;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_buf_1 = __importDefault(require(\"../channel-buf\"));\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar _a = neo4j_driver_core_1.internal.util, ENCRYPTION_OFF = _a.ENCRYPTION_OFF, ENCRYPTION_ON = _a.ENCRYPTION_ON;\n// Just to be sure that these values are with us even after WebSocket is injected\n// for tests.\nvar WS_CONNECTING = 0;\nvar WS_OPEN = 1;\nvar WS_CLOSING = 2;\nvar WS_CLOSED = 3;\n/**\n * Create a new WebSocketChannel to be used in web browsers.\n * @access private\n */\nvar WebSocketChannel = /** @class */ (function () {\n /**\n * Create new instance\n * @param {ChannelConfig} config - configuration for this channel.\n * @param {function(): string} protocolSupplier - function that detects protocol of the web page. Should only be used in tests.\n */\n function WebSocketChannel(config, protocolSupplier, socketFactory) {\n if (protocolSupplier === void 0) { protocolSupplier = detectWebPageProtocol; }\n if (socketFactory === void 0) { socketFactory = function (url) { return new WebSocket(url); }; }\n this._open = true;\n this._pending = [];\n this._error = null;\n this._handleConnectionError = this._handleConnectionError.bind(this);\n this._config = config;\n var _a = determineWebSocketScheme(config, protocolSupplier), scheme = _a.scheme, error = _a.error;\n if (error) {\n this._error = error;\n return;\n }\n this._ws = createWebSocket(scheme, config.address, socketFactory);\n this._ws.binaryType = 'arraybuffer';\n var self = this;\n // All connection errors are not sent to the error handler\n // we must also check for dirty close calls\n this._ws.onclose = function (e) {\n if (e && !e.wasClean) {\n self._handleConnectionError();\n }\n self._open = false;\n };\n this._ws.onopen = function () {\n // Connected! Cancel the connection timeout\n self._clearConnectionTimeout();\n // Drain all pending messages\n var pending = self._pending;\n self._pending = null;\n for (var i = 0; i < pending.length; i++) {\n self.write(pending[i]);\n }\n };\n this._ws.onmessage = function (event) {\n if (self.onmessage) {\n var b = new channel_buf_1.default(event.data);\n self.onmessage(b);\n }\n };\n this._ws.onerror = this._handleConnectionError;\n this._connectionTimeoutFired = false;\n this._connectionTimeoutId = this._setupConnectionTimeout();\n }\n WebSocketChannel.prototype._handleConnectionError = function () {\n if (this._connectionTimeoutFired) {\n // timeout fired - not connected within configured time\n this._error = (0, neo4j_driver_core_1.newError)(\"Failed to establish connection in \" + this._config.connectionTimeout + \"ms\", this._config.connectionErrorCode);\n if (this.onerror) {\n this.onerror(this._error);\n }\n return;\n }\n // onerror triggers on websocket close as well.. don't get me started.\n if (this._open) {\n // http://stackoverflow.com/questions/25779831/how-to-catch-websocket-connection-to-ws-xxxnn-failed-connection-closed-be\n this._error = (0, neo4j_driver_core_1.newError)('WebSocket connection failure. Due to security ' +\n 'constraints in your web browser, the reason for the failure is not available ' +\n 'to this Neo4j Driver. Please use your browsers development console to determine ' +\n 'the root cause of the failure. Common reasons include the database being ' +\n 'unavailable, using the wrong connection URL or temporary network problems. ' +\n 'If you have enabled encryption, ensure your browser is configured to trust the ' +\n 'certificate Neo4j is configured to use. WebSocket `readyState` is: ' +\n this._ws.readyState, this._config.connectionErrorCode);\n if (this.onerror) {\n this.onerror(this._error);\n }\n }\n };\n /**\n * Write the passed in buffer to connection\n * @param {ChannelBuffer} buffer - Buffer to write\n */\n WebSocketChannel.prototype.write = function (buffer) {\n // If there is a pending queue, push this on that queue. This means\n // we are not yet connected, so we queue things locally.\n if (this._pending !== null) {\n this._pending.push(buffer);\n }\n else if (buffer instanceof channel_buf_1.default) {\n try {\n this._ws.send(buffer._buffer);\n }\n catch (error) {\n if (this._ws.readyState !== WS_OPEN) {\n // Websocket has been closed\n this._handleConnectionError();\n }\n else {\n // Some other error occured\n throw error;\n }\n }\n }\n else {\n throw (0, neo4j_driver_core_1.newError)(\"Don't know how to send buffer: \" + buffer);\n }\n };\n /**\n * Close the connection\n * @returns {Promise} A promise that will be resolved after channel is closed\n */\n WebSocketChannel.prototype.close = function () {\n var _this = this;\n return new Promise(function (resolve, reject) {\n if (_this._ws && _this._ws.readyState !== WS_CLOSED) {\n _this._open = false;\n _this._clearConnectionTimeout();\n _this._ws.onclose = function () { return resolve(); };\n _this._ws.close();\n }\n else {\n resolve();\n }\n });\n };\n /**\n * Setup the receive timeout for the channel.\n *\n * Not supported for the browser channel.\n *\n * @param {number} receiveTimeout The amount of time the channel will keep without receive any data before timeout (ms)\n * @returns {void}\n */\n WebSocketChannel.prototype.setupReceiveTimeout = function (receiveTimeout) { };\n /**\n * Stops the receive timeout for the channel.\n */\n WebSocketChannel.prototype.stopReceiveTimeout = function () {\n };\n /**\n * Start the receive timeout for the channel.\n */\n WebSocketChannel.prototype.startReceiveTimeout = function () {\n };\n /**\n * Set connection timeout on the given WebSocket, if configured.\n * @return {number} the timeout id or null.\n * @private\n */\n WebSocketChannel.prototype._setupConnectionTimeout = function () {\n var _this = this;\n var timeout = this._config.connectionTimeout;\n if (timeout) {\n var webSocket_1 = this._ws;\n return setTimeout(function () {\n if (webSocket_1.readyState !== WS_OPEN) {\n _this._connectionTimeoutFired = true;\n webSocket_1.close();\n }\n }, timeout);\n }\n return null;\n };\n /**\n * Remove active connection timeout, if any.\n * @private\n */\n WebSocketChannel.prototype._clearConnectionTimeout = function () {\n var timeoutId = this._connectionTimeoutId;\n if (timeoutId || timeoutId === 0) {\n this._connectionTimeoutFired = false;\n this._connectionTimeoutId = null;\n clearTimeout(timeoutId);\n }\n };\n return WebSocketChannel;\n}());\nexports.default = WebSocketChannel;\nfunction createWebSocket(scheme, address, socketFactory) {\n var url = scheme + '://' + address.asHostPort();\n try {\n return socketFactory(url);\n }\n catch (error) {\n if (isIPv6AddressIssueOnWindows(error, address)) {\n // WebSocket in IE and Edge browsers on Windows do not support regular IPv6 address syntax because they contain ':'.\n // It's an invalid character for UNC (https://en.wikipedia.org/wiki/IPv6_address#Literal_IPv6_addresses_in_UNC_path_names)\n // and Windows requires IPv6 to be changes in the following way:\n // 1) replace all ':' with '-'\n // 2) replace '%' with 's' for link-local address\n // 3) append '.ipv6-literal.net' suffix\n // only then resulting string can be considered a valid IPv6 address. Yes, this is extremely weird!\n // For more details see:\n // https://social.msdn.microsoft.com/Forums/ie/en-US/06cca73b-63c2-4bf9-899b-b229c50449ff/whether-ie10-websocket-support-ipv6?forum=iewebdevelopment\n // https://www.itdojo.com/ipv6-addresses-and-unc-path-names-overcoming-illegal/\n // Creation of WebSocket with unconverted address results in SyntaxError without message or stacktrace.\n // That is why here we \"catch\" SyntaxError and rewrite IPv6 address if needed.\n var windowsFriendlyUrl = asWindowsFriendlyIPv6Address(scheme, address);\n return socketFactory(windowsFriendlyUrl);\n }\n else {\n throw error;\n }\n }\n}\nfunction isIPv6AddressIssueOnWindows(error, address) {\n return error.name === 'SyntaxError' && isIPv6Address(address.asHostPort());\n}\nfunction isIPv6Address(hostAndPort) {\n return hostAndPort.charAt(0) === '[' && hostAndPort.indexOf(']') !== -1;\n}\nfunction asWindowsFriendlyIPv6Address(scheme, address) {\n // replace all ':' with '-'\n var hostWithoutColons = address.host().replace(new RegExp(':', 'g'), '-');\n // replace '%' with 's' for link-local IPv6 address like 'fe80::1%lo0'\n var hostWithoutPercent = hostWithoutColons.replace('%', 's');\n // append magic '.ipv6-literal.net' suffix\n var ipv6Host = hostWithoutPercent + '.ipv6-literal.net';\n return scheme + \"://\" + ipv6Host + \":\" + address.port();\n}\n/**\n * @param {ChannelConfig} config - configuration for the channel.\n * @param {function(): string} protocolSupplier - function that detects protocol of the web page.\n * @return {{scheme: string|null, error: Neo4jError|null}} object containing either scheme or error.\n */\nfunction determineWebSocketScheme(config, protocolSupplier) {\n var encryptionOn = isEncryptionExplicitlyTurnedOn(config);\n var encryptionOff = isEncryptionExplicitlyTurnedOff(config);\n var trust = config.trust;\n var secureProtocol = isProtocolSecure(protocolSupplier);\n verifyEncryptionSettings(encryptionOn, encryptionOff, secureProtocol);\n if (encryptionOff) {\n // encryption explicitly turned off in the config\n return { scheme: 'ws', error: null };\n }\n if (secureProtocol) {\n // driver is used in a secure https web page, use 'wss'\n return { scheme: 'wss', error: null };\n }\n if (encryptionOn) {\n // encryption explicitly requested in the config\n if (!trust || trust === 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES') {\n // trust strategy not specified or the only supported strategy is specified\n return { scheme: 'wss', error: null };\n }\n else {\n var error = (0, neo4j_driver_core_1.newError)('The browser version of this driver only supports one trust ' +\n \"strategy, 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'. \" +\n trust +\n ' is not supported. Please ' +\n 'either use TRUST_SYSTEM_CA_SIGNED_CERTIFICATES or disable encryption by setting ' +\n '`encrypted:\"' +\n ENCRYPTION_OFF +\n '\"` in the driver configuration.');\n return { scheme: null, error: error };\n }\n }\n // default to unencrypted web socket\n return { scheme: 'ws', error: null };\n}\n/**\n * @param {ChannelConfig} config - configuration for the channel.\n * @return {boolean} `true` if encryption enabled in the config, `false` otherwise.\n */\nfunction isEncryptionExplicitlyTurnedOn(config) {\n return config.encrypted === true || config.encrypted === ENCRYPTION_ON;\n}\n/**\n * @param {ChannelConfig} config - configuration for the channel.\n * @return {boolean} `true` if encryption disabled in the config, `false` otherwise.\n */\nfunction isEncryptionExplicitlyTurnedOff(config) {\n return config.encrypted === false || config.encrypted === ENCRYPTION_OFF;\n}\n/**\n * @param {function(): string} protocolSupplier - function that detects protocol of the web page.\n * @return {boolean} `true` if protocol returned by the given function is secure, `false` otherwise.\n */\nfunction isProtocolSecure(protocolSupplier) {\n var protocol = typeof protocolSupplier === 'function' ? protocolSupplier() : '';\n return protocol && protocol.toLowerCase().indexOf('https') >= 0;\n}\nfunction verifyEncryptionSettings(encryptionOn, encryptionOff, secureProtocol) {\n if (secureProtocol === null) {\n // do nothing sice the protocol could not be identified\n }\n else if (encryptionOn && !secureProtocol) {\n // encryption explicitly turned on for a driver used on a HTTP web page\n console.warn('Neo4j driver is configured to use secure WebSocket on a HTTP web page. ' +\n 'WebSockets might not work in a mixed content environment. ' +\n 'Please consider configuring driver to not use encryption.');\n }\n else if (encryptionOff && secureProtocol) {\n // encryption explicitly turned off for a driver used on a HTTPS web page\n console.warn('Neo4j driver is configured to use insecure WebSocket on a HTTPS web page. ' +\n 'WebSockets might not work in a mixed content environment. ' +\n 'Please consider configuring driver to use encryption.');\n }\n}\nfunction detectWebPageProtocol() {\n return typeof window !== 'undefined' && window.location\n ? window.location.protocol\n : null;\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar BaseHostNameResolver = neo4j_driver_core_1.internal.resolver.BaseHostNameResolver;\nvar BrowserHostNameResolver = /** @class */ (function (_super) {\n __extends(BrowserHostNameResolver, _super);\n function BrowserHostNameResolver() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n BrowserHostNameResolver.prototype.resolve = function (address) {\n return this._resolveToItself(address);\n };\n return BrowserHostNameResolver;\n}(BaseHostNameResolver));\nexports.default = BrowserHostNameResolver;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.HostNameResolver = exports.Channel = void 0;\nvar browser_channel_1 = __importDefault(require(\"./browser-channel\"));\nvar browser_host_name_resolver_1 = __importDefault(require(\"./browser-host-name-resolver\"));\n/*\n\nThis module exports a set of components to be used in browser environment.\nThey are not compatible with NodeJS environment.\nAll files import/require APIs from `node/index.js` by default.\nSuch imports are replaced at build time with `browser/index.js` when building a browser bundle.\n\nNOTE: exports in this module should have exactly the same names/structure as exports in `node/index.js`.\n\n */\nexports.Channel = browser_channel_1.default;\nexports.HostNameResolver = browser_host_name_resolver_1.default;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.alloc = void 0;\nvar buffer_1 = __importDefault(require(\"buffer\"));\nvar buf_1 = __importDefault(require(\"../buf\"));\nvar ChannelBuffer = /** @class */ (function (_super) {\n __extends(ChannelBuffer, _super);\n function ChannelBuffer(arg) {\n var _this = this;\n var buffer = newChannelJSBuffer(arg);\n _this = _super.call(this, buffer.length) || this;\n _this._buffer = buffer;\n return _this;\n }\n ChannelBuffer.prototype.getUInt8 = function (position) {\n return this._buffer.readUInt8(position);\n };\n ChannelBuffer.prototype.getInt8 = function (position) {\n return this._buffer.readInt8(position);\n };\n ChannelBuffer.prototype.getFloat64 = function (position) {\n return this._buffer.readDoubleBE(position);\n };\n ChannelBuffer.prototype.putUInt8 = function (position, val) {\n this._buffer.writeUInt8(val, position);\n };\n ChannelBuffer.prototype.putInt8 = function (position, val) {\n this._buffer.writeInt8(val, position);\n };\n ChannelBuffer.prototype.putFloat64 = function (position, val) {\n this._buffer.writeDoubleBE(val, position);\n };\n ChannelBuffer.prototype.putBytes = function (position, val) {\n if (val instanceof ChannelBuffer) {\n var bytesToCopy = Math.min(val.length - val.position, this.length - position);\n val._buffer.copy(this._buffer, position, val.position, val.position + bytesToCopy);\n val.position += bytesToCopy;\n }\n else {\n _super.prototype.putBytes.call(this, position, val);\n }\n };\n ChannelBuffer.prototype.getSlice = function (start, length) {\n return new ChannelBuffer(this._buffer.slice(start, start + length));\n };\n return ChannelBuffer;\n}(buf_1.default));\nexports.default = ChannelBuffer;\n/**\n * Allocate a buffer\n *\n * @param {number} size The buffer sizzer\n * @returns {BaseBuffer} The buffer\n */\nfunction alloc(size) {\n return new ChannelBuffer(size);\n}\nexports.alloc = alloc;\nfunction newChannelJSBuffer(arg) {\n if (arg instanceof buffer_1.default.Buffer) {\n return arg;\n }\n else if (typeof arg === 'number' &&\n typeof buffer_1.default.Buffer.alloc === 'function') {\n // use static factory function present in newer NodeJS versions to allocate new buffer with specified size\n return buffer_1.default.Buffer.alloc(arg);\n }\n else {\n // fallback to the old, potentially deprecated constructor\n // eslint-disable-next-line node/no-deprecated-api\n return new buffer_1.default.Buffer(arg);\n }\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar _a = neo4j_driver_core_1.internal.util, ENCRYPTION_OFF = _a.ENCRYPTION_OFF, ENCRYPTION_ON = _a.ENCRYPTION_ON;\nvar SERVICE_UNAVAILABLE = neo4j_driver_core_1.error.SERVICE_UNAVAILABLE;\nvar DEFAULT_CONNECTION_TIMEOUT_MILLIS = 30000; // 30 seconds by default\nvar ALLOWED_VALUES_ENCRYPTED = [\n null,\n undefined,\n true,\n false,\n ENCRYPTION_ON,\n ENCRYPTION_OFF\n];\nvar ALLOWED_VALUES_TRUST = [\n null,\n undefined,\n 'TRUST_ALL_CERTIFICATES',\n 'TRUST_CUSTOM_CA_SIGNED_CERTIFICATES',\n 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'\n];\nvar ChannelConfig = /** @class */ (function () {\n /**\n * @constructor\n * @param {ServerAddress} address the address for the channel to connect to.\n * @param {Object} driverConfig the driver config provided by the user when driver is created.\n * @param {string} connectionErrorCode the default error code to use on connection errors.\n */\n function ChannelConfig(address, driverConfig, connectionErrorCode) {\n this.address = address;\n this.encrypted = extractEncrypted(driverConfig);\n this.trust = extractTrust(driverConfig);\n this.trustedCertificates = extractTrustedCertificates(driverConfig);\n this.knownHostsPath = extractKnownHostsPath(driverConfig);\n this.connectionErrorCode = connectionErrorCode || SERVICE_UNAVAILABLE;\n this.connectionTimeout = extractConnectionTimeout(driverConfig);\n }\n return ChannelConfig;\n}());\nexports.default = ChannelConfig;\nfunction extractEncrypted(driverConfig) {\n var value = driverConfig.encrypted;\n if (ALLOWED_VALUES_ENCRYPTED.indexOf(value) === -1) {\n throw (0, neo4j_driver_core_1.newError)(\"Illegal value of the encrypted setting \" + value + \". Expected one of \" + ALLOWED_VALUES_ENCRYPTED);\n }\n return value;\n}\nfunction extractTrust(driverConfig) {\n var value = driverConfig.trust;\n if (ALLOWED_VALUES_TRUST.indexOf(value) === -1) {\n throw (0, neo4j_driver_core_1.newError)(\"Illegal value of the trust setting \" + value + \". Expected one of \" + ALLOWED_VALUES_TRUST);\n }\n return value;\n}\nfunction extractTrustedCertificates(driverConfig) {\n return driverConfig.trustedCertificates || [];\n}\nfunction extractKnownHostsPath(driverConfig) {\n return driverConfig.knownHosts || null;\n}\nfunction extractConnectionTimeout(driverConfig) {\n var configuredTimeout = parseInt(driverConfig.connectionTimeout, 10);\n if (configuredTimeout === 0) {\n // timeout explicitly configured to 0\n return null;\n }\n else if (configuredTimeout && configuredTimeout < 0) {\n // timeout explicitly configured to a negative value\n return null;\n }\n else if (!configuredTimeout) {\n // timeout not configured, use default value\n return DEFAULT_CONNECTION_TIMEOUT_MILLIS;\n }\n else {\n // timeout configured, use the provided value\n return configuredTimeout;\n }\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Dechunker = exports.Chunker = void 0;\nvar base_buf_1 = __importDefault(require(\"../buf/base-buf\"));\nvar channel_buf_1 = require(\"./channel-buf\");\nvar combined_buf_1 = __importDefault(require(\"./combined-buf\"));\nvar _CHUNK_HEADER_SIZE = 2;\nvar _MESSAGE_BOUNDARY = 0x00;\nvar _DEFAULT_BUFFER_SIZE = 1400; // http://stackoverflow.com/questions/2613734/maximum-packet-size-for-a-tcp-connection\n/**\n * Looks like a writable buffer, chunks output transparently into a channel below.\n * @access private\n */\nvar Chunker = /** @class */ (function (_super) {\n __extends(Chunker, _super);\n function Chunker(channel, bufferSize) {\n var _this = _super.call(this, 0) || this;\n _this._bufferSize = bufferSize || _DEFAULT_BUFFER_SIZE;\n _this._ch = channel;\n _this._buffer = (0, channel_buf_1.alloc)(_this._bufferSize);\n _this._currentChunkStart = 0;\n _this._chunkOpen = false;\n return _this;\n }\n Chunker.prototype.putUInt8 = function (position, val) {\n this._ensure(1);\n this._buffer.writeUInt8(val);\n };\n Chunker.prototype.putInt8 = function (position, val) {\n this._ensure(1);\n this._buffer.writeInt8(val);\n };\n Chunker.prototype.putFloat64 = function (position, val) {\n this._ensure(8);\n this._buffer.writeFloat64(val);\n };\n Chunker.prototype.putBytes = function (position, data) {\n // TODO: If data is larger than our chunk size or so, we're very likely better off just passing this buffer on\n // rather than doing the copy here TODO: *however* note that we need some way to find out when the data has been\n // written (and thus the buffer can be re-used) if we take that approach\n while (data.remaining() > 0) {\n // Ensure there is an open chunk, and that it has at least one byte of space left\n this._ensure(1);\n if (this._buffer.remaining() > data.remaining()) {\n this._buffer.writeBytes(data);\n }\n else {\n this._buffer.writeBytes(data.readSlice(this._buffer.remaining()));\n }\n }\n return this;\n };\n Chunker.prototype.flush = function () {\n if (this._buffer.position > 0) {\n this._closeChunkIfOpen();\n // Local copy and clear the buffer field. This ensures that the buffer is not re-released if the flush call fails\n var out = this._buffer;\n this._buffer = null;\n this._ch.write(out.getSlice(0, out.position));\n // Alloc a new output buffer. We assume we're using NodeJS's buffer pooling under the hood here!\n this._buffer = (0, channel_buf_1.alloc)(this._bufferSize);\n this._chunkOpen = false;\n }\n return this;\n };\n /**\n * Bolt messages are encoded in one or more chunks, and the boundary between two messages\n * is encoded as a 0-length chunk, `00 00`. This inserts such a message boundary, closing\n * any currently open chunk as needed\n */\n Chunker.prototype.messageBoundary = function () {\n this._closeChunkIfOpen();\n if (this._buffer.remaining() < _CHUNK_HEADER_SIZE) {\n this.flush();\n }\n // Write message boundary\n this._buffer.writeInt16(_MESSAGE_BOUNDARY);\n };\n /** Ensure at least the given size is available for writing */\n Chunker.prototype._ensure = function (size) {\n var toWriteSize = this._chunkOpen ? size : size + _CHUNK_HEADER_SIZE;\n if (this._buffer.remaining() < toWriteSize) {\n this.flush();\n }\n if (!this._chunkOpen) {\n this._currentChunkStart = this._buffer.position;\n this._buffer.position = this._buffer.position + _CHUNK_HEADER_SIZE;\n this._chunkOpen = true;\n }\n };\n Chunker.prototype._closeChunkIfOpen = function () {\n if (this._chunkOpen) {\n var chunkSize = this._buffer.position - (this._currentChunkStart + _CHUNK_HEADER_SIZE);\n this._buffer.putUInt16(this._currentChunkStart, chunkSize);\n this._chunkOpen = false;\n }\n };\n return Chunker;\n}(base_buf_1.default));\nexports.Chunker = Chunker;\n/**\n * Combines chunks until a complete message is gathered up, and then forwards that\n * message to an 'onmessage' listener.\n * @access private\n */\nvar Dechunker = /** @class */ (function () {\n function Dechunker() {\n this._currentMessage = [];\n this._partialChunkHeader = 0;\n this._state = this.AWAITING_CHUNK;\n }\n Dechunker.prototype.AWAITING_CHUNK = function (buf) {\n if (buf.remaining() >= 2) {\n // Whole header available, read that\n return this._onHeader(buf.readUInt16());\n }\n else {\n // Only one byte available, read that and wait for the second byte\n this._partialChunkHeader = buf.readUInt8() << 8;\n return this.IN_HEADER;\n }\n };\n Dechunker.prototype.IN_HEADER = function (buf) {\n // First header byte read, now we read the next one\n return this._onHeader((this._partialChunkHeader | buf.readUInt8()) & 0xffff);\n };\n Dechunker.prototype.IN_CHUNK = function (buf) {\n if (this._chunkSize <= buf.remaining()) {\n // Current packet is larger than current chunk, or same size:\n this._currentMessage.push(buf.readSlice(this._chunkSize));\n return this.AWAITING_CHUNK;\n }\n else {\n // Current packet is smaller than the chunk we're reading, split the current chunk itself up\n this._chunkSize -= buf.remaining();\n this._currentMessage.push(buf.readSlice(buf.remaining()));\n return this.IN_CHUNK;\n }\n };\n Dechunker.prototype.CLOSED = function (buf) {\n // no-op\n };\n /** Called when a complete chunk header has been received */\n Dechunker.prototype._onHeader = function (header) {\n if (header === 0) {\n // Message boundary\n var message = void 0;\n switch (this._currentMessage.length) {\n case 0:\n // Keep alive chunk, sent by server to keep network alive.\n return this.AWAITING_CHUNK;\n case 1:\n // All data in one chunk, this signals the end of that chunk.\n message = this._currentMessage[0];\n break;\n default:\n // A large chunk of data received, this signals that the last chunk has been received.\n message = new combined_buf_1.default(this._currentMessage);\n break;\n }\n this._currentMessage = [];\n this.onmessage(message);\n return this.AWAITING_CHUNK;\n }\n else {\n this._chunkSize = header;\n return this.IN_CHUNK;\n }\n };\n Dechunker.prototype.write = function (buf) {\n while (buf.hasRemaining()) {\n this._state = this._state(buf);\n }\n };\n return Dechunker;\n}());\nexports.Dechunker = Dechunker;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar buf_1 = require(\"../buf\");\nvar channel_buf_1 = require(\"./channel-buf\");\n/**\n * Buffer that combines multiple buffers, exposing them as one single buffer.\n */\nvar CombinedBuffer = /** @class */ (function (_super) {\n __extends(CombinedBuffer, _super);\n function CombinedBuffer(buffers) {\n var _this = this;\n var length = 0;\n for (var i = 0; i < buffers.length; i++) {\n length += buffers[i].length;\n }\n _this = _super.call(this, length) || this;\n _this._buffers = buffers;\n return _this;\n }\n CombinedBuffer.prototype.getUInt8 = function (position) {\n // Surely there's a faster way to do this.. some sort of lookup table thing?\n for (var i = 0; i < this._buffers.length; i++) {\n var buffer = this._buffers[i];\n // If the position is not in the current buffer, skip the current buffer\n if (position >= buffer.length) {\n position -= buffer.length;\n }\n else {\n return buffer.getUInt8(position);\n }\n }\n };\n CombinedBuffer.prototype.getInt8 = function (position) {\n // Surely there's a faster way to do this.. some sort of lookup table thing?\n for (var i = 0; i < this._buffers.length; i++) {\n var buffer = this._buffers[i];\n // If the position is not in the current buffer, skip the current buffer\n if (position >= buffer.length) {\n position -= buffer.length;\n }\n else {\n return buffer.getInt8(position);\n }\n }\n };\n CombinedBuffer.prototype.getFloat64 = function (position) {\n // At some point, a more efficient impl. For now, we copy the 8 bytes\n // we want to read and depend on the platform impl of IEEE 754.\n var b = (0, channel_buf_1.alloc)(8);\n for (var i = 0; i < 8; i++) {\n b.putUInt8(i, this.getUInt8(position + i));\n }\n return b.getFloat64(0);\n };\n return CombinedBuffer;\n}(buf_1.BaseBuffer));\nexports.default = CombinedBuffer;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.utf8 = exports.alloc = exports.ChannelConfig = void 0;\n__exportStar(require(\"./node\"), exports);\n__exportStar(require(\"./chunking\"), exports);\nvar channel_config_1 = require(\"./channel-config\");\nObject.defineProperty(exports, \"ChannelConfig\", { enumerable: true, get: function () { return __importDefault(channel_config_1).default; } });\nvar channel_buf_1 = require(\"./channel-buf\");\nObject.defineProperty(exports, \"alloc\", { enumerable: true, get: function () { return channel_buf_1.alloc; } });\nvar utf8_1 = require(\"./utf8\");\nObject.defineProperty(exports, \"utf8\", { enumerable: true, get: function () { return __importDefault(utf8_1).default; } });\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_buf_1 = __importDefault(require(\"./channel-buf\"));\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar buffer_1 = __importDefault(require(\"buffer\"));\nvar string_decoder_1 = require(\"string_decoder\");\nvar decoder = new string_decoder_1.StringDecoder('utf8');\nfunction encode(str) {\n return new channel_buf_1.default(newBuffer(str));\n}\nfunction decode(buffer, length) {\n if (Object.prototype.hasOwnProperty.call(buffer, '_buffer')) {\n return decodeChannelBuffer(buffer, length);\n }\n else if (Object.prototype.hasOwnProperty.call(buffer, '_buffers')) {\n return decodeCombinedBuffer(buffer, length);\n }\n else {\n throw (0, neo4j_driver_core_1.newError)(\"Don't know how to decode strings from '\" + buffer + \"'\");\n }\n}\nfunction decodeChannelBuffer(buffer, length) {\n var start = buffer.position;\n var end = start + length;\n buffer.position = Math.min(end, buffer.length);\n return buffer._buffer.toString('utf8', start, end);\n}\nfunction decodeCombinedBuffer(buffer, length) {\n return streamDecodeCombinedBuffer(buffer, length, function (partBuffer) { return decoder.write(partBuffer._buffer); }, function () { return decoder.end(); });\n}\nfunction streamDecodeCombinedBuffer(combinedBuffers, length, decodeFn, endFn) {\n var remainingBytesToRead = length;\n var position = combinedBuffers.position;\n combinedBuffers._updatePos(Math.min(length, combinedBuffers.length - position));\n // Reduce CombinedBuffers to a decoded string\n var out = combinedBuffers._buffers.reduce(function (last, partBuffer) {\n if (remainingBytesToRead <= 0) {\n return last;\n }\n else if (position >= partBuffer.length) {\n position -= partBuffer.length;\n return '';\n }\n else {\n partBuffer._updatePos(position - partBuffer.position);\n var bytesToRead = Math.min(partBuffer.length - position, remainingBytesToRead);\n var lastSlice = partBuffer.readSlice(bytesToRead);\n partBuffer._updatePos(bytesToRead);\n remainingBytesToRead = Math.max(remainingBytesToRead - lastSlice.length, 0);\n position = 0;\n return last + decodeFn(lastSlice);\n }\n }, '');\n return out + endFn();\n}\nfunction newBuffer(str) {\n // use static factory function present in newer NodeJS versions to create a buffer containing the given string\n // or fallback to the old, potentially deprecated constructor\n if (typeof buffer_1.default.Buffer.from === 'function') {\n return buffer_1.default.Buffer.from(str, 'utf8');\n }\n else {\n // eslint-disable-next-line node/no-deprecated-api\n return new buffer_1.default.Buffer(str, 'utf8');\n }\n}\nexports.default = {\n encode: encode,\n decode: decode\n};\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar connection_provider_pooled_1 = __importDefault(require(\"./connection-provider-pooled\"));\nvar connection_1 = require(\"../connection\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar _a = neo4j_driver_core_1.internal.constants, BOLT_PROTOCOL_V3 = _a.BOLT_PROTOCOL_V3, BOLT_PROTOCOL_V4_0 = _a.BOLT_PROTOCOL_V4_0, BOLT_PROTOCOL_V4_4 = _a.BOLT_PROTOCOL_V4_4;\nvar SERVICE_UNAVAILABLE = neo4j_driver_core_1.error.SERVICE_UNAVAILABLE, newError = neo4j_driver_core_1.error.newError;\nvar DirectConnectionProvider = /** @class */ (function (_super) {\n __extends(DirectConnectionProvider, _super);\n function DirectConnectionProvider(_a) {\n var id = _a.id, config = _a.config, log = _a.log, address = _a.address, userAgent = _a.userAgent, authToken = _a.authToken;\n var _this = _super.call(this, { id: id, config: config, log: log, userAgent: userAgent, authToken: authToken }) || this;\n _this._address = address;\n return _this;\n }\n /**\n * See {@link ConnectionProvider} for more information about this method and\n * its arguments.\n */\n DirectConnectionProvider.prototype.acquireConnection = function (_a) {\n var _this = this;\n var _b = _a === void 0 ? {} : _a, accessMode = _b.accessMode, database = _b.database, bookmarks = _b.bookmarks;\n var databaseSpecificErrorHandler = connection_1.ConnectionErrorHandler.create({\n errorCode: SERVICE_UNAVAILABLE,\n handleAuthorizationExpired: function (error, address) {\n return _this._handleAuthorizationExpired(error, address, database);\n }\n });\n return this._connectionPool\n .acquire(this._address)\n .then(function (connection) {\n return new connection_1.DelegateConnection(connection, databaseSpecificErrorHandler);\n });\n };\n DirectConnectionProvider.prototype._handleAuthorizationExpired = function (error, address, database) {\n this._log.warn(\"Direct driver \" + this._id + \" will close connection to \" + address + \" for database '\" + database + \"' because of an error \" + error.code + \" '\" + error.message + \"'\");\n this._connectionPool.purge(address).catch(function () { });\n return error;\n };\n DirectConnectionProvider.prototype._hasProtocolVersion = function (versionPredicate) {\n return __awaiter(this, void 0, void 0, function () {\n var connection, protocolVersion;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, (0, connection_1.createChannelConnection)(this._address, this._config, this._createConnectionErrorHandler(), this._log)];\n case 1:\n connection = _a.sent();\n protocolVersion = connection.protocol()\n ? connection.protocol().version\n : null;\n return [4 /*yield*/, connection.close()];\n case 2:\n _a.sent();\n if (protocolVersion) {\n return [2 /*return*/, versionPredicate(protocolVersion)];\n }\n return [2 /*return*/, false];\n }\n });\n });\n };\n DirectConnectionProvider.prototype.supportsMultiDb = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._hasProtocolVersion(function (version) { return version >= BOLT_PROTOCOL_V4_0; })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n DirectConnectionProvider.prototype.supportsTransactionConfig = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._hasProtocolVersion(function (version) { return version >= BOLT_PROTOCOL_V3; })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n DirectConnectionProvider.prototype.supportsUserImpersonation = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._hasProtocolVersion(function (version) { return version >= BOLT_PROTOCOL_V4_4; })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n return DirectConnectionProvider;\n}(connection_provider_pooled_1.default));\nexports.default = DirectConnectionProvider;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar connection_1 = require(\"../connection\");\nvar pool_1 = __importStar(require(\"../pool\"));\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar SERVICE_UNAVAILABLE = neo4j_driver_core_1.error.SERVICE_UNAVAILABLE;\nvar PooledConnectionProvider = /** @class */ (function (_super) {\n __extends(PooledConnectionProvider, _super);\n function PooledConnectionProvider(_a, createChannelConnectionHook) {\n var id = _a.id, config = _a.config, log = _a.log, userAgent = _a.userAgent, authToken = _a.authToken;\n if (createChannelConnectionHook === void 0) { createChannelConnectionHook = null; }\n var _this = _super.call(this) || this;\n _this._id = id;\n _this._config = config;\n _this._log = log;\n _this._userAgent = userAgent;\n _this._authToken = authToken;\n _this._createChannelConnection =\n createChannelConnectionHook ||\n (function (address) {\n return (0, connection_1.createChannelConnection)(address, _this._config, _this._createConnectionErrorHandler(), _this._log);\n });\n _this._connectionPool = new pool_1.default({\n create: _this._createConnection.bind(_this),\n destroy: _this._destroyConnection.bind(_this),\n validate: _this._validateConnection.bind(_this),\n installIdleObserver: PooledConnectionProvider._installIdleObserverOnConnection.bind(_this),\n removeIdleObserver: PooledConnectionProvider._removeIdleObserverOnConnection.bind(_this),\n config: pool_1.PoolConfig.fromDriverConfig(config),\n log: _this._log\n });\n _this._openConnections = {};\n return _this;\n }\n PooledConnectionProvider.prototype._createConnectionErrorHandler = function () {\n return new connection_1.ConnectionErrorHandler(SERVICE_UNAVAILABLE);\n };\n /**\n * Create a new connection and initialize it.\n * @return {Promise} promise resolved with a new connection or rejected when failed to connect.\n * @access private\n */\n PooledConnectionProvider.prototype._createConnection = function (address, release) {\n var _this = this;\n return this._createChannelConnection(address).then(function (connection) {\n connection._release = function () { return release(address, connection); };\n _this._openConnections[connection.id] = connection;\n return connection\n .connect(_this._userAgent, _this._authToken)\n .catch(function (error) {\n // let's destroy this connection\n _this._destroyConnection(connection);\n // propagate the error because connection failed to connect / initialize\n throw error;\n });\n });\n };\n /**\n * Check that a connection is usable\n * @return {boolean} true if the connection is open\n * @access private\n **/\n PooledConnectionProvider.prototype._validateConnection = function (conn) {\n if (!conn.isOpen()) {\n return false;\n }\n var maxConnectionLifetime = this._config.maxConnectionLifetime;\n var lifetime = Date.now() - conn.creationTimestamp;\n return lifetime <= maxConnectionLifetime;\n };\n /**\n * Dispose of a connection.\n * @return {Connection} the connection to dispose.\n * @access private\n */\n PooledConnectionProvider.prototype._destroyConnection = function (conn) {\n delete this._openConnections[conn.id];\n return conn.close();\n };\n PooledConnectionProvider.prototype.close = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: \n // purge all idle connections in the connection pool\n return [4 /*yield*/, this._connectionPool.close()\n // then close all connections driver has ever created\n // it is needed to close connections that are active right now and are acquired from the pool\n ];\n case 1:\n // purge all idle connections in the connection pool\n _a.sent();\n // then close all connections driver has ever created\n // it is needed to close connections that are active right now and are acquired from the pool\n return [4 /*yield*/, Promise.all(Object.values(this._openConnections).map(function (c) { return c.close(); }))];\n case 2:\n // then close all connections driver has ever created\n // it is needed to close connections that are active right now and are acquired from the pool\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n PooledConnectionProvider._installIdleObserverOnConnection = function (conn, observer) {\n conn._queueObserver(observer);\n };\n PooledConnectionProvider._removeIdleObserverOnConnection = function (conn) {\n conn._updateCurrentObserver();\n };\n return PooledConnectionProvider;\n}(neo4j_driver_core_1.ConnectionProvider));\nexports.default = PooledConnectionProvider;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar rediscovery_1 = __importStar(require(\"../rediscovery\"));\nvar channel_1 = require(\"../channel\");\nvar connection_provider_single_1 = __importDefault(require(\"./connection-provider-single\"));\nvar connection_provider_pooled_1 = __importDefault(require(\"./connection-provider-pooled\"));\nvar load_balancing_1 = require(\"../load-balancing\");\nvar connection_1 = require(\"../connection\");\nvar SERVICE_UNAVAILABLE = neo4j_driver_core_1.error.SERVICE_UNAVAILABLE, SESSION_EXPIRED = neo4j_driver_core_1.error.SESSION_EXPIRED;\nvar Bookmark = neo4j_driver_core_1.internal.bookmark.Bookmark, _a = neo4j_driver_core_1.internal.constants, READ = _a.ACCESS_MODE_READ, WRITE = _a.ACCESS_MODE_WRITE, BOLT_PROTOCOL_V3 = _a.BOLT_PROTOCOL_V3, BOLT_PROTOCOL_V4_0 = _a.BOLT_PROTOCOL_V4_0, BOLT_PROTOCOL_V4_4 = _a.BOLT_PROTOCOL_V4_4;\nvar UNAUTHORIZED_ERROR_CODE = 'Neo.ClientError.Security.Unauthorized';\nvar DATABASE_NOT_FOUND_ERROR_CODE = 'Neo.ClientError.Database.DatabaseNotFound';\nvar SYSTEM_DB_NAME = 'system';\nvar DEFAULT_DB_NAME = null;\nvar DEFAULT_ROUTING_TABLE_PURGE_DELAY = (0, neo4j_driver_core_1.int)(30000);\nvar RoutingConnectionProvider = /** @class */ (function (_super) {\n __extends(RoutingConnectionProvider, _super);\n function RoutingConnectionProvider(_a) {\n var id = _a.id, address = _a.address, routingContext = _a.routingContext, hostNameResolver = _a.hostNameResolver, config = _a.config, log = _a.log, userAgent = _a.userAgent, authToken = _a.authToken, routingTablePurgeDelay = _a.routingTablePurgeDelay;\n var _this = _super.call(this, { id: id, config: config, log: log, userAgent: userAgent, authToken: authToken }, function (address) {\n return (0, connection_1.createChannelConnection)(address, _this._config, _this._createConnectionErrorHandler(), _this._log, _this._routingContext);\n }) || this;\n _this._routingContext = __assign(__assign({}, routingContext), { address: address.toString() });\n _this._seedRouter = address;\n _this._rediscovery = new rediscovery_1.default(_this._routingContext);\n _this._loadBalancingStrategy = new load_balancing_1.LeastConnectedLoadBalancingStrategy(_this._connectionPool);\n _this._hostNameResolver = hostNameResolver;\n _this._dnsResolver = new channel_1.HostNameResolver();\n _this._log = log;\n _this._useSeedRouter = true;\n _this._routingTableRegistry = new RoutingTableRegistry(routingTablePurgeDelay\n ? (0, neo4j_driver_core_1.int)(routingTablePurgeDelay)\n : DEFAULT_ROUTING_TABLE_PURGE_DELAY);\n return _this;\n }\n RoutingConnectionProvider.prototype._createConnectionErrorHandler = function () {\n // connection errors mean SERVICE_UNAVAILABLE for direct driver but for routing driver they should only\n // result in SESSION_EXPIRED because there might still exist other servers capable of serving the request\n return new connection_1.ConnectionErrorHandler(SESSION_EXPIRED);\n };\n RoutingConnectionProvider.prototype._handleUnavailability = function (error, address, database) {\n this._log.warn(\"Routing driver \" + this._id + \" will forget \" + address + \" for database '\" + database + \"' because of an error \" + error.code + \" '\" + error.message + \"'\");\n this.forget(address, database || DEFAULT_DB_NAME);\n return error;\n };\n RoutingConnectionProvider.prototype._handleAuthorizationExpired = function (error, address, database) {\n this._log.warn(\"Routing driver \" + this._id + \" will close connections to \" + address + \" for database '\" + database + \"' because of an error \" + error.code + \" '\" + error.message + \"'\");\n this._connectionPool.purge(address).catch(function () { });\n return error;\n };\n RoutingConnectionProvider.prototype._handleWriteFailure = function (error, address, database) {\n this._log.warn(\"Routing driver \" + this._id + \" will forget writer \" + address + \" for database '\" + database + \"' because of an error \" + error.code + \" '\" + error.message + \"'\");\n this.forgetWriter(address, database || DEFAULT_DB_NAME);\n return (0, neo4j_driver_core_1.newError)('No longer possible to write to server at ' + address, SESSION_EXPIRED);\n };\n /**\n * See {@link ConnectionProvider} for more information about this method and\n * its arguments.\n */\n RoutingConnectionProvider.prototype.acquireConnection = function (_a) {\n var _b = _a === void 0 ? {} : _a, accessMode = _b.accessMode, database = _b.database, bookmarks = _b.bookmarks, impersonatedUser = _b.impersonatedUser, onDatabaseNameResolved = _b.onDatabaseNameResolved;\n return __awaiter(this, void 0, void 0, function () {\n var name, address, context, databaseSpecificErrorHandler, routingTable, connection, error_1, transformed;\n var _this = this;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0:\n context = { database: database || DEFAULT_DB_NAME };\n databaseSpecificErrorHandler = new connection_1.ConnectionErrorHandler(SESSION_EXPIRED, function (error, address) { return _this._handleUnavailability(error, address, context.database); }, function (error, address) { return _this._handleWriteFailure(error, address, context.database); }, function (error, address) {\n return _this._handleAuthorizationExpired(error, address, context.database);\n });\n return [4 /*yield*/, this._freshRoutingTable({\n accessMode: accessMode,\n database: context.database,\n bookmark: bookmarks,\n impersonatedUser: impersonatedUser,\n onDatabaseNameResolved: function (databaseName) {\n context.database = context.database || databaseName;\n if (onDatabaseNameResolved) {\n onDatabaseNameResolved(databaseName);\n }\n }\n })\n // select a target server based on specified access mode\n ];\n case 1:\n routingTable = _c.sent();\n // select a target server based on specified access mode\n if (accessMode === READ) {\n address = this._loadBalancingStrategy.selectReader(routingTable.readers);\n name = 'read';\n }\n else if (accessMode === WRITE) {\n address = this._loadBalancingStrategy.selectWriter(routingTable.writers);\n name = 'write';\n }\n else {\n throw (0, neo4j_driver_core_1.newError)('Illegal mode ' + accessMode);\n }\n // we couldn't select a target server\n if (!address) {\n throw (0, neo4j_driver_core_1.newError)(\"Failed to obtain connection towards \" + name + \" server. Known routing table is: \" + routingTable, SESSION_EXPIRED);\n }\n _c.label = 2;\n case 2:\n _c.trys.push([2, 4, , 5]);\n return [4 /*yield*/, this._acquireConnectionToServer(address, name, routingTable)];\n case 3:\n connection = _c.sent();\n return [2 /*return*/, new connection_1.DelegateConnection(connection, databaseSpecificErrorHandler)];\n case 4:\n error_1 = _c.sent();\n transformed = databaseSpecificErrorHandler.handleAndTransformError(error_1, address);\n throw transformed;\n case 5: return [2 /*return*/];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype._hasProtocolVersion = function (versionPredicate) {\n return __awaiter(this, void 0, void 0, function () {\n var addresses, lastError, i, connection, protocolVersion, error_2;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._resolveSeedRouter(this._seedRouter)];\n case 1:\n addresses = _a.sent();\n i = 0;\n _a.label = 2;\n case 2:\n if (!(i < addresses.length)) return [3 /*break*/, 8];\n _a.label = 3;\n case 3:\n _a.trys.push([3, 6, , 7]);\n return [4 /*yield*/, (0, connection_1.createChannelConnection)(addresses[i], this._config, this._createConnectionErrorHandler(), this._log)];\n case 4:\n connection = _a.sent();\n protocolVersion = connection.protocol()\n ? connection.protocol().version\n : null;\n return [4 /*yield*/, connection.close()];\n case 5:\n _a.sent();\n if (protocolVersion) {\n return [2 /*return*/, versionPredicate(protocolVersion)];\n }\n return [2 /*return*/, false];\n case 6:\n error_2 = _a.sent();\n lastError = error_2;\n return [3 /*break*/, 7];\n case 7:\n i++;\n return [3 /*break*/, 2];\n case 8:\n if (lastError) {\n throw lastError;\n }\n return [2 /*return*/, false];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype.supportsMultiDb = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._hasProtocolVersion(function (version) { return version >= BOLT_PROTOCOL_V4_0; })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype.supportsTransactionConfig = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._hasProtocolVersion(function (version) { return version >= BOLT_PROTOCOL_V3; })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype.supportsUserImpersonation = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._hasProtocolVersion(function (version) { return version >= BOLT_PROTOCOL_V4_4; })];\n case 1: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype.forget = function (address, database) {\n this._routingTableRegistry.apply(database, {\n applyWhenExists: function (routingTable) { return routingTable.forget(address); }\n });\n // We're firing and forgetting this operation explicitly and listening for any\n // errors to avoid unhandled promise rejection\n this._connectionPool.purge(address).catch(function () { });\n };\n RoutingConnectionProvider.prototype.forgetWriter = function (address, database) {\n this._routingTableRegistry.apply(database, {\n applyWhenExists: function (routingTable) { return routingTable.forgetWriter(address); }\n });\n };\n RoutingConnectionProvider.prototype._acquireConnectionToServer = function (address, serverName, routingTable) {\n return this._connectionPool.acquire(address);\n };\n RoutingConnectionProvider.prototype._freshRoutingTable = function (_a) {\n var _b = _a === void 0 ? {} : _a, accessMode = _b.accessMode, database = _b.database, bookmark = _b.bookmark, impersonatedUser = _b.impersonatedUser, onDatabaseNameResolved = _b.onDatabaseNameResolved;\n var currentRoutingTable = this._routingTableRegistry.get(database, function () { return new rediscovery_1.RoutingTable({ database: database }); });\n if (!currentRoutingTable.isStaleFor(accessMode)) {\n return currentRoutingTable;\n }\n this._log.info(\"Routing table is stale for database: \\\"\" + database + \"\\\" and access mode: \\\"\" + accessMode + \"\\\": \" + currentRoutingTable);\n return this._refreshRoutingTable(currentRoutingTable, bookmark, impersonatedUser, onDatabaseNameResolved);\n };\n RoutingConnectionProvider.prototype._refreshRoutingTable = function (currentRoutingTable, bookmark, impersonatedUser, onDatabaseNameResolved) {\n var knownRouters = currentRoutingTable.routers;\n if (this._useSeedRouter) {\n return this._fetchRoutingTableFromSeedRouterFallbackToKnownRouters(knownRouters, currentRoutingTable, bookmark, impersonatedUser, onDatabaseNameResolved);\n }\n return this._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter(knownRouters, currentRoutingTable, bookmark, impersonatedUser, onDatabaseNameResolved);\n };\n RoutingConnectionProvider.prototype._fetchRoutingTableFromSeedRouterFallbackToKnownRouters = function (knownRouters, currentRoutingTable, bookmark, impersonatedUser, onDatabaseNameResolved) {\n return __awaiter(this, void 0, void 0, function () {\n var seenRouters, newRoutingTable;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n seenRouters = [];\n return [4 /*yield*/, this._fetchRoutingTableUsingSeedRouter(seenRouters, this._seedRouter, currentRoutingTable, bookmark, impersonatedUser)];\n case 1:\n newRoutingTable = _a.sent();\n if (!newRoutingTable) return [3 /*break*/, 2];\n this._useSeedRouter = false;\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, this._fetchRoutingTableUsingKnownRouters(knownRouters, currentRoutingTable, bookmark, impersonatedUser)];\n case 3:\n // seed router did not return a valid routing table - try to use other known routers\n newRoutingTable = _a.sent();\n _a.label = 4;\n case 4: return [4 /*yield*/, this._applyRoutingTableIfPossible(currentRoutingTable, newRoutingTable, onDatabaseNameResolved)];\n case 5: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter = function (knownRouters, currentRoutingTable, bookmark, impersonatedUser, onDatabaseNameResolved) {\n return __awaiter(this, void 0, void 0, function () {\n var newRoutingTable;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._fetchRoutingTableUsingKnownRouters(knownRouters, currentRoutingTable, bookmark, impersonatedUser)];\n case 1:\n newRoutingTable = _a.sent();\n if (!!newRoutingTable) return [3 /*break*/, 3];\n return [4 /*yield*/, this._fetchRoutingTableUsingSeedRouter(knownRouters, this._seedRouter, currentRoutingTable, bookmark, impersonatedUser)];\n case 2:\n // none of the known routers returned a valid routing table - try to use seed router address for rediscovery\n newRoutingTable = _a.sent();\n _a.label = 3;\n case 3: return [4 /*yield*/, this._applyRoutingTableIfPossible(currentRoutingTable, newRoutingTable, onDatabaseNameResolved)];\n case 4: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype._fetchRoutingTableUsingKnownRouters = function (knownRouters, currentRoutingTable, bookmark, impersonatedUser) {\n return __awaiter(this, void 0, void 0, function () {\n var newRoutingTable, lastRouterIndex;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._fetchRoutingTable(knownRouters, currentRoutingTable, bookmark, impersonatedUser)];\n case 1:\n newRoutingTable = _a.sent();\n if (newRoutingTable) {\n // one of the known routers returned a valid routing table - use it\n return [2 /*return*/, newRoutingTable];\n }\n lastRouterIndex = knownRouters.length - 1;\n RoutingConnectionProvider._forgetRouter(currentRoutingTable, knownRouters, lastRouterIndex);\n return [2 /*return*/, null];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype._fetchRoutingTableUsingSeedRouter = function (seenRouters, seedRouter, routingTable, bookmark, impersonatedUser) {\n return __awaiter(this, void 0, void 0, function () {\n var resolvedAddresses, newAddresses;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._resolveSeedRouter(seedRouter)\n // filter out all addresses that we've already tried\n ];\n case 1:\n resolvedAddresses = _a.sent();\n newAddresses = resolvedAddresses.filter(function (address) { return seenRouters.indexOf(address) < 0; });\n return [4 /*yield*/, this._fetchRoutingTable(newAddresses, routingTable, bookmark, impersonatedUser)];\n case 2: return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype._resolveSeedRouter = function (seedRouter) {\n return __awaiter(this, void 0, void 0, function () {\n var resolvedAddresses, dnsResolvedAddresses;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._hostNameResolver.resolve(seedRouter)];\n case 1:\n resolvedAddresses = _a.sent();\n return [4 /*yield*/, Promise.all(resolvedAddresses.map(function (address) { return _this._dnsResolver.resolve(address); }))];\n case 2:\n dnsResolvedAddresses = _a.sent();\n return [2 /*return*/, [].concat.apply([], dnsResolvedAddresses)];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype._fetchRoutingTable = function (routerAddresses, routingTable, bookmark, impersonatedUser) {\n var _this = this;\n return routerAddresses.reduce(function (refreshedTablePromise, currentRouter, currentIndex) { return __awaiter(_this, void 0, void 0, function () {\n var newRoutingTable, previousRouterIndex, session, error_3;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, refreshedTablePromise];\n case 1:\n newRoutingTable = _a.sent();\n if (newRoutingTable) {\n // valid routing table was fetched - just return it, try next router otherwise\n return [2 /*return*/, newRoutingTable];\n }\n else {\n previousRouterIndex = currentIndex - 1;\n RoutingConnectionProvider._forgetRouter(routingTable, routerAddresses, previousRouterIndex);\n }\n return [4 /*yield*/, this._createSessionForRediscovery(currentRouter, bookmark, impersonatedUser)];\n case 2:\n session = _a.sent();\n if (!session) return [3 /*break*/, 8];\n _a.label = 3;\n case 3:\n _a.trys.push([3, 5, 6, 7]);\n return [4 /*yield*/, this._rediscovery.lookupRoutingTableOnRouter(session, routingTable.database, currentRouter, impersonatedUser)];\n case 4: return [2 /*return*/, _a.sent()];\n case 5:\n error_3 = _a.sent();\n if (error_3 && error_3.code === DATABASE_NOT_FOUND_ERROR_CODE) {\n // not finding the target database is a sign of a configuration issue\n throw error_3;\n }\n this._log.warn(\"unable to fetch routing table because of an error \" + error_3);\n return [2 /*return*/, null];\n case 6:\n session.close();\n return [7 /*endfinally*/];\n case 7: return [3 /*break*/, 9];\n case 8: \n // unable to acquire connection and create session towards the current router\n // return null to signal that the next router should be tried\n return [2 /*return*/, null];\n case 9: return [2 /*return*/];\n }\n });\n }); }, Promise.resolve(null));\n };\n RoutingConnectionProvider.prototype._createSessionForRediscovery = function (routerAddress, bookmark, impersonatedUser) {\n return __awaiter(this, void 0, void 0, function () {\n var connection, databaseSpecificErrorHandler, connectionProvider, protocolVersion, error_4;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n _a.trys.push([0, 2, , 3]);\n return [4 /*yield*/, this._connectionPool.acquire(routerAddress)];\n case 1:\n connection = _a.sent();\n databaseSpecificErrorHandler = connection_1.ConnectionErrorHandler.create({\n errorCode: SESSION_EXPIRED,\n handleAuthorizationExpired: function (error, address) { return _this._handleAuthorizationExpired(error, address); }\n });\n connectionProvider = new connection_provider_single_1.default(new connection_1.DelegateConnection(connection, databaseSpecificErrorHandler));\n protocolVersion = connection.protocol().version;\n if (protocolVersion < 4.0) {\n return [2 /*return*/, new neo4j_driver_core_1.Session({\n mode: WRITE,\n bookmark: Bookmark.empty(),\n connectionProvider: connectionProvider\n })];\n }\n return [2 /*return*/, new neo4j_driver_core_1.Session({\n mode: READ,\n database: SYSTEM_DB_NAME,\n bookmark: bookmark,\n connectionProvider: connectionProvider,\n impersonatedUser: impersonatedUser\n })];\n case 2:\n error_4 = _a.sent();\n // unable to acquire connection towards the given router\n if (error_4 && error_4.code === UNAUTHORIZED_ERROR_CODE) {\n // auth error and not finding system database is a sign of a configuration issue\n // discovery should not proceed\n throw error_4;\n }\n return [2 /*return*/, null];\n case 3: return [2 /*return*/];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype._applyRoutingTableIfPossible = function (currentRoutingTable, newRoutingTable, onDatabaseNameResolved) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!newRoutingTable) {\n // none of routing servers returned valid routing table, throw exception\n throw (0, neo4j_driver_core_1.newError)(\"Could not perform discovery. No routing servers available. Known routing table: \" + currentRoutingTable, SERVICE_UNAVAILABLE);\n }\n if (newRoutingTable.writers.length === 0) {\n // use seed router next time. this is important when cluster is partitioned. it tries to make sure driver\n // does not always get routing table without writers because it talks exclusively to a minority partition\n this._useSeedRouter = true;\n }\n return [4 /*yield*/, this._updateRoutingTable(newRoutingTable, onDatabaseNameResolved)];\n case 1:\n _a.sent();\n return [2 /*return*/, newRoutingTable];\n }\n });\n });\n };\n RoutingConnectionProvider.prototype._updateRoutingTable = function (newRoutingTable, onDatabaseNameResolved) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: \n // close old connections to servers not present in the new routing table\n return [4 /*yield*/, this._connectionPool.keepAll(newRoutingTable.allServers())];\n case 1:\n // close old connections to servers not present in the new routing table\n _a.sent();\n this._routingTableRegistry.removeExpired();\n this._routingTableRegistry.register(newRoutingTable);\n onDatabaseNameResolved(newRoutingTable.database);\n this._log.info(\"Updated routing table \" + newRoutingTable);\n return [2 /*return*/];\n }\n });\n });\n };\n RoutingConnectionProvider._forgetRouter = function (routingTable, routersArray, routerIndex) {\n var address = routersArray[routerIndex];\n if (routingTable && address) {\n routingTable.forgetRouter(address);\n }\n };\n return RoutingConnectionProvider;\n}(connection_provider_pooled_1.default));\nexports.default = RoutingConnectionProvider;\n/**\n * Responsible for keeping track of the existing routing tables\n */\nvar RoutingTableRegistry = /** @class */ (function () {\n /**\n * Constructor\n * @param {int} routingTablePurgeDelay The routing table purge delay\n */\n function RoutingTableRegistry(routingTablePurgeDelay) {\n this._tables = new Map();\n this._routingTablePurgeDelay = routingTablePurgeDelay;\n }\n /**\n * Put a routing table in the registry\n *\n * @param {RoutingTable} table The routing table\n * @returns {RoutingTableRegistry} this\n */\n RoutingTableRegistry.prototype.register = function (table) {\n this._tables.set(table.database, table);\n return this;\n };\n /**\n * Apply function in the routing table for an specific database. If the database name is not defined, the function will\n * be applied for each element\n *\n * @param {string} database The database name\n * @param {object} callbacks The actions\n * @param {function (RoutingTable)} callbacks.applyWhenExists Call when the db exists or when the database property is not informed\n * @param {function ()} callbacks.applyWhenDontExists Call when the database doesn't have the routing table registred\n * @returns {RoutingTableRegistry} this\n */\n RoutingTableRegistry.prototype.apply = function (database, _a) {\n var _b = _a === void 0 ? {} : _a, applyWhenExists = _b.applyWhenExists, _c = _b.applyWhenDontExists, applyWhenDontExists = _c === void 0 ? function () { } : _c;\n if (this._tables.has(database)) {\n applyWhenExists(this._tables.get(database));\n }\n else if (typeof database === 'string' || database === null) {\n applyWhenDontExists();\n }\n else {\n this._forEach(applyWhenExists);\n }\n return this;\n };\n /**\n * Retrieves a routing table from a given database name\n *\n * @param {string|impersonatedUser} impersonatedUser The impersonated User\n * @param {string} database The database name\n * @param {function()|RoutingTable} defaultSupplier The routing table supplier, if it's not a function or not exists, it will return itself as default value\n * @returns {RoutingTable} The routing table for the respective database\n */\n RoutingTableRegistry.prototype.get = function (database, defaultSupplier) {\n if (this._tables.has(database)) {\n return this._tables.get(database);\n }\n return typeof defaultSupplier === 'function'\n ? defaultSupplier()\n : defaultSupplier;\n };\n /**\n * Remove the routing table which is already expired\n * @returns {RoutingTableRegistry} this\n */\n RoutingTableRegistry.prototype.removeExpired = function () {\n var _this = this;\n return this._removeIf(function (value) {\n return value.isExpiredFor(_this._routingTablePurgeDelay);\n });\n };\n RoutingTableRegistry.prototype._forEach = function (apply) {\n var e_1, _a;\n try {\n for (var _b = __values(this._tables), _c = _b.next(); !_c.done; _c = _b.next()) {\n var _d = __read(_c.value, 2), value = _d[1];\n apply(value);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n return this;\n };\n RoutingTableRegistry.prototype._remove = function (key) {\n this._tables.delete(key);\n return this;\n };\n RoutingTableRegistry.prototype._removeIf = function (predicate) {\n var e_2, _a;\n try {\n for (var _b = __values(this._tables), _c = _b.next(); !_c.done; _c = _b.next()) {\n var _d = __read(_c.value, 2), key = _d[0], value = _d[1];\n if (predicate(value)) {\n this._remove(key);\n }\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_2) throw e_2.error; }\n }\n return this;\n };\n return RoutingTableRegistry;\n}());\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar SingleConnectionProvider = /** @class */ (function (_super) {\n __extends(SingleConnectionProvider, _super);\n function SingleConnectionProvider(connection) {\n var _this = _super.call(this) || this;\n _this._connection = connection;\n return _this;\n }\n /**\n * See {@link ConnectionProvider} for more information about this method and\n * its arguments.\n */\n SingleConnectionProvider.prototype.acquireConnection = function (_a) {\n var _b = _a === void 0 ? {} : _a, accessMode = _b.accessMode, database = _b.database, bookmarks = _b.bookmarks;\n var connection = this._connection;\n this._connection = null;\n return Promise.resolve(connection);\n };\n return SingleConnectionProvider;\n}(neo4j_driver_core_1.ConnectionProvider));\nexports.default = SingleConnectionProvider;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RoutingConnectionProvider = exports.DirectConnectionProvider = exports.PooledConnectionProvider = exports.SingleConnectionProvider = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar connection_provider_single_1 = require(\"./connection-provider-single\");\nObject.defineProperty(exports, \"SingleConnectionProvider\", { enumerable: true, get: function () { return __importDefault(connection_provider_single_1).default; } });\nvar connection_provider_pooled_1 = require(\"./connection-provider-pooled\");\nObject.defineProperty(exports, \"PooledConnectionProvider\", { enumerable: true, get: function () { return __importDefault(connection_provider_pooled_1).default; } });\nvar connection_provider_direct_1 = require(\"./connection-provider-direct\");\nObject.defineProperty(exports, \"DirectConnectionProvider\", { enumerable: true, get: function () { return __importDefault(connection_provider_direct_1).default; } });\nvar connection_provider_routing_1 = require(\"./connection-provider-routing\");\nObject.defineProperty(exports, \"RoutingConnectionProvider\", { enumerable: true, get: function () { return __importDefault(connection_provider_routing_1).default; } });\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createChannelConnection = void 0;\nvar channel_1 = require(\"../channel\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar connection_1 = __importDefault(require(\"./connection\"));\nvar bolt_1 = __importDefault(require(\"../bolt\"));\nvar PROTOCOL_ERROR = neo4j_driver_core_1.error.PROTOCOL_ERROR;\nvar Logger = neo4j_driver_core_1.internal.logger.Logger;\nvar idGenerator = 0;\n/**\n * Crete new connection to the provided address. Returned connection is not connected.\n * @param {ServerAddress} address - the Bolt endpoint to connect to.\n * @param {Object} config - the driver configuration.\n * @param {ConnectionErrorHandler} errorHandler - the error handler for connection errors.\n * @param {Logger} log - configured logger.\n * @return {Connection} - new connection.\n */\nfunction createChannelConnection(address, config, errorHandler, log, serversideRouting, createChannel) {\n if (serversideRouting === void 0) { serversideRouting = null; }\n if (createChannel === void 0) { createChannel = function (channelConfig) { return new channel_1.Channel(channelConfig); }; }\n var channelConfig = new channel_1.ChannelConfig(address, config, errorHandler.errorCode());\n var channel = createChannel(channelConfig);\n return bolt_1.default.handshake(channel)\n .then(function (_a) {\n var version = _a.protocolVersion, consumeRemainingBuffer = _a.consumeRemainingBuffer;\n var chunker = new channel_1.Chunker(channel);\n var dechunker = new channel_1.Dechunker();\n var createProtocol = function (conn) {\n return bolt_1.default.create({\n version: version,\n channel: channel,\n chunker: chunker,\n dechunker: dechunker,\n disableLosslessIntegers: config.disableLosslessIntegers,\n useBigInt: config.useBigInt,\n serversideRouting: serversideRouting,\n server: conn.server,\n log: conn.logger,\n observer: {\n onPendingObserversChange: conn._handleOngoingRequestsNumberChange.bind(conn),\n onError: conn._handleFatalError.bind(conn),\n onFailure: conn._resetOnFailure.bind(conn),\n onProtocolError: conn._handleProtocolError.bind(conn),\n onErrorApplyTransformation: function (error) {\n return conn.handleAndTransformError(error, conn._address);\n }\n }\n });\n };\n var connection = new ChannelConnection(channel, errorHandler, address, log, config.disableLosslessIntegers, serversideRouting, chunker, createProtocol);\n // forward all pending bytes to the dechunker\n consumeRemainingBuffer(function (buffer) { return dechunker.write(buffer); });\n return connection;\n })\n .catch(function (reason) {\n return channel.close().then(function () {\n throw reason;\n });\n });\n}\nexports.createChannelConnection = createChannelConnection;\nvar ChannelConnection = /** @class */ (function (_super) {\n __extends(ChannelConnection, _super);\n /**\n * @constructor\n * @param {Channel} channel - channel with a 'write' function and a 'onmessage' callback property.\n * @param {ConnectionErrorHandler} errorHandler the error handler.\n * @param {ServerAddress} address - the server address to connect to.\n * @param {Logger} log - the configured logger.\n * @param {boolean} disableLosslessIntegers if this connection should convert all received integers to native JS numbers.\n * @param {Chunker} chunker the chunker\n * @param protocolSupplier Bolt protocol supplier\n */\n function ChannelConnection(channel, errorHandler, address, log, disableLosslessIntegers, serversideRouting, chunker, // to be removed,\n protocolSupplier) {\n if (disableLosslessIntegers === void 0) { disableLosslessIntegers = false; }\n if (serversideRouting === void 0) { serversideRouting = null; }\n var _this = _super.call(this, errorHandler) || this;\n _this._id = idGenerator++;\n _this._address = address;\n _this._server = { address: address.asHostPort() };\n _this.creationTimestamp = Date.now();\n _this._disableLosslessIntegers = disableLosslessIntegers;\n _this._ch = channel;\n _this._chunker = chunker;\n _this._log = createConnectionLogger(_this, log);\n _this._serversideRouting = serversideRouting;\n // connection from the database, returned in response for HELLO message and might not be available\n _this._dbConnectionId = null;\n // bolt protocol is initially not initialized\n /**\n * @private\n * @type {BoltProtocol}\n */\n _this._protocol = protocolSupplier(_this);\n // Set to true on fatal errors, to get this out of connection pool.\n _this._isBroken = false;\n if (_this._log.isDebugEnabled()) {\n _this._log.debug(\"created towards \" + address);\n }\n return _this;\n }\n Object.defineProperty(ChannelConnection.prototype, \"id\", {\n get: function () {\n return this._id;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(ChannelConnection.prototype, \"databaseId\", {\n get: function () {\n return this._dbConnectionId;\n },\n set: function (value) {\n this._dbConnectionId = value;\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Send initialization message.\n * @param {string} userAgent the user agent for this driver.\n * @param {Object} authToken the object containing auth information.\n * @return {Promise} promise resolved with the current connection if connection is successful. Rejected promise otherwise.\n */\n ChannelConnection.prototype.connect = function (userAgent, authToken) {\n return this._initialize(userAgent, authToken);\n };\n /**\n * Perform protocol-specific initialization which includes authentication.\n * @param {string} userAgent the user agent for this driver.\n * @param {Object} authToken the object containing auth information.\n * @return {Promise} promise resolved with the current connection if initialization is successful. Rejected promise otherwise.\n */\n ChannelConnection.prototype._initialize = function (userAgent, authToken) {\n var _this = this;\n var self = this;\n return new Promise(function (resolve, reject) {\n _this._protocol.initialize({\n userAgent: userAgent,\n authToken: authToken,\n onError: function (err) { return reject(err); },\n onComplete: function (metadata) {\n if (metadata) {\n // read server version from the response metadata, if it is available\n var serverVersion = metadata.server;\n if (!_this.version || serverVersion) {\n _this.version = serverVersion;\n }\n // read database connection id from the response metadata, if it is available\n var dbConnectionId = metadata.connection_id;\n if (!_this.databaseId) {\n _this.databaseId = dbConnectionId;\n }\n if (metadata.hints) {\n var receiveTimeoutRaw = metadata.hints['connection.recv_timeout_seconds'];\n if (receiveTimeoutRaw !== null &&\n receiveTimeoutRaw !== undefined) {\n var receiveTimeoutInSeconds = (0, neo4j_driver_core_1.toNumber)(receiveTimeoutRaw);\n if (Number.isInteger(receiveTimeoutInSeconds) &&\n receiveTimeoutInSeconds > 0) {\n _this._ch.setupReceiveTimeout(receiveTimeoutInSeconds * 1000);\n }\n else {\n _this._log.info(\"Server located at \" + _this._address + \" supplied an invalid connection receive timeout value (\" + receiveTimeoutInSeconds + \"). \" +\n 'Please, verify the server configuration and status because this can be the symptom of a bigger issue.');\n }\n }\n }\n }\n resolve(self);\n }\n });\n });\n };\n /**\n * Get the Bolt protocol for the connection.\n * @return {BoltProtocol} the protocol.\n */\n ChannelConnection.prototype.protocol = function () {\n return this._protocol;\n };\n Object.defineProperty(ChannelConnection.prototype, \"address\", {\n get: function () {\n return this._address;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(ChannelConnection.prototype, \"version\", {\n /**\n * Get the version of the connected server.\n * Available only after initialization\n *\n * @returns {ServerVersion} version\n */\n get: function () {\n return this._server.version;\n },\n set: function (value) {\n this._server.version = value;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(ChannelConnection.prototype, \"server\", {\n get: function () {\n return this._server;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(ChannelConnection.prototype, \"logger\", {\n get: function () {\n return this._log;\n },\n enumerable: false,\n configurable: true\n });\n /**\n * \"Fatal\" means the connection is dead. Only call this if something\n * happens that cannot be recovered from. This will lead to all subscribers\n * failing, and the connection getting ejected from the session pool.\n *\n * @param error an error object, forwarded to all current and future subscribers\n */\n ChannelConnection.prototype._handleFatalError = function (error) {\n this._isBroken = true;\n this._error = this.handleAndTransformError(this._protocol.currentFailure || error, this._address);\n if (this._log.isErrorEnabled()) {\n this._log.error(\"experienced a fatal error caused by \" + this._error + \" (\" + neo4j_driver_core_1.json.stringify(this._error) + \")\");\n }\n this._protocol.notifyFatalError(this._error);\n };\n /**\n * This method still here because it's used by the {@link PooledConnectionProvider}\n *\n * @param {any} observer\n */\n ChannelConnection.prototype._queueObserver = function (observer) {\n return this._protocol.queueObserverIfProtocolIsNotBroken(observer);\n };\n ChannelConnection.prototype.hasOngoingObservableRequests = function () {\n return this._protocol.hasOngoingObservableRequests();\n };\n /**\n * Send a RESET-message to the database. Message is immediately flushed to the network.\n * @return {Promise} promise resolved when SUCCESS-message response arrives, or failed when other response messages arrives.\n */\n ChannelConnection.prototype.resetAndFlush = function () {\n var _this = this;\n return new Promise(function (resolve, reject) {\n _this._protocol.reset({\n onError: function (error) {\n if (_this._isBroken) {\n // handling a fatal error, no need to raise a protocol violation\n reject(error);\n }\n else {\n var neo4jError = _this._handleProtocolError('Received FAILURE as a response for RESET: ' + error);\n reject(neo4jError);\n }\n },\n onComplete: function () {\n resolve();\n }\n });\n });\n };\n ChannelConnection.prototype._resetOnFailure = function () {\n var _this = this;\n if (!this.isOpen()) {\n return;\n }\n this._protocol.reset({\n onError: function () {\n _this._protocol.resetFailure();\n },\n onComplete: function () {\n _this._protocol.resetFailure();\n }\n });\n };\n /*\n * Pop next pending observer form the list of observers and make it current observer.\n * @protected\n */\n ChannelConnection.prototype._updateCurrentObserver = function () {\n this._protocol.updateCurrentObserver();\n };\n /** Check if this connection is in working condition */\n ChannelConnection.prototype.isOpen = function () {\n return !this._isBroken && this._ch._open;\n };\n /**\n * Starts and stops the receive timeout timer.\n * @param {number} requestsNumber Ongoing requests number\n */\n ChannelConnection.prototype._handleOngoingRequestsNumberChange = function (requestsNumber) {\n if (requestsNumber === 0) {\n this._ch.stopReceiveTimeout();\n }\n else {\n this._ch.startReceiveTimeout();\n }\n };\n /**\n * Call close on the channel.\n * @returns {Promise} - A promise that will be resolved when the underlying channel is closed.\n */\n ChannelConnection.prototype.close = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (this._log.isDebugEnabled()) {\n this._log.debug('closing');\n }\n if (this._protocol && this.isOpen()) {\n // protocol has been initialized and this connection is healthy\n // notify the database about the upcoming close of the connection\n this._protocol.prepareToClose();\n }\n return [4 /*yield*/, this._ch.close()];\n case 1:\n _a.sent();\n if (this._log.isDebugEnabled()) {\n this._log.debug('closed');\n }\n return [2 /*return*/];\n }\n });\n });\n };\n ChannelConnection.prototype.toString = function () {\n return \"Connection [\" + this.id + \"][\" + (this.databaseId || '') + \"]\";\n };\n ChannelConnection.prototype._handleProtocolError = function (message) {\n this._protocol.resetFailure();\n this._updateCurrentObserver();\n var error = (0, neo4j_driver_core_1.newError)(message, PROTOCOL_ERROR);\n this._handleFatalError(error);\n return error;\n };\n return ChannelConnection;\n}(connection_1.default));\nexports.default = ChannelConnection;\n/**\n * Creates a log with the connection info as prefix\n * @param {Connection} connection The connection\n * @param {Logger} logger The logger\n * @returns {Logger} The new logger with enriched messages\n */\nfunction createConnectionLogger(connection, logger) {\n return new Logger(logger._level, function (level, message) {\n return logger._loggerFunction(level, connection + \" \" + message);\n });\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar connection_1 = __importDefault(require(\"./connection\"));\nvar DelegateConnection = /** @class */ (function (_super) {\n __extends(DelegateConnection, _super);\n /**\n * @param delegate {Connection} the delegated connection\n * @param errorHandler {ConnectionErrorHandler} the error handler\n */\n function DelegateConnection(delegate, errorHandler) {\n var _this = _super.call(this, errorHandler) || this;\n if (errorHandler) {\n _this._originalErrorHandler = delegate._errorHandler;\n delegate._errorHandler = _this._errorHandler;\n }\n _this._delegate = delegate;\n return _this;\n }\n Object.defineProperty(DelegateConnection.prototype, \"id\", {\n get: function () {\n return this._delegate.id;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(DelegateConnection.prototype, \"databaseId\", {\n get: function () {\n return this._delegate.databaseId;\n },\n set: function (value) {\n this._delegate.databaseId = value;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(DelegateConnection.prototype, \"server\", {\n get: function () {\n return this._delegate.server;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(DelegateConnection.prototype, \"address\", {\n get: function () {\n return this._delegate.address;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(DelegateConnection.prototype, \"version\", {\n get: function () {\n return this._delegate.version;\n },\n set: function (value) {\n this._delegate.version = value;\n },\n enumerable: false,\n configurable: true\n });\n DelegateConnection.prototype.isOpen = function () {\n return this._delegate.isOpen();\n };\n DelegateConnection.prototype.protocol = function () {\n return this._delegate.protocol();\n };\n DelegateConnection.prototype.connect = function (userAgent, authToken) {\n return this._delegate.connect(userAgent, authToken);\n };\n DelegateConnection.prototype.write = function (message, observer, flush) {\n return this._delegate.write(message, observer, flush);\n };\n DelegateConnection.prototype.resetAndFlush = function () {\n return this._delegate.resetAndFlush();\n };\n DelegateConnection.prototype.close = function () {\n return this._delegate.close();\n };\n DelegateConnection.prototype._release = function () {\n if (this._originalErrorHandler) {\n this._delegate._errorHandler = this._originalErrorHandler;\n }\n return this._delegate._release();\n };\n return DelegateConnection;\n}(connection_1.default));\nexports.default = DelegateConnection;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar SERVICE_UNAVAILABLE = neo4j_driver_core_1.error.SERVICE_UNAVAILABLE, SESSION_EXPIRED = neo4j_driver_core_1.error.SESSION_EXPIRED;\nvar ConnectionErrorHandler = /** @class */ (function () {\n function ConnectionErrorHandler(errorCode, handleUnavailability, handleWriteFailure, handleAuthorizationExpired) {\n this._errorCode = errorCode;\n this._handleUnavailability = handleUnavailability || noOpHandler;\n this._handleWriteFailure = handleWriteFailure || noOpHandler;\n this._handleAuthorizationExpired = handleAuthorizationExpired || noOpHandler;\n }\n ConnectionErrorHandler.create = function (_a) {\n var errorCode = _a.errorCode, handleUnavailability = _a.handleUnavailability, handleWriteFailure = _a.handleWriteFailure, handleAuthorizationExpired = _a.handleAuthorizationExpired;\n return new ConnectionErrorHandler(errorCode, handleUnavailability, handleWriteFailure, handleAuthorizationExpired);\n };\n /**\n * Error code to use for network errors.\n * @return {string} the error code.\n */\n ConnectionErrorHandler.prototype.errorCode = function () {\n return this._errorCode;\n };\n /**\n * Handle and transform the error.\n * @param {Neo4jError} error the original error.\n * @param {ServerAddress} address the address of the connection where the error happened.\n * @return {Neo4jError} new error that should be propagated to the user.\n */\n ConnectionErrorHandler.prototype.handleAndTransformError = function (error, address) {\n if (isAutorizationExpiredError(error)) {\n return this._handleAuthorizationExpired(error, address);\n }\n if (isAvailabilityError(error)) {\n return this._handleUnavailability(error, address);\n }\n if (isFailureToWrite(error)) {\n return this._handleWriteFailure(error, address);\n }\n return error;\n };\n return ConnectionErrorHandler;\n}());\nexports.default = ConnectionErrorHandler;\nfunction isAutorizationExpiredError(error) {\n return error && (error.code === 'Neo.ClientError.Security.AuthorizationExpired' ||\n error.code === 'Neo.ClientError.Security.TokenExpired');\n}\nfunction isAvailabilityError(error) {\n if (error) {\n return (error.code === SESSION_EXPIRED ||\n error.code === SERVICE_UNAVAILABLE ||\n error.code === 'Neo.TransientError.General.DatabaseUnavailable');\n }\n return false;\n}\nfunction isFailureToWrite(error) {\n if (error) {\n return (error.code === 'Neo.ClientError.Cluster.NotALeader' ||\n error.code === 'Neo.ClientError.General.ForbiddenOnReadOnlyDatabase');\n }\n return false;\n}\nfunction noOpHandler(error) {\n return error;\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Connection = /** @class */ (function () {\n /**\n * @param {ConnectionErrorHandler} errorHandler the error handler\n */\n function Connection(errorHandler) {\n this._errorHandler = errorHandler;\n }\n Object.defineProperty(Connection.prototype, \"id\", {\n get: function () {\n throw new Error('not implemented');\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Connection.prototype, \"databaseId\", {\n get: function () {\n throw new Error('not implemented');\n },\n set: function (value) {\n throw new Error('not implemented');\n },\n enumerable: false,\n configurable: true\n });\n /**\n * @returns {boolean} whether this connection is in a working condition\n */\n Connection.prototype.isOpen = function () {\n throw new Error('not implemented');\n };\n /**\n * @returns {BoltProtocol} the underlying bolt protocol assigned to this connection\n */\n Connection.prototype.protocol = function () {\n throw new Error('not implemented');\n };\n Object.defineProperty(Connection.prototype, \"address\", {\n /**\n * @returns {ServerAddress} the server address this connection is opened against\n */\n get: function () {\n throw new Error('not implemented');\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Connection.prototype, \"version\", {\n /**\n * @returns {ServerVersion} the version of the server this connection is connected to\n */\n get: function () {\n throw new Error('not implemented');\n },\n set: function (value) {\n throw new Error('not implemented');\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Connection.prototype, \"server\", {\n get: function () {\n throw new Error('not implemented');\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Connect to the target address, negotiate Bolt protocol and send initialization message.\n * @param {string} userAgent the user agent for this driver.\n * @param {Object} authToken the object containing auth information.\n * @return {Promise} promise resolved with the current connection if connection is successful. Rejected promise otherwise.\n */\n Connection.prototype.connect = function (userAgent, authToken) {\n throw new Error('not implemented');\n };\n /**\n * Write a message to the network channel.\n * @param {RequestMessage} message the message to write.\n * @param {ResultStreamObserver} observer the response observer.\n * @param {boolean} flush `true` if flush should happen after the message is written to the buffer.\n */\n Connection.prototype.write = function (message, observer, flush) {\n throw new Error('not implemented');\n };\n /**\n * Send a RESET-message to the database. Message is immediately flushed to the network.\n * @return {Promise} promise resolved when SUCCESS-message response arrives, or failed when other response messages arrives.\n */\n Connection.prototype.resetAndFlush = function () {\n throw new Error('not implemented');\n };\n /**\n * Call close on the channel.\n * @returns {Promise} - A promise that will be resolved when the connection is closed.\n *\n */\n Connection.prototype.close = function () {\n throw new Error('not implemented');\n };\n /**\n *\n * @param error\n * @param address\n * @returns {Neo4jError|*}\n */\n Connection.prototype.handleAndTransformError = function (error, address) {\n if (this._errorHandler) {\n return this._errorHandler.handleAndTransformError(error, address);\n }\n return error;\n };\n return Connection;\n}());\nexports.default = Connection;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createChannelConnection = exports.ConnectionErrorHandler = exports.DelegateConnection = exports.ChannelConnection = exports.Connection = void 0;\nvar connection_1 = __importDefault(require(\"./connection\"));\nexports.Connection = connection_1.default;\nvar connection_channel_1 = __importStar(require(\"./connection-channel\"));\nexports.ChannelConnection = connection_channel_1.default;\nObject.defineProperty(exports, \"createChannelConnection\", { enumerable: true, get: function () { return connection_channel_1.createChannelConnection; } });\nvar connection_delegate_1 = __importDefault(require(\"./connection-delegate\"));\nexports.DelegateConnection = connection_delegate_1.default;\nvar connection_error_handler_1 = __importDefault(require(\"./connection-error-handler\"));\nexports.ConnectionErrorHandler = connection_error_handler_1.default;\nexports.default = connection_1.default;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.pool = exports.packstream = exports.channel = exports.buf = exports.bolt = exports.loadBalancing = void 0;\nexports.loadBalancing = __importStar(require(\"./load-balancing\"));\nexports.bolt = __importStar(require(\"./bolt\"));\nexports.buf = __importStar(require(\"./buf\"));\nexports.channel = __importStar(require(\"./channel\"));\nexports.packstream = __importStar(require(\"./packstream\"));\nexports.pool = __importStar(require(\"./pool\"));\n__exportStar(require(\"./connection-provider\"), exports);\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.LeastConnectedLoadBalancingStrategy = exports.LoadBalancingStrategy = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar load_balancing_strategy_1 = __importDefault(require(\"./load-balancing-strategy\"));\nexports.LoadBalancingStrategy = load_balancing_strategy_1.default;\nvar least_connected_load_balancing_strategy_1 = __importDefault(require(\"./least-connected-load-balancing-strategy\"));\nexports.LeastConnectedLoadBalancingStrategy = least_connected_load_balancing_strategy_1.default;\nexports.default = least_connected_load_balancing_strategy_1.default;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar round_robin_array_index_1 = __importDefault(require(\"./round-robin-array-index\"));\nvar load_balancing_strategy_1 = __importDefault(require(\"./load-balancing-strategy\"));\nvar LeastConnectedLoadBalancingStrategy = /** @class */ (function (_super) {\n __extends(LeastConnectedLoadBalancingStrategy, _super);\n /**\n * @constructor\n * @param {Pool} connectionPool the connection pool of this driver.\n */\n function LeastConnectedLoadBalancingStrategy(connectionPool) {\n var _this = _super.call(this) || this;\n _this._readersIndex = new round_robin_array_index_1.default();\n _this._writersIndex = new round_robin_array_index_1.default();\n _this._connectionPool = connectionPool;\n return _this;\n }\n /**\n * @inheritDoc\n */\n LeastConnectedLoadBalancingStrategy.prototype.selectReader = function (knownReaders) {\n return this._select(knownReaders, this._readersIndex);\n };\n /**\n * @inheritDoc\n */\n LeastConnectedLoadBalancingStrategy.prototype.selectWriter = function (knownWriters) {\n return this._select(knownWriters, this._writersIndex);\n };\n LeastConnectedLoadBalancingStrategy.prototype._select = function (addresses, roundRobinIndex) {\n var length = addresses.length;\n if (length === 0) {\n return null;\n }\n // choose start index for iteration in round-robin fashion\n var startIndex = roundRobinIndex.next(length);\n var index = startIndex;\n var leastConnectedAddress = null;\n var leastActiveConnections = Number.MAX_SAFE_INTEGER;\n // iterate over the array to find least connected address\n do {\n var address = addresses[index];\n var activeConnections = this._connectionPool.activeResourceCount(address);\n if (activeConnections < leastActiveConnections) {\n leastConnectedAddress = address;\n leastActiveConnections = activeConnections;\n }\n // loop over to the start of the array when end is reached\n if (index === length - 1) {\n index = 0;\n }\n else {\n index++;\n }\n } while (index !== startIndex);\n return leastConnectedAddress;\n };\n return LeastConnectedLoadBalancingStrategy;\n}(load_balancing_strategy_1.default));\nexports.default = LeastConnectedLoadBalancingStrategy;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * A facility to select most appropriate reader or writer among the given addresses for request processing.\n */\nvar LoadBalancingStrategy = /** @class */ (function () {\n function LoadBalancingStrategy() {\n }\n /**\n * Select next most appropriate reader from the list of given readers.\n * @param {string[]} knownReaders an array of currently known readers to select from.\n * @return {string} most appropriate reader or `null` if given array is empty.\n */\n LoadBalancingStrategy.prototype.selectReader = function (knownReaders) {\n throw new Error('Abstract function');\n };\n /**\n * Select next most appropriate writer from the list of given writers.\n * @param {string[]} knownWriters an array of currently known writers to select from.\n * @return {string} most appropriate writer or `null` if given array is empty.\n */\n LoadBalancingStrategy.prototype.selectWriter = function (knownWriters) {\n throw new Error('Abstract function');\n };\n return LoadBalancingStrategy;\n}());\nexports.default = LoadBalancingStrategy;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar RoundRobinArrayIndex = /** @class */ (function () {\n /**\n * @constructor\n * @param {number} [initialOffset=0] the initial offset for round robin.\n */\n function RoundRobinArrayIndex(initialOffset) {\n this._offset = initialOffset || 0;\n }\n /**\n * Get next index for an array with given length.\n * @param {number} arrayLength the array length.\n * @return {number} index in the array.\n */\n RoundRobinArrayIndex.prototype.next = function (arrayLength) {\n if (arrayLength === 0) {\n return -1;\n }\n var nextOffset = this._offset;\n this._offset += 1;\n if (this._offset === Number.MAX_SAFE_INTEGER) {\n this._offset = 0;\n }\n return nextOffset % arrayLength;\n };\n return RoundRobinArrayIndex;\n}());\nexports.default = RoundRobinArrayIndex;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.v2 = exports.v1 = void 0;\nvar v1 = __importStar(require(\"./packstream-v1\"));\nexports.v1 = v1;\nvar v2 = __importStar(require(\"./packstream-v2\"));\nexports.v2 = v2;\nexports.default = v2;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.packDateTime = exports.unpackDateTimeWithZoneId = exports.unpackDateTimeWithZoneOffset = exports.DATE_TIME_WITH_ZONE_ID = exports.DATE_TIME_WITH_ZONE_OFFSET = void 0;\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar temporal_factory_1 = require(\"./temporal-factory\");\nvar localDateTimeToEpochSecond = neo4j_driver_core_1.internal.temporalUtil.localDateTimeToEpochSecond;\nexports.DATE_TIME_WITH_ZONE_OFFSET = 0x49;\nvar DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE = 3;\nexports.DATE_TIME_WITH_ZONE_ID = 0x69;\nvar DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE = 3;\n/**\n* Unpack date time with zone offset value using the given unpacker.\n* @param {Unpacker} unpacker the unpacker to use.\n* @param {number} structSize the retrieved struct size.\n* @param {BaseBuffer} buffer the buffer to unpack from.\n* @param {boolean} disableLosslessIntegers if integer properties in the result date-time should be native JS numbers.\n* @return {DateTime} the unpacked date time with zone offset value.\n*/\nfunction unpackDateTimeWithZoneOffset(unpacker, structSize, buffer, disableLosslessIntegers, useBigInt) {\n unpacker._verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE, structSize);\n var utcSecond = unpacker.unpackInteger(buffer);\n var nano = unpacker.unpackInteger(buffer);\n var timeZoneOffsetSeconds = unpacker.unpackInteger(buffer);\n var epochSecond = (0, neo4j_driver_core_1.int)(utcSecond).add(timeZoneOffsetSeconds);\n var localDateTime = (0, temporal_factory_1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);\n var result = new neo4j_driver_core_1.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, timeZoneOffsetSeconds, null);\n return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);\n}\nexports.unpackDateTimeWithZoneOffset = unpackDateTimeWithZoneOffset;\n/**\n * Unpack date time with zone id value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @param {boolean} disableLosslessIntegers if integer properties in the result date-time should be native JS numbers.\n * @return {DateTime} the unpacked date time with zone id value.\n */\nfunction unpackDateTimeWithZoneId(unpacker, structSize, buffer, disableLosslessIntegers, useBigInt) {\n unpacker._verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE, structSize);\n var epochSecond = unpacker.unpackInteger(buffer);\n var nano = unpacker.unpackInteger(buffer);\n var timeZoneId = unpacker.unpack(buffer);\n var localDateTime = getTimeInZoneId(timeZoneId, epochSecond, nano);\n var result = new neo4j_driver_core_1.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, (0, neo4j_driver_core_1.int)(nano), localDateTime.timeZoneOffsetSeconds, timeZoneId);\n return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);\n}\nexports.unpackDateTimeWithZoneId = unpackDateTimeWithZoneId;\n/*\n* Pack given date time.\n* @param {DateTime} value the date time value to pack.\n* @param {Packer} packer the packer to use.\n*/\nfunction packDateTime(value, packer) {\n if (value.timeZoneId) {\n packDateTimeWithZoneId(value, packer);\n }\n else {\n packDateTimeWithZoneOffset(value, packer);\n }\n}\nexports.packDateTime = packDateTime;\n/**\n * Pack given date time with zone id.\n * @param {DateTime} value the date time value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packDateTimeWithZoneId(value, packer) {\n var epochSecond = localDateTimeToEpochSecond(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);\n var offset = value.timeZoneOffsetSeconds != null\n ? value.timeZoneOffsetSeconds\n : getOffsetFromZoneId(value.timeZoneId, epochSecond, value.nanosecond);\n var utc = epochSecond.subtract(offset);\n var nano = (0, neo4j_driver_core_1.int)(value.nanosecond);\n var timeZoneId = value.timeZoneId;\n var packableStructFields = [\n packer.packable(utc),\n packer.packable(nano),\n packer.packable(timeZoneId)\n ];\n packer.packStruct(exports.DATE_TIME_WITH_ZONE_ID, packableStructFields);\n}\n/**\n * Pack given date time with zone offset.\n * @param {DateTime} value the date time value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packDateTimeWithZoneOffset(value, packer) {\n var epochSecond = localDateTimeToEpochSecond(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);\n var nano = (0, neo4j_driver_core_1.int)(value.nanosecond);\n var timeZoneOffsetSeconds = (0, neo4j_driver_core_1.int)(value.timeZoneOffsetSeconds);\n var utcSecond = epochSecond.subtract(timeZoneOffsetSeconds);\n var packableStructFields = [\n packer.packable(utcSecond),\n packer.packable(nano),\n packer.packable(timeZoneOffsetSeconds)\n ];\n packer.packStruct(exports.DATE_TIME_WITH_ZONE_OFFSET, packableStructFields);\n}\n/**\n * Returns the offset for a given timezone id\n *\n * Javascript doesn't have support for direct getting the timezone offset from a given\n * TimeZoneId and DateTime in the given TimeZoneId. For solving this issue,\n *\n * 1. The ZoneId is applied to the timestamp, so we could make the difference between the\n * given timestamp and the new calculated one. This is the offset for the timezone\n * in the utc is equal to epoch (some time in the future or past)\n * 2. The offset is subtracted from the timestamp, so we have an estimated utc timestamp.\n * 3. The ZoneId is applied to the new timestamp, se we could could make the difference\n * between the new timestamp and the calculated one. This is the offset for the given timezone.\n *\n * Example:\n * Input: 2022-3-27 1:59:59 'Europe/Berlin'\n * Apply 1, 2022-3-27 1:59:59 => 2022-3-27 3:59:59 'Europe/Berlin' +2:00\n * Apply 2, 2022-3-27 1:59:59 - 2:00 => 2022-3-26 23:59:59\n * Apply 3, 2022-3-26 23:59:59 => 2022-3-27 00:59:59 'Europe/Berlin' +1:00\n * The offset is +1 hour.\n *\n * @param {string} timeZoneId The timezone id\n * @param {Integer} epochSecond The epoch second in the timezone id\n * @param {Integerable} nanosecond The nanoseconds in the timezone id\n * @returns The timezone offset\n */\nfunction getOffsetFromZoneId(timeZoneId, epochSecond, nanosecond) {\n var dateTimeWithZoneAppliedTwice = getTimeInZoneId(timeZoneId, epochSecond, nanosecond);\n // The wallclock form the current date time\n var epochWithZoneAppliedTwice = localDateTimeToEpochSecond(dateTimeWithZoneAppliedTwice.year, dateTimeWithZoneAppliedTwice.month, dateTimeWithZoneAppliedTwice.day, dateTimeWithZoneAppliedTwice.hour, dateTimeWithZoneAppliedTwice.minute, dateTimeWithZoneAppliedTwice.second, nanosecond);\n var offsetOfZoneInTheFutureUtc = epochWithZoneAppliedTwice.subtract(epochSecond);\n var guessedUtc = epochSecond.subtract(offsetOfZoneInTheFutureUtc);\n var zonedDateTimeFromGuessedUtc = getTimeInZoneId(timeZoneId, guessedUtc, nanosecond);\n var zonedEpochFromGuessedUtc = localDateTimeToEpochSecond(zonedDateTimeFromGuessedUtc.year, zonedDateTimeFromGuessedUtc.month, zonedDateTimeFromGuessedUtc.day, zonedDateTimeFromGuessedUtc.hour, zonedDateTimeFromGuessedUtc.minute, zonedDateTimeFromGuessedUtc.second, nanosecond);\n var offset = zonedEpochFromGuessedUtc.subtract(guessedUtc);\n return offset;\n}\nfunction getTimeInZoneId(timeZoneId, epochSecond, nano) {\n var formatter = new Intl.DateTimeFormat('en-US', {\n timeZone: timeZoneId,\n year: 'numeric',\n month: 'numeric',\n day: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n second: 'numeric',\n hour12: false,\n era: 'narrow'\n });\n var utc = (0, neo4j_driver_core_1.int)(epochSecond)\n .multiply(1000)\n .add((0, neo4j_driver_core_1.int)(nano).div(1000000))\n .toNumber();\n var formattedUtcParts = formatter.formatToParts(utc);\n var localDateTime = formattedUtcParts.reduce(function (obj, currentValue) {\n if (currentValue.type === 'era') {\n obj.adjustEra =\n currentValue.value.toUpperCase() === 'B'\n ? function (year) { return year.subtract(1).negate(); } // 1BC equals to year 0 in astronomical year numbering\n : function (year) { return year; };\n }\n else if (currentValue.type !== 'literal') {\n obj[currentValue.type] = (0, neo4j_driver_core_1.int)(currentValue.value);\n }\n return obj;\n }, {});\n localDateTime.year = localDateTime.adjustEra(localDateTime.year);\n var epochInTimeZone = localDateTimeToEpochSecond(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond);\n localDateTime.timeZoneOffsetSeconds = epochInTimeZone.subtract(epochSecond);\n localDateTime.hour = localDateTime.hour.modulo(24);\n return localDateTime;\n}\nfunction convertIntegerPropsIfNeeded(obj, disableLosslessIntegers, useBigInt) {\n if (!disableLosslessIntegers && !useBigInt) {\n return obj;\n }\n var convert = function (value) {\n return useBigInt ? value.toBigInt() : value.toNumberOrInfinity();\n };\n var clone = Object.create(Object.getPrototypeOf(obj));\n for (var prop in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {\n var value = obj[prop];\n clone[prop] = (0, neo4j_driver_core_1.isInt)(value) ? convert(value) : value;\n }\n }\n Object.freeze(clone);\n return clone;\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Structure = exports.Unpacker = exports.Packer = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar channel_1 = require(\"../channel\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar objectUtil = neo4j_driver_core_1.internal.objectUtil;\nvar PROTOCOL_ERROR = neo4j_driver_core_1.error.PROTOCOL_ERROR;\nvar TINY_STRING = 0x80;\nvar TINY_LIST = 0x90;\nvar TINY_MAP = 0xa0;\nvar TINY_STRUCT = 0xb0;\nvar NULL = 0xc0;\nvar FLOAT_64 = 0xc1;\nvar FALSE = 0xc2;\nvar TRUE = 0xc3;\nvar INT_8 = 0xc8;\nvar INT_16 = 0xc9;\nvar INT_32 = 0xca;\nvar INT_64 = 0xcb;\nvar STRING_8 = 0xd0;\nvar STRING_16 = 0xd1;\nvar STRING_32 = 0xd2;\nvar LIST_8 = 0xd4;\nvar LIST_16 = 0xd5;\nvar LIST_32 = 0xd6;\nvar BYTES_8 = 0xcc;\nvar BYTES_16 = 0xcd;\nvar BYTES_32 = 0xce;\nvar MAP_8 = 0xd8;\nvar MAP_16 = 0xd9;\nvar MAP_32 = 0xda;\nvar STRUCT_8 = 0xdc;\nvar STRUCT_16 = 0xdd;\nvar NODE = 0x4e;\nvar NODE_STRUCT_SIZE = 3;\nvar RELATIONSHIP = 0x52;\nvar RELATIONSHIP_STRUCT_SIZE = 5;\nvar UNBOUND_RELATIONSHIP = 0x72;\nvar UNBOUND_RELATIONSHIP_STRUCT_SIZE = 3;\nvar PATH = 0x50;\nvar PATH_STRUCT_SIZE = 3;\n/**\n * A Structure have a signature and fields.\n * @access private\n */\nvar Structure = /** @class */ (function () {\n /**\n * Create new instance\n */\n function Structure(signature, fields) {\n this.signature = signature;\n this.fields = fields;\n }\n Structure.prototype.toString = function () {\n var fieldStr = '';\n for (var i = 0; i < this.fields.length; i++) {\n if (i > 0) {\n fieldStr += ', ';\n }\n fieldStr += this.fields[i];\n }\n return 'Structure(' + this.signature + ', [' + fieldStr + '])';\n };\n return Structure;\n}());\nexports.Structure = Structure;\n/**\n * Class to pack\n * @access private\n */\nvar Packer = /** @class */ (function () {\n /**\n * @constructor\n * @param {Chunker} channel the chunker backed by a network channel.\n */\n function Packer(channel) {\n this._ch = channel;\n this._byteArraysSupported = true;\n }\n /**\n * Creates a packable function out of the provided value\n * @param x the value to pack\n * @returns Function\n */\n Packer.prototype.packable = function (x) {\n var _this = this;\n if (x === null) {\n return function () { return _this._ch.writeUInt8(NULL); };\n }\n else if (x === true) {\n return function () { return _this._ch.writeUInt8(TRUE); };\n }\n else if (x === false) {\n return function () { return _this._ch.writeUInt8(FALSE); };\n }\n else if (typeof x === 'number') {\n return function () { return _this.packFloat(x); };\n }\n else if (typeof x === 'string') {\n return function () { return _this.packString(x); };\n }\n else if (typeof x === 'bigint') {\n return function () { return _this.packInteger((0, neo4j_driver_core_1.int)(x)); };\n }\n else if ((0, neo4j_driver_core_1.isInt)(x)) {\n return function () { return _this.packInteger(x); };\n }\n else if (x instanceof Int8Array) {\n return function () { return _this.packBytes(x); };\n }\n else if (x instanceof Array) {\n return function () {\n _this.packListHeader(x.length);\n for (var i_1 = 0; i_1 < x.length; i_1++) {\n _this.packable(x[i_1] === undefined ? null : x[i_1])();\n }\n };\n }\n else if (isIterable(x)) {\n return this.packableIterable(x);\n }\n else if (x instanceof neo4j_driver_core_1.Node) {\n return this._nonPackableValue(\"It is not allowed to pass nodes in query parameters, given: \" + x);\n }\n else if (x instanceof neo4j_driver_core_1.Relationship) {\n return this._nonPackableValue(\"It is not allowed to pass relationships in query parameters, given: \" + x);\n }\n else if (x instanceof neo4j_driver_core_1.Path) {\n return this._nonPackableValue(\"It is not allowed to pass paths in query parameters, given: \" + x);\n }\n else if (x instanceof Structure) {\n var packableFields = [];\n for (var i = 0; i < x.fields.length; i++) {\n packableFields[i] = this.packable(x.fields[i]);\n }\n return function () { return _this.packStruct(x.signature, packableFields); };\n }\n else if (typeof x === 'object') {\n return function () {\n var keys = Object.keys(x);\n var count = 0;\n for (var i_2 = 0; i_2 < keys.length; i_2++) {\n if (x[keys[i_2]] !== undefined) {\n count++;\n }\n }\n _this.packMapHeader(count);\n for (var i_3 = 0; i_3 < keys.length; i_3++) {\n var key = keys[i_3];\n if (x[key] !== undefined) {\n _this.packString(key);\n _this.packable(x[key])();\n }\n }\n };\n }\n else {\n return this._nonPackableValue(\"Unable to pack the given value: \" + x);\n }\n };\n Packer.prototype.packableIterable = function (iterable) {\n try {\n var array = Array.from(iterable);\n return this.packable(array);\n }\n catch (e) {\n // handle errors from iterable to array conversion\n throw (0, neo4j_driver_core_1.newError)(\"Cannot pack given iterable, \" + e.message + \": \" + iterable);\n }\n };\n /**\n * Packs a struct\n * @param signature the signature of the struct\n * @param packableFields the fields of the struct, make sure you call `packable on all fields`\n */\n Packer.prototype.packStruct = function (signature, packableFields) {\n packableFields = packableFields || [];\n this.packStructHeader(packableFields.length, signature);\n for (var i = 0; i < packableFields.length; i++) {\n packableFields[i]();\n }\n };\n Packer.prototype.packInteger = function (x) {\n var high = x.high;\n var low = x.low;\n if (x.greaterThanOrEqual(-0x10) && x.lessThan(0x80)) {\n this._ch.writeInt8(low);\n }\n else if (x.greaterThanOrEqual(-0x80) && x.lessThan(-0x10)) {\n this._ch.writeUInt8(INT_8);\n this._ch.writeInt8(low);\n }\n else if (x.greaterThanOrEqual(-0x8000) && x.lessThan(0x8000)) {\n this._ch.writeUInt8(INT_16);\n this._ch.writeInt16(low);\n }\n else if (x.greaterThanOrEqual(-0x80000000) && x.lessThan(0x80000000)) {\n this._ch.writeUInt8(INT_32);\n this._ch.writeInt32(low);\n }\n else {\n this._ch.writeUInt8(INT_64);\n this._ch.writeInt32(high);\n this._ch.writeInt32(low);\n }\n };\n Packer.prototype.packFloat = function (x) {\n this._ch.writeUInt8(FLOAT_64);\n this._ch.writeFloat64(x);\n };\n Packer.prototype.packString = function (x) {\n var bytes = channel_1.utf8.encode(x);\n var size = bytes.length;\n if (size < 0x10) {\n this._ch.writeUInt8(TINY_STRING | size);\n this._ch.writeBytes(bytes);\n }\n else if (size < 0x100) {\n this._ch.writeUInt8(STRING_8);\n this._ch.writeUInt8(size);\n this._ch.writeBytes(bytes);\n }\n else if (size < 0x10000) {\n this._ch.writeUInt8(STRING_16);\n this._ch.writeUInt8((size / 256) >> 0);\n this._ch.writeUInt8(size % 256);\n this._ch.writeBytes(bytes);\n }\n else if (size < 0x100000000) {\n this._ch.writeUInt8(STRING_32);\n this._ch.writeUInt8(((size / 16777216) >> 0) % 256);\n this._ch.writeUInt8(((size / 65536) >> 0) % 256);\n this._ch.writeUInt8(((size / 256) >> 0) % 256);\n this._ch.writeUInt8(size % 256);\n this._ch.writeBytes(bytes);\n }\n else {\n throw (0, neo4j_driver_core_1.newError)('UTF-8 strings of size ' + size + ' are not supported');\n }\n };\n Packer.prototype.packListHeader = function (size) {\n if (size < 0x10) {\n this._ch.writeUInt8(TINY_LIST | size);\n }\n else if (size < 0x100) {\n this._ch.writeUInt8(LIST_8);\n this._ch.writeUInt8(size);\n }\n else if (size < 0x10000) {\n this._ch.writeUInt8(LIST_16);\n this._ch.writeUInt8(((size / 256) >> 0) % 256);\n this._ch.writeUInt8(size % 256);\n }\n else if (size < 0x100000000) {\n this._ch.writeUInt8(LIST_32);\n this._ch.writeUInt8(((size / 16777216) >> 0) % 256);\n this._ch.writeUInt8(((size / 65536) >> 0) % 256);\n this._ch.writeUInt8(((size / 256) >> 0) % 256);\n this._ch.writeUInt8(size % 256);\n }\n else {\n throw (0, neo4j_driver_core_1.newError)('Lists of size ' + size + ' are not supported');\n }\n };\n Packer.prototype.packBytes = function (array) {\n if (this._byteArraysSupported) {\n this.packBytesHeader(array.length);\n for (var i = 0; i < array.length; i++) {\n this._ch.writeInt8(array[i]);\n }\n }\n else {\n throw (0, neo4j_driver_core_1.newError)('Byte arrays are not supported by the database this driver is connected to');\n }\n };\n Packer.prototype.packBytesHeader = function (size) {\n if (size < 0x100) {\n this._ch.writeUInt8(BYTES_8);\n this._ch.writeUInt8(size);\n }\n else if (size < 0x10000) {\n this._ch.writeUInt8(BYTES_16);\n this._ch.writeUInt8(((size / 256) >> 0) % 256);\n this._ch.writeUInt8(size % 256);\n }\n else if (size < 0x100000000) {\n this._ch.writeUInt8(BYTES_32);\n this._ch.writeUInt8(((size / 16777216) >> 0) % 256);\n this._ch.writeUInt8(((size / 65536) >> 0) % 256);\n this._ch.writeUInt8(((size / 256) >> 0) % 256);\n this._ch.writeUInt8(size % 256);\n }\n else {\n throw (0, neo4j_driver_core_1.newError)('Byte arrays of size ' + size + ' are not supported');\n }\n };\n Packer.prototype.packMapHeader = function (size) {\n if (size < 0x10) {\n this._ch.writeUInt8(TINY_MAP | size);\n }\n else if (size < 0x100) {\n this._ch.writeUInt8(MAP_8);\n this._ch.writeUInt8(size);\n }\n else if (size < 0x10000) {\n this._ch.writeUInt8(MAP_16);\n this._ch.writeUInt8((size / 256) >> 0);\n this._ch.writeUInt8(size % 256);\n }\n else if (size < 0x100000000) {\n this._ch.writeUInt8(MAP_32);\n this._ch.writeUInt8(((size / 16777216) >> 0) % 256);\n this._ch.writeUInt8(((size / 65536) >> 0) % 256);\n this._ch.writeUInt8(((size / 256) >> 0) % 256);\n this._ch.writeUInt8(size % 256);\n }\n else {\n throw (0, neo4j_driver_core_1.newError)('Maps of size ' + size + ' are not supported');\n }\n };\n Packer.prototype.packStructHeader = function (size, signature) {\n if (size < 0x10) {\n this._ch.writeUInt8(TINY_STRUCT | size);\n this._ch.writeUInt8(signature);\n }\n else if (size < 0x100) {\n this._ch.writeUInt8(STRUCT_8);\n this._ch.writeUInt8(size);\n this._ch.writeUInt8(signature);\n }\n else if (size < 0x10000) {\n this._ch.writeUInt8(STRUCT_16);\n this._ch.writeUInt8((size / 256) >> 0);\n this._ch.writeUInt8(size % 256);\n }\n else {\n throw (0, neo4j_driver_core_1.newError)('Structures of size ' + size + ' are not supported');\n }\n };\n Packer.prototype.disableByteArrays = function () {\n this._byteArraysSupported = false;\n };\n Packer.prototype._nonPackableValue = function (message) {\n return function () {\n throw (0, neo4j_driver_core_1.newError)(message, PROTOCOL_ERROR);\n };\n };\n return Packer;\n}());\nexports.Packer = Packer;\n/**\n * Class to unpack\n * @access private\n */\nvar Unpacker = /** @class */ (function () {\n /**\n * @constructor\n * @param {boolean} disableLosslessIntegers if this unpacker should convert all received integers to native JS numbers.\n * @param {boolean} useBigInt if this unpacker should convert all received integers to Bigint\n */\n function Unpacker(disableLosslessIntegers, useBigInt) {\n if (disableLosslessIntegers === void 0) { disableLosslessIntegers = false; }\n if (useBigInt === void 0) { useBigInt = false; }\n this._disableLosslessIntegers = disableLosslessIntegers;\n this._useBigInt = useBigInt;\n }\n Unpacker.prototype.unpack = function (buffer) {\n var marker = buffer.readUInt8();\n var markerHigh = marker & 0xf0;\n var markerLow = marker & 0x0f;\n if (marker === NULL) {\n return null;\n }\n var boolean = this._unpackBoolean(marker);\n if (boolean !== null) {\n return boolean;\n }\n var numberOrInteger = this._unpackNumberOrInteger(marker, buffer);\n if (numberOrInteger !== null) {\n if ((0, neo4j_driver_core_1.isInt)(numberOrInteger)) {\n if (this._useBigInt) {\n return numberOrInteger.toBigInt();\n }\n else if (this._disableLosslessIntegers) {\n return numberOrInteger.toNumberOrInfinity();\n }\n }\n return numberOrInteger;\n }\n var string = this._unpackString(marker, markerHigh, markerLow, buffer);\n if (string !== null) {\n return string;\n }\n var list = this._unpackList(marker, markerHigh, markerLow, buffer);\n if (list !== null) {\n return list;\n }\n var byteArray = this._unpackByteArray(marker, buffer);\n if (byteArray !== null) {\n return byteArray;\n }\n var map = this._unpackMap(marker, markerHigh, markerLow, buffer);\n if (map !== null) {\n return map;\n }\n var struct = this._unpackStruct(marker, markerHigh, markerLow, buffer);\n if (struct !== null) {\n return struct;\n }\n throw (0, neo4j_driver_core_1.newError)('Unknown packed value with marker ' + marker.toString(16));\n };\n Unpacker.prototype.unpackInteger = function (buffer) {\n var marker = buffer.readUInt8();\n var result = this._unpackInteger(marker, buffer);\n if (result == null) {\n throw (0, neo4j_driver_core_1.newError)('Unable to unpack integer value with marker ' + marker.toString(16));\n }\n return result;\n };\n Unpacker.prototype._unpackBoolean = function (marker) {\n if (marker === TRUE) {\n return true;\n }\n else if (marker === FALSE) {\n return false;\n }\n else {\n return null;\n }\n };\n Unpacker.prototype._unpackNumberOrInteger = function (marker, buffer) {\n if (marker === FLOAT_64) {\n return buffer.readFloat64();\n }\n else {\n return this._unpackInteger(marker, buffer);\n }\n };\n Unpacker.prototype._unpackInteger = function (marker, buffer) {\n if (marker >= 0 && marker < 128) {\n return (0, neo4j_driver_core_1.int)(marker);\n }\n else if (marker >= 240 && marker < 256) {\n return (0, neo4j_driver_core_1.int)(marker - 256);\n }\n else if (marker === INT_8) {\n return (0, neo4j_driver_core_1.int)(buffer.readInt8());\n }\n else if (marker === INT_16) {\n return (0, neo4j_driver_core_1.int)(buffer.readInt16());\n }\n else if (marker === INT_32) {\n var b = buffer.readInt32();\n return (0, neo4j_driver_core_1.int)(b);\n }\n else if (marker === INT_64) {\n var high = buffer.readInt32();\n var low = buffer.readInt32();\n return new neo4j_driver_core_1.Integer(low, high);\n }\n else {\n return null;\n }\n };\n Unpacker.prototype._unpackString = function (marker, markerHigh, markerLow, buffer) {\n if (markerHigh === TINY_STRING) {\n return channel_1.utf8.decode(buffer, markerLow);\n }\n else if (marker === STRING_8) {\n return channel_1.utf8.decode(buffer, buffer.readUInt8());\n }\n else if (marker === STRING_16) {\n return channel_1.utf8.decode(buffer, buffer.readUInt16());\n }\n else if (marker === STRING_32) {\n return channel_1.utf8.decode(buffer, buffer.readUInt32());\n }\n else {\n return null;\n }\n };\n Unpacker.prototype._unpackList = function (marker, markerHigh, markerLow, buffer) {\n if (markerHigh === TINY_LIST) {\n return this._unpackListWithSize(markerLow, buffer);\n }\n else if (marker === LIST_8) {\n return this._unpackListWithSize(buffer.readUInt8(), buffer);\n }\n else if (marker === LIST_16) {\n return this._unpackListWithSize(buffer.readUInt16(), buffer);\n }\n else if (marker === LIST_32) {\n return this._unpackListWithSize(buffer.readUInt32(), buffer);\n }\n else {\n return null;\n }\n };\n Unpacker.prototype._unpackListWithSize = function (size, buffer) {\n var value = [];\n for (var i = 0; i < size; i++) {\n value.push(this.unpack(buffer));\n }\n return value;\n };\n Unpacker.prototype._unpackByteArray = function (marker, buffer) {\n if (marker === BYTES_8) {\n return this._unpackByteArrayWithSize(buffer.readUInt8(), buffer);\n }\n else if (marker === BYTES_16) {\n return this._unpackByteArrayWithSize(buffer.readUInt16(), buffer);\n }\n else if (marker === BYTES_32) {\n return this._unpackByteArrayWithSize(buffer.readUInt32(), buffer);\n }\n else {\n return null;\n }\n };\n Unpacker.prototype._unpackByteArrayWithSize = function (size, buffer) {\n var value = new Int8Array(size);\n for (var i = 0; i < size; i++) {\n value[i] = buffer.readInt8();\n }\n return value;\n };\n Unpacker.prototype._unpackMap = function (marker, markerHigh, markerLow, buffer) {\n if (markerHigh === TINY_MAP) {\n return this._unpackMapWithSize(markerLow, buffer);\n }\n else if (marker === MAP_8) {\n return this._unpackMapWithSize(buffer.readUInt8(), buffer);\n }\n else if (marker === MAP_16) {\n return this._unpackMapWithSize(buffer.readUInt16(), buffer);\n }\n else if (marker === MAP_32) {\n return this._unpackMapWithSize(buffer.readUInt32(), buffer);\n }\n else {\n return null;\n }\n };\n Unpacker.prototype._unpackMapWithSize = function (size, buffer) {\n var value = {};\n for (var i = 0; i < size; i++) {\n var key = this.unpack(buffer);\n value[key] = this.unpack(buffer);\n }\n return value;\n };\n Unpacker.prototype._unpackStruct = function (marker, markerHigh, markerLow, buffer) {\n try {\n if (markerHigh === TINY_STRUCT) {\n return this._unpackStructWithSize(markerLow, buffer);\n }\n else if (marker === STRUCT_8) {\n return this._unpackStructWithSize(buffer.readUInt8(), buffer);\n }\n else if (marker === STRUCT_16) {\n return this._unpackStructWithSize(buffer.readUInt16(), buffer);\n }\n else {\n return null;\n }\n }\n catch (error) {\n return objectUtil.createBrokenObject(error);\n }\n };\n Unpacker.prototype._unpackStructWithSize = function (structSize, buffer) {\n var signature = buffer.readUInt8();\n if (signature === NODE) {\n return this._unpackNode(structSize, buffer);\n }\n else if (signature === RELATIONSHIP) {\n return this._unpackRelationship(structSize, buffer);\n }\n else if (signature === UNBOUND_RELATIONSHIP) {\n return this._unpackUnboundRelationship(structSize, buffer);\n }\n else if (signature === PATH) {\n return this._unpackPath(structSize, buffer);\n }\n else {\n return this._unpackUnknownStruct(signature, structSize, buffer);\n }\n };\n Unpacker.prototype._unpackNode = function (structSize, buffer) {\n this._verifyStructSize('Node', NODE_STRUCT_SIZE, structSize);\n return new neo4j_driver_core_1.Node(this.unpack(buffer), // Identity\n this.unpack(buffer), // Labels\n this.unpack(buffer) // Properties\n );\n };\n Unpacker.prototype._unpackRelationship = function (structSize, buffer) {\n this._verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE, structSize);\n return new neo4j_driver_core_1.Relationship(this.unpack(buffer), // Identity\n this.unpack(buffer), // Start Node Identity\n this.unpack(buffer), // End Node Identity\n this.unpack(buffer), // Type\n this.unpack(buffer) // Properties\n );\n };\n Unpacker.prototype._unpackUnboundRelationship = function (structSize, buffer) {\n this._verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE, structSize);\n return new neo4j_driver_core_1.UnboundRelationship(this.unpack(buffer), // Identity\n this.unpack(buffer), // Type\n this.unpack(buffer) // Properties\n );\n };\n Unpacker.prototype._unpackPath = function (structSize, buffer) {\n this._verifyStructSize('Path', PATH_STRUCT_SIZE, structSize);\n var nodes = this.unpack(buffer);\n var rels = this.unpack(buffer);\n var sequence = this.unpack(buffer);\n var segments = [];\n var prevNode = nodes[0];\n for (var i = 0; i < sequence.length; i += 2) {\n var nextNode = nodes[sequence[i + 1]];\n var relIndex = (0, neo4j_driver_core_1.toNumber)(sequence[i]);\n var rel = void 0;\n if (relIndex > 0) {\n rel = rels[relIndex - 1];\n if (rel instanceof neo4j_driver_core_1.UnboundRelationship) {\n // To avoid duplication, relationships in a path do not contain\n // information about their start and end nodes, that's instead\n // inferred from the path sequence. This is us inferring (and,\n // for performance reasons remembering) the start/end of a rel.\n rels[relIndex - 1] = rel = rel.bind(prevNode.identity, nextNode.identity);\n }\n }\n else {\n rel = rels[-relIndex - 1];\n if (rel instanceof neo4j_driver_core_1.UnboundRelationship) {\n // See above\n rels[-relIndex - 1] = rel = rel.bind(nextNode.identity, prevNode.identity);\n }\n }\n // Done hydrating one path segment.\n segments.push(new neo4j_driver_core_1.PathSegment(prevNode, rel, nextNode));\n prevNode = nextNode;\n }\n return new neo4j_driver_core_1.Path(nodes[0], nodes[nodes.length - 1], segments);\n };\n Unpacker.prototype._unpackUnknownStruct = function (signature, structSize, buffer) {\n var result = new Structure(signature, []);\n for (var i = 0; i < structSize; i++) {\n result.fields.push(this.unpack(buffer));\n }\n return result;\n };\n Unpacker.prototype._verifyStructSize = function (structName, expectedSize, actualSize) {\n if (expectedSize !== actualSize) {\n throw (0, neo4j_driver_core_1.newError)(\"Wrong struct size for \" + structName + \", expected \" + expectedSize + \" but was \" + actualSize, PROTOCOL_ERROR);\n }\n };\n return Unpacker;\n}());\nexports.Unpacker = Unpacker;\nfunction isIterable(obj) {\n if (obj == null) {\n return false;\n }\n return typeof obj[Symbol.iterator] === 'function';\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Unpacker = exports.Packer = void 0;\nvar v1 = __importStar(require(\"./packstream-v1\"));\nvar utc = __importStar(require(\"./packstream-utc\"));\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar temporal_factory_1 = require(\"./temporal-factory\");\nvar _a = neo4j_driver_core_1.internal.temporalUtil, dateToEpochDay = _a.dateToEpochDay, localDateTimeToEpochSecond = _a.localDateTimeToEpochSecond, localTimeToNanoOfDay = _a.localTimeToNanoOfDay;\nvar POINT_2D = 0x58;\nvar POINT_2D_STRUCT_SIZE = 3;\nvar POINT_3D = 0x59;\nvar POINT_3D_STRUCT_SIZE = 4;\nvar DURATION = 0x45;\nvar DURATION_STRUCT_SIZE = 4;\nvar LOCAL_TIME = 0x74;\nvar LOCAL_TIME_STRUCT_SIZE = 1;\nvar TIME = 0x54;\nvar TIME_STRUCT_SIZE = 2;\nvar DATE = 0x44;\nvar DATE_STRUCT_SIZE = 1;\nvar LOCAL_DATE_TIME = 0x64;\nvar LOCAL_DATE_TIME_STRUCT_SIZE = 2;\nvar DATE_TIME_WITH_ZONE_OFFSET = 0x46;\nvar DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE = 3;\nvar DATE_TIME_WITH_ZONE_ID = 0x66;\nvar DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE = 3;\nvar Packer = /** @class */ (function (_super) {\n __extends(Packer, _super);\n function Packer() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Packer.prototype.disableByteArrays = function () {\n throw new Error('Bolt V2 should always support byte arrays');\n };\n Packer.prototype.packable = function (obj) {\n var _this = this;\n if ((0, neo4j_driver_core_1.isPoint)(obj)) {\n return function () { return packPoint(obj, _this); };\n }\n else if ((0, neo4j_driver_core_1.isDuration)(obj)) {\n return function () { return packDuration(obj, _this); };\n }\n else if ((0, neo4j_driver_core_1.isLocalTime)(obj)) {\n return function () { return packLocalTime(obj, _this); };\n }\n else if ((0, neo4j_driver_core_1.isTime)(obj)) {\n return function () { return packTime(obj, _this); };\n }\n else if ((0, neo4j_driver_core_1.isDate)(obj)) {\n return function () { return packDate(obj, _this); };\n }\n else if ((0, neo4j_driver_core_1.isLocalDateTime)(obj)) {\n return function () { return packLocalDateTime(obj, _this); };\n }\n else if ((0, neo4j_driver_core_1.isDateTime)(obj) && this.useUtc) {\n return function () { return utc.packDateTime(obj, _this); };\n }\n else if ((0, neo4j_driver_core_1.isDateTime)(obj) && !this.useUtc) {\n return function () { return packDateTime(obj, _this); };\n }\n else {\n return _super.prototype.packable.call(this, obj);\n }\n };\n return Packer;\n}(v1.Packer));\nexports.Packer = Packer;\nvar Unpacker = /** @class */ (function (_super) {\n __extends(Unpacker, _super);\n /**\n * @constructor\n * @param {boolean} disableLosslessIntegers if this unpacker should convert all received integers to native JS numbers.\n * @param {boolean} useBigInt if this unpacker should convert all received integers to Bigint\n */\n function Unpacker(disableLosslessIntegers, useBigInt) {\n if (disableLosslessIntegers === void 0) { disableLosslessIntegers = false; }\n if (useBigInt === void 0) { useBigInt = false; }\n return _super.call(this, disableLosslessIntegers, useBigInt) || this;\n }\n Unpacker.prototype._unpackUnknownStruct = function (signature, structSize, buffer) {\n if (signature === POINT_2D) {\n return unpackPoint2D(this, structSize, buffer);\n }\n else if (signature === POINT_3D) {\n return unpackPoint3D(this, structSize, buffer);\n }\n else if (signature === DURATION) {\n return unpackDuration(this, structSize, buffer);\n }\n else if (signature === LOCAL_TIME) {\n return unpackLocalTime(this, structSize, buffer, this._disableLosslessIntegers, this._useBigInt);\n }\n else if (signature === TIME) {\n return unpackTime(this, structSize, buffer, this._disableLosslessIntegers, this._useBigInt);\n }\n else if (signature === DATE) {\n return unpackDate(this, structSize, buffer, this._disableLosslessIntegers, this._useBigInt);\n }\n else if (signature === LOCAL_DATE_TIME) {\n return unpackLocalDateTime(this, structSize, buffer, this._disableLosslessIntegers, this._useBigInt);\n }\n else if (signature === utc.DATE_TIME_WITH_ZONE_OFFSET && this.useUtc) {\n return utc.unpackDateTimeWithZoneOffset(this, structSize, buffer, this._disableLosslessIntegers, this._useBigInt);\n }\n else if (signature === DATE_TIME_WITH_ZONE_OFFSET && !this.useUtc) {\n return unpackDateTimeWithZoneOffset(this, structSize, buffer, this._disableLosslessIntegers, this._useBigInt);\n }\n else if (signature === utc.DATE_TIME_WITH_ZONE_ID && this.useUtc) {\n return utc.unpackDateTimeWithZoneId(this, structSize, buffer, this._disableLosslessIntegers, this._useBigInt);\n }\n else if (signature === DATE_TIME_WITH_ZONE_ID && !this.useUtc) {\n return unpackDateTimeWithZoneId(this, structSize, buffer, this._disableLosslessIntegers, this._useBigInt);\n }\n else {\n return _super.prototype._unpackUnknownStruct.call(this, signature, structSize, buffer, this._disableLosslessIntegers, this._useBigInt);\n }\n };\n return Unpacker;\n}(v1.Unpacker));\nexports.Unpacker = Unpacker;\n/**\n * Pack given 2D or 3D point.\n * @param {Point} point the point value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packPoint(point, packer) {\n var is2DPoint = point.z === null || point.z === undefined;\n if (is2DPoint) {\n packPoint2D(point, packer);\n }\n else {\n packPoint3D(point, packer);\n }\n}\n/**\n * Pack given 2D point.\n * @param {Point} point the point value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packPoint2D(point, packer) {\n var packableStructFields = [\n packer.packable((0, neo4j_driver_core_1.int)(point.srid)),\n packer.packable(point.x),\n packer.packable(point.y)\n ];\n packer.packStruct(POINT_2D, packableStructFields);\n}\n/**\n * Pack given 3D point.\n * @param {Point} point the point value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packPoint3D(point, packer) {\n var packableStructFields = [\n packer.packable((0, neo4j_driver_core_1.int)(point.srid)),\n packer.packable(point.x),\n packer.packable(point.y),\n packer.packable(point.z)\n ];\n packer.packStruct(POINT_3D, packableStructFields);\n}\n/**\n * Unpack 2D point value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @return {Point} the unpacked 2D point value.\n */\nfunction unpackPoint2D(unpacker, structSize, buffer) {\n unpacker._verifyStructSize('Point2D', POINT_2D_STRUCT_SIZE, structSize);\n return new neo4j_driver_core_1.Point(unpacker.unpack(buffer), // srid\n unpacker.unpack(buffer), // x\n unpacker.unpack(buffer), // y\n undefined // z\n );\n}\n/**\n * Unpack 3D point value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @return {Point} the unpacked 3D point value.\n */\nfunction unpackPoint3D(unpacker, structSize, buffer) {\n unpacker._verifyStructSize('Point3D', POINT_3D_STRUCT_SIZE, structSize);\n return new neo4j_driver_core_1.Point(unpacker.unpack(buffer), // srid\n unpacker.unpack(buffer), // x\n unpacker.unpack(buffer), // y\n unpacker.unpack(buffer) // z\n );\n}\n/**\n * Pack given duration.\n * @param {Duration} value the duration value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packDuration(value, packer) {\n var months = (0, neo4j_driver_core_1.int)(value.months);\n var days = (0, neo4j_driver_core_1.int)(value.days);\n var seconds = (0, neo4j_driver_core_1.int)(value.seconds);\n var nanoseconds = (0, neo4j_driver_core_1.int)(value.nanoseconds);\n var packableStructFields = [\n packer.packable(months),\n packer.packable(days),\n packer.packable(seconds),\n packer.packable(nanoseconds)\n ];\n packer.packStruct(DURATION, packableStructFields);\n}\n/**\n * Unpack duration value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @return {Duration} the unpacked duration value.\n */\nfunction unpackDuration(unpacker, structSize, buffer) {\n unpacker._verifyStructSize('Duration', DURATION_STRUCT_SIZE, structSize);\n var months = unpacker.unpack(buffer);\n var days = unpacker.unpack(buffer);\n var seconds = unpacker.unpack(buffer);\n var nanoseconds = unpacker.unpack(buffer);\n return new neo4j_driver_core_1.Duration(months, days, seconds, nanoseconds);\n}\n/**\n * Pack given local time.\n * @param {LocalTime} value the local time value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packLocalTime(value, packer) {\n var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);\n var packableStructFields = [packer.packable(nanoOfDay)];\n packer.packStruct(LOCAL_TIME, packableStructFields);\n}\n/**\n * Unpack local time value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @param {boolean} disableLosslessIntegers if integer properties in the result local time should be native JS numbers.\n * @return {LocalTime} the unpacked local time value.\n */\nfunction unpackLocalTime(unpacker, structSize, buffer, disableLosslessIntegers) {\n unpacker._verifyStructSize('LocalTime', LOCAL_TIME_STRUCT_SIZE, structSize);\n var nanoOfDay = unpacker.unpackInteger(buffer);\n var result = (0, temporal_factory_1.nanoOfDayToLocalTime)(nanoOfDay);\n return convertIntegerPropsIfNeeded(result, disableLosslessIntegers);\n}\n/**\n * Pack given time.\n * @param {Time} value the time value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packTime(value, packer) {\n var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);\n var offsetSeconds = (0, neo4j_driver_core_1.int)(value.timeZoneOffsetSeconds);\n var packableStructFields = [\n packer.packable(nanoOfDay),\n packer.packable(offsetSeconds)\n ];\n packer.packStruct(TIME, packableStructFields);\n}\n/**\n * Unpack time value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @param {boolean} disableLosslessIntegers if integer properties in the result time should be native JS numbers.\n * @return {Time} the unpacked time value.\n */\nfunction unpackTime(unpacker, structSize, buffer, disableLosslessIntegers, useBigInt) {\n unpacker._verifyStructSize('Time', TIME_STRUCT_SIZE, structSize);\n var nanoOfDay = unpacker.unpackInteger(buffer);\n var offsetSeconds = unpacker.unpackInteger(buffer);\n var localTime = (0, temporal_factory_1.nanoOfDayToLocalTime)(nanoOfDay);\n var result = new neo4j_driver_core_1.Time(localTime.hour, localTime.minute, localTime.second, localTime.nanosecond, offsetSeconds);\n return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);\n}\n/**\n * Pack given neo4j date.\n * @param {Date} value the date value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packDate(value, packer) {\n var epochDay = dateToEpochDay(value.year, value.month, value.day);\n var packableStructFields = [packer.packable(epochDay)];\n packer.packStruct(DATE, packableStructFields);\n}\n/**\n * Unpack neo4j date value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @param {boolean} disableLosslessIntegers if integer properties in the result date should be native JS numbers.\n * @return {Date} the unpacked neo4j date value.\n */\nfunction unpackDate(unpacker, structSize, buffer, disableLosslessIntegers, useBigInt) {\n unpacker._verifyStructSize('Date', DATE_STRUCT_SIZE, structSize);\n var epochDay = unpacker.unpackInteger(buffer);\n var result = (0, temporal_factory_1.epochDayToDate)(epochDay);\n return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);\n}\n/**\n * Pack given local date time.\n * @param {LocalDateTime} value the local date time value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packLocalDateTime(value, packer) {\n var epochSecond = localDateTimeToEpochSecond(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);\n var nano = (0, neo4j_driver_core_1.int)(value.nanosecond);\n var packableStructFields = [\n packer.packable(epochSecond),\n packer.packable(nano)\n ];\n packer.packStruct(LOCAL_DATE_TIME, packableStructFields);\n}\n/**\n * Unpack local date time value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @param {boolean} disableLosslessIntegers if integer properties in the result local date-time should be native JS numbers.\n * @return {LocalDateTime} the unpacked local date time value.\n */\nfunction unpackLocalDateTime(unpacker, structSize, buffer, disableLosslessIntegers, useBigInt) {\n unpacker._verifyStructSize('LocalDateTime', LOCAL_DATE_TIME_STRUCT_SIZE, structSize);\n var epochSecond = unpacker.unpackInteger(buffer);\n var nano = unpacker.unpackInteger(buffer);\n var result = (0, temporal_factory_1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);\n return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);\n}\n/**\n * Pack given date time.\n * @param {DateTime} value the date time value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packDateTime(value, packer) {\n if (value.timeZoneId) {\n packDateTimeWithZoneId(value, packer);\n }\n else {\n packDateTimeWithZoneOffset(value, packer);\n }\n}\n/**\n * Pack given date time with zone offset.\n * @param {DateTime} value the date time value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packDateTimeWithZoneOffset(value, packer) {\n var epochSecond = localDateTimeToEpochSecond(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);\n var nano = (0, neo4j_driver_core_1.int)(value.nanosecond);\n var timeZoneOffsetSeconds = (0, neo4j_driver_core_1.int)(value.timeZoneOffsetSeconds);\n var packableStructFields = [\n packer.packable(epochSecond),\n packer.packable(nano),\n packer.packable(timeZoneOffsetSeconds)\n ];\n packer.packStruct(DATE_TIME_WITH_ZONE_OFFSET, packableStructFields);\n}\n/**\n * Unpack date time with zone offset value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @param {boolean} disableLosslessIntegers if integer properties in the result date-time should be native JS numbers.\n * @return {DateTime} the unpacked date time with zone offset value.\n */\nfunction unpackDateTimeWithZoneOffset(unpacker, structSize, buffer, disableLosslessIntegers, useBigInt) {\n unpacker._verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE, structSize);\n var epochSecond = unpacker.unpackInteger(buffer);\n var nano = unpacker.unpackInteger(buffer);\n var timeZoneOffsetSeconds = unpacker.unpackInteger(buffer);\n var localDateTime = (0, temporal_factory_1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);\n var result = new neo4j_driver_core_1.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, timeZoneOffsetSeconds, null);\n return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);\n}\n/**\n * Pack given date time with zone id.\n * @param {DateTime} value the date time value to pack.\n * @param {Packer} packer the packer to use.\n */\nfunction packDateTimeWithZoneId(value, packer) {\n var epochSecond = localDateTimeToEpochSecond(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);\n var nano = (0, neo4j_driver_core_1.int)(value.nanosecond);\n var timeZoneId = value.timeZoneId;\n var packableStructFields = [\n packer.packable(epochSecond),\n packer.packable(nano),\n packer.packable(timeZoneId)\n ];\n packer.packStruct(DATE_TIME_WITH_ZONE_ID, packableStructFields);\n}\n/**\n * Unpack date time with zone id value using the given unpacker.\n * @param {Unpacker} unpacker the unpacker to use.\n * @param {number} structSize the retrieved struct size.\n * @param {BaseBuffer} buffer the buffer to unpack from.\n * @param {boolean} disableLosslessIntegers if integer properties in the result date-time should be native JS numbers.\n * @return {DateTime} the unpacked date time with zone id value.\n */\nfunction unpackDateTimeWithZoneId(unpacker, structSize, buffer, disableLosslessIntegers, useBigInt) {\n unpacker._verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE, structSize);\n var epochSecond = unpacker.unpackInteger(buffer);\n var nano = unpacker.unpackInteger(buffer);\n var timeZoneId = unpacker.unpack(buffer);\n var localDateTime = (0, temporal_factory_1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);\n var result = new neo4j_driver_core_1.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, null, timeZoneId);\n return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);\n}\nfunction convertIntegerPropsIfNeeded(obj, disableLosslessIntegers, useBigInt) {\n if (!disableLosslessIntegers && !useBigInt) {\n return obj;\n }\n var convert = function (value) {\n return useBigInt ? value.toBigInt() : value.toNumberOrInfinity();\n };\n var clone = Object.create(Object.getPrototypeOf(obj));\n for (var prop in obj) {\n if (obj.hasOwnProperty(prop)) {\n var value = obj[prop];\n clone[prop] = (0, neo4j_driver_core_1.isInt)(value) ? convert(value) : value;\n }\n }\n Object.freeze(clone);\n return clone;\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.epochSecondAndNanoToLocalDateTime = exports.nanoOfDayToLocalTime = exports.epochDayToDate = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar _a = neo4j_driver_core_1.internal.temporalUtil, DAYS_0000_TO_1970 = _a.DAYS_0000_TO_1970, DAYS_PER_400_YEAR_CYCLE = _a.DAYS_PER_400_YEAR_CYCLE, NANOS_PER_HOUR = _a.NANOS_PER_HOUR, NANOS_PER_MINUTE = _a.NANOS_PER_MINUTE, NANOS_PER_SECOND = _a.NANOS_PER_SECOND, SECONDS_PER_DAY = _a.SECONDS_PER_DAY, floorDiv = _a.floorDiv, floorMod = _a.floorMod;\n/**\n * Converts given epoch day to a local date.\n * @param {Integer|number|string} epochDay the epoch day to convert.\n * @return {Date} the date representing the epoch day in years, months and days.\n */\nfunction epochDayToDate(epochDay) {\n epochDay = (0, neo4j_driver_core_1.int)(epochDay);\n var zeroDay = epochDay.add(DAYS_0000_TO_1970).subtract(60);\n var adjust = (0, neo4j_driver_core_1.int)(0);\n if (zeroDay.lessThan(0)) {\n var adjustCycles = zeroDay\n .add(1)\n .div(DAYS_PER_400_YEAR_CYCLE)\n .subtract(1);\n adjust = adjustCycles.multiply(400);\n zeroDay = zeroDay.add(adjustCycles.multiply(-DAYS_PER_400_YEAR_CYCLE));\n }\n var year = zeroDay\n .multiply(400)\n .add(591)\n .div(DAYS_PER_400_YEAR_CYCLE);\n var dayOfYearEst = zeroDay.subtract(year\n .multiply(365)\n .add(year.div(4))\n .subtract(year.div(100))\n .add(year.div(400)));\n if (dayOfYearEst.lessThan(0)) {\n year = year.subtract(1);\n dayOfYearEst = zeroDay.subtract(year\n .multiply(365)\n .add(year.div(4))\n .subtract(year.div(100))\n .add(year.div(400)));\n }\n year = year.add(adjust);\n var marchDayOfYear = dayOfYearEst;\n var marchMonth = marchDayOfYear\n .multiply(5)\n .add(2)\n .div(153);\n var month = marchMonth\n .add(2)\n .modulo(12)\n .add(1);\n var day = marchDayOfYear\n .subtract(marchMonth\n .multiply(306)\n .add(5)\n .div(10))\n .add(1);\n year = year.add(marchMonth.div(10));\n return new neo4j_driver_core_1.Date(year, month, day);\n}\nexports.epochDayToDate = epochDayToDate;\n/**\n * Converts nanoseconds of the day into local time.\n * @param {Integer|number|string} nanoOfDay the nanoseconds of the day to convert.\n * @return {LocalTime} the local time representing given nanoseconds of the day.\n */\nfunction nanoOfDayToLocalTime(nanoOfDay) {\n nanoOfDay = (0, neo4j_driver_core_1.int)(nanoOfDay);\n var hour = nanoOfDay.div(NANOS_PER_HOUR);\n nanoOfDay = nanoOfDay.subtract(hour.multiply(NANOS_PER_HOUR));\n var minute = nanoOfDay.div(NANOS_PER_MINUTE);\n nanoOfDay = nanoOfDay.subtract(minute.multiply(NANOS_PER_MINUTE));\n var second = nanoOfDay.div(NANOS_PER_SECOND);\n var nanosecond = nanoOfDay.subtract(second.multiply(NANOS_PER_SECOND));\n return new neo4j_driver_core_1.LocalTime(hour, minute, second, nanosecond);\n}\nexports.nanoOfDayToLocalTime = nanoOfDayToLocalTime;\n/**\n * Converts given epoch second and nanosecond adjustment into a local date time object.\n * @param {Integer|number|string} epochSecond the epoch second to use.\n * @param {Integer|number|string} nano the nanosecond to use.\n * @return {LocalDateTime} the local date time representing given epoch second and nano.\n */\nfunction epochSecondAndNanoToLocalDateTime(epochSecond, nano) {\n var epochDay = floorDiv(epochSecond, SECONDS_PER_DAY);\n var secondsOfDay = floorMod(epochSecond, SECONDS_PER_DAY);\n var nanoOfDay = secondsOfDay.multiply(NANOS_PER_SECOND).add(nano);\n var localDate = epochDayToDate(epochDay);\n var localTime = nanoOfDayToLocalTime(nanoOfDay);\n return new neo4j_driver_core_1.LocalDateTime(localDate.year, localDate.month, localDate.day, localTime.hour, localTime.minute, localTime.second, localTime.nanosecond);\n}\nexports.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDateTime;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DEFAULT_MAX_SIZE = exports.DEFAULT_ACQUISITION_TIMEOUT = exports.PoolConfig = exports.Pool = void 0;\nvar pool_config_1 = __importStar(require(\"./pool-config\"));\nexports.PoolConfig = pool_config_1.default;\nObject.defineProperty(exports, \"DEFAULT_ACQUISITION_TIMEOUT\", { enumerable: true, get: function () { return pool_config_1.DEFAULT_ACQUISITION_TIMEOUT; } });\nObject.defineProperty(exports, \"DEFAULT_MAX_SIZE\", { enumerable: true, get: function () { return pool_config_1.DEFAULT_MAX_SIZE; } });\nvar pool_1 = __importDefault(require(\"./pool\"));\nexports.Pool = pool_1.default;\nexports.default = pool_1.default;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DEFAULT_ACQUISITION_TIMEOUT = exports.DEFAULT_MAX_SIZE = void 0;\nvar DEFAULT_MAX_SIZE = 100;\nexports.DEFAULT_MAX_SIZE = DEFAULT_MAX_SIZE;\nvar DEFAULT_ACQUISITION_TIMEOUT = 60 * 1000; // 60 seconds\nexports.DEFAULT_ACQUISITION_TIMEOUT = DEFAULT_ACQUISITION_TIMEOUT;\nvar PoolConfig = /** @class */ (function () {\n function PoolConfig(maxSize, acquisitionTimeout) {\n this.maxSize = valueOrDefault(maxSize, DEFAULT_MAX_SIZE);\n this.acquisitionTimeout = valueOrDefault(acquisitionTimeout, DEFAULT_ACQUISITION_TIMEOUT);\n }\n PoolConfig.defaultConfig = function () {\n return new PoolConfig(DEFAULT_MAX_SIZE, DEFAULT_ACQUISITION_TIMEOUT);\n };\n PoolConfig.fromDriverConfig = function (config) {\n var maxSizeConfigured = isConfigured(config.maxConnectionPoolSize);\n var maxSize = maxSizeConfigured\n ? config.maxConnectionPoolSize\n : DEFAULT_MAX_SIZE;\n var acquisitionTimeoutConfigured = isConfigured(config.connectionAcquisitionTimeout);\n var acquisitionTimeout = acquisitionTimeoutConfigured\n ? config.connectionAcquisitionTimeout\n : DEFAULT_ACQUISITION_TIMEOUT;\n return new PoolConfig(maxSize, acquisitionTimeout);\n };\n return PoolConfig;\n}());\nexports.default = PoolConfig;\nfunction valueOrDefault(value, defaultValue) {\n return value === 0 || value ? value : defaultValue;\n}\nfunction isConfigured(value) {\n return value === 0 || value;\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar pool_config_1 = __importDefault(require(\"./pool-config\"));\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar Logger = neo4j_driver_core_1.internal.logger.Logger;\nvar Pool = /** @class */ (function () {\n /**\n * @param {function(address: ServerAddress, function(address: ServerAddress, resource: object): Promise): Promise} create\n * an allocation function that creates a promise with a new resource. It's given an address for which to\n * allocate the connection and a function that will return the resource to the pool if invoked, which is\n * meant to be called on .dispose or .close or whatever mechanism the resource uses to finalize.\n * @param {function(resource: object): Promise} destroy\n * called with the resource when it is evicted from this pool\n * @param {function(resource: object): boolean} validate\n * called at various times (like when an instance is acquired and when it is returned.\n * If this returns false, the resource will be evicted\n * @param {function(resource: object, observer: { onError }): void} installIdleObserver\n * called when the resource is released back to pool\n * @param {function(resource: object): void} removeIdleObserver\n * called when the resource is acquired from the pool\n * @param {PoolConfig} config configuration for the new driver.\n * @param {Logger} log the driver logger.\n */\n function Pool(_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.create, create = _c === void 0 ? function (address, release) { return Promise.resolve(); } : _c, _d = _b.destroy, destroy = _d === void 0 ? function (conn) { return Promise.resolve(); } : _d, _e = _b.validate, validate = _e === void 0 ? function (conn) { return true; } : _e, _f = _b.installIdleObserver, installIdleObserver = _f === void 0 ? function (conn, observer) { } : _f, _g = _b.removeIdleObserver, removeIdleObserver = _g === void 0 ? function (conn) { } : _g, _h = _b.config, config = _h === void 0 ? pool_config_1.default.defaultConfig() : _h, _j = _b.log, log = _j === void 0 ? Logger.noOp() : _j;\n this._create = create;\n this._destroy = destroy;\n this._validate = validate;\n this._installIdleObserver = installIdleObserver;\n this._removeIdleObserver = removeIdleObserver;\n this._maxSize = config.maxSize;\n this._acquisitionTimeout = config.acquisitionTimeout;\n this._pools = {};\n this._pendingCreates = {};\n this._acquireRequests = {};\n this._activeResourceCounts = {};\n this._poolState = {};\n this._release = this._release.bind(this);\n this._log = log;\n this._closed = false;\n }\n /**\n * Acquire and idle resource fom the pool or create a new one.\n * @param {ServerAddress} address the address for which we're acquiring.\n * @return {Object} resource that is ready to use.\n */\n Pool.prototype.acquire = function (address) {\n var _this = this;\n return this._acquire(address).then(function (resource) {\n var key = address.asKey();\n if (resource) {\n // New or existing resource acquired\n return resource;\n }\n // We're out of resources and will try to acquire later on when an existing resource is released.\n var allRequests = _this._acquireRequests;\n var requests = allRequests[key];\n if (!requests) {\n allRequests[key] = [];\n }\n return new Promise(function (resolve, reject) {\n var request;\n var timeoutId = setTimeout(function () {\n // acquisition timeout fired\n // remove request from the queue of pending requests, if it's still there\n // request might've been taken out by the release operation\n var pendingRequests = allRequests[key];\n if (pendingRequests) {\n allRequests[key] = pendingRequests.filter(function (item) { return item !== request; });\n }\n if (request.isCompleted()) {\n // request already resolved/rejected by the release operation; nothing to do\n }\n else {\n // request is still pending and needs to be failed\n var activeCount = _this.activeResourceCount(address);\n var idleCount = _this.has(address) ? _this._pools[key].length : 0;\n request.reject((0, neo4j_driver_core_1.newError)(\"Connection acquisition timed out in \" + _this._acquisitionTimeout + \" ms. Pool status: Active conn count = \" + activeCount + \", Idle conn count = \" + idleCount + \".\"));\n }\n }, _this._acquisitionTimeout);\n request = new PendingRequest(key, resolve, reject, timeoutId, _this._log);\n allRequests[key].push(request);\n });\n });\n };\n /**\n * Destroy all idle resources for the given address.\n * @param {ServerAddress} address the address of the server to purge its pool.\n * @returns {Promise} A promise that is resolved when the resources are purged\n */\n Pool.prototype.purge = function (address) {\n return this._purgeKey(address.asKey());\n };\n /**\n * Destroy all idle resources in this pool.\n * @returns {Promise} A promise that is resolved when the resources are purged\n */\n Pool.prototype.close = function () {\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n this._closed = true;\n return [4 /*yield*/, Promise.all(Object.keys(this._pools).map(function (key) { return _this._purgeKey(key); }))];\n case 1: \n /**\n * The lack of Promise consuming was making the driver do not close properly in the scenario\n * captured at result.test.js:it('should handle missing onCompleted'). The test was timing out\n * because while wainting for the driver close.\n *\n * Consuming the Promise.all or by calling then or by awaiting in the result inside this method solved\n * the issue somehow.\n *\n * PS: the return of this method was already awaited at PooledConnectionProvider.close, but the await bellow\n * seems to be need also.\n */\n return [2 /*return*/, _a.sent()];\n }\n });\n });\n };\n /**\n * Keep the idle resources for the provided addresses and purge the rest.\n * @returns {Promise} A promise that is resolved when the other resources are purged\n */\n Pool.prototype.keepAll = function (addresses) {\n var _this = this;\n var keysToKeep = addresses.map(function (a) { return a.asKey(); });\n var keysPresent = Object.keys(this._pools);\n var keysToPurge = keysPresent.filter(function (k) { return keysToKeep.indexOf(k) === -1; });\n return Promise.all(keysToPurge.map(function (key) { return _this._purgeKey(key); }));\n };\n /**\n * Check if this pool contains resources for the given address.\n * @param {ServerAddress} address the address of the server to check.\n * @return {boolean} `true` when pool contains entries for the given key, false otherwise.\n */\n Pool.prototype.has = function (address) {\n return address.asKey() in this._pools;\n };\n /**\n * Get count of active (checked out of the pool) resources for the given key.\n * @param {ServerAddress} address the address of the server to check.\n * @return {number} count of resources acquired by clients.\n */\n Pool.prototype.activeResourceCount = function (address) {\n return this._activeResourceCounts[address.asKey()] || 0;\n };\n Pool.prototype._acquire = function (address) {\n return __awaiter(this, void 0, void 0, function () {\n var key, pool, poolState, resource_1, numConnections, resource;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (this._closed) {\n throw (0, neo4j_driver_core_1.newError)('Pool is closed, it is no more able to serve requests.');\n }\n key = address.asKey();\n pool = this._pools[key];\n poolState = this._poolState[key];\n if (!pool) {\n pool = [];\n poolState = new PoolState();\n this._pools[key] = pool;\n this._pendingCreates[key] = 0;\n this._poolState[key] = poolState;\n }\n _a.label = 1;\n case 1:\n if (!pool.length) return [3 /*break*/, 5];\n resource_1 = pool.pop();\n if (!this._validate(resource_1)) return [3 /*break*/, 2];\n if (this._removeIdleObserver) {\n this._removeIdleObserver(resource_1);\n }\n // idle resource is valid and can be acquired\n resourceAcquired(key, this._activeResourceCounts);\n if (this._log.isDebugEnabled()) {\n this._log.debug(resource_1 + \" acquired from the pool \" + key);\n }\n return [2 /*return*/, resource_1];\n case 2: return [4 /*yield*/, this._destroy(resource_1)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [3 /*break*/, 1];\n case 5:\n // Ensure requested max pool size\n if (this._maxSize > 0) {\n numConnections = this.activeResourceCount(address) + this._pendingCreates[key];\n if (numConnections >= this._maxSize) {\n // Will put this request in queue instead since the pool is full\n return [2 /*return*/, null];\n }\n }\n // there exist no idle valid resources, create a new one for acquisition\n // Keep track of how many pending creates there are to avoid making too many connections.\n this._pendingCreates[key] = this._pendingCreates[key] + 1;\n _a.label = 6;\n case 6:\n _a.trys.push([6, , 8, 9]);\n return [4 /*yield*/, this._create(address, function (address, resource) { return _this._release(poolState, address, resource); })];\n case 7:\n // Invoke callback that creates actual connection\n resource = _a.sent();\n resourceAcquired(key, this._activeResourceCounts);\n if (this._log.isDebugEnabled()) {\n this._log.debug(resource + \" created for the pool \" + key);\n }\n return [3 /*break*/, 9];\n case 8:\n this._pendingCreates[key] = this._pendingCreates[key] - 1;\n return [7 /*endfinally*/];\n case 9: return [2 /*return*/, resource];\n }\n });\n });\n };\n Pool.prototype._release = function (poolState, address, resource) {\n return __awaiter(this, void 0, void 0, function () {\n var key, pool;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = address.asKey();\n pool = this._pools[key];\n if (!(pool && poolState && poolState.isActive())) return [3 /*break*/, 4];\n if (!!this._validate(resource)) return [3 /*break*/, 2];\n if (this._log.isDebugEnabled()) {\n this._log.debug(resource + \" destroyed and can't be released to the pool \" + key + \" because it is not functional\");\n }\n return [4 /*yield*/, this._destroy(resource)];\n case 1:\n _a.sent();\n return [3 /*break*/, 3];\n case 2:\n if (this._installIdleObserver) {\n this._installIdleObserver(resource, {\n onError: function (error) {\n _this._log.debug(\"Idle connection \" + resource + \" destroyed because of error: \" + error);\n var pool = _this._pools[key];\n if (pool) {\n _this._pools[key] = pool.filter(function (r) { return r !== resource; });\n }\n // let's not care about background clean-ups due to errors but just trigger the destroy\n // process for the resource, we especially catch any errors and ignore them to avoid\n // unhandled promise rejection warnings\n _this._destroy(resource).catch(function () { });\n }\n });\n }\n pool.push(resource);\n if (this._log.isDebugEnabled()) {\n this._log.debug(resource + \" released to the pool \" + key);\n }\n _a.label = 3;\n case 3: return [3 /*break*/, 6];\n case 4:\n // key has been purged, don't put it back, just destroy the resource\n if (this._log.isDebugEnabled()) {\n this._log.debug(resource + \" destroyed and can't be released to the pool \" + key + \" because pool has been purged\");\n }\n return [4 /*yield*/, this._destroy(resource)];\n case 5:\n _a.sent();\n _a.label = 6;\n case 6:\n resourceReleased(key, this._activeResourceCounts);\n this._processPendingAcquireRequests(address);\n return [2 /*return*/];\n }\n });\n });\n };\n Pool.prototype._purgeKey = function (key) {\n return __awaiter(this, void 0, void 0, function () {\n var pool, poolState, destructionList, resource;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n pool = this._pools[key] || [];\n poolState = this._poolState[key] || new PoolState();\n destructionList = [];\n while (pool.length) {\n resource = pool.pop();\n if (this._removeIdleObserver) {\n this._removeIdleObserver(resource);\n }\n destructionList.push(this._destroy(resource));\n }\n poolState.close();\n delete this._pools[key];\n delete this._poolState[key];\n return [4 /*yield*/, Promise.all(destructionList)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n Pool.prototype._processPendingAcquireRequests = function (address) {\n var _this = this;\n var key = address.asKey();\n var requests = this._acquireRequests[key];\n var poolState = this._poolState[key];\n if (requests) {\n var pendingRequest_1 = requests.shift(); // pop a pending acquire request\n if (pendingRequest_1) {\n this._acquire(address)\n .catch(function (error) {\n // failed to acquire/create a new connection to resolve the pending acquire request\n // propagate the error by failing the pending request\n pendingRequest_1.reject(error);\n return null;\n })\n .then(function (resource) {\n if (resource) {\n // managed to acquire a valid resource from the pool\n if (pendingRequest_1.isCompleted()) {\n // request has been completed, most likely failed by a timeout\n // return the acquired resource back to the pool\n _this._release(poolState, address, resource);\n }\n else {\n // request is still pending and can be resolved with the newly acquired resource\n pendingRequest_1.resolve(resource); // resolve the pending request with the acquired resource\n }\n }\n });\n }\n else {\n delete this._acquireRequests[key];\n }\n }\n };\n return Pool;\n}());\n/**\n * Increment active (checked out of the pool) resource counter.\n * @param {string} key the resource group identifier (server address for connections).\n * @param {Object.} activeResourceCounts the object holding active counts per key.\n */\nfunction resourceAcquired(key, activeResourceCounts) {\n var currentCount = activeResourceCounts[key] || 0;\n activeResourceCounts[key] = currentCount + 1;\n}\n/**\n * Decrement active (checked out of the pool) resource counter.\n * @param {string} key the resource group identifier (server address for connections).\n * @param {Object.} activeResourceCounts the object holding active counts per key.\n */\nfunction resourceReleased(key, activeResourceCounts) {\n var currentCount = activeResourceCounts[key] || 0;\n var nextCount = currentCount - 1;\n if (nextCount > 0) {\n activeResourceCounts[key] = nextCount;\n }\n else {\n delete activeResourceCounts[key];\n }\n}\nvar PendingRequest = /** @class */ (function () {\n function PendingRequest(key, resolve, reject, timeoutId, log) {\n this._key = key;\n this._resolve = resolve;\n this._reject = reject;\n this._timeoutId = timeoutId;\n this._log = log;\n this._completed = false;\n }\n PendingRequest.prototype.isCompleted = function () {\n return this._completed;\n };\n PendingRequest.prototype.resolve = function (resource) {\n if (this._completed) {\n return;\n }\n this._completed = true;\n clearTimeout(this._timeoutId);\n if (this._log.isDebugEnabled()) {\n this._log.debug(resource + \" acquired from the pool \" + this._key);\n }\n this._resolve(resource);\n };\n PendingRequest.prototype.reject = function (error) {\n if (this._completed) {\n return;\n }\n this._completed = true;\n clearTimeout(this._timeoutId);\n this._reject(error);\n };\n return PendingRequest;\n}());\nvar PoolState = /** @class */ (function () {\n function PoolState() {\n this._active = true;\n }\n PoolState.prototype.isActive = function () {\n return this._active;\n };\n PoolState.prototype.close = function () {\n this._active = false;\n };\n return PoolState;\n}());\nexports.default = Pool;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RoutingTable = exports.Rediscovery = void 0;\nvar rediscovery_1 = __importDefault(require(\"./rediscovery\"));\nexports.Rediscovery = rediscovery_1.default;\nvar routing_table_1 = __importDefault(require(\"./routing-table\"));\nexports.RoutingTable = routing_table_1.default;\nexports.default = rediscovery_1.default;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar routing_table_1 = __importDefault(require(\"./routing-table\"));\nvar bolt_1 = require(\"../bolt\");\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar SERVICE_UNAVAILABLE = neo4j_driver_core_1.error.SERVICE_UNAVAILABLE;\nvar PROCEDURE_NOT_FOUND_CODE = 'Neo.ClientError.Procedure.ProcedureNotFound';\nvar DATABASE_NOT_FOUND_CODE = 'Neo.ClientError.Database.DatabaseNotFound';\nvar Rediscovery = /** @class */ (function () {\n /**\n * @constructor\n * @param {object} routingContext\n */\n function Rediscovery(routingContext) {\n this._routingContext = routingContext;\n }\n /**\n * Try to fetch new routing table from the given router.\n * @param {Session} session the session to use.\n * @param {string} database the database for which to lookup routing table.\n * @param {ServerAddress} routerAddress the URL of the router.\n * @param {string} impersonatedUser The impersonated user\n * @return {Promise} promise resolved with new routing table or null when connection error happened.\n */\n Rediscovery.prototype.lookupRoutingTableOnRouter = function (session, database, routerAddress, impersonatedUser) {\n var _this = this;\n return session._acquireConnection(function (connection) {\n return _this._requestRawRoutingTable(connection, session, database, routerAddress, impersonatedUser).then(function (rawRoutingTable) {\n if (rawRoutingTable.isNull) {\n return null;\n }\n return routing_table_1.default.fromRawRoutingTable(database, routerAddress, rawRoutingTable);\n });\n });\n };\n Rediscovery.prototype._requestRawRoutingTable = function (connection, session, database, routerAddress, impersonatedUser) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n connection.protocol().requestRoutingInformation({\n routingContext: _this._routingContext,\n databaseName: database,\n impersonatedUser: impersonatedUser,\n sessionContext: {\n bookmark: session._lastBookmark,\n mode: session._mode,\n database: session._database,\n afterComplete: session._onComplete\n },\n onCompleted: resolve,\n onError: function (error) {\n if (error.code === DATABASE_NOT_FOUND_CODE) {\n reject(error);\n }\n else if (error.code === PROCEDURE_NOT_FOUND_CODE) {\n // throw when getServers procedure not found because this is clearly a configuration issue\n reject((0, neo4j_driver_core_1.newError)(\"Server at \" + routerAddress.asHostPort() + \" can't perform routing. Make sure you are connecting to a causal cluster\", SERVICE_UNAVAILABLE));\n }\n else {\n // return nothing when failed to connect because code higher in the callstack is still able to retry with a\n // different session towards a different router\n resolve(bolt_1.RawRoutingTable.ofNull());\n }\n }\n });\n });\n };\n return Rediscovery;\n}());\nexports.default = Rediscovery;\n","\"use strict\";\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createValidRoutingTable = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar neo4j_driver_core_1 = require(\"neo4j-driver-core\");\nvar _a = neo4j_driver_core_1.internal.constants, WRITE = _a.ACCESS_MODE_WRITE, READ = _a.ACCESS_MODE_READ, ServerAddress = neo4j_driver_core_1.internal.serverAddress.ServerAddress;\nvar PROTOCOL_ERROR = neo4j_driver_core_1.error.PROTOCOL_ERROR;\nvar MIN_ROUTERS = 1;\n/**\n * The routing table object used to determine the role of the servers in the driver.\n */\nvar RoutingTable = /** @class */ (function () {\n function RoutingTable(_a) {\n var _b = _a === void 0 ? {} : _a, database = _b.database, routers = _b.routers, readers = _b.readers, writers = _b.writers, expirationTime = _b.expirationTime, ttl = _b.ttl;\n this.database = database || null;\n this.databaseName = database || 'default database';\n this.routers = routers || [];\n this.readers = readers || [];\n this.writers = writers || [];\n this.expirationTime = expirationTime || (0, neo4j_driver_core_1.int)(0);\n this.ttl = ttl;\n }\n /**\n * Create a valid routing table from a raw object\n *\n * @param {string} database the database name. It is used for logging purposes\n * @param {ServerAddress} routerAddress The router address, it is used for loggin purposes\n * @param {RawRoutingTable} rawRoutingTable Method used to get the raw routing table to be processed\n * @param {RoutingTable} The valid Routing Table\n */\n RoutingTable.fromRawRoutingTable = function (database, routerAddress, rawRoutingTable) {\n return createValidRoutingTable(database, routerAddress, rawRoutingTable);\n };\n RoutingTable.prototype.forget = function (address) {\n // Don't remove it from the set of routers, since that might mean we lose our ability to re-discover,\n // just remove it from the set of readers and writers, so that we don't use it for actual work without\n // performing discovery first.\n this.readers = removeFromArray(this.readers, address);\n this.writers = removeFromArray(this.writers, address);\n };\n RoutingTable.prototype.forgetRouter = function (address) {\n this.routers = removeFromArray(this.routers, address);\n };\n RoutingTable.prototype.forgetWriter = function (address) {\n this.writers = removeFromArray(this.writers, address);\n };\n /**\n * Check if this routing table is fresh to perform the required operation.\n * @param {string} accessMode the type of operation. Allowed values are {@link READ} and {@link WRITE}.\n * @return {boolean} `true` when this table contains servers to serve the required operation, `false` otherwise.\n */\n RoutingTable.prototype.isStaleFor = function (accessMode) {\n return (this.expirationTime.lessThan(Date.now()) ||\n this.routers.length < MIN_ROUTERS ||\n (accessMode === READ && this.readers.length === 0) ||\n (accessMode === WRITE && this.writers.length === 0));\n };\n /**\n * Check if this routing table is expired for specified amount of duration\n *\n * @param {Integer} duration amount of duration in milliseconds to check for expiration\n * @returns {boolean}\n */\n RoutingTable.prototype.isExpiredFor = function (duration) {\n return this.expirationTime.add(duration).lessThan(Date.now());\n };\n RoutingTable.prototype.allServers = function () {\n return __spreadArray(__spreadArray(__spreadArray([], __read(this.routers), false), __read(this.readers), false), __read(this.writers), false);\n };\n RoutingTable.prototype.toString = function () {\n return ('RoutingTable[' +\n (\"database=\" + this.databaseName + \", \") +\n (\"expirationTime=\" + this.expirationTime + \", \") +\n (\"currentTime=\" + Date.now() + \", \") +\n (\"routers=[\" + this.routers + \"], \") +\n (\"readers=[\" + this.readers + \"], \") +\n (\"writers=[\" + this.writers + \"]]\"));\n };\n return RoutingTable;\n}());\nexports.default = RoutingTable;\n/**\n * Remove all occurrences of the element in the array.\n * @param {Array} array the array to filter.\n * @param {Object} element the element to remove.\n * @return {Array} new filtered array.\n */\nfunction removeFromArray(array, element) {\n return array.filter(function (item) { return item.asKey() !== element.asKey(); });\n}\n/**\n * Create a valid routing table from a raw object\n *\n * @param {string} db the database name. It is used for logging purposes\n * @param {ServerAddress} routerAddress The router address, it is used for loggin purposes\n * @param {RawRoutingTable} rawRoutingTable Method used to get the raw routing table to be processed\n * @param {RoutingTable} The valid Routing Table\n */\nfunction createValidRoutingTable(database, routerAddress, rawRoutingTable) {\n var ttl = rawRoutingTable.ttl;\n var expirationTime = calculateExpirationTime(rawRoutingTable, routerAddress);\n var _a = parseServers(rawRoutingTable, routerAddress), routers = _a.routers, readers = _a.readers, writers = _a.writers;\n assertNonEmpty(routers, 'routers', routerAddress);\n assertNonEmpty(readers, 'readers', routerAddress);\n return new RoutingTable({\n database: database || rawRoutingTable.db,\n routers: routers,\n readers: readers,\n writers: writers,\n expirationTime: expirationTime,\n ttl: ttl\n });\n}\nexports.createValidRoutingTable = createValidRoutingTable;\n/**\n * Parse server from the RawRoutingTable.\n *\n * @param {RawRoutingTable} rawRoutingTable the raw routing table\n * @param {string} routerAddress the router address\n * @returns {Object} The object with the list of routers, readers and writers\n */\nfunction parseServers(rawRoutingTable, routerAddress) {\n try {\n var routers_1 = [];\n var readers_1 = [];\n var writers_1 = [];\n rawRoutingTable.servers.forEach(function (server) {\n var role = server.role;\n var addresses = server.addresses;\n if (role === 'ROUTE') {\n routers_1 = parseArray(addresses).map(function (address) {\n return ServerAddress.fromUrl(address);\n });\n }\n else if (role === 'WRITE') {\n writers_1 = parseArray(addresses).map(function (address) {\n return ServerAddress.fromUrl(address);\n });\n }\n else if (role === 'READ') {\n readers_1 = parseArray(addresses).map(function (address) {\n return ServerAddress.fromUrl(address);\n });\n }\n });\n return {\n routers: routers_1,\n readers: readers_1,\n writers: writers_1\n };\n }\n catch (error) {\n throw (0, neo4j_driver_core_1.newError)(\"Unable to parse servers entry from router \" + routerAddress + \" from addresses:\\n\" + neo4j_driver_core_1.json.stringify(rawRoutingTable.servers) + \"\\nError message: \" + error.message, PROTOCOL_ERROR);\n }\n}\n/**\n * Call the expiration time using the ttls from the raw routing table and return it\n *\n * @param {RawRoutingTable} rawRoutingTable the routing table\n * @param {string} routerAddress the router address\n * @returns {number} the ttl\n */\nfunction calculateExpirationTime(rawRoutingTable, routerAddress) {\n try {\n var now = (0, neo4j_driver_core_1.int)(Date.now());\n var expires = (0, neo4j_driver_core_1.int)(rawRoutingTable.ttl)\n .multiply(1000)\n .add(now);\n // if the server uses a really big expire time like Long.MAX_VALUE this may have overflowed\n if (expires.lessThan(now)) {\n return neo4j_driver_core_1.Integer.MAX_VALUE;\n }\n return expires;\n }\n catch (error) {\n throw (0, neo4j_driver_core_1.newError)(\"Unable to parse TTL entry from router \" + routerAddress + \" from raw routing table:\\n\" + neo4j_driver_core_1.json.stringify(rawRoutingTable) + \"\\nError message: \" + error.message, PROTOCOL_ERROR);\n }\n}\n/**\n * Assert if serverAddressesArray is not empty, throws and PROTOCOL_ERROR otherwise\n *\n * @param {string[]} serverAddressesArray array of addresses\n * @param {string} serversName the server name\n * @param {string} routerAddress the router address\n */\nfunction assertNonEmpty(serverAddressesArray, serversName, routerAddress) {\n if (serverAddressesArray.length === 0) {\n throw (0, neo4j_driver_core_1.newError)('Received no ' + serversName + ' from router ' + routerAddress, PROTOCOL_ERROR);\n }\n}\nfunction parseArray(addresses) {\n if (!Array.isArray(addresses)) {\n throw new TypeError('Array expected but got: ' + addresses);\n }\n return Array.from(addresses);\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * @property {function(username: string, password: string, realm: ?string)} basic the function to create a\n * basic authentication token.\n * @property {function(base64EncodedTicket: string)} kerberos the function to create a Kerberos authentication token.\n * Accepts a single string argument - base64 encoded Kerberos ticket.\n * @property {function(base64EncodedTicket: string)} bearer the function to create a Bearer authentication token.\n * Accepts a single string argument - base64 encoded Bearer ticket.\n * @property {function(principal: string, credentials: string, realm: string, scheme: string, parameters: ?object)} custom\n * the function to create a custom authentication token.\n */\nvar auth = {\n basic: function (username, password, realm) {\n if (realm) {\n return {\n scheme: 'basic',\n principal: username,\n credentials: password,\n realm: realm\n };\n }\n else {\n return { scheme: 'basic', principal: username, credentials: password };\n }\n },\n kerberos: function (base64EncodedTicket) {\n return {\n scheme: 'kerberos',\n principal: '',\n credentials: base64EncodedTicket\n };\n },\n bearer: function (base64EncodedToken) {\n return {\n scheme: 'bearer',\n credentials: base64EncodedToken\n };\n },\n custom: function (principal, credentials, realm, scheme, parameters) {\n if (parameters) {\n return {\n scheme: scheme,\n principal: principal,\n credentials: credentials,\n realm: realm,\n parameters: parameters\n };\n }\n else {\n return {\n scheme: scheme,\n principal: principal,\n credentials: credentials,\n realm: realm\n };\n }\n }\n};\nexports.default = auth;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Inteface define a common way to acquire a connection\n *\n * @private\n */\nvar ConnectionProvider = /** @class */ (function () {\n function ConnectionProvider() {\n }\n /**\n * This method acquires a connection against the specified database.\n *\n * Access mode and Bookmarks only applies to routing driver. Access mode only\n * differentiates the target server for the connection, where WRITE selects a\n * WRITER server, whereas READ selects a READ server. Bookmarks, when specified,\n * is only passed to the routing discovery procedure, for the system database to\n * synchronize on creation of databases and is never used in direct drivers.\n *\n * @param {object} param - object parameter\n * @property {string} param.accessMode - the access mode for the to-be-acquired connection\n * @property {string} param.database - the target database for the to-be-acquired connection\n * @property {Bookmark} param.bookmarks - the bookmarks to send to routing discovery\n * @property {string} param.impersonatedUser - the impersonated user\n * @property {function (databaseName:string?)} param.onDatabaseNameResolved - Callback called when the database name get resolved\n */\n ConnectionProvider.prototype.acquireConnection = function (param) {\n throw Error('Not implemented');\n };\n /**\n * This method checks whether the backend database supports multi database functionality\n * by checking protocol handshake result.\n *\n * @returns {Promise}\n */\n ConnectionProvider.prototype.supportsMultiDb = function () {\n throw Error('Not implemented');\n };\n /**\n * This method checks whether the backend database supports transaction config functionality\n * by checking protocol handshake result.\n *\n * @returns {Promise}\n */\n ConnectionProvider.prototype.supportsTransactionConfig = function () {\n throw Error('Not implemented');\n };\n /**\n * This method checks whether the backend database supports transaction config functionality\n * by checking protocol handshake result.\n *\n * @returns {Promise}\n */\n ConnectionProvider.prototype.supportsUserImpersonation = function () {\n throw Error('Not implemented');\n };\n /**\n * Closes this connection provider along with its internals (connections, pools, etc.)\n *\n * @returns {Promise}\n */\n ConnectionProvider.prototype.close = function () {\n throw Error('Not implemented');\n };\n return ConnectionProvider;\n}());\nexports.default = ConnectionProvider;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Interface which defines the raw connection with the database\n * @private\n */\nvar Connection = /** @class */ (function () {\n function Connection() {\n this.id = \"\";\n this.databaseId = \"\";\n }\n /**\n * @returns {boolean} whether this connection is in a working condition\n */\n Connection.prototype.isOpen = function () {\n return false;\n };\n /**\n * @todo be removed and internalize the methods\n * @returns {any} the underlying bolt protocol assigned to this connection\n */\n Connection.prototype.protocol = function () {\n throw Error('Not implemented');\n };\n /**\n * Connect to the target address, negotiate Bolt protocol and send initialization message.\n * @param {string} userAgent the user agent for this driver.\n * @param {Object} authToken the object containing auth information.\n * @return {Promise} promise resolved with the current connection if connection is successful. Rejected promise otherwise.\n */\n Connection.prototype.connect = function (userAgent, authToken) {\n throw Error('Not implemented');\n };\n /**\n * Write a message to the network channel.\n * @param {RequestMessage} message the message to write.\n * @param {ResultStreamObserver} observer the response observer.\n * @param {boolean} flush `true` if flush should happen after the message is written to the buffer.\n */\n Connection.prototype.write = function (message, observer, flush) {\n throw Error('Not implemented');\n };\n /**\n * Send a RESET-message to the database. Message is immediately flushed to the network.\n * @return {Promise} promise resolved when SUCCESS-message response arrives, or failed when other response messages arrives.\n */\n Connection.prototype.resetAndFlush = function () {\n throw Error('Not implemented');\n };\n /**\n * Call close on the channel.\n * @returns {Promise} - A promise that will be resolved when the connection is closed.\n *\n */\n Connection.prototype.close = function () {\n throw Error('Not implemented');\n };\n /**\n * Called to release the connection\n */\n Connection.prototype._release = function () {\n return Promise.resolve();\n };\n return Connection;\n}());\nexports.default = Connection;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WRITE = exports.READ = exports.Driver = void 0;\nvar bookmark_1 = require(\"./internal/bookmark\");\nvar connectivity_verifier_1 = require(\"./internal/connectivity-verifier\");\nvar configured_custom_resolver_1 = __importDefault(require(\"./internal/resolver/configured-custom-resolver\"));\nvar constants_1 = require(\"./internal/constants\");\nvar logger_1 = require(\"./internal/logger\");\nvar session_1 = __importDefault(require(\"./session\"));\nvar util_1 = require(\"./internal/util\");\nvar DEFAULT_MAX_CONNECTION_LIFETIME = 60 * 60 * 1000; // 1 hour\n/**\n * The default record fetch size. This is used in Bolt V4 protocol to pull query execution result in batches.\n * @type {number}\n */\nvar DEFAULT_FETCH_SIZE = 1000;\n/**\n * Constant that represents read session access mode.\n * Should be used like this: `driver.session({ defaultAccessMode: neo4j.session.READ })`.\n * @type {string}\n */\nvar READ = constants_1.ACCESS_MODE_READ;\nexports.READ = READ;\n/**\n * Constant that represents write session access mode.\n * Should be used like this: `driver.session({ defaultAccessMode: neo4j.session.WRITE })`.\n * @type {string}\n */\nvar WRITE = constants_1.ACCESS_MODE_WRITE;\nexports.WRITE = WRITE;\nvar idGenerator = 0;\n/**\n * A driver maintains one or more {@link Session}s with a remote\n * Neo4j instance. Through the {@link Session}s you can send queries\n * and retrieve results from the database.\n *\n * Drivers are reasonably expensive to create - you should strive to keep one\n * driver instance around per Neo4j Instance you connect to.\n *\n * @access public\n */\nvar Driver = /** @class */ (function () {\n /**\n * You should not be calling this directly, instead use {@link driver}.\n * @constructor\n * @protected\n * @param {Object} meta Metainformation about the driver\n * @param {Object} config\n * @param {function(id: number, config:Object, log:Logger, hostNameResolver: ConfiguredCustomResolver): ConnectionProvider } createConnectonProvider Creates the connection provider\n * @param {function(args): Session } createSession Creates the a session\n */\n function Driver(meta, config, createConnectonProvider, createSession) {\n if (config === void 0) { config = {}; }\n if (createSession === void 0) { createSession = function (args) { return new session_1.default(args); }; }\n sanitizeConfig(config);\n validateConfig(config);\n this._id = idGenerator++;\n this._meta = meta;\n this._config = config;\n this._log = logger_1.Logger.create(config);\n this._createConnectionProvider = createConnectonProvider;\n this._createSession = createSession;\n /**\n * Reference to the connection provider. Initialized lazily by {@link _getOrCreateConnectionProvider}.\n * @type {ConnectionProvider}\n * @protected\n */\n this._connectionProvider = null;\n this._afterConstruction();\n }\n /**\n * Verifies connectivity of this driver by trying to open a connection with the provided driver options.\n *\n * @public\n * @param {Object} param - The object parameter\n * @param {string} param.database - The target database to verify connectivity for.\n * @returns {Promise} promise resolved with server info or rejected with error.\n */\n Driver.prototype.verifyConnectivity = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.database, database = _c === void 0 ? '' : _c;\n var connectionProvider = this._getOrCreateConnectionProvider();\n var connectivityVerifier = new connectivity_verifier_1.ConnectivityVerifier(connectionProvider);\n return connectivityVerifier.verify({ database: database });\n };\n /**\n * Returns whether the server supports multi database capabilities based on the protocol\n * version negotiated via handshake.\n *\n * Note that this function call _always_ causes a round-trip to the server.\n *\n * @returns {Promise} promise resolved with a boolean or rejected with error.\n */\n Driver.prototype.supportsMultiDb = function () {\n var connectionProvider = this._getOrCreateConnectionProvider();\n return connectionProvider.supportsMultiDb();\n };\n /**\n * Returns whether the server supports transaction config capabilities based on the protocol\n * version negotiated via handshake.\n *\n * Note that this function call _always_ causes a round-trip to the server.\n *\n * @returns {Promise} promise resolved with a boolean or rejected with error.\n */\n Driver.prototype.supportsTransactionConfig = function () {\n var connectionProvider = this._getOrCreateConnectionProvider();\n return connectionProvider.supportsTransactionConfig();\n };\n /**\n * Returns whether the server supports user impersonation capabilities based on the protocol\n * version negotiated via handshake.\n *\n * Note that this function call _always_ causes a round-trip to the server.\n *\n * @returns {Promise} promise resolved with a boolean or rejected with error.\n */\n Driver.prototype.supportsUserImpersonation = function () {\n var connectionProvider = this._getOrCreateConnectionProvider();\n return connectionProvider.supportsUserImpersonation();\n };\n /**\n * @protected\n * @returns {boolean}\n */\n Driver.prototype._supportsRouting = function () {\n return this._meta.routing;\n };\n /**\n * Returns boolean to indicate if driver has been configured with encryption enabled.\n *\n * @protected\n * @returns {boolean}\n */\n Driver.prototype._isEncrypted = function () {\n return this._config.encrypted === util_1.ENCRYPTION_ON;\n };\n /**\n * Returns the configured trust strategy that the driver has been configured with.\n *\n * @protected\n * @returns {TrustStrategy}\n */\n Driver.prototype._getTrust = function () {\n return this._config.trust;\n };\n /**\n * Acquire a session to communicate with the database. The session will\n * borrow connections from the underlying connection pool as required and\n * should be considered lightweight and disposable.\n *\n * This comes with some responsibility - make sure you always call\n * {@link close} when you are done using a session, and likewise,\n * make sure you don't close your session before you are done using it. Once\n * it is closed, the underlying connection will be released to the connection\n * pool and made available for others to use.\n *\n * @public\n * @param {Object} param - The object parameter\n * @param {string} param.defaultAccessMode=WRITE - The access mode of this session, allowed values are {@link READ} and {@link WRITE}.\n * @param {string|string[]} param.bookmarks - The initial reference or references to some previous\n * transactions. Value is optional and absence indicates that that the bookmarks do not exist or are unknown.\n * @param {number} param.fetchSize - The record fetch size of each batch of this session.\n * Use {@link FETCH_ALL} to always pull all records in one batch. This will override the config value set on driver config.\n * @param {string} param.database - The database this session will operate on.\n * @param {string} param.impersonatedUser - The username which the user wants to impersonate for the duration of the session.\n * @return {Session} new session.\n */\n Driver.prototype.session = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.defaultAccessMode, defaultAccessMode = _c === void 0 ? WRITE : _c, bookmarkOrBookmarks = _b.bookmarks, _d = _b.database, database = _d === void 0 ? '' : _d, impersonatedUser = _b.impersonatedUser, fetchSize = _b.fetchSize;\n return this._newSession({\n defaultAccessMode: defaultAccessMode,\n bookmarkOrBookmarks: bookmarkOrBookmarks,\n database: database,\n reactive: false,\n impersonatedUser: impersonatedUser,\n fetchSize: validateFetchSizeValue(fetchSize, this._config.fetchSize)\n });\n };\n /**\n * Close all open sessions and other associated resources. You should\n * make sure to use this when you are done with this driver instance.\n * @public\n * @return {Promise} promise resolved when the driver is closed.\n */\n Driver.prototype.close = function () {\n this._log.info(\"Driver \" + this._id + \" closing\");\n if (this._connectionProvider) {\n return this._connectionProvider.close();\n }\n return Promise.resolve();\n };\n /**\n * @protected\n */\n Driver.prototype._afterConstruction = function () {\n this._log.info(this._meta.typename + \" driver \" + this._id + \" created for server address \" + this._meta.address);\n };\n /**\n * @private\n */\n Driver.prototype._newSession = function (_a) {\n var defaultAccessMode = _a.defaultAccessMode, bookmarkOrBookmarks = _a.bookmarkOrBookmarks, database = _a.database, reactive = _a.reactive, impersonatedUser = _a.impersonatedUser, fetchSize = _a.fetchSize;\n var sessionMode = session_1.default._validateSessionMode(defaultAccessMode);\n var connectionProvider = this._getOrCreateConnectionProvider();\n var bookmark = bookmarkOrBookmarks\n ? new bookmark_1.Bookmark(bookmarkOrBookmarks)\n : bookmark_1.Bookmark.empty();\n return this._createSession({\n mode: sessionMode,\n database: database || '',\n connectionProvider: connectionProvider,\n bookmark: bookmark,\n config: this._config,\n reactive: reactive,\n impersonatedUser: impersonatedUser,\n fetchSize: fetchSize\n });\n };\n /**\n * @private\n */\n Driver.prototype._getOrCreateConnectionProvider = function () {\n if (!this._connectionProvider) {\n this._connectionProvider = this._createConnectionProvider(this._id, this._config, this._log, createHostNameResolver(this._config));\n }\n return this._connectionProvider;\n };\n return Driver;\n}());\nexports.Driver = Driver;\n/**\n * @private\n * @returns {Object} the given config.\n */\nfunction validateConfig(config) {\n var resolver = config.resolver;\n if (resolver && typeof resolver !== 'function') {\n throw new TypeError(\"Configured resolver should be a function. Got: \" + resolver);\n }\n return config;\n}\n/**\n * @private\n */\nfunction sanitizeConfig(config) {\n config.maxConnectionLifetime = sanitizeIntValue(config.maxConnectionLifetime, DEFAULT_MAX_CONNECTION_LIFETIME);\n config.maxConnectionPoolSize = sanitizeIntValue(config.maxConnectionPoolSize, constants_1.DEFAULT_POOL_MAX_SIZE);\n config.connectionAcquisitionTimeout = sanitizeIntValue(config.connectionAcquisitionTimeout, constants_1.DEFAULT_POOL_ACQUISITION_TIMEOUT);\n config.fetchSize = validateFetchSizeValue(config.fetchSize, DEFAULT_FETCH_SIZE);\n}\n/**\n * @private\n */\nfunction sanitizeIntValue(rawValue, defaultWhenAbsent) {\n var sanitizedValue = parseInt(rawValue, 10);\n if (sanitizedValue > 0 || sanitizedValue === 0) {\n return sanitizedValue;\n }\n else if (sanitizedValue < 0) {\n return Number.MAX_SAFE_INTEGER;\n }\n else {\n return defaultWhenAbsent;\n }\n}\n/**\n * @private\n */\nfunction validateFetchSizeValue(rawValue, defaultWhenAbsent) {\n var fetchSize = parseInt(rawValue, 10);\n if (fetchSize > 0 || fetchSize === constants_1.FETCH_ALL) {\n return fetchSize;\n }\n else if (fetchSize === 0 || fetchSize < 0) {\n throw new Error(\"The fetch size can only be a positive value or \" + constants_1.FETCH_ALL + \" for ALL. However fetchSize = \" + fetchSize);\n }\n else {\n return defaultWhenAbsent;\n }\n}\n/**\n * @private\n * @returns {ConfiguredCustomResolver} new custom resolver that wraps the passed-in resolver function.\n * If resolved function is not specified, it defaults to an identity resolver.\n */\nfunction createHostNameResolver(config) {\n return new configured_custom_resolver_1.default(config.resolver);\n}\nexports.default = Driver;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PROTOCOL_ERROR = exports.SESSION_EXPIRED = exports.SERVICE_UNAVAILABLE = exports.Neo4jError = exports.newError = void 0;\n// A common place for constructing error objects, to keep them\n// uniform across the driver surface.\n/**\n * Error code representing complete loss of service. Used by {@link Neo4jError#code}.\n * @type {string}\n */\nvar SERVICE_UNAVAILABLE = 'ServiceUnavailable';\nexports.SERVICE_UNAVAILABLE = SERVICE_UNAVAILABLE;\n/**\n * Error code representing transient loss of service. Used by {@link Neo4jError#code}.\n * @type {string}\n */\nvar SESSION_EXPIRED = 'SessionExpired';\nexports.SESSION_EXPIRED = SESSION_EXPIRED;\n/**\n * Error code representing serialization/deserialization issue in the Bolt protocol. Used by {@link Neo4jError#code}.\n * @type {string}\n */\nvar PROTOCOL_ERROR = 'ProtocolError';\nexports.PROTOCOL_ERROR = PROTOCOL_ERROR;\n/**\n * Error code representing an no classified error. Used by {@link Neo4jError#code}.\n * @type {string}\n */\nvar NOT_AVAILABLE = 'N/A';\n/// TODO: Remove definitions of this.constructor and this.__proto__\n/**\n * Class for all errors thrown/returned by the driver.\n */\nvar Neo4jError = /** @class */ (function (_super) {\n __extends(Neo4jError, _super);\n /**\n * @constructor\n * @param {string} message - the error message\n * @param {string} code - Optional error code. Will be populated when error originates in the database.\n */\n function Neo4jError(message, code) {\n var _this = _super.call(this, message) || this;\n _this.constructor = Neo4jError;\n // eslint-disable-next-line no-proto\n _this.__proto__ = Neo4jError.prototype;\n _this.code = code;\n _this.name = 'Neo4jError';\n return _this;\n }\n return Neo4jError;\n}(Error));\nexports.Neo4jError = Neo4jError;\n/**\n * Create a new error from a message and error code\n * @param message the error message\n * @param code the error code\n * @return {Neo4jError} an {@link Neo4jError}\n * @private\n */\nfunction newError(message, code) {\n return new Neo4jError(message, code !== null && code !== void 0 ? code : NOT_AVAILABLE);\n}\nexports.newError = newError;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isPathSegment = exports.PathSegment = exports.isPath = exports.Path = exports.isUnboundRelationship = exports.UnboundRelationship = exports.isRelationship = exports.Relationship = exports.isNode = exports.Node = void 0;\nvar json_1 = require(\"./json\");\nvar IDENTIFIER_PROPERTY_ATTRIBUTES = {\n value: true,\n enumerable: false,\n configurable: false,\n writable: false\n};\nvar NODE_IDENTIFIER_PROPERTY = '__isNode__';\nvar RELATIONSHIP_IDENTIFIER_PROPERTY = '__isRelationship__';\nvar UNBOUND_RELATIONSHIP_IDENTIFIER_PROPERTY = '__isUnboundRelationship__';\nvar PATH_IDENTIFIER_PROPERTY = '__isPath__';\nvar PATH_SEGMENT_IDENTIFIER_PROPERTY = '__isPathSegment__';\nfunction hasIdentifierProperty(obj, property) {\n return (obj && obj[property]) === true;\n}\n/**\n * Class for Node Type.\n */\nvar Node = /** @class */ (function () {\n /**\n * @constructor\n * @protected\n * @param {Integer|number} identity - Unique identity\n * @param {Array} labels - Array for all labels\n * @param {Properties} properties - Map with node properties\n */\n function Node(identity, labels, properties) {\n /**\n * Identity of the node.\n * @type {Integer|number}\n */\n this.identity = identity;\n /**\n * Labels of the node.\n * @type {string[]}\n */\n this.labels = labels;\n /**\n * Properties of the node.\n * @type {Properties}\n */\n this.properties = properties;\n }\n /**\n * @ignore\n */\n Node.prototype.toString = function () {\n var s = '(' + this.identity;\n for (var i = 0; i < this.labels.length; i++) {\n s += ':' + this.labels[i];\n }\n var keys = Object.keys(this.properties);\n if (keys.length > 0) {\n s += ' {';\n for (var i = 0; i < keys.length; i++) {\n if (i > 0)\n s += ',';\n s += keys[i] + ':' + (0, json_1.stringify)(this.properties[keys[i]]);\n }\n s += '}';\n }\n s += ')';\n return s;\n };\n return Node;\n}());\nexports.Node = Node;\nObject.defineProperty(Node.prototype, NODE_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link Node} class.\n * @param {Object} obj the object to test.\n * @return {boolean} `true` if given object is a {@link Node}, `false` otherwise.\n */\nfunction isNode(obj) {\n return hasIdentifierProperty(obj, NODE_IDENTIFIER_PROPERTY);\n}\nexports.isNode = isNode;\n/**\n * Class for Relationship Type.\n */\nvar Relationship = /** @class */ (function () {\n /**\n * @constructor\n * @protected\n * @param {Integer|number} identity - Unique identity\n * @param {Integer|number} start - Identity of start Node\n * @param {Integer|number} end - Identity of end Node\n * @param {string} type - Relationship type\n * @param {Properties} properties - Map with relationship properties\n */\n function Relationship(identity, start, end, type, properties) {\n /**\n * Identity of the relationship.\n * @type {Integer|number}\n */\n this.identity = identity;\n /**\n * Identity of the start node.\n * @type {Integer|number}\n */\n this.start = start;\n /**\n * Identity of the end node.\n * @type {Integer|number}\n */\n this.end = end;\n /**\n * Type of the relationship.\n * @type {string}\n */\n this.type = type;\n /**\n * Properties of the relationship.\n * @type {Properties}\n */\n this.properties = properties;\n }\n /**\n * @ignore\n */\n Relationship.prototype.toString = function () {\n var s = '(' + this.start + ')-[:' + this.type;\n var keys = Object.keys(this.properties);\n if (keys.length > 0) {\n s += ' {';\n for (var i = 0; i < keys.length; i++) {\n if (i > 0)\n s += ',';\n s += keys[i] + ':' + (0, json_1.stringify)(this.properties[keys[i]]);\n }\n s += '}';\n }\n s += ']->(' + this.end + ')';\n return s;\n };\n return Relationship;\n}());\nexports.Relationship = Relationship;\nObject.defineProperty(Relationship.prototype, RELATIONSHIP_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link Relationship} class.\n * @param {Object} obj the object to test.\n * @return {boolean} `true` if given object is a {@link Relationship}, `false` otherwise.\n */\nfunction isRelationship(obj) {\n return hasIdentifierProperty(obj, RELATIONSHIP_IDENTIFIER_PROPERTY);\n}\nexports.isRelationship = isRelationship;\n/**\n * Class for UnboundRelationship Type.\n * @access private\n */\nvar UnboundRelationship = /** @class */ (function () {\n /**\n * @constructor\n * @protected\n * @param {Integer|number} identity - Unique identity\n * @param {string} type - Relationship type\n * @param {Properties} properties - Map with relationship properties\n */\n function UnboundRelationship(identity, type, properties) {\n /**\n * Identity of the relationship.\n * @type {Integer|number}\n */\n this.identity = identity;\n /**\n * Type of the relationship.\n * @type {string}\n */\n this.type = type;\n /**\n * Properties of the relationship.\n * @type {Properties}\n */\n this.properties = properties;\n }\n /**\n * Bind relationship\n *\n * @protected\n * @param {Integer} start - Identity of start node\n * @param {Integer} end - Identity of end node\n * @return {Relationship} - Created relationship\n */\n UnboundRelationship.prototype.bind = function (start, end) {\n return new Relationship(this.identity, start, end, this.type, this.properties);\n };\n /**\n * @ignore\n */\n UnboundRelationship.prototype.toString = function () {\n var s = '-[:' + this.type;\n var keys = Object.keys(this.properties);\n if (keys.length > 0) {\n s += ' {';\n for (var i = 0; i < keys.length; i++) {\n if (i > 0)\n s += ',';\n s += keys[i] + ':' + (0, json_1.stringify)(this.properties[keys[i]]);\n }\n s += '}';\n }\n s += ']->';\n return s;\n };\n return UnboundRelationship;\n}());\nexports.UnboundRelationship = UnboundRelationship;\nObject.defineProperty(UnboundRelationship.prototype, UNBOUND_RELATIONSHIP_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link UnboundRelationship} class.\n * @param {Object} obj the object to test.\n * @return {boolean} `true` if given object is a {@link UnboundRelationship}, `false` otherwise.\n */\nfunction isUnboundRelationship(obj) {\n return hasIdentifierProperty(obj, UNBOUND_RELATIONSHIP_IDENTIFIER_PROPERTY);\n}\nexports.isUnboundRelationship = isUnboundRelationship;\n/**\n * Class for PathSegment Type.\n */\nvar PathSegment = /** @class */ (function () {\n /**\n * @constructor\n * @protected\n * @param {Node} start - start node\n * @param {Relationship} rel - relationship that connects start and end node\n * @param {Node} end - end node\n */\n function PathSegment(start, rel, end) {\n /**\n * Start node.\n * @type {Node}\n */\n this.start = start;\n /**\n * Relationship.\n * @type {Relationship}\n */\n this.relationship = rel;\n /**\n * End node.\n * @type {Node}\n */\n this.end = end;\n }\n return PathSegment;\n}());\nexports.PathSegment = PathSegment;\nObject.defineProperty(PathSegment.prototype, PATH_SEGMENT_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link PathSegment} class.\n * @param {Object} obj the object to test.\n * @return {boolean} `true` if given object is a {@link PathSegment}, `false` otherwise.\n */\nfunction isPathSegment(obj) {\n return hasIdentifierProperty(obj, PATH_SEGMENT_IDENTIFIER_PROPERTY);\n}\nexports.isPathSegment = isPathSegment;\n/**\n * Class for Path Type.\n */\nvar Path = /** @class */ (function () {\n /**\n * @constructor\n * @protected\n * @param {Node} start - start node\n * @param {Node} end - end node\n * @param {Array} segments - Array of Segments\n */\n function Path(start, end, segments) {\n /**\n * Start node.\n * @type {Node}\n */\n this.start = start;\n /**\n * End node.\n * @type {Node}\n */\n this.end = end;\n /**\n * Segments.\n * @type {Array}\n */\n this.segments = segments;\n /**\n * Length of the segments.\n * @type {Number}\n */\n this.length = segments.length;\n }\n return Path;\n}());\nexports.Path = Path;\nObject.defineProperty(Path.prototype, PATH_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link Path} class.\n * @param {Object} obj the object to test.\n * @return {boolean} `true` if given object is a {@link Path}, `false` otherwise.\n */\nfunction isPath(obj) {\n return hasIdentifierProperty(obj, PATH_IDENTIFIER_PROPERTY);\n}\nexports.isPath = isPath;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.types = exports.Driver = exports.Session = exports.Transaction = exports.Connection = exports.ConnectionProvider = exports.Result = exports.Stats = exports.QueryStatistics = exports.ProfiledPlan = exports.Plan = exports.Notification = exports.ServerInfo = exports.queryType = exports.ResultSummary = exports.Record = exports.isPathSegment = exports.PathSegment = exports.isPath = exports.Path = exports.isUnboundRelationship = exports.UnboundRelationship = exports.isRelationship = exports.Relationship = exports.isNode = exports.Node = exports.Time = exports.LocalTime = exports.LocalDateTime = exports.isTime = exports.isLocalTime = exports.isLocalDateTime = exports.isDuration = exports.isDateTime = exports.isDate = exports.Duration = exports.DateTime = exports.Date = exports.Point = exports.isPoint = exports.internal = exports.toString = exports.toNumber = exports.inSafeRange = exports.isInt = exports.int = exports.Integer = exports.error = exports.Neo4jError = exports.newError = void 0;\nexports.auth = exports.json = exports.driver = void 0;\nvar error_1 = require(\"./error\");\nObject.defineProperty(exports, \"newError\", { enumerable: true, get: function () { return error_1.newError; } });\nObject.defineProperty(exports, \"Neo4jError\", { enumerable: true, get: function () { return error_1.Neo4jError; } });\nvar integer_1 = __importStar(require(\"./integer\"));\nexports.Integer = integer_1.default;\nObject.defineProperty(exports, \"int\", { enumerable: true, get: function () { return integer_1.int; } });\nObject.defineProperty(exports, \"isInt\", { enumerable: true, get: function () { return integer_1.isInt; } });\nObject.defineProperty(exports, \"inSafeRange\", { enumerable: true, get: function () { return integer_1.inSafeRange; } });\nObject.defineProperty(exports, \"toNumber\", { enumerable: true, get: function () { return integer_1.toNumber; } });\nObject.defineProperty(exports, \"toString\", { enumerable: true, get: function () { return integer_1.toString; } });\nvar temporal_types_1 = require(\"./temporal-types\");\nObject.defineProperty(exports, \"Date\", { enumerable: true, get: function () { return temporal_types_1.Date; } });\nObject.defineProperty(exports, \"DateTime\", { enumerable: true, get: function () { return temporal_types_1.DateTime; } });\nObject.defineProperty(exports, \"Duration\", { enumerable: true, get: function () { return temporal_types_1.Duration; } });\nObject.defineProperty(exports, \"isDate\", { enumerable: true, get: function () { return temporal_types_1.isDate; } });\nObject.defineProperty(exports, \"isDateTime\", { enumerable: true, get: function () { return temporal_types_1.isDateTime; } });\nObject.defineProperty(exports, \"isDuration\", { enumerable: true, get: function () { return temporal_types_1.isDuration; } });\nObject.defineProperty(exports, \"isLocalDateTime\", { enumerable: true, get: function () { return temporal_types_1.isLocalDateTime; } });\nObject.defineProperty(exports, \"isLocalTime\", { enumerable: true, get: function () { return temporal_types_1.isLocalTime; } });\nObject.defineProperty(exports, \"isTime\", { enumerable: true, get: function () { return temporal_types_1.isTime; } });\nObject.defineProperty(exports, \"LocalDateTime\", { enumerable: true, get: function () { return temporal_types_1.LocalDateTime; } });\nObject.defineProperty(exports, \"LocalTime\", { enumerable: true, get: function () { return temporal_types_1.LocalTime; } });\nObject.defineProperty(exports, \"Time\", { enumerable: true, get: function () { return temporal_types_1.Time; } });\nvar graph_types_1 = require(\"./graph-types\");\nObject.defineProperty(exports, \"Node\", { enumerable: true, get: function () { return graph_types_1.Node; } });\nObject.defineProperty(exports, \"isNode\", { enumerable: true, get: function () { return graph_types_1.isNode; } });\nObject.defineProperty(exports, \"Relationship\", { enumerable: true, get: function () { return graph_types_1.Relationship; } });\nObject.defineProperty(exports, \"isRelationship\", { enumerable: true, get: function () { return graph_types_1.isRelationship; } });\nObject.defineProperty(exports, \"UnboundRelationship\", { enumerable: true, get: function () { return graph_types_1.UnboundRelationship; } });\nObject.defineProperty(exports, \"isUnboundRelationship\", { enumerable: true, get: function () { return graph_types_1.isUnboundRelationship; } });\nObject.defineProperty(exports, \"Path\", { enumerable: true, get: function () { return graph_types_1.Path; } });\nObject.defineProperty(exports, \"isPath\", { enumerable: true, get: function () { return graph_types_1.isPath; } });\nObject.defineProperty(exports, \"PathSegment\", { enumerable: true, get: function () { return graph_types_1.PathSegment; } });\nObject.defineProperty(exports, \"isPathSegment\", { enumerable: true, get: function () { return graph_types_1.isPathSegment; } });\nvar record_1 = __importDefault(require(\"./record\"));\nexports.Record = record_1.default;\nvar spatial_types_1 = require(\"./spatial-types\");\nObject.defineProperty(exports, \"isPoint\", { enumerable: true, get: function () { return spatial_types_1.isPoint; } });\nObject.defineProperty(exports, \"Point\", { enumerable: true, get: function () { return spatial_types_1.Point; } });\nvar result_summary_1 = __importStar(require(\"./result-summary\"));\nexports.ResultSummary = result_summary_1.default;\nObject.defineProperty(exports, \"queryType\", { enumerable: true, get: function () { return result_summary_1.queryType; } });\nObject.defineProperty(exports, \"ServerInfo\", { enumerable: true, get: function () { return result_summary_1.ServerInfo; } });\nObject.defineProperty(exports, \"Notification\", { enumerable: true, get: function () { return result_summary_1.Notification; } });\nObject.defineProperty(exports, \"Plan\", { enumerable: true, get: function () { return result_summary_1.Plan; } });\nObject.defineProperty(exports, \"ProfiledPlan\", { enumerable: true, get: function () { return result_summary_1.ProfiledPlan; } });\nObject.defineProperty(exports, \"QueryStatistics\", { enumerable: true, get: function () { return result_summary_1.QueryStatistics; } });\nObject.defineProperty(exports, \"Stats\", { enumerable: true, get: function () { return result_summary_1.Stats; } });\nvar result_1 = __importDefault(require(\"./result\"));\nexports.Result = result_1.default;\nvar connection_provider_1 = __importDefault(require(\"./connection-provider\"));\nexports.ConnectionProvider = connection_provider_1.default;\nvar connection_1 = __importDefault(require(\"./connection\"));\nexports.Connection = connection_1.default;\nvar transaction_1 = __importDefault(require(\"./transaction\"));\nexports.Transaction = transaction_1.default;\nvar session_1 = __importDefault(require(\"./session\"));\nexports.Session = session_1.default;\nvar driver_1 = __importStar(require(\"./driver\")), driver = driver_1;\nexports.Driver = driver_1.default;\nexports.driver = driver;\nvar auth_1 = __importDefault(require(\"./auth\"));\nexports.auth = auth_1.default;\nvar types = __importStar(require(\"./types\"));\nexports.types = types;\nvar json = __importStar(require(\"./json\"));\nexports.json = json;\nvar internal = __importStar(require(\"./internal\")); // todo: removed afterwards\nexports.internal = internal;\n/**\n * Object containing string constants representing predefined {@link Neo4jError} codes.\n */\nvar error = {\n SERVICE_UNAVAILABLE: error_1.SERVICE_UNAVAILABLE,\n SESSION_EXPIRED: error_1.SESSION_EXPIRED,\n PROTOCOL_ERROR: error_1.PROTOCOL_ERROR\n};\nexports.error = error;\n/**\n * @private\n */\nvar forExport = {\n newError: error_1.newError,\n Neo4jError: error_1.Neo4jError,\n error: error,\n Integer: integer_1.default,\n int: integer_1.int,\n isInt: integer_1.isInt,\n inSafeRange: integer_1.inSafeRange,\n toNumber: integer_1.toNumber,\n toString: integer_1.toString,\n internal: internal,\n isPoint: spatial_types_1.isPoint,\n Point: spatial_types_1.Point,\n Date: temporal_types_1.Date,\n DateTime: temporal_types_1.DateTime,\n Duration: temporal_types_1.Duration,\n isDate: temporal_types_1.isDate,\n isDateTime: temporal_types_1.isDateTime,\n isDuration: temporal_types_1.isDuration,\n isLocalDateTime: temporal_types_1.isLocalDateTime,\n isLocalTime: temporal_types_1.isLocalTime,\n isTime: temporal_types_1.isTime,\n LocalDateTime: temporal_types_1.LocalDateTime,\n LocalTime: temporal_types_1.LocalTime,\n Time: temporal_types_1.Time,\n Node: graph_types_1.Node,\n isNode: graph_types_1.isNode,\n Relationship: graph_types_1.Relationship,\n isRelationship: graph_types_1.isRelationship,\n UnboundRelationship: graph_types_1.UnboundRelationship,\n isUnboundRelationship: graph_types_1.isUnboundRelationship,\n Path: graph_types_1.Path,\n isPath: graph_types_1.isPath,\n PathSegment: graph_types_1.PathSegment,\n isPathSegment: graph_types_1.isPathSegment,\n Record: record_1.default,\n ResultSummary: result_summary_1.default,\n queryType: result_summary_1.queryType,\n ServerInfo: result_summary_1.ServerInfo,\n Notification: result_summary_1.Notification,\n Plan: result_summary_1.Plan,\n ProfiledPlan: result_summary_1.ProfiledPlan,\n QueryStatistics: result_summary_1.QueryStatistics,\n Stats: result_summary_1.Stats,\n Result: result_1.default,\n Transaction: transaction_1.default,\n Session: session_1.default,\n Driver: driver_1.default,\n Connection: connection_1.default,\n types: types,\n driver: driver,\n json: json,\n auth: auth_1.default\n};\nexports.default = forExport;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toString = exports.toNumber = exports.inSafeRange = exports.isInt = exports.int = void 0;\n// 64-bit Integer library, originally from Long.js by dcodeIO\n// https://github.com/dcodeIO/Long.js\n// License Apache 2\nvar error_1 = require(\"./error\");\n/**\n * A cache of the Integer representations of small integer values.\n * @type {!Object}\n * @inner\n * @private\n */\n// eslint-disable-next-line no-use-before-define\nvar INT_CACHE = new Map();\n/**\n * Constructs a 64 bit two's-complement integer, given its low and high 32 bit values as *signed* integers.\n * See exported functions for more convenient ways of operating integers.\n * Use `int()` function to create new integers, `isInt()` to check if given object is integer,\n * `inSafeRange()` to check if it is safe to convert given value to native number,\n * `toNumber()` and `toString()` to convert given integer to number or string respectively.\n * @access public\n * @exports Integer\n * @class A Integer class for representing a 64 bit two's-complement integer value.\n * @param {number} low The low (signed) 32 bits of the long\n * @param {number} high The high (signed) 32 bits of the long\n *\n * @constructor\n */\nvar Integer = /** @class */ (function () {\n function Integer(low, high) {\n /**\n * The low 32 bits as a signed value.\n * @type {number}\n * @expose\n */\n this.low = low || 0;\n /**\n * The high 32 bits as a signed value.\n * @type {number}\n * @expose\n */\n this.high = high || 0;\n }\n // The internal representation of an Integer is the two given signed, 32-bit values.\n // We use 32-bit pieces because these are the size of integers on which\n // JavaScript performs bit-operations. For operations like addition and\n // multiplication, we split each number into 16 bit pieces, which can easily be\n // multiplied within JavaScript's floating-point representation without overflow\n // or change in sign.\n //\n // In the algorithms below, we frequently reduce the negative case to the\n // positive case by negating the input(s) and then post-processing the result.\n // Note that we must ALWAYS check specially whether those values are MIN_VALUE\n // (-2^63) because -MIN_VALUE == MIN_VALUE (since 2^63 cannot be represented as\n // a positive number, it overflows back into a negative). Not handling this\n // case would often result in infinite recursion.\n //\n // Common constant values ZERO, ONE, NEG_ONE, etc. are defined below the from*\n // methods on which they depend.\n Integer.prototype.inSafeRange = function () {\n return (this.greaterThanOrEqual(Integer.MIN_SAFE_VALUE) &&\n this.lessThanOrEqual(Integer.MAX_SAFE_VALUE));\n };\n /**\n * Converts the Integer to an exact javascript Number, assuming it is a 32 bit integer.\n * @returns {number}\n * @expose\n */\n Integer.prototype.toInt = function () {\n return this.low;\n };\n /**\n * Converts the Integer to a the nearest floating-point representation of this value (double, 53 bit mantissa).\n * @returns {number}\n * @expose\n */\n Integer.prototype.toNumber = function () {\n return this.high * TWO_PWR_32_DBL + (this.low >>> 0);\n };\n /**\n * Converts the Integer to a BigInt representation of this value\n * @returns {bigint}\n * @expose\n */\n Integer.prototype.toBigInt = function () {\n if (this.isZero()) {\n return BigInt(0);\n }\n else if (this.isPositive()) {\n return (BigInt(this.high >>> 0) * BigInt(TWO_PWR_32_DBL) +\n BigInt(this.low >>> 0));\n }\n else {\n var negate = this.negate();\n return (BigInt(-1) *\n (BigInt(negate.high >>> 0) * BigInt(TWO_PWR_32_DBL) +\n BigInt(negate.low >>> 0)));\n }\n };\n /**\n * Converts the Integer to native number or -Infinity/+Infinity when it does not fit.\n * @return {number}\n * @package\n */\n Integer.prototype.toNumberOrInfinity = function () {\n if (this.lessThan(Integer.MIN_SAFE_VALUE)) {\n return Number.NEGATIVE_INFINITY;\n }\n else if (this.greaterThan(Integer.MAX_SAFE_VALUE)) {\n return Number.POSITIVE_INFINITY;\n }\n else {\n return this.toNumber();\n }\n };\n /**\n * Converts the Integer to a string written in the specified radix.\n * @param {number=} radix Radix (2-36), defaults to 10\n * @returns {string}\n * @override\n * @throws {RangeError} If `radix` is out of range\n * @expose\n */\n Integer.prototype.toString = function (radix) {\n radix = radix || 10;\n if (radix < 2 || radix > 36) {\n throw RangeError('radix out of range: ' + radix);\n }\n if (this.isZero()) {\n return '0';\n }\n var rem;\n if (this.isNegative()) {\n if (this.equals(Integer.MIN_VALUE)) {\n // We need to change the Integer value before it can be negated, so we remove\n // the bottom-most digit in this base and then recurse to do the rest.\n var radixInteger = Integer.fromNumber(radix);\n var div = this.div(radixInteger);\n rem = div.multiply(radixInteger).subtract(this);\n return div.toString(radix) + rem.toInt().toString(radix);\n }\n else {\n return '-' + this.negate().toString(radix);\n }\n }\n // Do several (6) digits each time through the loop, so as to\n // minimize the calls to the very expensive emulated div.\n var radixToPower = Integer.fromNumber(Math.pow(radix, 6));\n rem = this;\n var result = '';\n while (true) {\n var remDiv = rem.div(radixToPower);\n var intval = rem.subtract(remDiv.multiply(radixToPower)).toInt() >>> 0;\n var digits = intval.toString(radix);\n rem = remDiv;\n if (rem.isZero()) {\n return digits + result;\n }\n else {\n while (digits.length < 6) {\n digits = '0' + digits;\n }\n result = '' + digits + result;\n }\n }\n };\n /**\n * Gets the high 32 bits as a signed integer.\n * @returns {number} Signed high bits\n * @expose\n */\n Integer.prototype.getHighBits = function () {\n return this.high;\n };\n /**\n * Gets the low 32 bits as a signed integer.\n * @returns {number} Signed low bits\n * @expose\n */\n Integer.prototype.getLowBits = function () {\n return this.low;\n };\n /**\n * Gets the number of bits needed to represent the absolute value of this Integer.\n * @returns {number}\n * @expose\n */\n Integer.prototype.getNumBitsAbs = function () {\n if (this.isNegative()) {\n return this.equals(Integer.MIN_VALUE) ? 64 : this.negate().getNumBitsAbs();\n }\n var val = this.high !== 0 ? this.high : this.low;\n for (var bit = 31; bit > 0; bit--) {\n if ((val & (1 << bit)) !== 0) {\n break;\n }\n }\n return this.high !== 0 ? bit + 33 : bit + 1;\n };\n /**\n * Tests if this Integer's value equals zero.\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.isZero = function () {\n return this.high === 0 && this.low === 0;\n };\n /**\n * Tests if this Integer's value is negative.\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.isNegative = function () {\n return this.high < 0;\n };\n /**\n * Tests if this Integer's value is positive.\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.isPositive = function () {\n return this.high >= 0;\n };\n /**\n * Tests if this Integer's value is odd.\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.isOdd = function () {\n return (this.low & 1) === 1;\n };\n /**\n * Tests if this Integer's value is even.\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.isEven = function () {\n return (this.low & 1) === 0;\n };\n /**\n * Tests if this Integer's value equals the specified's.\n * @param {!Integer|number|string} other Other value\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.equals = function (other) {\n var theOther = Integer.fromValue(other);\n return this.high === theOther.high && this.low === theOther.low;\n };\n /**\n * Tests if this Integer's value differs from the specified's.\n * @param {!Integer|number|string} other Other value\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.notEquals = function (other) {\n return !this.equals(/* validates */ other);\n };\n /**\n * Tests if this Integer's value is less than the specified's.\n * @param {!Integer|number|string} other Other value\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.lessThan = function (other) {\n return this.compare(/* validates */ other) < 0;\n };\n /**\n * Tests if this Integer's value is less than or equal the specified's.\n * @param {!Integer|number|string} other Other value\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.lessThanOrEqual = function (other) {\n return this.compare(/* validates */ other) <= 0;\n };\n /**\n * Tests if this Integer's value is greater than the specified's.\n * @param {!Integer|number|string} other Other value\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.greaterThan = function (other) {\n return this.compare(/* validates */ other) > 0;\n };\n /**\n * Tests if this Integer's value is greater than or equal the specified's.\n * @param {!Integer|number|string} other Other value\n * @returns {boolean}\n * @expose\n */\n Integer.prototype.greaterThanOrEqual = function (other) {\n return this.compare(/* validates */ other) >= 0;\n };\n /**\n * Compares this Integer's value with the specified's.\n * @param {!Integer|number|string} other Other value\n * @returns {number} 0 if they are the same, 1 if the this is greater and -1\n * if the given one is greater\n * @expose\n */\n Integer.prototype.compare = function (other) {\n var theOther = Integer.fromValue(other);\n if (this.equals(theOther)) {\n return 0;\n }\n var thisNeg = this.isNegative();\n var otherNeg = theOther.isNegative();\n if (thisNeg && !otherNeg) {\n return -1;\n }\n if (!thisNeg && otherNeg) {\n return 1;\n }\n // At this point the sign bits are the same\n return this.subtract(theOther).isNegative() ? -1 : 1;\n };\n /**\n * Negates this Integer's value.\n * @returns {!Integer} Negated Integer\n * @expose\n */\n Integer.prototype.negate = function () {\n if (this.equals(Integer.MIN_VALUE)) {\n return Integer.MIN_VALUE;\n }\n return this.not().add(Integer.ONE);\n };\n /**\n * Returns the sum of this and the specified Integer.\n * @param {!Integer|number|string} addend Addend\n * @returns {!Integer} Sum\n * @expose\n */\n Integer.prototype.add = function (addend) {\n var theAddend = Integer.fromValue(addend);\n // Divide each number into 4 chunks of 16 bits, and then sum the chunks.\n var a48 = this.high >>> 16;\n var a32 = this.high & 0xffff;\n var a16 = this.low >>> 16;\n var a00 = this.low & 0xffff;\n var b48 = theAddend.high >>> 16;\n var b32 = theAddend.high & 0xffff;\n var b16 = theAddend.low >>> 16;\n var b00 = theAddend.low & 0xffff;\n var c48 = 0;\n var c32 = 0;\n var c16 = 0;\n var c00 = 0;\n c00 += a00 + b00;\n c16 += c00 >>> 16;\n c00 &= 0xffff;\n c16 += a16 + b16;\n c32 += c16 >>> 16;\n c16 &= 0xffff;\n c32 += a32 + b32;\n c48 += c32 >>> 16;\n c32 &= 0xffff;\n c48 += a48 + b48;\n c48 &= 0xffff;\n return Integer.fromBits((c16 << 16) | c00, (c48 << 16) | c32);\n };\n /**\n * Returns the difference of this and the specified Integer.\n * @param {!Integer|number|string} subtrahend Subtrahend\n * @returns {!Integer} Difference\n * @expose\n */\n Integer.prototype.subtract = function (subtrahend) {\n var theSubtrahend = Integer.fromValue(subtrahend);\n return this.add(theSubtrahend.negate());\n };\n /**\n * Returns the product of this and the specified Integer.\n * @param {!Integer|number|string} multiplier Multiplier\n * @returns {!Integer} Product\n * @expose\n */\n Integer.prototype.multiply = function (multiplier) {\n if (this.isZero()) {\n return Integer.ZERO;\n }\n var theMultiplier = Integer.fromValue(multiplier);\n if (theMultiplier.isZero()) {\n return Integer.ZERO;\n }\n if (this.equals(Integer.MIN_VALUE)) {\n return theMultiplier.isOdd() ? Integer.MIN_VALUE : Integer.ZERO;\n }\n if (theMultiplier.equals(Integer.MIN_VALUE)) {\n return this.isOdd() ? Integer.MIN_VALUE : Integer.ZERO;\n }\n if (this.isNegative()) {\n if (theMultiplier.isNegative()) {\n return this.negate().multiply(theMultiplier.negate());\n }\n else {\n return this.negate()\n .multiply(theMultiplier)\n .negate();\n }\n }\n else if (theMultiplier.isNegative()) {\n return this.multiply(theMultiplier.negate()).negate();\n }\n // If both longs are small, use float multiplication\n if (this.lessThan(TWO_PWR_24) && theMultiplier.lessThan(TWO_PWR_24)) {\n return Integer.fromNumber(this.toNumber() * theMultiplier.toNumber());\n }\n // Divide each long into 4 chunks of 16 bits, and then add up 4x4 products.\n // We can skip products that would overflow.\n var a48 = this.high >>> 16;\n var a32 = this.high & 0xffff;\n var a16 = this.low >>> 16;\n var a00 = this.low & 0xffff;\n var b48 = theMultiplier.high >>> 16;\n var b32 = theMultiplier.high & 0xffff;\n var b16 = theMultiplier.low >>> 16;\n var b00 = theMultiplier.low & 0xffff;\n var c48 = 0;\n var c32 = 0;\n var c16 = 0;\n var c00 = 0;\n c00 += a00 * b00;\n c16 += c00 >>> 16;\n c00 &= 0xffff;\n c16 += a16 * b00;\n c32 += c16 >>> 16;\n c16 &= 0xffff;\n c16 += a00 * b16;\n c32 += c16 >>> 16;\n c16 &= 0xffff;\n c32 += a32 * b00;\n c48 += c32 >>> 16;\n c32 &= 0xffff;\n c32 += a16 * b16;\n c48 += c32 >>> 16;\n c32 &= 0xffff;\n c32 += a00 * b32;\n c48 += c32 >>> 16;\n c32 &= 0xffff;\n c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;\n c48 &= 0xffff;\n return Integer.fromBits((c16 << 16) | c00, (c48 << 16) | c32);\n };\n /**\n * Returns this Integer divided by the specified.\n * @param {!Integer|number|string} divisor Divisor\n * @returns {!Integer} Quotient\n * @expose\n */\n Integer.prototype.div = function (divisor) {\n var theDivisor = Integer.fromValue(divisor);\n if (theDivisor.isZero()) {\n throw (0, error_1.newError)('division by zero');\n }\n if (this.isZero()) {\n return Integer.ZERO;\n }\n var approx, rem, res;\n if (this.equals(Integer.MIN_VALUE)) {\n if (theDivisor.equals(Integer.ONE) ||\n theDivisor.equals(Integer.NEG_ONE)) {\n return Integer.MIN_VALUE;\n }\n if (theDivisor.equals(Integer.MIN_VALUE)) {\n return Integer.ONE;\n }\n else {\n // At this point, we have |other| >= 2, so |this/other| < |MIN_VALUE|.\n var halfThis = this.shiftRight(1);\n approx = halfThis.div(theDivisor).shiftLeft(1);\n if (approx.equals(Integer.ZERO)) {\n return theDivisor.isNegative() ? Integer.ONE : Integer.NEG_ONE;\n }\n else {\n rem = this.subtract(theDivisor.multiply(approx));\n res = approx.add(rem.div(theDivisor));\n return res;\n }\n }\n }\n else if (theDivisor.equals(Integer.MIN_VALUE)) {\n return Integer.ZERO;\n }\n if (this.isNegative()) {\n if (theDivisor.isNegative()) {\n return this.negate().div(theDivisor.negate());\n }\n return this.negate()\n .div(theDivisor)\n .negate();\n }\n else if (theDivisor.isNegative()) {\n return this.div(theDivisor.negate()).negate();\n }\n // Repeat the following until the remainder is less than other: find a\n // floating-point that approximates remainder / other *from below*, add this\n // into the result, and subtract it from the remainder. It is critical that\n // the approximate value is less than or equal to the real value so that the\n // remainder never becomes negative.\n res = Integer.ZERO;\n rem = this;\n while (rem.greaterThanOrEqual(theDivisor)) {\n // Approximate the result of division. This may be a little greater or\n // smaller than the actual value.\n approx = Math.max(1, Math.floor(rem.toNumber() / theDivisor.toNumber()));\n // We will tweak the approximate result by changing it in the 48-th digit or\n // the smallest non-fractional digit, whichever is larger.\n var log2 = Math.ceil(Math.log(approx) / Math.LN2);\n var delta = log2 <= 48 ? 1 : Math.pow(2, log2 - 48);\n // Decrease the approximation until it is smaller than the remainder. Note\n // that if it is too large, the product overflows and is negative.\n var approxRes = Integer.fromNumber(approx);\n var approxRem = approxRes.multiply(theDivisor);\n while (approxRem.isNegative() || approxRem.greaterThan(rem)) {\n approx -= delta;\n approxRes = Integer.fromNumber(approx);\n approxRem = approxRes.multiply(theDivisor);\n }\n // We know the answer can't be zero... and actually, zero would cause\n // infinite recursion since we would make no progress.\n if (approxRes.isZero()) {\n approxRes = Integer.ONE;\n }\n res = res.add(approxRes);\n rem = rem.subtract(approxRem);\n }\n return res;\n };\n /**\n * Returns this Integer modulo the specified.\n * @param {!Integer|number|string} divisor Divisor\n * @returns {!Integer} Remainder\n * @expose\n */\n Integer.prototype.modulo = function (divisor) {\n var theDivisor = Integer.fromValue(divisor);\n return this.subtract(this.div(theDivisor).multiply(theDivisor));\n };\n /**\n * Returns the bitwise NOT of this Integer.\n * @returns {!Integer}\n * @expose\n */\n Integer.prototype.not = function () {\n return Integer.fromBits(~this.low, ~this.high);\n };\n /**\n * Returns the bitwise AND of this Integer and the specified.\n * @param {!Integer|number|string} other Other Integer\n * @returns {!Integer}\n * @expose\n */\n Integer.prototype.and = function (other) {\n var theOther = Integer.fromValue(other);\n return Integer.fromBits(this.low & theOther.low, this.high & theOther.high);\n };\n /**\n * Returns the bitwise OR of this Integer and the specified.\n * @param {!Integer|number|string} other Other Integer\n * @returns {!Integer}\n * @expose\n */\n Integer.prototype.or = function (other) {\n var theOther = Integer.fromValue(other);\n return Integer.fromBits(this.low | theOther.low, this.high | theOther.high);\n };\n /**\n * Returns the bitwise XOR of this Integer and the given one.\n * @param {!Integer|number|string} other Other Integer\n * @returns {!Integer}\n * @expose\n */\n Integer.prototype.xor = function (other) {\n var theOther = Integer.fromValue(other);\n return Integer.fromBits(this.low ^ theOther.low, this.high ^ theOther.high);\n };\n /**\n * Returns this Integer with bits shifted to the left by the given amount.\n * @param {number|!Integer} numBits Number of bits\n * @returns {!Integer} Shifted Integer\n * @expose\n */\n Integer.prototype.shiftLeft = function (numBits) {\n var bitsCount = Integer.toNumber(numBits);\n if ((bitsCount &= 63) === 0) {\n return Integer.ZERO;\n }\n else if (bitsCount < 32) {\n return Integer.fromBits(this.low << bitsCount, (this.high << bitsCount) | (this.low >>> (32 - bitsCount)));\n }\n else {\n return Integer.fromBits(0, this.low << (bitsCount - 32));\n }\n };\n /**\n * Returns this Integer with bits arithmetically shifted to the right by the given amount.\n * @param {number|!Integer} numBits Number of bits\n * @returns {!Integer} Shifted Integer\n * @expose\n */\n Integer.prototype.shiftRight = function (numBits) {\n var bitsCount = Integer.toNumber(numBits);\n if ((bitsCount &= 63) === 0) {\n return Integer.ZERO;\n }\n else if (numBits < 32) {\n return Integer.fromBits((this.low >>> bitsCount) | (this.high << (32 - bitsCount)), this.high >> bitsCount);\n }\n else {\n return Integer.fromBits(this.high >> (bitsCount - 32), this.high >= 0 ? 0 : -1);\n }\n };\n /**\n * Tests if the specified object is a Integer.\n * @access private\n * @param {*} obj Object\n * @returns {boolean}\n * @expose\n */\n Integer.isInteger = function (obj) {\n return (obj && obj.__isInteger__) === true;\n };\n /**\n * Returns a Integer representing the given 32 bit integer value.\n * @access private\n * @param {number} value The 32 bit integer in question\n * @returns {!Integer} The corresponding Integer value\n * @expose\n */\n Integer.fromInt = function (value) {\n var obj, cachedObj;\n value = value | 0;\n if (value >= -128 && value < 128) {\n cachedObj = INT_CACHE.get(value);\n if (cachedObj) {\n return cachedObj;\n }\n }\n obj = new Integer(value, value < 0 ? -1 : 0);\n if (value >= -128 && value < 128) {\n INT_CACHE.set(value, obj);\n }\n return obj;\n };\n /**\n * Returns a Integer representing the 64 bit integer that comes by concatenating the given low and high bits. Each is\n * assumed to use 32 bits.\n * @access private\n * @param {number} lowBits The low 32 bits\n * @param {number} highBits The high 32 bits\n * @returns {!Integer} The corresponding Integer value\n * @expose\n */\n Integer.fromBits = function (lowBits, highBits) {\n return new Integer(lowBits, highBits);\n };\n /**\n * Returns a Integer representing the given value, provided that it is a finite number. Otherwise, zero is returned.\n * @access private\n * @param {number} value The number in question\n * @returns {!Integer} The corresponding Integer value\n * @expose\n */\n Integer.fromNumber = function (value) {\n if (isNaN(value) || !isFinite(value)) {\n return Integer.ZERO;\n }\n if (value <= -TWO_PWR_63_DBL) {\n return Integer.MIN_VALUE;\n }\n if (value + 1 >= TWO_PWR_63_DBL) {\n return Integer.MAX_VALUE;\n }\n if (value < 0) {\n return Integer.fromNumber(-value).negate();\n }\n return new Integer(value % TWO_PWR_32_DBL | 0, (value / TWO_PWR_32_DBL) | 0);\n };\n /**\n * Returns a Integer representation of the given string, written using the specified radix.\n * @access private\n * @param {string} str The textual representation of the Integer\n * @param {number=} radix The radix in which the text is written (2-36), defaults to 10\n * @param {Object} [opts={}] Configuration options\n * @param {boolean} [opts.strictStringValidation=false] Enable strict validation generated Integer.\n * @returns {!Integer} The corresponding Integer value\n * @expose\n */\n Integer.fromString = function (str, radix, _a) {\n var _b = _a === void 0 ? {} : _a, strictStringValidation = _b.strictStringValidation;\n if (str.length === 0) {\n throw (0, error_1.newError)('number format error: empty string');\n }\n if (str === 'NaN' ||\n str === 'Infinity' ||\n str === '+Infinity' ||\n str === '-Infinity') {\n return Integer.ZERO;\n }\n radix = radix || 10;\n if (radix < 2 || radix > 36) {\n throw (0, error_1.newError)('radix out of range: ' + radix);\n }\n var p;\n if ((p = str.indexOf('-')) > 0) {\n throw (0, error_1.newError)('number format error: interior \"-\" character: ' + str);\n }\n else if (p === 0) {\n return Integer.fromString(str.substring(1), radix).negate();\n }\n // Do several (8) digits each time through the loop, so as to\n // minimize the calls to the very expensive emulated div.\n var radixToPower = Integer.fromNumber(Math.pow(radix, 8));\n var result = Integer.ZERO;\n for (var i = 0; i < str.length; i += 8) {\n var size = Math.min(8, str.length - i);\n var valueString = str.substring(i, i + size);\n var value = parseInt(valueString, radix);\n if (strictStringValidation === true && !_isValidNumberFromString(valueString, value, radix)) {\n throw (0, error_1.newError)(\"number format error: \\\"\" + valueString + \"\\\" is NaN in radix \" + radix + \": \" + str);\n }\n if (size < 8) {\n var power = Integer.fromNumber(Math.pow(radix, size));\n result = result.multiply(power).add(Integer.fromNumber(value));\n }\n else {\n result = result.multiply(radixToPower);\n result = result.add(Integer.fromNumber(value));\n }\n }\n return result;\n };\n /**\n * Converts the specified value to a Integer.\n * @access private\n * @param {!Integer|number|string|bigint|!{low: number, high: number}} val Value\n * @param {Object} [opts={}] Configuration options\n * @param {boolean} [opts.strictStringValidation=false] Enable strict validation generated Integer.\n * @returns {!Integer}\n * @expose\n */\n Integer.fromValue = function (val, opts) {\n if (opts === void 0) { opts = {}; }\n if (val /* is compatible */ instanceof Integer) {\n return val;\n }\n if (typeof val === 'number') {\n return Integer.fromNumber(val);\n }\n if (typeof val === 'string') {\n return Integer.fromString(val, undefined, opts);\n }\n if (typeof val === 'bigint') {\n return Integer.fromString(val.toString());\n }\n // Throws for non-objects, converts non-instanceof Integer:\n return new Integer(val.low, val.high);\n };\n /**\n * Converts the specified value to a number.\n * @access private\n * @param {!Integer|number|string|!{low: number, high: number}} val Value\n * @returns {number}\n * @expose\n */\n Integer.toNumber = function (val) {\n switch (typeof val) {\n case 'number':\n return val;\n case 'bigint':\n return Number(val);\n default:\n return Integer.fromValue(val).toNumber();\n }\n };\n /**\n * Converts the specified value to a string.\n * @access private\n * @param {!Integer|number|string|!{low: number, high: number}} val Value\n * @param {number} radix optional radix for string conversion, defaults to 10\n * @returns {string}\n * @expose\n */\n Integer.toString = function (val, radix) {\n return Integer.fromValue(val).toString(radix);\n };\n /**\n * Checks if the given value is in the safe range in order to be converted to a native number\n * @access private\n * @param {!Integer|number|string|!{low: number, high: number}} val Value\n * @param {number} radix optional radix for string conversion, defaults to 10\n * @returns {boolean}\n * @expose\n */\n Integer.inSafeRange = function (val) {\n return Integer.fromValue(val).inSafeRange();\n };\n /**\n * Signed zero.\n * @type {!Integer}\n * @expose\n */\n Integer.ZERO = Integer.fromInt(0);\n /**\n * Signed one.\n * @type {!Integer}\n * @expose\n */\n Integer.ONE = Integer.fromInt(1);\n /**\n * Signed negative one.\n * @type {!Integer}\n * @expose\n */\n Integer.NEG_ONE = Integer.fromInt(-1);\n /**\n * Maximum signed value.\n * @type {!Integer}\n * @expose\n */\n Integer.MAX_VALUE = Integer.fromBits(0xffffffff | 0, 0x7fffffff | 0);\n /**\n * Minimum signed value.\n * @type {!Integer}\n * @expose\n */\n Integer.MIN_VALUE = Integer.fromBits(0, 0x80000000 | 0);\n /**\n * Minimum safe value.\n * @type {!Integer}\n * @expose\n */\n Integer.MIN_SAFE_VALUE = Integer.fromBits(0x1 | 0, 0xffffffffffe00000 | 0);\n /**\n * Maximum safe value.\n * @type {!Integer}\n * @expose\n */\n Integer.MAX_SAFE_VALUE = Integer.fromBits(0xffffffff | 0, 0x1fffff | 0);\n /**\n * An indicator used to reliably determine if an object is a Integer or not.\n * @type {boolean}\n * @const\n * @expose\n * @private\n */\n Integer.__isInteger__ = true;\n return Integer;\n}());\n/**\n * @private\n * @param num\n * @param radix\n * @param minSize\n * @returns {string}\n */\nfunction _convertNumberToString(num, radix, minSize) {\n var theNumberString = num.toString(radix);\n var paddingLength = Math.max(minSize - theNumberString.length, 0);\n var padding = '0'.repeat(paddingLength);\n return \"\" + padding + theNumberString;\n}\n/**\n *\n * @private\n * @param theString\n * @param theNumber\n * @param radix\n * @return {boolean} True if valid\n */\nfunction _isValidNumberFromString(theString, theNumber, radix) {\n return !Number.isNaN(theString) &&\n !Number.isNaN(theNumber) &&\n _convertNumberToString(theNumber, radix, theString.length) === theString.toLowerCase();\n}\nObject.defineProperty(Integer.prototype, '__isInteger__', {\n value: true,\n enumerable: false,\n configurable: false\n});\n/**\n * @type {number}\n * @const\n * @inner\n * @private\n */\nvar TWO_PWR_16_DBL = 1 << 16;\n/**\n * @type {number}\n * @const\n * @inner\n * @private\n */\nvar TWO_PWR_24_DBL = 1 << 24;\n/**\n * @type {number}\n * @const\n * @inner\n * @private\n */\nvar TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL;\n/**\n * @type {number}\n * @const\n * @inner\n * @private\n */\nvar TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL;\n/**\n * @type {number}\n * @const\n * @inner\n * @private\n */\nvar TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2;\n/**\n * @type {!Integer}\n * @const\n * @inner\n * @private\n */\nvar TWO_PWR_24 = Integer.fromInt(TWO_PWR_24_DBL);\n/**\n * Cast value to Integer type.\n * @access public\n * @param {Mixed} value - The value to use.\n * @param {Object} [opts={}] Configuration options\n * @param {boolean} [opts.strictStringValidation=false] Enable strict validation generated Integer.\n * @return {Integer} - An object of type Integer.\n */\nvar int = Integer.fromValue;\nexports.int = int;\n/**\n * Check if a variable is of Integer type.\n * @access public\n * @param {Mixed} value - The variable to check.\n * @return {Boolean} - Is it of the Integer type?\n */\nvar isInt = Integer.isInteger;\nexports.isInt = isInt;\n/**\n * Check if a variable can be safely converted to a number\n * @access public\n * @param {Mixed} value - The variable to check\n * @return {Boolean} - true if it is safe to call toNumber on variable otherwise false\n */\nvar inSafeRange = Integer.inSafeRange;\nexports.inSafeRange = inSafeRange;\n/**\n * Converts a variable to a number\n * @access public\n * @param {Mixed} value - The variable to convert\n * @return {number} - the variable as a number\n */\nvar toNumber = Integer.toNumber;\nexports.toNumber = toNumber;\n/**\n * Converts the integer to a string representation\n * @access public\n * @param {Mixed} value - The variable to convert\n * @param {number} radix - radix to use in string conversion, defaults to 10\n * @return {string} - returns a string representation of the integer\n */\nvar toString = Integer.toString;\nexports.toString = toString;\nexports.default = Integer;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Bookmark = void 0;\nvar util = __importStar(require(\"./util\"));\nvar BOOKMARKS_KEY = 'bookmarks';\nvar Bookmark = /** @class */ (function () {\n /**\n * @constructor\n * @param {string|string[]} values single bookmark as string or multiple bookmarks as a string array.\n */\n function Bookmark(values) {\n this._values = asStringArray(values);\n }\n Bookmark.empty = function () {\n return EMPTY_BOOKMARK;\n };\n /**\n * Check if the given bookmark is meaningful and can be send to the database.\n * @return {boolean} returns `true` bookmark has a value, `false` otherwise.\n */\n Bookmark.prototype.isEmpty = function () {\n return this._values.length === 0;\n };\n /**\n * Get all bookmark values as an array.\n * @return {string[]} all values.\n */\n Bookmark.prototype.values = function () {\n return this._values;\n };\n /**\n * Get this bookmark as an object for begin transaction call.\n * @return {Object} the value of this bookmark as object.\n */\n Bookmark.prototype.asBeginTransactionParameters = function () {\n var _a;\n if (this.isEmpty()) {\n return {};\n }\n // Driver sends {bookmark: \"max\", bookmarks: [\"one\", \"two\", \"max\"]} instead of simple\n // {bookmarks: [\"one\", \"two\", \"max\"]} for backwards compatibility reasons. Old servers can only accept single\n // bookmark that is why driver has to parse and compare given list of bookmarks. This functionality will\n // eventually be removed.\n return _a = {},\n _a[BOOKMARKS_KEY] = this._values,\n _a;\n };\n return Bookmark;\n}());\nexports.Bookmark = Bookmark;\nvar EMPTY_BOOKMARK = new Bookmark(null);\n/**\n * Converts given value to an array.\n * @param {string|string[]|Array} [value=undefined] argument to convert.\n * @return {string[]} value converted to an array.\n */\nfunction asStringArray(value) {\n if (!value) {\n return [];\n }\n if (util.isString(value)) {\n return [value];\n }\n if (Array.isArray(value)) {\n var result = [];\n var flattenedValue = flattenArray(value);\n for (var i = 0; i < flattenedValue.length; i++) {\n var element = flattenedValue[i];\n // if it is undefined or null, ignore it\n if (element !== undefined && element !== null) {\n if (!util.isString(element)) {\n throw new TypeError(\"Bookmark value should be a string, given: '\" + element + \"'\");\n }\n result.push(element);\n }\n }\n return result;\n }\n throw new TypeError(\"Bookmark should either be a string or a string array, given: '\" + value + \"'\");\n}\n/**\n * Recursively flattens an array so that the result becomes a single array\n * of values, which does not include any sub-arrays\n *\n * @param {Array} value\n */\nfunction flattenArray(values) {\n return values.reduce(function (dest, value) {\n return Array.isArray(value)\n ? dest.concat(flattenArray(value))\n : dest.concat(value);\n }, []);\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.EMPTY_CONNECTION_HOLDER = exports.ReadOnlyConnectionHolder = exports.ConnectionHolder = void 0;\nvar error_1 = require(\"../error\");\nvar util_1 = require(\"./util\");\nvar constants_1 = require(\"./constants\");\nvar bookmark_1 = require(\"./bookmark\");\n/**\n * Utility to lazily initialize connections and return them back to the pool when unused.\n * @private\n */\nvar ConnectionHolder = /** @class */ (function () {\n /**\n * @constructor\n * @param {object} params\n * @property {string} params.mode - the access mode for new connection holder.\n * @property {string} params.database - the target database name.\n * @property {Bookmark} params.bookmark - the last bookmark\n * @property {ConnectionProvider} params.connectionProvider - the connection provider to acquire connections from.\n * @property {string?} params.impersonatedUser - the user which will be impersonated\n * @property {function(databaseName:string)} params.onDatabaseNameResolved - callback called when the database name is resolved\n */\n function ConnectionHolder(_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.mode, mode = _c === void 0 ? constants_1.ACCESS_MODE_WRITE : _c, _d = _b.database, database = _d === void 0 ? '' : _d, bookmark = _b.bookmark, connectionProvider = _b.connectionProvider, impersonatedUser = _b.impersonatedUser, onDatabaseNameResolved = _b.onDatabaseNameResolved;\n this._mode = mode;\n this._database = database ? (0, util_1.assertString)(database, 'database') : '';\n this._bookmark = bookmark || bookmark_1.Bookmark.empty();\n this._connectionProvider = connectionProvider;\n this._impersonatedUser = impersonatedUser;\n this._referenceCount = 0;\n this._connectionPromise = Promise.resolve();\n this._onDatabaseNameResolved = onDatabaseNameResolved;\n }\n ConnectionHolder.prototype.mode = function () {\n return this._mode;\n };\n ConnectionHolder.prototype.database = function () {\n return this._database;\n };\n ConnectionHolder.prototype.setDatabase = function (database) {\n this._database = database;\n };\n ConnectionHolder.prototype.bookmark = function () {\n return this._bookmark;\n };\n ConnectionHolder.prototype.connectionProvider = function () {\n return this._connectionProvider;\n };\n ConnectionHolder.prototype.referenceCount = function () {\n return this._referenceCount;\n };\n ConnectionHolder.prototype.initializeConnection = function () {\n if (this._referenceCount === 0 && this._connectionProvider) {\n this._connectionPromise = this._connectionProvider.acquireConnection({\n accessMode: this._mode,\n database: this._database,\n bookmarks: this._bookmark,\n impersonatedUser: this._impersonatedUser,\n onDatabaseNameResolved: this._onDatabaseNameResolved\n });\n }\n else {\n this._referenceCount++;\n return false;\n }\n this._referenceCount++;\n return true;\n };\n ConnectionHolder.prototype.getConnection = function () {\n return this._connectionPromise;\n };\n ConnectionHolder.prototype.releaseConnection = function () {\n if (this._referenceCount === 0) {\n return this._connectionPromise;\n }\n this._referenceCount--;\n if (this._referenceCount === 0) {\n return this._releaseConnection();\n }\n return this._connectionPromise;\n };\n ConnectionHolder.prototype.close = function () {\n if (this._referenceCount === 0) {\n return this._connectionPromise;\n }\n this._referenceCount = 0;\n return this._releaseConnection();\n };\n /**\n * Return the current pooled connection instance to the connection pool.\n * We don't pool Session instances, to avoid users using the Session after they've called close.\n * The `Session` object is just a thin wrapper around Connection anyway, so it makes little difference.\n * @return {Promise} - promise resolved then connection is returned to the pool.\n * @private\n */\n ConnectionHolder.prototype._releaseConnection = function () {\n this._connectionPromise = this._connectionPromise\n .then(function (connection) {\n if (connection) {\n if (connection.isOpen()) {\n return connection\n .resetAndFlush()\n .catch(ignoreError)\n .then(function () { return connection._release(); });\n }\n return connection._release();\n }\n else {\n return Promise.resolve();\n }\n })\n .catch(ignoreError);\n return this._connectionPromise;\n };\n return ConnectionHolder;\n}());\nexports.ConnectionHolder = ConnectionHolder;\n/**\n * Provides a interaction with a ConnectionHolder without change it state by\n * releasing or initilizing\n */\nvar ReadOnlyConnectionHolder = /** @class */ (function (_super) {\n __extends(ReadOnlyConnectionHolder, _super);\n /**\n * Contructor\n * @param {ConnectionHolder} connectionHolder the connection holder which will treat the requests\n */\n function ReadOnlyConnectionHolder(connectionHolder) {\n var _this = _super.call(this, {\n mode: connectionHolder.mode(),\n database: connectionHolder.database(),\n bookmark: connectionHolder.bookmark(),\n connectionProvider: connectionHolder.connectionProvider()\n }) || this;\n _this._connectionHolder = connectionHolder;\n return _this;\n }\n /**\n * Return the true if the connection is suppose to be initilized with the command.\n *\n * @return {boolean}\n */\n ReadOnlyConnectionHolder.prototype.initializeConnection = function () {\n if (this._connectionHolder.referenceCount() === 0) {\n return false;\n }\n return true;\n };\n /**\n * Get the current connection promise.\n * @return {Promise} promise resolved with the current connection.\n */\n ReadOnlyConnectionHolder.prototype.getConnection = function () {\n return this._connectionHolder.getConnection();\n };\n /**\n * Get the current connection promise, doesn't performs the release\n * @return {Promise} promise with the resolved current connection\n */\n ReadOnlyConnectionHolder.prototype.releaseConnection = function () {\n return this._connectionHolder.getConnection().catch(function () { return Promise.resolve(); });\n };\n /**\n * Get the current connection promise, doesn't performs the connection close\n * @return {Promise} promise with the resolved current connection\n */\n ReadOnlyConnectionHolder.prototype.close = function () {\n return this._connectionHolder.getConnection().catch(function () { return Promise.resolve(); });\n };\n return ReadOnlyConnectionHolder;\n}(ConnectionHolder));\nexports.ReadOnlyConnectionHolder = ReadOnlyConnectionHolder;\nexports.default = ReadOnlyConnectionHolder;\nvar EmptyConnectionHolder = /** @class */ (function (_super) {\n __extends(EmptyConnectionHolder, _super);\n function EmptyConnectionHolder() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n EmptyConnectionHolder.prototype.mode = function () {\n return undefined;\n };\n EmptyConnectionHolder.prototype.database = function () {\n return undefined;\n };\n EmptyConnectionHolder.prototype.initializeConnection = function () {\n // nothing to initialize\n return true;\n };\n EmptyConnectionHolder.prototype.getConnection = function () {\n return Promise.reject((0, error_1.newError)('This connection holder does not serve connections'));\n };\n EmptyConnectionHolder.prototype.releaseConnection = function () {\n return Promise.resolve();\n };\n EmptyConnectionHolder.prototype.close = function () {\n return Promise.resolve();\n };\n return EmptyConnectionHolder;\n}(ConnectionHolder));\n/**\n * Connection holder that does not manage any connections.\n * @type {ConnectionHolder}\n * @private\n */\nvar EMPTY_CONNECTION_HOLDER = new EmptyConnectionHolder();\nexports.EMPTY_CONNECTION_HOLDER = EMPTY_CONNECTION_HOLDER;\n// eslint-disable-next-line handle-callback-err\nfunction ignoreError(error) { }\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ConnectivityVerifier = void 0;\nvar connection_holder_1 = require(\"./connection-holder\");\nvar constants_1 = require(\"./constants\");\nvar error_1 = require(\"../error\");\n/**\n * Verifies connectivity using the given connection provider.\n */\nvar ConnectivityVerifier = /** @class */ (function () {\n /**\n * @constructor\n * @param {ConnectionProvider} connectionProvider the provider to obtain connections from.\n */\n function ConnectivityVerifier(connectionProvider) {\n this._connectionProvider = connectionProvider;\n }\n /**\n * Try to obtain a working connection from the connection provider.\n * @returns {Promise} promise resolved with server info or rejected with error.\n */\n ConnectivityVerifier.prototype.verify = function (_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.database, database = _c === void 0 ? '' : _c;\n return acquireAndReleaseDummyConnection(this._connectionProvider, database);\n };\n return ConnectivityVerifier;\n}());\nexports.ConnectivityVerifier = ConnectivityVerifier;\n/**\n * @private\n * @param {ConnectionProvider} connectionProvider the provider to obtain connections from.\n * @param {string|undefined} database The database name\n * @return {Promise} promise resolved with server info or rejected with error.\n */\nfunction acquireAndReleaseDummyConnection(connectionProvider, database) {\n var connectionHolder = new connection_holder_1.ConnectionHolder({\n mode: constants_1.ACCESS_MODE_READ,\n database: database,\n connectionProvider: connectionProvider\n });\n connectionHolder.initializeConnection();\n return connectionHolder\n .getConnection()\n .then(function (connection) {\n // able to establish a connection\n if (!connection) {\n throw (0, error_1.newError)('Unexpected error acquiring transaction');\n }\n return connectionHolder.close().then(function () { return connection.server; });\n })\n .catch(function (error) {\n // failed to establish a connection\n return connectionHolder\n .close()\n .catch(function (ignoredError) {\n // ignore connection release error\n })\n .then(function () {\n return Promise.reject(error);\n });\n });\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BOLT_PROTOCOL_V4_4 = exports.BOLT_PROTOCOL_V4_3 = exports.BOLT_PROTOCOL_V4_2 = exports.BOLT_PROTOCOL_V4_1 = exports.BOLT_PROTOCOL_V4_0 = exports.BOLT_PROTOCOL_V3 = exports.BOLT_PROTOCOL_V2 = exports.BOLT_PROTOCOL_V1 = exports.DEFAULT_POOL_MAX_SIZE = exports.DEFAULT_POOL_ACQUISITION_TIMEOUT = exports.ACCESS_MODE_WRITE = exports.ACCESS_MODE_READ = exports.FETCH_ALL = void 0;\nvar FETCH_ALL = -1;\nexports.FETCH_ALL = FETCH_ALL;\nvar DEFAULT_POOL_ACQUISITION_TIMEOUT = 60 * 1000; // 60 seconds\nexports.DEFAULT_POOL_ACQUISITION_TIMEOUT = DEFAULT_POOL_ACQUISITION_TIMEOUT;\nvar DEFAULT_POOL_MAX_SIZE = 100;\nexports.DEFAULT_POOL_MAX_SIZE = DEFAULT_POOL_MAX_SIZE;\nvar ACCESS_MODE_READ = 'READ';\nexports.ACCESS_MODE_READ = ACCESS_MODE_READ;\nvar ACCESS_MODE_WRITE = 'WRITE';\nexports.ACCESS_MODE_WRITE = ACCESS_MODE_WRITE;\nvar BOLT_PROTOCOL_V1 = 1;\nexports.BOLT_PROTOCOL_V1 = BOLT_PROTOCOL_V1;\nvar BOLT_PROTOCOL_V2 = 2;\nexports.BOLT_PROTOCOL_V2 = BOLT_PROTOCOL_V2;\nvar BOLT_PROTOCOL_V3 = 3;\nexports.BOLT_PROTOCOL_V3 = BOLT_PROTOCOL_V3;\nvar BOLT_PROTOCOL_V4_0 = 4.0;\nexports.BOLT_PROTOCOL_V4_0 = BOLT_PROTOCOL_V4_0;\nvar BOLT_PROTOCOL_V4_1 = 4.1;\nexports.BOLT_PROTOCOL_V4_1 = BOLT_PROTOCOL_V4_1;\nvar BOLT_PROTOCOL_V4_2 = 4.2;\nexports.BOLT_PROTOCOL_V4_2 = BOLT_PROTOCOL_V4_2;\nvar BOLT_PROTOCOL_V4_3 = 4.3;\nexports.BOLT_PROTOCOL_V4_3 = BOLT_PROTOCOL_V4_3;\nvar BOLT_PROTOCOL_V4_4 = 4.4;\nexports.BOLT_PROTOCOL_V4_4 = BOLT_PROTOCOL_V4_4;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.objectUtil = exports.retryStrategy = exports.resolver = exports.serverAddress = exports.urlUtil = exports.logger = exports.connectivityVerifier = exports.transactionExecutor = exports.txConfig = exports.connectionHolder = exports.constants = exports.bookmark = exports.observer = exports.temporalUtil = exports.util = void 0;\nvar util = __importStar(require(\"./util\"));\nexports.util = util;\nvar temporalUtil = __importStar(require(\"./temporal-util\"));\nexports.temporalUtil = temporalUtil;\nvar observer = __importStar(require(\"./observers\"));\nexports.observer = observer;\nvar bookmark = __importStar(require(\"./bookmark\"));\nexports.bookmark = bookmark;\nvar constants = __importStar(require(\"./constants\"));\nexports.constants = constants;\nvar connectionHolder = __importStar(require(\"./connection-holder\"));\nexports.connectionHolder = connectionHolder;\nvar txConfig = __importStar(require(\"./tx-config\"));\nexports.txConfig = txConfig;\nvar transactionExecutor = __importStar(require(\"./transaction-executor\"));\nexports.transactionExecutor = transactionExecutor;\nvar connectivityVerifier = __importStar(require(\"./connectivity-verifier\"));\nexports.connectivityVerifier = connectivityVerifier;\nvar logger = __importStar(require(\"./logger\"));\nexports.logger = logger;\nvar urlUtil = __importStar(require(\"./url-util\"));\nexports.urlUtil = urlUtil;\nvar serverAddress = __importStar(require(\"./server-address\"));\nexports.serverAddress = serverAddress;\nvar resolver = __importStar(require(\"./resolver\"));\nexports.resolver = resolver;\nvar retryStrategy = __importStar(require(\"./retry-strategy\"));\nexports.retryStrategy = retryStrategy;\nvar objectUtil = __importStar(require(\"./object-util\"));\nexports.objectUtil = objectUtil;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Logger = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar error_1 = require(\"../error\");\nvar ERROR = 'error';\nvar WARN = 'warn';\nvar INFO = 'info';\nvar DEBUG = 'debug';\nvar DEFAULT_LEVEL = INFO;\nvar levels = (_a = {},\n _a[ERROR] = 0,\n _a[WARN] = 1,\n _a[INFO] = 2,\n _a[DEBUG] = 3,\n _a);\n/**\n * Logger used by the driver to notify about various internal events. Single logger should be used per driver.\n */\nvar Logger = /** @class */ (function () {\n /**\n * @constructor\n * @param {string} level the enabled logging level.\n * @param {function(level: string, message: string)} loggerFunction the function to write the log level and message.\n */\n function Logger(level, loggerFunction) {\n this._level = level;\n this._loggerFunction = loggerFunction;\n }\n /**\n * Create a new logger based on the given driver configuration.\n * @param {Object} driverConfig the driver configuration as supplied by the user.\n * @return {Logger} a new logger instance or a no-op logger when not configured.\n */\n Logger.create = function (driverConfig) {\n if (driverConfig && driverConfig.logging) {\n var loggingConfig = driverConfig.logging;\n var level = extractConfiguredLevel(loggingConfig);\n var loggerFunction = extractConfiguredLogger(loggingConfig);\n return new Logger(level, loggerFunction);\n }\n return this.noOp();\n };\n /**\n * Create a no-op logger implementation.\n * @return {Logger} the no-op logger implementation.\n */\n Logger.noOp = function () {\n return noOpLogger;\n };\n /**\n * Check if error logging is enabled, i.e. it is not a no-op implementation.\n * @return {boolean} `true` when enabled, `false` otherwise.\n */\n Logger.prototype.isErrorEnabled = function () {\n return isLevelEnabled(this._level, ERROR);\n };\n /**\n * Log an error message.\n * @param {string} message the message to log.\n */\n Logger.prototype.error = function (message) {\n if (this.isErrorEnabled()) {\n this._loggerFunction(ERROR, message);\n }\n };\n /**\n * Check if warn logging is enabled, i.e. it is not a no-op implementation.\n * @return {boolean} `true` when enabled, `false` otherwise.\n */\n Logger.prototype.isWarnEnabled = function () {\n return isLevelEnabled(this._level, WARN);\n };\n /**\n * Log an warning message.\n * @param {string} message the message to log.\n */\n Logger.prototype.warn = function (message) {\n if (this.isWarnEnabled()) {\n this._loggerFunction(WARN, message);\n }\n };\n /**\n * Check if info logging is enabled, i.e. it is not a no-op implementation.\n * @return {boolean} `true` when enabled, `false` otherwise.\n */\n Logger.prototype.isInfoEnabled = function () {\n return isLevelEnabled(this._level, INFO);\n };\n /**\n * Log an info message.\n * @param {string} message the message to log.\n */\n Logger.prototype.info = function (message) {\n if (this.isInfoEnabled()) {\n this._loggerFunction(INFO, message);\n }\n };\n /**\n * Check if debug logging is enabled, i.e. it is not a no-op implementation.\n * @return {boolean} `true` when enabled, `false` otherwise.\n */\n Logger.prototype.isDebugEnabled = function () {\n return isLevelEnabled(this._level, DEBUG);\n };\n /**\n * Log a debug message.\n * @param {string} message the message to log.\n */\n Logger.prototype.debug = function (message) {\n if (this.isDebugEnabled()) {\n this._loggerFunction(DEBUG, message);\n }\n };\n return Logger;\n}());\nexports.Logger = Logger;\nvar NoOpLogger = /** @class */ (function (_super) {\n __extends(NoOpLogger, _super);\n function NoOpLogger() {\n return _super.call(this, INFO, function (level, message) { }) || this;\n }\n NoOpLogger.prototype.isErrorEnabled = function () {\n return false;\n };\n NoOpLogger.prototype.error = function (message) { };\n NoOpLogger.prototype.isWarnEnabled = function () {\n return false;\n };\n NoOpLogger.prototype.warn = function (message) { };\n NoOpLogger.prototype.isInfoEnabled = function () {\n return false;\n };\n NoOpLogger.prototype.info = function (message) { };\n NoOpLogger.prototype.isDebugEnabled = function () {\n return false;\n };\n NoOpLogger.prototype.debug = function (message) { };\n return NoOpLogger;\n}(Logger));\nvar noOpLogger = new NoOpLogger();\n/**\n * Check if the given logging level is enabled.\n * @param {string} configuredLevel the configured level.\n * @param {string} targetLevel the level to check.\n * @return {boolean} value of `true` when enabled, `false` otherwise.\n */\nfunction isLevelEnabled(configuredLevel, targetLevel) {\n return levels[configuredLevel] >= levels[targetLevel];\n}\n/**\n * Extract the configured logging level from the driver's logging configuration.\n * @param {Object} loggingConfig the logging configuration.\n * @return {string} the configured log level or default when none configured.\n */\nfunction extractConfiguredLevel(loggingConfig) {\n if (loggingConfig && loggingConfig.level) {\n var configuredLevel = loggingConfig.level;\n var value = levels[configuredLevel];\n if (!value && value !== 0) {\n throw (0, error_1.newError)(\"Illegal logging level: \" + configuredLevel + \". Supported levels are: \" + Object.keys(levels));\n }\n return configuredLevel;\n }\n return DEFAULT_LEVEL;\n}\n/**\n * Extract the configured logger function from the driver's logging configuration.\n * @param {Object} loggingConfig the logging configuration.\n * @return {function(level: string, message: string)} the configured logging function.\n */\nfunction extractConfiguredLogger(loggingConfig) {\n if (loggingConfig && loggingConfig.logger) {\n var configuredLogger = loggingConfig.logger;\n if (configuredLogger && typeof configuredLogger === 'function') {\n return configuredLogger;\n }\n }\n throw (0, error_1.newError)(\"Illegal logger function: \" + loggingConfig.logger);\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getBrokenObjectReason = exports.isBrokenObject = exports.createBrokenObject = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nvar __isBrokenObject__ = '__isBrokenObject__';\n// eslint-disable-next-line @typescript-eslint/naming-convention\nvar __reason__ = '__reason__';\n/**\n * Creates a object on which all method calls will throw the given error\n *\n * @param {Error} error The error\n * @param {any} object The object. Default: {}\n * @returns {any} A broken object\n */\nfunction createBrokenObject(error, object) {\n if (object === void 0) { object = {}; }\n var fail = function () {\n throw error;\n };\n return new Proxy(object, {\n get: function (_, p) {\n if (p === __isBrokenObject__) {\n return true;\n }\n else if (p === __reason__) {\n return error;\n }\n else if (p === 'toJSON') {\n return undefined;\n }\n fail();\n },\n set: fail,\n apply: fail,\n construct: fail,\n defineProperty: fail,\n deleteProperty: fail,\n getOwnPropertyDescriptor: fail,\n getPrototypeOf: fail,\n has: fail,\n isExtensible: fail,\n ownKeys: fail,\n preventExtensions: fail,\n setPrototypeOf: fail\n });\n}\nexports.createBrokenObject = createBrokenObject;\n/**\n * Verifies if it is a Broken Object\n * @param {any} object The object\n * @returns {boolean} If it was created with createBrokenObject\n */\nfunction isBrokenObject(object) {\n return object !== null && typeof object === 'object' && object[__isBrokenObject__] === true;\n}\nexports.isBrokenObject = isBrokenObject;\n/**\n * Returns if the reason the object is broken.\n *\n * This method should only be called with instances create with {@link createBrokenObject}\n *\n * @param {any} object The object\n * @returns {Error} The reason the object is broken\n */\nfunction getBrokenObjectReason(object) {\n return object[__reason__];\n}\nexports.getBrokenObjectReason = getBrokenObjectReason;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.FailedObserver = exports.CompletedObserver = void 0;\nvar CompletedObserver = /** @class */ (function () {\n function CompletedObserver() {\n }\n CompletedObserver.prototype.subscribe = function (observer) {\n apply(observer, observer.onKeys, []);\n apply(observer, observer.onCompleted, {});\n };\n CompletedObserver.prototype.cancel = function () {\n // do nothing\n };\n CompletedObserver.prototype.prepareToHandleSingleResponse = function () {\n // do nothing\n };\n CompletedObserver.prototype.markCompleted = function () {\n // do nothing\n };\n CompletedObserver.prototype.onError = function (error) {\n // nothing to do, already finished\n throw Error('CompletedObserver not supposed to call onError');\n };\n return CompletedObserver;\n}());\nexports.CompletedObserver = CompletedObserver;\nvar FailedObserver = /** @class */ (function () {\n function FailedObserver(_a) {\n var error = _a.error, onError = _a.onError;\n this._error = error;\n this._beforeError = onError;\n this._observers = [];\n this.onError(error);\n }\n FailedObserver.prototype.subscribe = function (observer) {\n apply(observer, observer.onError, this._error);\n this._observers.push(observer);\n };\n FailedObserver.prototype.onError = function (error) {\n var _this = this;\n Promise.resolve(apply(this, this._beforeError, error)).then(function () {\n return _this._observers.forEach(function (o) { return apply(o, o.onError, error); });\n });\n };\n FailedObserver.prototype.cancel = function () {\n // do nothing\n };\n FailedObserver.prototype.prepareToHandleSingleResponse = function () {\n // do nothing\n };\n FailedObserver.prototype.markCompleted = function () {\n // do nothing\n };\n return FailedObserver;\n}());\nexports.FailedObserver = FailedObserver;\nfunction apply(thisArg, func, param) {\n if (func) {\n func.bind(thisArg)(param);\n }\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar BaseHostNameResolver = /** @class */ (function () {\n function BaseHostNameResolver() {\n }\n BaseHostNameResolver.prototype.resolve = function () {\n throw new Error('Abstract function');\n };\n /**\n * @protected\n */\n BaseHostNameResolver.prototype._resolveToItself = function (address) {\n return Promise.resolve([address]);\n };\n return BaseHostNameResolver;\n}());\nexports.default = BaseHostNameResolver;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar server_address_1 = require(\"../server-address\");\nfunction resolveToSelf(address) {\n return Promise.resolve([address]);\n}\nvar ConfiguredCustomResolver = /** @class */ (function () {\n function ConfiguredCustomResolver(resolverFunction) {\n this._resolverFunction = resolverFunction || resolveToSelf;\n }\n ConfiguredCustomResolver.prototype.resolve = function (seedRouter) {\n var _this = this;\n return new Promise(function (resolve) {\n return resolve(_this._resolverFunction(seedRouter.asHostPort()));\n }).then(function (resolved) {\n if (!Array.isArray(resolved)) {\n throw new TypeError('Configured resolver function should either return an array of addresses or a Promise resolved with an array of addresses.' +\n (\"Each address is ':'. Got: \" + resolved));\n }\n return resolved.map(function (r) { return server_address_1.ServerAddress.fromUrl(r); });\n });\n };\n return ConfiguredCustomResolver;\n}());\nexports.default = ConfiguredCustomResolver;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ConfiguredCustomResolver = exports.BaseHostNameResolver = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar base_host_name_resolver_1 = __importDefault(require(\"./base-host-name-resolver\"));\nexports.BaseHostNameResolver = base_host_name_resolver_1.default;\nvar configured_custom_resolver_1 = __importDefault(require(\"./configured-custom-resolver\"));\nexports.ConfiguredCustomResolver = configured_custom_resolver_1.default;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.canRetryOn = void 0;\nvar error_1 = require(\"../error\");\n/**\n * Verified error and returns if it could be retried or not\n *\n * @param _error The error\n * @returns If the transaction could be retried.\n */\nfunction canRetryOn(_error) {\n return (_error &&\n _error instanceof error_1.Neo4jError &&\n _error.code &&\n (_error.code === error_1.SERVICE_UNAVAILABLE ||\n _error.code === error_1.SESSION_EXPIRED ||\n _isAuthorizationExpired(_error) ||\n _isTransientError(_error)));\n}\nexports.canRetryOn = canRetryOn;\nfunction _isTransientError(error) {\n // Retries should not happen when transaction was explicitly terminated by the user.\n // Termination of transaction might result in two different error codes depending on where it was\n // terminated. These are really client errors but classification on the server is not entirely correct and\n // they are classified as transient.\n var code = error.code;\n if (code.indexOf('TransientError') >= 0) {\n if (code === 'Neo.TransientError.Transaction.Terminated' ||\n code === 'Neo.TransientError.Transaction.LockClientStopped') {\n return false;\n }\n return true;\n }\n return false;\n}\nfunction _isAuthorizationExpired(error) {\n return error.code === 'Neo.ClientError.Security.AuthorizationExpired';\n}\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ServerAddress = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar util_1 = require(\"./util\");\nvar urlUtil = __importStar(require(\"./url-util\"));\nvar ServerAddress = /** @class */ (function () {\n function ServerAddress(host, resolved, port, hostPort) {\n this._host = (0, util_1.assertString)(host, 'host');\n this._resolved = resolved ? (0, util_1.assertString)(resolved, 'resolved') : null;\n this._port = (0, util_1.assertNumber)(port, 'port');\n this._hostPort = hostPort;\n this._stringValue = resolved ? hostPort + \"(\" + resolved + \")\" : \"\" + hostPort;\n }\n ServerAddress.prototype.host = function () {\n return this._host;\n };\n ServerAddress.prototype.resolvedHost = function () {\n return this._resolved ? this._resolved : this._host;\n };\n ServerAddress.prototype.port = function () {\n return this._port;\n };\n ServerAddress.prototype.resolveWith = function (resolved) {\n return new ServerAddress(this._host, resolved, this._port, this._hostPort);\n };\n ServerAddress.prototype.asHostPort = function () {\n return this._hostPort;\n };\n ServerAddress.prototype.asKey = function () {\n return this._hostPort;\n };\n ServerAddress.prototype.toString = function () {\n return this._stringValue;\n };\n ServerAddress.fromUrl = function (url) {\n var urlParsed = urlUtil.parseDatabaseUrl(url);\n return new ServerAddress(urlParsed.host, null, urlParsed.port, urlParsed.hostAndPort);\n };\n return ServerAddress;\n}());\nexports.ServerAddress = ServerAddress;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.floorMod = exports.floorDiv = exports.assertValidZoneId = exports.assertValidNanosecond = exports.assertValidSecond = exports.assertValidMinute = exports.assertValidHour = exports.assertValidDay = exports.assertValidMonth = exports.assertValidYear = exports.timeZoneOffsetInSeconds = exports.totalNanoseconds = exports.newDate = exports.toStandardDate = exports.isoStringToStandardDate = exports.dateToIsoString = exports.timeZoneOffsetToIsoString = exports.timeToIsoString = exports.durationToIsoString = exports.dateToEpochDay = exports.localDateTimeToEpochSecond = exports.localTimeToNanoOfDay = exports.normalizeNanosecondsForDuration = exports.normalizeSecondsForDuration = exports.SECONDS_PER_DAY = exports.DAYS_PER_400_YEAR_CYCLE = exports.DAYS_0000_TO_1970 = exports.NANOS_PER_HOUR = exports.NANOS_PER_MINUTE = exports.NANOS_PER_MILLISECOND = exports.NANOS_PER_SECOND = exports.SECONDS_PER_HOUR = exports.SECONDS_PER_MINUTE = exports.MINUTES_PER_HOUR = exports.NANOSECOND_OF_SECOND_RANGE = exports.SECOND_OF_MINUTE_RANGE = exports.MINUTE_OF_HOUR_RANGE = exports.HOUR_OF_DAY_RANGE = exports.DAY_OF_MONTH_RANGE = exports.MONTH_OF_YEAR_RANGE = exports.YEAR_RANGE = void 0;\nvar integer_1 = __importStar(require(\"../integer\"));\nvar error_1 = require(\"../error\");\nvar util_1 = require(\"./util\");\n/*\n Code in this util should be compatible with code in the database that uses JSR-310 java.time APIs.\n\n It is based on a library called ThreeTen (https://github.com/ThreeTen/threetenbp) which was derived\n from JSR-310 reference implementation previously hosted on GitHub. Code uses `Integer` type everywhere\n to correctly handle large integer values that are greater than `Number.MAX_SAFE_INTEGER`.\n\n Please consult either ThreeTen or js-joda (https://github.com/js-joda/js-joda) when working with the\n conversion functions.\n */\nvar ValueRange = /** @class */ (function () {\n function ValueRange(min, max) {\n this._minNumber = min;\n this._maxNumber = max;\n this._minInteger = (0, integer_1.int)(min);\n this._maxInteger = (0, integer_1.int)(max);\n }\n ValueRange.prototype.contains = function (value) {\n if ((0, integer_1.isInt)(value) && value instanceof integer_1.default) {\n return (value.greaterThanOrEqual(this._minInteger) &&\n value.lessThanOrEqual(this._maxInteger));\n }\n else if (typeof value === 'bigint') {\n var intValue = (0, integer_1.int)(value);\n return (intValue.greaterThanOrEqual(this._minInteger) &&\n intValue.lessThanOrEqual(this._maxInteger));\n }\n else {\n return value >= this._minNumber && value <= this._maxNumber;\n }\n };\n ValueRange.prototype.toString = function () {\n return \"[\" + this._minNumber + \", \" + this._maxNumber + \"]\";\n };\n return ValueRange;\n}());\nexports.YEAR_RANGE = new ValueRange(-999999999, 999999999);\nexports.MONTH_OF_YEAR_RANGE = new ValueRange(1, 12);\nexports.DAY_OF_MONTH_RANGE = new ValueRange(1, 31);\nexports.HOUR_OF_DAY_RANGE = new ValueRange(0, 23);\nexports.MINUTE_OF_HOUR_RANGE = new ValueRange(0, 59);\nexports.SECOND_OF_MINUTE_RANGE = new ValueRange(0, 59);\nexports.NANOSECOND_OF_SECOND_RANGE = new ValueRange(0, 999999999);\nexports.MINUTES_PER_HOUR = 60;\nexports.SECONDS_PER_MINUTE = 60;\nexports.SECONDS_PER_HOUR = exports.SECONDS_PER_MINUTE * exports.MINUTES_PER_HOUR;\nexports.NANOS_PER_SECOND = 1000000000;\nexports.NANOS_PER_MILLISECOND = 1000000;\nexports.NANOS_PER_MINUTE = exports.NANOS_PER_SECOND * exports.SECONDS_PER_MINUTE;\nexports.NANOS_PER_HOUR = exports.NANOS_PER_MINUTE * exports.MINUTES_PER_HOUR;\nexports.DAYS_0000_TO_1970 = 719528;\nexports.DAYS_PER_400_YEAR_CYCLE = 146097;\nexports.SECONDS_PER_DAY = 86400;\nfunction normalizeSecondsForDuration(seconds, nanoseconds) {\n return (0, integer_1.int)(seconds).add(floorDiv(nanoseconds, exports.NANOS_PER_SECOND));\n}\nexports.normalizeSecondsForDuration = normalizeSecondsForDuration;\nfunction normalizeNanosecondsForDuration(nanoseconds) {\n return floorMod(nanoseconds, exports.NANOS_PER_SECOND);\n}\nexports.normalizeNanosecondsForDuration = normalizeNanosecondsForDuration;\n/**\n * Converts given local time into a single integer representing this same time in nanoseconds of the day.\n * @param {Integer|number|string} hour the hour of the local time to convert.\n * @param {Integer|number|string} minute the minute of the local time to convert.\n * @param {Integer|number|string} second the second of the local time to convert.\n * @param {Integer|number|string} nanosecond the nanosecond of the local time to convert.\n * @return {Integer} nanoseconds representing the given local time.\n */\nfunction localTimeToNanoOfDay(hour, minute, second, nanosecond) {\n hour = (0, integer_1.int)(hour);\n minute = (0, integer_1.int)(minute);\n second = (0, integer_1.int)(second);\n nanosecond = (0, integer_1.int)(nanosecond);\n var totalNanos = hour.multiply(exports.NANOS_PER_HOUR);\n totalNanos = totalNanos.add(minute.multiply(exports.NANOS_PER_MINUTE));\n totalNanos = totalNanos.add(second.multiply(exports.NANOS_PER_SECOND));\n return totalNanos.add(nanosecond);\n}\nexports.localTimeToNanoOfDay = localTimeToNanoOfDay;\n/**\n * Converts given local date time into a single integer representing this same time in epoch seconds UTC.\n * @param {Integer|number|string} year the year of the local date-time to convert.\n * @param {Integer|number|string} month the month of the local date-time to convert.\n * @param {Integer|number|string} day the day of the local date-time to convert.\n * @param {Integer|number|string} hour the hour of the local date-time to convert.\n * @param {Integer|number|string} minute the minute of the local date-time to convert.\n * @param {Integer|number|string} second the second of the local date-time to convert.\n * @param {Integer|number|string} nanosecond the nanosecond of the local date-time to convert.\n * @return {Integer} epoch second in UTC representing the given local date time.\n */\nfunction localDateTimeToEpochSecond(year, month, day, hour, minute, second, nanosecond) {\n var epochDay = dateToEpochDay(year, month, day);\n var localTimeSeconds = localTimeToSecondOfDay(hour, minute, second);\n return epochDay.multiply(exports.SECONDS_PER_DAY).add(localTimeSeconds);\n}\nexports.localDateTimeToEpochSecond = localDateTimeToEpochSecond;\n/**\n * Converts given local date into a single integer representing it's epoch day.\n * @param {Integer|number|string} year the year of the local date to convert.\n * @param {Integer|number|string} month the month of the local date to convert.\n * @param {Integer|number|string} day the day of the local date to convert.\n * @return {Integer} epoch day representing the given date.\n */\nfunction dateToEpochDay(year, month, day) {\n year = (0, integer_1.int)(year);\n month = (0, integer_1.int)(month);\n day = (0, integer_1.int)(day);\n var epochDay = year.multiply(365);\n if (year.greaterThanOrEqual(0)) {\n epochDay = epochDay.add(year\n .add(3)\n .div(4)\n .subtract(year.add(99).div(100))\n .add(year.add(399).div(400)));\n }\n else {\n epochDay = epochDay.subtract(year\n .div(-4)\n .subtract(year.div(-100))\n .add(year.div(-400)));\n }\n epochDay = epochDay.add(month\n .multiply(367)\n .subtract(362)\n .div(12));\n epochDay = epochDay.add(day.subtract(1));\n if (month.greaterThan(2)) {\n epochDay = epochDay.subtract(1);\n if (!isLeapYear(year)) {\n epochDay = epochDay.subtract(1);\n }\n }\n return epochDay.subtract(exports.DAYS_0000_TO_1970);\n}\nexports.dateToEpochDay = dateToEpochDay;\n/**\n * Format given duration to an ISO 8601 string.\n * @param {Integer|number|string} months the number of months.\n * @param {Integer|number|string} days the number of days.\n * @param {Integer|number|string} seconds the number of seconds.\n * @param {Integer|number|string} nanoseconds the number of nanoseconds.\n * @return {string} ISO string that represents given duration.\n */\nfunction durationToIsoString(months, days, seconds, nanoseconds) {\n var monthsString = formatNumber(months);\n var daysString = formatNumber(days);\n var secondsAndNanosecondsString = formatSecondsAndNanosecondsForDuration(seconds, nanoseconds);\n return \"P\" + monthsString + \"M\" + daysString + \"DT\" + secondsAndNanosecondsString + \"S\";\n}\nexports.durationToIsoString = durationToIsoString;\n/**\n * Formats given time to an ISO 8601 string.\n * @param {Integer|number|string} hour the hour value.\n * @param {Integer|number|string} minute the minute value.\n * @param {Integer|number|string} second the second value.\n * @param {Integer|number|string} nanosecond the nanosecond value.\n * @return {string} ISO string that represents given time.\n */\nfunction timeToIsoString(hour, minute, second, nanosecond) {\n var hourString = formatNumber(hour, 2);\n var minuteString = formatNumber(minute, 2);\n var secondString = formatNumber(second, 2);\n var nanosecondString = formatNanosecond(nanosecond);\n return hourString + \":\" + minuteString + \":\" + secondString + nanosecondString;\n}\nexports.timeToIsoString = timeToIsoString;\n/**\n * Formats given time zone offset in seconds to string representation like '±HH:MM', '±HH:MM:SS' or 'Z' for UTC.\n * @param {Integer|number|string} offsetSeconds the offset in seconds.\n * @return {string} ISO string that represents given offset.\n */\nfunction timeZoneOffsetToIsoString(offsetSeconds) {\n offsetSeconds = (0, integer_1.int)(offsetSeconds);\n if (offsetSeconds.equals(0)) {\n return 'Z';\n }\n var isNegative = offsetSeconds.isNegative();\n if (isNegative) {\n offsetSeconds = offsetSeconds.multiply(-1);\n }\n var signPrefix = isNegative ? '-' : '+';\n var hours = formatNumber(offsetSeconds.div(exports.SECONDS_PER_HOUR), 2);\n var minutes = formatNumber(offsetSeconds.div(exports.SECONDS_PER_MINUTE).modulo(exports.MINUTES_PER_HOUR), 2);\n var secondsValue = offsetSeconds.modulo(exports.SECONDS_PER_MINUTE);\n var seconds = secondsValue.equals(0) ? null : formatNumber(secondsValue, 2);\n return seconds\n ? \"\" + signPrefix + hours + \":\" + minutes + \":\" + seconds\n : \"\" + signPrefix + hours + \":\" + minutes;\n}\nexports.timeZoneOffsetToIsoString = timeZoneOffsetToIsoString;\n/**\n * Formats given date to an ISO 8601 string.\n * @param {Integer|number|string} year the date year.\n * @param {Integer|number|string} month the date month.\n * @param {Integer|number|string} day the date day.\n * @return {string} ISO string that represents given date.\n */\nfunction dateToIsoString(year, month, day) {\n var yearString = formatYear(year);\n var monthString = formatNumber(month, 2);\n var dayString = formatNumber(day, 2);\n return yearString + \"-\" + monthString + \"-\" + dayString;\n}\nexports.dateToIsoString = dateToIsoString;\n/**\n * Convert the given iso date string to a JavaScript Date object\n *\n * @param {string} isoString The iso date string\n * @returns {Date} the date\n */\nfunction isoStringToStandardDate(isoString) {\n return new Date(isoString);\n}\nexports.isoStringToStandardDate = isoStringToStandardDate;\n/**\n * Convert the given utc timestamp to a JavaScript Date object\n *\n * @param {number} utc Timestamp in UTC\n * @returns {Date} the date\n */\nfunction toStandardDate(utc) {\n return new Date(utc);\n}\nexports.toStandardDate = toStandardDate;\n/**\n * Shortcut for creating a new StandardDate\n * @param date\n * @returns {Date} the standard date\n */\nfunction newDate(date) {\n return new Date(date);\n}\nexports.newDate = newDate;\n/**\n * Get the total number of nanoseconds from the milliseconds of the given standard JavaScript date and optional nanosecond part.\n * @param {global.Date} standardDate the standard JavaScript date.\n * @param {Integer|number|bigint|undefined} nanoseconds the optional number of nanoseconds.\n * @return {Integer|number|bigint} the total amount of nanoseconds.\n */\nfunction totalNanoseconds(standardDate, nanoseconds) {\n nanoseconds = nanoseconds || 0;\n var nanosFromMillis = standardDate.getMilliseconds() * exports.NANOS_PER_MILLISECOND;\n return add(nanoseconds, nanosFromMillis);\n}\nexports.totalNanoseconds = totalNanoseconds;\n/**\n * Get the time zone offset in seconds from the given standard JavaScript date.\n *\n * Implementation note:\n * Time zone offset returned by the standard JavaScript date is the difference, in minutes, from local time to UTC.\n * So positive value means offset is behind UTC and negative value means it is ahead.\n * For Neo4j temporal types, like `Time` or `DateTime` offset is in seconds and represents difference from UTC to local time.\n * This is different from standard JavaScript dates and that's why implementation negates the returned value.\n *\n * @param {global.Date} standardDate the standard JavaScript date.\n * @return {number} the time zone offset in seconds.\n */\nfunction timeZoneOffsetInSeconds(standardDate) {\n var secondsPortion = standardDate.getSeconds() >= standardDate.getUTCSeconds()\n ? standardDate.getSeconds() - standardDate.getUTCSeconds()\n : standardDate.getSeconds() - standardDate.getUTCSeconds() + 60;\n var offsetInMinutes = standardDate.getTimezoneOffset();\n if (offsetInMinutes === 0) {\n return 0 + secondsPortion;\n }\n return -1 * offsetInMinutes * exports.SECONDS_PER_MINUTE + secondsPortion;\n}\nexports.timeZoneOffsetInSeconds = timeZoneOffsetInSeconds;\n/**\n * Assert that the year value is valid.\n * @param {Integer|number} year the value to check.\n * @return {Integer|number} the value of the year if it is valid. Exception is thrown otherwise.\n */\nfunction assertValidYear(year) {\n return assertValidTemporalValue(year, exports.YEAR_RANGE, 'Year');\n}\nexports.assertValidYear = assertValidYear;\n/**\n * Assert that the month value is valid.\n * @param {Integer|number} month the value to check.\n * @return {Integer|number} the value of the month if it is valid. Exception is thrown otherwise.\n */\nfunction assertValidMonth(month) {\n return assertValidTemporalValue(month, exports.MONTH_OF_YEAR_RANGE, 'Month');\n}\nexports.assertValidMonth = assertValidMonth;\n/**\n * Assert that the day value is valid.\n * @param {Integer|number} day the value to check.\n * @return {Integer|number} the value of the day if it is valid. Exception is thrown otherwise.\n */\nfunction assertValidDay(day) {\n return assertValidTemporalValue(day, exports.DAY_OF_MONTH_RANGE, 'Day');\n}\nexports.assertValidDay = assertValidDay;\n/**\n * Assert that the hour value is valid.\n * @param {Integer|number} hour the value to check.\n * @return {Integer|number} the value of the hour if it is valid. Exception is thrown otherwise.\n */\nfunction assertValidHour(hour) {\n return assertValidTemporalValue(hour, exports.HOUR_OF_DAY_RANGE, 'Hour');\n}\nexports.assertValidHour = assertValidHour;\n/**\n * Assert that the minute value is valid.\n * @param {Integer|number} minute the value to check.\n * @return {Integer|number} the value of the minute if it is valid. Exception is thrown otherwise.\n */\nfunction assertValidMinute(minute) {\n return assertValidTemporalValue(minute, exports.MINUTE_OF_HOUR_RANGE, 'Minute');\n}\nexports.assertValidMinute = assertValidMinute;\n/**\n * Assert that the second value is valid.\n * @param {Integer|number} second the value to check.\n * @return {Integer|number} the value of the second if it is valid. Exception is thrown otherwise.\n */\nfunction assertValidSecond(second) {\n return assertValidTemporalValue(second, exports.SECOND_OF_MINUTE_RANGE, 'Second');\n}\nexports.assertValidSecond = assertValidSecond;\n/**\n * Assert that the nanosecond value is valid.\n * @param {Integer|number} nanosecond the value to check.\n * @return {Integer|number} the value of the nanosecond if it is valid. Exception is thrown otherwise.\n */\nfunction assertValidNanosecond(nanosecond) {\n return assertValidTemporalValue(nanosecond, exports.NANOSECOND_OF_SECOND_RANGE, 'Nanosecond');\n}\nexports.assertValidNanosecond = assertValidNanosecond;\nfunction assertValidZoneId(fieldName, zoneId) {\n try {\n Intl.DateTimeFormat(undefined, { timeZone: zoneId });\n }\n catch (e) {\n throw (0, error_1.newError)(fieldName + \" is expected to be a valid ZoneId but was: \\\"\" + zoneId + \"\\\"\");\n }\n}\nexports.assertValidZoneId = assertValidZoneId;\n/**\n * Check if the given value is of expected type and is in the expected range.\n * @param {Integer|number} value the value to check.\n * @param {ValueRange} range the range.\n * @param {string} name the name of the value.\n * @return {Integer|number} the value if valid. Exception is thrown otherwise.\n */\nfunction assertValidTemporalValue(value, range, name) {\n (0, util_1.assertNumberOrInteger)(value, name);\n if (!range.contains(value)) {\n throw (0, error_1.newError)(name + \" is expected to be in range \" + range + \" but was: \" + value);\n }\n return value;\n}\n/**\n * Converts given local time into a single integer representing this same time in seconds of the day. Nanoseconds are skipped.\n * @param {Integer|number|string} hour the hour of the local time.\n * @param {Integer|number|string} minute the minute of the local time.\n * @param {Integer|number|string} second the second of the local time.\n * @return {Integer} seconds representing the given local time.\n */\nfunction localTimeToSecondOfDay(hour, minute, second) {\n hour = (0, integer_1.int)(hour);\n minute = (0, integer_1.int)(minute);\n second = (0, integer_1.int)(second);\n var totalSeconds = hour.multiply(exports.SECONDS_PER_HOUR);\n totalSeconds = totalSeconds.add(minute.multiply(exports.SECONDS_PER_MINUTE));\n return totalSeconds.add(second);\n}\n/**\n * Check if given year is a leap year. Uses algorithm described here {@link https://en.wikipedia.org/wiki/Leap_year#Algorithm}.\n * @param {Integer|number|string} year the year to check. Will be converted to {@link Integer} for all calculations.\n * @return {boolean} `true` if given year is a leap year, `false` otherwise.\n */\nfunction isLeapYear(year) {\n year = (0, integer_1.int)(year);\n if (!year.modulo(4).equals(0)) {\n return false;\n }\n else if (!year.modulo(100).equals(0)) {\n return true;\n }\n else if (!year.modulo(400).equals(0)) {\n return false;\n }\n else {\n return true;\n }\n}\n/**\n * @param {Integer|number|string} x the divident.\n * @param {Integer|number|string} y the divisor.\n * @return {Integer} the result.\n */\nfunction floorDiv(x, y) {\n x = (0, integer_1.int)(x);\n y = (0, integer_1.int)(y);\n var result = x.div(y);\n if (x.isPositive() !== y.isPositive() && result.multiply(y).notEquals(x)) {\n result = result.subtract(1);\n }\n return result;\n}\nexports.floorDiv = floorDiv;\n/**\n * @param {Integer|number|string} x the divident.\n * @param {Integer|number|string} y the divisor.\n * @return {Integer} the result.\n */\nfunction floorMod(x, y) {\n x = (0, integer_1.int)(x);\n y = (0, integer_1.int)(y);\n return x.subtract(floorDiv(x, y).multiply(y));\n}\nexports.floorMod = floorMod;\n/**\n * @param {Integer|number|string} seconds the number of seconds to format.\n * @param {Integer|number|string} nanoseconds the number of nanoseconds to format.\n * @return {string} formatted value.\n */\nfunction formatSecondsAndNanosecondsForDuration(seconds, nanoseconds) {\n seconds = (0, integer_1.int)(seconds);\n nanoseconds = (0, integer_1.int)(nanoseconds);\n var secondsString;\n var nanosecondsString;\n var secondsNegative = seconds.isNegative();\n var nanosecondsGreaterThanZero = nanoseconds.greaterThan(0);\n if (secondsNegative && nanosecondsGreaterThanZero) {\n if (seconds.equals(-1)) {\n secondsString = '-0';\n }\n else {\n secondsString = seconds.add(1).toString();\n }\n }\n else {\n secondsString = seconds.toString();\n }\n if (nanosecondsGreaterThanZero) {\n if (secondsNegative) {\n nanosecondsString = formatNanosecond(nanoseconds\n .negate()\n .add(2 * exports.NANOS_PER_SECOND)\n .modulo(exports.NANOS_PER_SECOND));\n }\n else {\n nanosecondsString = formatNanosecond(nanoseconds.add(exports.NANOS_PER_SECOND).modulo(exports.NANOS_PER_SECOND));\n }\n }\n return nanosecondsString ? secondsString + nanosecondsString : secondsString;\n}\n/**\n * @param {Integer|number|string} value the number of nanoseconds to format.\n * @return {string} formatted and possibly left-padded nanoseconds part as string.\n */\nfunction formatNanosecond(value) {\n value = (0, integer_1.int)(value);\n return value.equals(0) ? '' : '.' + formatNumber(value, 9);\n}\n/**\n *\n * @param {Integer|number|string} year The year to be formatted\n * @return {string} formatted year\n */\nfunction formatYear(year) {\n var yearInteger = (0, integer_1.int)(year);\n if (yearInteger.isNegative() || yearInteger.greaterThan(9999)) {\n return formatNumber(yearInteger, 6, { usePositiveSign: true });\n }\n return formatNumber(yearInteger, 4);\n}\n/**\n * @param {Integer|number|string} num the number to format.\n * @param {number} [stringLength=undefined] the string length to left-pad to.\n * @return {string} formatted and possibly left-padded number as string.\n */\nfunction formatNumber(num, stringLength, params) {\n num = (0, integer_1.int)(num);\n var isNegative = num.isNegative();\n if (isNegative) {\n num = num.negate();\n }\n var numString = num.toString();\n if (stringLength) {\n // left pad the string with zeroes\n while (numString.length < stringLength) {\n numString = '0' + numString;\n }\n }\n if (isNegative) {\n return '-' + numString;\n }\n else if ((params === null || params === void 0 ? void 0 : params.usePositiveSign) === true) {\n return '+' + numString;\n }\n return numString;\n}\nfunction add(x, y) {\n if (x instanceof integer_1.default) {\n return x.add(y);\n }\n else if (typeof x === 'bigint') {\n return x + BigInt(y);\n }\n return x + y;\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TransactionExecutor = void 0;\nvar error_1 = require(\"../error\");\nvar retry_strategy_1 = require(\"./retry-strategy\");\nvar DEFAULT_MAX_RETRY_TIME_MS = 30 * 1000; // 30 seconds\nvar DEFAULT_INITIAL_RETRY_DELAY_MS = 1000; // 1 seconds\nvar DEFAULT_RETRY_DELAY_MULTIPLIER = 2.0;\nvar DEFAULT_RETRY_DELAY_JITTER_FACTOR = 0.2;\nvar TransactionExecutor = /** @class */ (function () {\n function TransactionExecutor(maxRetryTimeMs, initialRetryDelayMs, multiplier, jitterFactor) {\n this._maxRetryTimeMs = _valueOrDefault(maxRetryTimeMs, DEFAULT_MAX_RETRY_TIME_MS);\n this._initialRetryDelayMs = _valueOrDefault(initialRetryDelayMs, DEFAULT_INITIAL_RETRY_DELAY_MS);\n this._multiplier = _valueOrDefault(multiplier, DEFAULT_RETRY_DELAY_MULTIPLIER);\n this._jitterFactor = _valueOrDefault(jitterFactor, DEFAULT_RETRY_DELAY_JITTER_FACTOR);\n this._inFlightTimeoutIds = [];\n this._verifyAfterConstruction();\n }\n TransactionExecutor.prototype.execute = function (transactionCreator, transactionWork) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n _this._executeTransactionInsidePromise(transactionCreator, transactionWork, resolve, reject);\n }).catch(function (error) {\n var retryStartTimeMs = Date.now();\n var retryDelayMs = _this._initialRetryDelayMs;\n return _this._retryTransactionPromise(transactionCreator, transactionWork, error, retryStartTimeMs, retryDelayMs);\n });\n };\n TransactionExecutor.prototype.close = function () {\n // cancel all existing timeouts to prevent further retries\n this._inFlightTimeoutIds.forEach(function (timeoutId) { return clearTimeout(timeoutId); });\n this._inFlightTimeoutIds = [];\n };\n TransactionExecutor.prototype._retryTransactionPromise = function (transactionCreator, transactionWork, error, retryStartTime, retryDelayMs) {\n var _this = this;\n var elapsedTimeMs = Date.now() - retryStartTime;\n if (elapsedTimeMs > this._maxRetryTimeMs || !(0, retry_strategy_1.canRetryOn)(error)) {\n return Promise.reject(error);\n }\n return new Promise(function (resolve, reject) {\n var nextRetryTime = _this._computeDelayWithJitter(retryDelayMs);\n var timeoutId = setTimeout(function () {\n // filter out this timeoutId when time has come and function is being executed\n _this._inFlightTimeoutIds = _this._inFlightTimeoutIds.filter(function (id) { return id !== timeoutId; });\n _this._executeTransactionInsidePromise(transactionCreator, transactionWork, resolve, reject);\n }, nextRetryTime);\n // add newly created timeoutId to the list of all in-flight timeouts\n _this._inFlightTimeoutIds.push(timeoutId);\n }).catch(function (error) {\n var nextRetryDelayMs = retryDelayMs * _this._multiplier;\n return _this._retryTransactionPromise(transactionCreator, transactionWork, error, retryStartTime, nextRetryDelayMs);\n });\n };\n TransactionExecutor.prototype._executeTransactionInsidePromise = function (transactionCreator, transactionWork, resolve, reject) {\n var _this = this;\n var tx;\n try {\n tx = transactionCreator();\n }\n catch (error) {\n // failed to create a transaction\n reject(error);\n return;\n }\n var resultPromise = this._safeExecuteTransactionWork(tx, transactionWork);\n resultPromise\n .then(function (result) {\n return _this._handleTransactionWorkSuccess(result, tx, resolve, reject);\n })\n .catch(function (error) { return _this._handleTransactionWorkFailure(error, tx, reject); });\n };\n TransactionExecutor.prototype._safeExecuteTransactionWork = function (tx, transactionWork) {\n try {\n var result = transactionWork(tx);\n // user defined callback is supposed to return a promise, but it might not; so to protect against an\n // incorrect API usage we wrap the returned value with a resolved promise; this is effectively a\n // validation step without type checks\n return Promise.resolve(result);\n }\n catch (error) {\n return Promise.reject(error);\n }\n };\n TransactionExecutor.prototype._handleTransactionWorkSuccess = function (result, tx, resolve, reject) {\n if (tx.isOpen()) {\n // transaction work returned resolved promise and transaction has not been committed/rolled back\n // try to commit the transaction\n tx.commit()\n .then(function () {\n // transaction was committed, return result to the user\n resolve(result);\n })\n .catch(function (error) {\n // transaction failed to commit, propagate the failure\n reject(error);\n });\n }\n else {\n // transaction work returned resolved promise and transaction is already committed/rolled back\n // return the result returned by given transaction work\n resolve(result);\n }\n };\n TransactionExecutor.prototype._handleTransactionWorkFailure = function (error, tx, reject) {\n if (tx.isOpen()) {\n // transaction work failed and the transaction is still open, roll it back and propagate the failure\n tx.rollback()\n .catch(function (ignore) {\n // ignore the rollback error\n })\n .then(function () { return reject(error); }); // propagate the original error we got from the transaction work\n }\n else {\n // transaction is already rolled back, propagate the error\n reject(error);\n }\n };\n TransactionExecutor.prototype._computeDelayWithJitter = function (delayMs) {\n var jitter = delayMs * this._jitterFactor;\n var min = delayMs - jitter;\n var max = delayMs + jitter;\n return Math.random() * (max - min) + min;\n };\n TransactionExecutor.prototype._verifyAfterConstruction = function () {\n if (this._maxRetryTimeMs < 0) {\n throw (0, error_1.newError)('Max retry time should be >= 0: ' + this._maxRetryTimeMs);\n }\n if (this._initialRetryDelayMs < 0) {\n throw (0, error_1.newError)('Initial retry delay should >= 0: ' + this._initialRetryDelayMs);\n }\n if (this._multiplier < 1.0) {\n throw (0, error_1.newError)('Multiplier should be >= 1.0: ' + this._multiplier);\n }\n if (this._jitterFactor < 0 || this._jitterFactor > 1) {\n throw (0, error_1.newError)('Jitter factor should be in [0.0, 1.0]: ' + this._jitterFactor);\n }\n };\n return TransactionExecutor;\n}());\nexports.TransactionExecutor = TransactionExecutor;\nfunction _valueOrDefault(value, defaultValue) {\n if (value || value === 0) {\n return value;\n }\n return defaultValue;\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TxConfig = void 0;\nvar util = __importStar(require(\"./util\"));\nvar error_1 = require(\"../error\");\nvar integer_1 = require(\"../integer\");\n/**\n * Internal holder of the transaction configuration.\n * It performs input validation and value conversion for further serialization by the Bolt protocol layer.\n * Users of the driver provide transaction configuration as regular objects `{timeout: 10, metadata: {key: 'value'}}`.\n * Driver converts such objects to {@link TxConfig} immediately and uses converted values everywhere.\n */\nvar TxConfig = /** @class */ (function () {\n /**\n * @constructor\n * @param {Object} config the raw configuration object.\n */\n function TxConfig(config) {\n assertValidConfig(config);\n this.timeout = extractTimeout(config);\n this.metadata = extractMetadata(config);\n }\n /**\n * Get an empty config object.\n * @return {TxConfig} an empty config.\n */\n TxConfig.empty = function () {\n return EMPTY_CONFIG;\n };\n /**\n * Check if this config object is empty. I.e. has no configuration values specified.\n * @return {boolean} `true` if this object is empty, `false` otherwise.\n */\n TxConfig.prototype.isEmpty = function () {\n return Object.values(this).every(function (value) { return value == null; });\n };\n return TxConfig;\n}());\nexports.TxConfig = TxConfig;\nvar EMPTY_CONFIG = new TxConfig({});\n/**\n * @return {Integer|null}\n */\nfunction extractTimeout(config) {\n if (util.isObject(config) && (config.timeout || config.timeout === 0)) {\n util.assertNumberOrInteger(config.timeout, 'Transaction timeout');\n var timeout = (0, integer_1.int)(config.timeout);\n if (timeout.isZero()) {\n throw (0, error_1.newError)('Transaction timeout should not be zero');\n }\n if (timeout.isNegative()) {\n throw (0, error_1.newError)('Transaction timeout should not be negative');\n }\n return timeout;\n }\n return null;\n}\n/**\n * @return {object|null}\n */\nfunction extractMetadata(config) {\n if (util.isObject(config) && config.metadata) {\n var metadata = config.metadata;\n util.assertObject(metadata, 'config.metadata');\n if (Object.keys(metadata).length !== 0) {\n // not an empty object\n return metadata;\n }\n }\n return null;\n}\nfunction assertValidConfig(config) {\n if (config) {\n util.assertObject(config, 'Transaction config');\n }\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Url = exports.formatIPv6Address = exports.formatIPv4Address = exports.defaultPortForScheme = exports.parseDatabaseUrl = void 0;\nvar util_1 = require(\"./util\");\nvar DEFAULT_BOLT_PORT = 7687;\nvar DEFAULT_HTTP_PORT = 7474;\nvar DEFAULT_HTTPS_PORT = 7473;\nvar Url = /** @class */ (function () {\n function Url(scheme, host, port, hostAndPort, query) {\n /**\n * Nullable scheme (protocol) of the URL.\n * Example: 'bolt', 'neo4j', 'http', 'https', etc.\n * @type {string}\n */\n this.scheme = scheme;\n /**\n * Nonnull host name or IP address. IPv6 not wrapped in square brackets.\n * Example: 'neo4j.com', 'localhost', '127.0.0.1', '192.168.10.15', '::1', '2001:4860:4860::8844', etc.\n * @type {string}\n */\n this.host = host;\n /**\n * Nonnull number representing port. Default port for the given scheme is used if given URL string\n * does not contain port. Example: 7687 for bolt, 7474 for HTTP and 7473 for HTTPS.\n * @type {number}\n */\n this.port = port;\n /**\n * Nonnull host name or IP address plus port, separated by ':'. IPv6 wrapped in square brackets.\n * Example: 'neo4j.com', 'neo4j.com:7687', '127.0.0.1', '127.0.0.1:8080', '[2001:4860:4860::8844]',\n * '[2001:4860:4860::8844]:9090', etc.\n * @type {string}\n */\n this.hostAndPort = hostAndPort;\n /**\n * Nonnull object representing parsed query string key-value pairs. Duplicated keys not supported.\n * Example: '{}', '{'key1': 'value1', 'key2': 'value2'}', etc.\n * @type {Object}\n */\n this.query = query;\n }\n return Url;\n}());\nexports.Url = Url;\nfunction parseDatabaseUrl(url) {\n (0, util_1.assertString)(url, 'URL');\n var sanitized = sanitizeUrl(url);\n var parsedUrl = uriJsParse(sanitized.url);\n var scheme = sanitized.schemeMissing\n ? null\n : extractScheme(parsedUrl.scheme);\n var host = extractHost(parsedUrl.host); // no square brackets for IPv6\n var formattedHost = formatHost(host); // has square brackets for IPv6\n var port = extractPort(parsedUrl.port, scheme);\n var hostAndPort = formattedHost + \":\" + port;\n var query = extractQuery(\n // @ts-ignore\n parsedUrl.query || extractResourceQueryString(parsedUrl.resourceName), url);\n return new Url(scheme, host, port, hostAndPort, query);\n}\nexports.parseDatabaseUrl = parseDatabaseUrl;\nfunction extractResourceQueryString(resource) {\n if (typeof resource !== 'string') {\n return null;\n }\n var _a = __read(resource.split('?'), 2), _ = _a[0], query = _a[1];\n return query;\n}\nfunction sanitizeUrl(url) {\n url = url.trim();\n if (url.indexOf('://') === -1) {\n // url does not contain scheme, add dummy 'none://' to make parser work correctly\n return { schemeMissing: true, url: \"none://\" + url };\n }\n return { schemeMissing: false, url: url };\n}\nfunction extractScheme(scheme) {\n if (scheme) {\n scheme = scheme.trim();\n if (scheme.charAt(scheme.length - 1) === ':') {\n scheme = scheme.substring(0, scheme.length - 1);\n }\n return scheme;\n }\n return null;\n}\nfunction extractHost(host, url) {\n if (!host) {\n throw new Error(\"Unable to extract host from \" + url);\n }\n return host.trim();\n}\nfunction extractPort(portString, scheme) {\n var port = typeof portString === 'string' ? parseInt(portString, 10) : portString;\n return port === 0 || port ? port : defaultPortForScheme(scheme);\n}\nfunction extractQuery(queryString, url) {\n var query = queryString ? trimAndSanitizeQuery(queryString) : null;\n var context = {};\n if (query) {\n query.split('&').forEach(function (pair) {\n var keyValue = pair.split('=');\n if (keyValue.length !== 2) {\n throw new Error(\"Invalid parameters: '\" + keyValue + \"' in URL '\" + url + \"'.\");\n }\n var key = trimAndVerifyQueryElement(keyValue[0], 'key', url);\n var value = trimAndVerifyQueryElement(keyValue[1], 'value', url);\n if (context[key]) {\n throw new Error(\"Duplicated query parameters with key '\" + key + \"' in URL '\" + url + \"'\");\n }\n context[key] = value;\n });\n }\n return context;\n}\nfunction trimAndSanitizeQuery(query) {\n query = (query || '').trim();\n if (query && query.charAt(0) === '?') {\n query = query.substring(1, query.length);\n }\n return query;\n}\nfunction trimAndVerifyQueryElement(element, name, url) {\n element = (element || '').trim();\n if (!element) {\n throw new Error(\"Illegal empty \" + name + \" in URL query '\" + url + \"'\");\n }\n return element;\n}\nfunction escapeIPv6Address(address) {\n var startsWithSquareBracket = address.charAt(0) === '[';\n var endsWithSquareBracket = address.charAt(address.length - 1) === ']';\n if (!startsWithSquareBracket && !endsWithSquareBracket) {\n return \"[\" + address + \"]\";\n }\n else if (startsWithSquareBracket && endsWithSquareBracket) {\n return address;\n }\n else {\n throw new Error(\"Illegal IPv6 address \" + address);\n }\n}\nfunction formatHost(host) {\n if (!host) {\n throw new Error(\"Illegal host \" + host);\n }\n var isIPv6Address = host.indexOf(':') >= 0;\n return isIPv6Address ? escapeIPv6Address(host) : host;\n}\nfunction formatIPv4Address(address, port) {\n return address + \":\" + port;\n}\nexports.formatIPv4Address = formatIPv4Address;\nfunction formatIPv6Address(address, port) {\n var escapedAddress = escapeIPv6Address(address);\n return escapedAddress + \":\" + port;\n}\nexports.formatIPv6Address = formatIPv6Address;\nfunction defaultPortForScheme(scheme) {\n if (scheme === 'http') {\n return DEFAULT_HTTP_PORT;\n }\n else if (scheme === 'https') {\n return DEFAULT_HTTPS_PORT;\n }\n else {\n return DEFAULT_BOLT_PORT;\n }\n}\nexports.defaultPortForScheme = defaultPortForScheme;\nfunction uriJsParse(value) {\n // JS version of Python partition function\n function partition(s, delimiter) {\n var i = s.indexOf(delimiter);\n if (i >= 0)\n return [s.substring(0, i), s[i], s.substring(i + 1)];\n else\n return [s, '', ''];\n }\n // JS version of Python rpartition function\n function rpartition(s, delimiter) {\n var i = s.lastIndexOf(delimiter);\n if (i >= 0)\n return [s.substring(0, i), s[i], s.substring(i + 1)];\n else\n return ['', '', s];\n }\n function between(s, ldelimiter, rdelimiter) {\n var lpartition = partition(s, ldelimiter);\n var rpartition = partition(lpartition[2], rdelimiter);\n return [rpartition[0], rpartition[2]];\n }\n // Parse an authority string into an object\n // with the following keys:\n // - userInfo (optional, might contain both user name and password)\n // - host\n // - port (optional, included only as a string)\n function parseAuthority(value) {\n var parsed = {}, parts;\n // Parse user info\n parts = rpartition(value, '@');\n if (parts[1] === '@') {\n parsed.userInfo = decodeURIComponent(parts[0]);\n value = parts[2];\n }\n // Parse host and port\n var _a = __read(between(value, \"[\", \"]\"), 2), ipv6Host = _a[0], rest = _a[1];\n if (ipv6Host !== '') {\n parsed.host = ipv6Host;\n parts = partition(rest, ':');\n }\n else {\n parts = partition(value, ':');\n parsed.host = parts[0];\n }\n if (parts[1] === ':') {\n parsed.port = parts[2];\n }\n return parsed;\n }\n var parsed = {}, parts;\n // Parse scheme\n parts = partition(value, ':');\n if (parts[1] === ':') {\n parsed.scheme = decodeURIComponent(parts[0]);\n value = parts[2];\n }\n // Parse fragment\n parts = partition(value, '#');\n if (parts[1] === '#') {\n parsed.fragment = decodeURIComponent(parts[2]);\n value = parts[0];\n }\n // Parse query\n parts = partition(value, '?');\n if (parts[1] === '?') {\n parsed.query = parts[2];\n value = parts[0];\n }\n // Parse authority and path\n if (value.startsWith('//')) {\n parts = partition(value.substr(2), '/');\n parsed = __assign(__assign({}, parsed), parseAuthority(parts[0]));\n parsed.path = parts[1] + parts[2];\n }\n else {\n parsed.path = value;\n }\n return parsed;\n}\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ENCRYPTION_OFF = exports.ENCRYPTION_ON = exports.validateQueryAndParameters = exports.assertValidDate = exports.assertNumberOrInteger = exports.assertNumber = exports.assertString = exports.assertObject = exports.isString = exports.isObject = exports.isEmptyObjectOrNull = void 0;\nvar integer_1 = require(\"../integer\");\nvar json_1 = require(\"../json\");\nvar ENCRYPTION_ON = 'ENCRYPTION_ON';\nexports.ENCRYPTION_ON = ENCRYPTION_ON;\nvar ENCRYPTION_OFF = 'ENCRYPTION_OFF';\nexports.ENCRYPTION_OFF = ENCRYPTION_OFF;\n/**\n * Verifies if the object is null or empty\n * @param obj The subject object\n * @returns {boolean} True if it's empty object or null\n */\nfunction isEmptyObjectOrNull(obj) {\n if (obj === null) {\n return true;\n }\n if (!isObject(obj)) {\n return false;\n }\n for (var prop in obj) {\n if (Object.prototype.hasOwnProperty.bind(obj, prop)) {\n return false;\n }\n }\n return true;\n}\nexports.isEmptyObjectOrNull = isEmptyObjectOrNull;\n/**\n * Verify if it's an object\n * @param obj The subject\n * @returns {boolean} True if it's an object\n */\nfunction isObject(obj) {\n return typeof obj === 'object' && !Array.isArray(obj) && obj !== null;\n}\nexports.isObject = isObject;\n/**\n * Check and normalize given query and parameters.\n * @param {string|{text: string, parameters: Object}} query the query to check.\n * @param {Object} parameters\n * @return {{validatedQuery: string|{text: string, parameters: Object}, params: Object}} the normalized query with parameters.\n * @throws TypeError when either given query or parameters are invalid.\n */\nfunction validateQueryAndParameters(query, parameters, opt) {\n var validatedQuery = '';\n var params = parameters || {};\n var skipAsserts = (opt === null || opt === void 0 ? void 0 : opt.skipAsserts) || false;\n if (typeof query === 'string') {\n validatedQuery = query;\n }\n else if (query instanceof String) {\n validatedQuery = query.toString();\n }\n else if (typeof query === 'object' && query.text) {\n validatedQuery = query.text;\n params = query.parameters || {};\n }\n if (!skipAsserts) {\n assertCypherQuery(validatedQuery);\n assertQueryParameters(params);\n }\n return { validatedQuery: validatedQuery, params: params };\n}\nexports.validateQueryAndParameters = validateQueryAndParameters;\n/**\n * Assert it's a object\n * @param {any} obj The subject\n * @param {string} objName The object name\n * @returns {object} The subject object\n * @throws {TypeError} when the supplied param is not an object\n */\nfunction assertObject(obj, objName) {\n if (!isObject(obj)) {\n throw new TypeError(objName + ' expected to be an object but was: ' + (0, json_1.stringify)(obj));\n }\n return obj;\n}\nexports.assertObject = assertObject;\n/**\n * Assert it's a string\n * @param {any} obj The subject\n * @param {string} objName The object name\n * @returns {string} The subject string\n * @throws {TypeError} when the supplied param is not a string\n */\nfunction assertString(obj, objName) {\n if (!isString(obj)) {\n throw new TypeError(objName + ' expected to be string but was: ' + (0, json_1.stringify)(obj));\n }\n return obj;\n}\nexports.assertString = assertString;\n/**\n * Assert it's a number\n * @param {any} obj The subject\n * @param {string} objName The object name\n * @returns {number} The number\n * @throws {TypeError} when the supplied param is not a number\n */\nfunction assertNumber(obj, objName) {\n if (typeof obj !== 'number') {\n throw new TypeError(objName + ' expected to be a number but was: ' + (0, json_1.stringify)(obj));\n }\n return obj;\n}\nexports.assertNumber = assertNumber;\n/**\n * Assert it's a number or integer\n * @param {any} obj The subject\n * @param {string} objName The object name\n * @returns {number|Integer} The subject object\n * @throws {TypeError} when the supplied param is not a number or integer\n */\nfunction assertNumberOrInteger(obj, objName) {\n if (typeof obj !== 'number' && typeof obj !== 'bigint' && !(0, integer_1.isInt)(obj)) {\n throw new TypeError(objName +\n ' expected to be either a number or an Integer object but was: ' +\n (0, json_1.stringify)(obj));\n }\n return obj;\n}\nexports.assertNumberOrInteger = assertNumberOrInteger;\n/**\n * Assert it's a valid datae\n * @param {any} obj The subject\n * @param {string} objName The object name\n * @returns {Date} The valida date\n * @throws {TypeError} when the supplied param is not a valid date\n */\nfunction assertValidDate(obj, objName) {\n if (Object.prototype.toString.call(obj) !== '[object Date]') {\n throw new TypeError(objName +\n ' expected to be a standard JavaScript Date but was: ' +\n (0, json_1.stringify)(obj));\n }\n if (Number.isNaN(obj.getTime())) {\n throw new TypeError(objName +\n ' expected to be valid JavaScript Date but its time was NaN: ' +\n (0, json_1.stringify)(obj));\n }\n return obj;\n}\nexports.assertValidDate = assertValidDate;\n/**\n * Validates a cypher query string\n * @param {any} obj The query\n * @returns {void}\n * @throws {TypeError} if the query is not valid\n */\nfunction assertCypherQuery(obj) {\n assertString(obj, 'Cypher query');\n if (obj.trim().length === 0) {\n throw new TypeError('Cypher query is expected to be a non-empty string.');\n }\n}\n/**\n * Validates if the query parameters is an object\n * @param {any} obj The parameters\n * @returns {void}\n * @throws {TypeError} if the parameters is not valid\n */\nfunction assertQueryParameters(obj) {\n if (!isObject(obj)) {\n // objects created with `Object.create(null)` do not have a constructor property\n var constructor = obj.constructor ? ' ' + obj.constructor.name : '';\n throw new TypeError(\"Query parameters are expected to either be undefined/null or an object, given:\" + constructor + \" \" + obj);\n }\n}\n/**\n * Verify if the supplied object is a string\n *\n * @param str The string\n * @returns {boolean} True if the supplied object is an string\n */\nfunction isString(str) {\n return Object.prototype.toString.call(str) === '[object String]';\n}\nexports.isString = isString;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.stringify = void 0;\nvar object_util_1 = require(\"./internal/object-util\");\n/**\n * Custom version on JSON.stringify that can handle values that normally don't support serialization, such as BigInt.\n * @private\n * @param val A JavaScript value, usually an object or array, to be converted.\n * @returns A JSON string representing the given value.\n */\nfunction stringify(val) {\n return JSON.stringify(val, function (_, value) {\n if ((0, object_util_1.isBrokenObject)(value)) {\n return {\n __isBrokenObject__: true,\n __reason__: (0, object_util_1.getBrokenObjectReason)(value)\n };\n }\n if (typeof value === 'bigint') {\n return value + \"n\";\n }\n return value;\n });\n}\nexports.stringify = stringify;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar error_1 = require(\"./error\");\nfunction generateFieldLookup(keys) {\n var lookup = {};\n keys.forEach(function (name, idx) {\n lookup[name] = idx;\n });\n return lookup;\n}\n/**\n * Records make up the contents of the {@link Result}, and is how you access\n * the output of a query. A simple query might yield a result stream\n * with a single record, for instance:\n *\n * MATCH (u:User) RETURN u.name, u.age\n *\n * This returns a stream of records with two fields, named `u.name` and `u.age`,\n * each record represents one user found by the query above. You can access\n * the values of each field either by name:\n *\n * record.get(\"u.name\")\n *\n * Or by it's position:\n *\n * record.get(0)\n *\n * @access public\n */\nvar Record = /** @class */ (function () {\n /**\n * Create a new record object.\n * @constructor\n * @protected\n * @param {string[]} keys An array of field keys, in the order the fields appear in the record\n * @param {Array} fields An array of field values\n * @param {Object} fieldLookup An object of fieldName -> value index, used to map\n * field names to values. If this is null, one will be\n * generated.\n */\n function Record(keys, fields, fieldLookup) {\n /**\n * Field keys, in the order the fields appear in the record.\n * @type {string[]}\n */\n this.keys = keys;\n /**\n * Number of fields\n * @type {Number}\n */\n this.length = keys.length;\n this._fields = fields;\n this._fieldLookup = fieldLookup || generateFieldLookup(keys);\n }\n /**\n * Run the given function for each field in this record. The function\n * will get three arguments - the value, the key and this record, in that\n * order.\n *\n * @param {function(value: Object, key: string, record: Record)} visitor the function to apply to each field.\n * @returns {void} Nothing\n */\n Record.prototype.forEach = function (visitor) {\n var e_1, _a;\n try {\n for (var _b = __values(this.entries()), _c = _b.next(); !_c.done; _c = _b.next()) {\n var _d = __read(_c.value, 2), key = _d[0], value = _d[1];\n visitor(value, key, this);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n };\n /**\n * Run the given function for each field in this record. The function\n * will get three arguments - the value, the key and this record, in that\n * order.\n *\n * @param {function(value: Object, key: string, record: Record)} visitor the function to apply on each field\n * and return a value that is saved to the returned Array.\n *\n * @returns {Array}\n */\n Record.prototype.map = function (visitor) {\n var e_2, _a;\n var resultArray = [];\n try {\n for (var _b = __values(this.entries()), _c = _b.next(); !_c.done; _c = _b.next()) {\n var _d = __read(_c.value, 2), key = _d[0], value = _d[1];\n resultArray.push(visitor(value, key, this));\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_2) throw e_2.error; }\n }\n return resultArray;\n };\n /**\n * Iterate over results. Each iteration will yield an array\n * of exactly two items - the key, and the value (in order).\n *\n * @generator\n * @returns {IterableIterator}\n */\n Record.prototype.entries = function () {\n var i;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n i = 0;\n _a.label = 1;\n case 1:\n if (!(i < this.keys.length)) return [3 /*break*/, 4];\n return [4 /*yield*/, [this.keys[i], this._fields[i]]];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3:\n i++;\n return [3 /*break*/, 1];\n case 4: return [2 /*return*/];\n }\n });\n };\n /**\n * Iterate over values.\n *\n * @generator\n * @returns {IterableIterator}\n */\n Record.prototype.values = function () {\n var i;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n i = 0;\n _a.label = 1;\n case 1:\n if (!(i < this.keys.length)) return [3 /*break*/, 4];\n return [4 /*yield*/, this._fields[i]];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3:\n i++;\n return [3 /*break*/, 1];\n case 4: return [2 /*return*/];\n }\n });\n };\n /**\n * Iterate over values. Delegates to {@link Record#values}\n *\n * @generator\n * @returns {IterableIterator}\n */\n Record.prototype[Symbol.iterator] = function () {\n var i;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n i = 0;\n _a.label = 1;\n case 1:\n if (!(i < this.keys.length)) return [3 /*break*/, 4];\n return [4 /*yield*/, this._fields[i]];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3:\n i++;\n return [3 /*break*/, 1];\n case 4: return [2 /*return*/];\n }\n });\n };\n /**\n * Generates an object out of the current Record\n *\n * @returns {Object}\n */\n Record.prototype.toObject = function () {\n var e_3, _a;\n var obj = {};\n try {\n for (var _b = __values(this.entries()), _c = _b.next(); !_c.done; _c = _b.next()) {\n var _d = __read(_c.value, 2), key = _d[0], value = _d[1];\n obj[key] = value;\n }\n }\n catch (e_3_1) { e_3 = { error: e_3_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_3) throw e_3.error; }\n }\n return obj;\n };\n /**\n * Get a value from this record, either by index or by field key.\n *\n * @param {string|Number} key Field key, or the index of the field.\n * @returns {*}\n */\n Record.prototype.get = function (key) {\n var index;\n if (!(typeof key === 'number')) {\n index = this._fieldLookup[key];\n if (index === undefined) {\n throw (0, error_1.newError)(\"This record has no field with key '\" +\n key +\n \"', available key are: [\" +\n this.keys +\n '].');\n }\n }\n else {\n index = key;\n }\n if (index > this._fields.length - 1 || index < 0) {\n throw (0, error_1.newError)(\"This record has no field with index '\" +\n index +\n \"'. Remember that indexes start at `0`, \" +\n 'and make sure your query returns records in the shape you meant it to.');\n }\n return this._fields[index];\n };\n /**\n * Check if a value from this record, either by index or by field key, exists.\n *\n * @param {string|Number} key Field key, or the index of the field.\n * @returns {boolean}\n */\n Record.prototype.has = function (key) {\n // if key is a number, we check if it is in the _fields array\n if (typeof key === 'number') {\n return key >= 0 && key < this._fields.length;\n }\n // if it's not a number, we check _fieldLookup dictionary directly\n return this._fieldLookup[key] !== undefined;\n };\n return Record;\n}());\nexports.default = Record;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Stats = exports.QueryStatistics = exports.ProfiledPlan = exports.Plan = exports.Notification = exports.ServerInfo = exports.queryType = void 0;\nvar integer_1 = __importStar(require(\"./integer\"));\n/**\n * A ResultSummary instance contains structured metadata for a {@link Result}.\n * @access public\n */\nvar ResultSummary = /** @class */ (function () {\n /**\n * @constructor\n * @param {string} query - The query this summary is for\n * @param {Object} parameters - Parameters for the query\n * @param {Object} metadata - Query metadata\n * @param {number|undefined} protocolVersion - Bolt Protocol Version\n */\n function ResultSummary(query, parameters, metadata, protocolVersion) {\n /**\n * The query and parameters this summary is for.\n * @type {{text: string, parameters: Object}}\n * @public\n */\n this.query = { text: query, parameters: parameters };\n /**\n * The type of query executed. Can be \"r\" for read-only query, \"rw\" for read-write query,\n * \"w\" for write-only query and \"s\" for schema-write query.\n * String constants are available in {@link queryType} object.\n * @type {string}\n * @public\n */\n this.queryType = metadata.type;\n /**\n * Counters for operations the query triggered.\n * @type {QueryStatistics}\n * @public\n */\n this.counters = new QueryStatistics(metadata.stats || {});\n // for backwards compatibility, remove in future version\n /**\n * Use {@link ResultSummary.counters} instead.\n * @type {QueryStatistics}\n * @deprecated\n */\n this.updateStatistics = this.counters;\n /**\n * This describes how the database will execute the query.\n * Query plan for the executed query if available, otherwise undefined.\n * Will only be populated for queries that start with \"EXPLAIN\".\n * @type {Plan|false}\n * @public\n */\n this.plan =\n metadata.plan || metadata.profile\n ? new Plan(metadata.plan || metadata.profile)\n : false;\n /**\n * This describes how the database did execute your query. This will contain detailed information about what\n * each step of the plan did. Profiled query plan for the executed query if available, otherwise undefined.\n * Will only be populated for queries that start with \"PROFILE\".\n * @type {ProfiledPlan}\n * @public\n */\n this.profile = metadata.profile ? new ProfiledPlan(metadata.profile) : false;\n /**\n * An array of notifications that might arise when executing the query. Notifications can be warnings about\n * problematic queries or other valuable information that can be presented in a client. Unlike failures\n * or errors, notifications do not affect the execution of a query.\n * @type {Array}\n * @public\n */\n this.notifications = this._buildNotifications(metadata.notifications);\n /**\n * The basic information of the server where the result is obtained from.\n * @type {ServerInfo}\n * @public\n */\n this.server = new ServerInfo(metadata.server, protocolVersion);\n /**\n * The time it took the server to consume the result.\n * @type {number}\n * @public\n */\n this.resultConsumedAfter = metadata.result_consumed_after;\n /**\n * The time it took the server to make the result available for consumption in milliseconds.\n * @type {number}\n * @public\n */\n this.resultAvailableAfter = metadata.result_available_after;\n /**\n * The database name where this summary is obtained from.\n * @type {{name: string}}\n * @public\n */\n this.database = { name: metadata.db || null };\n }\n ResultSummary.prototype._buildNotifications = function (notifications) {\n if (!notifications) {\n return [];\n }\n return notifications.map(function (n) {\n return new Notification(n);\n });\n };\n /**\n * Check if the result summary has a plan\n * @return {boolean}\n */\n ResultSummary.prototype.hasPlan = function () {\n return this.plan instanceof Plan;\n };\n /**\n * Check if the result summary has a profile\n * @return {boolean}\n */\n ResultSummary.prototype.hasProfile = function () {\n return this.profile instanceof ProfiledPlan;\n };\n return ResultSummary;\n}());\n/**\n * Class for execution plan received by prepending Cypher with EXPLAIN.\n * @access public\n */\nvar Plan = /** @class */ (function () {\n /**\n * Create a Plan instance\n * @constructor\n * @param {Object} plan - Object with plan data\n */\n function Plan(plan) {\n this.operatorType = plan.operatorType;\n this.identifiers = plan.identifiers;\n this.arguments = plan.args;\n this.children = plan.children\n ? plan.children.map(function (child) { return new Plan(child); })\n : [];\n }\n return Plan;\n}());\nexports.Plan = Plan;\n/**\n * Class for execution plan received by prepending Cypher with PROFILE.\n * @access public\n */\nvar ProfiledPlan = /** @class */ (function () {\n /**\n * Create a ProfiledPlan instance\n * @constructor\n * @param {Object} profile - Object with profile data\n */\n function ProfiledPlan(profile) {\n this.operatorType = profile.operatorType;\n this.identifiers = profile.identifiers;\n this.arguments = profile.args;\n this.dbHits = valueOrDefault('dbHits', profile);\n this.rows = valueOrDefault('rows', profile);\n this.pageCacheMisses = valueOrDefault('pageCacheMisses', profile);\n this.pageCacheHits = valueOrDefault('pageCacheHits', profile);\n this.pageCacheHitRatio = valueOrDefault('pageCacheHitRatio', profile);\n this.time = valueOrDefault('time', profile);\n this.children = profile.children\n ? profile.children.map(function (child) { return new ProfiledPlan(child); })\n : [];\n }\n ProfiledPlan.prototype.hasPageCacheStats = function () {\n return (this.pageCacheMisses > 0 ||\n this.pageCacheHits > 0 ||\n this.pageCacheHitRatio > 0);\n };\n return ProfiledPlan;\n}());\nexports.ProfiledPlan = ProfiledPlan;\n/**\n * Stats Query statistics dictionary for a {@link QueryStatistics}\n * @public\n */\nvar Stats = /** @class */ (function () {\n /**\n * @constructor\n * @private\n */\n function Stats() {\n /**\n * nodes created\n * @type {number}\n * @public\n */\n this.nodesCreated = 0;\n /**\n * nodes deleted\n * @type {number}\n * @public\n */\n this.nodesDeleted = 0;\n /**\n * relationships created\n * @type {number}\n * @public\n */\n this.relationshipsCreated = 0;\n /**\n * relationships deleted\n * @type {number}\n * @public\n */\n this.relationshipsDeleted = 0;\n /**\n * properties set\n * @type {number}\n * @public\n */\n this.propertiesSet = 0;\n /**\n * labels added\n * @type {number}\n * @public\n */\n this.labelsAdded = 0;\n /**\n * labels removed\n * @type {number}\n * @public\n */\n this.labelsRemoved = 0;\n /**\n * indexes added\n * @type {number}\n * @public\n */\n this.indexesAdded = 0;\n /**\n * indexes removed\n * @type {number}\n * @public\n */\n this.indexesRemoved = 0;\n /**\n * constraints added\n * @type {number}\n * @public\n */\n this.constraintsAdded = 0;\n /**\n * constraints removed\n * @type {number}\n * @public\n */\n this.constraintsRemoved = 0;\n }\n return Stats;\n}());\nexports.Stats = Stats;\n/**\n * Get statistical information for a {@link Result}.\n * @access public\n */\nvar QueryStatistics = /** @class */ (function () {\n /**\n * Structurize the statistics\n * @constructor\n * @param {Object} statistics - Result statistics\n */\n function QueryStatistics(statistics) {\n var _this = this;\n this._stats = {\n nodesCreated: 0,\n nodesDeleted: 0,\n relationshipsCreated: 0,\n relationshipsDeleted: 0,\n propertiesSet: 0,\n labelsAdded: 0,\n labelsRemoved: 0,\n indexesAdded: 0,\n indexesRemoved: 0,\n constraintsAdded: 0,\n constraintsRemoved: 0,\n };\n this._systemUpdates = 0;\n Object.keys(statistics).forEach(function (index) {\n // To camelCase\n var camelCaseIndex = index.replace(/(-\\w)/g, function (m) { return m[1].toUpperCase(); });\n if (camelCaseIndex in _this._stats) {\n _this._stats[camelCaseIndex] = intValue(statistics[index]);\n }\n else if (camelCaseIndex === 'systemUpdates') {\n _this._systemUpdates = intValue(statistics[index]);\n }\n else if (camelCaseIndex === 'containsSystemUpdates') {\n _this._containsSystemUpdates = statistics[index];\n }\n else if (camelCaseIndex === 'containsUpdates') {\n _this._containsUpdates = statistics[index];\n }\n });\n this._stats = Object.freeze(this._stats);\n }\n /**\n * Did the database get updated?\n * @return {boolean}\n */\n QueryStatistics.prototype.containsUpdates = function () {\n var _this = this;\n return this._containsUpdates !== undefined ?\n this._containsUpdates : (Object.keys(this._stats).reduce(function (last, current) {\n return last + _this._stats[current];\n }, 0) > 0);\n };\n /**\n * Returns the query statistics updates in a dictionary.\n * @returns {Stats}\n */\n QueryStatistics.prototype.updates = function () {\n return this._stats;\n };\n /**\n * Return true if the system database get updated, otherwise false\n * @returns {boolean} - If the system database get updated or not.\n */\n QueryStatistics.prototype.containsSystemUpdates = function () {\n return this._containsSystemUpdates !== undefined ?\n this._containsSystemUpdates : this._systemUpdates > 0;\n };\n /**\n * @returns {number} - Number of system updates\n */\n QueryStatistics.prototype.systemUpdates = function () {\n return this._systemUpdates;\n };\n return QueryStatistics;\n}());\nexports.QueryStatistics = QueryStatistics;\n/**\n * Class for Cypher notifications\n * @access public\n */\nvar Notification = /** @class */ (function () {\n /**\n * Create a Notification instance\n * @constructor\n * @param {Object} notification - Object with notification data\n */\n function Notification(notification) {\n this.code = notification.code;\n this.title = notification.title;\n this.description = notification.description;\n this.severity = notification.severity;\n this.position = Notification._constructPosition(notification.position);\n }\n Notification._constructPosition = function (pos) {\n if (!pos) {\n return {};\n }\n return {\n offset: intValue(pos.offset),\n line: intValue(pos.line),\n column: intValue(pos.column)\n };\n };\n return Notification;\n}());\nexports.Notification = Notification;\n/**\n * Class for exposing server info from a result.\n * @access public\n */\nvar ServerInfo = /** @class */ (function () {\n /**\n * Create a ServerInfo instance\n * @constructor\n * @param {Object} serverMeta - Object with serverMeta data\n * @param {Object} connectionInfo - Bolt connection info\n * @param {number} protocolVersion - Bolt Protocol Version\n */\n function ServerInfo(serverMeta, protocolVersion) {\n if (serverMeta) {\n /**\n * The server adress\n * @type {string}\n * @public\n */\n this.address = serverMeta.address;\n /**\n * The server version string.\n *\n * See {@link ServerInfo#protocolVersion} and {@link ServerInfo#agent}\n * @type {string}\n * @deprecated in 4.3, please use ServerInfo#agent, ServerInfo#protocolVersion, or call the dbms.components procedure instead.\n * Method might be removed in the next major release.\n \n * @public\n */\n this.version = serverMeta.version;\n /**\n * The server user agent string\n * @type {string}\n * @public\n */\n this.agent = serverMeta.version;\n }\n /**\n * The protocol version used by the connection\n * @type {number}\n * @public\n */\n this.protocolVersion = protocolVersion;\n }\n return ServerInfo;\n}());\nexports.ServerInfo = ServerInfo;\nfunction intValue(value) {\n if (value instanceof integer_1.default) {\n return value.toInt();\n }\n else if (typeof value == 'bigint') {\n return (0, integer_1.int)(value).toInt();\n }\n else {\n return value;\n }\n}\nfunction valueOrDefault(key, values, defaultValue) {\n if (defaultValue === void 0) { defaultValue = 0; }\n if (key in values) {\n var value = values[key];\n return intValue(value);\n }\n else {\n return defaultValue;\n }\n}\n/**\n * The constants for query types\n * @type {{SCHEMA_WRITE: string, WRITE_ONLY: string, READ_ONLY: string, READ_WRITE: string}}\n */\nvar queryType = {\n READ_ONLY: 'r',\n READ_WRITE: 'rw',\n WRITE_ONLY: 'w',\n SCHEMA_WRITE: 's'\n};\nexports.queryType = queryType;\nexports.default = ResultSummary;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar result_summary_1 = __importDefault(require(\"./result-summary\"));\nvar internal_1 = require(\"./internal\");\nvar EMPTY_CONNECTION_HOLDER = internal_1.connectionHolder.EMPTY_CONNECTION_HOLDER;\n/**\n * @private\n * @param {Error} error The error\n * @returns {void}\n */\nvar DEFAULT_ON_ERROR = function (error) {\n console.log('Uncaught error when processing result: ' + error);\n};\n/**\n * @private\n * @param {ResultSummary} summary\n * @returns {void}\n */\nvar DEFAULT_ON_COMPLETED = function (summary) { };\n/**\n * A stream of {@link Record} representing the result of a query.\n * Can be consumed eagerly as {@link Promise} resolved with array of records and {@link ResultSummary}\n * summary, or rejected with error that contains {@link string} code and {@link string} message.\n * Alternatively can be consumed lazily using {@link Result#subscribe} function.\n * @access public\n */\nvar Result = /** @class */ (function () {\n /**\n * Inject the observer to be used.\n * @constructor\n * @access private\n * @param {Promise} streamObserverPromise\n * @param {mixed} query - Cypher query to execute\n * @param {Object} parameters - Map with parameters to use in query\n * @param {ConnectionHolder} connectionHolder - to be notified when result is either fully consumed or error happened.\n */\n function Result(streamObserverPromise, query, parameters, connectionHolder) {\n this._stack = captureStacktrace();\n this._streamObserverPromise = streamObserverPromise;\n this._p = null;\n this._query = query;\n this._parameters = parameters || {};\n this._connectionHolder = connectionHolder || EMPTY_CONNECTION_HOLDER;\n }\n /**\n * Returns a promise for the field keys.\n *\n * *Should not be combined with {@link Result#subscribe} function.*\n *\n * @public\n * @returns {Promise} - Field keys, in the order they will appear in records.\n }\n */\n Result.prototype.keys = function () {\n var _this = this;\n return new Promise(function (resolve, reject) {\n _this._streamObserverPromise\n .then(function (observer) {\n return observer.subscribe({\n onKeys: function (keys) { return resolve(keys); },\n onError: function (err) { return reject(err); }\n });\n })\n .catch(reject);\n });\n };\n /**\n * Returns a promise for the result summary.\n *\n * *Should not be combined with {@link Result#subscribe} function.*\n *\n * @public\n * @returns {Promise} - Result summary.\n *\n */\n Result.prototype.summary = function () {\n var _this = this;\n return new Promise(function (resolve, reject) {\n _this._streamObserverPromise\n .then(function (o) {\n o.cancel();\n o.subscribe({\n onCompleted: function (metadata) {\n return _this._createSummary(metadata).then(resolve, reject);\n },\n onError: function (err) { return reject(err); }\n });\n })\n .catch(reject);\n });\n };\n /**\n * Create and return new Promise\n *\n * @private\n * @return {Promise} new Promise.\n */\n Result.prototype._getOrCreatePromise = function () {\n var _this = this;\n if (!this._p) {\n this._p = new Promise(function (resolve, reject) {\n var records = [];\n var observer = {\n onNext: function (record) {\n records.push(record);\n },\n onCompleted: function (summary) {\n resolve({ records: records, summary: summary });\n },\n onError: function (error) {\n reject(error);\n }\n };\n _this.subscribe(observer);\n });\n }\n return this._p;\n };\n /**\n * Waits for all results and calls the passed in function with the results.\n *\n * *Should not be combined with {@link Result#subscribe} function.*\n *\n * @param {function(result: {records:Array, summary: ResultSummary})} onFulfilled - function to be called\n * when finished.\n * @param {function(error: {message:string, code:string})} onRejected - function to be called upon errors.\n * @return {Promise} promise.\n */\n Result.prototype.then = function (onFulfilled, onRejected) {\n return this._getOrCreatePromise().then(onFulfilled, onRejected);\n };\n /**\n * Catch errors when using promises.\n *\n * *Should not be combined with {@link Result#subscribe} function.*\n *\n * @param {function(error: Neo4jError)} onRejected - Function to be called upon errors.\n * @return {Promise} promise.\n */\n Result.prototype.catch = function (onRejected) {\n return this._getOrCreatePromise().catch(onRejected);\n };\n Result.prototype.finally = function (onfinally) {\n return this._getOrCreatePromise().finally(onfinally);\n };\n /**\n * Stream records to observer as they come in, this is a more efficient method\n * of handling the results, and allows you to handle arbitrarily large results.\n *\n * @param {Object} observer - Observer object\n * @param {function(keys: string[])} observer.onKeys - handle stream head, the field keys.\n * @param {function(record: Record)} observer.onNext - handle records, one by one.\n * @param {function(summary: ResultSummary)} observer.onCompleted - handle stream tail, the result summary.\n * @param {function(error: {message:string, code:string})} observer.onError - handle errors.\n * @return {void}\n */\n Result.prototype.subscribe = function (observer) {\n var _this = this;\n var onCompletedOriginal = observer.onCompleted || DEFAULT_ON_COMPLETED;\n var onCompletedWrapper = function (metadata) {\n _this._createSummary(metadata).then(function (summary) {\n return onCompletedOriginal.call(observer, summary);\n });\n };\n observer.onCompleted = onCompletedWrapper;\n var onErrorOriginal = observer.onError || DEFAULT_ON_ERROR;\n var onErrorWrapper = function (error) {\n // notify connection holder that the used connection is not needed any more because error happened\n // and result can't bee consumed any further; call the original onError callback after that\n _this._connectionHolder.releaseConnection().then(function () {\n replaceStacktrace(error, _this._stack);\n onErrorOriginal.call(observer, error);\n });\n };\n observer.onError = onErrorWrapper;\n this._streamObserverPromise\n .then(function (o) {\n return o.subscribe(observer);\n })\n .catch(function (error) { return observer.onError(error); });\n };\n /**\n * Signals the stream observer that the future records should be discarded on the server.\n *\n * @protected\n * @since 4.0.0\n * @returns {void}\n */\n Result.prototype._cancel = function () {\n this._streamObserverPromise.then(function (o) { return o.cancel(); });\n };\n Result.prototype._createSummary = function (metadata) {\n var _a = internal_1.util.validateQueryAndParameters(this._query, this._parameters, {\n skipAsserts: true\n }), query = _a.validatedQuery, parameters = _a.params;\n var connectionHolder = this._connectionHolder;\n return connectionHolder\n .getConnection()\n .then(\n // onFulfilled:\n function (connection) {\n return connectionHolder\n .releaseConnection()\n .then(function () {\n return connection ? connection.protocol().version : undefined;\n });\n }, \n // onRejected:\n function (_) { return undefined; })\n .then(function (protocolVersion) {\n return new result_summary_1.default(query, parameters, metadata, protocolVersion);\n });\n };\n return Result;\n}());\nSymbol.toStringTag;\nfunction captureStacktrace() {\n var error = new Error('');\n if (error.stack) {\n return error.stack.replace(/^Error(\\n\\r)*/, ''); // we don't need the 'Error\\n' part, if only it exists\n }\n return null;\n}\n/**\n * @private\n * @param {Error} error The error\n * @param {string| null} newStack The newStack\n * @returns {void}\n */\nfunction replaceStacktrace(error, newStack) {\n if (newStack) {\n // Error.prototype.toString() concatenates error.name and error.message nicely\n // then we add the rest of the stack trace\n error.stack = error.toString() + '\\n' + newStack;\n }\n}\nexports.default = Result;\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar observers_1 = require(\"./internal/observers\");\nvar util_1 = require(\"./internal/util\");\nvar error_1 = require(\"./error\");\nvar result_1 = __importDefault(require(\"./result\"));\nvar transaction_1 = __importDefault(require(\"./transaction\"));\nvar connection_holder_1 = require(\"./internal/connection-holder\");\nvar constants_1 = require(\"./internal/constants\");\nvar transaction_executor_1 = require(\"./internal/transaction-executor\");\nvar bookmark_1 = require(\"./internal/bookmark\");\nvar tx_config_1 = require(\"./internal/tx-config\");\n/**\n * A Session instance is used for handling the connection and\n * sending queries through the connection.\n * In a single session, multiple queries will be executed serially.\n * In order to execute parallel queries, multiple sessions are required.\n * @access public\n */\nvar Session = /** @class */ (function () {\n /**\n * @constructor\n * @protected\n * @param {Object} args\n * @param {string} args.mode the default access mode for this session.\n * @param {ConnectionProvider} args.connectionProvider - The connection provider to acquire connections from.\n * @param {Bookmark} args.bookmark - The initial bookmark for this session.\n * @param {string} args.database the database name\n * @param {Object} args.config={} - This driver configuration.\n * @param {boolean} args.reactive - Whether this session should create reactive streams\n * @param {number} args.fetchSize - Defines how many records is pulled in each pulling batch\n * @param {string} args.impersonatedUser - The username which the user wants to impersonate for the duration of the session.\n */\n function Session(_a) {\n var mode = _a.mode, connectionProvider = _a.connectionProvider, bookmark = _a.bookmark, database = _a.database, config = _a.config, reactive = _a.reactive, fetchSize = _a.fetchSize, impersonatedUser = _a.impersonatedUser;\n this._mode = mode;\n this._database = database;\n this._reactive = reactive;\n this._fetchSize = fetchSize;\n this._onDatabaseNameResolved = this._onDatabaseNameResolved.bind(this);\n this._readConnectionHolder = new connection_holder_1.ConnectionHolder({\n mode: constants_1.ACCESS_MODE_READ,\n database: database,\n bookmark: bookmark,\n connectionProvider: connectionProvider,\n impersonatedUser: impersonatedUser,\n onDatabaseNameResolved: this._onDatabaseNameResolved\n });\n this._writeConnectionHolder = new connection_holder_1.ConnectionHolder({\n mode: constants_1.ACCESS_MODE_WRITE,\n database: database,\n bookmark: bookmark,\n connectionProvider: connectionProvider,\n impersonatedUser: impersonatedUser,\n onDatabaseNameResolved: this._onDatabaseNameResolved\n });\n this._open = true;\n this._hasTx = false;\n this._impersonatedUser = impersonatedUser;\n this._lastBookmark = bookmark || bookmark_1.Bookmark.empty();\n this._transactionExecutor = _createTransactionExecutor(config);\n this._onComplete = this._onCompleteCallback.bind(this);\n this._databaseNameResolved = this._database !== '';\n }\n /**\n * Run Cypher query\n * Could be called with a query object i.e.: `{text: \"MATCH ...\", parameters: {param: 1}}`\n * or with the query and parameters as separate arguments.\n *\n * @public\n * @param {mixed} query - Cypher query to execute\n * @param {Object} parameters - Map with parameters to use in query\n * @param {TransactionConfig} [transactionConfig] - Configuration for the new auto-commit transaction.\n * @return {Result} New Result.\n */\n Session.prototype.run = function (query, parameters, transactionConfig) {\n var _this = this;\n var _a = (0, util_1.validateQueryAndParameters)(query, parameters), validatedQuery = _a.validatedQuery, params = _a.params;\n var autoCommitTxConfig = transactionConfig\n ? new tx_config_1.TxConfig(transactionConfig)\n : tx_config_1.TxConfig.empty();\n return this._run(validatedQuery, params, function (connection) {\n _this._assertSessionIsOpen();\n return connection.protocol().run(validatedQuery, params, {\n bookmark: _this._lastBookmark,\n txConfig: autoCommitTxConfig,\n mode: _this._mode,\n database: _this._database,\n impersonatedUser: _this._impersonatedUser,\n afterComplete: _this._onComplete,\n reactive: _this._reactive,\n fetchSize: _this._fetchSize\n });\n });\n };\n Session.prototype._run = function (query, parameters, customRunner) {\n var connectionHolder = this._connectionHolderWithMode(this._mode);\n var observerPromise;\n if (!this._open) {\n observerPromise = Promise.resolve(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Cannot run query in a closed session.')\n }));\n }\n else if (!this._hasTx && connectionHolder.initializeConnection()) {\n observerPromise = connectionHolder\n .getConnection()\n .then(function (connection) { return customRunner(connection); })\n .catch(function (error) { return Promise.resolve(new observers_1.FailedObserver({ error: error })); });\n }\n else {\n observerPromise = Promise.resolve(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Queries cannot be run directly on a ' +\n 'session with an open transaction; either run from within the ' +\n 'transaction or use a different session.')\n }));\n }\n return new result_1.default(observerPromise, query, parameters, connectionHolder);\n };\n Session.prototype._acquireConnection = function (connectionConsumer) {\n return __awaiter(this, void 0, void 0, function () {\n var promise, connectionHolder;\n var _this = this;\n return __generator(this, function (_a) {\n connectionHolder = this._connectionHolderWithMode(this._mode);\n if (!this._open) {\n promise = Promise.reject((0, error_1.newError)('Cannot run query in a closed session.'));\n }\n else if (!this._hasTx && connectionHolder.initializeConnection()) {\n promise = connectionHolder\n .getConnection()\n .then(function (connection) { return connectionConsumer(connection); })\n .then(function (result) { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, connectionHolder.releaseConnection()];\n case 1:\n _a.sent();\n return [2 /*return*/, result];\n }\n });\n }); });\n }\n else {\n promise = Promise.reject((0, error_1.newError)('Queries cannot be run directly on a ' +\n 'session with an open transaction; either run from within the ' +\n 'transaction or use a different session.'));\n }\n return [2 /*return*/, promise];\n });\n });\n };\n /**\n * Begin a new transaction in this session. A session can have at most one transaction running at a time, if you\n * want to run multiple concurrent transactions, you should use multiple concurrent sessions.\n *\n * While a transaction is open the session cannot be used to run queries outside the transaction.\n *\n * @param {TransactionConfig} [transactionConfig] - Configuration for the new auto-commit transaction.\n * @returns {Transaction} New Transaction.\n */\n Session.prototype.beginTransaction = function (transactionConfig) {\n // this function needs to support bookmarks parameter for backwards compatibility\n // parameter was of type {string|string[]} and represented either a single or multiple bookmarks\n // that's why we need to check parameter type and decide how to interpret the value\n var arg = transactionConfig;\n var txConfig = tx_config_1.TxConfig.empty();\n if (arg) {\n txConfig = new tx_config_1.TxConfig(arg);\n }\n return this._beginTransaction(this._mode, txConfig);\n };\n Session.prototype._beginTransaction = function (accessMode, txConfig) {\n if (!this._open) {\n throw (0, error_1.newError)('Cannot begin a transaction on a closed session.');\n }\n if (this._hasTx) {\n throw (0, error_1.newError)('You cannot begin a transaction on a session with an open transaction; ' +\n 'either run from within the transaction or use a different session.');\n }\n var mode = Session._validateSessionMode(accessMode);\n var connectionHolder = this._connectionHolderWithMode(mode);\n connectionHolder.initializeConnection();\n this._hasTx = true;\n var tx = new transaction_1.default({\n connectionHolder: connectionHolder,\n impersonatedUser: this._impersonatedUser,\n onClose: this._transactionClosed.bind(this),\n onBookmark: this._updateBookmark.bind(this),\n onConnection: this._assertSessionIsOpen.bind(this),\n reactive: this._reactive,\n fetchSize: this._fetchSize\n });\n tx._begin(this._lastBookmark, txConfig);\n return tx;\n };\n /**\n * @private\n * @returns {void}\n */\n Session.prototype._assertSessionIsOpen = function () {\n if (!this._open) {\n throw (0, error_1.newError)('You cannot run more transactions on a closed session.');\n }\n };\n /**\n * @private\n * @returns {void}\n */\n Session.prototype._transactionClosed = function () {\n this._hasTx = false;\n };\n /**\n * Return the bookmark received following the last completed {@link Transaction}.\n *\n * @return {string[]} A reference to a previous transaction.\n */\n Session.prototype.lastBookmark = function () {\n return this._lastBookmark.values();\n };\n /**\n * Execute given unit of work in a {@link READ} transaction.\n *\n * Transaction will automatically be committed unless the given function throws or returns a rejected promise.\n * Some failures of the given function or the commit itself will be retried with exponential backoff with initial\n * delay of 1 second and maximum retry time of 30 seconds. Maximum retry time is configurable via driver config's\n * `maxTransactionRetryTime` property in milliseconds.\n *\n * @param {function(tx: Transaction): Promise} transactionWork - Callback that executes operations against\n * a given {@link Transaction}.\n * @param {TransactionConfig} [transactionConfig] - Configuration for all transactions started to execute the unit of work.\n * @return {Promise} Resolved promise as returned by the given function or rejected promise when given\n * function or commit fails.\n */\n Session.prototype.readTransaction = function (transactionWork, transactionConfig) {\n var config = new tx_config_1.TxConfig(transactionConfig);\n return this._runTransaction(constants_1.ACCESS_MODE_READ, config, transactionWork);\n };\n /**\n * Execute given unit of work in a {@link WRITE} transaction.\n *\n * Transaction will automatically be committed unless the given function throws or returns a rejected promise.\n * Some failures of the given function or the commit itself will be retried with exponential backoff with initial\n * delay of 1 second and maximum retry time of 30 seconds. Maximum retry time is configurable via driver config's\n * `maxTransactionRetryTime` property in milliseconds.\n *\n * @param {function(tx: Transaction): Promise} transactionWork - Callback that executes operations against\n * a given {@link Transaction}.\n * @param {TransactionConfig} [transactionConfig] - Configuration for all transactions started to execute the unit of work.\n * @return {Promise} Resolved promise as returned by the given function or rejected promise when given\n * function or commit fails.\n */\n Session.prototype.writeTransaction = function (transactionWork, transactionConfig) {\n var config = new tx_config_1.TxConfig(transactionConfig);\n return this._runTransaction(constants_1.ACCESS_MODE_WRITE, config, transactionWork);\n };\n Session.prototype._runTransaction = function (accessMode, transactionConfig, transactionWork) {\n var _this = this;\n return this._transactionExecutor.execute(function () { return _this._beginTransaction(accessMode, transactionConfig); }, transactionWork);\n };\n /**\n * Sets the resolved database name in the session context.\n * @private\n * @param {string|undefined} database The resolved database name\n * @returns {void}\n */\n Session.prototype._onDatabaseNameResolved = function (database) {\n if (!this._databaseNameResolved) {\n var normalizedDatabase = database || '';\n this._database = normalizedDatabase;\n this._readConnectionHolder.setDatabase(normalizedDatabase);\n this._writeConnectionHolder.setDatabase(normalizedDatabase);\n this._databaseNameResolved = true;\n }\n };\n /**\n * Update value of the last bookmark.\n * @private\n * @param {Bookmark} newBookmark - The new bookmark.\n * @returns {void}\n */\n Session.prototype._updateBookmark = function (newBookmark) {\n if (newBookmark && !newBookmark.isEmpty()) {\n this._lastBookmark = newBookmark;\n }\n };\n /**\n * Close this session.\n * @return {Promise}\n */\n Session.prototype.close = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!this._open) return [3 /*break*/, 3];\n this._open = false;\n this._transactionExecutor.close();\n return [4 /*yield*/, this._readConnectionHolder.close()];\n case 1:\n _a.sent();\n return [4 /*yield*/, this._writeConnectionHolder.close()];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3: return [2 /*return*/];\n }\n });\n });\n };\n Session.prototype._connectionHolderWithMode = function (mode) {\n if (mode === constants_1.ACCESS_MODE_READ) {\n return this._readConnectionHolder;\n }\n else if (mode === constants_1.ACCESS_MODE_WRITE) {\n return this._writeConnectionHolder;\n }\n else {\n throw (0, error_1.newError)('Unknown access mode: ' + mode);\n }\n };\n /**\n * @private\n * @param {Object} meta Connection metadatada\n * @returns {void}\n */\n Session.prototype._onCompleteCallback = function (meta) {\n this._updateBookmark(new bookmark_1.Bookmark(meta.bookmark));\n };\n /**\n * @protected\n */\n Session._validateSessionMode = function (rawMode) {\n var mode = rawMode || constants_1.ACCESS_MODE_WRITE;\n if (mode !== constants_1.ACCESS_MODE_READ && mode !== constants_1.ACCESS_MODE_WRITE) {\n throw (0, error_1.newError)('Illegal session mode ' + mode);\n }\n return mode;\n };\n return Session;\n}());\n/**\n * @private\n * @param {object} config\n * @returns {TransactionExecutor} The transaction executor\n */\nfunction _createTransactionExecutor(config) {\n var maxRetryTimeMs = config && config.maxTransactionRetryTime\n ? config.maxTransactionRetryTime\n : null;\n return new transaction_executor_1.TransactionExecutor(maxRetryTimeMs);\n}\nexports.default = Session;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isPoint = exports.Point = void 0;\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar util_1 = require(\"./internal/util\");\nvar POINT_IDENTIFIER_PROPERTY = '__isPoint__';\n/**\n * Represents a single two or three-dimensional point in a particular coordinate reference system.\n * Created `Point` objects are frozen with `Object.freeze()` in constructor and thus immutable.\n */\nvar Point = /** @class */ (function () {\n /**\n * @constructor\n * @param {T} srid - The coordinate reference system identifier.\n * @param {number} x - The `x` coordinate of the point.\n * @param {number} y - The `y` coordinate of the point.\n * @param {number} [z=undefined] - The `z` coordinate of the point or `undefined` if point has 2 dimensions.\n */\n function Point(srid, x, y, z) {\n /**\n * The coordinate reference system identifier.\n * @type {T}\n */\n this.srid = (0, util_1.assertNumberOrInteger)(srid, 'SRID');\n /**\n * The `x` coordinate of the point.\n * @type {number}\n */\n this.x = (0, util_1.assertNumber)(x, 'X coordinate');\n /**\n * The `y` coordinate of the point.\n * @type {number}\n */\n this.y = (0, util_1.assertNumber)(y, 'Y coordinate');\n /**\n * The `z` coordinate of the point or `undefined` if point is 2-dimensional.\n * @type {number}\n */\n this.z = z === null || z === undefined ? z : (0, util_1.assertNumber)(z, 'Z coordinate');\n Object.freeze(this);\n }\n /**\n * @ignore\n */\n Point.prototype.toString = function () {\n return this.z || this.z === 0\n ? \"Point{srid=\" + formatAsFloat(this.srid) + \", x=\" + formatAsFloat(this.x) + \", y=\" + formatAsFloat(this.y) + \", z=\" + formatAsFloat(this.z) + \"}\"\n : \"Point{srid=\" + formatAsFloat(this.srid) + \", x=\" + formatAsFloat(this.x) + \", y=\" + formatAsFloat(this.y) + \"}\";\n };\n return Point;\n}());\nexports.Point = Point;\nfunction formatAsFloat(number) {\n return Number.isInteger(number) ? number + '.0' : number.toString();\n}\nObject.defineProperty(Point.prototype, POINT_IDENTIFIER_PROPERTY, {\n value: true,\n enumerable: false,\n configurable: false,\n writable: false\n});\n/**\n * Test if given object is an instance of {@link Point} class.\n * @param {Object} obj the object to test.\n * @return {boolean} `true` if given object is a {@link Point}, `false` otherwise.\n */\nfunction isPoint(obj) {\n return (obj && obj[POINT_IDENTIFIER_PROPERTY]) === true;\n}\nexports.isPoint = isPoint;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isDateTime = exports.DateTime = exports.isLocalDateTime = exports.LocalDateTime = exports.isDate = exports.Date = exports.isTime = exports.Time = exports.isLocalTime = exports.LocalTime = exports.isDuration = exports.Duration = void 0;\nvar util = __importStar(require(\"./internal/temporal-util\"));\nvar util_1 = require(\"./internal/util\");\nvar error_1 = require(\"./error\");\nvar integer_1 = __importStar(require(\"./integer\"));\nvar IDENTIFIER_PROPERTY_ATTRIBUTES = {\n value: true,\n enumerable: false,\n configurable: false,\n writable: false\n};\nvar DURATION_IDENTIFIER_PROPERTY = '__isDuration__';\nvar LOCAL_TIME_IDENTIFIER_PROPERTY = '__isLocalTime__';\nvar TIME_IDENTIFIER_PROPERTY = '__isTime__';\nvar DATE_IDENTIFIER_PROPERTY = '__isDate__';\nvar LOCAL_DATE_TIME_IDENTIFIER_PROPERTY = '__isLocalDateTime__';\nvar DATE_TIME_IDENTIFIER_PROPERTY = '__isDateTime__';\n/**\n * Represents an ISO 8601 duration. Contains both date-based values (years, months, days) and time-based values (seconds, nanoseconds).\n * Created `Duration` objects are frozen with `Object.freeze()` in constructor and thus immutable.\n */\nvar Duration = /** @class */ (function () {\n /**\n * @constructor\n * @param {NumberOrInteger} months - The number of months for the new duration.\n * @param {NumberOrInteger} days - The number of days for the new duration.\n * @param {NumberOrInteger} seconds - The number of seconds for the new duration.\n * @param {NumberOrInteger} nanoseconds - The number of nanoseconds for the new duration.\n */\n function Duration(months, days, seconds, nanoseconds) {\n /**\n * The number of months.\n * @type {NumberOrInteger}\n */\n this.months = (0, util_1.assertNumberOrInteger)(months, 'Months');\n /**\n * The number of days.\n * @type {NumberOrInteger}\n */\n this.days = (0, util_1.assertNumberOrInteger)(days, 'Days');\n (0, util_1.assertNumberOrInteger)(seconds, 'Seconds');\n (0, util_1.assertNumberOrInteger)(nanoseconds, 'Nanoseconds');\n /**\n * The number of seconds.\n * @type {NumberOrInteger}\n */\n this.seconds = util.normalizeSecondsForDuration(seconds, nanoseconds);\n /**\n * The number of nanoseconds.\n * @type {NumberOrInteger}\n */\n this.nanoseconds = util.normalizeNanosecondsForDuration(nanoseconds);\n Object.freeze(this);\n }\n /**\n * @ignore\n */\n Duration.prototype.toString = function () {\n return util.durationToIsoString(this.months, this.days, this.seconds, this.nanoseconds);\n };\n return Duration;\n}());\nexports.Duration = Duration;\nObject.defineProperty(Duration.prototype, DURATION_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link Duration} class.\n * @param {Object} obj the object to test.\n * @return {boolean} `true` if given object is a {@link Duration}, `false` otherwise.\n */\nfunction isDuration(obj) {\n return hasIdentifierProperty(obj, DURATION_IDENTIFIER_PROPERTY);\n}\nexports.isDuration = isDuration;\n/**\n * Represents an instant capturing the time of day, but not the date, nor the timezone.\n * Created {@link LocalTime} objects are frozen with `Object.freeze()` in constructor and thus immutable.\n */\nvar LocalTime = /** @class */ (function () {\n /**\n * @constructor\n * @param {NumberOrInteger} hour - The hour for the new local time.\n * @param {NumberOrInteger} minute - The minute for the new local time.\n * @param {NumberOrInteger} second - The second for the new local time.\n * @param {NumberOrInteger} nanosecond - The nanosecond for the new local time.\n */\n function LocalTime(hour, minute, second, nanosecond) {\n /**\n * The hour.\n * @type {NumberOrInteger}\n */\n this.hour = util.assertValidHour(hour);\n /**\n * The minute.\n * @type {NumberOrInteger}\n */\n this.minute = util.assertValidMinute(minute);\n /**\n * The second.\n * @type {NumberOrInteger}\n */\n this.second = util.assertValidSecond(second);\n /**\n * The nanosecond.\n * @type {NumberOrInteger}\n */\n this.nanosecond = util.assertValidNanosecond(nanosecond);\n Object.freeze(this);\n }\n /**\n * Create a {@link LocalTime} object from the given standard JavaScript `Date` and optional nanoseconds.\n * Year, month, day and time zone offset components of the given date are ignored.\n * @param {global.Date} standardDate - The standard JavaScript date to convert.\n * @param {NumberOrInteger|undefined} nanosecond - The optional amount of nanoseconds.\n * @return {LocalTime} New LocalTime.\n */\n LocalTime.fromStandardDate = function (standardDate, nanosecond) {\n verifyStandardDateAndNanos(standardDate, nanosecond);\n var totalNanoseconds = util.totalNanoseconds(standardDate, nanosecond);\n return new LocalTime(standardDate.getHours(), standardDate.getMinutes(), standardDate.getSeconds(), totalNanoseconds instanceof integer_1.default\n ? totalNanoseconds.toInt()\n : typeof totalNanoseconds === 'bigint'\n ? (0, integer_1.int)(totalNanoseconds).toInt()\n : totalNanoseconds);\n };\n /**\n * @ignore\n */\n LocalTime.prototype.toString = function () {\n return util.timeToIsoString(this.hour, this.minute, this.second, this.nanosecond);\n };\n return LocalTime;\n}());\nexports.LocalTime = LocalTime;\nObject.defineProperty(LocalTime.prototype, LOCAL_TIME_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link LocalTime} class.\n * @param {Object} obj the object to test.\n * @return {boolean} `true` if given object is a {@link LocalTime}, `false` otherwise.\n */\nfunction isLocalTime(obj) {\n return hasIdentifierProperty(obj, LOCAL_TIME_IDENTIFIER_PROPERTY);\n}\nexports.isLocalTime = isLocalTime;\n/**\n * Represents an instant capturing the time of day, and the timezone offset in seconds, but not the date.\n * Created {@link Time} objects are frozen with `Object.freeze()` in constructor and thus immutable.\n */\nvar Time = /** @class */ (function () {\n /**\n * @constructor\n * @param {NumberOrInteger} hour - The hour for the new local time.\n * @param {NumberOrInteger} minute - The minute for the new local time.\n * @param {NumberOrInteger} second - The second for the new local time.\n * @param {NumberOrInteger} nanosecond - The nanosecond for the new local time.\n * @param {NumberOrInteger} timeZoneOffsetSeconds - The time zone offset in seconds. Value represents the difference, in seconds, from UTC to local time.\n * This is different from standard JavaScript `Date.getTimezoneOffset()` which is the difference, in minutes, from local time to UTC.\n */\n function Time(hour, minute, second, nanosecond, timeZoneOffsetSeconds) {\n /**\n * The hour.\n * @type {NumberOrInteger}\n */\n this.hour = util.assertValidHour(hour);\n /**\n * The minute.\n * @type {NumberOrInteger}\n */\n this.minute = util.assertValidMinute(minute);\n /**\n * The second.\n * @type {NumberOrInteger}\n */\n this.second = util.assertValidSecond(second);\n /**\n * The nanosecond.\n * @type {NumberOrInteger}\n */\n this.nanosecond = util.assertValidNanosecond(nanosecond);\n /**\n * The time zone offset in seconds.\n * @type {NumberOrInteger}\n */\n this.timeZoneOffsetSeconds = (0, util_1.assertNumberOrInteger)(timeZoneOffsetSeconds, 'Time zone offset in seconds');\n Object.freeze(this);\n }\n /**\n * Create a {@link Time} object from the given standard JavaScript `Date` and optional nanoseconds.\n * Year, month and day components of the given date are ignored.\n * @param {global.Date} standardDate - The standard JavaScript date to convert.\n * @param {NumberOrInteger|undefined} nanosecond - The optional amount of nanoseconds.\n * @return {Time} New Time.\n */\n Time.fromStandardDate = function (standardDate, nanosecond) {\n verifyStandardDateAndNanos(standardDate, nanosecond);\n return new Time(standardDate.getHours(), standardDate.getMinutes(), standardDate.getSeconds(), (0, integer_1.toNumber)(util.totalNanoseconds(standardDate, nanosecond)), util.timeZoneOffsetInSeconds(standardDate));\n };\n /**\n * @ignore\n */\n Time.prototype.toString = function () {\n return (util.timeToIsoString(this.hour, this.minute, this.second, this.nanosecond) + util.timeZoneOffsetToIsoString(this.timeZoneOffsetSeconds));\n };\n return Time;\n}());\nexports.Time = Time;\nObject.defineProperty(Time.prototype, TIME_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link Time} class.\n * @param {Object} obj the object to test.\n * @return {boolean} `true` if given object is a {@link Time}, `false` otherwise.\n */\nfunction isTime(obj) {\n return hasIdentifierProperty(obj, TIME_IDENTIFIER_PROPERTY);\n}\nexports.isTime = isTime;\n/**\n * Represents an instant capturing the date, but not the time, nor the timezone.\n * Created {@link Date} objects are frozen with `Object.freeze()` in constructor and thus immutable.\n */\nvar Date = /** @class */ (function () {\n /**\n * @constructor\n * @param {NumberOrInteger} year - The year for the new local date.\n * @param {NumberOrInteger} month - The month for the new local date.\n * @param {NumberOrInteger} day - The day for the new local date.\n */\n function Date(year, month, day) {\n /**\n * The year.\n * @type {NumberOrInteger}\n */\n this.year = util.assertValidYear(year);\n /**\n * The month.\n * @type {NumberOrInteger}\n */\n this.month = util.assertValidMonth(month);\n /**\n * The day.\n * @type {NumberOrInteger}\n */\n this.day = util.assertValidDay(day);\n Object.freeze(this);\n }\n /**\n * Create a {@link Date} object from the given standard JavaScript `Date`.\n * Hour, minute, second, millisecond and time zone offset components of the given date are ignored.\n * @param {global.Date} standardDate - The standard JavaScript date to convert.\n * @return {Date} New Date.\n */\n Date.fromStandardDate = function (standardDate) {\n verifyStandardDateAndNanos(standardDate);\n return new Date(standardDate.getFullYear(), standardDate.getMonth() + 1, standardDate.getDate());\n };\n /**\n * @ignore\n */\n Date.prototype.toString = function () {\n return util.dateToIsoString(this.year, this.month, this.day);\n };\n return Date;\n}());\nexports.Date = Date;\nObject.defineProperty(Date.prototype, DATE_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link Date} class.\n * @param {Object} obj - The object to test.\n * @return {boolean} `true` if given object is a {@link Date}, `false` otherwise.\n */\nfunction isDate(obj) {\n return hasIdentifierProperty(obj, DATE_IDENTIFIER_PROPERTY);\n}\nexports.isDate = isDate;\n/**\n * Represents an instant capturing the date and the time, but not the timezone.\n * Created {@link LocalDateTime} objects are frozen with `Object.freeze()` in constructor and thus immutable.\n */\nvar LocalDateTime = /** @class */ (function () {\n /**\n * @constructor\n * @param {NumberOrInteger} year - The year for the new local date.\n * @param {NumberOrInteger} month - The month for the new local date.\n * @param {NumberOrInteger} day - The day for the new local date.\n * @param {NumberOrInteger} hour - The hour for the new local time.\n * @param {NumberOrInteger} minute - The minute for the new local time.\n * @param {NumberOrInteger} second - The second for the new local time.\n * @param {NumberOrInteger} nanosecond - The nanosecond for the new local time.\n */\n function LocalDateTime(year, month, day, hour, minute, second, nanosecond) {\n /**\n * The year.\n * @type {NumberOrInteger}\n */\n this.year = util.assertValidYear(year);\n /**\n * The month.\n * @type {NumberOrInteger}\n */\n this.month = util.assertValidMonth(month);\n /**\n * The day.\n * @type {NumberOrInteger}\n */\n this.day = util.assertValidDay(day);\n /**\n * The hour.\n * @type {NumberOrInteger}\n */\n this.hour = util.assertValidHour(hour);\n /**\n * The minute.\n * @type {NumberOrInteger}\n */\n this.minute = util.assertValidMinute(minute);\n /**\n * The second.\n * @type {NumberOrInteger}\n */\n this.second = util.assertValidSecond(second);\n /**\n * The nanosecond.\n * @type {NumberOrInteger}\n */\n this.nanosecond = util.assertValidNanosecond(nanosecond);\n Object.freeze(this);\n }\n /**\n * Create a {@link LocalDateTime} object from the given standard JavaScript `Date` and optional nanoseconds.\n * Time zone offset component of the given date is ignored.\n * @param {global.Date} standardDate - The standard JavaScript date to convert.\n * @param {NumberOrInteger|undefined} nanosecond - The optional amount of nanoseconds.\n * @return {LocalDateTime} New LocalDateTime.\n */\n LocalDateTime.fromStandardDate = function (standardDate, nanosecond) {\n verifyStandardDateAndNanos(standardDate, nanosecond);\n return new LocalDateTime(standardDate.getFullYear(), standardDate.getMonth() + 1, standardDate.getDate(), standardDate.getHours(), standardDate.getMinutes(), standardDate.getSeconds(), (0, integer_1.toNumber)(util.totalNanoseconds(standardDate, nanosecond)));\n };\n /**\n * @ignore\n */\n LocalDateTime.prototype.toString = function () {\n return localDateTimeToString(this.year, this.month, this.day, this.hour, this.minute, this.second, this.nanosecond);\n };\n return LocalDateTime;\n}());\nexports.LocalDateTime = LocalDateTime;\nObject.defineProperty(LocalDateTime.prototype, LOCAL_DATE_TIME_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link LocalDateTime} class.\n * @param {Object} obj - The object to test.\n * @return {boolean} `true` if given object is a {@link LocalDateTime}, `false` otherwise.\n */\nfunction isLocalDateTime(obj) {\n return hasIdentifierProperty(obj, LOCAL_DATE_TIME_IDENTIFIER_PROPERTY);\n}\nexports.isLocalDateTime = isLocalDateTime;\n/**\n * Represents an instant capturing the date, the time and the timezone identifier.\n * Created {@ DateTime} objects are frozen with `Object.freeze()` in constructor and thus immutable.\n */\nvar DateTime = /** @class */ (function () {\n /**\n * @constructor\n * @param {NumberOrInteger} year - The year for the new date-time.\n * @param {NumberOrInteger} month - The month for the new date-time.\n * @param {NumberOrInteger} day - The day for the new date-time.\n * @param {NumberOrInteger} hour - The hour for the new date-time.\n * @param {NumberOrInteger} minute - The minute for the new date-time.\n * @param {NumberOrInteger} second - The second for the new date-time.\n * @param {NumberOrInteger} nanosecond - The nanosecond for the new date-time.\n * @param {NumberOrInteger} timeZoneOffsetSeconds - The time zone offset in seconds. Either this argument or `timeZoneId` should be defined.\n * Value represents the difference, in seconds, from UTC to local time.\n * This is different from standard JavaScript `Date.getTimezoneOffset()` which is the difference, in minutes, from local time to UTC.\n * @param {string|null} timeZoneId - The time zone id for the new date-time. Either this argument or `timeZoneOffsetSeconds` should be defined.\n */\n function DateTime(year, month, day, hour, minute, second, nanosecond, timeZoneOffsetSeconds, timeZoneId) {\n /**\n * The year.\n * @type {NumberOrInteger}\n */\n this.year = util.assertValidYear(year);\n /**\n * The month.\n * @type {NumberOrInteger}\n */\n this.month = util.assertValidMonth(month);\n /**\n * The day.\n * @type {NumberOrInteger}\n */\n this.day = util.assertValidDay(day);\n /**\n * The hour.\n * @type {NumberOrInteger}\n */\n this.hour = util.assertValidHour(hour);\n /**\n * The minute.\n * @type {NumberOrInteger}\n */\n this.minute = util.assertValidMinute(minute);\n /**\n * The second.\n * @type {NumberOrInteger}\n */\n this.second = util.assertValidSecond(second);\n /**\n * The nanosecond.\n * @type {NumberOrInteger}\n */\n this.nanosecond = util.assertValidNanosecond(nanosecond);\n var _a = __read(verifyTimeZoneArguments(timeZoneOffsetSeconds, timeZoneId), 2), offset = _a[0], id = _a[1];\n /**\n * The time zone offset in seconds.\n *\n * *Either this or {@link timeZoneId} is defined.*\n *\n * @type {NumberOrInteger}\n */\n this.timeZoneOffsetSeconds = offset;\n /**\n * The time zone id.\n *\n * *Either this or {@link timeZoneOffsetSeconds} is defined.*\n *\n * @type {string}\n */\n this.timeZoneId = id || undefined;\n Object.freeze(this);\n }\n /**\n * Create a {@link DateTime} object from the given standard JavaScript `Date` and optional nanoseconds.\n * @param {global.Date} standardDate - The standard JavaScript date to convert.\n * @param {NumberOrInteger|undefined} nanosecond - The optional amount of nanoseconds.\n * @return {DateTime} New DateTime.\n */\n DateTime.fromStandardDate = function (standardDate, nanosecond) {\n verifyStandardDateAndNanos(standardDate, nanosecond);\n return new DateTime(standardDate.getFullYear(), standardDate.getMonth() + 1, standardDate.getDate(), standardDate.getHours(), standardDate.getMinutes(), standardDate.getSeconds(), (0, integer_1.toNumber)(util.totalNanoseconds(standardDate, nanosecond)), util.timeZoneOffsetInSeconds(standardDate), null /* no time zone id */);\n };\n /**\n * @ignore\n */\n DateTime.prototype.toString = function () {\n var localDateTimeStr = localDateTimeToString(this.year, this.month, this.day, this.hour, this.minute, this.second, this.nanosecond);\n var timeZoneStr = this.timeZoneId\n ? \"[\" + this.timeZoneId + \"]\"\n : util.timeZoneOffsetToIsoString(this.timeZoneOffsetSeconds || 0);\n return localDateTimeStr + timeZoneStr;\n };\n return DateTime;\n}());\nexports.DateTime = DateTime;\nObject.defineProperty(DateTime.prototype, DATE_TIME_IDENTIFIER_PROPERTY, IDENTIFIER_PROPERTY_ATTRIBUTES);\n/**\n * Test if given object is an instance of {@link DateTime} class.\n * @param {Object} obj - The object to test.\n * @return {boolean} `true` if given object is a {@link DateTime}, `false` otherwise.\n */\nfunction isDateTime(obj) {\n return hasIdentifierProperty(obj, DATE_TIME_IDENTIFIER_PROPERTY);\n}\nexports.isDateTime = isDateTime;\nfunction hasIdentifierProperty(obj, property) {\n return (obj && obj[property]) === true;\n}\nfunction localDateTimeToString(year, month, day, hour, minute, second, nanosecond) {\n return (util.dateToIsoString(year, month, day) +\n 'T' +\n util.timeToIsoString(hour, minute, second, nanosecond));\n}\n/**\n * @private\n * @param {NumberOrInteger} timeZoneOffsetSeconds\n * @param {string | null } timeZoneId\n * @returns {Array}\n */\nfunction verifyTimeZoneArguments(timeZoneOffsetSeconds, timeZoneId) {\n var offsetDefined = timeZoneOffsetSeconds || timeZoneOffsetSeconds === 0;\n var idDefined = timeZoneId && timeZoneId !== '';\n if (!offsetDefined && !idDefined) {\n throw (0, error_1.newError)(\n // eslint-disable-next-line @typescript-eslint/restrict-template-expressions\n \"Unable to create DateTime without either time zone offset or id. Please specify either of them. Given offset: \" + timeZoneOffsetSeconds + \" and id: \" + timeZoneId);\n }\n var result = [undefined, undefined];\n if (offsetDefined) {\n (0, util_1.assertNumberOrInteger)(timeZoneOffsetSeconds, 'Time zone offset in seconds');\n result[0] = timeZoneOffsetSeconds;\n }\n if (idDefined) {\n (0, util_1.assertString)(timeZoneId, 'Time zone ID');\n util.assertValidZoneId('Time zone ID', timeZoneId);\n result[1] = timeZoneId;\n }\n return result;\n}\n/**\n * @private\n * @param {StandardDate} standardDate\n * @param {NumberOrInteger} nanosecond\n * @returns {void}\n */\nfunction verifyStandardDateAndNanos(standardDate, nanosecond) {\n (0, util_1.assertValidDate)(standardDate, 'Standard date');\n if (nanosecond !== null && nanosecond !== undefined) {\n (0, util_1.assertNumberOrInteger)(nanosecond, 'Nanosecond');\n }\n}\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar util_1 = require(\"./internal/util\");\nvar connection_holder_1 = require(\"./internal/connection-holder\");\nvar bookmark_1 = require(\"./internal/bookmark\");\nvar tx_config_1 = require(\"./internal/tx-config\");\nvar observers_1 = require(\"./internal/observers\");\nvar error_1 = require(\"./error\");\nvar result_1 = __importDefault(require(\"./result\"));\n/**\n * Represents a transaction in the Neo4j database.\n *\n * @access public\n */\nvar Transaction = /** @class */ (function () {\n /**\n * @constructor\n * @param {ConnectionHolder} connectionHolder - the connection holder to get connection from.\n * @param {function()} onClose - Function to be called when transaction is committed or rolled back.\n * @param {function(bookmark: Bookmark)} onBookmark callback invoked when new bookmark is produced.\n * * @param {function()} onConnection - Function to be called when a connection is obtained to ensure the conneciton\n * is not yet released.\n * @param {boolean} reactive whether this transaction generates reactive streams\n * @param {number} fetchSize - the record fetch size in each pulling batch.\n * @param {string} impersonatedUser - The name of the user which should be impersonated for the duration of the session.\n */\n function Transaction(_a) {\n var connectionHolder = _a.connectionHolder, onClose = _a.onClose, onBookmark = _a.onBookmark, onConnection = _a.onConnection, reactive = _a.reactive, fetchSize = _a.fetchSize, impersonatedUser = _a.impersonatedUser;\n this._connectionHolder = connectionHolder;\n this._reactive = reactive;\n this._state = _states.ACTIVE;\n this._onClose = onClose;\n this._onBookmark = onBookmark;\n this._onConnection = onConnection;\n this._onError = this._onErrorCallback.bind(this);\n this._onComplete = this._onCompleteCallback.bind(this);\n this._fetchSize = fetchSize;\n this._results = [];\n this._impersonatedUser = impersonatedUser;\n }\n /**\n * @private\n * @param {Bookmark | string | string []} bookmark\n * @param {TxConfig} txConfig\n * @returns {void}\n */\n Transaction.prototype._begin = function (bookmark, txConfig) {\n var _this = this;\n this._connectionHolder\n .getConnection()\n .then(function (connection) {\n _this._onConnection();\n if (connection) {\n return connection.protocol().beginTransaction({\n bookmark: bookmark,\n txConfig: txConfig,\n mode: _this._connectionHolder.mode(),\n database: _this._connectionHolder.database(),\n impersonatedUser: _this._impersonatedUser,\n beforeError: _this._onError,\n afterComplete: _this._onComplete\n });\n }\n else {\n throw (0, error_1.newError)('No connection available');\n }\n })\n .catch(function (error) { return _this._onError(error); });\n };\n /**\n * Run Cypher query\n * Could be called with a query object i.e.: `{text: \"MATCH ...\", parameters: {param: 1}}`\n * or with the query and parameters as separate arguments.\n * @param {mixed} query - Cypher query to execute\n * @param {Object} parameters - Map with parameters to use in query\n * @return {Result} New Result\n */\n Transaction.prototype.run = function (query, parameters) {\n var _a = (0, util_1.validateQueryAndParameters)(query, parameters), validatedQuery = _a.validatedQuery, params = _a.params;\n var result = this._state.run(validatedQuery, params, {\n connectionHolder: this._connectionHolder,\n onError: this._onError,\n onComplete: this._onComplete,\n onConnection: this._onConnection,\n reactive: this._reactive,\n fetchSize: this._fetchSize\n });\n this._results.push(result);\n return result;\n };\n /**\n * Commits the transaction and returns the result.\n *\n * After committing the transaction can no longer be used.\n *\n * @returns {Promise} An empty promise if committed successfully or error if any error happened during commit.\n */\n Transaction.prototype.commit = function () {\n var committed = this._state.commit({\n connectionHolder: this._connectionHolder,\n onError: this._onError,\n onComplete: this._onComplete,\n onConnection: this._onConnection,\n pendingResults: this._results\n });\n this._state = committed.state;\n // clean up\n this._onClose();\n return new Promise(function (resolve, reject) {\n committed.result.subscribe({\n onCompleted: function () { return resolve(); },\n onError: function (error) { return reject(error); }\n });\n });\n };\n /**\n * Rollbacks the transaction.\n *\n * After rolling back, the transaction can no longer be used.\n *\n * @returns {Promise} An empty promise if rolled back successfully or error if any error happened during\n * rollback.\n */\n Transaction.prototype.rollback = function () {\n var rolledback = this._state.rollback({\n connectionHolder: this._connectionHolder,\n onError: this._onError,\n onComplete: this._onComplete,\n onConnection: this._onConnection,\n pendingResults: this._results\n });\n this._state = rolledback.state;\n // clean up\n this._onClose();\n return new Promise(function (resolve, reject) {\n rolledback.result.subscribe({\n onCompleted: function () { return resolve(); },\n onError: function (error) { return reject(error); }\n });\n });\n };\n /**\n * Check if this transaction is active, which means commit and rollback did not happen.\n * @return {boolean} `true` when not committed and not rolled back, `false` otherwise.\n */\n Transaction.prototype.isOpen = function () {\n return this._state === _states.ACTIVE;\n };\n /**\n * Closes the transaction\n *\n * This method will roll back the transaction if it is not already committed or rolled back.\n *\n * @returns {Promise} An empty promise if closed successfully or error if any error happened during\n */\n Transaction.prototype.close = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!this.isOpen()) return [3 /*break*/, 2];\n return [4 /*yield*/, this.rollback()];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n });\n };\n Transaction.prototype._onErrorCallback = function (err) {\n // error will be \"acknowledged\" by sending a RESET message\n // database will then forget about this transaction and cleanup all corresponding resources\n // it is thus safe to move this transaction to a FAILED state and disallow any further interactions with it\n this._state = _states.FAILED;\n this._onClose();\n // release connection back to the pool\n return this._connectionHolder.releaseConnection();\n };\n /**\n * @private\n * @param {object} meta The meta with bookmark\n * @returns {void}\n */\n Transaction.prototype._onCompleteCallback = function (meta) {\n this._onBookmark(new bookmark_1.Bookmark(meta.bookmark));\n };\n return Transaction;\n}());\nvar _states = {\n // The transaction is running with no explicit success or failure marked\n ACTIVE: {\n commit: function (_a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete, onConnection = _a.onConnection, pendingResults = _a.pendingResults;\n return {\n result: finishTransaction(true, connectionHolder, onError, onComplete, onConnection, pendingResults),\n state: _states.SUCCEEDED\n };\n },\n rollback: function (_a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete, onConnection = _a.onConnection, pendingResults = _a.pendingResults;\n return {\n result: finishTransaction(false, connectionHolder, onError, onComplete, onConnection, pendingResults),\n state: _states.ROLLED_BACK\n };\n },\n run: function (query, parameters, _a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete, onConnection = _a.onConnection, reactive = _a.reactive, fetchSize = _a.fetchSize;\n // RUN in explicit transaction can't contain bookmarks and transaction configuration\n // No need to include mode and database name as it shall be inclued in begin\n var observerPromise = connectionHolder\n .getConnection()\n .then(function (conn) {\n onConnection();\n if (conn) {\n return conn.protocol().run(query, parameters, {\n bookmark: bookmark_1.Bookmark.empty(),\n txConfig: tx_config_1.TxConfig.empty(),\n beforeError: onError,\n afterComplete: onComplete,\n reactive: reactive,\n fetchSize: fetchSize,\n });\n }\n else {\n throw (0, error_1.newError)('No connection available');\n }\n })\n .catch(function (error) { return new observers_1.FailedObserver({ error: error, onError: onError }); });\n return newCompletedResult(observerPromise, query, parameters, connectionHolder);\n }\n },\n // An error has occurred, transaction can no longer be used and no more messages will\n // be sent for this transaction.\n FAILED: {\n commit: function (_a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete;\n return {\n result: newCompletedResult(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Cannot commit this transaction, because it has been rolled back either because of an error or explicit termination.'),\n onError: onError\n }), 'COMMIT', {}, connectionHolder),\n state: _states.FAILED\n };\n },\n rollback: function (_a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete;\n return {\n result: newCompletedResult(new observers_1.CompletedObserver(), 'ROLLBACK', {}, connectionHolder),\n state: _states.FAILED\n };\n },\n run: function (query, parameters, _a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete;\n return newCompletedResult(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Cannot run query in this transaction, because it has been rolled back either because of an error or explicit termination.'),\n onError: onError\n }), query, parameters, connectionHolder);\n }\n },\n // This transaction has successfully committed\n SUCCEEDED: {\n commit: function (_a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete;\n return {\n result: newCompletedResult(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Cannot commit this transaction, because it has already been committed.'),\n onError: onError\n }), 'COMMIT', {}),\n state: _states.SUCCEEDED,\n connectionHolder: connectionHolder\n };\n },\n rollback: function (_a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete;\n return {\n result: newCompletedResult(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Cannot rollback this transaction, because it has already been committed.'),\n onError: onError\n }), 'ROLLBACK', {}),\n state: _states.SUCCEEDED,\n connectionHolder: connectionHolder\n };\n },\n run: function (query, parameters, _a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete;\n return newCompletedResult(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Cannot run query in this transaction, because it has already been committed.'),\n onError: onError\n }), query, parameters, connectionHolder);\n }\n },\n // This transaction has been rolled back\n ROLLED_BACK: {\n commit: function (_a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete;\n return {\n result: newCompletedResult(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Cannot commit this transaction, because it has already been rolled back.'),\n onError: onError\n }), 'COMMIT', {}, connectionHolder),\n state: _states.ROLLED_BACK\n };\n },\n rollback: function (_a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete;\n return {\n result: newCompletedResult(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Cannot rollback this transaction, because it has already been rolled back.')\n }), 'ROLLBACK', {}, connectionHolder),\n state: _states.ROLLED_BACK\n };\n },\n run: function (query, parameters, _a) {\n var connectionHolder = _a.connectionHolder, onError = _a.onError, onComplete = _a.onComplete;\n return newCompletedResult(new observers_1.FailedObserver({\n error: (0, error_1.newError)('Cannot run query in this transaction, because it has already been rolled back.'),\n onError: onError\n }), query, parameters, connectionHolder);\n }\n }\n};\n/**\n *\n * @param {boolean} commit\n * @param {ConnectionHolder} connectionHolder\n * @param {function(err:Error): any} onError\n * @param {function(metadata:object): any} onComplete\n * @param {function() : any} onConnection\n * @param {list>}pendingResults all run results in this transaction\n */\nfunction finishTransaction(commit, connectionHolder, onError, onComplete, onConnection, pendingResults) {\n var observerPromise = connectionHolder\n .getConnection()\n .then(function (connection) {\n onConnection();\n pendingResults.forEach(function (r) { return r._cancel(); });\n return Promise.all(pendingResults).then(function (results) {\n if (connection) {\n if (commit) {\n return connection.protocol().commitTransaction({\n beforeError: onError,\n afterComplete: onComplete\n });\n }\n else {\n return connection.protocol().rollbackTransaction({\n beforeError: onError,\n afterComplete: onComplete\n });\n }\n }\n else {\n throw (0, error_1.newError)('No connection available');\n }\n });\n })\n .catch(function (error) { return new observers_1.FailedObserver({ error: error, onError: onError }); });\n // for commit & rollback we need result that uses real connection holder and notifies it when\n // connection is not needed and can be safely released to the pool\n return new result_1.default(observerPromise, commit ? 'COMMIT' : 'ROLLBACK', {}, connectionHolder);\n}\n/**\n * Creates a {@link Result} with empty connection holder.\n * For cases when result represents an intermediate or failed action, does not require any metadata and does not\n * need to influence real connection holder to release connections.\n * @param {ResultStreamObserver} observer - an observer for the created result.\n * @param {string} query - the cypher query that produced the result.\n * @param {Object} parameters - the parameters for cypher query that produced the result.\n * @param {ConnectionHolder} connectionHolder - the connection holder used to get the result\n * @return {Result} new result.\n * @private\n */\nfunction newCompletedResult(observerPromise, query, parameters, connectionHolder) {\n if (connectionHolder === void 0) { connectionHolder = connection_holder_1.EMPTY_CONNECTION_HOLDER; }\n return new result_1.default(Promise.resolve(observerPromise), query, parameters, new connection_holder_1.ReadOnlyConnectionHolder(connectionHolder || connection_holder_1.EMPTY_CONNECTION_HOLDER));\n}\nexports.default = Transaction;\n","\"use strict\";\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = exports.WRITE = exports.READ = exports.Driver = void 0;\n\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));\n\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createClass\"));\n\nvar _inherits2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inherits\"));\n\nvar _possibleConstructorReturn2 = _interopRequireDefault(require(\"@babel/runtime/helpers/possibleConstructorReturn\"));\n\nvar _getPrototypeOf2 = _interopRequireDefault(require(\"@babel/runtime/helpers/getPrototypeOf\"));\n\nvar _neo4jDriverCore = require(\"neo4j-driver-core\");\n\nvar _sessionRx = _interopRequireDefault(require(\"./session-rx\"));\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2[\"default\"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2[\"default\"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2[\"default\"])(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nvar FETCH_ALL = _neo4jDriverCore.internal.constants.FETCH_ALL;\nvar READ = _neo4jDriverCore.driver.READ,\n WRITE = _neo4jDriverCore.driver.WRITE;\n/**\n * A driver maintains one or more {@link Session}s with a remote\n * Neo4j instance. Through the {@link Session}s you can send queries\n * and retrieve results from the database.\n *\n * Drivers are reasonably expensive to create - you should strive to keep one\n * driver instance around per Neo4j Instance you connect to.\n *\n * @access public\n */\n\nexports.WRITE = WRITE;\nexports.READ = READ;\n\nvar Driver = /*#__PURE__*/function (_CoreDriver) {\n (0, _inherits2[\"default\"])(Driver, _CoreDriver);\n\n var _super = _createSuper(Driver);\n\n function Driver() {\n (0, _classCallCheck2[\"default\"])(this, Driver);\n return _super.apply(this, arguments);\n }\n\n (0, _createClass2[\"default\"])(Driver, [{\n key: \"rxSession\",\n value:\n /**\n * Acquire a reactive session to communicate with the database. The session will\n * borrow connections from the underlying connection pool as required and\n * should be considered lightweight and disposable.\n *\n * This comes with some responsibility - make sure you always call\n * {@link close} when you are done using a session, and likewise,\n * make sure you don't close your session before you are done using it. Once\n * it is closed, the underlying connection will be released to the connection\n * pool and made available for others to use.\n *\n * @public\n * @param {Object} param\n * @param {string} param.defaultAccessMode=WRITE - The access mode of this session, allowed values are {@link READ} and {@link WRITE}.\n * @param {string|string[]} param.bookmarks - The initial reference or references to some previous transactions. Value is optional and\n * absence indicates that the bookmarks do not exist or are unknown.\n * @param {string} param.database - The database this session will operate on.\n * @param {string} param.impersonatedUser - The name of the user which should be impersonated for the duration of the session.\n * @returns {RxSession} new reactive session.\n */\n function rxSession() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref$defaultAccessMod = _ref.defaultAccessMode,\n defaultAccessMode = _ref$defaultAccessMod === void 0 ? WRITE : _ref$defaultAccessMod,\n bookmarks = _ref.bookmarks,\n _ref$database = _ref.database,\n database = _ref$database === void 0 ? '' : _ref$database,\n fetchSize = _ref.fetchSize,\n impersonatedUser = _ref.impersonatedUser;\n\n return new _sessionRx[\"default\"]({\n session: this._newSession({\n defaultAccessMode: defaultAccessMode,\n bookmarkOrBookmarks: bookmarks,\n database: database,\n impersonatedUser: impersonatedUser,\n reactive: true,\n fetchSize: validateFetchSizeValue(fetchSize, this._config.fetchSize)\n }),\n config: this._config\n });\n }\n }]);\n return Driver;\n}(_neo4jDriverCore.Driver);\n/**\n * @private\n */\n\n\nexports.Driver = Driver;\n\nfunction validateFetchSizeValue(rawValue, defaultWhenAbsent) {\n var fetchSize = parseInt(rawValue, 10);\n\n if (fetchSize > 0 || fetchSize === FETCH_ALL) {\n return fetchSize;\n } else if (fetchSize === 0 || fetchSize < 0) {\n throw new Error(\"The fetch size can only be a positive value or \".concat(FETCH_ALL, \" for ALL. However fetchSize = \").concat(fetchSize));\n } else {\n return defaultWhenAbsent;\n }\n}\n\nvar _default = Driver;\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.driver = driver;\nObject.defineProperty(exports, \"Driver\", {\n enumerable: true,\n get: function get() {\n return _driver.Driver;\n }\n});\nObject.defineProperty(exports, \"Neo4jError\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Neo4jError;\n }\n});\nObject.defineProperty(exports, \"error\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.error;\n }\n});\nObject.defineProperty(exports, \"Integer\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Integer;\n }\n});\nObject.defineProperty(exports, \"int\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore[\"int\"];\n }\n});\nObject.defineProperty(exports, \"isInt\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.isInt;\n }\n});\nObject.defineProperty(exports, \"isPoint\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.isPoint;\n }\n});\nObject.defineProperty(exports, \"Point\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Point;\n }\n});\nObject.defineProperty(exports, \"Date\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Date;\n }\n});\nObject.defineProperty(exports, \"DateTime\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.DateTime;\n }\n});\nObject.defineProperty(exports, \"Duration\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Duration;\n }\n});\nObject.defineProperty(exports, \"isDate\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.isDate;\n }\n});\nObject.defineProperty(exports, \"isDateTime\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.isDateTime;\n }\n});\nObject.defineProperty(exports, \"isDuration\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.isDuration;\n }\n});\nObject.defineProperty(exports, \"isLocalDateTime\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.isLocalDateTime;\n }\n});\nObject.defineProperty(exports, \"isLocalTime\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.isLocalTime;\n }\n});\nObject.defineProperty(exports, \"isTime\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.isTime;\n }\n});\nObject.defineProperty(exports, \"LocalDateTime\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.LocalDateTime;\n }\n});\nObject.defineProperty(exports, \"LocalTime\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.LocalTime;\n }\n});\nObject.defineProperty(exports, \"Time\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Time;\n }\n});\nObject.defineProperty(exports, \"Node\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Node;\n }\n});\nObject.defineProperty(exports, \"Path\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Path;\n }\n});\nObject.defineProperty(exports, \"PathSegment\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.PathSegment;\n }\n});\nObject.defineProperty(exports, \"Relationship\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Relationship;\n }\n});\nObject.defineProperty(exports, \"UnboundRelationship\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.UnboundRelationship;\n }\n});\nObject.defineProperty(exports, \"Record\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Record;\n }\n});\nObject.defineProperty(exports, \"ResultSummary\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.ResultSummary;\n }\n});\nObject.defineProperty(exports, \"Plan\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Plan;\n }\n});\nObject.defineProperty(exports, \"ProfiledPlan\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.ProfiledPlan;\n }\n});\nObject.defineProperty(exports, \"QueryStatistics\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.QueryStatistics;\n }\n});\nObject.defineProperty(exports, \"Notification\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Notification;\n }\n});\nObject.defineProperty(exports, \"ServerInfo\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.ServerInfo;\n }\n});\nObject.defineProperty(exports, \"Result\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Result;\n }\n});\nObject.defineProperty(exports, \"auth\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.auth;\n }\n});\nObject.defineProperty(exports, \"Session\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Session;\n }\n});\nObject.defineProperty(exports, \"Transaction\", {\n enumerable: true,\n get: function get() {\n return _neo4jDriverCore.Transaction;\n }\n});\nObject.defineProperty(exports, \"RxSession\", {\n enumerable: true,\n get: function get() {\n return _sessionRx[\"default\"];\n }\n});\nObject.defineProperty(exports, \"RxTransaction\", {\n enumerable: true,\n get: function get() {\n return _transactionRx[\"default\"];\n }\n});\nObject.defineProperty(exports, \"RxResult\", {\n enumerable: true,\n get: function get() {\n return _resultRx[\"default\"];\n }\n});\nexports[\"default\"] = exports.temporal = exports.spatial = exports.session = exports.types = exports.logging = exports.integer = void 0;\n\nvar _driver = require(\"./driver\");\n\nvar _version = _interopRequireDefault(require(\"./version\"));\n\nvar _neo4jDriverCore = require(\"neo4j-driver-core\");\n\nvar _neo4jDriverBoltConnection = require(\"neo4j-driver-bolt-connection\");\n\nvar _sessionRx = _interopRequireDefault(require(\"./session-rx\"));\n\nvar _transactionRx = _interopRequireDefault(require(\"./transaction-rx\"));\n\nvar _resultRx = _interopRequireDefault(require(\"./result-rx\"));\n\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar _internal$util = _neo4jDriverCore.internal.util,\n ENCRYPTION_ON = _internal$util.ENCRYPTION_ON,\n ENCRYPTION_OFF = _internal$util.ENCRYPTION_OFF,\n assertString = _internal$util.assertString,\n isEmptyObjectOrNull = _internal$util.isEmptyObjectOrNull,\n ServerAddress = _neo4jDriverCore.internal.serverAddress.ServerAddress,\n urlUtil = _neo4jDriverCore.internal.urlUtil;\n/**\n * Construct a new Neo4j Driver. This is your main entry point for this\n * library.\n *\n * ## Configuration\n *\n * This function optionally takes a configuration argument. Available configuration\n * options are as follows:\n *\n * {\n * // Encryption level: ENCRYPTION_ON or ENCRYPTION_OFF.\n * encrypted: ENCRYPTION_ON|ENCRYPTION_OFF\n *\n * // Trust strategy to use if encryption is enabled. There is no mode to disable\n * // trust other than disabling encryption altogether. The reason for\n * // this is that if you don't know who you are talking to, it is easy for an\n * // attacker to hijack your encrypted connection, rendering encryption pointless.\n * //\n * // TRUST_SYSTEM_CA_SIGNED_CERTIFICATES is the default choice. For NodeJS environments, this\n * // means that you trust whatever certificates are in the default trusted certificate\n * // store of the underlying system. For Browser environments, the trusted certificate\n * // store is usually managed by the browser. Refer to your system or browser documentation\n * // if you want to explicitly add a certificate as trusted.\n * //\n * // TRUST_CUSTOM_CA_SIGNED_CERTIFICATES is another option for trust verification -\n * // whenever we establish an encrypted connection, we ensure the host is using\n * // an encryption certificate that is in, or is signed by, a certificate given\n * // as trusted through configuration. This option is only available for NodeJS environments.\n * //\n * // TRUST_ALL_CERTIFICATES means that you trust everything without any verifications\n * // steps carried out. This option is only available for NodeJS environments and should not\n * // be used on production systems.\n * trust: \"TRUST_SYSTEM_CA_SIGNED_CERTIFICATES\" | \"TRUST_CUSTOM_CA_SIGNED_CERTIFICATES\" |\n * \"TRUST_ALL_CERTIFICATES\",\n *\n * // List of one or more paths to trusted encryption certificates. This only\n * // works in the NodeJS bundle, and only matters if you use \"TRUST_CUSTOM_CA_SIGNED_CERTIFICATES\".\n * // The certificate files should be in regular X.509 PEM format.\n * // For instance, ['./trusted.pem']\n * trustedCertificates: [],\n *\n * // The maximum total number of connections allowed to be managed by the connection pool, per host.\n * // This includes both in-use and idle connections. No maximum connection pool size is imposed\n * // by default.\n * maxConnectionPoolSize: 100,\n *\n * // The maximum allowed lifetime for a pooled connection in milliseconds. Pooled connections older than this\n * // threshold will be closed and removed from the pool. Such discarding happens during connection acquisition\n * // so that new session is never backed by an old connection. Setting this option to a low value will cause\n * // a high connection churn and might result in a performance hit. It is recommended to set maximum lifetime\n * // to a slightly smaller value than the one configured in network equipment (load balancer, proxy, firewall,\n * // etc. can also limit maximum connection lifetime). No maximum lifetime limit is imposed by default. Zero\n * // and negative values result in lifetime not being checked.\n * maxConnectionLifetime: 60 * 60 * 1000, // 1 hour\n *\n * // The maximum amount of time to wait to acquire a connection from the pool (to either create a new\n * // connection or borrow an existing one.\n * connectionAcquisitionTimeout: 60000, // 1 minute\n *\n * // Specify the maximum time in milliseconds transactions are allowed to retry via\n * // `Session#readTransaction()` and `Session#writeTransaction()` functions.\n * // These functions will retry the given unit of work on `ServiceUnavailable`, `SessionExpired` and transient\n * // errors with exponential backoff using initial delay of 1 second.\n * // Default value is 30000 which is 30 seconds.\n * maxTransactionRetryTime: 30000, // 30 seconds\n *\n * // Specify socket connection timeout in milliseconds. Numeric values are expected. Negative and zero values\n * // result in no timeout being applied. Connection establishment will be then bound by the timeout configured\n * // on the operating system level. Default value is 30000, which is 30 seconds.\n * connectionTimeout: 30000, // 30 seconds\n *\n * // Make this driver always return native JavaScript numbers for integer values, instead of the\n * // dedicated {@link Integer} class. Values that do not fit in native number bit range will be represented as\n * // `Number.NEGATIVE_INFINITY` or `Number.POSITIVE_INFINITY`.\n * // **Warning:** ResultSummary It is not always safe to enable this setting when JavaScript applications are not the only ones\n * // interacting with the database. Stored numbers might in such case be not representable by native\n * // {@link Number} type and thus driver will return lossy values. This might also happen when data was\n * // initially imported using neo4j import tool and contained numbers larger than\n * // `Number.MAX_SAFE_INTEGER`. Driver will then return positive infinity, which is lossy.\n * // Default value for this option is `false` because native JavaScript numbers might result\n * // in loss of precision in the general case.\n * disableLosslessIntegers: false,\n *\n * // Make this driver always return native Javascript {@link BigInt} for integer values, instead of the dedicated {@link Integer} class or {@link Number}.\n * //\n * // Default value for this option is `false` for backwards compatibility.\n * //\n * // **Warning:** `BigInt` doesn't implement the method `toJSON`. In maner of serialize it as `json`, It's needed to add a custom implementation of the `toJSON` on the\n * // `BigInt.prototype` {@see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt#use_within_json}\n * useBigInt: false,\n *\n * // Specify the logging configuration for the driver. Object should have two properties `level` and `logger`.\n * //\n * // Property `level` represents the logging level which should be one of: 'error', 'warn', 'info' or 'debug'. This property is optional and\n * // its default value is 'info'. Levels have priorities: 'error': 0, 'warn': 1, 'info': 2, 'debug': 3. Enabling a certain level also enables all\n * // levels with lower priority. For example: 'error', 'warn' and 'info' will be logged when 'info' level is configured.\n * //\n * // Property `logger` represents the logging function which will be invoked for every log call with an acceptable level. The function should\n * // take two string arguments `level` and `message`. The function should not execute any blocking or long-running operations\n * // because it is often executed on a hot path.\n * //\n * // No logging is done by default. See `neo4j.logging` object that contains predefined logging implementations.\n * logging: {\n * level: 'info',\n * logger: (level, message) => console.log(level + ' ' + message)\n * },\n *\n * // Specify a custom server address resolver function used by the routing driver to resolve the initial address used to create the driver.\n * // Such resolution happens:\n * // * during the very first rediscovery when driver is created\n * // * when all the known routers from the current routing table have failed and driver needs to fallback to the initial address\n * //\n * // In NodeJS environment driver defaults to performing a DNS resolution of the initial address using 'dns' module.\n * // In browser environment driver uses the initial address as-is.\n * // Value should be a function that takes a single string argument - the initial address. It should return an array of new addresses.\n * // Address is a string of shape ':'. Provided function can return either a Promise resolved with an array of addresses\n * // or array of addresses directly.\n * resolver: function(address) {\n * return ['127.0.0.1:8888', 'fallback.db.com:7687'];\n * },\n *\n * // Optionally override the default user agent name.\n * userAgent: USER_AGENT\n * }\n *\n * @param {string} url The URL for the Neo4j database, for instance \"neo4j://localhost\" and/or \"bolt://localhost\"\n * @param {Map} authToken Authentication credentials. See {@link auth} for helpers.\n * @param {Object} config Configuration object. See the configuration section above for details.\n * @returns {Driver}\n */\n\nfunction driver(url, authToken) {\n var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n assertString(url, 'Bolt URL');\n var parsedUrl = urlUtil.parseDatabaseUrl(url); // Determine entryption/trust options from the URL.\n\n var routing = false;\n var encrypted = false;\n var trust;\n\n switch (parsedUrl.scheme) {\n case 'bolt':\n break;\n\n case 'bolt+s':\n encrypted = true;\n trust = 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES';\n break;\n\n case 'bolt+ssc':\n encrypted = true;\n trust = 'TRUST_ALL_CERTIFICATES';\n break;\n\n case 'neo4j':\n routing = true;\n break;\n\n case 'neo4j+s':\n encrypted = true;\n trust = 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES';\n routing = true;\n break;\n\n case 'neo4j+ssc':\n encrypted = true;\n trust = 'TRUST_ALL_CERTIFICATES';\n routing = true;\n break;\n\n default:\n throw new Error(\"Unknown scheme: \".concat(parsedUrl.scheme));\n } // Encryption enabled on URL, propagate trust to the config.\n\n\n if (encrypted) {\n // Check for configuration conflict between URL and config.\n if ('encrypted' in config || 'trust' in config) {\n throw new Error('Encryption/trust can only be configured either through URL or config, not both');\n }\n\n config.encrypted = ENCRYPTION_ON;\n config.trust = trust;\n } // Sanitize authority token. Nicer error from server when a scheme is set.\n\n\n authToken = authToken || {};\n authToken.scheme = authToken.scheme || 'none'; // Use default user agent or user agent specified by user.\n\n config.userAgent = config.userAgent || USER_AGENT;\n var address = ServerAddress.fromUrl(parsedUrl.hostAndPort);\n var meta = {\n address: address,\n typename: routing ? 'Routing' : 'Direct',\n routing: routing\n };\n return new _driver.Driver(meta, config, createConnectionProviderFunction());\n\n function createConnectionProviderFunction() {\n if (routing) {\n return function (id, config, log, hostNameResolver) {\n return new _neo4jDriverBoltConnection.RoutingConnectionProvider({\n id: id,\n config: config,\n log: log,\n hostNameResolver: hostNameResolver,\n authToken: authToken,\n address: address,\n userAgent: config.userAgent,\n routingContext: parsedUrl.query\n });\n };\n } else {\n if (!isEmptyObjectOrNull(parsedUrl.query)) {\n throw new Error(\"Parameters are not supported with none routed scheme. Given URL: '\".concat(url, \"'\"));\n }\n\n return function (id, config, log) {\n return new _neo4jDriverBoltConnection.DirectConnectionProvider({\n id: id,\n config: config,\n log: log,\n authToken: authToken,\n address: address,\n userAgent: config.userAgent\n });\n };\n }\n }\n}\n\nvar USER_AGENT = 'neo4j-javascript/' + _version[\"default\"];\n/**\n * Object containing predefined logging configurations. These are expected to be used as values of the driver config's `logging` property.\n * @property {function(level: ?string): object} console the function to create a logging config that prints all messages to `console.log` with\n * timestamp, level and message. It takes an optional `level` parameter which represents the maximum log level to be logged. Default value is 'info'.\n */\n\nvar logging = {\n console: function (_console) {\n function console(_x) {\n return _console.apply(this, arguments);\n }\n\n console.toString = function () {\n return _console.toString();\n };\n\n return console;\n }(function (level) {\n return {\n level: level,\n logger: function logger(level, message) {\n return console.log(\"\".concat(global.Date.now(), \" \").concat(level.toUpperCase(), \" \").concat(message));\n }\n };\n })\n};\n/**\n * Object containing constructors for all neo4j types.\n */\n\nexports.logging = logging;\nvar types = {\n Node: _neo4jDriverCore.Node,\n Relationship: _neo4jDriverCore.Relationship,\n UnboundRelationship: _neo4jDriverCore.UnboundRelationship,\n PathSegment: _neo4jDriverCore.PathSegment,\n Path: _neo4jDriverCore.Path,\n Result: _neo4jDriverCore.Result,\n ResultSummary: _neo4jDriverCore.ResultSummary,\n Record: _neo4jDriverCore.Record,\n Point: _neo4jDriverCore.Point,\n Date: _neo4jDriverCore.Date,\n DateTime: _neo4jDriverCore.DateTime,\n Duration: _neo4jDriverCore.Duration,\n LocalDateTime: _neo4jDriverCore.LocalDateTime,\n LocalTime: _neo4jDriverCore.LocalTime,\n Time: _neo4jDriverCore.Time,\n Integer: _neo4jDriverCore.Integer\n};\n/**\n * Object containing string constants representing session access modes.\n */\n\nexports.types = types;\nvar session = {\n READ: _driver.READ,\n WRITE: _driver.WRITE\n};\n/**\n * Object containing functions to work with {@link Integer} objects.\n */\n\nexports.session = session;\nvar integer = {\n toNumber: _neo4jDriverCore.toNumber,\n toString: _neo4jDriverCore.toString,\n inSafeRange: _neo4jDriverCore.inSafeRange\n};\n/**\n * Object containing functions to work with spatial types, like {@link Point}.\n */\n\nexports.integer = integer;\nvar spatial = {\n isPoint: _neo4jDriverCore.isPoint\n};\n/**\n * Object containing functions to work with temporal types, like {@link Time} or {@link Duration}.\n */\n\nexports.spatial = spatial;\nvar temporal = {\n isDuration: _neo4jDriverCore.isDuration,\n isLocalTime: _neo4jDriverCore.isLocalTime,\n isTime: _neo4jDriverCore.isTime,\n isDate: _neo4jDriverCore.isDate,\n isLocalDateTime: _neo4jDriverCore.isLocalDateTime,\n isDateTime: _neo4jDriverCore.isDateTime\n};\n/**\n * @private\n */\n\nexports.temporal = temporal;\nvar forExport = {\n driver: driver,\n \"int\": _neo4jDriverCore[\"int\"],\n isInt: _neo4jDriverCore.isInt,\n isPoint: _neo4jDriverCore.isPoint,\n isDuration: _neo4jDriverCore.isDuration,\n isLocalTime: _neo4jDriverCore.isLocalTime,\n isTime: _neo4jDriverCore.isTime,\n isDate: _neo4jDriverCore.isDate,\n isLocalDateTime: _neo4jDriverCore.isLocalDateTime,\n isDateTime: _neo4jDriverCore.isDateTime,\n integer: integer,\n Neo4jError: _neo4jDriverCore.Neo4jError,\n auth: _neo4jDriverCore.auth,\n logging: logging,\n types: types,\n session: session,\n error: _neo4jDriverCore.error,\n spatial: spatial,\n temporal: temporal,\n Driver: _driver.Driver,\n Session: _neo4jDriverCore.Session,\n Transaction: _neo4jDriverCore.Transaction,\n Result: _neo4jDriverCore.Result,\n RxSession: _sessionRx[\"default\"],\n RxTransaction: _transactionRx[\"default\"],\n RxResult: _resultRx[\"default\"],\n ResultSummary: _neo4jDriverCore.ResultSummary,\n Plan: _neo4jDriverCore.Plan,\n ProfiledPlan: _neo4jDriverCore.ProfiledPlan,\n QueryStatistics: _neo4jDriverCore.QueryStatistics,\n Notification: _neo4jDriverCore.Notification,\n ServerInfo: _neo4jDriverCore.ServerInfo,\n Record: _neo4jDriverCore.Record,\n Node: _neo4jDriverCore.Node,\n Relationship: _neo4jDriverCore.Relationship,\n UnboundRelationship: _neo4jDriverCore.UnboundRelationship,\n Path: _neo4jDriverCore.Path,\n PathSegment: _neo4jDriverCore.PathSegment,\n Point: _neo4jDriverCore.Point,\n Integer: _neo4jDriverCore.Integer,\n Duration: _neo4jDriverCore.Duration,\n LocalTime: _neo4jDriverCore.LocalTime,\n Time: _neo4jDriverCore.Time,\n Date: _neo4jDriverCore.Date,\n LocalDateTime: _neo4jDriverCore.LocalDateTime,\n DateTime: _neo4jDriverCore.DateTime\n};\nvar _default = forExport;\nexports[\"default\"] = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));\n\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createClass\"));\n\nvar _neo4jDriverCore = require(\"neo4j-driver-core\");\n\nvar _rxjs = require(\"rxjs\");\n\nvar _operators = require(\"rxjs/operators\");\n\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar Logger = _neo4jDriverCore.internal.logger.Logger,\n canRetryOn = _neo4jDriverCore.internal.retryStrategy.canRetryOn;\nvar SERVICE_UNAVAILABLE = _neo4jDriverCore.error.SERVICE_UNAVAILABLE,\n SESSION_EXPIRED = _neo4jDriverCore.error.SESSION_EXPIRED;\nvar DEFAULT_MAX_RETRY_TIME_MS = 30 * 1000; // 30 seconds\n\nvar DEFAULT_INITIAL_RETRY_DELAY_MS = 1000; // 1 seconds\n\nvar DEFAULT_RETRY_DELAY_MULTIPLIER = 2.0;\nvar DEFAULT_RETRY_DELAY_JITTER_FACTOR = 0.2;\n\nvar RxRetryLogic = /*#__PURE__*/function () {\n /**\n *\n * @param {Object} args\n * @param {Logger} args.logger\n */\n function RxRetryLogic() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref$maxRetryTimeout = _ref.maxRetryTimeout,\n maxRetryTimeout = _ref$maxRetryTimeout === void 0 ? DEFAULT_MAX_RETRY_TIME_MS : _ref$maxRetryTimeout,\n _ref$initialDelay = _ref.initialDelay,\n initialDelay = _ref$initialDelay === void 0 ? DEFAULT_INITIAL_RETRY_DELAY_MS : _ref$initialDelay,\n _ref$delayMultiplier = _ref.delayMultiplier,\n delayMultiplier = _ref$delayMultiplier === void 0 ? DEFAULT_RETRY_DELAY_MULTIPLIER : _ref$delayMultiplier,\n _ref$delayJitter = _ref.delayJitter,\n delayJitter = _ref$delayJitter === void 0 ? DEFAULT_RETRY_DELAY_JITTER_FACTOR : _ref$delayJitter,\n _ref$logger = _ref.logger,\n logger = _ref$logger === void 0 ? null : _ref$logger;\n\n (0, _classCallCheck2[\"default\"])(this, RxRetryLogic);\n this._maxRetryTimeout = valueOrDefault(maxRetryTimeout, DEFAULT_MAX_RETRY_TIME_MS);\n this._initialDelay = valueOrDefault(initialDelay, DEFAULT_INITIAL_RETRY_DELAY_MS);\n this._delayMultiplier = valueOrDefault(delayMultiplier, DEFAULT_RETRY_DELAY_MULTIPLIER);\n this._delayJitter = valueOrDefault(delayJitter, DEFAULT_RETRY_DELAY_JITTER_FACTOR);\n this._logger = logger;\n }\n /**\n *\n * @param {Observable} work\n */\n\n\n (0, _createClass2[\"default\"])(RxRetryLogic, [{\n key: \"retry\",\n value: function retry(work) {\n var _this = this;\n\n return work.pipe((0, _operators.retryWhen)(function (failedWork) {\n var handledExceptions = [];\n var startTime = Date.now();\n var retryCount = 1;\n var delayDuration = _this._initialDelay;\n return failedWork.pipe((0, _operators.flatMap)(function (err) {\n if (!canRetryOn(err)) {\n return (0, _rxjs.throwError)(err);\n }\n\n handledExceptions.push(err);\n\n if (retryCount >= 2 && Date.now() - startTime >= _this._maxRetryTimeout) {\n var _error = (0, _neo4jDriverCore.newError)(\"Failed after retried for \".concat(retryCount, \" times in \").concat(_this._maxRetryTimeout, \" ms. Make sure that your database is online and retry again.\"), SERVICE_UNAVAILABLE);\n\n _error.seenErrors = handledExceptions;\n return (0, _rxjs.throwError)(_error);\n }\n\n var nextDelayDuration = _this._computeNextDelay(delayDuration);\n\n delayDuration = delayDuration * _this._delayMultiplier;\n retryCount++;\n\n if (_this._logger) {\n _this._logger.warn(\"Transaction failed and will be retried in \".concat(nextDelayDuration));\n }\n\n return (0, _rxjs.of)(1).pipe((0, _operators.delay)(nextDelayDuration));\n }));\n }));\n }\n }, {\n key: \"_computeNextDelay\",\n value: function _computeNextDelay(delay) {\n var jitter = delay * this._delayJitter;\n return delay - jitter + 2 * jitter * Math.random();\n }\n }]);\n return RxRetryLogic;\n}();\n\nexports[\"default\"] = RxRetryLogic;\n\nfunction valueOrDefault(value, defaultValue) {\n if (value || value === 0) {\n return value;\n }\n\n return defaultValue;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));\n\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createClass\"));\n\nvar _neo4jDriverCore = require(\"neo4j-driver-core\");\n\nvar _rxjs = require(\"rxjs\");\n\nvar _operators = require(\"rxjs/operators\");\n\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar States = {\n READY: 0,\n STREAMING: 1,\n COMPLETED: 2\n};\n/**\n * The reactive result interface.\n */\n\nvar RxResult = /*#__PURE__*/function () {\n /**\n * @constructor\n * @protected\n * @param {Observable} result - An observable of single Result instance to relay requests.\n */\n function RxResult(result) {\n (0, _classCallCheck2[\"default\"])(this, RxResult);\n var replayedResult = result.pipe((0, _operators.publishReplay)(1), (0, _operators.refCount)());\n this._result = replayedResult;\n this._keys = replayedResult.pipe((0, _operators.flatMap)(function (r) {\n return (0, _rxjs.from)(r.keys());\n }), (0, _operators.publishReplay)(1), (0, _operators.refCount)());\n this._records = new _rxjs.Subject();\n this._summary = new _rxjs.ReplaySubject();\n this._state = States.READY;\n }\n /**\n * Returns an observable that exposes a single item containing field names\n * returned by the executing query.\n *\n * Errors raised by actual query execution can surface on the returned\n * observable stream.\n *\n * @public\n * @returns {Observable} - An observable stream (with exactly one element) of field names.\n */\n\n\n (0, _createClass2[\"default\"])(RxResult, [{\n key: \"keys\",\n value: function keys() {\n return this._keys;\n }\n /**\n * Returns an observable that exposes each record returned by the executing query.\n *\n * Errors raised during the streaming phase can surface on the returned observable stream.\n *\n * @public\n * @returns {Observable} - An observable stream of records.\n */\n\n }, {\n key: \"records\",\n value: function records() {\n var _this = this;\n\n return this._result.pipe((0, _operators.flatMap)(function (result) {\n return new _rxjs.Observable(function (recordsObserver) {\n return _this._startStreaming({\n result: result,\n recordsObserver: recordsObserver\n });\n });\n }));\n }\n /**\n * Returns an observable that exposes a single item of {@link ResultSummary} that is generated by\n * the server after the streaming of the executing query is completed.\n *\n * *Subscribing to this stream before subscribing to records() stream causes the results to be discarded on the server.*\n *\n * @public\n * @returns {Observable} - An observable stream (with exactly one element) of result summary.\n */\n\n }, {\n key: \"consume\",\n value: function consume() {\n var _this2 = this;\n\n return this._result.pipe((0, _operators.flatMap)(function (result) {\n return new _rxjs.Observable(function (summaryObserver) {\n return _this2._startStreaming({\n result: result,\n summaryObserver: summaryObserver\n });\n });\n }));\n }\n }, {\n key: \"_startStreaming\",\n value: function _startStreaming() {\n var _this3 = this;\n\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n result = _ref.result,\n _ref$recordsObserver = _ref.recordsObserver,\n recordsObserver = _ref$recordsObserver === void 0 ? null : _ref$recordsObserver,\n _ref$summaryObserver = _ref.summaryObserver,\n summaryObserver = _ref$summaryObserver === void 0 ? null : _ref$summaryObserver;\n\n var subscriptions = [];\n\n if (summaryObserver) {\n subscriptions.push(this._summary.subscribe(summaryObserver));\n }\n\n if (this._state < States.STREAMING) {\n this._state = States.STREAMING;\n\n if (recordsObserver) {\n subscriptions.push(this._records.subscribe(recordsObserver));\n }\n\n subscriptions.push({\n unsubscribe: function unsubscribe() {\n if (result._cancel) {\n result._cancel();\n }\n }\n });\n\n if (this._records.observers.length === 0) {\n result._cancel();\n }\n\n result.subscribe({\n onNext: function onNext(record) {\n _this3._records.next(record);\n },\n onCompleted: function onCompleted(summary) {\n _this3._records.complete();\n\n _this3._summary.next(summary);\n\n _this3._summary.complete();\n\n _this3._state = States.COMPLETED;\n },\n onError: function onError(err) {\n _this3._records.error(err);\n\n _this3._summary.error(err);\n\n _this3._state = States.COMPLETED;\n }\n });\n } else if (recordsObserver) {\n recordsObserver.error((0, _neo4jDriverCore.newError)('Streaming has already started/consumed with a previous records or summary subscription.'));\n }\n\n return function () {\n subscriptions.forEach(function (s) {\n return s.unsubscribe();\n });\n };\n }\n }]);\n return RxResult;\n}();\n\nexports[\"default\"] = RxResult;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));\n\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createClass\"));\n\nvar _rxjs = require(\"rxjs\");\n\nvar _operators = require(\"rxjs/operators\");\n\nvar _resultRx = _interopRequireDefault(require(\"./result-rx\"));\n\nvar _neo4jDriverCore = require(\"neo4j-driver-core\");\n\nvar _transactionRx = _interopRequireDefault(require(\"./transaction-rx\"));\n\nvar _retryLogicRx = _interopRequireDefault(require(\"./internal/retry-logic-rx\"));\n\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar _internal$constants = _neo4jDriverCore.internal.constants,\n ACCESS_MODE_READ = _internal$constants.ACCESS_MODE_READ,\n ACCESS_MODE_WRITE = _internal$constants.ACCESS_MODE_WRITE,\n TxConfig = _neo4jDriverCore.internal.txConfig.TxConfig;\n/**\n * A Reactive session, which provides the same functionality as {@link Session} but through a Reactive API.\n */\n\nvar RxSession = /*#__PURE__*/function () {\n /**\n * Constructs a reactive session with given default session instance and provided driver configuration.\n *\n * @protected\n * @param {Object} param - Object parameter\n * @param {Session} param.session - The underlying session instance to relay requests\n */\n function RxSession() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n session = _ref.session,\n config = _ref.config;\n\n (0, _classCallCheck2[\"default\"])(this, RxSession);\n this._session = session;\n this._retryLogic = _createRetryLogic(config);\n }\n /**\n * Creates a reactive result that will execute the query with the provided parameters and the provided\n * transaction configuration that applies to the underlying auto-commit transaction.\n *\n * @public\n * @param {string} query - Query to be executed.\n * @param {Object} parameters - Parameter values to use in query execution.\n * @param {TransactionConfig} transactionConfig - Configuration for the new auto-commit transaction.\n * @returns {RxResult} - A reactive result\n */\n\n\n (0, _createClass2[\"default\"])(RxSession, [{\n key: \"run\",\n value: function run(query, parameters, transactionConfig) {\n var _this = this;\n\n return new _resultRx[\"default\"](new _rxjs.Observable(function (observer) {\n try {\n observer.next(_this._session.run(query, parameters, transactionConfig));\n observer.complete();\n } catch (err) {\n observer.error(err);\n }\n\n return function () {};\n }));\n }\n /**\n * Starts a new explicit transaction with the provided transaction configuration.\n *\n * @public\n * @param {TransactionConfig} transactionConfig - Configuration for the new transaction.\n * @returns {Observable} - A reactive stream that will generate at most **one** RxTransaction instance.\n */\n\n }, {\n key: \"beginTransaction\",\n value: function beginTransaction(transactionConfig) {\n return this._beginTransaction(this._session._mode, transactionConfig);\n }\n /**\n * Executes the provided unit of work in a {@link READ} reactive transaction which is created with the provided\n * transaction configuration.\n * @public\n * @param {function(txc: RxTransaction): Observable} work - A unit of work to be executed.\n * @param {TransactionConfig} transactionConfig - Configuration for the enclosing transaction created by the driver.\n * @returns {Observable} - A reactive stream returned by the unit of work.\n */\n\n }, {\n key: \"readTransaction\",\n value: function readTransaction(work, transactionConfig) {\n return this._runTransaction(ACCESS_MODE_READ, work, transactionConfig);\n }\n /**\n * Executes the provided unit of work in a {@link WRITE} reactive transaction which is created with the provided\n * transaction configuration.\n * @public\n * @param {function(txc: RxTransaction): Observable} work - A unit of work to be executed.\n * @param {TransactionConfig} transactionConfig - Configuration for the enclosing transaction created by the driver.\n * @returns {Observable} - A reactive stream returned by the unit of work.\n */\n\n }, {\n key: \"writeTransaction\",\n value: function writeTransaction(work, transactionConfig) {\n return this._runTransaction(ACCESS_MODE_WRITE, work, transactionConfig);\n }\n /**\n * Closes this reactive session.\n *\n * @public\n * @returns {Observable} - An empty reactive stream\n */\n\n }, {\n key: \"close\",\n value: function close() {\n var _this2 = this;\n\n return new _rxjs.Observable(function (observer) {\n _this2._session.close().then(function () {\n observer.complete();\n })[\"catch\"](function (err) {\n return observer.error(err);\n });\n });\n }\n /**\n * Returns the bookmark received following the last successfully completed query, which is executed\n * either in an {@link RxTransaction} obtained from this session instance or directly through one of\n * the {@link RxSession#run} method of this session instance.\n *\n * If no bookmark was received or if this transaction was rolled back, the bookmark value will not be\n * changed.\n *\n * @public\n * @returns {string}\n */\n\n }, {\n key: \"lastBookmark\",\n value: function lastBookmark() {\n return this._session.lastBookmark();\n }\n /**\n * @private\n */\n\n }, {\n key: \"_beginTransaction\",\n value: function _beginTransaction(accessMode, transactionConfig) {\n var _this3 = this;\n\n var txConfig = TxConfig.empty();\n\n if (transactionConfig) {\n txConfig = new TxConfig(transactionConfig);\n }\n\n return new _rxjs.Observable(function (observer) {\n try {\n observer.next(new _transactionRx[\"default\"](_this3._session._beginTransaction(accessMode, txConfig)));\n observer.complete();\n } catch (err) {\n observer.error(err);\n }\n\n return function () {};\n });\n }\n /**\n * @private\n */\n\n }, {\n key: \"_runTransaction\",\n value: function _runTransaction(accessMode, work, transactionConfig) {\n var txConfig = TxConfig.empty();\n\n if (transactionConfig) {\n txConfig = new TxConfig(transactionConfig);\n }\n\n return this._retryLogic.retry(this._beginTransaction(accessMode, transactionConfig).pipe((0, _operators.flatMap)(function (txc) {\n return (0, _rxjs.defer)(function () {\n try {\n return work(txc);\n } catch (err) {\n return (0, _rxjs.throwError)(err);\n }\n }).pipe((0, _operators.catchError)(function (err) {\n return txc.rollback().pipe((0, _operators.concat)((0, _rxjs.throwError)(err)));\n }), (0, _operators.concat)(txc.commit()));\n })));\n }\n }]);\n return RxSession;\n}();\n\nexports[\"default\"] = RxSession;\n\nfunction _createRetryLogic(config) {\n var maxRetryTimeout = config && config.maxTransactionRetryTime ? config.maxTransactionRetryTime : null;\n return new _retryLogicRx[\"default\"]({\n maxRetryTimeout: maxRetryTimeout\n });\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));\n\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createClass\"));\n\nvar _rxjs = require(\"rxjs\");\n\nvar _resultRx = _interopRequireDefault(require(\"./result-rx\"));\n\nvar _neo4jDriverCore = _interopRequireDefault(require(\"neo4j-driver-core\"));\n\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * A reactive transaction, which provides the same functionality as {@link Transaction} but through a Reactive API.\n */\nvar RxTransaction = /*#__PURE__*/function () {\n /**\n * @constructor\n * @protected\n * @param {Transaction} txc - The underlying transaction instance to relay requests\n */\n function RxTransaction(txc) {\n (0, _classCallCheck2[\"default\"])(this, RxTransaction);\n this._txc = txc;\n }\n /**\n * Creates a reactive result that will execute the query in this transaction, with the provided parameters.\n *\n * @public\n * @param {string} query - Query to be executed.\n * @param {Object} parameters - Parameter values to use in query execution.\n * @returns {RxResult} - A reactive result\n */\n\n\n (0, _createClass2[\"default\"])(RxTransaction, [{\n key: \"run\",\n value: function run(query, parameters) {\n var _this = this;\n\n return new _resultRx[\"default\"](new _rxjs.Observable(function (observer) {\n try {\n observer.next(_this._txc.run(query, parameters));\n observer.complete();\n } catch (err) {\n observer.error(err);\n }\n\n return function () {};\n }));\n }\n /**\n * Commits the transaction.\n *\n * @public\n * @returns {Observable} - An empty observable\n */\n\n }, {\n key: \"commit\",\n value: function commit() {\n var _this2 = this;\n\n return new _rxjs.Observable(function (observer) {\n _this2._txc.commit().then(function () {\n observer.complete();\n })[\"catch\"](function (err) {\n return observer.error(err);\n });\n });\n }\n /**\n * Rolls back the transaction.\n *\n * @public\n * @returns {Observable} - An empty observable\n */\n\n }, {\n key: \"rollback\",\n value: function rollback() {\n var _this3 = this;\n\n return new _rxjs.Observable(function (observer) {\n _this3._txc.rollback().then(function () {\n observer.complete();\n })[\"catch\"](function (err) {\n return observer.error(err);\n });\n });\n }\n /**\n * Closes the transaction\n *\n * This method will roll back the transaction if it is not already committed or rolled back.\n *\n * @returns {Observable} - An empty observable\n */\n\n }, {\n key: \"close\",\n value: function close() {\n var _this4 = this;\n\n return new _rxjs.Observable(function (observer) {\n _this4._txc.close().then(function () {\n observer.complete();\n })[\"catch\"](function (err) {\n return observer.error(err);\n });\n });\n }\n }]);\n return RxTransaction;\n}();\n\nexports[\"default\"] = RxTransaction;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\n/**\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// DO NOT CHANGE THE VERSION BELOW HERE\n// This is set by the build system at release time, using\n//\n// gulp set --x \n//\n// This is set up this way to keep the version in the code in\n// sync with the npm package version, and to allow the build\n// system to control version names at packaging time.\nvar _default = '4.4.10';\nexports[\"default\"] = _default;","/** PURE_IMPORTS_START tslib,_AsyncAction PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { AsyncAction } from './AsyncAction';\nvar AnimationFrameAction = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AnimationFrameAction, _super);\n function AnimationFrameAction(scheduler, work) {\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n return _this;\n }\n AnimationFrameAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if (delay !== null && delay > 0) {\n return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);\n }\n scheduler.actions.push(this);\n return scheduler.scheduled || (scheduler.scheduled = requestAnimationFrame(function () { return scheduler.flush(null); }));\n };\n AnimationFrameAction.prototype.recycleAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {\n return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);\n }\n if (scheduler.actions.length === 0) {\n cancelAnimationFrame(id);\n scheduler.scheduled = undefined;\n }\n return undefined;\n };\n return AnimationFrameAction;\n}(AsyncAction));\nexport { AnimationFrameAction };\n//# sourceMappingURL=AnimationFrameAction.js.map\n","/** PURE_IMPORTS_START _AnimationFrameAction,_AnimationFrameScheduler PURE_IMPORTS_END */\nimport { AnimationFrameAction } from './AnimationFrameAction';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\nexport var animationFrameScheduler = /*@__PURE__*/ new AnimationFrameScheduler(AnimationFrameAction);\nexport var animationFrame = animationFrameScheduler;\n//# sourceMappingURL=animationFrame.js.map\n","/** PURE_IMPORTS_START tslib,_AsyncScheduler PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { AsyncScheduler } from './AsyncScheduler';\nvar AnimationFrameScheduler = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AnimationFrameScheduler, _super);\n function AnimationFrameScheduler() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n AnimationFrameScheduler.prototype.flush = function (action) {\n this.active = true;\n this.scheduled = undefined;\n var actions = this.actions;\n var error;\n var index = -1;\n var count = actions.length;\n action = action || actions.shift();\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while (++index < count && (action = actions.shift()));\n this.active = false;\n if (error) {\n while (++index < count && (action = actions.shift())) {\n action.unsubscribe();\n }\n throw error;\n }\n };\n return AnimationFrameScheduler;\n}(AsyncScheduler));\nexport { AnimationFrameScheduler };\n//# sourceMappingURL=AnimationFrameScheduler.js.map\n","/** PURE_IMPORTS_START tslib,_AsyncAction,_AsyncScheduler PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\nvar VirtualTimeScheduler = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(VirtualTimeScheduler, _super);\n function VirtualTimeScheduler(SchedulerAction, maxFrames) {\n if (SchedulerAction === void 0) {\n SchedulerAction = VirtualAction;\n }\n if (maxFrames === void 0) {\n maxFrames = Number.POSITIVE_INFINITY;\n }\n var _this = _super.call(this, SchedulerAction, function () { return _this.frame; }) || this;\n _this.maxFrames = maxFrames;\n _this.frame = 0;\n _this.index = -1;\n return _this;\n }\n VirtualTimeScheduler.prototype.flush = function () {\n var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;\n var error, action;\n while ((action = actions[0]) && action.delay <= maxFrames) {\n actions.shift();\n this.frame = action.delay;\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n }\n if (error) {\n while (action = actions.shift()) {\n action.unsubscribe();\n }\n throw error;\n }\n };\n VirtualTimeScheduler.frameTimeFactor = 10;\n return VirtualTimeScheduler;\n}(AsyncScheduler));\nexport { VirtualTimeScheduler };\nvar VirtualAction = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(VirtualAction, _super);\n function VirtualAction(scheduler, work, index) {\n if (index === void 0) {\n index = scheduler.index += 1;\n }\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n _this.index = index;\n _this.active = true;\n _this.index = scheduler.index = index;\n return _this;\n }\n VirtualAction.prototype.schedule = function (state, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if (!this.id) {\n return _super.prototype.schedule.call(this, state, delay);\n }\n this.active = false;\n var action = new VirtualAction(this.scheduler, this.work);\n this.add(action);\n return action.schedule(state, delay);\n };\n VirtualAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n this.delay = scheduler.frame + delay;\n var actions = scheduler.actions;\n actions.push(this);\n actions.sort(VirtualAction.sortActions);\n return true;\n };\n VirtualAction.prototype.recycleAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n return undefined;\n };\n VirtualAction.prototype._execute = function (state, delay) {\n if (this.active === true) {\n return _super.prototype._execute.call(this, state, delay);\n }\n };\n VirtualAction.sortActions = function (a, b) {\n if (a.delay === b.delay) {\n if (a.index === b.index) {\n return 0;\n }\n else if (a.index > b.index) {\n return 1;\n }\n else {\n return -1;\n }\n }\n else if (a.delay > b.delay) {\n return 1;\n }\n else {\n return -1;\n }\n };\n return VirtualAction;\n}(AsyncAction));\nexport { VirtualAction };\n//# sourceMappingURL=VirtualTimeScheduler.js.map\n","/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nexport function isObservable(obj) {\n return !!obj && (obj instanceof Observable || (typeof obj.lift === 'function' && typeof obj.subscribe === 'function'));\n}\n//# sourceMappingURL=isObservable.js.map\n","/** PURE_IMPORTS_START _Observable,_AsyncSubject,_operators_map,_util_canReportError,_util_isArray,_util_isScheduler PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { AsyncSubject } from '../AsyncSubject';\nimport { map } from '../operators/map';\nimport { canReportError } from '../util/canReportError';\nimport { isArray } from '../util/isArray';\nimport { isScheduler } from '../util/isScheduler';\nexport function bindCallback(callbackFunc, resultSelector, scheduler) {\n if (resultSelector) {\n if (isScheduler(resultSelector)) {\n scheduler = resultSelector;\n }\n else {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return bindCallback(callbackFunc, scheduler).apply(void 0, args).pipe(map(function (args) { return isArray(args) ? resultSelector.apply(void 0, args) : resultSelector(args); }));\n };\n }\n }\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var context = this;\n var subject;\n var params = {\n context: context,\n subject: subject,\n callbackFunc: callbackFunc,\n scheduler: scheduler,\n };\n return new Observable(function (subscriber) {\n if (!scheduler) {\n if (!subject) {\n subject = new AsyncSubject();\n var handler = function () {\n var innerArgs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n innerArgs[_i] = arguments[_i];\n }\n subject.next(innerArgs.length <= 1 ? innerArgs[0] : innerArgs);\n subject.complete();\n };\n try {\n callbackFunc.apply(context, args.concat([handler]));\n }\n catch (err) {\n if (canReportError(subject)) {\n subject.error(err);\n }\n else {\n console.warn(err);\n }\n }\n }\n return subject.subscribe(subscriber);\n }\n else {\n var state = {\n args: args, subscriber: subscriber, params: params,\n };\n return scheduler.schedule(dispatch, 0, state);\n }\n });\n };\n}\nfunction dispatch(state) {\n var _this = this;\n var self = this;\n var args = state.args, subscriber = state.subscriber, params = state.params;\n var callbackFunc = params.callbackFunc, context = params.context, scheduler = params.scheduler;\n var subject = params.subject;\n if (!subject) {\n subject = params.subject = new AsyncSubject();\n var handler = function () {\n var innerArgs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n innerArgs[_i] = arguments[_i];\n }\n var value = innerArgs.length <= 1 ? innerArgs[0] : innerArgs;\n _this.add(scheduler.schedule(dispatchNext, 0, { value: value, subject: subject }));\n };\n try {\n callbackFunc.apply(context, args.concat([handler]));\n }\n catch (err) {\n subject.error(err);\n }\n }\n this.add(subject.subscribe(subscriber));\n}\nfunction dispatchNext(state) {\n var value = state.value, subject = state.subject;\n subject.next(value);\n subject.complete();\n}\nfunction dispatchError(state) {\n var err = state.err, subject = state.subject;\n subject.error(err);\n}\n//# sourceMappingURL=bindCallback.js.map\n","/** PURE_IMPORTS_START _Observable,_AsyncSubject,_operators_map,_util_canReportError,_util_isScheduler,_util_isArray PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { AsyncSubject } from '../AsyncSubject';\nimport { map } from '../operators/map';\nimport { canReportError } from '../util/canReportError';\nimport { isScheduler } from '../util/isScheduler';\nimport { isArray } from '../util/isArray';\nexport function bindNodeCallback(callbackFunc, resultSelector, scheduler) {\n if (resultSelector) {\n if (isScheduler(resultSelector)) {\n scheduler = resultSelector;\n }\n else {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return bindNodeCallback(callbackFunc, scheduler).apply(void 0, args).pipe(map(function (args) { return isArray(args) ? resultSelector.apply(void 0, args) : resultSelector(args); }));\n };\n }\n }\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var params = {\n subject: undefined,\n args: args,\n callbackFunc: callbackFunc,\n scheduler: scheduler,\n context: this,\n };\n return new Observable(function (subscriber) {\n var context = params.context;\n var subject = params.subject;\n if (!scheduler) {\n if (!subject) {\n subject = params.subject = new AsyncSubject();\n var handler = function () {\n var innerArgs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n innerArgs[_i] = arguments[_i];\n }\n var err = innerArgs.shift();\n if (err) {\n subject.error(err);\n return;\n }\n subject.next(innerArgs.length <= 1 ? innerArgs[0] : innerArgs);\n subject.complete();\n };\n try {\n callbackFunc.apply(context, args.concat([handler]));\n }\n catch (err) {\n if (canReportError(subject)) {\n subject.error(err);\n }\n else {\n console.warn(err);\n }\n }\n }\n return subject.subscribe(subscriber);\n }\n else {\n return scheduler.schedule(dispatch, 0, { params: params, subscriber: subscriber, context: context });\n }\n });\n };\n}\nfunction dispatch(state) {\n var _this = this;\n var params = state.params, subscriber = state.subscriber, context = state.context;\n var callbackFunc = params.callbackFunc, args = params.args, scheduler = params.scheduler;\n var subject = params.subject;\n if (!subject) {\n subject = params.subject = new AsyncSubject();\n var handler = function () {\n var innerArgs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n innerArgs[_i] = arguments[_i];\n }\n var err = innerArgs.shift();\n if (err) {\n _this.add(scheduler.schedule(dispatchError, 0, { err: err, subject: subject }));\n }\n else {\n var value = innerArgs.length <= 1 ? innerArgs[0] : innerArgs;\n _this.add(scheduler.schedule(dispatchNext, 0, { value: value, subject: subject }));\n }\n };\n try {\n callbackFunc.apply(context, args.concat([handler]));\n }\n catch (err) {\n this.add(scheduler.schedule(dispatchError, 0, { err: err, subject: subject }));\n }\n }\n this.add(subject.subscribe(subscriber));\n}\nfunction dispatchNext(arg) {\n var value = arg.value, subject = arg.subject;\n subject.next(value);\n subject.complete();\n}\nfunction dispatchError(arg) {\n var err = arg.err, subject = arg.subject;\n subject.error(err);\n}\n//# sourceMappingURL=bindNodeCallback.js.map\n","/** PURE_IMPORTS_START _Observable,_util_isArray,_operators_map,_util_isObject,_from PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { isArray } from '../util/isArray';\nimport { map } from '../operators/map';\nimport { isObject } from '../util/isObject';\nimport { from } from './from';\nexport function forkJoin() {\n var sources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n sources[_i] = arguments[_i];\n }\n if (sources.length === 1) {\n var first_1 = sources[0];\n if (isArray(first_1)) {\n return forkJoinInternal(first_1, null);\n }\n if (isObject(first_1) && Object.getPrototypeOf(first_1) === Object.prototype) {\n var keys = Object.keys(first_1);\n return forkJoinInternal(keys.map(function (key) { return first_1[key]; }), keys);\n }\n }\n if (typeof sources[sources.length - 1] === 'function') {\n var resultSelector_1 = sources.pop();\n sources = (sources.length === 1 && isArray(sources[0])) ? sources[0] : sources;\n return forkJoinInternal(sources, null).pipe(map(function (args) { return resultSelector_1.apply(void 0, args); }));\n }\n return forkJoinInternal(sources, null);\n}\nfunction forkJoinInternal(sources, keys) {\n return new Observable(function (subscriber) {\n var len = sources.length;\n if (len === 0) {\n subscriber.complete();\n return;\n }\n var values = new Array(len);\n var completed = 0;\n var emitted = 0;\n var _loop_1 = function (i) {\n var source = from(sources[i]);\n var hasValue = false;\n subscriber.add(source.subscribe({\n next: function (value) {\n if (!hasValue) {\n hasValue = true;\n emitted++;\n }\n values[i] = value;\n },\n error: function (err) { return subscriber.error(err); },\n complete: function () {\n completed++;\n if (completed === len || !hasValue) {\n if (emitted === len) {\n subscriber.next(keys ?\n keys.reduce(function (result, key, i) { return (result[key] = values[i], result); }, {}) :\n values);\n }\n subscriber.complete();\n }\n }\n }));\n };\n for (var i = 0; i < len; i++) {\n _loop_1(i);\n }\n });\n}\n//# sourceMappingURL=forkJoin.js.map\n","/** PURE_IMPORTS_START _Observable,_util_isArray,_util_isFunction,_operators_map PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { isArray } from '../util/isArray';\nimport { isFunction } from '../util/isFunction';\nimport { map } from '../operators/map';\nvar toString = /*@__PURE__*/ (function () { return Object.prototype.toString; })();\nexport function fromEvent(target, eventName, options, resultSelector) {\n if (isFunction(options)) {\n resultSelector = options;\n options = undefined;\n }\n if (resultSelector) {\n return fromEvent(target, eventName, options).pipe(map(function (args) { return isArray(args) ? resultSelector.apply(void 0, args) : resultSelector(args); }));\n }\n return new Observable(function (subscriber) {\n function handler(e) {\n if (arguments.length > 1) {\n subscriber.next(Array.prototype.slice.call(arguments));\n }\n else {\n subscriber.next(e);\n }\n }\n setupSubscription(target, eventName, handler, subscriber, options);\n });\n}\nfunction setupSubscription(sourceObj, eventName, handler, subscriber, options) {\n var unsubscribe;\n if (isEventTarget(sourceObj)) {\n var source_1 = sourceObj;\n sourceObj.addEventListener(eventName, handler, options);\n unsubscribe = function () { return source_1.removeEventListener(eventName, handler, options); };\n }\n else if (isJQueryStyleEventEmitter(sourceObj)) {\n var source_2 = sourceObj;\n sourceObj.on(eventName, handler);\n unsubscribe = function () { return source_2.off(eventName, handler); };\n }\n else if (isNodeStyleEventEmitter(sourceObj)) {\n var source_3 = sourceObj;\n sourceObj.addListener(eventName, handler);\n unsubscribe = function () { return source_3.removeListener(eventName, handler); };\n }\n else if (sourceObj && sourceObj.length) {\n for (var i = 0, len = sourceObj.length; i < len; i++) {\n setupSubscription(sourceObj[i], eventName, handler, subscriber, options);\n }\n }\n else {\n throw new TypeError('Invalid event target');\n }\n subscriber.add(unsubscribe);\n}\nfunction isNodeStyleEventEmitter(sourceObj) {\n return sourceObj && typeof sourceObj.addListener === 'function' && typeof sourceObj.removeListener === 'function';\n}\nfunction isJQueryStyleEventEmitter(sourceObj) {\n return sourceObj && typeof sourceObj.on === 'function' && typeof sourceObj.off === 'function';\n}\nfunction isEventTarget(sourceObj) {\n return sourceObj && typeof sourceObj.addEventListener === 'function' && typeof sourceObj.removeEventListener === 'function';\n}\n//# sourceMappingURL=fromEvent.js.map\n","/** PURE_IMPORTS_START _Observable,_util_isArray,_util_isFunction,_operators_map PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { isArray } from '../util/isArray';\nimport { isFunction } from '../util/isFunction';\nimport { map } from '../operators/map';\nexport function fromEventPattern(addHandler, removeHandler, resultSelector) {\n if (resultSelector) {\n return fromEventPattern(addHandler, removeHandler).pipe(map(function (args) { return isArray(args) ? resultSelector.apply(void 0, args) : resultSelector(args); }));\n }\n return new Observable(function (subscriber) {\n var handler = function () {\n var e = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n e[_i] = arguments[_i];\n }\n return subscriber.next(e.length === 1 ? e[0] : e);\n };\n var retValue;\n try {\n retValue = addHandler(handler);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n if (!isFunction(removeHandler)) {\n return undefined;\n }\n return function () { return removeHandler(handler, retValue); };\n });\n}\n//# sourceMappingURL=fromEventPattern.js.map\n","/** PURE_IMPORTS_START _Observable,_util_identity,_util_isScheduler PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { identity } from '../util/identity';\nimport { isScheduler } from '../util/isScheduler';\nexport function generate(initialStateOrOptions, condition, iterate, resultSelectorOrObservable, scheduler) {\n var resultSelector;\n var initialState;\n if (arguments.length == 1) {\n var options = initialStateOrOptions;\n initialState = options.initialState;\n condition = options.condition;\n iterate = options.iterate;\n resultSelector = options.resultSelector || identity;\n scheduler = options.scheduler;\n }\n else if (resultSelectorOrObservable === undefined || isScheduler(resultSelectorOrObservable)) {\n initialState = initialStateOrOptions;\n resultSelector = identity;\n scheduler = resultSelectorOrObservable;\n }\n else {\n initialState = initialStateOrOptions;\n resultSelector = resultSelectorOrObservable;\n }\n return new Observable(function (subscriber) {\n var state = initialState;\n if (scheduler) {\n return scheduler.schedule(dispatch, 0, {\n subscriber: subscriber,\n iterate: iterate,\n condition: condition,\n resultSelector: resultSelector,\n state: state\n });\n }\n do {\n if (condition) {\n var conditionResult = void 0;\n try {\n conditionResult = condition(state);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n if (!conditionResult) {\n subscriber.complete();\n break;\n }\n }\n var value = void 0;\n try {\n value = resultSelector(state);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n subscriber.next(value);\n if (subscriber.closed) {\n break;\n }\n try {\n state = iterate(state);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n } while (true);\n return undefined;\n });\n}\nfunction dispatch(state) {\n var subscriber = state.subscriber, condition = state.condition;\n if (subscriber.closed) {\n return undefined;\n }\n if (state.needIterate) {\n try {\n state.state = state.iterate(state.state);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n }\n else {\n state.needIterate = true;\n }\n if (condition) {\n var conditionResult = void 0;\n try {\n conditionResult = condition(state.state);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n if (!conditionResult) {\n subscriber.complete();\n return undefined;\n }\n if (subscriber.closed) {\n return undefined;\n }\n }\n var value;\n try {\n value = state.resultSelector(state.state);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n if (subscriber.closed) {\n return undefined;\n }\n subscriber.next(value);\n if (subscriber.closed) {\n return undefined;\n }\n return this.schedule(state);\n}\n//# sourceMappingURL=generate.js.map\n","/** PURE_IMPORTS_START _defer,_empty PURE_IMPORTS_END */\nimport { defer } from './defer';\nimport { EMPTY } from './empty';\nexport function iif(condition, trueResult, falseResult) {\n if (trueResult === void 0) {\n trueResult = EMPTY;\n }\n if (falseResult === void 0) {\n falseResult = EMPTY;\n }\n return defer(function () { return condition() ? trueResult : falseResult; });\n}\n//# sourceMappingURL=iif.js.map\n","/** PURE_IMPORTS_START _Observable,_scheduler_async,_util_isNumeric PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { async } from '../scheduler/async';\nimport { isNumeric } from '../util/isNumeric';\nexport function interval(period, scheduler) {\n if (period === void 0) {\n period = 0;\n }\n if (scheduler === void 0) {\n scheduler = async;\n }\n if (!isNumeric(period) || period < 0) {\n period = 0;\n }\n if (!scheduler || typeof scheduler.schedule !== 'function') {\n scheduler = async;\n }\n return new Observable(function (subscriber) {\n subscriber.add(scheduler.schedule(dispatch, period, { subscriber: subscriber, counter: 0, period: period }));\n return subscriber;\n });\n}\nfunction dispatch(state) {\n var subscriber = state.subscriber, counter = state.counter, period = state.period;\n subscriber.next(counter);\n this.schedule({ subscriber: subscriber, counter: counter + 1, period: period }, period);\n}\n//# sourceMappingURL=interval.js.map\n","/** PURE_IMPORTS_START _Observable,_util_noop PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { noop } from '../util/noop';\nexport var NEVER = /*@__PURE__*/ new Observable(noop);\nexport function never() {\n return NEVER;\n}\n//# sourceMappingURL=never.js.map\n","/** PURE_IMPORTS_START _Observable,_from,_util_isArray,_empty PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { from } from './from';\nimport { isArray } from '../util/isArray';\nimport { EMPTY } from './empty';\nexport function onErrorResumeNext() {\n var sources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n sources[_i] = arguments[_i];\n }\n if (sources.length === 0) {\n return EMPTY;\n }\n var first = sources[0], remainder = sources.slice(1);\n if (sources.length === 1 && isArray(first)) {\n return onErrorResumeNext.apply(void 0, first);\n }\n return new Observable(function (subscriber) {\n var subNext = function () { return subscriber.add(onErrorResumeNext.apply(void 0, remainder).subscribe(subscriber)); };\n return from(first).subscribe({\n next: function (value) { subscriber.next(value); },\n error: subNext,\n complete: subNext,\n });\n });\n}\n//# sourceMappingURL=onErrorResumeNext.js.map\n","/** PURE_IMPORTS_START _Observable,_Subscription PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nexport function pairs(obj, scheduler) {\n if (!scheduler) {\n return new Observable(function (subscriber) {\n var keys = Object.keys(obj);\n for (var i = 0; i < keys.length && !subscriber.closed; i++) {\n var key = keys[i];\n if (obj.hasOwnProperty(key)) {\n subscriber.next([key, obj[key]]);\n }\n }\n subscriber.complete();\n });\n }\n else {\n return new Observable(function (subscriber) {\n var keys = Object.keys(obj);\n var subscription = new Subscription();\n subscription.add(scheduler.schedule(dispatch, 0, { keys: keys, index: 0, subscriber: subscriber, subscription: subscription, obj: obj }));\n return subscription;\n });\n }\n}\nexport function dispatch(state) {\n var keys = state.keys, index = state.index, subscriber = state.subscriber, subscription = state.subscription, obj = state.obj;\n if (!subscriber.closed) {\n if (index < keys.length) {\n var key = keys[index];\n subscriber.next([key, obj[key]]);\n subscription.add(this.schedule({ keys: keys, index: index + 1, subscriber: subscriber, subscription: subscription, obj: obj }));\n }\n else {\n subscriber.complete();\n }\n }\n}\n//# sourceMappingURL=pairs.js.map\n","/** PURE_IMPORTS_START _util_not,_util_subscribeTo,_operators_filter,_Observable PURE_IMPORTS_END */\nimport { not } from '../util/not';\nimport { subscribeTo } from '../util/subscribeTo';\nimport { filter } from '../operators/filter';\nimport { Observable } from '../Observable';\nexport function partition(source, predicate, thisArg) {\n return [\n filter(predicate, thisArg)(new Observable(subscribeTo(source))),\n filter(not(predicate, thisArg))(new Observable(subscribeTo(source)))\n ];\n}\n//# sourceMappingURL=partition.js.map\n","/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nexport function range(start, count, scheduler) {\n if (start === void 0) {\n start = 0;\n }\n return new Observable(function (subscriber) {\n if (count === undefined) {\n count = start;\n start = 0;\n }\n var index = 0;\n var current = start;\n if (scheduler) {\n return scheduler.schedule(dispatch, 0, {\n index: index, count: count, start: start, subscriber: subscriber\n });\n }\n else {\n do {\n if (index++ >= count) {\n subscriber.complete();\n break;\n }\n subscriber.next(current++);\n if (subscriber.closed) {\n break;\n }\n } while (true);\n }\n return undefined;\n });\n}\nexport function dispatch(state) {\n var start = state.start, index = state.index, count = state.count, subscriber = state.subscriber;\n if (index >= count) {\n subscriber.complete();\n return;\n }\n subscriber.next(start);\n if (subscriber.closed) {\n return;\n }\n state.index = index + 1;\n state.start = start + 1;\n this.schedule(state);\n}\n//# sourceMappingURL=range.js.map\n","/** PURE_IMPORTS_START _Observable,_from,_empty PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { from } from './from';\nimport { EMPTY } from './empty';\nexport function using(resourceFactory, observableFactory) {\n return new Observable(function (subscriber) {\n var resource;\n try {\n resource = resourceFactory();\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n var result;\n try {\n result = observableFactory(resource);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n var source = result ? from(result) : EMPTY;\n var subscription = source.subscribe(subscriber);\n return function () {\n subscription.unsubscribe();\n if (resource) {\n resource.unsubscribe();\n }\n };\n });\n}\n//# sourceMappingURL=using.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_Subscription PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subject } from './Subject';\nimport { Subscription } from './Subscription';\nvar AsyncSubject = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AsyncSubject, _super);\n function AsyncSubject() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.value = null;\n _this.hasNext = false;\n _this.hasCompleted = false;\n return _this;\n }\n AsyncSubject.prototype._subscribe = function (subscriber) {\n if (this.hasError) {\n subscriber.error(this.thrownError);\n return Subscription.EMPTY;\n }\n else if (this.hasCompleted && this.hasNext) {\n subscriber.next(this.value);\n subscriber.complete();\n return Subscription.EMPTY;\n }\n return _super.prototype._subscribe.call(this, subscriber);\n };\n AsyncSubject.prototype.next = function (value) {\n if (!this.hasCompleted) {\n this.value = value;\n this.hasNext = true;\n }\n };\n AsyncSubject.prototype.error = function (error) {\n if (!this.hasCompleted) {\n _super.prototype.error.call(this, error);\n }\n };\n AsyncSubject.prototype.complete = function () {\n this.hasCompleted = true;\n if (this.hasNext) {\n _super.prototype.next.call(this, this.value);\n }\n _super.prototype.complete.call(this);\n };\n return AsyncSubject;\n}(Subject));\nexport { AsyncSubject };\n//# sourceMappingURL=AsyncSubject.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_util_ObjectUnsubscribedError PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subject } from './Subject';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nvar BehaviorSubject = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(BehaviorSubject, _super);\n function BehaviorSubject(_value) {\n var _this = _super.call(this) || this;\n _this._value = _value;\n return _this;\n }\n Object.defineProperty(BehaviorSubject.prototype, \"value\", {\n get: function () {\n return this.getValue();\n },\n enumerable: true,\n configurable: true\n });\n BehaviorSubject.prototype._subscribe = function (subscriber) {\n var subscription = _super.prototype._subscribe.call(this, subscriber);\n if (subscription && !subscription.closed) {\n subscriber.next(this._value);\n }\n return subscription;\n };\n BehaviorSubject.prototype.getValue = function () {\n if (this.hasError) {\n throw this.thrownError;\n }\n else if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else {\n return this._value;\n }\n };\n BehaviorSubject.prototype.next = function (value) {\n _super.prototype.next.call(this, this._value = value);\n };\n return BehaviorSubject;\n}(Subject));\nexport { BehaviorSubject };\n//# sourceMappingURL=BehaviorSubject.js.map\n","/** PURE_IMPORTS_START _observable_empty,_observable_of,_observable_throwError PURE_IMPORTS_END */\nimport { empty } from './observable/empty';\nimport { of } from './observable/of';\nimport { throwError } from './observable/throwError';\nexport var NotificationKind;\n/*@__PURE__*/ (function (NotificationKind) {\n NotificationKind[\"NEXT\"] = \"N\";\n NotificationKind[\"ERROR\"] = \"E\";\n NotificationKind[\"COMPLETE\"] = \"C\";\n})(NotificationKind || (NotificationKind = {}));\nvar Notification = /*@__PURE__*/ (function () {\n function Notification(kind, value, error) {\n this.kind = kind;\n this.value = value;\n this.error = error;\n this.hasValue = kind === 'N';\n }\n Notification.prototype.observe = function (observer) {\n switch (this.kind) {\n case 'N':\n return observer.next && observer.next(this.value);\n case 'E':\n return observer.error && observer.error(this.error);\n case 'C':\n return observer.complete && observer.complete();\n }\n };\n Notification.prototype.do = function (next, error, complete) {\n var kind = this.kind;\n switch (kind) {\n case 'N':\n return next && next(this.value);\n case 'E':\n return error && error(this.error);\n case 'C':\n return complete && complete();\n }\n };\n Notification.prototype.accept = function (nextOrObserver, error, complete) {\n if (nextOrObserver && typeof nextOrObserver.next === 'function') {\n return this.observe(nextOrObserver);\n }\n else {\n return this.do(nextOrObserver, error, complete);\n }\n };\n Notification.prototype.toObservable = function () {\n var kind = this.kind;\n switch (kind) {\n case 'N':\n return of(this.value);\n case 'E':\n return throwError(this.error);\n case 'C':\n return empty();\n }\n throw new Error('unexpected notification kind value');\n };\n Notification.createNext = function (value) {\n if (typeof value !== 'undefined') {\n return new Notification('N', value);\n }\n return Notification.undefinedValueNotification;\n };\n Notification.createError = function (err) {\n return new Notification('E', undefined, err);\n };\n Notification.createComplete = function () {\n return Notification.completeNotification;\n };\n Notification.completeNotification = new Notification('C');\n Notification.undefinedValueNotification = new Notification('N', undefined);\n return Notification;\n}());\nexport { Notification };\n//# sourceMappingURL=Notification.js.map\n","/** PURE_IMPORTS_START _util_canReportError,_util_toSubscriber,_symbol_observable,_util_pipe,_config PURE_IMPORTS_END */\nimport { canReportError } from './util/canReportError';\nimport { toSubscriber } from './util/toSubscriber';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nvar Observable = /*@__PURE__*/ (function () {\n function Observable(subscribe) {\n this._isScalar = false;\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n Observable.prototype.lift = function (operator) {\n var observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n };\n Observable.prototype.subscribe = function (observerOrNext, error, complete) {\n var operator = this.operator;\n var sink = toSubscriber(observerOrNext, error, complete);\n if (operator) {\n sink.add(operator.call(sink, this.source));\n }\n else {\n sink.add(this.source || (config.useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable) ?\n this._subscribe(sink) :\n this._trySubscribe(sink));\n }\n if (config.useDeprecatedSynchronousErrorHandling) {\n if (sink.syncErrorThrowable) {\n sink.syncErrorThrowable = false;\n if (sink.syncErrorThrown) {\n throw sink.syncErrorValue;\n }\n }\n }\n return sink;\n };\n Observable.prototype._trySubscribe = function (sink) {\n try {\n return this._subscribe(sink);\n }\n catch (err) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n sink.syncErrorThrown = true;\n sink.syncErrorValue = err;\n }\n if (canReportError(sink)) {\n sink.error(err);\n }\n else {\n console.warn(err);\n }\n }\n };\n Observable.prototype.forEach = function (next, promiseCtor) {\n var _this = this;\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor(function (resolve, reject) {\n var subscription;\n subscription = _this.subscribe(function (value) {\n try {\n next(value);\n }\n catch (err) {\n reject(err);\n if (subscription) {\n subscription.unsubscribe();\n }\n }\n }, reject, resolve);\n });\n };\n Observable.prototype._subscribe = function (subscriber) {\n var source = this.source;\n return source && source.subscribe(subscriber);\n };\n Observable.prototype[Symbol_observable] = function () {\n return this;\n };\n Observable.prototype.pipe = function () {\n var operations = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n operations[_i] = arguments[_i];\n }\n if (operations.length === 0) {\n return this;\n }\n return pipeFromArray(operations)(this);\n };\n Observable.prototype.toPromise = function (promiseCtor) {\n var _this = this;\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor(function (resolve, reject) {\n var value;\n _this.subscribe(function (x) { return value = x; }, function (err) { return reject(err); }, function () { return resolve(value); });\n });\n };\n Observable.create = function (subscribe) {\n return new Observable(subscribe);\n };\n return Observable;\n}());\nexport { Observable };\nfunction getPromiseCtor(promiseCtor) {\n if (!promiseCtor) {\n promiseCtor = config.Promise || Promise;\n }\n if (!promiseCtor) {\n throw new Error('no Promise impl found');\n }\n return promiseCtor;\n}\n//# sourceMappingURL=Observable.js.map\n","/** PURE_IMPORTS_START _Subscriber,_symbol_rxSubscriber,_Observer PURE_IMPORTS_END */\nimport { Subscriber } from '../Subscriber';\nimport { rxSubscriber as rxSubscriberSymbol } from '../symbol/rxSubscriber';\nimport { empty as emptyObserver } from '../Observer';\nexport function toSubscriber(nextOrObserver, error, complete) {\n if (nextOrObserver) {\n if (nextOrObserver instanceof Subscriber) {\n return nextOrObserver;\n }\n if (nextOrObserver[rxSubscriberSymbol]) {\n return nextOrObserver[rxSubscriberSymbol]();\n }\n }\n if (!nextOrObserver && !error && !complete) {\n return new Subscriber(emptyObserver);\n }\n return new Subscriber(nextOrObserver, error, complete);\n}\n//# sourceMappingURL=toSubscriber.js.map\n","/** PURE_IMPORTS_START _config,_util_hostReportError PURE_IMPORTS_END */\nimport { config } from './config';\nimport { hostReportError } from './util/hostReportError';\nexport var empty = {\n closed: true,\n next: function (value) { },\n error: function (err) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n throw err;\n }\n else {\n hostReportError(err);\n }\n },\n complete: function () { }\n};\n//# sourceMappingURL=Observer.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from './Subscriber';\nvar OuterSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(OuterSubscriber, _super);\n function OuterSubscriber() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n OuterSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n this.destination.next(innerValue);\n };\n OuterSubscriber.prototype.notifyError = function (error, innerSub) {\n this.destination.error(error);\n };\n OuterSubscriber.prototype.notifyComplete = function (innerSub) {\n this.destination.complete();\n };\n return OuterSubscriber;\n}(Subscriber));\nexport { OuterSubscriber };\n//# sourceMappingURL=OuterSubscriber.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_scheduler_queue,_Subscription,_operators_observeOn,_util_ObjectUnsubscribedError,_SubjectSubscription PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subject } from './Subject';\nimport { queue } from './scheduler/queue';\nimport { Subscription } from './Subscription';\nimport { ObserveOnSubscriber } from './operators/observeOn';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { SubjectSubscription } from './SubjectSubscription';\nvar ReplaySubject = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ReplaySubject, _super);\n function ReplaySubject(bufferSize, windowTime, scheduler) {\n if (bufferSize === void 0) {\n bufferSize = Number.POSITIVE_INFINITY;\n }\n if (windowTime === void 0) {\n windowTime = Number.POSITIVE_INFINITY;\n }\n var _this = _super.call(this) || this;\n _this.scheduler = scheduler;\n _this._events = [];\n _this._infiniteTimeWindow = false;\n _this._bufferSize = bufferSize < 1 ? 1 : bufferSize;\n _this._windowTime = windowTime < 1 ? 1 : windowTime;\n if (windowTime === Number.POSITIVE_INFINITY) {\n _this._infiniteTimeWindow = true;\n _this.next = _this.nextInfiniteTimeWindow;\n }\n else {\n _this.next = _this.nextTimeWindow;\n }\n return _this;\n }\n ReplaySubject.prototype.nextInfiniteTimeWindow = function (value) {\n if (!this.isStopped) {\n var _events = this._events;\n _events.push(value);\n if (_events.length > this._bufferSize) {\n _events.shift();\n }\n }\n _super.prototype.next.call(this, value);\n };\n ReplaySubject.prototype.nextTimeWindow = function (value) {\n if (!this.isStopped) {\n this._events.push(new ReplayEvent(this._getNow(), value));\n this._trimBufferThenGetEvents();\n }\n _super.prototype.next.call(this, value);\n };\n ReplaySubject.prototype._subscribe = function (subscriber) {\n var _infiniteTimeWindow = this._infiniteTimeWindow;\n var _events = _infiniteTimeWindow ? this._events : this._trimBufferThenGetEvents();\n var scheduler = this.scheduler;\n var len = _events.length;\n var subscription;\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else if (this.isStopped || this.hasError) {\n subscription = Subscription.EMPTY;\n }\n else {\n this.observers.push(subscriber);\n subscription = new SubjectSubscription(this, subscriber);\n }\n if (scheduler) {\n subscriber.add(subscriber = new ObserveOnSubscriber(subscriber, scheduler));\n }\n if (_infiniteTimeWindow) {\n for (var i = 0; i < len && !subscriber.closed; i++) {\n subscriber.next(_events[i]);\n }\n }\n else {\n for (var i = 0; i < len && !subscriber.closed; i++) {\n subscriber.next(_events[i].value);\n }\n }\n if (this.hasError) {\n subscriber.error(this.thrownError);\n }\n else if (this.isStopped) {\n subscriber.complete();\n }\n return subscription;\n };\n ReplaySubject.prototype._getNow = function () {\n return (this.scheduler || queue).now();\n };\n ReplaySubject.prototype._trimBufferThenGetEvents = function () {\n var now = this._getNow();\n var _bufferSize = this._bufferSize;\n var _windowTime = this._windowTime;\n var _events = this._events;\n var eventsCount = _events.length;\n var spliceCount = 0;\n while (spliceCount < eventsCount) {\n if ((now - _events[spliceCount].time) < _windowTime) {\n break;\n }\n spliceCount++;\n }\n if (eventsCount > _bufferSize) {\n spliceCount = Math.max(spliceCount, eventsCount - _bufferSize);\n }\n if (spliceCount > 0) {\n _events.splice(0, spliceCount);\n }\n return _events;\n };\n return ReplaySubject;\n}(Subject));\nexport { ReplaySubject };\nvar ReplayEvent = /*@__PURE__*/ (function () {\n function ReplayEvent(time, value) {\n this.time = time;\n this.value = value;\n }\n return ReplayEvent;\n}());\n//# sourceMappingURL=ReplaySubject.js.map\n","var Scheduler = /*@__PURE__*/ (function () {\n function Scheduler(SchedulerAction, now) {\n if (now === void 0) {\n now = Scheduler.now;\n }\n this.SchedulerAction = SchedulerAction;\n this.now = now;\n }\n Scheduler.prototype.schedule = function (work, delay, state) {\n if (delay === void 0) {\n delay = 0;\n }\n return new this.SchedulerAction(this, work).schedule(state, delay);\n };\n Scheduler.now = function () { return Date.now(); };\n return Scheduler;\n}());\nexport { Scheduler };\n//# sourceMappingURL=Scheduler.js.map\n","/** PURE_IMPORTS_START tslib,_Observable,_Subscriber,_Subscription,_util_ObjectUnsubscribedError,_SubjectSubscription,_internal_symbol_rxSubscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Observable } from './Observable';\nimport { Subscriber } from './Subscriber';\nimport { Subscription } from './Subscription';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { SubjectSubscription } from './SubjectSubscription';\nimport { rxSubscriber as rxSubscriberSymbol } from '../internal/symbol/rxSubscriber';\nvar SubjectSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SubjectSubscriber, _super);\n function SubjectSubscriber(destination) {\n var _this = _super.call(this, destination) || this;\n _this.destination = destination;\n return _this;\n }\n return SubjectSubscriber;\n}(Subscriber));\nexport { SubjectSubscriber };\nvar Subject = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(Subject, _super);\n function Subject() {\n var _this = _super.call(this) || this;\n _this.observers = [];\n _this.closed = false;\n _this.isStopped = false;\n _this.hasError = false;\n _this.thrownError = null;\n return _this;\n }\n Subject.prototype[rxSubscriberSymbol] = function () {\n return new SubjectSubscriber(this);\n };\n Subject.prototype.lift = function (operator) {\n var subject = new AnonymousSubject(this, this);\n subject.operator = operator;\n return subject;\n };\n Subject.prototype.next = function (value) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n if (!this.isStopped) {\n var observers = this.observers;\n var len = observers.length;\n var copy = observers.slice();\n for (var i = 0; i < len; i++) {\n copy[i].next(value);\n }\n }\n };\n Subject.prototype.error = function (err) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n this.hasError = true;\n this.thrownError = err;\n this.isStopped = true;\n var observers = this.observers;\n var len = observers.length;\n var copy = observers.slice();\n for (var i = 0; i < len; i++) {\n copy[i].error(err);\n }\n this.observers.length = 0;\n };\n Subject.prototype.complete = function () {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n this.isStopped = true;\n var observers = this.observers;\n var len = observers.length;\n var copy = observers.slice();\n for (var i = 0; i < len; i++) {\n copy[i].complete();\n }\n this.observers.length = 0;\n };\n Subject.prototype.unsubscribe = function () {\n this.isStopped = true;\n this.closed = true;\n this.observers = null;\n };\n Subject.prototype._trySubscribe = function (subscriber) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else {\n return _super.prototype._trySubscribe.call(this, subscriber);\n }\n };\n Subject.prototype._subscribe = function (subscriber) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else if (this.hasError) {\n subscriber.error(this.thrownError);\n return Subscription.EMPTY;\n }\n else if (this.isStopped) {\n subscriber.complete();\n return Subscription.EMPTY;\n }\n else {\n this.observers.push(subscriber);\n return new SubjectSubscription(this, subscriber);\n }\n };\n Subject.prototype.asObservable = function () {\n var observable = new Observable();\n observable.source = this;\n return observable;\n };\n Subject.create = function (destination, source) {\n return new AnonymousSubject(destination, source);\n };\n return Subject;\n}(Observable));\nexport { Subject };\nvar AnonymousSubject = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AnonymousSubject, _super);\n function AnonymousSubject(destination, source) {\n var _this = _super.call(this) || this;\n _this.destination = destination;\n _this.source = source;\n return _this;\n }\n AnonymousSubject.prototype.next = function (value) {\n var destination = this.destination;\n if (destination && destination.next) {\n destination.next(value);\n }\n };\n AnonymousSubject.prototype.error = function (err) {\n var destination = this.destination;\n if (destination && destination.error) {\n this.destination.error(err);\n }\n };\n AnonymousSubject.prototype.complete = function () {\n var destination = this.destination;\n if (destination && destination.complete) {\n this.destination.complete();\n }\n };\n AnonymousSubject.prototype._subscribe = function (subscriber) {\n var source = this.source;\n if (source) {\n return this.source.subscribe(subscriber);\n }\n else {\n return Subscription.EMPTY;\n }\n };\n return AnonymousSubject;\n}(Subject));\nexport { AnonymousSubject };\n//# sourceMappingURL=Subject.js.map\n","/** PURE_IMPORTS_START tslib,_Subscription PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscription } from './Subscription';\nvar SubjectSubscription = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SubjectSubscription, _super);\n function SubjectSubscription(subject, subscriber) {\n var _this = _super.call(this) || this;\n _this.subject = subject;\n _this.subscriber = subscriber;\n _this.closed = false;\n return _this;\n }\n SubjectSubscription.prototype.unsubscribe = function () {\n if (this.closed) {\n return;\n }\n this.closed = true;\n var subject = this.subject;\n var observers = subject.observers;\n this.subject = null;\n if (!observers || observers.length === 0 || subject.isStopped || subject.closed) {\n return;\n }\n var subscriberIndex = observers.indexOf(this.subscriber);\n if (subscriberIndex !== -1) {\n observers.splice(subscriberIndex, 1);\n }\n };\n return SubjectSubscription;\n}(Subscription));\nexport { SubjectSubscription };\n//# sourceMappingURL=SubjectSubscription.js.map\n","/** PURE_IMPORTS_START tslib,_util_isFunction,_Observer,_Subscription,_internal_symbol_rxSubscriber,_config,_util_hostReportError PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { isFunction } from './util/isFunction';\nimport { empty as emptyObserver } from './Observer';\nimport { Subscription } from './Subscription';\nimport { rxSubscriber as rxSubscriberSymbol } from '../internal/symbol/rxSubscriber';\nimport { config } from './config';\nimport { hostReportError } from './util/hostReportError';\nvar Subscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(Subscriber, _super);\n function Subscriber(destinationOrNext, error, complete) {\n var _this = _super.call(this) || this;\n _this.syncErrorValue = null;\n _this.syncErrorThrown = false;\n _this.syncErrorThrowable = false;\n _this.isStopped = false;\n switch (arguments.length) {\n case 0:\n _this.destination = emptyObserver;\n break;\n case 1:\n if (!destinationOrNext) {\n _this.destination = emptyObserver;\n break;\n }\n if (typeof destinationOrNext === 'object') {\n if (destinationOrNext instanceof Subscriber) {\n _this.syncErrorThrowable = destinationOrNext.syncErrorThrowable;\n _this.destination = destinationOrNext;\n destinationOrNext.add(_this);\n }\n else {\n _this.syncErrorThrowable = true;\n _this.destination = new SafeSubscriber(_this, destinationOrNext);\n }\n break;\n }\n default:\n _this.syncErrorThrowable = true;\n _this.destination = new SafeSubscriber(_this, destinationOrNext, error, complete);\n break;\n }\n return _this;\n }\n Subscriber.prototype[rxSubscriberSymbol] = function () { return this; };\n Subscriber.create = function (next, error, complete) {\n var subscriber = new Subscriber(next, error, complete);\n subscriber.syncErrorThrowable = false;\n return subscriber;\n };\n Subscriber.prototype.next = function (value) {\n if (!this.isStopped) {\n this._next(value);\n }\n };\n Subscriber.prototype.error = function (err) {\n if (!this.isStopped) {\n this.isStopped = true;\n this._error(err);\n }\n };\n Subscriber.prototype.complete = function () {\n if (!this.isStopped) {\n this.isStopped = true;\n this._complete();\n }\n };\n Subscriber.prototype.unsubscribe = function () {\n if (this.closed) {\n return;\n }\n this.isStopped = true;\n _super.prototype.unsubscribe.call(this);\n };\n Subscriber.prototype._next = function (value) {\n this.destination.next(value);\n };\n Subscriber.prototype._error = function (err) {\n this.destination.error(err);\n this.unsubscribe();\n };\n Subscriber.prototype._complete = function () {\n this.destination.complete();\n this.unsubscribe();\n };\n Subscriber.prototype._unsubscribeAndRecycle = function () {\n var _parentOrParents = this._parentOrParents;\n this._parentOrParents = null;\n this.unsubscribe();\n this.closed = false;\n this.isStopped = false;\n this._parentOrParents = _parentOrParents;\n return this;\n };\n return Subscriber;\n}(Subscription));\nexport { Subscriber };\nvar SafeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SafeSubscriber, _super);\n function SafeSubscriber(_parentSubscriber, observerOrNext, error, complete) {\n var _this = _super.call(this) || this;\n _this._parentSubscriber = _parentSubscriber;\n var next;\n var context = _this;\n if (isFunction(observerOrNext)) {\n next = observerOrNext;\n }\n else if (observerOrNext) {\n next = observerOrNext.next;\n error = observerOrNext.error;\n complete = observerOrNext.complete;\n if (observerOrNext !== emptyObserver) {\n context = Object.create(observerOrNext);\n if (isFunction(context.unsubscribe)) {\n _this.add(context.unsubscribe.bind(context));\n }\n context.unsubscribe = _this.unsubscribe.bind(_this);\n }\n }\n _this._context = context;\n _this._next = next;\n _this._error = error;\n _this._complete = complete;\n return _this;\n }\n SafeSubscriber.prototype.next = function (value) {\n if (!this.isStopped && this._next) {\n var _parentSubscriber = this._parentSubscriber;\n if (!config.useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {\n this.__tryOrUnsub(this._next, value);\n }\n else if (this.__tryOrSetError(_parentSubscriber, this._next, value)) {\n this.unsubscribe();\n }\n }\n };\n SafeSubscriber.prototype.error = function (err) {\n if (!this.isStopped) {\n var _parentSubscriber = this._parentSubscriber;\n var useDeprecatedSynchronousErrorHandling = config.useDeprecatedSynchronousErrorHandling;\n if (this._error) {\n if (!useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {\n this.__tryOrUnsub(this._error, err);\n this.unsubscribe();\n }\n else {\n this.__tryOrSetError(_parentSubscriber, this._error, err);\n this.unsubscribe();\n }\n }\n else if (!_parentSubscriber.syncErrorThrowable) {\n this.unsubscribe();\n if (useDeprecatedSynchronousErrorHandling) {\n throw err;\n }\n hostReportError(err);\n }\n else {\n if (useDeprecatedSynchronousErrorHandling) {\n _parentSubscriber.syncErrorValue = err;\n _parentSubscriber.syncErrorThrown = true;\n }\n else {\n hostReportError(err);\n }\n this.unsubscribe();\n }\n }\n };\n SafeSubscriber.prototype.complete = function () {\n var _this = this;\n if (!this.isStopped) {\n var _parentSubscriber = this._parentSubscriber;\n if (this._complete) {\n var wrappedComplete = function () { return _this._complete.call(_this._context); };\n if (!config.useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {\n this.__tryOrUnsub(wrappedComplete);\n this.unsubscribe();\n }\n else {\n this.__tryOrSetError(_parentSubscriber, wrappedComplete);\n this.unsubscribe();\n }\n }\n else {\n this.unsubscribe();\n }\n }\n };\n SafeSubscriber.prototype.__tryOrUnsub = function (fn, value) {\n try {\n fn.call(this._context, value);\n }\n catch (err) {\n this.unsubscribe();\n if (config.useDeprecatedSynchronousErrorHandling) {\n throw err;\n }\n else {\n hostReportError(err);\n }\n }\n };\n SafeSubscriber.prototype.__tryOrSetError = function (parent, fn, value) {\n if (!config.useDeprecatedSynchronousErrorHandling) {\n throw new Error('bad call');\n }\n try {\n fn.call(this._context, value);\n }\n catch (err) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n parent.syncErrorValue = err;\n parent.syncErrorThrown = true;\n return true;\n }\n else {\n hostReportError(err);\n return true;\n }\n }\n return false;\n };\n SafeSubscriber.prototype._unsubscribe = function () {\n var _parentSubscriber = this._parentSubscriber;\n this._context = null;\n this._parentSubscriber = null;\n _parentSubscriber.unsubscribe();\n };\n return SafeSubscriber;\n}(Subscriber));\nexport { SafeSubscriber };\n//# sourceMappingURL=Subscriber.js.map\n","/** PURE_IMPORTS_START _util_isArray,_util_isObject,_util_isFunction,_util_UnsubscriptionError PURE_IMPORTS_END */\nimport { isArray } from './util/isArray';\nimport { isObject } from './util/isObject';\nimport { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nvar Subscription = /*@__PURE__*/ (function () {\n function Subscription(unsubscribe) {\n this.closed = false;\n this._parentOrParents = null;\n this._subscriptions = null;\n if (unsubscribe) {\n this._ctorUnsubscribe = true;\n this._unsubscribe = unsubscribe;\n }\n }\n Subscription.prototype.unsubscribe = function () {\n var errors;\n if (this.closed) {\n return;\n }\n var _a = this, _parentOrParents = _a._parentOrParents, _ctorUnsubscribe = _a._ctorUnsubscribe, _unsubscribe = _a._unsubscribe, _subscriptions = _a._subscriptions;\n this.closed = true;\n this._parentOrParents = null;\n this._subscriptions = null;\n if (_parentOrParents instanceof Subscription) {\n _parentOrParents.remove(this);\n }\n else if (_parentOrParents !== null) {\n for (var index = 0; index < _parentOrParents.length; ++index) {\n var parent_1 = _parentOrParents[index];\n parent_1.remove(this);\n }\n }\n if (isFunction(_unsubscribe)) {\n if (_ctorUnsubscribe) {\n this._unsubscribe = undefined;\n }\n try {\n _unsubscribe.call(this);\n }\n catch (e) {\n errors = e instanceof UnsubscriptionError ? flattenUnsubscriptionErrors(e.errors) : [e];\n }\n }\n if (isArray(_subscriptions)) {\n var index = -1;\n var len = _subscriptions.length;\n while (++index < len) {\n var sub = _subscriptions[index];\n if (isObject(sub)) {\n try {\n sub.unsubscribe();\n }\n catch (e) {\n errors = errors || [];\n if (e instanceof UnsubscriptionError) {\n errors = errors.concat(flattenUnsubscriptionErrors(e.errors));\n }\n else {\n errors.push(e);\n }\n }\n }\n }\n }\n if (errors) {\n throw new UnsubscriptionError(errors);\n }\n };\n Subscription.prototype.add = function (teardown) {\n var subscription = teardown;\n if (!teardown) {\n return Subscription.EMPTY;\n }\n switch (typeof teardown) {\n case 'function':\n subscription = new Subscription(teardown);\n case 'object':\n if (subscription === this || subscription.closed || typeof subscription.unsubscribe !== 'function') {\n return subscription;\n }\n else if (this.closed) {\n subscription.unsubscribe();\n return subscription;\n }\n else if (!(subscription instanceof Subscription)) {\n var tmp = subscription;\n subscription = new Subscription();\n subscription._subscriptions = [tmp];\n }\n break;\n default: {\n throw new Error('unrecognized teardown ' + teardown + ' added to Subscription.');\n }\n }\n var _parentOrParents = subscription._parentOrParents;\n if (_parentOrParents === null) {\n subscription._parentOrParents = this;\n }\n else if (_parentOrParents instanceof Subscription) {\n if (_parentOrParents === this) {\n return subscription;\n }\n subscription._parentOrParents = [_parentOrParents, this];\n }\n else if (_parentOrParents.indexOf(this) === -1) {\n _parentOrParents.push(this);\n }\n else {\n return subscription;\n }\n var subscriptions = this._subscriptions;\n if (subscriptions === null) {\n this._subscriptions = [subscription];\n }\n else {\n subscriptions.push(subscription);\n }\n return subscription;\n };\n Subscription.prototype.remove = function (subscription) {\n var subscriptions = this._subscriptions;\n if (subscriptions) {\n var subscriptionIndex = subscriptions.indexOf(subscription);\n if (subscriptionIndex !== -1) {\n subscriptions.splice(subscriptionIndex, 1);\n }\n }\n };\n Subscription.EMPTY = (function (empty) {\n empty.closed = true;\n return empty;\n }(new Subscription()));\n return Subscription;\n}());\nexport { Subscription };\nfunction flattenUnsubscriptionErrors(errors) {\n return errors.reduce(function (errs, err) { return errs.concat((err instanceof UnsubscriptionError) ? err.errors : err); }, []);\n}\n//# sourceMappingURL=Subscription.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nvar _enable_super_gross_mode_that_will_cause_bad_things = false;\nexport var config = {\n Promise: undefined,\n set useDeprecatedSynchronousErrorHandling(value) {\n if (value) {\n var error = /*@__PURE__*/ new Error();\n /*@__PURE__*/ console.warn('DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \\n' + error.stack);\n }\n else if (_enable_super_gross_mode_that_will_cause_bad_things) {\n /*@__PURE__*/ console.log('RxJS: Back to a better error behavior. Thank you. <3');\n }\n _enable_super_gross_mode_that_will_cause_bad_things = value;\n },\n get useDeprecatedSynchronousErrorHandling() {\n return _enable_super_gross_mode_that_will_cause_bad_things;\n },\n};\n//# sourceMappingURL=config.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_Observable,_util_subscribeTo PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from './Subscriber';\nimport { Observable } from './Observable';\nimport { subscribeTo } from './util/subscribeTo';\nvar SimpleInnerSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SimpleInnerSubscriber, _super);\n function SimpleInnerSubscriber(parent) {\n var _this = _super.call(this) || this;\n _this.parent = parent;\n return _this;\n }\n SimpleInnerSubscriber.prototype._next = function (value) {\n this.parent.notifyNext(value);\n };\n SimpleInnerSubscriber.prototype._error = function (error) {\n this.parent.notifyError(error);\n this.unsubscribe();\n };\n SimpleInnerSubscriber.prototype._complete = function () {\n this.parent.notifyComplete();\n this.unsubscribe();\n };\n return SimpleInnerSubscriber;\n}(Subscriber));\nexport { SimpleInnerSubscriber };\nvar ComplexInnerSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ComplexInnerSubscriber, _super);\n function ComplexInnerSubscriber(parent, outerValue, outerIndex) {\n var _this = _super.call(this) || this;\n _this.parent = parent;\n _this.outerValue = outerValue;\n _this.outerIndex = outerIndex;\n return _this;\n }\n ComplexInnerSubscriber.prototype._next = function (value) {\n this.parent.notifyNext(this.outerValue, value, this.outerIndex, this);\n };\n ComplexInnerSubscriber.prototype._error = function (error) {\n this.parent.notifyError(error);\n this.unsubscribe();\n };\n ComplexInnerSubscriber.prototype._complete = function () {\n this.parent.notifyComplete(this);\n this.unsubscribe();\n };\n return ComplexInnerSubscriber;\n}(Subscriber));\nexport { ComplexInnerSubscriber };\nvar SimpleOuterSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SimpleOuterSubscriber, _super);\n function SimpleOuterSubscriber() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n SimpleOuterSubscriber.prototype.notifyNext = function (innerValue) {\n this.destination.next(innerValue);\n };\n SimpleOuterSubscriber.prototype.notifyError = function (err) {\n this.destination.error(err);\n };\n SimpleOuterSubscriber.prototype.notifyComplete = function () {\n this.destination.complete();\n };\n return SimpleOuterSubscriber;\n}(Subscriber));\nexport { SimpleOuterSubscriber };\nvar ComplexOuterSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ComplexOuterSubscriber, _super);\n function ComplexOuterSubscriber() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n ComplexOuterSubscriber.prototype.notifyNext = function (_outerValue, innerValue, _outerIndex, _innerSub) {\n this.destination.next(innerValue);\n };\n ComplexOuterSubscriber.prototype.notifyError = function (error) {\n this.destination.error(error);\n };\n ComplexOuterSubscriber.prototype.notifyComplete = function (_innerSub) {\n this.destination.complete();\n };\n return ComplexOuterSubscriber;\n}(Subscriber));\nexport { ComplexOuterSubscriber };\nexport function innerSubscribe(result, innerSubscriber) {\n if (innerSubscriber.closed) {\n return undefined;\n }\n if (result instanceof Observable) {\n return result.subscribe(innerSubscriber);\n }\n var subscription;\n try {\n subscription = subscribeTo(result)(innerSubscriber);\n }\n catch (error) {\n innerSubscriber.error(error);\n }\n return subscription;\n}\n//# sourceMappingURL=innerSubscribe.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_Observable,_Subscriber,_Subscription,_operators_refCount PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SubjectSubscriber } from '../Subject';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { refCount as higherOrderRefCount } from '../operators/refCount';\nvar ConnectableObservable = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ConnectableObservable, _super);\n function ConnectableObservable(source, subjectFactory) {\n var _this = _super.call(this) || this;\n _this.source = source;\n _this.subjectFactory = subjectFactory;\n _this._refCount = 0;\n _this._isComplete = false;\n return _this;\n }\n ConnectableObservable.prototype._subscribe = function (subscriber) {\n return this.getSubject().subscribe(subscriber);\n };\n ConnectableObservable.prototype.getSubject = function () {\n var subject = this._subject;\n if (!subject || subject.isStopped) {\n this._subject = this.subjectFactory();\n }\n return this._subject;\n };\n ConnectableObservable.prototype.connect = function () {\n var connection = this._connection;\n if (!connection) {\n this._isComplete = false;\n connection = this._connection = new Subscription();\n connection.add(this.source\n .subscribe(new ConnectableSubscriber(this.getSubject(), this)));\n if (connection.closed) {\n this._connection = null;\n connection = Subscription.EMPTY;\n }\n }\n return connection;\n };\n ConnectableObservable.prototype.refCount = function () {\n return higherOrderRefCount()(this);\n };\n return ConnectableObservable;\n}(Observable));\nexport { ConnectableObservable };\nexport var connectableObservableDescriptor = /*@__PURE__*/ (function () {\n var connectableProto = ConnectableObservable.prototype;\n return {\n operator: { value: null },\n _refCount: { value: 0, writable: true },\n _subject: { value: null, writable: true },\n _connection: { value: null, writable: true },\n _subscribe: { value: connectableProto._subscribe },\n _isComplete: { value: connectableProto._isComplete, writable: true },\n getSubject: { value: connectableProto.getSubject },\n connect: { value: connectableProto.connect },\n refCount: { value: connectableProto.refCount }\n };\n})();\nvar ConnectableSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ConnectableSubscriber, _super);\n function ConnectableSubscriber(destination, connectable) {\n var _this = _super.call(this, destination) || this;\n _this.connectable = connectable;\n return _this;\n }\n ConnectableSubscriber.prototype._error = function (err) {\n this._unsubscribe();\n _super.prototype._error.call(this, err);\n };\n ConnectableSubscriber.prototype._complete = function () {\n this.connectable._isComplete = true;\n this._unsubscribe();\n _super.prototype._complete.call(this);\n };\n ConnectableSubscriber.prototype._unsubscribe = function () {\n var connectable = this.connectable;\n if (connectable) {\n this.connectable = null;\n var connection = connectable._connection;\n connectable._refCount = 0;\n connectable._subject = null;\n connectable._connection = null;\n if (connection) {\n connection.unsubscribe();\n }\n }\n };\n return ConnectableSubscriber;\n}(SubjectSubscriber));\nvar RefCountOperator = /*@__PURE__*/ (function () {\n function RefCountOperator(connectable) {\n this.connectable = connectable;\n }\n RefCountOperator.prototype.call = function (subscriber, source) {\n var connectable = this.connectable;\n connectable._refCount++;\n var refCounter = new RefCountSubscriber(subscriber, connectable);\n var subscription = source.subscribe(refCounter);\n if (!refCounter.closed) {\n refCounter.connection = connectable.connect();\n }\n return subscription;\n };\n return RefCountOperator;\n}());\nvar RefCountSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(RefCountSubscriber, _super);\n function RefCountSubscriber(destination, connectable) {\n var _this = _super.call(this, destination) || this;\n _this.connectable = connectable;\n return _this;\n }\n RefCountSubscriber.prototype._unsubscribe = function () {\n var connectable = this.connectable;\n if (!connectable) {\n this.connection = null;\n return;\n }\n this.connectable = null;\n var refCount = connectable._refCount;\n if (refCount <= 0) {\n this.connection = null;\n return;\n }\n connectable._refCount = refCount - 1;\n if (refCount > 1) {\n this.connection = null;\n return;\n }\n var connection = this.connection;\n var sharedConnection = connectable._connection;\n this.connection = null;\n if (sharedConnection && (!connection || sharedConnection === connection)) {\n sharedConnection.unsubscribe();\n }\n };\n return RefCountSubscriber;\n}(Subscriber));\n//# sourceMappingURL=ConnectableObservable.js.map\n","/** PURE_IMPORTS_START tslib,_util_isScheduler,_util_isArray,_OuterSubscriber,_util_subscribeToResult,_fromArray PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { isScheduler } from '../util/isScheduler';\nimport { isArray } from '../util/isArray';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { fromArray } from './fromArray';\nvar NONE = {};\nexport function combineLatest() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n var resultSelector = undefined;\n var scheduler = undefined;\n if (isScheduler(observables[observables.length - 1])) {\n scheduler = observables.pop();\n }\n if (typeof observables[observables.length - 1] === 'function') {\n resultSelector = observables.pop();\n }\n if (observables.length === 1 && isArray(observables[0])) {\n observables = observables[0];\n }\n return fromArray(observables, scheduler).lift(new CombineLatestOperator(resultSelector));\n}\nvar CombineLatestOperator = /*@__PURE__*/ (function () {\n function CombineLatestOperator(resultSelector) {\n this.resultSelector = resultSelector;\n }\n CombineLatestOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new CombineLatestSubscriber(subscriber, this.resultSelector));\n };\n return CombineLatestOperator;\n}());\nexport { CombineLatestOperator };\nvar CombineLatestSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(CombineLatestSubscriber, _super);\n function CombineLatestSubscriber(destination, resultSelector) {\n var _this = _super.call(this, destination) || this;\n _this.resultSelector = resultSelector;\n _this.active = 0;\n _this.values = [];\n _this.observables = [];\n return _this;\n }\n CombineLatestSubscriber.prototype._next = function (observable) {\n this.values.push(NONE);\n this.observables.push(observable);\n };\n CombineLatestSubscriber.prototype._complete = function () {\n var observables = this.observables;\n var len = observables.length;\n if (len === 0) {\n this.destination.complete();\n }\n else {\n this.active = len;\n this.toRespond = len;\n for (var i = 0; i < len; i++) {\n var observable = observables[i];\n this.add(subscribeToResult(this, observable, undefined, i));\n }\n }\n };\n CombineLatestSubscriber.prototype.notifyComplete = function (unused) {\n if ((this.active -= 1) === 0) {\n this.destination.complete();\n }\n };\n CombineLatestSubscriber.prototype.notifyNext = function (_outerValue, innerValue, outerIndex) {\n var values = this.values;\n var oldVal = values[outerIndex];\n var toRespond = !this.toRespond\n ? 0\n : oldVal === NONE ? --this.toRespond : this.toRespond;\n values[outerIndex] = innerValue;\n if (toRespond === 0) {\n if (this.resultSelector) {\n this._tryResultSelector(values);\n }\n else {\n this.destination.next(values.slice());\n }\n }\n };\n CombineLatestSubscriber.prototype._tryResultSelector = function (values) {\n var result;\n try {\n result = this.resultSelector.apply(this, values);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(result);\n };\n return CombineLatestSubscriber;\n}(OuterSubscriber));\nexport { CombineLatestSubscriber };\n//# sourceMappingURL=combineLatest.js.map\n","/** PURE_IMPORTS_START _of,_operators_concatAll PURE_IMPORTS_END */\nimport { of } from './of';\nimport { concatAll } from '../operators/concatAll';\nexport function concat() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n return concatAll()(of.apply(void 0, observables));\n}\n//# sourceMappingURL=concat.js.map\n","/** PURE_IMPORTS_START _Observable,_from,_empty PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { from } from './from';\nimport { empty } from './empty';\nexport function defer(observableFactory) {\n return new Observable(function (subscriber) {\n var input;\n try {\n input = observableFactory();\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n var source = input ? from(input) : empty();\n return source.subscribe(subscriber);\n });\n}\n//# sourceMappingURL=defer.js.map\n","/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nexport var EMPTY = /*@__PURE__*/ new Observable(function (subscriber) { return subscriber.complete(); });\nexport function empty(scheduler) {\n return scheduler ? emptyScheduled(scheduler) : EMPTY;\n}\nfunction emptyScheduled(scheduler) {\n return new Observable(function (subscriber) { return scheduler.schedule(function () { return subscriber.complete(); }); });\n}\n//# sourceMappingURL=empty.js.map\n","/** PURE_IMPORTS_START _Observable,_util_subscribeTo,_scheduled_scheduled PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { subscribeTo } from '../util/subscribeTo';\nimport { scheduled } from '../scheduled/scheduled';\nexport function from(input, scheduler) {\n if (!scheduler) {\n if (input instanceof Observable) {\n return input;\n }\n return new Observable(subscribeTo(input));\n }\n else {\n return scheduled(input, scheduler);\n }\n}\n//# sourceMappingURL=from.js.map\n","/** PURE_IMPORTS_START _Observable,_util_subscribeToArray,_scheduled_scheduleArray PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { subscribeToArray } from '../util/subscribeToArray';\nimport { scheduleArray } from '../scheduled/scheduleArray';\nexport function fromArray(input, scheduler) {\n if (!scheduler) {\n return new Observable(subscribeToArray(input));\n }\n else {\n return scheduleArray(input, scheduler);\n }\n}\n//# sourceMappingURL=fromArray.js.map\n","/** PURE_IMPORTS_START _Observable,_util_isScheduler,_operators_mergeAll,_fromArray PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { isScheduler } from '../util/isScheduler';\nimport { mergeAll } from '../operators/mergeAll';\nimport { fromArray } from './fromArray';\nexport function merge() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n var concurrent = Number.POSITIVE_INFINITY;\n var scheduler = null;\n var last = observables[observables.length - 1];\n if (isScheduler(last)) {\n scheduler = observables.pop();\n if (observables.length > 1 && typeof observables[observables.length - 1] === 'number') {\n concurrent = observables.pop();\n }\n }\n else if (typeof last === 'number') {\n concurrent = observables.pop();\n }\n if (scheduler === null && observables.length === 1 && observables[0] instanceof Observable) {\n return observables[0];\n }\n return mergeAll(concurrent)(fromArray(observables, scheduler));\n}\n//# sourceMappingURL=merge.js.map\n","/** PURE_IMPORTS_START _util_isScheduler,_fromArray,_scheduled_scheduleArray PURE_IMPORTS_END */\nimport { isScheduler } from '../util/isScheduler';\nimport { fromArray } from './fromArray';\nimport { scheduleArray } from '../scheduled/scheduleArray';\nexport function of() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var scheduler = args[args.length - 1];\n if (isScheduler(scheduler)) {\n args.pop();\n return scheduleArray(args, scheduler);\n }\n else {\n return fromArray(args);\n }\n}\n//# sourceMappingURL=of.js.map\n","/** PURE_IMPORTS_START tslib,_util_isArray,_fromArray,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { isArray } from '../util/isArray';\nimport { fromArray } from './fromArray';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nexport function race() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n if (observables.length === 1) {\n if (isArray(observables[0])) {\n observables = observables[0];\n }\n else {\n return observables[0];\n }\n }\n return fromArray(observables, undefined).lift(new RaceOperator());\n}\nvar RaceOperator = /*@__PURE__*/ (function () {\n function RaceOperator() {\n }\n RaceOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new RaceSubscriber(subscriber));\n };\n return RaceOperator;\n}());\nexport { RaceOperator };\nvar RaceSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(RaceSubscriber, _super);\n function RaceSubscriber(destination) {\n var _this = _super.call(this, destination) || this;\n _this.hasFirst = false;\n _this.observables = [];\n _this.subscriptions = [];\n return _this;\n }\n RaceSubscriber.prototype._next = function (observable) {\n this.observables.push(observable);\n };\n RaceSubscriber.prototype._complete = function () {\n var observables = this.observables;\n var len = observables.length;\n if (len === 0) {\n this.destination.complete();\n }\n else {\n for (var i = 0; i < len && !this.hasFirst; i++) {\n var observable = observables[i];\n var subscription = subscribeToResult(this, observable, undefined, i);\n if (this.subscriptions) {\n this.subscriptions.push(subscription);\n }\n this.add(subscription);\n }\n this.observables = null;\n }\n };\n RaceSubscriber.prototype.notifyNext = function (_outerValue, innerValue, outerIndex) {\n if (!this.hasFirst) {\n this.hasFirst = true;\n for (var i = 0; i < this.subscriptions.length; i++) {\n if (i !== outerIndex) {\n var subscription = this.subscriptions[i];\n subscription.unsubscribe();\n this.remove(subscription);\n }\n }\n this.subscriptions = null;\n }\n this.destination.next(innerValue);\n };\n return RaceSubscriber;\n}(OuterSubscriber));\nexport { RaceSubscriber };\n//# sourceMappingURL=race.js.map\n","/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nexport function throwError(error, scheduler) {\n if (!scheduler) {\n return new Observable(function (subscriber) { return subscriber.error(error); });\n }\n else {\n return new Observable(function (subscriber) { return scheduler.schedule(dispatch, 0, { error: error, subscriber: subscriber }); });\n }\n}\nfunction dispatch(_a) {\n var error = _a.error, subscriber = _a.subscriber;\n subscriber.error(error);\n}\n//# sourceMappingURL=throwError.js.map\n","/** PURE_IMPORTS_START _Observable,_scheduler_async,_util_isNumeric,_util_isScheduler PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { async } from '../scheduler/async';\nimport { isNumeric } from '../util/isNumeric';\nimport { isScheduler } from '../util/isScheduler';\nexport function timer(dueTime, periodOrScheduler, scheduler) {\n if (dueTime === void 0) {\n dueTime = 0;\n }\n var period = -1;\n if (isNumeric(periodOrScheduler)) {\n period = Number(periodOrScheduler) < 1 && 1 || Number(periodOrScheduler);\n }\n else if (isScheduler(periodOrScheduler)) {\n scheduler = periodOrScheduler;\n }\n if (!isScheduler(scheduler)) {\n scheduler = async;\n }\n return new Observable(function (subscriber) {\n var due = isNumeric(dueTime)\n ? dueTime\n : (+dueTime - scheduler.now());\n return scheduler.schedule(dispatch, due, {\n index: 0, period: period, subscriber: subscriber\n });\n });\n}\nfunction dispatch(state) {\n var index = state.index, period = state.period, subscriber = state.subscriber;\n subscriber.next(index);\n if (subscriber.closed) {\n return;\n }\n else if (period === -1) {\n return subscriber.complete();\n }\n state.index = index + 1;\n this.schedule(state, period);\n}\n//# sourceMappingURL=timer.js.map\n","/** PURE_IMPORTS_START tslib,_fromArray,_util_isArray,_Subscriber,_.._internal_symbol_iterator,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { fromArray } from './fromArray';\nimport { isArray } from '../util/isArray';\nimport { Subscriber } from '../Subscriber';\nimport { iterator as Symbol_iterator } from '../../internal/symbol/iterator';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function zip() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n var resultSelector = observables[observables.length - 1];\n if (typeof resultSelector === 'function') {\n observables.pop();\n }\n return fromArray(observables, undefined).lift(new ZipOperator(resultSelector));\n}\nvar ZipOperator = /*@__PURE__*/ (function () {\n function ZipOperator(resultSelector) {\n this.resultSelector = resultSelector;\n }\n ZipOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new ZipSubscriber(subscriber, this.resultSelector));\n };\n return ZipOperator;\n}());\nexport { ZipOperator };\nvar ZipSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ZipSubscriber, _super);\n function ZipSubscriber(destination, resultSelector, values) {\n if (values === void 0) {\n values = Object.create(null);\n }\n var _this = _super.call(this, destination) || this;\n _this.resultSelector = resultSelector;\n _this.iterators = [];\n _this.active = 0;\n _this.resultSelector = (typeof resultSelector === 'function') ? resultSelector : undefined;\n return _this;\n }\n ZipSubscriber.prototype._next = function (value) {\n var iterators = this.iterators;\n if (isArray(value)) {\n iterators.push(new StaticArrayIterator(value));\n }\n else if (typeof value[Symbol_iterator] === 'function') {\n iterators.push(new StaticIterator(value[Symbol_iterator]()));\n }\n else {\n iterators.push(new ZipBufferIterator(this.destination, this, value));\n }\n };\n ZipSubscriber.prototype._complete = function () {\n var iterators = this.iterators;\n var len = iterators.length;\n this.unsubscribe();\n if (len === 0) {\n this.destination.complete();\n return;\n }\n this.active = len;\n for (var i = 0; i < len; i++) {\n var iterator = iterators[i];\n if (iterator.stillUnsubscribed) {\n var destination = this.destination;\n destination.add(iterator.subscribe());\n }\n else {\n this.active--;\n }\n }\n };\n ZipSubscriber.prototype.notifyInactive = function () {\n this.active--;\n if (this.active === 0) {\n this.destination.complete();\n }\n };\n ZipSubscriber.prototype.checkIterators = function () {\n var iterators = this.iterators;\n var len = iterators.length;\n var destination = this.destination;\n for (var i = 0; i < len; i++) {\n var iterator = iterators[i];\n if (typeof iterator.hasValue === 'function' && !iterator.hasValue()) {\n return;\n }\n }\n var shouldComplete = false;\n var args = [];\n for (var i = 0; i < len; i++) {\n var iterator = iterators[i];\n var result = iterator.next();\n if (iterator.hasCompleted()) {\n shouldComplete = true;\n }\n if (result.done) {\n destination.complete();\n return;\n }\n args.push(result.value);\n }\n if (this.resultSelector) {\n this._tryresultSelector(args);\n }\n else {\n destination.next(args);\n }\n if (shouldComplete) {\n destination.complete();\n }\n };\n ZipSubscriber.prototype._tryresultSelector = function (args) {\n var result;\n try {\n result = this.resultSelector.apply(this, args);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(result);\n };\n return ZipSubscriber;\n}(Subscriber));\nexport { ZipSubscriber };\nvar StaticIterator = /*@__PURE__*/ (function () {\n function StaticIterator(iterator) {\n this.iterator = iterator;\n this.nextResult = iterator.next();\n }\n StaticIterator.prototype.hasValue = function () {\n return true;\n };\n StaticIterator.prototype.next = function () {\n var result = this.nextResult;\n this.nextResult = this.iterator.next();\n return result;\n };\n StaticIterator.prototype.hasCompleted = function () {\n var nextResult = this.nextResult;\n return Boolean(nextResult && nextResult.done);\n };\n return StaticIterator;\n}());\nvar StaticArrayIterator = /*@__PURE__*/ (function () {\n function StaticArrayIterator(array) {\n this.array = array;\n this.index = 0;\n this.length = 0;\n this.length = array.length;\n }\n StaticArrayIterator.prototype[Symbol_iterator] = function () {\n return this;\n };\n StaticArrayIterator.prototype.next = function (value) {\n var i = this.index++;\n var array = this.array;\n return i < this.length ? { value: array[i], done: false } : { value: null, done: true };\n };\n StaticArrayIterator.prototype.hasValue = function () {\n return this.array.length > this.index;\n };\n StaticArrayIterator.prototype.hasCompleted = function () {\n return this.array.length === this.index;\n };\n return StaticArrayIterator;\n}());\nvar ZipBufferIterator = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ZipBufferIterator, _super);\n function ZipBufferIterator(destination, parent, observable) {\n var _this = _super.call(this, destination) || this;\n _this.parent = parent;\n _this.observable = observable;\n _this.stillUnsubscribed = true;\n _this.buffer = [];\n _this.isComplete = false;\n return _this;\n }\n ZipBufferIterator.prototype[Symbol_iterator] = function () {\n return this;\n };\n ZipBufferIterator.prototype.next = function () {\n var buffer = this.buffer;\n if (buffer.length === 0 && this.isComplete) {\n return { value: null, done: true };\n }\n else {\n return { value: buffer.shift(), done: false };\n }\n };\n ZipBufferIterator.prototype.hasValue = function () {\n return this.buffer.length > 0;\n };\n ZipBufferIterator.prototype.hasCompleted = function () {\n return this.buffer.length === 0 && this.isComplete;\n };\n ZipBufferIterator.prototype.notifyComplete = function () {\n if (this.buffer.length > 0) {\n this.isComplete = true;\n this.parent.notifyInactive();\n }\n else {\n this.destination.complete();\n }\n };\n ZipBufferIterator.prototype.notifyNext = function (innerValue) {\n this.buffer.push(innerValue);\n this.parent.checkIterators();\n };\n ZipBufferIterator.prototype.subscribe = function () {\n return innerSubscribe(this.observable, new SimpleInnerSubscriber(this));\n };\n return ZipBufferIterator;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=zip.js.map\n","/** PURE_IMPORTS_START _mergeAll PURE_IMPORTS_END */\nimport { mergeAll } from './mergeAll';\nexport function concatAll() {\n return mergeAll(1);\n}\n//# sourceMappingURL=concatAll.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function filter(predicate, thisArg) {\n return function filterOperatorFunction(source) {\n return source.lift(new FilterOperator(predicate, thisArg));\n };\n}\nvar FilterOperator = /*@__PURE__*/ (function () {\n function FilterOperator(predicate, thisArg) {\n this.predicate = predicate;\n this.thisArg = thisArg;\n }\n FilterOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new FilterSubscriber(subscriber, this.predicate, this.thisArg));\n };\n return FilterOperator;\n}());\nvar FilterSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(FilterSubscriber, _super);\n function FilterSubscriber(destination, predicate, thisArg) {\n var _this = _super.call(this, destination) || this;\n _this.predicate = predicate;\n _this.thisArg = thisArg;\n _this.count = 0;\n return _this;\n }\n FilterSubscriber.prototype._next = function (value) {\n var result;\n try {\n result = this.predicate.call(this.thisArg, value, this.count++);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n if (result) {\n this.destination.next(value);\n }\n };\n return FilterSubscriber;\n}(Subscriber));\n//# sourceMappingURL=filter.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_Subscription,_Observable,_Subject PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { Observable } from '../Observable';\nimport { Subject } from '../Subject';\nexport function groupBy(keySelector, elementSelector, durationSelector, subjectSelector) {\n return function (source) {\n return source.lift(new GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector));\n };\n}\nvar GroupByOperator = /*@__PURE__*/ (function () {\n function GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector) {\n this.keySelector = keySelector;\n this.elementSelector = elementSelector;\n this.durationSelector = durationSelector;\n this.subjectSelector = subjectSelector;\n }\n GroupByOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new GroupBySubscriber(subscriber, this.keySelector, this.elementSelector, this.durationSelector, this.subjectSelector));\n };\n return GroupByOperator;\n}());\nvar GroupBySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(GroupBySubscriber, _super);\n function GroupBySubscriber(destination, keySelector, elementSelector, durationSelector, subjectSelector) {\n var _this = _super.call(this, destination) || this;\n _this.keySelector = keySelector;\n _this.elementSelector = elementSelector;\n _this.durationSelector = durationSelector;\n _this.subjectSelector = subjectSelector;\n _this.groups = null;\n _this.attemptedToUnsubscribe = false;\n _this.count = 0;\n return _this;\n }\n GroupBySubscriber.prototype._next = function (value) {\n var key;\n try {\n key = this.keySelector(value);\n }\n catch (err) {\n this.error(err);\n return;\n }\n this._group(value, key);\n };\n GroupBySubscriber.prototype._group = function (value, key) {\n var groups = this.groups;\n if (!groups) {\n groups = this.groups = new Map();\n }\n var group = groups.get(key);\n var element;\n if (this.elementSelector) {\n try {\n element = this.elementSelector(value);\n }\n catch (err) {\n this.error(err);\n }\n }\n else {\n element = value;\n }\n if (!group) {\n group = (this.subjectSelector ? this.subjectSelector() : new Subject());\n groups.set(key, group);\n var groupedObservable = new GroupedObservable(key, group, this);\n this.destination.next(groupedObservable);\n if (this.durationSelector) {\n var duration = void 0;\n try {\n duration = this.durationSelector(new GroupedObservable(key, group));\n }\n catch (err) {\n this.error(err);\n return;\n }\n this.add(duration.subscribe(new GroupDurationSubscriber(key, group, this)));\n }\n }\n if (!group.closed) {\n group.next(element);\n }\n };\n GroupBySubscriber.prototype._error = function (err) {\n var groups = this.groups;\n if (groups) {\n groups.forEach(function (group, key) {\n group.error(err);\n });\n groups.clear();\n }\n this.destination.error(err);\n };\n GroupBySubscriber.prototype._complete = function () {\n var groups = this.groups;\n if (groups) {\n groups.forEach(function (group, key) {\n group.complete();\n });\n groups.clear();\n }\n this.destination.complete();\n };\n GroupBySubscriber.prototype.removeGroup = function (key) {\n this.groups.delete(key);\n };\n GroupBySubscriber.prototype.unsubscribe = function () {\n if (!this.closed) {\n this.attemptedToUnsubscribe = true;\n if (this.count === 0) {\n _super.prototype.unsubscribe.call(this);\n }\n }\n };\n return GroupBySubscriber;\n}(Subscriber));\nvar GroupDurationSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(GroupDurationSubscriber, _super);\n function GroupDurationSubscriber(key, group, parent) {\n var _this = _super.call(this, group) || this;\n _this.key = key;\n _this.group = group;\n _this.parent = parent;\n return _this;\n }\n GroupDurationSubscriber.prototype._next = function (value) {\n this.complete();\n };\n GroupDurationSubscriber.prototype._unsubscribe = function () {\n var _a = this, parent = _a.parent, key = _a.key;\n this.key = this.parent = null;\n if (parent) {\n parent.removeGroup(key);\n }\n };\n return GroupDurationSubscriber;\n}(Subscriber));\nvar GroupedObservable = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(GroupedObservable, _super);\n function GroupedObservable(key, groupSubject, refCountSubscription) {\n var _this = _super.call(this) || this;\n _this.key = key;\n _this.groupSubject = groupSubject;\n _this.refCountSubscription = refCountSubscription;\n return _this;\n }\n GroupedObservable.prototype._subscribe = function (subscriber) {\n var subscription = new Subscription();\n var _a = this, refCountSubscription = _a.refCountSubscription, groupSubject = _a.groupSubject;\n if (refCountSubscription && !refCountSubscription.closed) {\n subscription.add(new InnerRefCountSubscription(refCountSubscription));\n }\n subscription.add(groupSubject.subscribe(subscriber));\n return subscription;\n };\n return GroupedObservable;\n}(Observable));\nexport { GroupedObservable };\nvar InnerRefCountSubscription = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(InnerRefCountSubscription, _super);\n function InnerRefCountSubscription(parent) {\n var _this = _super.call(this) || this;\n _this.parent = parent;\n parent.count++;\n return _this;\n }\n InnerRefCountSubscription.prototype.unsubscribe = function () {\n var parent = this.parent;\n if (!parent.closed && !this.closed) {\n _super.prototype.unsubscribe.call(this);\n parent.count -= 1;\n if (parent.count === 0 && parent.attemptedToUnsubscribe) {\n parent.unsubscribe();\n }\n }\n };\n return InnerRefCountSubscription;\n}(Subscription));\n//# sourceMappingURL=groupBy.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function map(project, thisArg) {\n return function mapOperation(source) {\n if (typeof project !== 'function') {\n throw new TypeError('argument is not a function. Are you looking for `mapTo()`?');\n }\n return source.lift(new MapOperator(project, thisArg));\n };\n}\nvar MapOperator = /*@__PURE__*/ (function () {\n function MapOperator(project, thisArg) {\n this.project = project;\n this.thisArg = thisArg;\n }\n MapOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new MapSubscriber(subscriber, this.project, this.thisArg));\n };\n return MapOperator;\n}());\nexport { MapOperator };\nvar MapSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(MapSubscriber, _super);\n function MapSubscriber(destination, project, thisArg) {\n var _this = _super.call(this, destination) || this;\n _this.project = project;\n _this.count = 0;\n _this.thisArg = thisArg || _this;\n return _this;\n }\n MapSubscriber.prototype._next = function (value) {\n var result;\n try {\n result = this.project.call(this.thisArg, value, this.count++);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(result);\n };\n return MapSubscriber;\n}(Subscriber));\n//# sourceMappingURL=map.js.map\n","/** PURE_IMPORTS_START _mergeMap,_util_identity PURE_IMPORTS_END */\nimport { mergeMap } from './mergeMap';\nimport { identity } from '../util/identity';\nexport function mergeAll(concurrent) {\n if (concurrent === void 0) {\n concurrent = Number.POSITIVE_INFINITY;\n }\n return mergeMap(identity, concurrent);\n}\n//# sourceMappingURL=mergeAll.js.map\n","/** PURE_IMPORTS_START tslib,_map,_observable_from,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { map } from './map';\nimport { from } from '../observable/from';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function mergeMap(project, resultSelector, concurrent) {\n if (concurrent === void 0) {\n concurrent = Number.POSITIVE_INFINITY;\n }\n if (typeof resultSelector === 'function') {\n return function (source) { return source.pipe(mergeMap(function (a, i) { return from(project(a, i)).pipe(map(function (b, ii) { return resultSelector(a, b, i, ii); })); }, concurrent)); };\n }\n else if (typeof resultSelector === 'number') {\n concurrent = resultSelector;\n }\n return function (source) { return source.lift(new MergeMapOperator(project, concurrent)); };\n}\nvar MergeMapOperator = /*@__PURE__*/ (function () {\n function MergeMapOperator(project, concurrent) {\n if (concurrent === void 0) {\n concurrent = Number.POSITIVE_INFINITY;\n }\n this.project = project;\n this.concurrent = concurrent;\n }\n MergeMapOperator.prototype.call = function (observer, source) {\n return source.subscribe(new MergeMapSubscriber(observer, this.project, this.concurrent));\n };\n return MergeMapOperator;\n}());\nexport { MergeMapOperator };\nvar MergeMapSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(MergeMapSubscriber, _super);\n function MergeMapSubscriber(destination, project, concurrent) {\n if (concurrent === void 0) {\n concurrent = Number.POSITIVE_INFINITY;\n }\n var _this = _super.call(this, destination) || this;\n _this.project = project;\n _this.concurrent = concurrent;\n _this.hasCompleted = false;\n _this.buffer = [];\n _this.active = 0;\n _this.index = 0;\n return _this;\n }\n MergeMapSubscriber.prototype._next = function (value) {\n if (this.active < this.concurrent) {\n this._tryNext(value);\n }\n else {\n this.buffer.push(value);\n }\n };\n MergeMapSubscriber.prototype._tryNext = function (value) {\n var result;\n var index = this.index++;\n try {\n result = this.project(value, index);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.active++;\n this._innerSub(result);\n };\n MergeMapSubscriber.prototype._innerSub = function (ish) {\n var innerSubscriber = new SimpleInnerSubscriber(this);\n var destination = this.destination;\n destination.add(innerSubscriber);\n var innerSubscription = innerSubscribe(ish, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n destination.add(innerSubscription);\n }\n };\n MergeMapSubscriber.prototype._complete = function () {\n this.hasCompleted = true;\n if (this.active === 0 && this.buffer.length === 0) {\n this.destination.complete();\n }\n this.unsubscribe();\n };\n MergeMapSubscriber.prototype.notifyNext = function (innerValue) {\n this.destination.next(innerValue);\n };\n MergeMapSubscriber.prototype.notifyComplete = function () {\n var buffer = this.buffer;\n this.active--;\n if (buffer.length > 0) {\n this._next(buffer.shift());\n }\n else if (this.active === 0 && this.hasCompleted) {\n this.destination.complete();\n }\n };\n return MergeMapSubscriber;\n}(SimpleOuterSubscriber));\nexport { MergeMapSubscriber };\nexport var flatMap = mergeMap;\n//# sourceMappingURL=mergeMap.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_Notification PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { Notification } from '../Notification';\nexport function observeOn(scheduler, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n return function observeOnOperatorFunction(source) {\n return source.lift(new ObserveOnOperator(scheduler, delay));\n };\n}\nvar ObserveOnOperator = /*@__PURE__*/ (function () {\n function ObserveOnOperator(scheduler, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n this.scheduler = scheduler;\n this.delay = delay;\n }\n ObserveOnOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new ObserveOnSubscriber(subscriber, this.scheduler, this.delay));\n };\n return ObserveOnOperator;\n}());\nexport { ObserveOnOperator };\nvar ObserveOnSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ObserveOnSubscriber, _super);\n function ObserveOnSubscriber(destination, scheduler, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n var _this = _super.call(this, destination) || this;\n _this.scheduler = scheduler;\n _this.delay = delay;\n return _this;\n }\n ObserveOnSubscriber.dispatch = function (arg) {\n var notification = arg.notification, destination = arg.destination;\n notification.observe(destination);\n this.unsubscribe();\n };\n ObserveOnSubscriber.prototype.scheduleMessage = function (notification) {\n var destination = this.destination;\n destination.add(this.scheduler.schedule(ObserveOnSubscriber.dispatch, this.delay, new ObserveOnMessage(notification, this.destination)));\n };\n ObserveOnSubscriber.prototype._next = function (value) {\n this.scheduleMessage(Notification.createNext(value));\n };\n ObserveOnSubscriber.prototype._error = function (err) {\n this.scheduleMessage(Notification.createError(err));\n this.unsubscribe();\n };\n ObserveOnSubscriber.prototype._complete = function () {\n this.scheduleMessage(Notification.createComplete());\n this.unsubscribe();\n };\n return ObserveOnSubscriber;\n}(Subscriber));\nexport { ObserveOnSubscriber };\nvar ObserveOnMessage = /*@__PURE__*/ (function () {\n function ObserveOnMessage(notification, destination) {\n this.notification = notification;\n this.destination = destination;\n }\n return ObserveOnMessage;\n}());\nexport { ObserveOnMessage };\n//# sourceMappingURL=observeOn.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function refCount() {\n return function refCountOperatorFunction(source) {\n return source.lift(new RefCountOperator(source));\n };\n}\nvar RefCountOperator = /*@__PURE__*/ (function () {\n function RefCountOperator(connectable) {\n this.connectable = connectable;\n }\n RefCountOperator.prototype.call = function (subscriber, source) {\n var connectable = this.connectable;\n connectable._refCount++;\n var refCounter = new RefCountSubscriber(subscriber, connectable);\n var subscription = source.subscribe(refCounter);\n if (!refCounter.closed) {\n refCounter.connection = connectable.connect();\n }\n return subscription;\n };\n return RefCountOperator;\n}());\nvar RefCountSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(RefCountSubscriber, _super);\n function RefCountSubscriber(destination, connectable) {\n var _this = _super.call(this, destination) || this;\n _this.connectable = connectable;\n return _this;\n }\n RefCountSubscriber.prototype._unsubscribe = function () {\n var connectable = this.connectable;\n if (!connectable) {\n this.connection = null;\n return;\n }\n this.connectable = null;\n var refCount = connectable._refCount;\n if (refCount <= 0) {\n this.connection = null;\n return;\n }\n connectable._refCount = refCount - 1;\n if (refCount > 1) {\n this.connection = null;\n return;\n }\n var connection = this.connection;\n var sharedConnection = connectable._connection;\n this.connection = null;\n if (sharedConnection && (!connection || sharedConnection === connection)) {\n sharedConnection.unsubscribe();\n }\n };\n return RefCountSubscriber;\n}(Subscriber));\n//# sourceMappingURL=refCount.js.map\n","/** PURE_IMPORTS_START _Observable,_Subscription PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nexport function scheduleArray(input, scheduler) {\n return new Observable(function (subscriber) {\n var sub = new Subscription();\n var i = 0;\n sub.add(scheduler.schedule(function () {\n if (i === input.length) {\n subscriber.complete();\n return;\n }\n subscriber.next(input[i++]);\n if (!subscriber.closed) {\n sub.add(this.schedule());\n }\n }));\n return sub;\n });\n}\n//# sourceMappingURL=scheduleArray.js.map\n","/** PURE_IMPORTS_START _scheduleObservable,_schedulePromise,_scheduleArray,_scheduleIterable,_util_isInteropObservable,_util_isPromise,_util_isArrayLike,_util_isIterable PURE_IMPORTS_END */\nimport { scheduleObservable } from './scheduleObservable';\nimport { schedulePromise } from './schedulePromise';\nimport { scheduleArray } from './scheduleArray';\nimport { scheduleIterable } from './scheduleIterable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isPromise } from '../util/isPromise';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isIterable } from '../util/isIterable';\nexport function scheduled(input, scheduler) {\n if (input != null) {\n if (isInteropObservable(input)) {\n return scheduleObservable(input, scheduler);\n }\n else if (isPromise(input)) {\n return schedulePromise(input, scheduler);\n }\n else if (isArrayLike(input)) {\n return scheduleArray(input, scheduler);\n }\n else if (isIterable(input) || typeof input === 'string') {\n return scheduleIterable(input, scheduler);\n }\n }\n throw new TypeError((input !== null && typeof input || input) + ' is not observable');\n}\n//# sourceMappingURL=scheduled.js.map\n","/** PURE_IMPORTS_START _symbol_observable PURE_IMPORTS_END */\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport function isInteropObservable(input) {\n return input && typeof input[Symbol_observable] === 'function';\n}\n//# sourceMappingURL=isInteropObservable.js.map\n","/** PURE_IMPORTS_START _Observable,_Subscription,_symbol_observable PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport function scheduleObservable(input, scheduler) {\n return new Observable(function (subscriber) {\n var sub = new Subscription();\n sub.add(scheduler.schedule(function () {\n var observable = input[Symbol_observable]();\n sub.add(observable.subscribe({\n next: function (value) { sub.add(scheduler.schedule(function () { return subscriber.next(value); })); },\n error: function (err) { sub.add(scheduler.schedule(function () { return subscriber.error(err); })); },\n complete: function () { sub.add(scheduler.schedule(function () { return subscriber.complete(); })); },\n }));\n }));\n return sub;\n });\n}\n//# sourceMappingURL=scheduleObservable.js.map\n","/** PURE_IMPORTS_START _Observable,_Subscription PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nexport function schedulePromise(input, scheduler) {\n return new Observable(function (subscriber) {\n var sub = new Subscription();\n sub.add(scheduler.schedule(function () {\n return input.then(function (value) {\n sub.add(scheduler.schedule(function () {\n subscriber.next(value);\n sub.add(scheduler.schedule(function () { return subscriber.complete(); }));\n }));\n }, function (err) {\n sub.add(scheduler.schedule(function () { return subscriber.error(err); }));\n });\n }));\n return sub;\n });\n}\n//# sourceMappingURL=schedulePromise.js.map\n","/** PURE_IMPORTS_START _symbol_iterator PURE_IMPORTS_END */\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nexport function isIterable(input) {\n return input && typeof input[Symbol_iterator] === 'function';\n}\n//# sourceMappingURL=isIterable.js.map\n","/** PURE_IMPORTS_START _Observable,_Subscription,_symbol_iterator PURE_IMPORTS_END */\nimport { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nexport function scheduleIterable(input, scheduler) {\n if (!input) {\n throw new Error('Iterable cannot be null');\n }\n return new Observable(function (subscriber) {\n var sub = new Subscription();\n var iterator;\n sub.add(function () {\n if (iterator && typeof iterator.return === 'function') {\n iterator.return();\n }\n });\n sub.add(scheduler.schedule(function () {\n iterator = input[Symbol_iterator]();\n sub.add(scheduler.schedule(function () {\n if (subscriber.closed) {\n return;\n }\n var value;\n var done;\n try {\n var result = iterator.next();\n value = result.value;\n done = result.done;\n }\n catch (err) {\n subscriber.error(err);\n return;\n }\n if (done) {\n subscriber.complete();\n }\n else {\n subscriber.next(value);\n this.schedule();\n }\n }));\n }));\n return sub;\n });\n}\n//# sourceMappingURL=scheduleIterable.js.map\n","/** PURE_IMPORTS_START tslib,_Action PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Action } from './Action';\nvar AsyncAction = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AsyncAction, _super);\n function AsyncAction(scheduler, work) {\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n _this.pending = false;\n return _this;\n }\n AsyncAction.prototype.schedule = function (state, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if (this.closed) {\n return this;\n }\n this.state = state;\n var id = this.id;\n var scheduler = this.scheduler;\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, delay);\n }\n this.pending = true;\n this.delay = delay;\n this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);\n return this;\n };\n AsyncAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n return setInterval(scheduler.flush.bind(scheduler, this), delay);\n };\n AsyncAction.prototype.recycleAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if (delay !== null && this.delay === delay && this.pending === false) {\n return id;\n }\n clearInterval(id);\n return undefined;\n };\n AsyncAction.prototype.execute = function (state, delay) {\n if (this.closed) {\n return new Error('executing a cancelled action');\n }\n this.pending = false;\n var error = this._execute(state, delay);\n if (error) {\n return error;\n }\n else if (this.pending === false && this.id != null) {\n this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n }\n };\n AsyncAction.prototype._execute = function (state, delay) {\n var errored = false;\n var errorValue = undefined;\n try {\n this.work(state);\n }\n catch (e) {\n errored = true;\n errorValue = !!e && e || new Error(e);\n }\n if (errored) {\n this.unsubscribe();\n return errorValue;\n }\n };\n AsyncAction.prototype._unsubscribe = function () {\n var id = this.id;\n var scheduler = this.scheduler;\n var actions = scheduler.actions;\n var index = actions.indexOf(this);\n this.work = null;\n this.state = null;\n this.pending = false;\n this.scheduler = null;\n if (index !== -1) {\n actions.splice(index, 1);\n }\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, null);\n }\n this.delay = null;\n };\n return AsyncAction;\n}(Action));\nexport { AsyncAction };\n//# sourceMappingURL=AsyncAction.js.map\n","/** PURE_IMPORTS_START tslib,_Subscription PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscription } from '../Subscription';\nvar Action = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(Action, _super);\n function Action(scheduler, work) {\n return _super.call(this) || this;\n }\n Action.prototype.schedule = function (state, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n return this;\n };\n return Action;\n}(Subscription));\nexport { Action };\n//# sourceMappingURL=Action.js.map\n","/** PURE_IMPORTS_START tslib,_Scheduler PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Scheduler } from '../Scheduler';\nvar AsyncScheduler = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AsyncScheduler, _super);\n function AsyncScheduler(SchedulerAction, now) {\n if (now === void 0) {\n now = Scheduler.now;\n }\n var _this = _super.call(this, SchedulerAction, function () {\n if (AsyncScheduler.delegate && AsyncScheduler.delegate !== _this) {\n return AsyncScheduler.delegate.now();\n }\n else {\n return now();\n }\n }) || this;\n _this.actions = [];\n _this.active = false;\n _this.scheduled = undefined;\n return _this;\n }\n AsyncScheduler.prototype.schedule = function (work, delay, state) {\n if (delay === void 0) {\n delay = 0;\n }\n if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) {\n return AsyncScheduler.delegate.schedule(work, delay, state);\n }\n else {\n return _super.prototype.schedule.call(this, work, delay, state);\n }\n };\n AsyncScheduler.prototype.flush = function (action) {\n var actions = this.actions;\n if (this.active) {\n actions.push(action);\n return;\n }\n var error;\n this.active = true;\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while (action = actions.shift());\n this.active = false;\n if (error) {\n while (action = actions.shift()) {\n action.unsubscribe();\n }\n throw error;\n }\n };\n return AsyncScheduler;\n}(Scheduler));\nexport { AsyncScheduler };\n//# sourceMappingURL=AsyncScheduler.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nvar nextHandle = 1;\nvar RESOLVED = /*@__PURE__*/ (function () { return /*@__PURE__*/ Promise.resolve(); })();\nvar activeHandles = {};\nfunction findAndClearHandle(handle) {\n if (handle in activeHandles) {\n delete activeHandles[handle];\n return true;\n }\n return false;\n}\nexport var Immediate = {\n setImmediate: function (cb) {\n var handle = nextHandle++;\n activeHandles[handle] = true;\n RESOLVED.then(function () { return findAndClearHandle(handle) && cb(); });\n return handle;\n },\n clearImmediate: function (handle) {\n findAndClearHandle(handle);\n },\n};\nexport var TestTools = {\n pending: function () {\n return Object.keys(activeHandles).length;\n }\n};\n//# sourceMappingURL=Immediate.js.map\n","/** PURE_IMPORTS_START tslib,_util_Immediate,_AsyncAction PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Immediate } from '../util/Immediate';\nimport { AsyncAction } from './AsyncAction';\nvar AsapAction = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AsapAction, _super);\n function AsapAction(scheduler, work) {\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n return _this;\n }\n AsapAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if (delay !== null && delay > 0) {\n return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);\n }\n scheduler.actions.push(this);\n return scheduler.scheduled || (scheduler.scheduled = Immediate.setImmediate(scheduler.flush.bind(scheduler, null)));\n };\n AsapAction.prototype.recycleAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {\n return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);\n }\n if (scheduler.actions.length === 0) {\n Immediate.clearImmediate(id);\n scheduler.scheduled = undefined;\n }\n return undefined;\n };\n return AsapAction;\n}(AsyncAction));\nexport { AsapAction };\n//# sourceMappingURL=AsapAction.js.map\n","/** PURE_IMPORTS_START _AsapAction,_AsapScheduler PURE_IMPORTS_END */\nimport { AsapAction } from './AsapAction';\nimport { AsapScheduler } from './AsapScheduler';\nexport var asapScheduler = /*@__PURE__*/ new AsapScheduler(AsapAction);\nexport var asap = asapScheduler;\n//# sourceMappingURL=asap.js.map\n","/** PURE_IMPORTS_START tslib,_AsyncScheduler PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { AsyncScheduler } from './AsyncScheduler';\nvar AsapScheduler = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AsapScheduler, _super);\n function AsapScheduler() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n AsapScheduler.prototype.flush = function (action) {\n this.active = true;\n this.scheduled = undefined;\n var actions = this.actions;\n var error;\n var index = -1;\n var count = actions.length;\n action = action || actions.shift();\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while (++index < count && (action = actions.shift()));\n this.active = false;\n if (error) {\n while (++index < count && (action = actions.shift())) {\n action.unsubscribe();\n }\n throw error;\n }\n };\n return AsapScheduler;\n}(AsyncScheduler));\nexport { AsapScheduler };\n//# sourceMappingURL=AsapScheduler.js.map\n","/** PURE_IMPORTS_START _AsyncAction,_AsyncScheduler PURE_IMPORTS_END */\nimport { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\nexport var asyncScheduler = /*@__PURE__*/ new AsyncScheduler(AsyncAction);\nexport var async = asyncScheduler;\n//# sourceMappingURL=async.js.map\n","/** PURE_IMPORTS_START tslib,_AsyncAction PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { AsyncAction } from './AsyncAction';\nvar QueueAction = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(QueueAction, _super);\n function QueueAction(scheduler, work) {\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n return _this;\n }\n QueueAction.prototype.schedule = function (state, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if (delay > 0) {\n return _super.prototype.schedule.call(this, state, delay);\n }\n this.delay = delay;\n this.state = state;\n this.scheduler.flush(this);\n return this;\n };\n QueueAction.prototype.execute = function (state, delay) {\n return (delay > 0 || this.closed) ?\n _super.prototype.execute.call(this, state, delay) :\n this._execute(state, delay);\n };\n QueueAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {\n return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);\n }\n return scheduler.flush(this);\n };\n return QueueAction;\n}(AsyncAction));\nexport { QueueAction };\n//# sourceMappingURL=QueueAction.js.map\n","/** PURE_IMPORTS_START _QueueAction,_QueueScheduler PURE_IMPORTS_END */\nimport { QueueAction } from './QueueAction';\nimport { QueueScheduler } from './QueueScheduler';\nexport var queueScheduler = /*@__PURE__*/ new QueueScheduler(QueueAction);\nexport var queue = queueScheduler;\n//# sourceMappingURL=queue.js.map\n","/** PURE_IMPORTS_START tslib,_AsyncScheduler PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { AsyncScheduler } from './AsyncScheduler';\nvar QueueScheduler = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(QueueScheduler, _super);\n function QueueScheduler() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n return QueueScheduler;\n}(AsyncScheduler));\nexport { QueueScheduler };\n//# sourceMappingURL=QueueScheduler.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function getSymbolIterator() {\n if (typeof Symbol !== 'function' || !Symbol.iterator) {\n return '@@iterator';\n }\n return Symbol.iterator;\n}\nexport var iterator = /*@__PURE__*/ getSymbolIterator();\nexport var $$iterator = iterator;\n//# sourceMappingURL=iterator.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport var observable = /*@__PURE__*/ (function () { return typeof Symbol === 'function' && Symbol.observable || '@@observable'; })();\n//# sourceMappingURL=observable.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport var rxSubscriber = /*@__PURE__*/ (function () {\n return typeof Symbol === 'function'\n ? /*@__PURE__*/ Symbol('rxSubscriber')\n : '@@rxSubscriber_' + /*@__PURE__*/ Math.random();\n})();\nexport var $$rxSubscriber = rxSubscriber;\n//# sourceMappingURL=rxSubscriber.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nvar ArgumentOutOfRangeErrorImpl = /*@__PURE__*/ (function () {\n function ArgumentOutOfRangeErrorImpl() {\n Error.call(this);\n this.message = 'argument out of range';\n this.name = 'ArgumentOutOfRangeError';\n return this;\n }\n ArgumentOutOfRangeErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);\n return ArgumentOutOfRangeErrorImpl;\n})();\nexport var ArgumentOutOfRangeError = ArgumentOutOfRangeErrorImpl;\n//# sourceMappingURL=ArgumentOutOfRangeError.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nvar EmptyErrorImpl = /*@__PURE__*/ (function () {\n function EmptyErrorImpl() {\n Error.call(this);\n this.message = 'no elements in sequence';\n this.name = 'EmptyError';\n return this;\n }\n EmptyErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);\n return EmptyErrorImpl;\n})();\nexport var EmptyError = EmptyErrorImpl;\n//# sourceMappingURL=EmptyError.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nvar ObjectUnsubscribedErrorImpl = /*@__PURE__*/ (function () {\n function ObjectUnsubscribedErrorImpl() {\n Error.call(this);\n this.message = 'object unsubscribed';\n this.name = 'ObjectUnsubscribedError';\n return this;\n }\n ObjectUnsubscribedErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);\n return ObjectUnsubscribedErrorImpl;\n})();\nexport var ObjectUnsubscribedError = ObjectUnsubscribedErrorImpl;\n//# sourceMappingURL=ObjectUnsubscribedError.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nvar TimeoutErrorImpl = /*@__PURE__*/ (function () {\n function TimeoutErrorImpl() {\n Error.call(this);\n this.message = 'Timeout has occurred';\n this.name = 'TimeoutError';\n return this;\n }\n TimeoutErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);\n return TimeoutErrorImpl;\n})();\nexport var TimeoutError = TimeoutErrorImpl;\n//# sourceMappingURL=TimeoutError.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nvar UnsubscriptionErrorImpl = /*@__PURE__*/ (function () {\n function UnsubscriptionErrorImpl(errors) {\n Error.call(this);\n this.message = errors ?\n errors.length + \" errors occurred during unsubscription:\\n\" + errors.map(function (err, i) { return i + 1 + \") \" + err.toString(); }).join('\\n ') : '';\n this.name = 'UnsubscriptionError';\n this.errors = errors;\n return this;\n }\n UnsubscriptionErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);\n return UnsubscriptionErrorImpl;\n})();\nexport var UnsubscriptionError = UnsubscriptionErrorImpl;\n//# sourceMappingURL=UnsubscriptionError.js.map\n","/** PURE_IMPORTS_START _Subscriber PURE_IMPORTS_END */\nimport { Subscriber } from '../Subscriber';\nexport function canReportError(observer) {\n while (observer) {\n var _a = observer, closed_1 = _a.closed, destination = _a.destination, isStopped = _a.isStopped;\n if (closed_1 || isStopped) {\n return false;\n }\n else if (destination && destination instanceof Subscriber) {\n observer = destination;\n }\n else {\n observer = null;\n }\n }\n return true;\n}\n//# sourceMappingURL=canReportError.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function hostReportError(err) {\n setTimeout(function () { throw err; }, 0);\n}\n//# sourceMappingURL=hostReportError.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function identity(x) {\n return x;\n}\n//# sourceMappingURL=identity.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport var isArray = /*@__PURE__*/ (function () { return Array.isArray || (function (x) { return x && typeof x.length === 'number'; }); })();\n//# sourceMappingURL=isArray.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport var isArrayLike = (function (x) { return x && typeof x.length === 'number' && typeof x !== 'function'; });\n//# sourceMappingURL=isArrayLike.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function isFunction(x) {\n return typeof x === 'function';\n}\n//# sourceMappingURL=isFunction.js.map\n","/** PURE_IMPORTS_START _isArray PURE_IMPORTS_END */\nimport { isArray } from './isArray';\nexport function isNumeric(val) {\n return !isArray(val) && (val - parseFloat(val) + 1) >= 0;\n}\n//# sourceMappingURL=isNumeric.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function isObject(x) {\n return x !== null && typeof x === 'object';\n}\n//# sourceMappingURL=isObject.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function isPromise(value) {\n return !!value && typeof value.subscribe !== 'function' && typeof value.then === 'function';\n}\n//# sourceMappingURL=isPromise.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function isScheduler(value) {\n return value && typeof value.schedule === 'function';\n}\n//# sourceMappingURL=isScheduler.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function noop() { }\n//# sourceMappingURL=noop.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function not(pred, thisArg) {\n function notPred() {\n return !(notPred.pred.apply(notPred.thisArg, arguments));\n }\n notPred.pred = pred;\n notPred.thisArg = thisArg;\n return notPred;\n}\n//# sourceMappingURL=not.js.map\n","/** PURE_IMPORTS_START _identity PURE_IMPORTS_END */\nimport { identity } from './identity';\nexport function pipe() {\n var fns = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n fns[_i] = arguments[_i];\n }\n return pipeFromArray(fns);\n}\nexport function pipeFromArray(fns) {\n if (fns.length === 0) {\n return identity;\n }\n if (fns.length === 1) {\n return fns[0];\n }\n return function piped(input) {\n return fns.reduce(function (prev, fn) { return fn(prev); }, input);\n };\n}\n//# sourceMappingURL=pipe.js.map\n","/** PURE_IMPORTS_START _subscribeToArray,_subscribeToPromise,_subscribeToIterable,_subscribeToObservable,_isArrayLike,_isPromise,_isObject,_symbol_iterator,_symbol_observable PURE_IMPORTS_END */\nimport { subscribeToArray } from './subscribeToArray';\nimport { subscribeToPromise } from './subscribeToPromise';\nimport { subscribeToIterable } from './subscribeToIterable';\nimport { subscribeToObservable } from './subscribeToObservable';\nimport { isArrayLike } from './isArrayLike';\nimport { isPromise } from './isPromise';\nimport { isObject } from './isObject';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport var subscribeTo = function (result) {\n if (!!result && typeof result[Symbol_observable] === 'function') {\n return subscribeToObservable(result);\n }\n else if (isArrayLike(result)) {\n return subscribeToArray(result);\n }\n else if (isPromise(result)) {\n return subscribeToPromise(result);\n }\n else if (!!result && typeof result[Symbol_iterator] === 'function') {\n return subscribeToIterable(result);\n }\n else {\n var value = isObject(result) ? 'an invalid object' : \"'\" + result + \"'\";\n var msg = \"You provided \" + value + \" where a stream was expected.\"\n + ' You can provide an Observable, Promise, Array, or Iterable.';\n throw new TypeError(msg);\n }\n};\n//# sourceMappingURL=subscribeTo.js.map\n","/** PURE_IMPORTS_START _symbol_observable PURE_IMPORTS_END */\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport var subscribeToObservable = function (obj) {\n return function (subscriber) {\n var obs = obj[Symbol_observable]();\n if (typeof obs.subscribe !== 'function') {\n throw new TypeError('Provided object does not correctly implement Symbol.observable');\n }\n else {\n return obs.subscribe(subscriber);\n }\n };\n};\n//# sourceMappingURL=subscribeToObservable.js.map\n","/** PURE_IMPORTS_START _hostReportError PURE_IMPORTS_END */\nimport { hostReportError } from './hostReportError';\nexport var subscribeToPromise = function (promise) {\n return function (subscriber) {\n promise.then(function (value) {\n if (!subscriber.closed) {\n subscriber.next(value);\n subscriber.complete();\n }\n }, function (err) { return subscriber.error(err); })\n .then(null, hostReportError);\n return subscriber;\n };\n};\n//# sourceMappingURL=subscribeToPromise.js.map\n","/** PURE_IMPORTS_START _symbol_iterator PURE_IMPORTS_END */\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nexport var subscribeToIterable = function (iterable) {\n return function (subscriber) {\n var iterator = iterable[Symbol_iterator]();\n do {\n var item = void 0;\n try {\n item = iterator.next();\n }\n catch (err) {\n subscriber.error(err);\n return subscriber;\n }\n if (item.done) {\n subscriber.complete();\n break;\n }\n subscriber.next(item.value);\n if (subscriber.closed) {\n break;\n }\n } while (true);\n if (typeof iterator.return === 'function') {\n subscriber.add(function () {\n if (iterator.return) {\n iterator.return();\n }\n });\n }\n return subscriber;\n };\n};\n//# sourceMappingURL=subscribeToIterable.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport var subscribeToArray = function (array) {\n return function (subscriber) {\n for (var i = 0, len = array.length; i < len && !subscriber.closed; i++) {\n subscriber.next(array[i]);\n }\n subscriber.complete();\n };\n};\n//# sourceMappingURL=subscribeToArray.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from './Subscriber';\nvar InnerSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(InnerSubscriber, _super);\n function InnerSubscriber(parent, outerValue, outerIndex) {\n var _this = _super.call(this) || this;\n _this.parent = parent;\n _this.outerValue = outerValue;\n _this.outerIndex = outerIndex;\n _this.index = 0;\n return _this;\n }\n InnerSubscriber.prototype._next = function (value) {\n this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this);\n };\n InnerSubscriber.prototype._error = function (error) {\n this.parent.notifyError(error, this);\n this.unsubscribe();\n };\n InnerSubscriber.prototype._complete = function () {\n this.parent.notifyComplete(this);\n this.unsubscribe();\n };\n return InnerSubscriber;\n}(Subscriber));\nexport { InnerSubscriber };\n//# sourceMappingURL=InnerSubscriber.js.map\n","/** PURE_IMPORTS_START _InnerSubscriber,_subscribeTo,_Observable PURE_IMPORTS_END */\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeTo } from './subscribeTo';\nimport { Observable } from '../Observable';\nexport function subscribeToResult(outerSubscriber, result, outerValue, outerIndex, innerSubscriber) {\n if (innerSubscriber === void 0) {\n innerSubscriber = new InnerSubscriber(outerSubscriber, outerValue, outerIndex);\n }\n if (innerSubscriber.closed) {\n return undefined;\n }\n if (result instanceof Observable) {\n return result.subscribe(innerSubscriber);\n }\n return subscribeTo(result)(innerSubscriber);\n}\n//# sourceMappingURL=subscribeToResult.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function audit(durationSelector) {\n return function auditOperatorFunction(source) {\n return source.lift(new AuditOperator(durationSelector));\n };\n}\nvar AuditOperator = /*@__PURE__*/ (function () {\n function AuditOperator(durationSelector) {\n this.durationSelector = durationSelector;\n }\n AuditOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new AuditSubscriber(subscriber, this.durationSelector));\n };\n return AuditOperator;\n}());\nvar AuditSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(AuditSubscriber, _super);\n function AuditSubscriber(destination, durationSelector) {\n var _this = _super.call(this, destination) || this;\n _this.durationSelector = durationSelector;\n _this.hasValue = false;\n return _this;\n }\n AuditSubscriber.prototype._next = function (value) {\n this.value = value;\n this.hasValue = true;\n if (!this.throttled) {\n var duration = void 0;\n try {\n var durationSelector = this.durationSelector;\n duration = durationSelector(value);\n }\n catch (err) {\n return this.destination.error(err);\n }\n var innerSubscription = innerSubscribe(duration, new SimpleInnerSubscriber(this));\n if (!innerSubscription || innerSubscription.closed) {\n this.clearThrottle();\n }\n else {\n this.add(this.throttled = innerSubscription);\n }\n }\n };\n AuditSubscriber.prototype.clearThrottle = function () {\n var _a = this, value = _a.value, hasValue = _a.hasValue, throttled = _a.throttled;\n if (throttled) {\n this.remove(throttled);\n this.throttled = undefined;\n throttled.unsubscribe();\n }\n if (hasValue) {\n this.value = undefined;\n this.hasValue = false;\n this.destination.next(value);\n }\n };\n AuditSubscriber.prototype.notifyNext = function () {\n this.clearThrottle();\n };\n AuditSubscriber.prototype.notifyComplete = function () {\n this.clearThrottle();\n };\n return AuditSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=audit.js.map\n","/** PURE_IMPORTS_START _scheduler_async,_audit,_observable_timer PURE_IMPORTS_END */\nimport { async } from '../scheduler/async';\nimport { audit } from './audit';\nimport { timer } from '../observable/timer';\nexport function auditTime(duration, scheduler) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n return audit(function () { return timer(duration, scheduler); });\n}\n//# sourceMappingURL=auditTime.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function buffer(closingNotifier) {\n return function bufferOperatorFunction(source) {\n return source.lift(new BufferOperator(closingNotifier));\n };\n}\nvar BufferOperator = /*@__PURE__*/ (function () {\n function BufferOperator(closingNotifier) {\n this.closingNotifier = closingNotifier;\n }\n BufferOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new BufferSubscriber(subscriber, this.closingNotifier));\n };\n return BufferOperator;\n}());\nvar BufferSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(BufferSubscriber, _super);\n function BufferSubscriber(destination, closingNotifier) {\n var _this = _super.call(this, destination) || this;\n _this.buffer = [];\n _this.add(innerSubscribe(closingNotifier, new SimpleInnerSubscriber(_this)));\n return _this;\n }\n BufferSubscriber.prototype._next = function (value) {\n this.buffer.push(value);\n };\n BufferSubscriber.prototype.notifyNext = function () {\n var buffer = this.buffer;\n this.buffer = [];\n this.destination.next(buffer);\n };\n return BufferSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=buffer.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function bufferCount(bufferSize, startBufferEvery) {\n if (startBufferEvery === void 0) {\n startBufferEvery = null;\n }\n return function bufferCountOperatorFunction(source) {\n return source.lift(new BufferCountOperator(bufferSize, startBufferEvery));\n };\n}\nvar BufferCountOperator = /*@__PURE__*/ (function () {\n function BufferCountOperator(bufferSize, startBufferEvery) {\n this.bufferSize = bufferSize;\n this.startBufferEvery = startBufferEvery;\n if (!startBufferEvery || bufferSize === startBufferEvery) {\n this.subscriberClass = BufferCountSubscriber;\n }\n else {\n this.subscriberClass = BufferSkipCountSubscriber;\n }\n }\n BufferCountOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new this.subscriberClass(subscriber, this.bufferSize, this.startBufferEvery));\n };\n return BufferCountOperator;\n}());\nvar BufferCountSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(BufferCountSubscriber, _super);\n function BufferCountSubscriber(destination, bufferSize) {\n var _this = _super.call(this, destination) || this;\n _this.bufferSize = bufferSize;\n _this.buffer = [];\n return _this;\n }\n BufferCountSubscriber.prototype._next = function (value) {\n var buffer = this.buffer;\n buffer.push(value);\n if (buffer.length == this.bufferSize) {\n this.destination.next(buffer);\n this.buffer = [];\n }\n };\n BufferCountSubscriber.prototype._complete = function () {\n var buffer = this.buffer;\n if (buffer.length > 0) {\n this.destination.next(buffer);\n }\n _super.prototype._complete.call(this);\n };\n return BufferCountSubscriber;\n}(Subscriber));\nvar BufferSkipCountSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(BufferSkipCountSubscriber, _super);\n function BufferSkipCountSubscriber(destination, bufferSize, startBufferEvery) {\n var _this = _super.call(this, destination) || this;\n _this.bufferSize = bufferSize;\n _this.startBufferEvery = startBufferEvery;\n _this.buffers = [];\n _this.count = 0;\n return _this;\n }\n BufferSkipCountSubscriber.prototype._next = function (value) {\n var _a = this, bufferSize = _a.bufferSize, startBufferEvery = _a.startBufferEvery, buffers = _a.buffers, count = _a.count;\n this.count++;\n if (count % startBufferEvery === 0) {\n buffers.push([]);\n }\n for (var i = buffers.length; i--;) {\n var buffer = buffers[i];\n buffer.push(value);\n if (buffer.length === bufferSize) {\n buffers.splice(i, 1);\n this.destination.next(buffer);\n }\n }\n };\n BufferSkipCountSubscriber.prototype._complete = function () {\n var _a = this, buffers = _a.buffers, destination = _a.destination;\n while (buffers.length > 0) {\n var buffer = buffers.shift();\n if (buffer.length > 0) {\n destination.next(buffer);\n }\n }\n _super.prototype._complete.call(this);\n };\n return BufferSkipCountSubscriber;\n}(Subscriber));\n//# sourceMappingURL=bufferCount.js.map\n","/** PURE_IMPORTS_START tslib,_scheduler_async,_Subscriber,_util_isScheduler PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { async } from '../scheduler/async';\nimport { Subscriber } from '../Subscriber';\nimport { isScheduler } from '../util/isScheduler';\nexport function bufferTime(bufferTimeSpan) {\n var length = arguments.length;\n var scheduler = async;\n if (isScheduler(arguments[arguments.length - 1])) {\n scheduler = arguments[arguments.length - 1];\n length--;\n }\n var bufferCreationInterval = null;\n if (length >= 2) {\n bufferCreationInterval = arguments[1];\n }\n var maxBufferSize = Number.POSITIVE_INFINITY;\n if (length >= 3) {\n maxBufferSize = arguments[2];\n }\n return function bufferTimeOperatorFunction(source) {\n return source.lift(new BufferTimeOperator(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler));\n };\n}\nvar BufferTimeOperator = /*@__PURE__*/ (function () {\n function BufferTimeOperator(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) {\n this.bufferTimeSpan = bufferTimeSpan;\n this.bufferCreationInterval = bufferCreationInterval;\n this.maxBufferSize = maxBufferSize;\n this.scheduler = scheduler;\n }\n BufferTimeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new BufferTimeSubscriber(subscriber, this.bufferTimeSpan, this.bufferCreationInterval, this.maxBufferSize, this.scheduler));\n };\n return BufferTimeOperator;\n}());\nvar Context = /*@__PURE__*/ (function () {\n function Context() {\n this.buffer = [];\n }\n return Context;\n}());\nvar BufferTimeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(BufferTimeSubscriber, _super);\n function BufferTimeSubscriber(destination, bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) {\n var _this = _super.call(this, destination) || this;\n _this.bufferTimeSpan = bufferTimeSpan;\n _this.bufferCreationInterval = bufferCreationInterval;\n _this.maxBufferSize = maxBufferSize;\n _this.scheduler = scheduler;\n _this.contexts = [];\n var context = _this.openContext();\n _this.timespanOnly = bufferCreationInterval == null || bufferCreationInterval < 0;\n if (_this.timespanOnly) {\n var timeSpanOnlyState = { subscriber: _this, context: context, bufferTimeSpan: bufferTimeSpan };\n _this.add(context.closeAction = scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));\n }\n else {\n var closeState = { subscriber: _this, context: context };\n var creationState = { bufferTimeSpan: bufferTimeSpan, bufferCreationInterval: bufferCreationInterval, subscriber: _this, scheduler: scheduler };\n _this.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, closeState));\n _this.add(scheduler.schedule(dispatchBufferCreation, bufferCreationInterval, creationState));\n }\n return _this;\n }\n BufferTimeSubscriber.prototype._next = function (value) {\n var contexts = this.contexts;\n var len = contexts.length;\n var filledBufferContext;\n for (var i = 0; i < len; i++) {\n var context_1 = contexts[i];\n var buffer = context_1.buffer;\n buffer.push(value);\n if (buffer.length == this.maxBufferSize) {\n filledBufferContext = context_1;\n }\n }\n if (filledBufferContext) {\n this.onBufferFull(filledBufferContext);\n }\n };\n BufferTimeSubscriber.prototype._error = function (err) {\n this.contexts.length = 0;\n _super.prototype._error.call(this, err);\n };\n BufferTimeSubscriber.prototype._complete = function () {\n var _a = this, contexts = _a.contexts, destination = _a.destination;\n while (contexts.length > 0) {\n var context_2 = contexts.shift();\n destination.next(context_2.buffer);\n }\n _super.prototype._complete.call(this);\n };\n BufferTimeSubscriber.prototype._unsubscribe = function () {\n this.contexts = null;\n };\n BufferTimeSubscriber.prototype.onBufferFull = function (context) {\n this.closeContext(context);\n var closeAction = context.closeAction;\n closeAction.unsubscribe();\n this.remove(closeAction);\n if (!this.closed && this.timespanOnly) {\n context = this.openContext();\n var bufferTimeSpan = this.bufferTimeSpan;\n var timeSpanOnlyState = { subscriber: this, context: context, bufferTimeSpan: bufferTimeSpan };\n this.add(context.closeAction = this.scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));\n }\n };\n BufferTimeSubscriber.prototype.openContext = function () {\n var context = new Context();\n this.contexts.push(context);\n return context;\n };\n BufferTimeSubscriber.prototype.closeContext = function (context) {\n this.destination.next(context.buffer);\n var contexts = this.contexts;\n var spliceIndex = contexts ? contexts.indexOf(context) : -1;\n if (spliceIndex >= 0) {\n contexts.splice(contexts.indexOf(context), 1);\n }\n };\n return BufferTimeSubscriber;\n}(Subscriber));\nfunction dispatchBufferTimeSpanOnly(state) {\n var subscriber = state.subscriber;\n var prevContext = state.context;\n if (prevContext) {\n subscriber.closeContext(prevContext);\n }\n if (!subscriber.closed) {\n state.context = subscriber.openContext();\n state.context.closeAction = this.schedule(state, state.bufferTimeSpan);\n }\n}\nfunction dispatchBufferCreation(state) {\n var bufferCreationInterval = state.bufferCreationInterval, bufferTimeSpan = state.bufferTimeSpan, subscriber = state.subscriber, scheduler = state.scheduler;\n var context = subscriber.openContext();\n var action = this;\n if (!subscriber.closed) {\n subscriber.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, { subscriber: subscriber, context: context }));\n action.schedule(state, bufferCreationInterval);\n }\n}\nfunction dispatchBufferClose(arg) {\n var subscriber = arg.subscriber, context = arg.context;\n subscriber.closeContext(context);\n}\n//# sourceMappingURL=bufferTime.js.map\n","/** PURE_IMPORTS_START tslib,_Subscription,_util_subscribeToResult,_OuterSubscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscription } from '../Subscription';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OuterSubscriber } from '../OuterSubscriber';\nexport function bufferToggle(openings, closingSelector) {\n return function bufferToggleOperatorFunction(source) {\n return source.lift(new BufferToggleOperator(openings, closingSelector));\n };\n}\nvar BufferToggleOperator = /*@__PURE__*/ (function () {\n function BufferToggleOperator(openings, closingSelector) {\n this.openings = openings;\n this.closingSelector = closingSelector;\n }\n BufferToggleOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new BufferToggleSubscriber(subscriber, this.openings, this.closingSelector));\n };\n return BufferToggleOperator;\n}());\nvar BufferToggleSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(BufferToggleSubscriber, _super);\n function BufferToggleSubscriber(destination, openings, closingSelector) {\n var _this = _super.call(this, destination) || this;\n _this.closingSelector = closingSelector;\n _this.contexts = [];\n _this.add(subscribeToResult(_this, openings));\n return _this;\n }\n BufferToggleSubscriber.prototype._next = function (value) {\n var contexts = this.contexts;\n var len = contexts.length;\n for (var i = 0; i < len; i++) {\n contexts[i].buffer.push(value);\n }\n };\n BufferToggleSubscriber.prototype._error = function (err) {\n var contexts = this.contexts;\n while (contexts.length > 0) {\n var context_1 = contexts.shift();\n context_1.subscription.unsubscribe();\n context_1.buffer = null;\n context_1.subscription = null;\n }\n this.contexts = null;\n _super.prototype._error.call(this, err);\n };\n BufferToggleSubscriber.prototype._complete = function () {\n var contexts = this.contexts;\n while (contexts.length > 0) {\n var context_2 = contexts.shift();\n this.destination.next(context_2.buffer);\n context_2.subscription.unsubscribe();\n context_2.buffer = null;\n context_2.subscription = null;\n }\n this.contexts = null;\n _super.prototype._complete.call(this);\n };\n BufferToggleSubscriber.prototype.notifyNext = function (outerValue, innerValue) {\n outerValue ? this.closeBuffer(outerValue) : this.openBuffer(innerValue);\n };\n BufferToggleSubscriber.prototype.notifyComplete = function (innerSub) {\n this.closeBuffer(innerSub.context);\n };\n BufferToggleSubscriber.prototype.openBuffer = function (value) {\n try {\n var closingSelector = this.closingSelector;\n var closingNotifier = closingSelector.call(this, value);\n if (closingNotifier) {\n this.trySubscribe(closingNotifier);\n }\n }\n catch (err) {\n this._error(err);\n }\n };\n BufferToggleSubscriber.prototype.closeBuffer = function (context) {\n var contexts = this.contexts;\n if (contexts && context) {\n var buffer = context.buffer, subscription = context.subscription;\n this.destination.next(buffer);\n contexts.splice(contexts.indexOf(context), 1);\n this.remove(subscription);\n subscription.unsubscribe();\n }\n };\n BufferToggleSubscriber.prototype.trySubscribe = function (closingNotifier) {\n var contexts = this.contexts;\n var buffer = [];\n var subscription = new Subscription();\n var context = { buffer: buffer, subscription: subscription };\n contexts.push(context);\n var innerSubscription = subscribeToResult(this, closingNotifier, context);\n if (!innerSubscription || innerSubscription.closed) {\n this.closeBuffer(context);\n }\n else {\n innerSubscription.context = context;\n this.add(innerSubscription);\n subscription.add(innerSubscription);\n }\n };\n return BufferToggleSubscriber;\n}(OuterSubscriber));\n//# sourceMappingURL=bufferToggle.js.map\n","/** PURE_IMPORTS_START tslib,_Subscription,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscription } from '../Subscription';\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function bufferWhen(closingSelector) {\n return function (source) {\n return source.lift(new BufferWhenOperator(closingSelector));\n };\n}\nvar BufferWhenOperator = /*@__PURE__*/ (function () {\n function BufferWhenOperator(closingSelector) {\n this.closingSelector = closingSelector;\n }\n BufferWhenOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new BufferWhenSubscriber(subscriber, this.closingSelector));\n };\n return BufferWhenOperator;\n}());\nvar BufferWhenSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(BufferWhenSubscriber, _super);\n function BufferWhenSubscriber(destination, closingSelector) {\n var _this = _super.call(this, destination) || this;\n _this.closingSelector = closingSelector;\n _this.subscribing = false;\n _this.openBuffer();\n return _this;\n }\n BufferWhenSubscriber.prototype._next = function (value) {\n this.buffer.push(value);\n };\n BufferWhenSubscriber.prototype._complete = function () {\n var buffer = this.buffer;\n if (buffer) {\n this.destination.next(buffer);\n }\n _super.prototype._complete.call(this);\n };\n BufferWhenSubscriber.prototype._unsubscribe = function () {\n this.buffer = undefined;\n this.subscribing = false;\n };\n BufferWhenSubscriber.prototype.notifyNext = function () {\n this.openBuffer();\n };\n BufferWhenSubscriber.prototype.notifyComplete = function () {\n if (this.subscribing) {\n this.complete();\n }\n else {\n this.openBuffer();\n }\n };\n BufferWhenSubscriber.prototype.openBuffer = function () {\n var closingSubscription = this.closingSubscription;\n if (closingSubscription) {\n this.remove(closingSubscription);\n closingSubscription.unsubscribe();\n }\n var buffer = this.buffer;\n if (this.buffer) {\n this.destination.next(buffer);\n }\n this.buffer = [];\n var closingNotifier;\n try {\n var closingSelector = this.closingSelector;\n closingNotifier = closingSelector();\n }\n catch (err) {\n return this.error(err);\n }\n closingSubscription = new Subscription();\n this.closingSubscription = closingSubscription;\n this.add(closingSubscription);\n this.subscribing = true;\n closingSubscription.add(innerSubscribe(closingNotifier, new SimpleInnerSubscriber(this)));\n this.subscribing = false;\n };\n return BufferWhenSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=bufferWhen.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function catchError(selector) {\n return function catchErrorOperatorFunction(source) {\n var operator = new CatchOperator(selector);\n var caught = source.lift(operator);\n return (operator.caught = caught);\n };\n}\nvar CatchOperator = /*@__PURE__*/ (function () {\n function CatchOperator(selector) {\n this.selector = selector;\n }\n CatchOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new CatchSubscriber(subscriber, this.selector, this.caught));\n };\n return CatchOperator;\n}());\nvar CatchSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(CatchSubscriber, _super);\n function CatchSubscriber(destination, selector, caught) {\n var _this = _super.call(this, destination) || this;\n _this.selector = selector;\n _this.caught = caught;\n return _this;\n }\n CatchSubscriber.prototype.error = function (err) {\n if (!this.isStopped) {\n var result = void 0;\n try {\n result = this.selector(err, this.caught);\n }\n catch (err2) {\n _super.prototype.error.call(this, err2);\n return;\n }\n this._unsubscribeAndRecycle();\n var innerSubscriber = new SimpleInnerSubscriber(this);\n this.add(innerSubscriber);\n var innerSubscription = innerSubscribe(result, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n this.add(innerSubscription);\n }\n }\n };\n return CatchSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=catchError.js.map\n","/** PURE_IMPORTS_START _observable_combineLatest PURE_IMPORTS_END */\nimport { CombineLatestOperator } from '../observable/combineLatest';\nexport function combineAll(project) {\n return function (source) { return source.lift(new CombineLatestOperator(project)); };\n}\n//# sourceMappingURL=combineAll.js.map\n","/** PURE_IMPORTS_START _util_isArray,_observable_combineLatest,_observable_from PURE_IMPORTS_END */\nimport { isArray } from '../util/isArray';\nimport { CombineLatestOperator } from '../observable/combineLatest';\nimport { from } from '../observable/from';\nvar none = {};\nexport function combineLatest() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n var project = null;\n if (typeof observables[observables.length - 1] === 'function') {\n project = observables.pop();\n }\n if (observables.length === 1 && isArray(observables[0])) {\n observables = observables[0].slice();\n }\n return function (source) { return source.lift.call(from([source].concat(observables)), new CombineLatestOperator(project)); };\n}\n//# sourceMappingURL=combineLatest.js.map\n","/** PURE_IMPORTS_START _observable_concat PURE_IMPORTS_END */\nimport { concat as concatStatic } from '../observable/concat';\nexport function concat() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n return function (source) { return source.lift.call(concatStatic.apply(void 0, [source].concat(observables))); };\n}\n//# sourceMappingURL=concat.js.map\n","/** PURE_IMPORTS_START _mergeMap PURE_IMPORTS_END */\nimport { mergeMap } from './mergeMap';\nexport function concatMap(project, resultSelector) {\n return mergeMap(project, resultSelector, 1);\n}\n//# sourceMappingURL=concatMap.js.map\n","/** PURE_IMPORTS_START _concatMap PURE_IMPORTS_END */\nimport { concatMap } from './concatMap';\nexport function concatMapTo(innerObservable, resultSelector) {\n return concatMap(function () { return innerObservable; }, resultSelector);\n}\n//# sourceMappingURL=concatMapTo.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function count(predicate) {\n return function (source) { return source.lift(new CountOperator(predicate, source)); };\n}\nvar CountOperator = /*@__PURE__*/ (function () {\n function CountOperator(predicate, source) {\n this.predicate = predicate;\n this.source = source;\n }\n CountOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new CountSubscriber(subscriber, this.predicate, this.source));\n };\n return CountOperator;\n}());\nvar CountSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(CountSubscriber, _super);\n function CountSubscriber(destination, predicate, source) {\n var _this = _super.call(this, destination) || this;\n _this.predicate = predicate;\n _this.source = source;\n _this.count = 0;\n _this.index = 0;\n return _this;\n }\n CountSubscriber.prototype._next = function (value) {\n if (this.predicate) {\n this._tryPredicate(value);\n }\n else {\n this.count++;\n }\n };\n CountSubscriber.prototype._tryPredicate = function (value) {\n var result;\n try {\n result = this.predicate(value, this.index++, this.source);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n if (result) {\n this.count++;\n }\n };\n CountSubscriber.prototype._complete = function () {\n this.destination.next(this.count);\n this.destination.complete();\n };\n return CountSubscriber;\n}(Subscriber));\n//# sourceMappingURL=count.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function debounce(durationSelector) {\n return function (source) { return source.lift(new DebounceOperator(durationSelector)); };\n}\nvar DebounceOperator = /*@__PURE__*/ (function () {\n function DebounceOperator(durationSelector) {\n this.durationSelector = durationSelector;\n }\n DebounceOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DebounceSubscriber(subscriber, this.durationSelector));\n };\n return DebounceOperator;\n}());\nvar DebounceSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(DebounceSubscriber, _super);\n function DebounceSubscriber(destination, durationSelector) {\n var _this = _super.call(this, destination) || this;\n _this.durationSelector = durationSelector;\n _this.hasValue = false;\n return _this;\n }\n DebounceSubscriber.prototype._next = function (value) {\n try {\n var result = this.durationSelector.call(this, value);\n if (result) {\n this._tryNext(value, result);\n }\n }\n catch (err) {\n this.destination.error(err);\n }\n };\n DebounceSubscriber.prototype._complete = function () {\n this.emitValue();\n this.destination.complete();\n };\n DebounceSubscriber.prototype._tryNext = function (value, duration) {\n var subscription = this.durationSubscription;\n this.value = value;\n this.hasValue = true;\n if (subscription) {\n subscription.unsubscribe();\n this.remove(subscription);\n }\n subscription = innerSubscribe(duration, new SimpleInnerSubscriber(this));\n if (subscription && !subscription.closed) {\n this.add(this.durationSubscription = subscription);\n }\n };\n DebounceSubscriber.prototype.notifyNext = function () {\n this.emitValue();\n };\n DebounceSubscriber.prototype.notifyComplete = function () {\n this.emitValue();\n };\n DebounceSubscriber.prototype.emitValue = function () {\n if (this.hasValue) {\n var value = this.value;\n var subscription = this.durationSubscription;\n if (subscription) {\n this.durationSubscription = undefined;\n subscription.unsubscribe();\n this.remove(subscription);\n }\n this.value = undefined;\n this.hasValue = false;\n _super.prototype._next.call(this, value);\n }\n };\n return DebounceSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=debounce.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_scheduler_async PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { async } from '../scheduler/async';\nexport function debounceTime(dueTime, scheduler) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n return function (source) { return source.lift(new DebounceTimeOperator(dueTime, scheduler)); };\n}\nvar DebounceTimeOperator = /*@__PURE__*/ (function () {\n function DebounceTimeOperator(dueTime, scheduler) {\n this.dueTime = dueTime;\n this.scheduler = scheduler;\n }\n DebounceTimeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DebounceTimeSubscriber(subscriber, this.dueTime, this.scheduler));\n };\n return DebounceTimeOperator;\n}());\nvar DebounceTimeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(DebounceTimeSubscriber, _super);\n function DebounceTimeSubscriber(destination, dueTime, scheduler) {\n var _this = _super.call(this, destination) || this;\n _this.dueTime = dueTime;\n _this.scheduler = scheduler;\n _this.debouncedSubscription = null;\n _this.lastValue = null;\n _this.hasValue = false;\n return _this;\n }\n DebounceTimeSubscriber.prototype._next = function (value) {\n this.clearDebounce();\n this.lastValue = value;\n this.hasValue = true;\n this.add(this.debouncedSubscription = this.scheduler.schedule(dispatchNext, this.dueTime, this));\n };\n DebounceTimeSubscriber.prototype._complete = function () {\n this.debouncedNext();\n this.destination.complete();\n };\n DebounceTimeSubscriber.prototype.debouncedNext = function () {\n this.clearDebounce();\n if (this.hasValue) {\n var lastValue = this.lastValue;\n this.lastValue = null;\n this.hasValue = false;\n this.destination.next(lastValue);\n }\n };\n DebounceTimeSubscriber.prototype.clearDebounce = function () {\n var debouncedSubscription = this.debouncedSubscription;\n if (debouncedSubscription !== null) {\n this.remove(debouncedSubscription);\n debouncedSubscription.unsubscribe();\n this.debouncedSubscription = null;\n }\n };\n return DebounceTimeSubscriber;\n}(Subscriber));\nfunction dispatchNext(subscriber) {\n subscriber.debouncedNext();\n}\n//# sourceMappingURL=debounceTime.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function defaultIfEmpty(defaultValue) {\n if (defaultValue === void 0) {\n defaultValue = null;\n }\n return function (source) { return source.lift(new DefaultIfEmptyOperator(defaultValue)); };\n}\nvar DefaultIfEmptyOperator = /*@__PURE__*/ (function () {\n function DefaultIfEmptyOperator(defaultValue) {\n this.defaultValue = defaultValue;\n }\n DefaultIfEmptyOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DefaultIfEmptySubscriber(subscriber, this.defaultValue));\n };\n return DefaultIfEmptyOperator;\n}());\nvar DefaultIfEmptySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(DefaultIfEmptySubscriber, _super);\n function DefaultIfEmptySubscriber(destination, defaultValue) {\n var _this = _super.call(this, destination) || this;\n _this.defaultValue = defaultValue;\n _this.isEmpty = true;\n return _this;\n }\n DefaultIfEmptySubscriber.prototype._next = function (value) {\n this.isEmpty = false;\n this.destination.next(value);\n };\n DefaultIfEmptySubscriber.prototype._complete = function () {\n if (this.isEmpty) {\n this.destination.next(this.defaultValue);\n }\n this.destination.complete();\n };\n return DefaultIfEmptySubscriber;\n}(Subscriber));\n//# sourceMappingURL=defaultIfEmpty.js.map\n","/** PURE_IMPORTS_START PURE_IMPORTS_END */\nexport function isDate(value) {\n return value instanceof Date && !isNaN(+value);\n}\n//# sourceMappingURL=isDate.js.map\n","/** PURE_IMPORTS_START tslib,_scheduler_async,_util_isDate,_Subscriber,_Notification PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { async } from '../scheduler/async';\nimport { isDate } from '../util/isDate';\nimport { Subscriber } from '../Subscriber';\nimport { Notification } from '../Notification';\nexport function delay(delay, scheduler) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n var absoluteDelay = isDate(delay);\n var delayFor = absoluteDelay ? (+delay - scheduler.now()) : Math.abs(delay);\n return function (source) { return source.lift(new DelayOperator(delayFor, scheduler)); };\n}\nvar DelayOperator = /*@__PURE__*/ (function () {\n function DelayOperator(delay, scheduler) {\n this.delay = delay;\n this.scheduler = scheduler;\n }\n DelayOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DelaySubscriber(subscriber, this.delay, this.scheduler));\n };\n return DelayOperator;\n}());\nvar DelaySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(DelaySubscriber, _super);\n function DelaySubscriber(destination, delay, scheduler) {\n var _this = _super.call(this, destination) || this;\n _this.delay = delay;\n _this.scheduler = scheduler;\n _this.queue = [];\n _this.active = false;\n _this.errored = false;\n return _this;\n }\n DelaySubscriber.dispatch = function (state) {\n var source = state.source;\n var queue = source.queue;\n var scheduler = state.scheduler;\n var destination = state.destination;\n while (queue.length > 0 && (queue[0].time - scheduler.now()) <= 0) {\n queue.shift().notification.observe(destination);\n }\n if (queue.length > 0) {\n var delay_1 = Math.max(0, queue[0].time - scheduler.now());\n this.schedule(state, delay_1);\n }\n else {\n this.unsubscribe();\n source.active = false;\n }\n };\n DelaySubscriber.prototype._schedule = function (scheduler) {\n this.active = true;\n var destination = this.destination;\n destination.add(scheduler.schedule(DelaySubscriber.dispatch, this.delay, {\n source: this, destination: this.destination, scheduler: scheduler\n }));\n };\n DelaySubscriber.prototype.scheduleNotification = function (notification) {\n if (this.errored === true) {\n return;\n }\n var scheduler = this.scheduler;\n var message = new DelayMessage(scheduler.now() + this.delay, notification);\n this.queue.push(message);\n if (this.active === false) {\n this._schedule(scheduler);\n }\n };\n DelaySubscriber.prototype._next = function (value) {\n this.scheduleNotification(Notification.createNext(value));\n };\n DelaySubscriber.prototype._error = function (err) {\n this.errored = true;\n this.queue = [];\n this.destination.error(err);\n this.unsubscribe();\n };\n DelaySubscriber.prototype._complete = function () {\n this.scheduleNotification(Notification.createComplete());\n this.unsubscribe();\n };\n return DelaySubscriber;\n}(Subscriber));\nvar DelayMessage = /*@__PURE__*/ (function () {\n function DelayMessage(time, notification) {\n this.time = time;\n this.notification = notification;\n }\n return DelayMessage;\n}());\n//# sourceMappingURL=delay.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_Observable,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nexport function delayWhen(delayDurationSelector, subscriptionDelay) {\n if (subscriptionDelay) {\n return function (source) {\n return new SubscriptionDelayObservable(source, subscriptionDelay)\n .lift(new DelayWhenOperator(delayDurationSelector));\n };\n }\n return function (source) { return source.lift(new DelayWhenOperator(delayDurationSelector)); };\n}\nvar DelayWhenOperator = /*@__PURE__*/ (function () {\n function DelayWhenOperator(delayDurationSelector) {\n this.delayDurationSelector = delayDurationSelector;\n }\n DelayWhenOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DelayWhenSubscriber(subscriber, this.delayDurationSelector));\n };\n return DelayWhenOperator;\n}());\nvar DelayWhenSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(DelayWhenSubscriber, _super);\n function DelayWhenSubscriber(destination, delayDurationSelector) {\n var _this = _super.call(this, destination) || this;\n _this.delayDurationSelector = delayDurationSelector;\n _this.completed = false;\n _this.delayNotifierSubscriptions = [];\n _this.index = 0;\n return _this;\n }\n DelayWhenSubscriber.prototype.notifyNext = function (outerValue, _innerValue, _outerIndex, _innerIndex, innerSub) {\n this.destination.next(outerValue);\n this.removeSubscription(innerSub);\n this.tryComplete();\n };\n DelayWhenSubscriber.prototype.notifyError = function (error, innerSub) {\n this._error(error);\n };\n DelayWhenSubscriber.prototype.notifyComplete = function (innerSub) {\n var value = this.removeSubscription(innerSub);\n if (value) {\n this.destination.next(value);\n }\n this.tryComplete();\n };\n DelayWhenSubscriber.prototype._next = function (value) {\n var index = this.index++;\n try {\n var delayNotifier = this.delayDurationSelector(value, index);\n if (delayNotifier) {\n this.tryDelay(delayNotifier, value);\n }\n }\n catch (err) {\n this.destination.error(err);\n }\n };\n DelayWhenSubscriber.prototype._complete = function () {\n this.completed = true;\n this.tryComplete();\n this.unsubscribe();\n };\n DelayWhenSubscriber.prototype.removeSubscription = function (subscription) {\n subscription.unsubscribe();\n var subscriptionIdx = this.delayNotifierSubscriptions.indexOf(subscription);\n if (subscriptionIdx !== -1) {\n this.delayNotifierSubscriptions.splice(subscriptionIdx, 1);\n }\n return subscription.outerValue;\n };\n DelayWhenSubscriber.prototype.tryDelay = function (delayNotifier, value) {\n var notifierSubscription = subscribeToResult(this, delayNotifier, value);\n if (notifierSubscription && !notifierSubscription.closed) {\n var destination = this.destination;\n destination.add(notifierSubscription);\n this.delayNotifierSubscriptions.push(notifierSubscription);\n }\n };\n DelayWhenSubscriber.prototype.tryComplete = function () {\n if (this.completed && this.delayNotifierSubscriptions.length === 0) {\n this.destination.complete();\n }\n };\n return DelayWhenSubscriber;\n}(OuterSubscriber));\nvar SubscriptionDelayObservable = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SubscriptionDelayObservable, _super);\n function SubscriptionDelayObservable(source, subscriptionDelay) {\n var _this = _super.call(this) || this;\n _this.source = source;\n _this.subscriptionDelay = subscriptionDelay;\n return _this;\n }\n SubscriptionDelayObservable.prototype._subscribe = function (subscriber) {\n this.subscriptionDelay.subscribe(new SubscriptionDelaySubscriber(subscriber, this.source));\n };\n return SubscriptionDelayObservable;\n}(Observable));\nvar SubscriptionDelaySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SubscriptionDelaySubscriber, _super);\n function SubscriptionDelaySubscriber(parent, source) {\n var _this = _super.call(this) || this;\n _this.parent = parent;\n _this.source = source;\n _this.sourceSubscribed = false;\n return _this;\n }\n SubscriptionDelaySubscriber.prototype._next = function (unused) {\n this.subscribeToSource();\n };\n SubscriptionDelaySubscriber.prototype._error = function (err) {\n this.unsubscribe();\n this.parent.error(err);\n };\n SubscriptionDelaySubscriber.prototype._complete = function () {\n this.unsubscribe();\n this.subscribeToSource();\n };\n SubscriptionDelaySubscriber.prototype.subscribeToSource = function () {\n if (!this.sourceSubscribed) {\n this.sourceSubscribed = true;\n this.unsubscribe();\n this.source.subscribe(this.parent);\n }\n };\n return SubscriptionDelaySubscriber;\n}(Subscriber));\n//# sourceMappingURL=delayWhen.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function dematerialize() {\n return function dematerializeOperatorFunction(source) {\n return source.lift(new DeMaterializeOperator());\n };\n}\nvar DeMaterializeOperator = /*@__PURE__*/ (function () {\n function DeMaterializeOperator() {\n }\n DeMaterializeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DeMaterializeSubscriber(subscriber));\n };\n return DeMaterializeOperator;\n}());\nvar DeMaterializeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(DeMaterializeSubscriber, _super);\n function DeMaterializeSubscriber(destination) {\n return _super.call(this, destination) || this;\n }\n DeMaterializeSubscriber.prototype._next = function (value) {\n value.observe(this.destination);\n };\n return DeMaterializeSubscriber;\n}(Subscriber));\n//# sourceMappingURL=dematerialize.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function distinct(keySelector, flushes) {\n return function (source) { return source.lift(new DistinctOperator(keySelector, flushes)); };\n}\nvar DistinctOperator = /*@__PURE__*/ (function () {\n function DistinctOperator(keySelector, flushes) {\n this.keySelector = keySelector;\n this.flushes = flushes;\n }\n DistinctOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DistinctSubscriber(subscriber, this.keySelector, this.flushes));\n };\n return DistinctOperator;\n}());\nvar DistinctSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(DistinctSubscriber, _super);\n function DistinctSubscriber(destination, keySelector, flushes) {\n var _this = _super.call(this, destination) || this;\n _this.keySelector = keySelector;\n _this.values = new Set();\n if (flushes) {\n _this.add(innerSubscribe(flushes, new SimpleInnerSubscriber(_this)));\n }\n return _this;\n }\n DistinctSubscriber.prototype.notifyNext = function () {\n this.values.clear();\n };\n DistinctSubscriber.prototype.notifyError = function (error) {\n this._error(error);\n };\n DistinctSubscriber.prototype._next = function (value) {\n if (this.keySelector) {\n this._useKeySelector(value);\n }\n else {\n this._finalizeNext(value, value);\n }\n };\n DistinctSubscriber.prototype._useKeySelector = function (value) {\n var key;\n var destination = this.destination;\n try {\n key = this.keySelector(value);\n }\n catch (err) {\n destination.error(err);\n return;\n }\n this._finalizeNext(key, value);\n };\n DistinctSubscriber.prototype._finalizeNext = function (key, value) {\n var values = this.values;\n if (!values.has(key)) {\n values.add(key);\n this.destination.next(value);\n }\n };\n return DistinctSubscriber;\n}(SimpleOuterSubscriber));\nexport { DistinctSubscriber };\n//# sourceMappingURL=distinct.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function distinctUntilChanged(compare, keySelector) {\n return function (source) { return source.lift(new DistinctUntilChangedOperator(compare, keySelector)); };\n}\nvar DistinctUntilChangedOperator = /*@__PURE__*/ (function () {\n function DistinctUntilChangedOperator(compare, keySelector) {\n this.compare = compare;\n this.keySelector = keySelector;\n }\n DistinctUntilChangedOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DistinctUntilChangedSubscriber(subscriber, this.compare, this.keySelector));\n };\n return DistinctUntilChangedOperator;\n}());\nvar DistinctUntilChangedSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(DistinctUntilChangedSubscriber, _super);\n function DistinctUntilChangedSubscriber(destination, compare, keySelector) {\n var _this = _super.call(this, destination) || this;\n _this.keySelector = keySelector;\n _this.hasKey = false;\n if (typeof compare === 'function') {\n _this.compare = compare;\n }\n return _this;\n }\n DistinctUntilChangedSubscriber.prototype.compare = function (x, y) {\n return x === y;\n };\n DistinctUntilChangedSubscriber.prototype._next = function (value) {\n var key;\n try {\n var keySelector = this.keySelector;\n key = keySelector ? keySelector(value) : value;\n }\n catch (err) {\n return this.destination.error(err);\n }\n var result = false;\n if (this.hasKey) {\n try {\n var compare = this.compare;\n result = compare(this.key, key);\n }\n catch (err) {\n return this.destination.error(err);\n }\n }\n else {\n this.hasKey = true;\n }\n if (!result) {\n this.key = key;\n this.destination.next(value);\n }\n };\n return DistinctUntilChangedSubscriber;\n}(Subscriber));\n//# sourceMappingURL=distinctUntilChanged.js.map\n","/** PURE_IMPORTS_START _distinctUntilChanged PURE_IMPORTS_END */\nimport { distinctUntilChanged } from './distinctUntilChanged';\nexport function distinctUntilKeyChanged(key, compare) {\n return distinctUntilChanged(function (x, y) { return compare ? compare(x[key], y[key]) : x[key] === y[key]; });\n}\n//# sourceMappingURL=distinctUntilKeyChanged.js.map\n","/** PURE_IMPORTS_START tslib,_util_EmptyError,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { EmptyError } from '../util/EmptyError';\nimport { Subscriber } from '../Subscriber';\nexport function throwIfEmpty(errorFactory) {\n if (errorFactory === void 0) {\n errorFactory = defaultErrorFactory;\n }\n return function (source) {\n return source.lift(new ThrowIfEmptyOperator(errorFactory));\n };\n}\nvar ThrowIfEmptyOperator = /*@__PURE__*/ (function () {\n function ThrowIfEmptyOperator(errorFactory) {\n this.errorFactory = errorFactory;\n }\n ThrowIfEmptyOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new ThrowIfEmptySubscriber(subscriber, this.errorFactory));\n };\n return ThrowIfEmptyOperator;\n}());\nvar ThrowIfEmptySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ThrowIfEmptySubscriber, _super);\n function ThrowIfEmptySubscriber(destination, errorFactory) {\n var _this = _super.call(this, destination) || this;\n _this.errorFactory = errorFactory;\n _this.hasValue = false;\n return _this;\n }\n ThrowIfEmptySubscriber.prototype._next = function (value) {\n this.hasValue = true;\n this.destination.next(value);\n };\n ThrowIfEmptySubscriber.prototype._complete = function () {\n if (!this.hasValue) {\n var err = void 0;\n try {\n err = this.errorFactory();\n }\n catch (e) {\n err = e;\n }\n this.destination.error(err);\n }\n else {\n return this.destination.complete();\n }\n };\n return ThrowIfEmptySubscriber;\n}(Subscriber));\nfunction defaultErrorFactory() {\n return new EmptyError();\n}\n//# sourceMappingURL=throwIfEmpty.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_util_ArgumentOutOfRangeError,_observable_empty PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { empty } from '../observable/empty';\nexport function take(count) {\n return function (source) {\n if (count === 0) {\n return empty();\n }\n else {\n return source.lift(new TakeOperator(count));\n }\n };\n}\nvar TakeOperator = /*@__PURE__*/ (function () {\n function TakeOperator(total) {\n this.total = total;\n if (this.total < 0) {\n throw new ArgumentOutOfRangeError;\n }\n }\n TakeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new TakeSubscriber(subscriber, this.total));\n };\n return TakeOperator;\n}());\nvar TakeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(TakeSubscriber, _super);\n function TakeSubscriber(destination, total) {\n var _this = _super.call(this, destination) || this;\n _this.total = total;\n _this.count = 0;\n return _this;\n }\n TakeSubscriber.prototype._next = function (value) {\n var total = this.total;\n var count = ++this.count;\n if (count <= total) {\n this.destination.next(value);\n if (count === total) {\n this.destination.complete();\n this.unsubscribe();\n }\n }\n };\n return TakeSubscriber;\n}(Subscriber));\n//# sourceMappingURL=take.js.map\n","/** PURE_IMPORTS_START _util_ArgumentOutOfRangeError,_filter,_throwIfEmpty,_defaultIfEmpty,_take PURE_IMPORTS_END */\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { filter } from './filter';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { take } from './take';\nexport function elementAt(index, defaultValue) {\n if (index < 0) {\n throw new ArgumentOutOfRangeError();\n }\n var hasDefaultValue = arguments.length >= 2;\n return function (source) {\n return source.pipe(filter(function (v, i) { return i === index; }), take(1), hasDefaultValue\n ? defaultIfEmpty(defaultValue)\n : throwIfEmpty(function () { return new ArgumentOutOfRangeError(); }));\n };\n}\n//# sourceMappingURL=elementAt.js.map\n","/** PURE_IMPORTS_START _observable_concat,_observable_of PURE_IMPORTS_END */\nimport { concat } from '../observable/concat';\nimport { of } from '../observable/of';\nexport function endWith() {\n var array = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n array[_i] = arguments[_i];\n }\n return function (source) { return concat(source, of.apply(void 0, array)); };\n}\n//# sourceMappingURL=endWith.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function every(predicate, thisArg) {\n return function (source) { return source.lift(new EveryOperator(predicate, thisArg, source)); };\n}\nvar EveryOperator = /*@__PURE__*/ (function () {\n function EveryOperator(predicate, thisArg, source) {\n this.predicate = predicate;\n this.thisArg = thisArg;\n this.source = source;\n }\n EveryOperator.prototype.call = function (observer, source) {\n return source.subscribe(new EverySubscriber(observer, this.predicate, this.thisArg, this.source));\n };\n return EveryOperator;\n}());\nvar EverySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(EverySubscriber, _super);\n function EverySubscriber(destination, predicate, thisArg, source) {\n var _this = _super.call(this, destination) || this;\n _this.predicate = predicate;\n _this.thisArg = thisArg;\n _this.source = source;\n _this.index = 0;\n _this.thisArg = thisArg || _this;\n return _this;\n }\n EverySubscriber.prototype.notifyComplete = function (everyValueMatch) {\n this.destination.next(everyValueMatch);\n this.destination.complete();\n };\n EverySubscriber.prototype._next = function (value) {\n var result = false;\n try {\n result = this.predicate.call(this.thisArg, value, this.index++, this.source);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n if (!result) {\n this.notifyComplete(false);\n }\n };\n EverySubscriber.prototype._complete = function () {\n this.notifyComplete(true);\n };\n return EverySubscriber;\n}(Subscriber));\n//# sourceMappingURL=every.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function exhaust() {\n return function (source) { return source.lift(new SwitchFirstOperator()); };\n}\nvar SwitchFirstOperator = /*@__PURE__*/ (function () {\n function SwitchFirstOperator() {\n }\n SwitchFirstOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new SwitchFirstSubscriber(subscriber));\n };\n return SwitchFirstOperator;\n}());\nvar SwitchFirstSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SwitchFirstSubscriber, _super);\n function SwitchFirstSubscriber(destination) {\n var _this = _super.call(this, destination) || this;\n _this.hasCompleted = false;\n _this.hasSubscription = false;\n return _this;\n }\n SwitchFirstSubscriber.prototype._next = function (value) {\n if (!this.hasSubscription) {\n this.hasSubscription = true;\n this.add(innerSubscribe(value, new SimpleInnerSubscriber(this)));\n }\n };\n SwitchFirstSubscriber.prototype._complete = function () {\n this.hasCompleted = true;\n if (!this.hasSubscription) {\n this.destination.complete();\n }\n };\n SwitchFirstSubscriber.prototype.notifyComplete = function () {\n this.hasSubscription = false;\n if (this.hasCompleted) {\n this.destination.complete();\n }\n };\n return SwitchFirstSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=exhaust.js.map\n","/** PURE_IMPORTS_START tslib,_map,_observable_from,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { map } from './map';\nimport { from } from '../observable/from';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function exhaustMap(project, resultSelector) {\n if (resultSelector) {\n return function (source) { return source.pipe(exhaustMap(function (a, i) { return from(project(a, i)).pipe(map(function (b, ii) { return resultSelector(a, b, i, ii); })); })); };\n }\n return function (source) {\n return source.lift(new ExhaustMapOperator(project));\n };\n}\nvar ExhaustMapOperator = /*@__PURE__*/ (function () {\n function ExhaustMapOperator(project) {\n this.project = project;\n }\n ExhaustMapOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new ExhaustMapSubscriber(subscriber, this.project));\n };\n return ExhaustMapOperator;\n}());\nvar ExhaustMapSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ExhaustMapSubscriber, _super);\n function ExhaustMapSubscriber(destination, project) {\n var _this = _super.call(this, destination) || this;\n _this.project = project;\n _this.hasSubscription = false;\n _this.hasCompleted = false;\n _this.index = 0;\n return _this;\n }\n ExhaustMapSubscriber.prototype._next = function (value) {\n if (!this.hasSubscription) {\n this.tryNext(value);\n }\n };\n ExhaustMapSubscriber.prototype.tryNext = function (value) {\n var result;\n var index = this.index++;\n try {\n result = this.project(value, index);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.hasSubscription = true;\n this._innerSub(result);\n };\n ExhaustMapSubscriber.prototype._innerSub = function (result) {\n var innerSubscriber = new SimpleInnerSubscriber(this);\n var destination = this.destination;\n destination.add(innerSubscriber);\n var innerSubscription = innerSubscribe(result, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n destination.add(innerSubscription);\n }\n };\n ExhaustMapSubscriber.prototype._complete = function () {\n this.hasCompleted = true;\n if (!this.hasSubscription) {\n this.destination.complete();\n }\n this.unsubscribe();\n };\n ExhaustMapSubscriber.prototype.notifyNext = function (innerValue) {\n this.destination.next(innerValue);\n };\n ExhaustMapSubscriber.prototype.notifyError = function (err) {\n this.destination.error(err);\n };\n ExhaustMapSubscriber.prototype.notifyComplete = function () {\n this.hasSubscription = false;\n if (this.hasCompleted) {\n this.destination.complete();\n }\n };\n return ExhaustMapSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=exhaustMap.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function expand(project, concurrent, scheduler) {\n if (concurrent === void 0) {\n concurrent = Number.POSITIVE_INFINITY;\n }\n concurrent = (concurrent || 0) < 1 ? Number.POSITIVE_INFINITY : concurrent;\n return function (source) { return source.lift(new ExpandOperator(project, concurrent, scheduler)); };\n}\nvar ExpandOperator = /*@__PURE__*/ (function () {\n function ExpandOperator(project, concurrent, scheduler) {\n this.project = project;\n this.concurrent = concurrent;\n this.scheduler = scheduler;\n }\n ExpandOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new ExpandSubscriber(subscriber, this.project, this.concurrent, this.scheduler));\n };\n return ExpandOperator;\n}());\nexport { ExpandOperator };\nvar ExpandSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ExpandSubscriber, _super);\n function ExpandSubscriber(destination, project, concurrent, scheduler) {\n var _this = _super.call(this, destination) || this;\n _this.project = project;\n _this.concurrent = concurrent;\n _this.scheduler = scheduler;\n _this.index = 0;\n _this.active = 0;\n _this.hasCompleted = false;\n if (concurrent < Number.POSITIVE_INFINITY) {\n _this.buffer = [];\n }\n return _this;\n }\n ExpandSubscriber.dispatch = function (arg) {\n var subscriber = arg.subscriber, result = arg.result, value = arg.value, index = arg.index;\n subscriber.subscribeToProjection(result, value, index);\n };\n ExpandSubscriber.prototype._next = function (value) {\n var destination = this.destination;\n if (destination.closed) {\n this._complete();\n return;\n }\n var index = this.index++;\n if (this.active < this.concurrent) {\n destination.next(value);\n try {\n var project = this.project;\n var result = project(value, index);\n if (!this.scheduler) {\n this.subscribeToProjection(result, value, index);\n }\n else {\n var state = { subscriber: this, result: result, value: value, index: index };\n var destination_1 = this.destination;\n destination_1.add(this.scheduler.schedule(ExpandSubscriber.dispatch, 0, state));\n }\n }\n catch (e) {\n destination.error(e);\n }\n }\n else {\n this.buffer.push(value);\n }\n };\n ExpandSubscriber.prototype.subscribeToProjection = function (result, value, index) {\n this.active++;\n var destination = this.destination;\n destination.add(innerSubscribe(result, new SimpleInnerSubscriber(this)));\n };\n ExpandSubscriber.prototype._complete = function () {\n this.hasCompleted = true;\n if (this.hasCompleted && this.active === 0) {\n this.destination.complete();\n }\n this.unsubscribe();\n };\n ExpandSubscriber.prototype.notifyNext = function (innerValue) {\n this._next(innerValue);\n };\n ExpandSubscriber.prototype.notifyComplete = function () {\n var buffer = this.buffer;\n this.active--;\n if (buffer && buffer.length > 0) {\n this._next(buffer.shift());\n }\n if (this.hasCompleted && this.active === 0) {\n this.destination.complete();\n }\n };\n return ExpandSubscriber;\n}(SimpleOuterSubscriber));\nexport { ExpandSubscriber };\n//# sourceMappingURL=expand.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_Subscription PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nexport function finalize(callback) {\n return function (source) { return source.lift(new FinallyOperator(callback)); };\n}\nvar FinallyOperator = /*@__PURE__*/ (function () {\n function FinallyOperator(callback) {\n this.callback = callback;\n }\n FinallyOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new FinallySubscriber(subscriber, this.callback));\n };\n return FinallyOperator;\n}());\nvar FinallySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(FinallySubscriber, _super);\n function FinallySubscriber(destination, callback) {\n var _this = _super.call(this, destination) || this;\n _this.add(new Subscription(callback));\n return _this;\n }\n return FinallySubscriber;\n}(Subscriber));\n//# sourceMappingURL=finalize.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function find(predicate, thisArg) {\n if (typeof predicate !== 'function') {\n throw new TypeError('predicate is not a function');\n }\n return function (source) { return source.lift(new FindValueOperator(predicate, source, false, thisArg)); };\n}\nvar FindValueOperator = /*@__PURE__*/ (function () {\n function FindValueOperator(predicate, source, yieldIndex, thisArg) {\n this.predicate = predicate;\n this.source = source;\n this.yieldIndex = yieldIndex;\n this.thisArg = thisArg;\n }\n FindValueOperator.prototype.call = function (observer, source) {\n return source.subscribe(new FindValueSubscriber(observer, this.predicate, this.source, this.yieldIndex, this.thisArg));\n };\n return FindValueOperator;\n}());\nexport { FindValueOperator };\nvar FindValueSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(FindValueSubscriber, _super);\n function FindValueSubscriber(destination, predicate, source, yieldIndex, thisArg) {\n var _this = _super.call(this, destination) || this;\n _this.predicate = predicate;\n _this.source = source;\n _this.yieldIndex = yieldIndex;\n _this.thisArg = thisArg;\n _this.index = 0;\n return _this;\n }\n FindValueSubscriber.prototype.notifyComplete = function (value) {\n var destination = this.destination;\n destination.next(value);\n destination.complete();\n this.unsubscribe();\n };\n FindValueSubscriber.prototype._next = function (value) {\n var _a = this, predicate = _a.predicate, thisArg = _a.thisArg;\n var index = this.index++;\n try {\n var result = predicate.call(thisArg || this, value, index, this.source);\n if (result) {\n this.notifyComplete(this.yieldIndex ? index : value);\n }\n }\n catch (err) {\n this.destination.error(err);\n }\n };\n FindValueSubscriber.prototype._complete = function () {\n this.notifyComplete(this.yieldIndex ? -1 : undefined);\n };\n return FindValueSubscriber;\n}(Subscriber));\nexport { FindValueSubscriber };\n//# sourceMappingURL=find.js.map\n","/** PURE_IMPORTS_START _operators_find PURE_IMPORTS_END */\nimport { FindValueOperator } from '../operators/find';\nexport function findIndex(predicate, thisArg) {\n return function (source) { return source.lift(new FindValueOperator(predicate, source, true, thisArg)); };\n}\n//# sourceMappingURL=findIndex.js.map\n","/** PURE_IMPORTS_START _util_EmptyError,_filter,_take,_defaultIfEmpty,_throwIfEmpty,_util_identity PURE_IMPORTS_END */\nimport { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { take } from './take';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { identity } from '../util/identity';\nexport function first(predicate, defaultValue) {\n var hasDefaultValue = arguments.length >= 2;\n return function (source) { return source.pipe(predicate ? filter(function (v, i) { return predicate(v, i, source); }) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function () { return new EmptyError(); })); };\n}\n//# sourceMappingURL=first.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function ignoreElements() {\n return function ignoreElementsOperatorFunction(source) {\n return source.lift(new IgnoreElementsOperator());\n };\n}\nvar IgnoreElementsOperator = /*@__PURE__*/ (function () {\n function IgnoreElementsOperator() {\n }\n IgnoreElementsOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new IgnoreElementsSubscriber(subscriber));\n };\n return IgnoreElementsOperator;\n}());\nvar IgnoreElementsSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(IgnoreElementsSubscriber, _super);\n function IgnoreElementsSubscriber() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n IgnoreElementsSubscriber.prototype._next = function (unused) {\n };\n return IgnoreElementsSubscriber;\n}(Subscriber));\n//# sourceMappingURL=ignoreElements.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function isEmpty() {\n return function (source) { return source.lift(new IsEmptyOperator()); };\n}\nvar IsEmptyOperator = /*@__PURE__*/ (function () {\n function IsEmptyOperator() {\n }\n IsEmptyOperator.prototype.call = function (observer, source) {\n return source.subscribe(new IsEmptySubscriber(observer));\n };\n return IsEmptyOperator;\n}());\nvar IsEmptySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(IsEmptySubscriber, _super);\n function IsEmptySubscriber(destination) {\n return _super.call(this, destination) || this;\n }\n IsEmptySubscriber.prototype.notifyComplete = function (isEmpty) {\n var destination = this.destination;\n destination.next(isEmpty);\n destination.complete();\n };\n IsEmptySubscriber.prototype._next = function (value) {\n this.notifyComplete(false);\n };\n IsEmptySubscriber.prototype._complete = function () {\n this.notifyComplete(true);\n };\n return IsEmptySubscriber;\n}(Subscriber));\n//# sourceMappingURL=isEmpty.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_util_ArgumentOutOfRangeError,_observable_empty PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { empty } from '../observable/empty';\nexport function takeLast(count) {\n return function takeLastOperatorFunction(source) {\n if (count === 0) {\n return empty();\n }\n else {\n return source.lift(new TakeLastOperator(count));\n }\n };\n}\nvar TakeLastOperator = /*@__PURE__*/ (function () {\n function TakeLastOperator(total) {\n this.total = total;\n if (this.total < 0) {\n throw new ArgumentOutOfRangeError;\n }\n }\n TakeLastOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new TakeLastSubscriber(subscriber, this.total));\n };\n return TakeLastOperator;\n}());\nvar TakeLastSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(TakeLastSubscriber, _super);\n function TakeLastSubscriber(destination, total) {\n var _this = _super.call(this, destination) || this;\n _this.total = total;\n _this.ring = new Array();\n _this.count = 0;\n return _this;\n }\n TakeLastSubscriber.prototype._next = function (value) {\n var ring = this.ring;\n var total = this.total;\n var count = this.count++;\n if (ring.length < total) {\n ring.push(value);\n }\n else {\n var index = count % total;\n ring[index] = value;\n }\n };\n TakeLastSubscriber.prototype._complete = function () {\n var destination = this.destination;\n var count = this.count;\n if (count > 0) {\n var total = this.count >= this.total ? this.total : this.count;\n var ring = this.ring;\n for (var i = 0; i < total; i++) {\n var idx = (count++) % total;\n destination.next(ring[idx]);\n }\n }\n destination.complete();\n };\n return TakeLastSubscriber;\n}(Subscriber));\n//# sourceMappingURL=takeLast.js.map\n","/** PURE_IMPORTS_START _util_EmptyError,_filter,_takeLast,_throwIfEmpty,_defaultIfEmpty,_util_identity PURE_IMPORTS_END */\nimport { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { takeLast } from './takeLast';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { identity } from '../util/identity';\nexport function last(predicate, defaultValue) {\n var hasDefaultValue = arguments.length >= 2;\n return function (source) { return source.pipe(predicate ? filter(function (v, i) { return predicate(v, i, source); }) : identity, takeLast(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function () { return new EmptyError(); })); };\n}\n//# sourceMappingURL=last.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function mapTo(value) {\n return function (source) { return source.lift(new MapToOperator(value)); };\n}\nvar MapToOperator = /*@__PURE__*/ (function () {\n function MapToOperator(value) {\n this.value = value;\n }\n MapToOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new MapToSubscriber(subscriber, this.value));\n };\n return MapToOperator;\n}());\nvar MapToSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(MapToSubscriber, _super);\n function MapToSubscriber(destination, value) {\n var _this = _super.call(this, destination) || this;\n _this.value = value;\n return _this;\n }\n MapToSubscriber.prototype._next = function (x) {\n this.destination.next(this.value);\n };\n return MapToSubscriber;\n}(Subscriber));\n//# sourceMappingURL=mapTo.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_Notification PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { Notification } from '../Notification';\nexport function materialize() {\n return function materializeOperatorFunction(source) {\n return source.lift(new MaterializeOperator());\n };\n}\nvar MaterializeOperator = /*@__PURE__*/ (function () {\n function MaterializeOperator() {\n }\n MaterializeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new MaterializeSubscriber(subscriber));\n };\n return MaterializeOperator;\n}());\nvar MaterializeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(MaterializeSubscriber, _super);\n function MaterializeSubscriber(destination) {\n return _super.call(this, destination) || this;\n }\n MaterializeSubscriber.prototype._next = function (value) {\n this.destination.next(Notification.createNext(value));\n };\n MaterializeSubscriber.prototype._error = function (err) {\n var destination = this.destination;\n destination.next(Notification.createError(err));\n destination.complete();\n };\n MaterializeSubscriber.prototype._complete = function () {\n var destination = this.destination;\n destination.next(Notification.createComplete());\n destination.complete();\n };\n return MaterializeSubscriber;\n}(Subscriber));\n//# sourceMappingURL=materialize.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function scan(accumulator, seed) {\n var hasSeed = false;\n if (arguments.length >= 2) {\n hasSeed = true;\n }\n return function scanOperatorFunction(source) {\n return source.lift(new ScanOperator(accumulator, seed, hasSeed));\n };\n}\nvar ScanOperator = /*@__PURE__*/ (function () {\n function ScanOperator(accumulator, seed, hasSeed) {\n if (hasSeed === void 0) {\n hasSeed = false;\n }\n this.accumulator = accumulator;\n this.seed = seed;\n this.hasSeed = hasSeed;\n }\n ScanOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new ScanSubscriber(subscriber, this.accumulator, this.seed, this.hasSeed));\n };\n return ScanOperator;\n}());\nvar ScanSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ScanSubscriber, _super);\n function ScanSubscriber(destination, accumulator, _seed, hasSeed) {\n var _this = _super.call(this, destination) || this;\n _this.accumulator = accumulator;\n _this._seed = _seed;\n _this.hasSeed = hasSeed;\n _this.index = 0;\n return _this;\n }\n Object.defineProperty(ScanSubscriber.prototype, \"seed\", {\n get: function () {\n return this._seed;\n },\n set: function (value) {\n this.hasSeed = true;\n this._seed = value;\n },\n enumerable: true,\n configurable: true\n });\n ScanSubscriber.prototype._next = function (value) {\n if (!this.hasSeed) {\n this.seed = value;\n this.destination.next(value);\n }\n else {\n return this._tryNext(value);\n }\n };\n ScanSubscriber.prototype._tryNext = function (value) {\n var index = this.index++;\n var result;\n try {\n result = this.accumulator(this.seed, value, index);\n }\n catch (err) {\n this.destination.error(err);\n }\n this.seed = result;\n this.destination.next(result);\n };\n return ScanSubscriber;\n}(Subscriber));\n//# sourceMappingURL=scan.js.map\n","/** PURE_IMPORTS_START _scan,_takeLast,_defaultIfEmpty,_util_pipe PURE_IMPORTS_END */\nimport { scan } from './scan';\nimport { takeLast } from './takeLast';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { pipe } from '../util/pipe';\nexport function reduce(accumulator, seed) {\n if (arguments.length >= 2) {\n return function reduceOperatorFunctionWithSeed(source) {\n return pipe(scan(accumulator, seed), takeLast(1), defaultIfEmpty(seed))(source);\n };\n }\n return function reduceOperatorFunction(source) {\n return pipe(scan(function (acc, value, index) { return accumulator(acc, value, index + 1); }), takeLast(1))(source);\n };\n}\n//# sourceMappingURL=reduce.js.map\n","/** PURE_IMPORTS_START _reduce PURE_IMPORTS_END */\nimport { reduce } from './reduce';\nexport function max(comparer) {\n var max = (typeof comparer === 'function')\n ? function (x, y) { return comparer(x, y) > 0 ? x : y; }\n : function (x, y) { return x > y ? x : y; };\n return reduce(max);\n}\n//# sourceMappingURL=max.js.map\n","/** PURE_IMPORTS_START _observable_merge PURE_IMPORTS_END */\nimport { merge as mergeStatic } from '../observable/merge';\nexport function merge() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n return function (source) { return source.lift.call(mergeStatic.apply(void 0, [source].concat(observables))); };\n}\n//# sourceMappingURL=merge.js.map\n","/** PURE_IMPORTS_START _mergeMap PURE_IMPORTS_END */\nimport { mergeMap } from './mergeMap';\nexport function mergeMapTo(innerObservable, resultSelector, concurrent) {\n if (concurrent === void 0) {\n concurrent = Number.POSITIVE_INFINITY;\n }\n if (typeof resultSelector === 'function') {\n return mergeMap(function () { return innerObservable; }, resultSelector, concurrent);\n }\n if (typeof resultSelector === 'number') {\n concurrent = resultSelector;\n }\n return mergeMap(function () { return innerObservable; }, concurrent);\n}\n//# sourceMappingURL=mergeMapTo.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function mergeScan(accumulator, seed, concurrent) {\n if (concurrent === void 0) {\n concurrent = Number.POSITIVE_INFINITY;\n }\n return function (source) { return source.lift(new MergeScanOperator(accumulator, seed, concurrent)); };\n}\nvar MergeScanOperator = /*@__PURE__*/ (function () {\n function MergeScanOperator(accumulator, seed, concurrent) {\n this.accumulator = accumulator;\n this.seed = seed;\n this.concurrent = concurrent;\n }\n MergeScanOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new MergeScanSubscriber(subscriber, this.accumulator, this.seed, this.concurrent));\n };\n return MergeScanOperator;\n}());\nexport { MergeScanOperator };\nvar MergeScanSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(MergeScanSubscriber, _super);\n function MergeScanSubscriber(destination, accumulator, acc, concurrent) {\n var _this = _super.call(this, destination) || this;\n _this.accumulator = accumulator;\n _this.acc = acc;\n _this.concurrent = concurrent;\n _this.hasValue = false;\n _this.hasCompleted = false;\n _this.buffer = [];\n _this.active = 0;\n _this.index = 0;\n return _this;\n }\n MergeScanSubscriber.prototype._next = function (value) {\n if (this.active < this.concurrent) {\n var index = this.index++;\n var destination = this.destination;\n var ish = void 0;\n try {\n var accumulator = this.accumulator;\n ish = accumulator(this.acc, value, index);\n }\n catch (e) {\n return destination.error(e);\n }\n this.active++;\n this._innerSub(ish);\n }\n else {\n this.buffer.push(value);\n }\n };\n MergeScanSubscriber.prototype._innerSub = function (ish) {\n var innerSubscriber = new SimpleInnerSubscriber(this);\n var destination = this.destination;\n destination.add(innerSubscriber);\n var innerSubscription = innerSubscribe(ish, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n destination.add(innerSubscription);\n }\n };\n MergeScanSubscriber.prototype._complete = function () {\n this.hasCompleted = true;\n if (this.active === 0 && this.buffer.length === 0) {\n if (this.hasValue === false) {\n this.destination.next(this.acc);\n }\n this.destination.complete();\n }\n this.unsubscribe();\n };\n MergeScanSubscriber.prototype.notifyNext = function (innerValue) {\n var destination = this.destination;\n this.acc = innerValue;\n this.hasValue = true;\n destination.next(innerValue);\n };\n MergeScanSubscriber.prototype.notifyComplete = function () {\n var buffer = this.buffer;\n this.active--;\n if (buffer.length > 0) {\n this._next(buffer.shift());\n }\n else if (this.active === 0 && this.hasCompleted) {\n if (this.hasValue === false) {\n this.destination.next(this.acc);\n }\n this.destination.complete();\n }\n };\n return MergeScanSubscriber;\n}(SimpleOuterSubscriber));\nexport { MergeScanSubscriber };\n//# sourceMappingURL=mergeScan.js.map\n","/** PURE_IMPORTS_START _reduce PURE_IMPORTS_END */\nimport { reduce } from './reduce';\nexport function min(comparer) {\n var min = (typeof comparer === 'function')\n ? function (x, y) { return comparer(x, y) < 0 ? x : y; }\n : function (x, y) { return x < y ? x : y; };\n return reduce(min);\n}\n//# sourceMappingURL=min.js.map\n","/** PURE_IMPORTS_START _observable_ConnectableObservable PURE_IMPORTS_END */\nimport { connectableObservableDescriptor } from '../observable/ConnectableObservable';\nexport function multicast(subjectOrSubjectFactory, selector) {\n return function multicastOperatorFunction(source) {\n var subjectFactory;\n if (typeof subjectOrSubjectFactory === 'function') {\n subjectFactory = subjectOrSubjectFactory;\n }\n else {\n subjectFactory = function subjectFactory() {\n return subjectOrSubjectFactory;\n };\n }\n if (typeof selector === 'function') {\n return source.lift(new MulticastOperator(subjectFactory, selector));\n }\n var connectable = Object.create(source, connectableObservableDescriptor);\n connectable.source = source;\n connectable.subjectFactory = subjectFactory;\n return connectable;\n };\n}\nvar MulticastOperator = /*@__PURE__*/ (function () {\n function MulticastOperator(subjectFactory, selector) {\n this.subjectFactory = subjectFactory;\n this.selector = selector;\n }\n MulticastOperator.prototype.call = function (subscriber, source) {\n var selector = this.selector;\n var subject = this.subjectFactory();\n var subscription = selector(subject).subscribe(subscriber);\n subscription.add(source.subscribe(subject));\n return subscription;\n };\n return MulticastOperator;\n}());\nexport { MulticastOperator };\n//# sourceMappingURL=multicast.js.map\n","/** PURE_IMPORTS_START tslib,_observable_from,_util_isArray,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { from } from '../observable/from';\nimport { isArray } from '../util/isArray';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function onErrorResumeNext() {\n var nextSources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n nextSources[_i] = arguments[_i];\n }\n if (nextSources.length === 1 && isArray(nextSources[0])) {\n nextSources = nextSources[0];\n }\n return function (source) { return source.lift(new OnErrorResumeNextOperator(nextSources)); };\n}\nexport function onErrorResumeNextStatic() {\n var nextSources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n nextSources[_i] = arguments[_i];\n }\n var source = undefined;\n if (nextSources.length === 1 && isArray(nextSources[0])) {\n nextSources = nextSources[0];\n }\n source = nextSources.shift();\n return from(source).lift(new OnErrorResumeNextOperator(nextSources));\n}\nvar OnErrorResumeNextOperator = /*@__PURE__*/ (function () {\n function OnErrorResumeNextOperator(nextSources) {\n this.nextSources = nextSources;\n }\n OnErrorResumeNextOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new OnErrorResumeNextSubscriber(subscriber, this.nextSources));\n };\n return OnErrorResumeNextOperator;\n}());\nvar OnErrorResumeNextSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(OnErrorResumeNextSubscriber, _super);\n function OnErrorResumeNextSubscriber(destination, nextSources) {\n var _this = _super.call(this, destination) || this;\n _this.destination = destination;\n _this.nextSources = nextSources;\n return _this;\n }\n OnErrorResumeNextSubscriber.prototype.notifyError = function () {\n this.subscribeToNextSource();\n };\n OnErrorResumeNextSubscriber.prototype.notifyComplete = function () {\n this.subscribeToNextSource();\n };\n OnErrorResumeNextSubscriber.prototype._error = function (err) {\n this.subscribeToNextSource();\n this.unsubscribe();\n };\n OnErrorResumeNextSubscriber.prototype._complete = function () {\n this.subscribeToNextSource();\n this.unsubscribe();\n };\n OnErrorResumeNextSubscriber.prototype.subscribeToNextSource = function () {\n var next = this.nextSources.shift();\n if (!!next) {\n var innerSubscriber = new SimpleInnerSubscriber(this);\n var destination = this.destination;\n destination.add(innerSubscriber);\n var innerSubscription = innerSubscribe(next, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n destination.add(innerSubscription);\n }\n }\n else {\n this.destination.complete();\n }\n };\n return OnErrorResumeNextSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=onErrorResumeNext.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function pairwise() {\n return function (source) { return source.lift(new PairwiseOperator()); };\n}\nvar PairwiseOperator = /*@__PURE__*/ (function () {\n function PairwiseOperator() {\n }\n PairwiseOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new PairwiseSubscriber(subscriber));\n };\n return PairwiseOperator;\n}());\nvar PairwiseSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(PairwiseSubscriber, _super);\n function PairwiseSubscriber(destination) {\n var _this = _super.call(this, destination) || this;\n _this.hasPrev = false;\n return _this;\n }\n PairwiseSubscriber.prototype._next = function (value) {\n var pair;\n if (this.hasPrev) {\n pair = [this.prev, value];\n }\n else {\n this.hasPrev = true;\n }\n this.prev = value;\n if (pair) {\n this.destination.next(pair);\n }\n };\n return PairwiseSubscriber;\n}(Subscriber));\n//# sourceMappingURL=pairwise.js.map\n","/** PURE_IMPORTS_START _util_not,_filter PURE_IMPORTS_END */\nimport { not } from '../util/not';\nimport { filter } from './filter';\nexport function partition(predicate, thisArg) {\n return function (source) {\n return [\n filter(predicate, thisArg)(source),\n filter(not(predicate, thisArg))(source)\n ];\n };\n}\n//# sourceMappingURL=partition.js.map\n","/** PURE_IMPORTS_START _map PURE_IMPORTS_END */\nimport { map } from './map';\nexport function pluck() {\n var properties = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n properties[_i] = arguments[_i];\n }\n var length = properties.length;\n if (length === 0) {\n throw new Error('list of properties cannot be empty.');\n }\n return function (source) { return map(plucker(properties, length))(source); };\n}\nfunction plucker(props, length) {\n var mapper = function (x) {\n var currentProp = x;\n for (var i = 0; i < length; i++) {\n var p = currentProp != null ? currentProp[props[i]] : undefined;\n if (p !== void 0) {\n currentProp = p;\n }\n else {\n return undefined;\n }\n }\n return currentProp;\n };\n return mapper;\n}\n//# sourceMappingURL=pluck.js.map\n","/** PURE_IMPORTS_START _Subject,_multicast PURE_IMPORTS_END */\nimport { Subject } from '../Subject';\nimport { multicast } from './multicast';\nexport function publish(selector) {\n return selector ?\n multicast(function () { return new Subject(); }, selector) :\n multicast(new Subject());\n}\n//# sourceMappingURL=publish.js.map\n","/** PURE_IMPORTS_START _BehaviorSubject,_multicast PURE_IMPORTS_END */\nimport { BehaviorSubject } from '../BehaviorSubject';\nimport { multicast } from './multicast';\nexport function publishBehavior(value) {\n return function (source) { return multicast(new BehaviorSubject(value))(source); };\n}\n//# sourceMappingURL=publishBehavior.js.map\n","/** PURE_IMPORTS_START _AsyncSubject,_multicast PURE_IMPORTS_END */\nimport { AsyncSubject } from '../AsyncSubject';\nimport { multicast } from './multicast';\nexport function publishLast() {\n return function (source) { return multicast(new AsyncSubject())(source); };\n}\n//# sourceMappingURL=publishLast.js.map\n","/** PURE_IMPORTS_START _ReplaySubject,_multicast PURE_IMPORTS_END */\nimport { ReplaySubject } from '../ReplaySubject';\nimport { multicast } from './multicast';\nexport function publishReplay(bufferSize, windowTime, selectorOrScheduler, scheduler) {\n if (selectorOrScheduler && typeof selectorOrScheduler !== 'function') {\n scheduler = selectorOrScheduler;\n }\n var selector = typeof selectorOrScheduler === 'function' ? selectorOrScheduler : undefined;\n var subject = new ReplaySubject(bufferSize, windowTime, scheduler);\n return function (source) { return multicast(function () { return subject; }, selector)(source); };\n}\n//# sourceMappingURL=publishReplay.js.map\n","/** PURE_IMPORTS_START _util_isArray,_observable_race PURE_IMPORTS_END */\nimport { isArray } from '../util/isArray';\nimport { race as raceStatic } from '../observable/race';\nexport function race() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n return function raceOperatorFunction(source) {\n if (observables.length === 1 && isArray(observables[0])) {\n observables = observables[0];\n }\n return source.lift.call(raceStatic.apply(void 0, [source].concat(observables)));\n };\n}\n//# sourceMappingURL=race.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_observable_empty PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { empty } from '../observable/empty';\nexport function repeat(count) {\n if (count === void 0) {\n count = -1;\n }\n return function (source) {\n if (count === 0) {\n return empty();\n }\n else if (count < 0) {\n return source.lift(new RepeatOperator(-1, source));\n }\n else {\n return source.lift(new RepeatOperator(count - 1, source));\n }\n };\n}\nvar RepeatOperator = /*@__PURE__*/ (function () {\n function RepeatOperator(count, source) {\n this.count = count;\n this.source = source;\n }\n RepeatOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new RepeatSubscriber(subscriber, this.count, this.source));\n };\n return RepeatOperator;\n}());\nvar RepeatSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(RepeatSubscriber, _super);\n function RepeatSubscriber(destination, count, source) {\n var _this = _super.call(this, destination) || this;\n _this.count = count;\n _this.source = source;\n return _this;\n }\n RepeatSubscriber.prototype.complete = function () {\n if (!this.isStopped) {\n var _a = this, source = _a.source, count = _a.count;\n if (count === 0) {\n return _super.prototype.complete.call(this);\n }\n else if (count > -1) {\n this.count = count - 1;\n }\n source.subscribe(this._unsubscribeAndRecycle());\n }\n };\n return RepeatSubscriber;\n}(Subscriber));\n//# sourceMappingURL=repeat.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subject } from '../Subject';\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function repeatWhen(notifier) {\n return function (source) { return source.lift(new RepeatWhenOperator(notifier)); };\n}\nvar RepeatWhenOperator = /*@__PURE__*/ (function () {\n function RepeatWhenOperator(notifier) {\n this.notifier = notifier;\n }\n RepeatWhenOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new RepeatWhenSubscriber(subscriber, this.notifier, source));\n };\n return RepeatWhenOperator;\n}());\nvar RepeatWhenSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(RepeatWhenSubscriber, _super);\n function RepeatWhenSubscriber(destination, notifier, source) {\n var _this = _super.call(this, destination) || this;\n _this.notifier = notifier;\n _this.source = source;\n _this.sourceIsBeingSubscribedTo = true;\n return _this;\n }\n RepeatWhenSubscriber.prototype.notifyNext = function () {\n this.sourceIsBeingSubscribedTo = true;\n this.source.subscribe(this);\n };\n RepeatWhenSubscriber.prototype.notifyComplete = function () {\n if (this.sourceIsBeingSubscribedTo === false) {\n return _super.prototype.complete.call(this);\n }\n };\n RepeatWhenSubscriber.prototype.complete = function () {\n this.sourceIsBeingSubscribedTo = false;\n if (!this.isStopped) {\n if (!this.retries) {\n this.subscribeToRetries();\n }\n if (!this.retriesSubscription || this.retriesSubscription.closed) {\n return _super.prototype.complete.call(this);\n }\n this._unsubscribeAndRecycle();\n this.notifications.next(undefined);\n }\n };\n RepeatWhenSubscriber.prototype._unsubscribe = function () {\n var _a = this, notifications = _a.notifications, retriesSubscription = _a.retriesSubscription;\n if (notifications) {\n notifications.unsubscribe();\n this.notifications = undefined;\n }\n if (retriesSubscription) {\n retriesSubscription.unsubscribe();\n this.retriesSubscription = undefined;\n }\n this.retries = undefined;\n };\n RepeatWhenSubscriber.prototype._unsubscribeAndRecycle = function () {\n var _unsubscribe = this._unsubscribe;\n this._unsubscribe = null;\n _super.prototype._unsubscribeAndRecycle.call(this);\n this._unsubscribe = _unsubscribe;\n return this;\n };\n RepeatWhenSubscriber.prototype.subscribeToRetries = function () {\n this.notifications = new Subject();\n var retries;\n try {\n var notifier = this.notifier;\n retries = notifier(this.notifications);\n }\n catch (e) {\n return _super.prototype.complete.call(this);\n }\n this.retries = retries;\n this.retriesSubscription = innerSubscribe(retries, new SimpleInnerSubscriber(this));\n };\n return RepeatWhenSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=repeatWhen.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function retry(count) {\n if (count === void 0) {\n count = -1;\n }\n return function (source) { return source.lift(new RetryOperator(count, source)); };\n}\nvar RetryOperator = /*@__PURE__*/ (function () {\n function RetryOperator(count, source) {\n this.count = count;\n this.source = source;\n }\n RetryOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new RetrySubscriber(subscriber, this.count, this.source));\n };\n return RetryOperator;\n}());\nvar RetrySubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(RetrySubscriber, _super);\n function RetrySubscriber(destination, count, source) {\n var _this = _super.call(this, destination) || this;\n _this.count = count;\n _this.source = source;\n return _this;\n }\n RetrySubscriber.prototype.error = function (err) {\n if (!this.isStopped) {\n var _a = this, source = _a.source, count = _a.count;\n if (count === 0) {\n return _super.prototype.error.call(this, err);\n }\n else if (count > -1) {\n this.count = count - 1;\n }\n source.subscribe(this._unsubscribeAndRecycle());\n }\n };\n return RetrySubscriber;\n}(Subscriber));\n//# sourceMappingURL=retry.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subject } from '../Subject';\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function retryWhen(notifier) {\n return function (source) { return source.lift(new RetryWhenOperator(notifier, source)); };\n}\nvar RetryWhenOperator = /*@__PURE__*/ (function () {\n function RetryWhenOperator(notifier, source) {\n this.notifier = notifier;\n this.source = source;\n }\n RetryWhenOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new RetryWhenSubscriber(subscriber, this.notifier, this.source));\n };\n return RetryWhenOperator;\n}());\nvar RetryWhenSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(RetryWhenSubscriber, _super);\n function RetryWhenSubscriber(destination, notifier, source) {\n var _this = _super.call(this, destination) || this;\n _this.notifier = notifier;\n _this.source = source;\n return _this;\n }\n RetryWhenSubscriber.prototype.error = function (err) {\n if (!this.isStopped) {\n var errors = this.errors;\n var retries = this.retries;\n var retriesSubscription = this.retriesSubscription;\n if (!retries) {\n errors = new Subject();\n try {\n var notifier = this.notifier;\n retries = notifier(errors);\n }\n catch (e) {\n return _super.prototype.error.call(this, e);\n }\n retriesSubscription = innerSubscribe(retries, new SimpleInnerSubscriber(this));\n }\n else {\n this.errors = undefined;\n this.retriesSubscription = undefined;\n }\n this._unsubscribeAndRecycle();\n this.errors = errors;\n this.retries = retries;\n this.retriesSubscription = retriesSubscription;\n errors.next(err);\n }\n };\n RetryWhenSubscriber.prototype._unsubscribe = function () {\n var _a = this, errors = _a.errors, retriesSubscription = _a.retriesSubscription;\n if (errors) {\n errors.unsubscribe();\n this.errors = undefined;\n }\n if (retriesSubscription) {\n retriesSubscription.unsubscribe();\n this.retriesSubscription = undefined;\n }\n this.retries = undefined;\n };\n RetryWhenSubscriber.prototype.notifyNext = function () {\n var _unsubscribe = this._unsubscribe;\n this._unsubscribe = null;\n this._unsubscribeAndRecycle();\n this._unsubscribe = _unsubscribe;\n this.source.subscribe(this);\n };\n return RetryWhenSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=retryWhen.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function sample(notifier) {\n return function (source) { return source.lift(new SampleOperator(notifier)); };\n}\nvar SampleOperator = /*@__PURE__*/ (function () {\n function SampleOperator(notifier) {\n this.notifier = notifier;\n }\n SampleOperator.prototype.call = function (subscriber, source) {\n var sampleSubscriber = new SampleSubscriber(subscriber);\n var subscription = source.subscribe(sampleSubscriber);\n subscription.add(innerSubscribe(this.notifier, new SimpleInnerSubscriber(sampleSubscriber)));\n return subscription;\n };\n return SampleOperator;\n}());\nvar SampleSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SampleSubscriber, _super);\n function SampleSubscriber() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.hasValue = false;\n return _this;\n }\n SampleSubscriber.prototype._next = function (value) {\n this.value = value;\n this.hasValue = true;\n };\n SampleSubscriber.prototype.notifyNext = function () {\n this.emitValue();\n };\n SampleSubscriber.prototype.notifyComplete = function () {\n this.emitValue();\n };\n SampleSubscriber.prototype.emitValue = function () {\n if (this.hasValue) {\n this.hasValue = false;\n this.destination.next(this.value);\n }\n };\n return SampleSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=sample.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_scheduler_async PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { async } from '../scheduler/async';\nexport function sampleTime(period, scheduler) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n return function (source) { return source.lift(new SampleTimeOperator(period, scheduler)); };\n}\nvar SampleTimeOperator = /*@__PURE__*/ (function () {\n function SampleTimeOperator(period, scheduler) {\n this.period = period;\n this.scheduler = scheduler;\n }\n SampleTimeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new SampleTimeSubscriber(subscriber, this.period, this.scheduler));\n };\n return SampleTimeOperator;\n}());\nvar SampleTimeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SampleTimeSubscriber, _super);\n function SampleTimeSubscriber(destination, period, scheduler) {\n var _this = _super.call(this, destination) || this;\n _this.period = period;\n _this.scheduler = scheduler;\n _this.hasValue = false;\n _this.add(scheduler.schedule(dispatchNotification, period, { subscriber: _this, period: period }));\n return _this;\n }\n SampleTimeSubscriber.prototype._next = function (value) {\n this.lastValue = value;\n this.hasValue = true;\n };\n SampleTimeSubscriber.prototype.notifyNext = function () {\n if (this.hasValue) {\n this.hasValue = false;\n this.destination.next(this.lastValue);\n }\n };\n return SampleTimeSubscriber;\n}(Subscriber));\nfunction dispatchNotification(state) {\n var subscriber = state.subscriber, period = state.period;\n subscriber.notifyNext();\n this.schedule(state, period);\n}\n//# sourceMappingURL=sampleTime.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function sequenceEqual(compareTo, comparator) {\n return function (source) { return source.lift(new SequenceEqualOperator(compareTo, comparator)); };\n}\nvar SequenceEqualOperator = /*@__PURE__*/ (function () {\n function SequenceEqualOperator(compareTo, comparator) {\n this.compareTo = compareTo;\n this.comparator = comparator;\n }\n SequenceEqualOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new SequenceEqualSubscriber(subscriber, this.compareTo, this.comparator));\n };\n return SequenceEqualOperator;\n}());\nexport { SequenceEqualOperator };\nvar SequenceEqualSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SequenceEqualSubscriber, _super);\n function SequenceEqualSubscriber(destination, compareTo, comparator) {\n var _this = _super.call(this, destination) || this;\n _this.compareTo = compareTo;\n _this.comparator = comparator;\n _this._a = [];\n _this._b = [];\n _this._oneComplete = false;\n _this.destination.add(compareTo.subscribe(new SequenceEqualCompareToSubscriber(destination, _this)));\n return _this;\n }\n SequenceEqualSubscriber.prototype._next = function (value) {\n if (this._oneComplete && this._b.length === 0) {\n this.emit(false);\n }\n else {\n this._a.push(value);\n this.checkValues();\n }\n };\n SequenceEqualSubscriber.prototype._complete = function () {\n if (this._oneComplete) {\n this.emit(this._a.length === 0 && this._b.length === 0);\n }\n else {\n this._oneComplete = true;\n }\n this.unsubscribe();\n };\n SequenceEqualSubscriber.prototype.checkValues = function () {\n var _c = this, _a = _c._a, _b = _c._b, comparator = _c.comparator;\n while (_a.length > 0 && _b.length > 0) {\n var a = _a.shift();\n var b = _b.shift();\n var areEqual = false;\n try {\n areEqual = comparator ? comparator(a, b) : a === b;\n }\n catch (e) {\n this.destination.error(e);\n }\n if (!areEqual) {\n this.emit(false);\n }\n }\n };\n SequenceEqualSubscriber.prototype.emit = function (value) {\n var destination = this.destination;\n destination.next(value);\n destination.complete();\n };\n SequenceEqualSubscriber.prototype.nextB = function (value) {\n if (this._oneComplete && this._a.length === 0) {\n this.emit(false);\n }\n else {\n this._b.push(value);\n this.checkValues();\n }\n };\n SequenceEqualSubscriber.prototype.completeB = function () {\n if (this._oneComplete) {\n this.emit(this._a.length === 0 && this._b.length === 0);\n }\n else {\n this._oneComplete = true;\n }\n };\n return SequenceEqualSubscriber;\n}(Subscriber));\nexport { SequenceEqualSubscriber };\nvar SequenceEqualCompareToSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SequenceEqualCompareToSubscriber, _super);\n function SequenceEqualCompareToSubscriber(destination, parent) {\n var _this = _super.call(this, destination) || this;\n _this.parent = parent;\n return _this;\n }\n SequenceEqualCompareToSubscriber.prototype._next = function (value) {\n this.parent.nextB(value);\n };\n SequenceEqualCompareToSubscriber.prototype._error = function (err) {\n this.parent.error(err);\n this.unsubscribe();\n };\n SequenceEqualCompareToSubscriber.prototype._complete = function () {\n this.parent.completeB();\n this.unsubscribe();\n };\n return SequenceEqualCompareToSubscriber;\n}(Subscriber));\n//# sourceMappingURL=sequenceEqual.js.map\n","/** PURE_IMPORTS_START _multicast,_refCount,_Subject PURE_IMPORTS_END */\nimport { multicast } from './multicast';\nimport { refCount } from './refCount';\nimport { Subject } from '../Subject';\nfunction shareSubjectFactory() {\n return new Subject();\n}\nexport function share() {\n return function (source) { return refCount()(multicast(shareSubjectFactory)(source)); };\n}\n//# sourceMappingURL=share.js.map\n","/** PURE_IMPORTS_START _ReplaySubject PURE_IMPORTS_END */\nimport { ReplaySubject } from '../ReplaySubject';\nexport function shareReplay(configOrBufferSize, windowTime, scheduler) {\n var config;\n if (configOrBufferSize && typeof configOrBufferSize === 'object') {\n config = configOrBufferSize;\n }\n else {\n config = {\n bufferSize: configOrBufferSize,\n windowTime: windowTime,\n refCount: false,\n scheduler: scheduler,\n };\n }\n return function (source) { return source.lift(shareReplayOperator(config)); };\n}\nfunction shareReplayOperator(_a) {\n var _b = _a.bufferSize, bufferSize = _b === void 0 ? Number.POSITIVE_INFINITY : _b, _c = _a.windowTime, windowTime = _c === void 0 ? Number.POSITIVE_INFINITY : _c, useRefCount = _a.refCount, scheduler = _a.scheduler;\n var subject;\n var refCount = 0;\n var subscription;\n var hasError = false;\n var isComplete = false;\n return function shareReplayOperation(source) {\n refCount++;\n var innerSub;\n if (!subject || hasError) {\n hasError = false;\n subject = new ReplaySubject(bufferSize, windowTime, scheduler);\n innerSub = subject.subscribe(this);\n subscription = source.subscribe({\n next: function (value) {\n subject.next(value);\n },\n error: function (err) {\n hasError = true;\n subject.error(err);\n },\n complete: function () {\n isComplete = true;\n subscription = undefined;\n subject.complete();\n },\n });\n if (isComplete) {\n subscription = undefined;\n }\n }\n else {\n innerSub = subject.subscribe(this);\n }\n this.add(function () {\n refCount--;\n innerSub.unsubscribe();\n innerSub = undefined;\n if (subscription && !isComplete && useRefCount && refCount === 0) {\n subscription.unsubscribe();\n subscription = undefined;\n subject = undefined;\n }\n });\n };\n}\n//# sourceMappingURL=shareReplay.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_util_EmptyError PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { EmptyError } from '../util/EmptyError';\nexport function single(predicate) {\n return function (source) { return source.lift(new SingleOperator(predicate, source)); };\n}\nvar SingleOperator = /*@__PURE__*/ (function () {\n function SingleOperator(predicate, source) {\n this.predicate = predicate;\n this.source = source;\n }\n SingleOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new SingleSubscriber(subscriber, this.predicate, this.source));\n };\n return SingleOperator;\n}());\nvar SingleSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SingleSubscriber, _super);\n function SingleSubscriber(destination, predicate, source) {\n var _this = _super.call(this, destination) || this;\n _this.predicate = predicate;\n _this.source = source;\n _this.seenValue = false;\n _this.index = 0;\n return _this;\n }\n SingleSubscriber.prototype.applySingleValue = function (value) {\n if (this.seenValue) {\n this.destination.error('Sequence contains more than one element');\n }\n else {\n this.seenValue = true;\n this.singleValue = value;\n }\n };\n SingleSubscriber.prototype._next = function (value) {\n var index = this.index++;\n if (this.predicate) {\n this.tryNext(value, index);\n }\n else {\n this.applySingleValue(value);\n }\n };\n SingleSubscriber.prototype.tryNext = function (value, index) {\n try {\n if (this.predicate(value, index, this.source)) {\n this.applySingleValue(value);\n }\n }\n catch (err) {\n this.destination.error(err);\n }\n };\n SingleSubscriber.prototype._complete = function () {\n var destination = this.destination;\n if (this.index > 0) {\n destination.next(this.seenValue ? this.singleValue : undefined);\n destination.complete();\n }\n else {\n destination.error(new EmptyError);\n }\n };\n return SingleSubscriber;\n}(Subscriber));\n//# sourceMappingURL=single.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function skip(count) {\n return function (source) { return source.lift(new SkipOperator(count)); };\n}\nvar SkipOperator = /*@__PURE__*/ (function () {\n function SkipOperator(total) {\n this.total = total;\n }\n SkipOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new SkipSubscriber(subscriber, this.total));\n };\n return SkipOperator;\n}());\nvar SkipSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SkipSubscriber, _super);\n function SkipSubscriber(destination, total) {\n var _this = _super.call(this, destination) || this;\n _this.total = total;\n _this.count = 0;\n return _this;\n }\n SkipSubscriber.prototype._next = function (x) {\n if (++this.count > this.total) {\n this.destination.next(x);\n }\n };\n return SkipSubscriber;\n}(Subscriber));\n//# sourceMappingURL=skip.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_util_ArgumentOutOfRangeError PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nexport function skipLast(count) {\n return function (source) { return source.lift(new SkipLastOperator(count)); };\n}\nvar SkipLastOperator = /*@__PURE__*/ (function () {\n function SkipLastOperator(_skipCount) {\n this._skipCount = _skipCount;\n if (this._skipCount < 0) {\n throw new ArgumentOutOfRangeError;\n }\n }\n SkipLastOperator.prototype.call = function (subscriber, source) {\n if (this._skipCount === 0) {\n return source.subscribe(new Subscriber(subscriber));\n }\n else {\n return source.subscribe(new SkipLastSubscriber(subscriber, this._skipCount));\n }\n };\n return SkipLastOperator;\n}());\nvar SkipLastSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SkipLastSubscriber, _super);\n function SkipLastSubscriber(destination, _skipCount) {\n var _this = _super.call(this, destination) || this;\n _this._skipCount = _skipCount;\n _this._count = 0;\n _this._ring = new Array(_skipCount);\n return _this;\n }\n SkipLastSubscriber.prototype._next = function (value) {\n var skipCount = this._skipCount;\n var count = this._count++;\n if (count < skipCount) {\n this._ring[count] = value;\n }\n else {\n var currentIndex = count % skipCount;\n var ring = this._ring;\n var oldValue = ring[currentIndex];\n ring[currentIndex] = value;\n this.destination.next(oldValue);\n }\n };\n return SkipLastSubscriber;\n}(Subscriber));\n//# sourceMappingURL=skipLast.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function skipUntil(notifier) {\n return function (source) { return source.lift(new SkipUntilOperator(notifier)); };\n}\nvar SkipUntilOperator = /*@__PURE__*/ (function () {\n function SkipUntilOperator(notifier) {\n this.notifier = notifier;\n }\n SkipUntilOperator.prototype.call = function (destination, source) {\n return source.subscribe(new SkipUntilSubscriber(destination, this.notifier));\n };\n return SkipUntilOperator;\n}());\nvar SkipUntilSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SkipUntilSubscriber, _super);\n function SkipUntilSubscriber(destination, notifier) {\n var _this = _super.call(this, destination) || this;\n _this.hasValue = false;\n var innerSubscriber = new SimpleInnerSubscriber(_this);\n _this.add(innerSubscriber);\n _this.innerSubscription = innerSubscriber;\n var innerSubscription = innerSubscribe(notifier, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n _this.add(innerSubscription);\n _this.innerSubscription = innerSubscription;\n }\n return _this;\n }\n SkipUntilSubscriber.prototype._next = function (value) {\n if (this.hasValue) {\n _super.prototype._next.call(this, value);\n }\n };\n SkipUntilSubscriber.prototype.notifyNext = function () {\n this.hasValue = true;\n if (this.innerSubscription) {\n this.innerSubscription.unsubscribe();\n }\n };\n SkipUntilSubscriber.prototype.notifyComplete = function () {\n };\n return SkipUntilSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=skipUntil.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function skipWhile(predicate) {\n return function (source) { return source.lift(new SkipWhileOperator(predicate)); };\n}\nvar SkipWhileOperator = /*@__PURE__*/ (function () {\n function SkipWhileOperator(predicate) {\n this.predicate = predicate;\n }\n SkipWhileOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new SkipWhileSubscriber(subscriber, this.predicate));\n };\n return SkipWhileOperator;\n}());\nvar SkipWhileSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SkipWhileSubscriber, _super);\n function SkipWhileSubscriber(destination, predicate) {\n var _this = _super.call(this, destination) || this;\n _this.predicate = predicate;\n _this.skipping = true;\n _this.index = 0;\n return _this;\n }\n SkipWhileSubscriber.prototype._next = function (value) {\n var destination = this.destination;\n if (this.skipping) {\n this.tryCallPredicate(value);\n }\n if (!this.skipping) {\n destination.next(value);\n }\n };\n SkipWhileSubscriber.prototype.tryCallPredicate = function (value) {\n try {\n var result = this.predicate(value, this.index++);\n this.skipping = Boolean(result);\n }\n catch (err) {\n this.destination.error(err);\n }\n };\n return SkipWhileSubscriber;\n}(Subscriber));\n//# sourceMappingURL=skipWhile.js.map\n","/** PURE_IMPORTS_START _observable_concat,_util_isScheduler PURE_IMPORTS_END */\nimport { concat } from '../observable/concat';\nimport { isScheduler } from '../util/isScheduler';\nexport function startWith() {\n var array = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n array[_i] = arguments[_i];\n }\n var scheduler = array[array.length - 1];\n if (isScheduler(scheduler)) {\n array.pop();\n return function (source) { return concat(array, source, scheduler); };\n }\n else {\n return function (source) { return concat(array, source); };\n }\n}\n//# sourceMappingURL=startWith.js.map\n","/** PURE_IMPORTS_START tslib,_Observable,_scheduler_asap,_util_isNumeric PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Observable } from '../Observable';\nimport { asap } from '../scheduler/asap';\nimport { isNumeric } from '../util/isNumeric';\nvar SubscribeOnObservable = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SubscribeOnObservable, _super);\n function SubscribeOnObservable(source, delayTime, scheduler) {\n if (delayTime === void 0) {\n delayTime = 0;\n }\n if (scheduler === void 0) {\n scheduler = asap;\n }\n var _this = _super.call(this) || this;\n _this.source = source;\n _this.delayTime = delayTime;\n _this.scheduler = scheduler;\n if (!isNumeric(delayTime) || delayTime < 0) {\n _this.delayTime = 0;\n }\n if (!scheduler || typeof scheduler.schedule !== 'function') {\n _this.scheduler = asap;\n }\n return _this;\n }\n SubscribeOnObservable.create = function (source, delay, scheduler) {\n if (delay === void 0) {\n delay = 0;\n }\n if (scheduler === void 0) {\n scheduler = asap;\n }\n return new SubscribeOnObservable(source, delay, scheduler);\n };\n SubscribeOnObservable.dispatch = function (arg) {\n var source = arg.source, subscriber = arg.subscriber;\n return this.add(source.subscribe(subscriber));\n };\n SubscribeOnObservable.prototype._subscribe = function (subscriber) {\n var delay = this.delayTime;\n var source = this.source;\n var scheduler = this.scheduler;\n return scheduler.schedule(SubscribeOnObservable.dispatch, delay, {\n source: source, subscriber: subscriber\n });\n };\n return SubscribeOnObservable;\n}(Observable));\nexport { SubscribeOnObservable };\n//# sourceMappingURL=SubscribeOnObservable.js.map\n","/** PURE_IMPORTS_START _observable_SubscribeOnObservable PURE_IMPORTS_END */\nimport { SubscribeOnObservable } from '../observable/SubscribeOnObservable';\nexport function subscribeOn(scheduler, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n return function subscribeOnOperatorFunction(source) {\n return source.lift(new SubscribeOnOperator(scheduler, delay));\n };\n}\nvar SubscribeOnOperator = /*@__PURE__*/ (function () {\n function SubscribeOnOperator(scheduler, delay) {\n this.scheduler = scheduler;\n this.delay = delay;\n }\n SubscribeOnOperator.prototype.call = function (subscriber, source) {\n return new SubscribeOnObservable(source, this.delay, this.scheduler).subscribe(subscriber);\n };\n return SubscribeOnOperator;\n}());\n//# sourceMappingURL=subscribeOn.js.map\n","/** PURE_IMPORTS_START tslib,_map,_observable_from,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { map } from './map';\nimport { from } from '../observable/from';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function switchMap(project, resultSelector) {\n if (typeof resultSelector === 'function') {\n return function (source) { return source.pipe(switchMap(function (a, i) { return from(project(a, i)).pipe(map(function (b, ii) { return resultSelector(a, b, i, ii); })); })); };\n }\n return function (source) { return source.lift(new SwitchMapOperator(project)); };\n}\nvar SwitchMapOperator = /*@__PURE__*/ (function () {\n function SwitchMapOperator(project) {\n this.project = project;\n }\n SwitchMapOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new SwitchMapSubscriber(subscriber, this.project));\n };\n return SwitchMapOperator;\n}());\nvar SwitchMapSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(SwitchMapSubscriber, _super);\n function SwitchMapSubscriber(destination, project) {\n var _this = _super.call(this, destination) || this;\n _this.project = project;\n _this.index = 0;\n return _this;\n }\n SwitchMapSubscriber.prototype._next = function (value) {\n var result;\n var index = this.index++;\n try {\n result = this.project(value, index);\n }\n catch (error) {\n this.destination.error(error);\n return;\n }\n this._innerSub(result);\n };\n SwitchMapSubscriber.prototype._innerSub = function (result) {\n var innerSubscription = this.innerSubscription;\n if (innerSubscription) {\n innerSubscription.unsubscribe();\n }\n var innerSubscriber = new SimpleInnerSubscriber(this);\n var destination = this.destination;\n destination.add(innerSubscriber);\n this.innerSubscription = innerSubscribe(result, innerSubscriber);\n if (this.innerSubscription !== innerSubscriber) {\n destination.add(this.innerSubscription);\n }\n };\n SwitchMapSubscriber.prototype._complete = function () {\n var innerSubscription = this.innerSubscription;\n if (!innerSubscription || innerSubscription.closed) {\n _super.prototype._complete.call(this);\n }\n this.unsubscribe();\n };\n SwitchMapSubscriber.prototype._unsubscribe = function () {\n this.innerSubscription = undefined;\n };\n SwitchMapSubscriber.prototype.notifyComplete = function () {\n this.innerSubscription = undefined;\n if (this.isStopped) {\n _super.prototype._complete.call(this);\n }\n };\n SwitchMapSubscriber.prototype.notifyNext = function (innerValue) {\n this.destination.next(innerValue);\n };\n return SwitchMapSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=switchMap.js.map\n","/** PURE_IMPORTS_START _switchMap,_util_identity PURE_IMPORTS_END */\nimport { switchMap } from './switchMap';\nimport { identity } from '../util/identity';\nexport function switchAll() {\n return switchMap(identity);\n}\n//# sourceMappingURL=switchAll.js.map\n","/** PURE_IMPORTS_START _switchMap PURE_IMPORTS_END */\nimport { switchMap } from './switchMap';\nexport function switchMapTo(innerObservable, resultSelector) {\n return resultSelector ? switchMap(function () { return innerObservable; }, resultSelector) : switchMap(function () { return innerObservable; });\n}\n//# sourceMappingURL=switchMapTo.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { innerSubscribe, SimpleInnerSubscriber, SimpleOuterSubscriber } from '../innerSubscribe';\nexport function takeUntil(notifier) {\n return function (source) { return source.lift(new TakeUntilOperator(notifier)); };\n}\nvar TakeUntilOperator = /*@__PURE__*/ (function () {\n function TakeUntilOperator(notifier) {\n this.notifier = notifier;\n }\n TakeUntilOperator.prototype.call = function (subscriber, source) {\n var takeUntilSubscriber = new TakeUntilSubscriber(subscriber);\n var notifierSubscription = innerSubscribe(this.notifier, new SimpleInnerSubscriber(takeUntilSubscriber));\n if (notifierSubscription && !takeUntilSubscriber.seenValue) {\n takeUntilSubscriber.add(notifierSubscription);\n return source.subscribe(takeUntilSubscriber);\n }\n return takeUntilSubscriber;\n };\n return TakeUntilOperator;\n}());\nvar TakeUntilSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(TakeUntilSubscriber, _super);\n function TakeUntilSubscriber(destination) {\n var _this = _super.call(this, destination) || this;\n _this.seenValue = false;\n return _this;\n }\n TakeUntilSubscriber.prototype.notifyNext = function () {\n this.seenValue = true;\n this.complete();\n };\n TakeUntilSubscriber.prototype.notifyComplete = function () {\n };\n return TakeUntilSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=takeUntil.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function takeWhile(predicate, inclusive) {\n if (inclusive === void 0) {\n inclusive = false;\n }\n return function (source) {\n return source.lift(new TakeWhileOperator(predicate, inclusive));\n };\n}\nvar TakeWhileOperator = /*@__PURE__*/ (function () {\n function TakeWhileOperator(predicate, inclusive) {\n this.predicate = predicate;\n this.inclusive = inclusive;\n }\n TakeWhileOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new TakeWhileSubscriber(subscriber, this.predicate, this.inclusive));\n };\n return TakeWhileOperator;\n}());\nvar TakeWhileSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(TakeWhileSubscriber, _super);\n function TakeWhileSubscriber(destination, predicate, inclusive) {\n var _this = _super.call(this, destination) || this;\n _this.predicate = predicate;\n _this.inclusive = inclusive;\n _this.index = 0;\n return _this;\n }\n TakeWhileSubscriber.prototype._next = function (value) {\n var destination = this.destination;\n var result;\n try {\n result = this.predicate(value, this.index++);\n }\n catch (err) {\n destination.error(err);\n return;\n }\n this.nextOrComplete(value, result);\n };\n TakeWhileSubscriber.prototype.nextOrComplete = function (value, predicateResult) {\n var destination = this.destination;\n if (Boolean(predicateResult)) {\n destination.next(value);\n }\n else {\n if (this.inclusive) {\n destination.next(value);\n }\n destination.complete();\n }\n };\n return TakeWhileSubscriber;\n}(Subscriber));\n//# sourceMappingURL=takeWhile.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_util_noop,_util_isFunction PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { noop } from '../util/noop';\nimport { isFunction } from '../util/isFunction';\nexport function tap(nextOrObserver, error, complete) {\n return function tapOperatorFunction(source) {\n return source.lift(new DoOperator(nextOrObserver, error, complete));\n };\n}\nvar DoOperator = /*@__PURE__*/ (function () {\n function DoOperator(nextOrObserver, error, complete) {\n this.nextOrObserver = nextOrObserver;\n this.error = error;\n this.complete = complete;\n }\n DoOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new TapSubscriber(subscriber, this.nextOrObserver, this.error, this.complete));\n };\n return DoOperator;\n}());\nvar TapSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(TapSubscriber, _super);\n function TapSubscriber(destination, observerOrNext, error, complete) {\n var _this = _super.call(this, destination) || this;\n _this._tapNext = noop;\n _this._tapError = noop;\n _this._tapComplete = noop;\n _this._tapError = error || noop;\n _this._tapComplete = complete || noop;\n if (isFunction(observerOrNext)) {\n _this._context = _this;\n _this._tapNext = observerOrNext;\n }\n else if (observerOrNext) {\n _this._context = observerOrNext;\n _this._tapNext = observerOrNext.next || noop;\n _this._tapError = observerOrNext.error || noop;\n _this._tapComplete = observerOrNext.complete || noop;\n }\n return _this;\n }\n TapSubscriber.prototype._next = function (value) {\n try {\n this._tapNext.call(this._context, value);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(value);\n };\n TapSubscriber.prototype._error = function (err) {\n try {\n this._tapError.call(this._context, err);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.error(err);\n };\n TapSubscriber.prototype._complete = function () {\n try {\n this._tapComplete.call(this._context);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n return this.destination.complete();\n };\n return TapSubscriber;\n}(Subscriber));\n//# sourceMappingURL=tap.js.map\n","/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport var defaultThrottleConfig = {\n leading: true,\n trailing: false\n};\nexport function throttle(durationSelector, config) {\n if (config === void 0) {\n config = defaultThrottleConfig;\n }\n return function (source) { return source.lift(new ThrottleOperator(durationSelector, !!config.leading, !!config.trailing)); };\n}\nvar ThrottleOperator = /*@__PURE__*/ (function () {\n function ThrottleOperator(durationSelector, leading, trailing) {\n this.durationSelector = durationSelector;\n this.leading = leading;\n this.trailing = trailing;\n }\n ThrottleOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new ThrottleSubscriber(subscriber, this.durationSelector, this.leading, this.trailing));\n };\n return ThrottleOperator;\n}());\nvar ThrottleSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ThrottleSubscriber, _super);\n function ThrottleSubscriber(destination, durationSelector, _leading, _trailing) {\n var _this = _super.call(this, destination) || this;\n _this.destination = destination;\n _this.durationSelector = durationSelector;\n _this._leading = _leading;\n _this._trailing = _trailing;\n _this._hasValue = false;\n return _this;\n }\n ThrottleSubscriber.prototype._next = function (value) {\n this._hasValue = true;\n this._sendValue = value;\n if (!this._throttled) {\n if (this._leading) {\n this.send();\n }\n else {\n this.throttle(value);\n }\n }\n };\n ThrottleSubscriber.prototype.send = function () {\n var _a = this, _hasValue = _a._hasValue, _sendValue = _a._sendValue;\n if (_hasValue) {\n this.destination.next(_sendValue);\n this.throttle(_sendValue);\n }\n this._hasValue = false;\n this._sendValue = undefined;\n };\n ThrottleSubscriber.prototype.throttle = function (value) {\n var duration = this.tryDurationSelector(value);\n if (!!duration) {\n this.add(this._throttled = innerSubscribe(duration, new SimpleInnerSubscriber(this)));\n }\n };\n ThrottleSubscriber.prototype.tryDurationSelector = function (value) {\n try {\n return this.durationSelector(value);\n }\n catch (err) {\n this.destination.error(err);\n return null;\n }\n };\n ThrottleSubscriber.prototype.throttlingDone = function () {\n var _a = this, _throttled = _a._throttled, _trailing = _a._trailing;\n if (_throttled) {\n _throttled.unsubscribe();\n }\n this._throttled = undefined;\n if (_trailing) {\n this.send();\n }\n };\n ThrottleSubscriber.prototype.notifyNext = function () {\n this.throttlingDone();\n };\n ThrottleSubscriber.prototype.notifyComplete = function () {\n this.throttlingDone();\n };\n return ThrottleSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=throttle.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_scheduler_async,_throttle PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { async } from '../scheduler/async';\nimport { defaultThrottleConfig } from './throttle';\nexport function throttleTime(duration, scheduler, config) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n if (config === void 0) {\n config = defaultThrottleConfig;\n }\n return function (source) { return source.lift(new ThrottleTimeOperator(duration, scheduler, config.leading, config.trailing)); };\n}\nvar ThrottleTimeOperator = /*@__PURE__*/ (function () {\n function ThrottleTimeOperator(duration, scheduler, leading, trailing) {\n this.duration = duration;\n this.scheduler = scheduler;\n this.leading = leading;\n this.trailing = trailing;\n }\n ThrottleTimeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new ThrottleTimeSubscriber(subscriber, this.duration, this.scheduler, this.leading, this.trailing));\n };\n return ThrottleTimeOperator;\n}());\nvar ThrottleTimeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(ThrottleTimeSubscriber, _super);\n function ThrottleTimeSubscriber(destination, duration, scheduler, leading, trailing) {\n var _this = _super.call(this, destination) || this;\n _this.duration = duration;\n _this.scheduler = scheduler;\n _this.leading = leading;\n _this.trailing = trailing;\n _this._hasTrailingValue = false;\n _this._trailingValue = null;\n return _this;\n }\n ThrottleTimeSubscriber.prototype._next = function (value) {\n if (this.throttled) {\n if (this.trailing) {\n this._trailingValue = value;\n this._hasTrailingValue = true;\n }\n }\n else {\n this.add(this.throttled = this.scheduler.schedule(dispatchNext, this.duration, { subscriber: this }));\n if (this.leading) {\n this.destination.next(value);\n }\n else if (this.trailing) {\n this._trailingValue = value;\n this._hasTrailingValue = true;\n }\n }\n };\n ThrottleTimeSubscriber.prototype._complete = function () {\n if (this._hasTrailingValue) {\n this.destination.next(this._trailingValue);\n this.destination.complete();\n }\n else {\n this.destination.complete();\n }\n };\n ThrottleTimeSubscriber.prototype.clearThrottle = function () {\n var throttled = this.throttled;\n if (throttled) {\n if (this.trailing && this._hasTrailingValue) {\n this.destination.next(this._trailingValue);\n this._trailingValue = null;\n this._hasTrailingValue = false;\n }\n throttled.unsubscribe();\n this.remove(throttled);\n this.throttled = null;\n }\n };\n return ThrottleTimeSubscriber;\n}(Subscriber));\nfunction dispatchNext(arg) {\n var subscriber = arg.subscriber;\n subscriber.clearThrottle();\n}\n//# sourceMappingURL=throttleTime.js.map\n","/** PURE_IMPORTS_START _scheduler_async,_scan,_observable_defer,_map PURE_IMPORTS_END */\nimport { async } from '../scheduler/async';\nimport { scan } from './scan';\nimport { defer } from '../observable/defer';\nimport { map } from './map';\nexport function timeInterval(scheduler) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n return function (source) {\n return defer(function () {\n return source.pipe(scan(function (_a, value) {\n var current = _a.current;\n return ({ value: value, current: scheduler.now(), last: current });\n }, { current: scheduler.now(), value: undefined, last: undefined }), map(function (_a) {\n var current = _a.current, last = _a.last, value = _a.value;\n return new TimeInterval(value, current - last);\n }));\n });\n };\n}\nvar TimeInterval = /*@__PURE__*/ (function () {\n function TimeInterval(value, interval) {\n this.value = value;\n this.interval = interval;\n }\n return TimeInterval;\n}());\nexport { TimeInterval };\n//# sourceMappingURL=timeInterval.js.map\n","/** PURE_IMPORTS_START tslib,_scheduler_async,_util_isDate,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { async } from '../scheduler/async';\nimport { isDate } from '../util/isDate';\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function timeoutWith(due, withObservable, scheduler) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n return function (source) {\n var absoluteTimeout = isDate(due);\n var waitFor = absoluteTimeout ? (+due - scheduler.now()) : Math.abs(due);\n return source.lift(new TimeoutWithOperator(waitFor, absoluteTimeout, withObservable, scheduler));\n };\n}\nvar TimeoutWithOperator = /*@__PURE__*/ (function () {\n function TimeoutWithOperator(waitFor, absoluteTimeout, withObservable, scheduler) {\n this.waitFor = waitFor;\n this.absoluteTimeout = absoluteTimeout;\n this.withObservable = withObservable;\n this.scheduler = scheduler;\n }\n TimeoutWithOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new TimeoutWithSubscriber(subscriber, this.absoluteTimeout, this.waitFor, this.withObservable, this.scheduler));\n };\n return TimeoutWithOperator;\n}());\nvar TimeoutWithSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(TimeoutWithSubscriber, _super);\n function TimeoutWithSubscriber(destination, absoluteTimeout, waitFor, withObservable, scheduler) {\n var _this = _super.call(this, destination) || this;\n _this.absoluteTimeout = absoluteTimeout;\n _this.waitFor = waitFor;\n _this.withObservable = withObservable;\n _this.scheduler = scheduler;\n _this.scheduleTimeout();\n return _this;\n }\n TimeoutWithSubscriber.dispatchTimeout = function (subscriber) {\n var withObservable = subscriber.withObservable;\n subscriber._unsubscribeAndRecycle();\n subscriber.add(innerSubscribe(withObservable, new SimpleInnerSubscriber(subscriber)));\n };\n TimeoutWithSubscriber.prototype.scheduleTimeout = function () {\n var action = this.action;\n if (action) {\n this.action = action.schedule(this, this.waitFor);\n }\n else {\n this.add(this.action = this.scheduler.schedule(TimeoutWithSubscriber.dispatchTimeout, this.waitFor, this));\n }\n };\n TimeoutWithSubscriber.prototype._next = function (value) {\n if (!this.absoluteTimeout) {\n this.scheduleTimeout();\n }\n _super.prototype._next.call(this, value);\n };\n TimeoutWithSubscriber.prototype._unsubscribe = function () {\n this.action = undefined;\n this.scheduler = null;\n this.withObservable = null;\n };\n return TimeoutWithSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=timeoutWith.js.map\n","/** PURE_IMPORTS_START _scheduler_async,_util_TimeoutError,_timeoutWith,_observable_throwError PURE_IMPORTS_END */\nimport { async } from '../scheduler/async';\nimport { TimeoutError } from '../util/TimeoutError';\nimport { timeoutWith } from './timeoutWith';\nimport { throwError } from '../observable/throwError';\nexport function timeout(due, scheduler) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n return timeoutWith(due, throwError(new TimeoutError()), scheduler);\n}\n//# sourceMappingURL=timeout.js.map\n","/** PURE_IMPORTS_START _scheduler_async,_map PURE_IMPORTS_END */\nimport { async } from '../scheduler/async';\nimport { map } from './map';\nexport function timestamp(scheduler) {\n if (scheduler === void 0) {\n scheduler = async;\n }\n return map(function (value) { return new Timestamp(value, scheduler.now()); });\n}\nvar Timestamp = /*@__PURE__*/ (function () {\n function Timestamp(value, timestamp) {\n this.value = value;\n this.timestamp = timestamp;\n }\n return Timestamp;\n}());\nexport { Timestamp };\n//# sourceMappingURL=timestamp.js.map\n","/** PURE_IMPORTS_START _reduce PURE_IMPORTS_END */\nimport { reduce } from './reduce';\nfunction toArrayReducer(arr, item, index) {\n if (index === 0) {\n return [item];\n }\n arr.push(item);\n return arr;\n}\nexport function toArray() {\n return reduce(toArrayReducer, []);\n}\n//# sourceMappingURL=toArray.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_innerSubscribe PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subject } from '../Subject';\nimport { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function window(windowBoundaries) {\n return function windowOperatorFunction(source) {\n return source.lift(new WindowOperator(windowBoundaries));\n };\n}\nvar WindowOperator = /*@__PURE__*/ (function () {\n function WindowOperator(windowBoundaries) {\n this.windowBoundaries = windowBoundaries;\n }\n WindowOperator.prototype.call = function (subscriber, source) {\n var windowSubscriber = new WindowSubscriber(subscriber);\n var sourceSubscription = source.subscribe(windowSubscriber);\n if (!sourceSubscription.closed) {\n windowSubscriber.add(innerSubscribe(this.windowBoundaries, new SimpleInnerSubscriber(windowSubscriber)));\n }\n return sourceSubscription;\n };\n return WindowOperator;\n}());\nvar WindowSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(WindowSubscriber, _super);\n function WindowSubscriber(destination) {\n var _this = _super.call(this, destination) || this;\n _this.window = new Subject();\n destination.next(_this.window);\n return _this;\n }\n WindowSubscriber.prototype.notifyNext = function () {\n this.openWindow();\n };\n WindowSubscriber.prototype.notifyError = function (error) {\n this._error(error);\n };\n WindowSubscriber.prototype.notifyComplete = function () {\n this._complete();\n };\n WindowSubscriber.prototype._next = function (value) {\n this.window.next(value);\n };\n WindowSubscriber.prototype._error = function (err) {\n this.window.error(err);\n this.destination.error(err);\n };\n WindowSubscriber.prototype._complete = function () {\n this.window.complete();\n this.destination.complete();\n };\n WindowSubscriber.prototype._unsubscribe = function () {\n this.window = null;\n };\n WindowSubscriber.prototype.openWindow = function () {\n var prevWindow = this.window;\n if (prevWindow) {\n prevWindow.complete();\n }\n var destination = this.destination;\n var newWindow = this.window = new Subject();\n destination.next(newWindow);\n };\n return WindowSubscriber;\n}(SimpleOuterSubscriber));\n//# sourceMappingURL=window.js.map\n","/** PURE_IMPORTS_START tslib,_Subscriber,_Subject PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nimport { Subject } from '../Subject';\nexport function windowCount(windowSize, startWindowEvery) {\n if (startWindowEvery === void 0) {\n startWindowEvery = 0;\n }\n return function windowCountOperatorFunction(source) {\n return source.lift(new WindowCountOperator(windowSize, startWindowEvery));\n };\n}\nvar WindowCountOperator = /*@__PURE__*/ (function () {\n function WindowCountOperator(windowSize, startWindowEvery) {\n this.windowSize = windowSize;\n this.startWindowEvery = startWindowEvery;\n }\n WindowCountOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new WindowCountSubscriber(subscriber, this.windowSize, this.startWindowEvery));\n };\n return WindowCountOperator;\n}());\nvar WindowCountSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(WindowCountSubscriber, _super);\n function WindowCountSubscriber(destination, windowSize, startWindowEvery) {\n var _this = _super.call(this, destination) || this;\n _this.destination = destination;\n _this.windowSize = windowSize;\n _this.startWindowEvery = startWindowEvery;\n _this.windows = [new Subject()];\n _this.count = 0;\n destination.next(_this.windows[0]);\n return _this;\n }\n WindowCountSubscriber.prototype._next = function (value) {\n var startWindowEvery = (this.startWindowEvery > 0) ? this.startWindowEvery : this.windowSize;\n var destination = this.destination;\n var windowSize = this.windowSize;\n var windows = this.windows;\n var len = windows.length;\n for (var i = 0; i < len && !this.closed; i++) {\n windows[i].next(value);\n }\n var c = this.count - windowSize + 1;\n if (c >= 0 && c % startWindowEvery === 0 && !this.closed) {\n windows.shift().complete();\n }\n if (++this.count % startWindowEvery === 0 && !this.closed) {\n var window_1 = new Subject();\n windows.push(window_1);\n destination.next(window_1);\n }\n };\n WindowCountSubscriber.prototype._error = function (err) {\n var windows = this.windows;\n if (windows) {\n while (windows.length > 0 && !this.closed) {\n windows.shift().error(err);\n }\n }\n this.destination.error(err);\n };\n WindowCountSubscriber.prototype._complete = function () {\n var windows = this.windows;\n if (windows) {\n while (windows.length > 0 && !this.closed) {\n windows.shift().complete();\n }\n }\n this.destination.complete();\n };\n WindowCountSubscriber.prototype._unsubscribe = function () {\n this.count = 0;\n this.windows = null;\n };\n return WindowCountSubscriber;\n}(Subscriber));\n//# sourceMappingURL=windowCount.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_scheduler_async,_Subscriber,_util_isNumeric,_util_isScheduler PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subject } from '../Subject';\nimport { async } from '../scheduler/async';\nimport { Subscriber } from '../Subscriber';\nimport { isNumeric } from '../util/isNumeric';\nimport { isScheduler } from '../util/isScheduler';\nexport function windowTime(windowTimeSpan) {\n var scheduler = async;\n var windowCreationInterval = null;\n var maxWindowSize = Number.POSITIVE_INFINITY;\n if (isScheduler(arguments[3])) {\n scheduler = arguments[3];\n }\n if (isScheduler(arguments[2])) {\n scheduler = arguments[2];\n }\n else if (isNumeric(arguments[2])) {\n maxWindowSize = Number(arguments[2]);\n }\n if (isScheduler(arguments[1])) {\n scheduler = arguments[1];\n }\n else if (isNumeric(arguments[1])) {\n windowCreationInterval = Number(arguments[1]);\n }\n return function windowTimeOperatorFunction(source) {\n return source.lift(new WindowTimeOperator(windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler));\n };\n}\nvar WindowTimeOperator = /*@__PURE__*/ (function () {\n function WindowTimeOperator(windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler) {\n this.windowTimeSpan = windowTimeSpan;\n this.windowCreationInterval = windowCreationInterval;\n this.maxWindowSize = maxWindowSize;\n this.scheduler = scheduler;\n }\n WindowTimeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new WindowTimeSubscriber(subscriber, this.windowTimeSpan, this.windowCreationInterval, this.maxWindowSize, this.scheduler));\n };\n return WindowTimeOperator;\n}());\nvar CountedSubject = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(CountedSubject, _super);\n function CountedSubject() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this._numberOfNextedValues = 0;\n return _this;\n }\n CountedSubject.prototype.next = function (value) {\n this._numberOfNextedValues++;\n _super.prototype.next.call(this, value);\n };\n Object.defineProperty(CountedSubject.prototype, \"numberOfNextedValues\", {\n get: function () {\n return this._numberOfNextedValues;\n },\n enumerable: true,\n configurable: true\n });\n return CountedSubject;\n}(Subject));\nvar WindowTimeSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(WindowTimeSubscriber, _super);\n function WindowTimeSubscriber(destination, windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler) {\n var _this = _super.call(this, destination) || this;\n _this.destination = destination;\n _this.windowTimeSpan = windowTimeSpan;\n _this.windowCreationInterval = windowCreationInterval;\n _this.maxWindowSize = maxWindowSize;\n _this.scheduler = scheduler;\n _this.windows = [];\n var window = _this.openWindow();\n if (windowCreationInterval !== null && windowCreationInterval >= 0) {\n var closeState = { subscriber: _this, window: window, context: null };\n var creationState = { windowTimeSpan: windowTimeSpan, windowCreationInterval: windowCreationInterval, subscriber: _this, scheduler: scheduler };\n _this.add(scheduler.schedule(dispatchWindowClose, windowTimeSpan, closeState));\n _this.add(scheduler.schedule(dispatchWindowCreation, windowCreationInterval, creationState));\n }\n else {\n var timeSpanOnlyState = { subscriber: _this, window: window, windowTimeSpan: windowTimeSpan };\n _this.add(scheduler.schedule(dispatchWindowTimeSpanOnly, windowTimeSpan, timeSpanOnlyState));\n }\n return _this;\n }\n WindowTimeSubscriber.prototype._next = function (value) {\n var windows = this.windows;\n var len = windows.length;\n for (var i = 0; i < len; i++) {\n var window_1 = windows[i];\n if (!window_1.closed) {\n window_1.next(value);\n if (window_1.numberOfNextedValues >= this.maxWindowSize) {\n this.closeWindow(window_1);\n }\n }\n }\n };\n WindowTimeSubscriber.prototype._error = function (err) {\n var windows = this.windows;\n while (windows.length > 0) {\n windows.shift().error(err);\n }\n this.destination.error(err);\n };\n WindowTimeSubscriber.prototype._complete = function () {\n var windows = this.windows;\n while (windows.length > 0) {\n var window_2 = windows.shift();\n if (!window_2.closed) {\n window_2.complete();\n }\n }\n this.destination.complete();\n };\n WindowTimeSubscriber.prototype.openWindow = function () {\n var window = new CountedSubject();\n this.windows.push(window);\n var destination = this.destination;\n destination.next(window);\n return window;\n };\n WindowTimeSubscriber.prototype.closeWindow = function (window) {\n window.complete();\n var windows = this.windows;\n windows.splice(windows.indexOf(window), 1);\n };\n return WindowTimeSubscriber;\n}(Subscriber));\nfunction dispatchWindowTimeSpanOnly(state) {\n var subscriber = state.subscriber, windowTimeSpan = state.windowTimeSpan, window = state.window;\n if (window) {\n subscriber.closeWindow(window);\n }\n state.window = subscriber.openWindow();\n this.schedule(state, windowTimeSpan);\n}\nfunction dispatchWindowCreation(state) {\n var windowTimeSpan = state.windowTimeSpan, subscriber = state.subscriber, scheduler = state.scheduler, windowCreationInterval = state.windowCreationInterval;\n var window = subscriber.openWindow();\n var action = this;\n var context = { action: action, subscription: null };\n var timeSpanState = { subscriber: subscriber, window: window, context: context };\n context.subscription = scheduler.schedule(dispatchWindowClose, windowTimeSpan, timeSpanState);\n action.add(context.subscription);\n action.schedule(state, windowCreationInterval);\n}\nfunction dispatchWindowClose(state) {\n var subscriber = state.subscriber, window = state.window, context = state.context;\n if (context && context.action && context.subscription) {\n context.action.remove(context.subscription);\n }\n subscriber.closeWindow(window);\n}\n//# sourceMappingURL=windowTime.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_Subscription,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subject } from '../Subject';\nimport { Subscription } from '../Subscription';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nexport function windowToggle(openings, closingSelector) {\n return function (source) { return source.lift(new WindowToggleOperator(openings, closingSelector)); };\n}\nvar WindowToggleOperator = /*@__PURE__*/ (function () {\n function WindowToggleOperator(openings, closingSelector) {\n this.openings = openings;\n this.closingSelector = closingSelector;\n }\n WindowToggleOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new WindowToggleSubscriber(subscriber, this.openings, this.closingSelector));\n };\n return WindowToggleOperator;\n}());\nvar WindowToggleSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(WindowToggleSubscriber, _super);\n function WindowToggleSubscriber(destination, openings, closingSelector) {\n var _this = _super.call(this, destination) || this;\n _this.openings = openings;\n _this.closingSelector = closingSelector;\n _this.contexts = [];\n _this.add(_this.openSubscription = subscribeToResult(_this, openings, openings));\n return _this;\n }\n WindowToggleSubscriber.prototype._next = function (value) {\n var contexts = this.contexts;\n if (contexts) {\n var len = contexts.length;\n for (var i = 0; i < len; i++) {\n contexts[i].window.next(value);\n }\n }\n };\n WindowToggleSubscriber.prototype._error = function (err) {\n var contexts = this.contexts;\n this.contexts = null;\n if (contexts) {\n var len = contexts.length;\n var index = -1;\n while (++index < len) {\n var context_1 = contexts[index];\n context_1.window.error(err);\n context_1.subscription.unsubscribe();\n }\n }\n _super.prototype._error.call(this, err);\n };\n WindowToggleSubscriber.prototype._complete = function () {\n var contexts = this.contexts;\n this.contexts = null;\n if (contexts) {\n var len = contexts.length;\n var index = -1;\n while (++index < len) {\n var context_2 = contexts[index];\n context_2.window.complete();\n context_2.subscription.unsubscribe();\n }\n }\n _super.prototype._complete.call(this);\n };\n WindowToggleSubscriber.prototype._unsubscribe = function () {\n var contexts = this.contexts;\n this.contexts = null;\n if (contexts) {\n var len = contexts.length;\n var index = -1;\n while (++index < len) {\n var context_3 = contexts[index];\n context_3.window.unsubscribe();\n context_3.subscription.unsubscribe();\n }\n }\n };\n WindowToggleSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n if (outerValue === this.openings) {\n var closingNotifier = void 0;\n try {\n var closingSelector = this.closingSelector;\n closingNotifier = closingSelector(innerValue);\n }\n catch (e) {\n return this.error(e);\n }\n var window_1 = new Subject();\n var subscription = new Subscription();\n var context_4 = { window: window_1, subscription: subscription };\n this.contexts.push(context_4);\n var innerSubscription = subscribeToResult(this, closingNotifier, context_4);\n if (innerSubscription.closed) {\n this.closeWindow(this.contexts.length - 1);\n }\n else {\n innerSubscription.context = context_4;\n subscription.add(innerSubscription);\n }\n this.destination.next(window_1);\n }\n else {\n this.closeWindow(this.contexts.indexOf(outerValue));\n }\n };\n WindowToggleSubscriber.prototype.notifyError = function (err) {\n this.error(err);\n };\n WindowToggleSubscriber.prototype.notifyComplete = function (inner) {\n if (inner !== this.openSubscription) {\n this.closeWindow(this.contexts.indexOf(inner.context));\n }\n };\n WindowToggleSubscriber.prototype.closeWindow = function (index) {\n if (index === -1) {\n return;\n }\n var contexts = this.contexts;\n var context = contexts[index];\n var window = context.window, subscription = context.subscription;\n contexts.splice(index, 1);\n window.complete();\n subscription.unsubscribe();\n };\n return WindowToggleSubscriber;\n}(OuterSubscriber));\n//# sourceMappingURL=windowToggle.js.map\n","/** PURE_IMPORTS_START tslib,_Subject,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { Subject } from '../Subject';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nexport function windowWhen(closingSelector) {\n return function windowWhenOperatorFunction(source) {\n return source.lift(new WindowOperator(closingSelector));\n };\n}\nvar WindowOperator = /*@__PURE__*/ (function () {\n function WindowOperator(closingSelector) {\n this.closingSelector = closingSelector;\n }\n WindowOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new WindowSubscriber(subscriber, this.closingSelector));\n };\n return WindowOperator;\n}());\nvar WindowSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(WindowSubscriber, _super);\n function WindowSubscriber(destination, closingSelector) {\n var _this = _super.call(this, destination) || this;\n _this.destination = destination;\n _this.closingSelector = closingSelector;\n _this.openWindow();\n return _this;\n }\n WindowSubscriber.prototype.notifyNext = function (_outerValue, _innerValue, _outerIndex, _innerIndex, innerSub) {\n this.openWindow(innerSub);\n };\n WindowSubscriber.prototype.notifyError = function (error) {\n this._error(error);\n };\n WindowSubscriber.prototype.notifyComplete = function (innerSub) {\n this.openWindow(innerSub);\n };\n WindowSubscriber.prototype._next = function (value) {\n this.window.next(value);\n };\n WindowSubscriber.prototype._error = function (err) {\n this.window.error(err);\n this.destination.error(err);\n this.unsubscribeClosingNotification();\n };\n WindowSubscriber.prototype._complete = function () {\n this.window.complete();\n this.destination.complete();\n this.unsubscribeClosingNotification();\n };\n WindowSubscriber.prototype.unsubscribeClosingNotification = function () {\n if (this.closingNotification) {\n this.closingNotification.unsubscribe();\n }\n };\n WindowSubscriber.prototype.openWindow = function (innerSub) {\n if (innerSub === void 0) {\n innerSub = null;\n }\n if (innerSub) {\n this.remove(innerSub);\n innerSub.unsubscribe();\n }\n var prevWindow = this.window;\n if (prevWindow) {\n prevWindow.complete();\n }\n var window = this.window = new Subject();\n this.destination.next(window);\n var closingNotifier;\n try {\n var closingSelector = this.closingSelector;\n closingNotifier = closingSelector();\n }\n catch (e) {\n this.destination.error(e);\n this.window.error(e);\n return;\n }\n this.add(this.closingNotification = subscribeToResult(this, closingNotifier));\n };\n return WindowSubscriber;\n}(OuterSubscriber));\n//# sourceMappingURL=windowWhen.js.map\n","/** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */\nimport * as tslib_1 from \"tslib\";\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nexport function withLatestFrom() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return function (source) {\n var project;\n if (typeof args[args.length - 1] === 'function') {\n project = args.pop();\n }\n var observables = args;\n return source.lift(new WithLatestFromOperator(observables, project));\n };\n}\nvar WithLatestFromOperator = /*@__PURE__*/ (function () {\n function WithLatestFromOperator(observables, project) {\n this.observables = observables;\n this.project = project;\n }\n WithLatestFromOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new WithLatestFromSubscriber(subscriber, this.observables, this.project));\n };\n return WithLatestFromOperator;\n}());\nvar WithLatestFromSubscriber = /*@__PURE__*/ (function (_super) {\n tslib_1.__extends(WithLatestFromSubscriber, _super);\n function WithLatestFromSubscriber(destination, observables, project) {\n var _this = _super.call(this, destination) || this;\n _this.observables = observables;\n _this.project = project;\n _this.toRespond = [];\n var len = observables.length;\n _this.values = new Array(len);\n for (var i = 0; i < len; i++) {\n _this.toRespond.push(i);\n }\n for (var i = 0; i < len; i++) {\n var observable = observables[i];\n _this.add(subscribeToResult(_this, observable, undefined, i));\n }\n return _this;\n }\n WithLatestFromSubscriber.prototype.notifyNext = function (_outerValue, innerValue, outerIndex) {\n this.values[outerIndex] = innerValue;\n var toRespond = this.toRespond;\n if (toRespond.length > 0) {\n var found = toRespond.indexOf(outerIndex);\n if (found !== -1) {\n toRespond.splice(found, 1);\n }\n }\n };\n WithLatestFromSubscriber.prototype.notifyComplete = function () {\n };\n WithLatestFromSubscriber.prototype._next = function (value) {\n if (this.toRespond.length === 0) {\n var args = [value].concat(this.values);\n if (this.project) {\n this._tryProject(args);\n }\n else {\n this.destination.next(args);\n }\n }\n };\n WithLatestFromSubscriber.prototype._tryProject = function (args) {\n var result;\n try {\n result = this.project.apply(this, args);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(result);\n };\n return WithLatestFromSubscriber;\n}(OuterSubscriber));\n//# sourceMappingURL=withLatestFrom.js.map\n","/** PURE_IMPORTS_START _observable_zip PURE_IMPORTS_END */\nimport { zip as zipStatic } from '../observable/zip';\nexport function zip() {\n var observables = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n observables[_i] = arguments[_i];\n }\n return function zipOperatorFunction(source) {\n return source.lift.call(zipStatic.apply(void 0, [source].concat(observables)));\n };\n}\n//# sourceMappingURL=zip.js.map\n","/** PURE_IMPORTS_START _observable_zip PURE_IMPORTS_END */\nimport { ZipOperator } from '../observable/zip';\nexport function zipAll(project) {\n return function (source) { return source.lift(new ZipOperator(project)); };\n}\n//# sourceMappingURL=zipAll.js.map\n","/*! safe-buffer. MIT License. Feross Aboukhadijeh */\n/* eslint-disable node/no-deprecated-api */\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.prototype = Object.create(Buffer.prototype)\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\n/**/\n\nvar isEncoding = Buffer.isEncoding || function (encoding) {\n encoding = '' + encoding;\n switch (encoding && encoding.toLowerCase()) {\n case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':\n return true;\n default:\n return false;\n }\n};\n\nfunction _normalizeEncoding(enc) {\n if (!enc) return 'utf8';\n var retried;\n while (true) {\n switch (enc) {\n case 'utf8':\n case 'utf-8':\n return 'utf8';\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return 'utf16le';\n case 'latin1':\n case 'binary':\n return 'latin1';\n case 'base64':\n case 'ascii':\n case 'hex':\n return enc;\n default:\n if (retried) return; // undefined\n enc = ('' + enc).toLowerCase();\n retried = true;\n }\n }\n};\n\n// Do not cache `Buffer.isEncoding` when checking encoding names as some\n// modules monkey-patch it to support additional encodings\nfunction normalizeEncoding(enc) {\n var nenc = _normalizeEncoding(enc);\n if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);\n return nenc || enc;\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters.\nexports.StringDecoder = StringDecoder;\nfunction StringDecoder(encoding) {\n this.encoding = normalizeEncoding(encoding);\n var nb;\n switch (this.encoding) {\n case 'utf16le':\n this.text = utf16Text;\n this.end = utf16End;\n nb = 4;\n break;\n case 'utf8':\n this.fillLast = utf8FillLast;\n nb = 4;\n break;\n case 'base64':\n this.text = base64Text;\n this.end = base64End;\n nb = 3;\n break;\n default:\n this.write = simpleWrite;\n this.end = simpleEnd;\n return;\n }\n this.lastNeed = 0;\n this.lastTotal = 0;\n this.lastChar = Buffer.allocUnsafe(nb);\n}\n\nStringDecoder.prototype.write = function (buf) {\n if (buf.length === 0) return '';\n var r;\n var i;\n if (this.lastNeed) {\n r = this.fillLast(buf);\n if (r === undefined) return '';\n i = this.lastNeed;\n this.lastNeed = 0;\n } else {\n i = 0;\n }\n if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);\n return r || '';\n};\n\nStringDecoder.prototype.end = utf8End;\n\n// Returns only complete characters in a Buffer\nStringDecoder.prototype.text = utf8Text;\n\n// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer\nStringDecoder.prototype.fillLast = function (buf) {\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);\n this.lastNeed -= buf.length;\n};\n\n// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a\n// continuation byte. If an invalid byte is detected, -2 is returned.\nfunction utf8CheckByte(byte) {\n if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;\n return byte >> 6 === 0x02 ? -1 : -2;\n}\n\n// Checks at most 3 bytes at the end of a Buffer in order to detect an\n// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)\n// needed to complete the UTF-8 character (if applicable) are returned.\nfunction utf8CheckIncomplete(self, buf, i) {\n var j = buf.length - 1;\n if (j < i) return 0;\n var nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 1;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 2;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) {\n if (nb === 2) nb = 0;else self.lastNeed = nb - 3;\n }\n return nb;\n }\n return 0;\n}\n\n// Validates as many continuation bytes for a multi-byte UTF-8 character as\n// needed or are available. If we see a non-continuation byte where we expect\n// one, we \"replace\" the validated continuation bytes we've seen so far with\n// a single UTF-8 replacement character ('\\ufffd'), to match v8's UTF-8 decoding\n// behavior. The continuation byte check is included three times in the case\n// where all of the continuation bytes for a character exist in the same buffer.\n// It is also done this way as a slight performance increase instead of using a\n// loop.\nfunction utf8CheckExtraBytes(self, buf, p) {\n if ((buf[0] & 0xC0) !== 0x80) {\n self.lastNeed = 0;\n return '\\ufffd';\n }\n if (self.lastNeed > 1 && buf.length > 1) {\n if ((buf[1] & 0xC0) !== 0x80) {\n self.lastNeed = 1;\n return '\\ufffd';\n }\n if (self.lastNeed > 2 && buf.length > 2) {\n if ((buf[2] & 0xC0) !== 0x80) {\n self.lastNeed = 2;\n return '\\ufffd';\n }\n }\n }\n}\n\n// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.\nfunction utf8FillLast(buf) {\n var p = this.lastTotal - this.lastNeed;\n var r = utf8CheckExtraBytes(this, buf, p);\n if (r !== undefined) return r;\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, p, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, p, 0, buf.length);\n this.lastNeed -= buf.length;\n}\n\n// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a\n// partial character, the character's bytes are buffered until the required\n// number of bytes are available.\nfunction utf8Text(buf, i) {\n var total = utf8CheckIncomplete(this, buf, i);\n if (!this.lastNeed) return buf.toString('utf8', i);\n this.lastTotal = total;\n var end = buf.length - (total - this.lastNeed);\n buf.copy(this.lastChar, 0, end);\n return buf.toString('utf8', i, end);\n}\n\n// For UTF-8, a replacement character is added when ending on a partial\n// character.\nfunction utf8End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + '\\ufffd';\n return r;\n}\n\n// UTF-16LE typically needs two bytes per character, but even if we have an even\n// number of bytes available, we need to check if we end on a leading/high\n// surrogate. In that case, we need to wait for the next two bytes in order to\n// decode the last character properly.\nfunction utf16Text(buf, i) {\n if ((buf.length - i) % 2 === 0) {\n var r = buf.toString('utf16le', i);\n if (r) {\n var c = r.charCodeAt(r.length - 1);\n if (c >= 0xD800 && c <= 0xDBFF) {\n this.lastNeed = 2;\n this.lastTotal = 4;\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n return r.slice(0, -1);\n }\n }\n return r;\n }\n this.lastNeed = 1;\n this.lastTotal = 2;\n this.lastChar[0] = buf[buf.length - 1];\n return buf.toString('utf16le', i, buf.length - 1);\n}\n\n// For UTF-16LE we do not explicitly append special replacement characters if we\n// end on a partial character, we simply let v8 handle that.\nfunction utf16End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) {\n var end = this.lastTotal - this.lastNeed;\n return r + this.lastChar.toString('utf16le', 0, end);\n }\n return r;\n}\n\nfunction base64Text(buf, i) {\n var n = (buf.length - i) % 3;\n if (n === 0) return buf.toString('base64', i);\n this.lastNeed = 3 - n;\n this.lastTotal = 3;\n if (n === 1) {\n this.lastChar[0] = buf[buf.length - 1];\n } else {\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n }\n return buf.toString('base64', i, buf.length - n);\n}\n\nfunction base64End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);\n return r;\n}\n\n// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)\nfunction simpleWrite(buf) {\n return buf.toString(this.encoding);\n}\n\nfunction simpleEnd(buf) {\n return buf && buf.length ? this.write(buf) : '';\n}","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","module.exports = require(\"core-js-pure/stable/array/is-array\");","module.exports = require(\"core-js-pure/stable/instance/concat\");","module.exports = require(\"core-js-pure/stable/instance/for-each\");","module.exports = require(\"core-js-pure/stable/instance/map\");","module.exports = require(\"core-js-pure/stable/instance/reduce\");","module.exports = require(\"core-js-pure/stable/object/entries\");","module.exports = require(\"core-js-pure/stable/object/keys\");","module.exports = require(\"core-js-pure/stable/promise\");","module.exports = require(\"core-js-pure/stable/set-timeout\");","module.exports = require(\"core-js-pure/stable/symbol\");","module.exports = require(\"core-js-pure/stable/weak-map\");","module.exports = require(\"core-js-pure/stable/weak-set\");","module.exports = require(\"core-js-pure/features/object/define-property\");","module.exports = require(\"core-js-pure/features/symbol\");","module.exports = require(\"core-js-pure/features/symbol/iterator\");","module.exports = require(\"core-js-pure/features/symbol/to-primitive\");","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nmodule.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nmodule.exports = _classCallCheck, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\nmodule.exports = _createClass, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _getPrototypeOf(o);\n}\nmodule.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var setPrototypeOf = require(\"./setPrototypeOf.js\");\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\nmodule.exports = _inherits, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar assertThisInitialized = require(\"./assertThisInitialized.js\");\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return assertThisInitialized(self);\n}\nmodule.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _setPrototypeOf(o, p);\n}\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}\nmodule.exports = _toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}\nmodule.exports = _toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(obj);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import _Symbol from \"@babel/runtime-corejs3/core-js/symbol\";\nimport _Symbol$iterator from \"@babel/runtime-corejs3/core-js/symbol/iterator\";\nexport default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof _Symbol && \"symbol\" == typeof _Symbol$iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof _Symbol && obj.constructor === _Symbol && obj !== _Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","import _Object$defineProperty from \"@babel/runtime-corejs3/core-js/object/define-property\";\nimport toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n _Object$defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import _typeof from \"./typeof.js\";\nimport _Symbol$toPrimitive from \"@babel/runtime-corejs3/core-js/symbol/to-primitive\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[_Symbol$toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","export default function _classExtractFieldDescriptor(receiver, privateMap, action) {\n if (!privateMap.has(receiver)) {\n throw new TypeError(\"attempted to \" + action + \" private field on non-instance\");\n }\n return privateMap.get(receiver);\n}","import classApplyDescriptorSet from \"./classApplyDescriptorSet.js\";\nimport classExtractFieldDescriptor from \"./classExtractFieldDescriptor.js\";\nexport default function _classPrivateFieldSet(receiver, privateMap, value) {\n var descriptor = classExtractFieldDescriptor(receiver, privateMap, \"set\");\n classApplyDescriptorSet(receiver, descriptor, value);\n return value;\n}","export default function _classApplyDescriptorSet(receiver, descriptor, value) {\n if (descriptor.set) {\n descriptor.set.call(receiver, value);\n } else {\n if (!descriptor.writable) {\n throw new TypeError(\"attempted to set read only private field\");\n }\n descriptor.value = value;\n }\n}","import classApplyDescriptorGet from \"./classApplyDescriptorGet.js\";\nimport classExtractFieldDescriptor from \"./classExtractFieldDescriptor.js\";\nexport default function _classPrivateFieldGet(receiver, privateMap) {\n var descriptor = classExtractFieldDescriptor(receiver, privateMap, \"get\");\n return classApplyDescriptorGet(receiver, descriptor);\n}","export default function _classApplyDescriptorGet(receiver, descriptor) {\n if (descriptor.get) {\n return descriptor.get.call(receiver);\n }\n return descriptor.value;\n}","/**\n * vis-network\n * https://visjs.github.io/vis-network/\n *\n * A dynamic, browser-based visualization library.\n *\n * @version 9.1.6\n * @date 2023-03-23T21:31:19.223Z\n *\n * @copyright (c) 2011-2017 Almende B.V, http://almende.com\n * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs\n *\n * @license\n * vis.js is dual licensed under both\n *\n * 1. The Apache 2.0 License\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * and\n *\n * 2. The MIT License\n * http://opensource.org/licenses/MIT\n *\n * vis.js may be distributed under either license.\n */\n\nvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nfunction getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nvar assignExports = {};\nvar assign$5 = {\n get exports(){ return assignExports; },\n set exports(v){ assignExports = v; },\n};\n\nvar check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global$q =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n\nvar fails$z = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n\nvar fails$y = fails$z;\n\nvar functionBindNative = !fails$y(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n\nvar NATIVE_BIND$4 = functionBindNative;\n\nvar FunctionPrototype$3 = Function.prototype;\nvar apply$6 = FunctionPrototype$3.apply;\nvar call$l = FunctionPrototype$3.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nvar functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$4 ? call$l.bind(apply$6) : function () {\n return call$l.apply(apply$6, arguments);\n});\n\nvar NATIVE_BIND$3 = functionBindNative;\n\nvar FunctionPrototype$2 = Function.prototype;\nvar call$k = FunctionPrototype$2.call;\nvar uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$k, call$k);\n\nvar functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {\n return function () {\n return call$k.apply(fn, arguments);\n };\n};\n\nvar uncurryThis$z = functionUncurryThis;\n\nvar toString$d = uncurryThis$z({}.toString);\nvar stringSlice$1 = uncurryThis$z(''.slice);\n\nvar classofRaw$2 = function (it) {\n return stringSlice$1(toString$d(it), 8, -1);\n};\n\nvar classofRaw$1 = classofRaw$2;\nvar uncurryThis$y = functionUncurryThis;\n\nvar functionUncurryThisClause = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw$1(fn) === 'Function') return uncurryThis$y(fn);\n};\n\nvar documentAll$2 = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;\n\nvar documentAll_1 = {\n all: documentAll$2,\n IS_HTMLDDA: IS_HTMLDDA\n};\n\nvar $documentAll$1 = documentAll_1;\n\nvar documentAll$1 = $documentAll$1.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nvar isCallable$m = $documentAll$1.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll$1;\n} : function (argument) {\n return typeof argument == 'function';\n};\n\nvar objectGetOwnPropertyDescriptor = {};\n\nvar fails$x = fails$z;\n\n// Detect IE8's incomplete defineProperty implementation\nvar descriptors = !fails$x(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n\nvar NATIVE_BIND$2 = functionBindNative;\n\nvar call$j = Function.prototype.call;\n\nvar functionCall = NATIVE_BIND$2 ? call$j.bind(call$j) : function () {\n return call$j.apply(call$j, arguments);\n};\n\nvar objectPropertyIsEnumerable = {};\n\nvar $propertyIsEnumerable$2 = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor$b = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor$b && !$propertyIsEnumerable$2.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nobjectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor$b(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable$2;\n\nvar createPropertyDescriptor$7 = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\nvar uncurryThis$x = functionUncurryThis;\nvar fails$w = fails$z;\nvar classof$g = classofRaw$2;\n\nvar $Object$5 = Object;\nvar split = uncurryThis$x(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar indexedObject = fails$w(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object$5('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof$g(it) == 'String' ? split(it, '') : $Object$5(it);\n} : $Object$5;\n\n// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nvar isNullOrUndefined$6 = function (it) {\n return it === null || it === undefined;\n};\n\nvar isNullOrUndefined$5 = isNullOrUndefined$6;\n\nvar $TypeError$h = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nvar requireObjectCoercible$5 = function (it) {\n if (isNullOrUndefined$5(it)) throw $TypeError$h(\"Can't call method on \" + it);\n return it;\n};\n\n// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject$3 = indexedObject;\nvar requireObjectCoercible$4 = requireObjectCoercible$5;\n\nvar toIndexedObject$b = function (it) {\n return IndexedObject$3(requireObjectCoercible$4(it));\n};\n\nvar isCallable$l = isCallable$m;\nvar $documentAll = documentAll_1;\n\nvar documentAll = $documentAll.all;\n\nvar isObject$m = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable$l(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable$l(it);\n};\n\nvar path$z = {};\n\nvar path$y = path$z;\nvar global$p = global$q;\nvar isCallable$k = isCallable$m;\n\nvar aFunction = function (variable) {\n return isCallable$k(variable) ? variable : undefined;\n};\n\nvar getBuiltIn$f = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path$y[namespace]) || aFunction(global$p[namespace])\n : path$y[namespace] && path$y[namespace][method] || global$p[namespace] && global$p[namespace][method];\n};\n\nvar uncurryThis$w = functionUncurryThis;\n\nvar objectIsPrototypeOf = uncurryThis$w({}.isPrototypeOf);\n\nvar engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n\nvar global$o = global$q;\nvar userAgent$5 = engineUserAgent;\n\nvar process$4 = global$o.process;\nvar Deno$1 = global$o.Deno;\nvar versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent$5) {\n match = userAgent$5.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent$5.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nvar engineV8Version = version;\n\n/* eslint-disable es/no-symbol -- required for testing */\n\nvar V8_VERSION$3 = engineV8Version;\nvar fails$v = fails$z;\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nvar symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$v(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION$3 && V8_VERSION$3 < 41;\n});\n\n/* eslint-disable es/no-symbol -- required for testing */\n\nvar NATIVE_SYMBOL$5 = symbolConstructorDetection;\n\nvar useSymbolAsUid = NATIVE_SYMBOL$5\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n\nvar getBuiltIn$e = getBuiltIn$f;\nvar isCallable$j = isCallable$m;\nvar isPrototypeOf$o = objectIsPrototypeOf;\nvar USE_SYMBOL_AS_UID$1 = useSymbolAsUid;\n\nvar $Object$4 = Object;\n\nvar isSymbol$5 = USE_SYMBOL_AS_UID$1 ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn$e('Symbol');\n return isCallable$j($Symbol) && isPrototypeOf$o($Symbol.prototype, $Object$4(it));\n};\n\nvar $String$4 = String;\n\nvar tryToString$6 = function (argument) {\n try {\n return $String$4(argument);\n } catch (error) {\n return 'Object';\n }\n};\n\nvar isCallable$i = isCallable$m;\nvar tryToString$5 = tryToString$6;\n\nvar $TypeError$g = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nvar aCallable$e = function (argument) {\n if (isCallable$i(argument)) return argument;\n throw $TypeError$g(tryToString$5(argument) + ' is not a function');\n};\n\nvar aCallable$d = aCallable$e;\nvar isNullOrUndefined$4 = isNullOrUndefined$6;\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nvar getMethod$3 = function (V, P) {\n var func = V[P];\n return isNullOrUndefined$4(func) ? undefined : aCallable$d(func);\n};\n\nvar call$i = functionCall;\nvar isCallable$h = isCallable$m;\nvar isObject$l = isObject$m;\n\nvar $TypeError$f = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nvar ordinaryToPrimitive$1 = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable$h(fn = input.toString) && !isObject$l(val = call$i(fn, input))) return val;\n if (isCallable$h(fn = input.valueOf) && !isObject$l(val = call$i(fn, input))) return val;\n if (pref !== 'string' && isCallable$h(fn = input.toString) && !isObject$l(val = call$i(fn, input))) return val;\n throw $TypeError$f(\"Can't convert object to primitive value\");\n};\n\nvar sharedExports = {};\nvar shared$7 = {\n get exports(){ return sharedExports; },\n set exports(v){ sharedExports = v; },\n};\n\nvar isPure = true;\n\nvar global$n = global$q;\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty$f = Object.defineProperty;\n\nvar defineGlobalProperty$1 = function (key, value) {\n try {\n defineProperty$f(global$n, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global$n[key] = value;\n } return value;\n};\n\nvar global$m = global$q;\nvar defineGlobalProperty = defineGlobalProperty$1;\n\nvar SHARED = '__core-js_shared__';\nvar store$3 = global$m[SHARED] || defineGlobalProperty(SHARED, {});\n\nvar sharedStore = store$3;\n\nvar store$2 = sharedStore;\n\n(shared$7.exports = function (key, value) {\n return store$2[key] || (store$2[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.29.0',\n mode: 'pure' ,\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n\nvar requireObjectCoercible$3 = requireObjectCoercible$5;\n\nvar $Object$3 = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nvar toObject$e = function (argument) {\n return $Object$3(requireObjectCoercible$3(argument));\n};\n\nvar uncurryThis$v = functionUncurryThis;\nvar toObject$d = toObject$e;\n\nvar hasOwnProperty = uncurryThis$v({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nvar hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject$d(it), key);\n};\n\nvar uncurryThis$u = functionUncurryThis;\n\nvar id$2 = 0;\nvar postfix = Math.random();\nvar toString$c = uncurryThis$u(1.0.toString);\n\nvar uid$4 = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$c(++id$2 + postfix, 36);\n};\n\nvar global$l = global$q;\nvar shared$6 = sharedExports;\nvar hasOwn$l = hasOwnProperty_1;\nvar uid$3 = uid$4;\nvar NATIVE_SYMBOL$4 = symbolConstructorDetection;\nvar USE_SYMBOL_AS_UID = useSymbolAsUid;\n\nvar Symbol$5 = global$l.Symbol;\nvar WellKnownSymbolsStore$2 = shared$6('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$5['for'] || Symbol$5 : Symbol$5 && Symbol$5.withoutSetter || uid$3;\n\nvar wellKnownSymbol$o = function (name) {\n if (!hasOwn$l(WellKnownSymbolsStore$2, name)) {\n WellKnownSymbolsStore$2[name] = NATIVE_SYMBOL$4 && hasOwn$l(Symbol$5, name)\n ? Symbol$5[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore$2[name];\n};\n\nvar call$h = functionCall;\nvar isObject$k = isObject$m;\nvar isSymbol$4 = isSymbol$5;\nvar getMethod$2 = getMethod$3;\nvar ordinaryToPrimitive = ordinaryToPrimitive$1;\nvar wellKnownSymbol$n = wellKnownSymbol$o;\n\nvar $TypeError$e = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol$n('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nvar toPrimitive$7 = function (input, pref) {\n if (!isObject$k(input) || isSymbol$4(input)) return input;\n var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call$h(exoticToPrim, input, pref);\n if (!isObject$k(result) || isSymbol$4(result)) return result;\n throw $TypeError$e(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n\nvar toPrimitive$6 = toPrimitive$7;\nvar isSymbol$3 = isSymbol$5;\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nvar toPropertyKey$4 = function (argument) {\n var key = toPrimitive$6(argument, 'string');\n return isSymbol$3(key) ? key : key + '';\n};\n\nvar global$k = global$q;\nvar isObject$j = isObject$m;\n\nvar document$3 = global$k.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS$1 = isObject$j(document$3) && isObject$j(document$3.createElement);\n\nvar documentCreateElement$1 = function (it) {\n return EXISTS$1 ? document$3.createElement(it) : {};\n};\n\nvar DESCRIPTORS$i = descriptors;\nvar fails$u = fails$z;\nvar createElement$1 = documentCreateElement$1;\n\n// Thanks to IE8 for its funny defineProperty\nvar ie8DomDefine = !DESCRIPTORS$i && !fails$u(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement$1('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n\nvar DESCRIPTORS$h = descriptors;\nvar call$g = functionCall;\nvar propertyIsEnumerableModule$2 = objectPropertyIsEnumerable;\nvar createPropertyDescriptor$6 = createPropertyDescriptor$7;\nvar toIndexedObject$a = toIndexedObject$b;\nvar toPropertyKey$3 = toPropertyKey$4;\nvar hasOwn$k = hasOwnProperty_1;\nvar IE8_DOM_DEFINE$1 = ie8DomDefine;\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nobjectGetOwnPropertyDescriptor.f = DESCRIPTORS$h ? $getOwnPropertyDescriptor$2 : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject$a(O);\n P = toPropertyKey$3(P);\n if (IE8_DOM_DEFINE$1) try {\n return $getOwnPropertyDescriptor$2(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn$k(O, P)) return createPropertyDescriptor$6(!call$g(propertyIsEnumerableModule$2.f, O, P), O[P]);\n};\n\nvar fails$t = fails$z;\nvar isCallable$g = isCallable$m;\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced$2 = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable$g(detection) ? fails$t(detection)\n : !!detection;\n};\n\nvar normalize = isForced$2.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced$2.data = {};\nvar NATIVE = isForced$2.NATIVE = 'N';\nvar POLYFILL = isForced$2.POLYFILL = 'P';\n\nvar isForced_1 = isForced$2;\n\nvar uncurryThis$t = functionUncurryThisClause;\nvar aCallable$c = aCallable$e;\nvar NATIVE_BIND$1 = functionBindNative;\n\nvar bind$j = uncurryThis$t(uncurryThis$t.bind);\n\n// optional / simple context binding\nvar functionBindContext = function (fn, that) {\n aCallable$c(fn);\n return that === undefined ? fn : NATIVE_BIND$1 ? bind$j(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\nvar objectDefineProperty = {};\n\nvar DESCRIPTORS$g = descriptors;\nvar fails$s = fails$z;\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nvar v8PrototypeDefineBug = DESCRIPTORS$g && fails$s(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n\nvar isObject$i = isObject$m;\n\nvar $String$3 = String;\nvar $TypeError$d = TypeError;\n\n// `Assert: Type(argument) is Object`\nvar anObject$f = function (argument) {\n if (isObject$i(argument)) return argument;\n throw $TypeError$d($String$3(argument) + ' is not an object');\n};\n\nvar DESCRIPTORS$f = descriptors;\nvar IE8_DOM_DEFINE = ie8DomDefine;\nvar V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;\nvar anObject$e = anObject$f;\nvar toPropertyKey$2 = toPropertyKey$4;\n\nvar $TypeError$c = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty$1 = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE$1 = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nobjectDefineProperty.f = DESCRIPTORS$f ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {\n anObject$e(O);\n P = toPropertyKey$2(P);\n anObject$e(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor$1(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty$1(O, P, Attributes);\n} : $defineProperty$1 : function defineProperty(O, P, Attributes) {\n anObject$e(O);\n P = toPropertyKey$2(P);\n anObject$e(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty$1(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError$c('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\nvar DESCRIPTORS$e = descriptors;\nvar definePropertyModule$4 = objectDefineProperty;\nvar createPropertyDescriptor$5 = createPropertyDescriptor$7;\n\nvar createNonEnumerableProperty$9 = DESCRIPTORS$e ? function (object, key, value) {\n return definePropertyModule$4.f(object, key, createPropertyDescriptor$5(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\nvar global$j = global$q;\nvar apply$5 = functionApply;\nvar uncurryThis$s = functionUncurryThisClause;\nvar isCallable$f = isCallable$m;\nvar getOwnPropertyDescriptor$a = objectGetOwnPropertyDescriptor.f;\nvar isForced$1 = isForced_1;\nvar path$x = path$z;\nvar bind$i = functionBindContext;\nvar createNonEnumerableProperty$8 = createNonEnumerableProperty$9;\nvar hasOwn$j = hasOwnProperty_1;\n\nvar wrapConstructor = function (NativeConstructor) {\n var Wrapper = function (a, b, c) {\n if (this instanceof Wrapper) {\n switch (arguments.length) {\n case 0: return new NativeConstructor();\n case 1: return new NativeConstructor(a);\n case 2: return new NativeConstructor(a, b);\n } return new NativeConstructor(a, b, c);\n } return apply$5(NativeConstructor, this, arguments);\n };\n Wrapper.prototype = NativeConstructor.prototype;\n return Wrapper;\n};\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nvar _export = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var PROTO = options.proto;\n\n var nativeSource = GLOBAL ? global$j : STATIC ? global$j[TARGET] : (global$j[TARGET] || {}).prototype;\n\n var target = GLOBAL ? path$x : path$x[TARGET] || createNonEnumerableProperty$8(path$x, TARGET, {})[TARGET];\n var targetPrototype = target.prototype;\n\n var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;\n var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;\n\n for (key in source) {\n FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contains in native\n USE_NATIVE = !FORCED && nativeSource && hasOwn$j(nativeSource, key);\n\n targetProperty = target[key];\n\n if (USE_NATIVE) if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor$a(nativeSource, key);\n nativeProperty = descriptor && descriptor.value;\n } else nativeProperty = nativeSource[key];\n\n // export native or implementation\n sourceProperty = (USE_NATIVE && nativeProperty) ? nativeProperty : source[key];\n\n if (USE_NATIVE && typeof targetProperty == typeof sourceProperty) continue;\n\n // bind methods to global for calling from export context\n if (options.bind && USE_NATIVE) resultProperty = bind$i(sourceProperty, global$j);\n // wrap global constructors for prevent changes in this version\n else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);\n // make static versions for prototype methods\n else if (PROTO && isCallable$f(sourceProperty)) resultProperty = uncurryThis$s(sourceProperty);\n // default case\n else resultProperty = sourceProperty;\n\n // add a flag to not completely full polyfills\n if (options.sham || (sourceProperty && sourceProperty.sham) || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty$8(resultProperty, 'sham', true);\n }\n\n createNonEnumerableProperty$8(target, key, resultProperty);\n\n if (PROTO) {\n VIRTUAL_PROTOTYPE = TARGET + 'Prototype';\n if (!hasOwn$j(path$x, VIRTUAL_PROTOTYPE)) {\n createNonEnumerableProperty$8(path$x, VIRTUAL_PROTOTYPE, {});\n }\n // export virtual prototype methods\n createNonEnumerableProperty$8(path$x[VIRTUAL_PROTOTYPE], key, sourceProperty);\n // export real prototype methods\n if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) {\n createNonEnumerableProperty$8(targetPrototype, key, sourceProperty);\n }\n }\n }\n};\n\nvar ceil = Math.ceil;\nvar floor$1 = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nvar mathTrunc = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor$1 : ceil)(n);\n};\n\nvar trunc = mathTrunc;\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nvar toIntegerOrInfinity$4 = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n\nvar toIntegerOrInfinity$3 = toIntegerOrInfinity$4;\n\nvar max$3 = Math.max;\nvar min$2 = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nvar toAbsoluteIndex$5 = function (index, length) {\n var integer = toIntegerOrInfinity$3(index);\n return integer < 0 ? max$3(integer + length, 0) : min$2(integer, length);\n};\n\nvar toIntegerOrInfinity$2 = toIntegerOrInfinity$4;\n\nvar min$1 = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nvar toLength$1 = function (argument) {\n return argument > 0 ? min$1(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n\nvar toLength = toLength$1;\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nvar lengthOfArrayLike$d = function (obj) {\n return toLength(obj.length);\n};\n\nvar toIndexedObject$9 = toIndexedObject$b;\nvar toAbsoluteIndex$4 = toAbsoluteIndex$5;\nvar lengthOfArrayLike$c = lengthOfArrayLike$d;\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod$5 = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject$9($this);\n var length = lengthOfArrayLike$c(O);\n var index = toAbsoluteIndex$4(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nvar arrayIncludes = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod$5(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod$5(false)\n};\n\nvar hiddenKeys$6 = {};\n\nvar uncurryThis$r = functionUncurryThis;\nvar hasOwn$i = hasOwnProperty_1;\nvar toIndexedObject$8 = toIndexedObject$b;\nvar indexOf$4 = arrayIncludes.indexOf;\nvar hiddenKeys$5 = hiddenKeys$6;\n\nvar push$7 = uncurryThis$r([].push);\n\nvar objectKeysInternal = function (object, names) {\n var O = toIndexedObject$8(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn$i(hiddenKeys$5, key) && hasOwn$i(O, key) && push$7(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn$i(O, key = names[i++])) {\n ~indexOf$4(result, key) || push$7(result, key);\n }\n return result;\n};\n\n// IE8- don't enum bug keys\nvar enumBugKeys$3 = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n\nvar internalObjectKeys$1 = objectKeysInternal;\nvar enumBugKeys$2 = enumBugKeys$3;\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nvar objectKeys$4 = Object.keys || function keys(O) {\n return internalObjectKeys$1(O, enumBugKeys$2);\n};\n\nvar objectGetOwnPropertySymbols = {};\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nobjectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;\n\nvar DESCRIPTORS$d = descriptors;\nvar uncurryThis$q = functionUncurryThis;\nvar call$f = functionCall;\nvar fails$r = fails$z;\nvar objectKeys$3 = objectKeys$4;\nvar getOwnPropertySymbolsModule$3 = objectGetOwnPropertySymbols;\nvar propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;\nvar toObject$c = toObject$e;\nvar IndexedObject$2 = indexedObject;\n\n// eslint-disable-next-line es/no-object-assign -- safe\nvar $assign = Object.assign;\n// eslint-disable-next-line es/no-object-defineproperty -- required for testing\nvar defineProperty$e = Object.defineProperty;\nvar concat$6 = uncurryThis$q([].concat);\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\nvar objectAssign = !$assign || fails$r(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS$d && $assign({ b: 1 }, $assign(defineProperty$e({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty$e(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), { b: 2 })).b !== 1) return true;\n // should work with symbols and should have deterministic property order (V8 bug)\n var A = {};\n var B = {};\n // eslint-disable-next-line es/no-symbol -- safe\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) { B[chr] = chr; });\n return $assign({}, A)[symbol] != 7 || objectKeys$3($assign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`\n var T = toObject$c(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule$3.f;\n var propertyIsEnumerable = propertyIsEnumerableModule$1.f;\n while (argumentsLength > index) {\n var S = IndexedObject$2(arguments[index++]);\n var keys = getOwnPropertySymbols ? concat$6(objectKeys$3(S), getOwnPropertySymbols(S)) : objectKeys$3(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS$d || call$f(propertyIsEnumerable, S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n\nvar $$_ = _export;\nvar assign$4 = objectAssign;\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\n// eslint-disable-next-line es/no-object-assign -- required for testing\n$$_({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$4 }, {\n assign: assign$4\n});\n\nvar path$w = path$z;\n\nvar assign$3 = path$w.Object.assign;\n\nvar parent$1o = assign$3;\n\nvar assign$2 = parent$1o;\n\n(function (module) {\n\tmodule.exports = assign$2;\n} (assign$5));\n\nvar _Object$assign = /*@__PURE__*/getDefaultExportFromCjs(assignExports);\n\nvar bindExports$2 = {};\nvar bind$h = {\n get exports(){ return bindExports$2; },\n set exports(v){ bindExports$2 = v; },\n};\n\nvar uncurryThis$p = functionUncurryThis;\n\nvar arraySlice$6 = uncurryThis$p([].slice);\n\nvar uncurryThis$o = functionUncurryThis;\nvar aCallable$b = aCallable$e;\nvar isObject$h = isObject$m;\nvar hasOwn$h = hasOwnProperty_1;\nvar arraySlice$5 = arraySlice$6;\nvar NATIVE_BIND = functionBindNative;\n\nvar $Function = Function;\nvar concat$5 = uncurryThis$o([].concat);\nvar join = uncurryThis$o([].join);\nvar factories = {};\n\nvar construct$4 = function (C, argsLength, args) {\n if (!hasOwn$h(factories, argsLength)) {\n for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';\n factories[argsLength] = $Function('C,a', 'return new C(' + join(list, ',') + ')');\n } return factories[argsLength](C, args);\n};\n\n// `Function.prototype.bind` method implementation\n// https://tc39.es/ecma262/#sec-function.prototype.bind\n// eslint-disable-next-line es/no-function-prototype-bind -- detection\nvar functionBind = NATIVE_BIND ? $Function.bind : function bind(that /* , ...args */) {\n var F = aCallable$b(this);\n var Prototype = F.prototype;\n var partArgs = arraySlice$5(arguments, 1);\n var boundFunction = function bound(/* args... */) {\n var args = concat$5(partArgs, arraySlice$5(arguments));\n return this instanceof boundFunction ? construct$4(F, args.length, args) : F.apply(that, args);\n };\n if (isObject$h(Prototype)) boundFunction.prototype = Prototype;\n return boundFunction;\n};\n\n// TODO: Remove from `core-js@4`\nvar $$Z = _export;\nvar bind$g = functionBind;\n\n// `Function.prototype.bind` method\n// https://tc39.es/ecma262/#sec-function.prototype.bind\n// eslint-disable-next-line es/no-function-prototype-bind -- detection\n$$Z({ target: 'Function', proto: true, forced: Function.bind !== bind$g }, {\n bind: bind$g\n});\n\nvar path$v = path$z;\n\nvar entryVirtual$l = function (CONSTRUCTOR) {\n return path$v[CONSTRUCTOR + 'Prototype'];\n};\n\nvar entryVirtual$k = entryVirtual$l;\n\nvar bind$f = entryVirtual$k('Function').bind;\n\nvar isPrototypeOf$n = objectIsPrototypeOf;\nvar method$i = bind$f;\n\nvar FunctionPrototype$1 = Function.prototype;\n\nvar bind$e = function (it) {\n var own = it.bind;\n return it === FunctionPrototype$1 || (isPrototypeOf$n(FunctionPrototype$1, it) && own === FunctionPrototype$1.bind) ? method$i : own;\n};\n\nvar parent$1n = bind$e;\n\nvar bind$d = parent$1n;\n\n(function (module) {\n\tmodule.exports = bind$d;\n} (bind$h));\n\nvar _bindInstanceProperty$1 = /*@__PURE__*/getDefaultExportFromCjs(bindExports$2);\n\n/**\r\n * Draw a circle.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param r - The radius of the circle.\r\n */\nfunction drawCircle(ctx, x, y, r) {\n ctx.beginPath();\n ctx.arc(x, y, r, 0, 2 * Math.PI, false);\n ctx.closePath();\n}\n/**\r\n * Draw a square.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param r - Half of the width and height of the square.\r\n */\nfunction drawSquare(ctx, x, y, r) {\n ctx.beginPath();\n ctx.rect(x - r, y - r, r * 2, r * 2);\n ctx.closePath();\n}\n/**\r\n * Draw an equilateral triangle standing on a side.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param r - Half of the length of the sides.\r\n * @remarks\r\n * http://en.wikipedia.org/wiki/Equilateral_triangle\r\n */\nfunction drawTriangle(ctx, x, y, r) {\n ctx.beginPath();\n // the change in radius and the offset is here to center the shape\n r *= 1.15;\n y += 0.275 * r;\n var s = r * 2;\n var s2 = s / 2;\n var ir = Math.sqrt(3) / 6 * s; // radius of inner circle\n var h = Math.sqrt(s * s - s2 * s2); // height\n ctx.moveTo(x, y - (h - ir));\n ctx.lineTo(x + s2, y + ir);\n ctx.lineTo(x - s2, y + ir);\n ctx.lineTo(x, y - (h - ir));\n ctx.closePath();\n}\n/**\r\n * Draw an equilateral triangle standing on a vertex.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param r - Half of the length of the sides.\r\n * @remarks\r\n * http://en.wikipedia.org/wiki/Equilateral_triangle\r\n */\nfunction drawTriangleDown(ctx, x, y, r) {\n ctx.beginPath();\n // the change in radius and the offset is here to center the shape\n r *= 1.15;\n y -= 0.275 * r;\n var s = r * 2;\n var s2 = s / 2;\n var ir = Math.sqrt(3) / 6 * s; // radius of inner circle\n var h = Math.sqrt(s * s - s2 * s2); // height\n ctx.moveTo(x, y + (h - ir));\n ctx.lineTo(x + s2, y - ir);\n ctx.lineTo(x - s2, y - ir);\n ctx.lineTo(x, y + (h - ir));\n ctx.closePath();\n}\n/**\r\n * Draw a star.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param r - The outer radius of the star.\r\n */\nfunction drawStar(ctx, x, y, r) {\n // http://www.html5canvastutorials.com/labs/html5-canvas-star-spinner/\n ctx.beginPath();\n // the change in radius and the offset is here to center the shape\n r *= 0.82;\n y += 0.1 * r;\n for (var n = 0; n < 10; n++) {\n var radius = n % 2 === 0 ? r * 1.3 : r * 0.5;\n ctx.lineTo(x + radius * Math.sin(n * 2 * Math.PI / 10), y - radius * Math.cos(n * 2 * Math.PI / 10));\n }\n ctx.closePath();\n}\n/**\r\n * Draw a diamond.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param r - Half of the width and height of the diamond.\r\n * @remarks\r\n * http://www.html5canvastutorials.com/labs/html5-canvas-star-spinner/\r\n */\nfunction drawDiamond(ctx, x, y, r) {\n ctx.beginPath();\n ctx.lineTo(x, y + r);\n ctx.lineTo(x + r, y);\n ctx.lineTo(x, y - r);\n ctx.lineTo(x - r, y);\n ctx.closePath();\n}\n/**\r\n * Draw a rectangle with rounded corners.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param w - The width of the rectangle.\r\n * @param h - The height of the rectangle.\r\n * @param r - The radius of the corners.\r\n * @remarks\r\n * http://stackoverflow.com/questions/1255512/how-to-draw-a-rounded-rectangle-on-html-canvas\r\n */\nfunction drawRoundRect(ctx, x, y, w, h, r) {\n var r2d = Math.PI / 180;\n if (w - 2 * r < 0) {\n r = w / 2;\n } //ensure that the radius isn't too large for x\n if (h - 2 * r < 0) {\n r = h / 2;\n } //ensure that the radius isn't too large for y\n ctx.beginPath();\n ctx.moveTo(x + r, y);\n ctx.lineTo(x + w - r, y);\n ctx.arc(x + w - r, y + r, r, r2d * 270, r2d * 360, false);\n ctx.lineTo(x + w, y + h - r);\n ctx.arc(x + w - r, y + h - r, r, 0, r2d * 90, false);\n ctx.lineTo(x + r, y + h);\n ctx.arc(x + r, y + h - r, r, r2d * 90, r2d * 180, false);\n ctx.lineTo(x, y + r);\n ctx.arc(x + r, y + r, r, r2d * 180, r2d * 270, false);\n ctx.closePath();\n}\n/**\r\n * Draw an ellipse.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param w - The width of the ellipse.\r\n * @param h - The height of the ellipse.\r\n * @remarks\r\n * http://stackoverflow.com/questions/2172798/how-to-draw-an-oval-in-html5-canvas\r\n *\r\n * Postfix '_vis' added to discern it from standard method ellipse().\r\n */\nfunction drawEllipse(ctx, x, y, w, h) {\n var kappa = 0.5522848,\n ox = w / 2 * kappa,\n // control point offset horizontal\n oy = h / 2 * kappa,\n // control point offset vertical\n xe = x + w,\n // x-end\n ye = y + h,\n // y-end\n xm = x + w / 2,\n // x-middle\n ym = y + h / 2; // y-middle\n ctx.beginPath();\n ctx.moveTo(x, ym);\n ctx.bezierCurveTo(x, ym - oy, xm - ox, y, xm, y);\n ctx.bezierCurveTo(xm + ox, y, xe, ym - oy, xe, ym);\n ctx.bezierCurveTo(xe, ym + oy, xm + ox, ye, xm, ye);\n ctx.bezierCurveTo(xm - ox, ye, x, ym + oy, x, ym);\n ctx.closePath();\n}\n/**\r\n * Draw an isometric cylinder.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param w - The width of the database.\r\n * @param h - The height of the database.\r\n * @remarks\r\n * http://stackoverflow.com/questions/2172798/how-to-draw-an-oval-in-html5-canvas\r\n */\nfunction drawDatabase(ctx, x, y, w, h) {\n var f = 1 / 3;\n var wEllipse = w;\n var hEllipse = h * f;\n var kappa = 0.5522848,\n ox = wEllipse / 2 * kappa,\n // control point offset horizontal\n oy = hEllipse / 2 * kappa,\n // control point offset vertical\n xe = x + wEllipse,\n // x-end\n ye = y + hEllipse,\n // y-end\n xm = x + wEllipse / 2,\n // x-middle\n ym = y + hEllipse / 2,\n // y-middle\n ymb = y + (h - hEllipse / 2),\n // y-midlle, bottom ellipse\n yeb = y + h; // y-end, bottom ellipse\n ctx.beginPath();\n ctx.moveTo(xe, ym);\n ctx.bezierCurveTo(xe, ym + oy, xm + ox, ye, xm, ye);\n ctx.bezierCurveTo(xm - ox, ye, x, ym + oy, x, ym);\n ctx.bezierCurveTo(x, ym - oy, xm - ox, y, xm, y);\n ctx.bezierCurveTo(xm + ox, y, xe, ym - oy, xe, ym);\n ctx.lineTo(xe, ymb);\n ctx.bezierCurveTo(xe, ymb + oy, xm + ox, yeb, xm, yeb);\n ctx.bezierCurveTo(xm - ox, yeb, x, ymb + oy, x, ymb);\n ctx.lineTo(x, ym);\n}\n/**\r\n * Draw a dashed line.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The start position on the x axis.\r\n * @param y - The start position on the y axis.\r\n * @param x2 - The end position on the x axis.\r\n * @param y2 - The end position on the y axis.\r\n * @param pattern - List of lengths starting with line and then alternating between space and line.\r\n * @author David Jordan\r\n * @remarks\r\n * date 2012-08-08\r\n * http://stackoverflow.com/questions/4576724/dotted-stroke-in-canvas\r\n */\nfunction drawDashedLine(ctx, x, y, x2, y2, pattern) {\n ctx.beginPath();\n ctx.moveTo(x, y);\n var patternLength = pattern.length;\n var dx = x2 - x;\n var dy = y2 - y;\n var slope = dy / dx;\n var distRemaining = Math.sqrt(dx * dx + dy * dy);\n var patternIndex = 0;\n var draw = true;\n var xStep = 0;\n var dashLength = +pattern[0];\n while (distRemaining >= 0.1) {\n dashLength = +pattern[patternIndex++ % patternLength];\n if (dashLength > distRemaining) {\n dashLength = distRemaining;\n }\n xStep = Math.sqrt(dashLength * dashLength / (1 + slope * slope));\n xStep = dx < 0 ? -xStep : xStep;\n x += xStep;\n y += slope * xStep;\n if (draw === true) {\n ctx.lineTo(x, y);\n } else {\n ctx.moveTo(x, y);\n }\n distRemaining -= dashLength;\n draw = !draw;\n }\n}\n/**\r\n * Draw a hexagon.\r\n *\r\n * @param ctx - The context this shape will be rendered to.\r\n * @param x - The position of the center on the x axis.\r\n * @param y - The position of the center on the y axis.\r\n * @param r - The radius of the hexagon.\r\n */\nfunction drawHexagon(ctx, x, y, r) {\n ctx.beginPath();\n var sides = 6;\n var a = Math.PI * 2 / sides;\n ctx.moveTo(x + r, y);\n for (var i = 1; i < sides; i++) {\n ctx.lineTo(x + r * Math.cos(a * i), y + r * Math.sin(a * i));\n }\n ctx.closePath();\n}\nvar shapeMap = {\n circle: drawCircle,\n dashedLine: drawDashedLine,\n database: drawDatabase,\n diamond: drawDiamond,\n ellipse: drawEllipse,\n ellipse_vis: drawEllipse,\n hexagon: drawHexagon,\n roundRect: drawRoundRect,\n square: drawSquare,\n star: drawStar,\n triangle: drawTriangle,\n triangleDown: drawTriangleDown\n};\n/**\r\n * Returns either custom or native drawing function base on supplied name.\r\n *\r\n * @param name - The name of the function. Either the name of a\r\n * CanvasRenderingContext2D property or an export from shapes.ts without the\r\n * draw prefix.\r\n * @returns The function that can be used for rendering. In case of native\r\n * CanvasRenderingContext2D function the API is normalized to\r\n * `(ctx: CanvasRenderingContext2D, ...originalArgs) => void`.\r\n */\nfunction getShape(name) {\n if (Object.prototype.hasOwnProperty.call(shapeMap, name)) {\n return shapeMap[name];\n } else {\n return function (ctx) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n CanvasRenderingContext2D.prototype[name].call(ctx, args);\n };\n }\n}\n\nfunction styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nvar css_248z$6 = \".vis-overlay {\\n position: absolute;\\n top: 0px;\\n right: 0px;\\n bottom: 0px;\\n left: 0px;\\n\\n /* Must be displayed above for example selected Timeline items */\\n z-index: 10;\\n}\\n\\n.vis-active {\\n box-shadow: 0 0 10px #86d5f8;\\n}\\n\";\nstyleInject(css_248z$6);\n\nvar css_248z$5 = \"/* override some bootstrap styles screwing up the timelines css */\\n\\n.vis [class*=\\\"span\\\"] {\\n min-height: 0;\\n width: auto;\\n}\\n\";\nstyleInject(css_248z$5);\n\nvar css_248z$4 = \"div.vis-color-picker {\\n position: absolute;\\n top: 0px;\\n left: 30px;\\n margin-top: -140px;\\n margin-left: 30px;\\n width: 310px;\\n height: 444px;\\n z-index: 1;\\n padding: 10px;\\n border-radius: 15px;\\n background-color: #ffffff;\\n display: none;\\n box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 10px 0px;\\n}\\n\\ndiv.vis-color-picker div.vis-arrow {\\n position: absolute;\\n top: 147px;\\n left: 5px;\\n}\\n\\ndiv.vis-color-picker div.vis-arrow::after,\\ndiv.vis-color-picker div.vis-arrow::before {\\n right: 100%;\\n top: 50%;\\n border: solid transparent;\\n content: \\\" \\\";\\n height: 0;\\n width: 0;\\n position: absolute;\\n pointer-events: none;\\n}\\n\\ndiv.vis-color-picker div.vis-arrow:after {\\n border-color: rgba(255, 255, 255, 0);\\n border-right-color: #ffffff;\\n border-width: 30px;\\n margin-top: -30px;\\n}\\n\\ndiv.vis-color-picker div.vis-color {\\n position: absolute;\\n width: 289px;\\n height: 289px;\\n cursor: pointer;\\n}\\n\\ndiv.vis-color-picker div.vis-brightness {\\n position: absolute;\\n top: 313px;\\n}\\n\\ndiv.vis-color-picker div.vis-opacity {\\n position: absolute;\\n top: 350px;\\n}\\n\\ndiv.vis-color-picker div.vis-selector {\\n position: absolute;\\n top: 137px;\\n left: 137px;\\n width: 15px;\\n height: 15px;\\n border-radius: 15px;\\n border: 1px solid #ffffff;\\n background: #4c4c4c; /* Old browsers */\\n background: -moz-linear-gradient(\\n top,\\n #4c4c4c 0%,\\n #595959 12%,\\n #666666 25%,\\n #474747 39%,\\n #2c2c2c 50%,\\n #000000 51%,\\n #111111 60%,\\n #2b2b2b 76%,\\n #1c1c1c 91%,\\n #131313 100%\\n ); /* FF3.6+ */\\n background: -webkit-gradient(\\n linear,\\n left top,\\n left bottom,\\n color-stop(0%, #4c4c4c),\\n color-stop(12%, #595959),\\n color-stop(25%, #666666),\\n color-stop(39%, #474747),\\n color-stop(50%, #2c2c2c),\\n color-stop(51%, #000000),\\n color-stop(60%, #111111),\\n color-stop(76%, #2b2b2b),\\n color-stop(91%, #1c1c1c),\\n color-stop(100%, #131313)\\n ); /* Chrome,Safari4+ */\\n background: -webkit-linear-gradient(\\n top,\\n #4c4c4c 0%,\\n #595959 12%,\\n #666666 25%,\\n #474747 39%,\\n #2c2c2c 50%,\\n #000000 51%,\\n #111111 60%,\\n #2b2b2b 76%,\\n #1c1c1c 91%,\\n #131313 100%\\n ); /* Chrome10+,Safari5.1+ */\\n background: -o-linear-gradient(\\n top,\\n #4c4c4c 0%,\\n #595959 12%,\\n #666666 25%,\\n #474747 39%,\\n #2c2c2c 50%,\\n #000000 51%,\\n #111111 60%,\\n #2b2b2b 76%,\\n #1c1c1c 91%,\\n #131313 100%\\n ); /* Opera 11.10+ */\\n background: -ms-linear-gradient(\\n top,\\n #4c4c4c 0%,\\n #595959 12%,\\n #666666 25%,\\n #474747 39%,\\n #2c2c2c 50%,\\n #000000 51%,\\n #111111 60%,\\n #2b2b2b 76%,\\n #1c1c1c 91%,\\n #131313 100%\\n ); /* IE10+ */\\n background: linear-gradient(\\n to bottom,\\n #4c4c4c 0%,\\n #595959 12%,\\n #666666 25%,\\n #474747 39%,\\n #2c2c2c 50%,\\n #000000 51%,\\n #111111 60%,\\n #2b2b2b 76%,\\n #1c1c1c 91%,\\n #131313 100%\\n ); /* W3C */\\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#131313',GradientType=0 ); /* IE6-9 */\\n}\\n\\ndiv.vis-color-picker div.vis-new-color {\\n position: absolute;\\n width: 140px;\\n height: 20px;\\n border: 1px solid rgba(0, 0, 0, 0.1);\\n border-radius: 5px;\\n top: 380px;\\n left: 159px;\\n text-align: right;\\n padding-right: 2px;\\n font-size: 10px;\\n color: rgba(0, 0, 0, 0.4);\\n vertical-align: middle;\\n line-height: 20px;\\n}\\n\\ndiv.vis-color-picker div.vis-initial-color {\\n position: absolute;\\n width: 140px;\\n height: 20px;\\n border: 1px solid rgba(0, 0, 0, 0.1);\\n border-radius: 5px;\\n top: 380px;\\n left: 10px;\\n text-align: left;\\n padding-left: 2px;\\n font-size: 10px;\\n color: rgba(0, 0, 0, 0.4);\\n vertical-align: middle;\\n line-height: 20px;\\n}\\n\\ndiv.vis-color-picker div.vis-label {\\n position: absolute;\\n width: 300px;\\n left: 10px;\\n}\\n\\ndiv.vis-color-picker div.vis-label.vis-brightness {\\n top: 300px;\\n}\\n\\ndiv.vis-color-picker div.vis-label.vis-opacity {\\n top: 338px;\\n}\\n\\ndiv.vis-color-picker div.vis-button {\\n position: absolute;\\n width: 68px;\\n height: 25px;\\n border-radius: 10px;\\n vertical-align: middle;\\n text-align: center;\\n line-height: 25px;\\n top: 410px;\\n border: 2px solid #d9d9d9;\\n background-color: #f7f7f7;\\n cursor: pointer;\\n}\\n\\ndiv.vis-color-picker div.vis-button.vis-cancel {\\n /*border:2px solid #ff4e33;*/\\n /*background-color: #ff7761;*/\\n left: 5px;\\n}\\ndiv.vis-color-picker div.vis-button.vis-load {\\n /*border:2px solid #a153e6;*/\\n /*background-color: #cb8dff;*/\\n left: 82px;\\n}\\ndiv.vis-color-picker div.vis-button.vis-apply {\\n /*border:2px solid #4588e6;*/\\n /*background-color: #82b6ff;*/\\n left: 159px;\\n}\\ndiv.vis-color-picker div.vis-button.vis-save {\\n /*border:2px solid #45e655;*/\\n /*background-color: #6dff7c;*/\\n left: 236px;\\n}\\n\\ndiv.vis-color-picker input.vis-range {\\n width: 290px;\\n height: 20px;\\n}\\n\\n/* TODO: is this redundant?\\ndiv.vis-color-picker input.vis-range-brightness {\\n width: 289px !important;\\n}\\n\\n\\ndiv.vis-color-picker input.vis-saturation-range {\\n width: 289px !important;\\n}*/\\n\";\nstyleInject(css_248z$4);\n\nvar css_248z$3 = \"div.vis-configuration {\\n position: relative;\\n display: block;\\n float: left;\\n font-size: 12px;\\n}\\n\\ndiv.vis-configuration-wrapper {\\n display: block;\\n width: 700px;\\n}\\n\\ndiv.vis-configuration-wrapper::after {\\n clear: both;\\n content: \\\"\\\";\\n display: block;\\n}\\n\\ndiv.vis-configuration.vis-config-option-container {\\n display: block;\\n width: 495px;\\n background-color: #ffffff;\\n border: 2px solid #f7f8fa;\\n border-radius: 4px;\\n margin-top: 20px;\\n left: 10px;\\n padding-left: 5px;\\n}\\n\\ndiv.vis-configuration.vis-config-button {\\n display: block;\\n width: 495px;\\n height: 25px;\\n vertical-align: middle;\\n line-height: 25px;\\n background-color: #f7f8fa;\\n border: 2px solid #ceced0;\\n border-radius: 4px;\\n margin-top: 20px;\\n left: 10px;\\n padding-left: 5px;\\n cursor: pointer;\\n margin-bottom: 30px;\\n}\\n\\ndiv.vis-configuration.vis-config-button.hover {\\n background-color: #4588e6;\\n border: 2px solid #214373;\\n color: #ffffff;\\n}\\n\\ndiv.vis-configuration.vis-config-item {\\n display: block;\\n float: left;\\n width: 495px;\\n height: 25px;\\n vertical-align: middle;\\n line-height: 25px;\\n}\\n\\ndiv.vis-configuration.vis-config-item.vis-config-s2 {\\n left: 10px;\\n background-color: #f7f8fa;\\n padding-left: 5px;\\n border-radius: 3px;\\n}\\ndiv.vis-configuration.vis-config-item.vis-config-s3 {\\n left: 20px;\\n background-color: #e4e9f0;\\n padding-left: 5px;\\n border-radius: 3px;\\n}\\ndiv.vis-configuration.vis-config-item.vis-config-s4 {\\n left: 30px;\\n background-color: #cfd8e6;\\n padding-left: 5px;\\n border-radius: 3px;\\n}\\n\\ndiv.vis-configuration.vis-config-header {\\n font-size: 18px;\\n font-weight: bold;\\n}\\n\\ndiv.vis-configuration.vis-config-label {\\n width: 120px;\\n height: 25px;\\n line-height: 25px;\\n}\\n\\ndiv.vis-configuration.vis-config-label.vis-config-s3 {\\n width: 110px;\\n}\\ndiv.vis-configuration.vis-config-label.vis-config-s4 {\\n width: 100px;\\n}\\n\\ndiv.vis-configuration.vis-config-colorBlock {\\n top: 1px;\\n width: 30px;\\n height: 19px;\\n border: 1px solid #444444;\\n border-radius: 2px;\\n padding: 0px;\\n margin: 0px;\\n cursor: pointer;\\n}\\n\\ninput.vis-configuration.vis-config-checkbox {\\n left: -5px;\\n}\\n\\ninput.vis-configuration.vis-config-rangeinput {\\n position: relative;\\n top: -5px;\\n width: 60px;\\n /*height:13px;*/\\n padding: 1px;\\n margin: 0;\\n pointer-events: none;\\n}\\n\\ninput.vis-configuration.vis-config-range {\\n /*removes default webkit styles*/\\n -webkit-appearance: none;\\n\\n /*fix for FF unable to apply focus style bug */\\n border: 0px solid white;\\n background-color: rgba(0, 0, 0, 0);\\n\\n /*required for proper track sizing in FF*/\\n width: 300px;\\n height: 20px;\\n}\\ninput.vis-configuration.vis-config-range::-webkit-slider-runnable-track {\\n width: 300px;\\n height: 5px;\\n background: #dedede; /* Old browsers */\\n background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\\n background: -webkit-gradient(\\n linear,\\n left top,\\n left bottom,\\n color-stop(0%, #dedede),\\n color-stop(99%, #c8c8c8)\\n ); /* Chrome,Safari4+ */\\n background: -webkit-linear-gradient(\\n top,\\n #dedede 0%,\\n #c8c8c8 99%\\n ); /* Chrome10+,Safari5.1+ */\\n background: -o-linear-gradient(\\n top,\\n #dedede 0%,\\n #c8c8c8 99%\\n ); /* Opera 11.10+ */\\n background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */\\n background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */\\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\\n\\n border: 1px solid #999999;\\n box-shadow: #aaaaaa 0px 0px 3px 0px;\\n border-radius: 3px;\\n}\\ninput.vis-configuration.vis-config-range::-webkit-slider-thumb {\\n -webkit-appearance: none;\\n border: 1px solid #14334b;\\n height: 17px;\\n width: 17px;\\n border-radius: 50%;\\n background: #3876c2; /* Old browsers */\\n background: -moz-linear-gradient(top, #3876c2 0%, #385380 100%); /* FF3.6+ */\\n background: -webkit-gradient(\\n linear,\\n left top,\\n left bottom,\\n color-stop(0%, #3876c2),\\n color-stop(100%, #385380)\\n ); /* Chrome,Safari4+ */\\n background: -webkit-linear-gradient(\\n top,\\n #3876c2 0%,\\n #385380 100%\\n ); /* Chrome10+,Safari5.1+ */\\n background: -o-linear-gradient(\\n top,\\n #3876c2 0%,\\n #385380 100%\\n ); /* Opera 11.10+ */\\n background: -ms-linear-gradient(top, #3876c2 0%, #385380 100%); /* IE10+ */\\n background: linear-gradient(to bottom, #3876c2 0%, #385380 100%); /* W3C */\\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3876c2', endColorstr='#385380',GradientType=0 ); /* IE6-9 */\\n box-shadow: #111927 0px 0px 1px 0px;\\n margin-top: -7px;\\n}\\ninput.vis-configuration.vis-config-range:focus {\\n outline: none;\\n}\\ninput.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track {\\n background: #9d9d9d; /* Old browsers */\\n background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */\\n background: -webkit-gradient(\\n linear,\\n left top,\\n left bottom,\\n color-stop(0%, #9d9d9d),\\n color-stop(99%, #c8c8c8)\\n ); /* Chrome,Safari4+ */\\n background: -webkit-linear-gradient(\\n top,\\n #9d9d9d 0%,\\n #c8c8c8 99%\\n ); /* Chrome10+,Safari5.1+ */\\n background: -o-linear-gradient(\\n top,\\n #9d9d9d 0%,\\n #c8c8c8 99%\\n ); /* Opera 11.10+ */\\n background: -ms-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* IE10+ */\\n background: linear-gradient(to bottom, #9d9d9d 0%, #c8c8c8 99%); /* W3C */\\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9d9d9d', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\\n}\\n\\ninput.vis-configuration.vis-config-range::-moz-range-track {\\n width: 300px;\\n height: 10px;\\n background: #dedede; /* Old browsers */\\n background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\\n background: -webkit-gradient(\\n linear,\\n left top,\\n left bottom,\\n color-stop(0%, #dedede),\\n color-stop(99%, #c8c8c8)\\n ); /* Chrome,Safari4+ */\\n background: -webkit-linear-gradient(\\n top,\\n #dedede 0%,\\n #c8c8c8 99%\\n ); /* Chrome10+,Safari5.1+ */\\n background: -o-linear-gradient(\\n top,\\n #dedede 0%,\\n #c8c8c8 99%\\n ); /* Opera 11.10+ */\\n background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */\\n background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */\\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\\n\\n border: 1px solid #999999;\\n box-shadow: #aaaaaa 0px 0px 3px 0px;\\n border-radius: 3px;\\n}\\ninput.vis-configuration.vis-config-range::-moz-range-thumb {\\n border: none;\\n height: 16px;\\n width: 16px;\\n\\n border-radius: 50%;\\n background: #385380;\\n}\\n\\n/*hide the outline behind the border*/\\ninput.vis-configuration.vis-config-range:-moz-focusring {\\n outline: 1px solid white;\\n outline-offset: -1px;\\n}\\n\\ninput.vis-configuration.vis-config-range::-ms-track {\\n width: 300px;\\n height: 5px;\\n\\n /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */\\n background: transparent;\\n\\n /*leave room for the larger thumb to overflow with a transparent border */\\n border-color: transparent;\\n border-width: 6px 0;\\n\\n /*remove default tick marks*/\\n color: transparent;\\n}\\ninput.vis-configuration.vis-config-range::-ms-fill-lower {\\n background: #777;\\n border-radius: 10px;\\n}\\ninput.vis-configuration.vis-config-range::-ms-fill-upper {\\n background: #ddd;\\n border-radius: 10px;\\n}\\ninput.vis-configuration.vis-config-range::-ms-thumb {\\n border: none;\\n height: 16px;\\n width: 16px;\\n border-radius: 50%;\\n background: #385380;\\n}\\ninput.vis-configuration.vis-config-range:focus::-ms-fill-lower {\\n background: #888;\\n}\\ninput.vis-configuration.vis-config-range:focus::-ms-fill-upper {\\n background: #ccc;\\n}\\n\\n.vis-configuration-popup {\\n position: absolute;\\n background: rgba(57, 76, 89, 0.85);\\n border: 2px solid #f2faff;\\n line-height: 30px;\\n height: 30px;\\n width: 150px;\\n text-align: center;\\n color: #ffffff;\\n font-size: 14px;\\n border-radius: 4px;\\n -webkit-transition: opacity 0.3s ease-in-out;\\n -moz-transition: opacity 0.3s ease-in-out;\\n transition: opacity 0.3s ease-in-out;\\n}\\n.vis-configuration-popup:after,\\n.vis-configuration-popup:before {\\n left: 100%;\\n top: 50%;\\n border: solid transparent;\\n content: \\\" \\\";\\n height: 0;\\n width: 0;\\n position: absolute;\\n pointer-events: none;\\n}\\n\\n.vis-configuration-popup:after {\\n border-color: rgba(136, 183, 213, 0);\\n border-left-color: rgba(57, 76, 89, 0.85);\\n border-width: 8px;\\n margin-top: -8px;\\n}\\n.vis-configuration-popup:before {\\n border-color: rgba(194, 225, 245, 0);\\n border-left-color: #f2faff;\\n border-width: 12px;\\n margin-top: -12px;\\n}\\n\";\nstyleInject(css_248z$3);\n\nvar css_248z$2 = \"div.vis-tooltip {\\n position: absolute;\\n visibility: hidden;\\n padding: 5px;\\n white-space: nowrap;\\n\\n font-family: verdana;\\n font-size: 14px;\\n color: #000000;\\n background-color: #f5f4ed;\\n\\n -moz-border-radius: 3px;\\n -webkit-border-radius: 3px;\\n border-radius: 3px;\\n border: 1px solid #808074;\\n\\n box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);\\n pointer-events: none;\\n\\n z-index: 5;\\n}\\n\";\nstyleInject(css_248z$2);\n\nvar componentEmitterExports = {};\nvar componentEmitter = {\n get exports(){ return componentEmitterExports; },\n set exports(v){ componentEmitterExports = v; },\n};\n\n(function (module) {\n\t/**\r\n\t * Expose `Emitter`.\r\n\t */\r\n\r\n\t{\r\n\t module.exports = Emitter;\r\n\t}\r\n\r\n\t/**\r\n\t * Initialize a new `Emitter`.\r\n\t *\r\n\t * @api public\r\n\t */\r\n\r\n\tfunction Emitter(obj) {\r\n\t if (obj) return mixin(obj);\r\n\t}\r\n\t/**\r\n\t * Mixin the emitter properties.\r\n\t *\r\n\t * @param {Object} obj\r\n\t * @return {Object}\r\n\t * @api private\r\n\t */\r\n\r\n\tfunction mixin(obj) {\r\n\t for (var key in Emitter.prototype) {\r\n\t obj[key] = Emitter.prototype[key];\r\n\t }\r\n\t return obj;\r\n\t}\r\n\r\n\t/**\r\n\t * Listen on the given `event` with `fn`.\r\n\t *\r\n\t * @param {String} event\r\n\t * @param {Function} fn\r\n\t * @return {Emitter}\r\n\t * @api public\r\n\t */\r\n\r\n\tEmitter.prototype.on =\r\n\tEmitter.prototype.addEventListener = function(event, fn){\r\n\t this._callbacks = this._callbacks || {};\r\n\t (this._callbacks['$' + event] = this._callbacks['$' + event] || [])\r\n\t .push(fn);\r\n\t return this;\r\n\t};\r\n\r\n\t/**\r\n\t * Adds an `event` listener that will be invoked a single\r\n\t * time then automatically removed.\r\n\t *\r\n\t * @param {String} event\r\n\t * @param {Function} fn\r\n\t * @return {Emitter}\r\n\t * @api public\r\n\t */\r\n\r\n\tEmitter.prototype.once = function(event, fn){\r\n\t function on() {\r\n\t this.off(event, on);\r\n\t fn.apply(this, arguments);\r\n\t }\r\n\r\n\t on.fn = fn;\r\n\t this.on(event, on);\r\n\t return this;\r\n\t};\r\n\r\n\t/**\r\n\t * Remove the given callback for `event` or all\r\n\t * registered callbacks.\r\n\t *\r\n\t * @param {String} event\r\n\t * @param {Function} fn\r\n\t * @return {Emitter}\r\n\t * @api public\r\n\t */\r\n\r\n\tEmitter.prototype.off =\r\n\tEmitter.prototype.removeListener =\r\n\tEmitter.prototype.removeAllListeners =\r\n\tEmitter.prototype.removeEventListener = function(event, fn){\r\n\t this._callbacks = this._callbacks || {};\r\n\r\n\t // all\r\n\t if (0 == arguments.length) {\r\n\t this._callbacks = {};\r\n\t return this;\r\n\t }\r\n\r\n\t // specific event\r\n\t var callbacks = this._callbacks['$' + event];\r\n\t if (!callbacks) return this;\r\n\r\n\t // remove all handlers\r\n\t if (1 == arguments.length) {\r\n\t delete this._callbacks['$' + event];\r\n\t return this;\r\n\t }\r\n\r\n\t // remove specific handler\r\n\t var cb;\r\n\t for (var i = 0; i < callbacks.length; i++) {\r\n\t cb = callbacks[i];\r\n\t if (cb === fn || cb.fn === fn) {\r\n\t callbacks.splice(i, 1);\r\n\t break;\r\n\t }\r\n\t }\r\n\r\n\t // Remove event specific arrays for event types that no\r\n\t // one is subscribed for to avoid memory leak.\r\n\t if (callbacks.length === 0) {\r\n\t delete this._callbacks['$' + event];\r\n\t }\r\n\r\n\t return this;\r\n\t};\r\n\r\n\t/**\r\n\t * Emit `event` with the given args.\r\n\t *\r\n\t * @param {String} event\r\n\t * @param {Mixed} ...\r\n\t * @return {Emitter}\r\n\t */\r\n\r\n\tEmitter.prototype.emit = function(event){\r\n\t this._callbacks = this._callbacks || {};\r\n\r\n\t var args = new Array(arguments.length - 1)\r\n\t , callbacks = this._callbacks['$' + event];\r\n\r\n\t for (var i = 1; i < arguments.length; i++) {\r\n\t args[i - 1] = arguments[i];\r\n\t }\r\n\r\n\t if (callbacks) {\r\n\t callbacks = callbacks.slice(0);\r\n\t for (var i = 0, len = callbacks.length; i < len; ++i) {\r\n\t callbacks[i].apply(this, args);\r\n\t }\r\n\t }\r\n\r\n\t return this;\r\n\t};\r\n\r\n\t/**\r\n\t * Return array of callbacks for `event`.\r\n\t *\r\n\t * @param {String} event\r\n\t * @return {Array}\r\n\t * @api public\r\n\t */\r\n\r\n\tEmitter.prototype.listeners = function(event){\r\n\t this._callbacks = this._callbacks || {};\r\n\t return this._callbacks['$' + event] || [];\r\n\t};\r\n\r\n\t/**\r\n\t * Check if this emitter has `event` handlers.\r\n\t *\r\n\t * @param {String} event\r\n\t * @return {Boolean}\r\n\t * @api public\r\n\t */\r\n\r\n\tEmitter.prototype.hasListeners = function(event){\r\n\t return !! this.listeners(event).length;\r\n\t};\n} (componentEmitter));\n\nvar Emitter = componentEmitterExports;\n\nvar fromExports$2 = {};\nvar from$7 = {\n get exports(){ return fromExports$2; },\n set exports(v){ fromExports$2 = v; },\n};\n\nvar wellKnownSymbol$m = wellKnownSymbol$o;\n\nvar TO_STRING_TAG$4 = wellKnownSymbol$m('toStringTag');\nvar test$2 = {};\n\ntest$2[TO_STRING_TAG$4] = 'z';\n\nvar toStringTagSupport = String(test$2) === '[object z]';\n\nvar TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;\nvar isCallable$e = isCallable$m;\nvar classofRaw = classofRaw$2;\nvar wellKnownSymbol$l = wellKnownSymbol$o;\n\nvar TO_STRING_TAG$3 = wellKnownSymbol$l('toStringTag');\nvar $Object$2 = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nvar classof$f = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object$2(it), TO_STRING_TAG$3)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable$e(O.callee) ? 'Arguments' : result;\n};\n\nvar classof$e = classof$f;\n\nvar $String$2 = String;\n\nvar toString$b = function (argument) {\n if (classof$e(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String$2(argument);\n};\n\nvar uncurryThis$n = functionUncurryThis;\nvar toIntegerOrInfinity$1 = toIntegerOrInfinity$4;\nvar toString$a = toString$b;\nvar requireObjectCoercible$2 = requireObjectCoercible$5;\n\nvar charAt$3 = uncurryThis$n(''.charAt);\nvar charCodeAt$1 = uncurryThis$n(''.charCodeAt);\nvar stringSlice = uncurryThis$n(''.slice);\n\nvar createMethod$4 = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString$a(requireObjectCoercible$2($this));\n var position = toIntegerOrInfinity$1(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt$1(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt$3(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nvar stringMultibyte = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod$4(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod$4(true)\n};\n\nvar global$i = global$q;\nvar isCallable$d = isCallable$m;\n\nvar WeakMap$1 = global$i.WeakMap;\n\nvar weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));\n\nvar shared$5 = sharedExports;\nvar uid$2 = uid$4;\n\nvar keys$7 = shared$5('keys');\n\nvar sharedKey$4 = function (key) {\n return keys$7[key] || (keys$7[key] = uid$2(key));\n};\n\nvar NATIVE_WEAK_MAP$1 = weakMapBasicDetection;\nvar global$h = global$q;\nvar isObject$g = isObject$m;\nvar createNonEnumerableProperty$7 = createNonEnumerableProperty$9;\nvar hasOwn$g = hasOwnProperty_1;\nvar shared$4 = sharedStore;\nvar sharedKey$3 = sharedKey$4;\nvar hiddenKeys$4 = hiddenKeys$6;\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError$3 = global$h.TypeError;\nvar WeakMap = global$h.WeakMap;\nvar set$4, get$7, has;\n\nvar enforce = function (it) {\n return has(it) ? get$7(it) : set$4(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject$g(it) || (state = get$7(it)).type !== TYPE) {\n throw TypeError$3('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP$1 || shared$4.state) {\n var store$1 = shared$4.state || (shared$4.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store$1.get = store$1.get;\n store$1.has = store$1.has;\n store$1.set = store$1.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set$4 = function (it, metadata) {\n if (store$1.has(it)) throw TypeError$3(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store$1.set(it, metadata);\n return metadata;\n };\n get$7 = function (it) {\n return store$1.get(it) || {};\n };\n has = function (it) {\n return store$1.has(it);\n };\n} else {\n var STATE = sharedKey$3('state');\n hiddenKeys$4[STATE] = true;\n set$4 = function (it, metadata) {\n if (hasOwn$g(it, STATE)) throw TypeError$3(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty$7(it, STATE, metadata);\n return metadata;\n };\n get$7 = function (it) {\n return hasOwn$g(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn$g(it, STATE);\n };\n}\n\nvar internalState = {\n set: set$4,\n get: get$7,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n\nvar DESCRIPTORS$c = descriptors;\nvar hasOwn$f = hasOwnProperty_1;\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS$c && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn$f(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS$c || (DESCRIPTORS$c && getDescriptor(FunctionPrototype, 'name').configurable));\n\nvar functionName = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n\nvar objectDefineProperties = {};\n\nvar DESCRIPTORS$b = descriptors;\nvar V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;\nvar definePropertyModule$3 = objectDefineProperty;\nvar anObject$d = anObject$f;\nvar toIndexedObject$7 = toIndexedObject$b;\nvar objectKeys$2 = objectKeys$4;\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nobjectDefineProperties.f = DESCRIPTORS$b && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject$d(O);\n var props = toIndexedObject$7(Properties);\n var keys = objectKeys$2(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);\n return O;\n};\n\nvar getBuiltIn$d = getBuiltIn$f;\n\nvar html$2 = getBuiltIn$d('document', 'documentElement');\n\n/* global ActiveXObject -- old IE, WSH */\n\nvar anObject$c = anObject$f;\nvar definePropertiesModule$1 = objectDefineProperties;\nvar enumBugKeys$1 = enumBugKeys$3;\nvar hiddenKeys$3 = hiddenKeys$6;\nvar html$1 = html$2;\nvar documentCreateElement = documentCreateElement$1;\nvar sharedKey$2 = sharedKey$4;\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE$1 = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO$1 = sharedKey$2('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html$1.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys$1.length;\n while (length--) delete NullProtoObject[PROTOTYPE$1][enumBugKeys$1[length]];\n return NullProtoObject();\n};\n\nhiddenKeys$3[IE_PROTO$1] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nvar objectCreate = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE$1] = anObject$c(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE$1] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO$1] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule$1.f(result, Properties);\n};\n\nvar fails$q = fails$z;\n\nvar correctPrototypeGetter = !fails$q(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n\nvar hasOwn$e = hasOwnProperty_1;\nvar isCallable$c = isCallable$m;\nvar toObject$b = toObject$e;\nvar sharedKey$1 = sharedKey$4;\nvar CORRECT_PROTOTYPE_GETTER$1 = correctPrototypeGetter;\n\nvar IE_PROTO = sharedKey$1('IE_PROTO');\nvar $Object$1 = Object;\nvar ObjectPrototype$2 = $Object$1.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nvar objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER$1 ? $Object$1.getPrototypeOf : function (O) {\n var object = toObject$b(O);\n if (hasOwn$e(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable$c(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object$1 ? ObjectPrototype$2 : null;\n};\n\nvar createNonEnumerableProperty$6 = createNonEnumerableProperty$9;\n\nvar defineBuiltIn$6 = function (target, key, value, options) {\n if (options && options.enumerable) target[key] = value;\n else createNonEnumerableProperty$6(target, key, value);\n return target;\n};\n\nvar fails$p = fails$z;\nvar isCallable$b = isCallable$m;\nvar isObject$f = isObject$m;\nvar create$c = objectCreate;\nvar getPrototypeOf$a = objectGetPrototypeOf;\nvar defineBuiltIn$5 = defineBuiltIn$6;\nvar wellKnownSymbol$k = wellKnownSymbol$o;\n\nvar ITERATOR$6 = wellKnownSymbol$k('iterator');\nvar BUGGY_SAFARI_ITERATORS$1 = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype$1, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf$a(getPrototypeOf$a(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = !isObject$f(IteratorPrototype$1) || fails$p(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype$1[ITERATOR$6].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$1 = {};\nelse IteratorPrototype$1 = create$c(IteratorPrototype$1);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable$b(IteratorPrototype$1[ITERATOR$6])) {\n defineBuiltIn$5(IteratorPrototype$1, ITERATOR$6, function () {\n return this;\n });\n}\n\nvar iteratorsCore = {\n IteratorPrototype: IteratorPrototype$1,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1\n};\n\nvar TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;\nvar classof$d = classof$f;\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nvar objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {\n return '[object ' + classof$d(this) + ']';\n};\n\nvar TO_STRING_TAG_SUPPORT = toStringTagSupport;\nvar defineProperty$d = objectDefineProperty.f;\nvar createNonEnumerableProperty$5 = createNonEnumerableProperty$9;\nvar hasOwn$d = hasOwnProperty_1;\nvar toString$9 = objectToString;\nvar wellKnownSymbol$j = wellKnownSymbol$o;\n\nvar TO_STRING_TAG$2 = wellKnownSymbol$j('toStringTag');\n\nvar setToStringTag$7 = function (it, TAG, STATIC, SET_METHOD) {\n if (it) {\n var target = STATIC ? it : it.prototype;\n if (!hasOwn$d(target, TO_STRING_TAG$2)) {\n defineProperty$d(target, TO_STRING_TAG$2, { configurable: true, value: TAG });\n }\n if (SET_METHOD && !TO_STRING_TAG_SUPPORT) {\n createNonEnumerableProperty$5(target, 'toString', toString$9);\n }\n }\n};\n\nvar iterators = {};\n\nvar IteratorPrototype = iteratorsCore.IteratorPrototype;\nvar create$b = objectCreate;\nvar createPropertyDescriptor$4 = createPropertyDescriptor$7;\nvar setToStringTag$6 = setToStringTag$7;\nvar Iterators$5 = iterators;\n\nvar returnThis$1 = function () { return this; };\n\nvar iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create$b(IteratorPrototype, { next: createPropertyDescriptor$4(+!ENUMERABLE_NEXT, next) });\n setToStringTag$6(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators$5[TO_STRING_TAG] = returnThis$1;\n return IteratorConstructor;\n};\n\nvar uncurryThis$m = functionUncurryThis;\nvar aCallable$a = aCallable$e;\n\nvar functionUncurryThisAccessor = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis$m(aCallable$a(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n};\n\nvar isCallable$a = isCallable$m;\n\nvar $String$1 = String;\nvar $TypeError$b = TypeError;\n\nvar aPossiblePrototype$1 = function (argument) {\n if (typeof argument == 'object' || isCallable$a(argument)) return argument;\n throw $TypeError$b(\"Can't set \" + $String$1(argument) + ' as a prototype');\n};\n\n/* eslint-disable no-proto -- safe */\n\nvar uncurryThisAccessor = functionUncurryThisAccessor;\nvar anObject$b = anObject$f;\nvar aPossiblePrototype = aPossiblePrototype$1;\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nvar objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject$b(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n\nvar $$Y = _export;\nvar call$e = functionCall;\nvar FunctionName = functionName;\nvar createIteratorConstructor = iteratorCreateConstructor;\nvar getPrototypeOf$9 = objectGetPrototypeOf;\nvar setToStringTag$5 = setToStringTag$7;\nvar defineBuiltIn$4 = defineBuiltIn$6;\nvar wellKnownSymbol$i = wellKnownSymbol$o;\nvar Iterators$4 = iterators;\nvar IteratorsCore = iteratorsCore;\n\nvar PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR$5 = wellKnownSymbol$i('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nvar iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR$5]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf$9(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag$5(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n Iterators$4[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME$1 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call$e(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n defineBuiltIn$4(IterablePrototype, KEY, methods[KEY]);\n }\n } else $$Y({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((FORCED) && IterablePrototype[ITERATOR$5] !== defaultIterator) {\n defineBuiltIn$4(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });\n }\n Iterators$4[NAME] = defaultIterator;\n\n return methods;\n};\n\n// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nvar createIterResultObject$3 = function (value, done) {\n return { value: value, done: done };\n};\n\nvar charAt$2 = stringMultibyte.charAt;\nvar toString$8 = toString$b;\nvar InternalStateModule$6 = internalState;\nvar defineIterator$2 = iteratorDefine;\nvar createIterResultObject$2 = createIterResultObject$3;\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState$6 = InternalStateModule$6.set;\nvar getInternalState$2 = InternalStateModule$6.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator$2(String, 'String', function (iterated) {\n setInternalState$6(this, {\n type: STRING_ITERATOR,\n string: toString$8(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState$2(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return createIterResultObject$2(undefined, true);\n point = charAt$2(string, index);\n state.index += point.length;\n return createIterResultObject$2(point, false);\n});\n\nvar call$d = functionCall;\nvar anObject$a = anObject$f;\nvar getMethod$1 = getMethod$3;\n\nvar iteratorClose$2 = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject$a(iterator);\n try {\n innerResult = getMethod$1(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call$d(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject$a(innerResult);\n return value;\n};\n\nvar anObject$9 = anObject$f;\nvar iteratorClose$1 = iteratorClose$2;\n\n// call something on iterator step with safe closing on error\nvar callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {\n try {\n return ENTRIES ? fn(anObject$9(value)[0], value[1]) : fn(value);\n } catch (error) {\n iteratorClose$1(iterator, 'throw', error);\n }\n};\n\nvar wellKnownSymbol$h = wellKnownSymbol$o;\nvar Iterators$3 = iterators;\n\nvar ITERATOR$4 = wellKnownSymbol$h('iterator');\nvar ArrayPrototype$i = Array.prototype;\n\n// check on default Array iterator\nvar isArrayIteratorMethod$2 = function (it) {\n return it !== undefined && (Iterators$3.Array === it || ArrayPrototype$i[ITERATOR$4] === it);\n};\n\nvar uncurryThis$l = functionUncurryThis;\nvar isCallable$9 = isCallable$m;\nvar store = sharedStore;\n\nvar functionToString = uncurryThis$l(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable$9(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nvar inspectSource$2 = store.inspectSource;\n\nvar uncurryThis$k = functionUncurryThis;\nvar fails$o = fails$z;\nvar isCallable$8 = isCallable$m;\nvar classof$c = classof$f;\nvar getBuiltIn$c = getBuiltIn$f;\nvar inspectSource$1 = inspectSource$2;\n\nvar noop = function () { /* empty */ };\nvar empty = [];\nvar construct$3 = getBuiltIn$c('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec$2 = uncurryThis$k(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.exec(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable$8(argument)) return false;\n try {\n construct$3(noop, empty, argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable$8(argument)) return false;\n switch (classof$c(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource$1(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nvar isConstructor$4 = !construct$3 || fails$o(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n\nvar toPropertyKey$1 = toPropertyKey$4;\nvar definePropertyModule$2 = objectDefineProperty;\nvar createPropertyDescriptor$3 = createPropertyDescriptor$7;\n\nvar createProperty$6 = function (object, key, value) {\n var propertyKey = toPropertyKey$1(key);\n if (propertyKey in object) definePropertyModule$2.f(object, propertyKey, createPropertyDescriptor$3(0, value));\n else object[propertyKey] = value;\n};\n\nvar classof$b = classof$f;\nvar getMethod = getMethod$3;\nvar isNullOrUndefined$3 = isNullOrUndefined$6;\nvar Iterators$2 = iterators;\nvar wellKnownSymbol$g = wellKnownSymbol$o;\n\nvar ITERATOR$3 = wellKnownSymbol$g('iterator');\n\nvar getIteratorMethod$9 = function (it) {\n if (!isNullOrUndefined$3(it)) return getMethod(it, ITERATOR$3)\n || getMethod(it, '@@iterator')\n || Iterators$2[classof$b(it)];\n};\n\nvar call$c = functionCall;\nvar aCallable$9 = aCallable$e;\nvar anObject$8 = anObject$f;\nvar tryToString$4 = tryToString$6;\nvar getIteratorMethod$8 = getIteratorMethod$9;\n\nvar $TypeError$a = TypeError;\n\nvar getIterator$8 = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod$8(argument) : usingIterator;\n if (aCallable$9(iteratorMethod)) return anObject$8(call$c(iteratorMethod, argument));\n throw $TypeError$a(tryToString$4(argument) + ' is not iterable');\n};\n\nvar bind$c = functionBindContext;\nvar call$b = functionCall;\nvar toObject$a = toObject$e;\nvar callWithSafeIterationClosing = callWithSafeIterationClosing$1;\nvar isArrayIteratorMethod$1 = isArrayIteratorMethod$2;\nvar isConstructor$3 = isConstructor$4;\nvar lengthOfArrayLike$b = lengthOfArrayLike$d;\nvar createProperty$5 = createProperty$6;\nvar getIterator$7 = getIterator$8;\nvar getIteratorMethod$7 = getIteratorMethod$9;\n\nvar $Array$3 = Array;\n\n// `Array.from` method implementation\n// https://tc39.es/ecma262/#sec-array.from\nvar arrayFrom = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject$a(arrayLike);\n var IS_CONSTRUCTOR = isConstructor$3(this);\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n if (mapping) mapfn = bind$c(mapfn, argumentsLength > 2 ? arguments[2] : undefined);\n var iteratorMethod = getIteratorMethod$7(O);\n var index = 0;\n var length, result, step, iterator, next, value;\n // if the target is not iterable or it's an array with the default iterator - use a simple case\n if (iteratorMethod && !(this === $Array$3 && isArrayIteratorMethod$1(iteratorMethod))) {\n iterator = getIterator$7(O, iteratorMethod);\n next = iterator.next;\n result = IS_CONSTRUCTOR ? new this() : [];\n for (;!(step = call$b(next, iterator)).done; index++) {\n value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;\n createProperty$5(result, index, value);\n }\n } else {\n length = lengthOfArrayLike$b(O);\n result = IS_CONSTRUCTOR ? new this(length) : $Array$3(length);\n for (;length > index; index++) {\n value = mapping ? mapfn(O[index], index) : O[index];\n createProperty$5(result, index, value);\n }\n }\n result.length = index;\n return result;\n};\n\nvar wellKnownSymbol$f = wellKnownSymbol$o;\n\nvar ITERATOR$2 = wellKnownSymbol$f('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR$2] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nvar checkCorrectnessOfIteration$2 = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR$2] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n\nvar $$X = _export;\nvar from$6 = arrayFrom;\nvar checkCorrectnessOfIteration$1 = checkCorrectnessOfIteration$2;\n\nvar INCORRECT_ITERATION = !checkCorrectnessOfIteration$1(function (iterable) {\n // eslint-disable-next-line es/no-array-from -- required for testing\n Array.from(iterable);\n});\n\n// `Array.from` method\n// https://tc39.es/ecma262/#sec-array.from\n$$X({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {\n from: from$6\n});\n\nvar path$u = path$z;\n\nvar from$5 = path$u.Array.from;\n\nvar parent$1m = from$5;\n\nvar from$4 = parent$1m;\n\n(function (module) {\n\tmodule.exports = from$4;\n} (from$7));\n\nvar _Array$from$1 = /*@__PURE__*/getDefaultExportFromCjs(fromExports$2);\n\nvar getIteratorMethodExports$1 = {};\nvar getIteratorMethod$6 = {\n get exports(){ return getIteratorMethodExports$1; },\n set exports(v){ getIteratorMethodExports$1 = v; },\n};\n\nvar getIteratorMethodExports = {};\nvar getIteratorMethod$5 = {\n get exports(){ return getIteratorMethodExports; },\n set exports(v){ getIteratorMethodExports = v; },\n};\n\nvar toIndexedObject$6 = toIndexedObject$b;\nvar Iterators$1 = iterators;\nvar InternalStateModule$5 = internalState;\nobjectDefineProperty.f;\nvar defineIterator$1 = iteratorDefine;\nvar createIterResultObject$1 = createIterResultObject$3;\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState$5 = InternalStateModule$5.set;\nvar getInternalState$1 = InternalStateModule$5.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\ndefineIterator$1(Array, 'Array', function (iterated, kind) {\n setInternalState$5(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject$6(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState$1(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return createIterResultObject$1(undefined, true);\n }\n if (kind == 'keys') return createIterResultObject$1(index, false);\n if (kind == 'values') return createIterResultObject$1(target[index], false);\n return createIterResultObject$1([index, target[index]], false);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nIterators$1.Arguments = Iterators$1.Array;\n\nvar getIteratorMethod$4 = getIteratorMethod$9;\n\nvar getIteratorMethod_1 = getIteratorMethod$4;\n\n// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nvar domIterables = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n\nvar DOMIterables$4 = domIterables;\nvar global$g = global$q;\nvar classof$a = classof$f;\nvar createNonEnumerableProperty$4 = createNonEnumerableProperty$9;\nvar Iterators = iterators;\nvar wellKnownSymbol$e = wellKnownSymbol$o;\n\nvar TO_STRING_TAG$1 = wellKnownSymbol$e('toStringTag');\n\nfor (var COLLECTION_NAME in DOMIterables$4) {\n var Collection = global$g[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n if (CollectionPrototype && classof$a(CollectionPrototype) !== TO_STRING_TAG$1) {\n createNonEnumerableProperty$4(CollectionPrototype, TO_STRING_TAG$1, COLLECTION_NAME);\n }\n Iterators[COLLECTION_NAME] = Iterators.Array;\n}\n\nvar parent$1l = getIteratorMethod_1;\n\n\nvar getIteratorMethod$3 = parent$1l;\n\nvar parent$1k = getIteratorMethod$3;\n\nvar getIteratorMethod$2 = parent$1k;\n\nvar parent$1j = getIteratorMethod$2;\n\nvar getIteratorMethod$1 = parent$1j;\n\n(function (module) {\n\tmodule.exports = getIteratorMethod$1;\n} (getIteratorMethod$5));\n\n(function (module) {\n\tmodule.exports = getIteratorMethodExports;\n} (getIteratorMethod$6));\n\nvar _getIteratorMethod = /*@__PURE__*/getDefaultExportFromCjs(getIteratorMethodExports$1);\n\nvar getOwnPropertySymbolsExports = {};\nvar getOwnPropertySymbols$2 = {\n get exports(){ return getOwnPropertySymbolsExports; },\n set exports(v){ getOwnPropertySymbolsExports = v; },\n};\n\nvar objectGetOwnPropertyNames = {};\n\nvar internalObjectKeys = objectKeysInternal;\nvar enumBugKeys = enumBugKeys$3;\n\nvar hiddenKeys$2 = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nobjectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys$2);\n};\n\nvar objectGetOwnPropertyNamesExternal = {};\n\nvar toAbsoluteIndex$3 = toAbsoluteIndex$5;\nvar lengthOfArrayLike$a = lengthOfArrayLike$d;\nvar createProperty$4 = createProperty$6;\n\nvar $Array$2 = Array;\nvar max$2 = Math.max;\n\nvar arraySliceSimple = function (O, start, end) {\n var length = lengthOfArrayLike$a(O);\n var k = toAbsoluteIndex$3(start, length);\n var fin = toAbsoluteIndex$3(end === undefined ? length : end, length);\n var result = $Array$2(max$2(fin - k, 0));\n for (var n = 0; k < fin; k++, n++) createProperty$4(result, n, O[k]);\n result.length = n;\n return result;\n};\n\n/* eslint-disable es/no-object-getownpropertynames -- safe */\n\nvar classof$9 = classofRaw$2;\nvar toIndexedObject$5 = toIndexedObject$b;\nvar $getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;\nvar arraySlice$4 = arraySliceSimple;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames$1(it);\n } catch (error) {\n return arraySlice$4(windowNames);\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nobjectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames(it) {\n return windowNames && classof$9(it) == 'Window'\n ? getWindowNames(it)\n : $getOwnPropertyNames$1(toIndexedObject$5(it));\n};\n\nvar defineProperty$c = objectDefineProperty;\n\nvar defineBuiltInAccessor$3 = function (target, name, descriptor) {\n return defineProperty$c.f(target, name, descriptor);\n};\n\nvar wellKnownSymbolWrapped = {};\n\nvar wellKnownSymbol$d = wellKnownSymbol$o;\n\nwellKnownSymbolWrapped.f = wellKnownSymbol$d;\n\nvar path$t = path$z;\nvar hasOwn$c = hasOwnProperty_1;\nvar wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped;\nvar defineProperty$b = objectDefineProperty.f;\n\nvar wellKnownSymbolDefine = function (NAME) {\n var Symbol = path$t.Symbol || (path$t.Symbol = {});\n if (!hasOwn$c(Symbol, NAME)) defineProperty$b(Symbol, NAME, {\n value: wrappedWellKnownSymbolModule$1.f(NAME)\n });\n};\n\nvar call$a = functionCall;\nvar getBuiltIn$b = getBuiltIn$f;\nvar wellKnownSymbol$c = wellKnownSymbol$o;\nvar defineBuiltIn$3 = defineBuiltIn$6;\n\nvar symbolDefineToPrimitive = function () {\n var Symbol = getBuiltIn$b('Symbol');\n var SymbolPrototype = Symbol && Symbol.prototype;\n var valueOf = SymbolPrototype && SymbolPrototype.valueOf;\n var TO_PRIMITIVE = wellKnownSymbol$c('toPrimitive');\n\n if (SymbolPrototype && !SymbolPrototype[TO_PRIMITIVE]) {\n // `Symbol.prototype[@@toPrimitive]` method\n // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive\n // eslint-disable-next-line no-unused-vars -- required for .length\n defineBuiltIn$3(SymbolPrototype, TO_PRIMITIVE, function (hint) {\n return call$a(valueOf, this);\n }, { arity: 1 });\n }\n};\n\nvar classof$8 = classofRaw$2;\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nvar isArray$g = Array.isArray || function isArray(argument) {\n return classof$8(argument) == 'Array';\n};\n\nvar isArray$f = isArray$g;\nvar isConstructor$2 = isConstructor$4;\nvar isObject$e = isObject$m;\nvar wellKnownSymbol$b = wellKnownSymbol$o;\n\nvar SPECIES$5 = wellKnownSymbol$b('species');\nvar $Array$1 = Array;\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nvar arraySpeciesConstructor$1 = function (originalArray) {\n var C;\n if (isArray$f(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor$2(C) && (C === $Array$1 || isArray$f(C.prototype))) C = undefined;\n else if (isObject$e(C)) {\n C = C[SPECIES$5];\n if (C === null) C = undefined;\n }\n } return C === undefined ? $Array$1 : C;\n};\n\nvar arraySpeciesConstructor = arraySpeciesConstructor$1;\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nvar arraySpeciesCreate$4 = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n};\n\nvar bind$b = functionBindContext;\nvar uncurryThis$j = functionUncurryThis;\nvar IndexedObject$1 = indexedObject;\nvar toObject$9 = toObject$e;\nvar lengthOfArrayLike$9 = lengthOfArrayLike$d;\nvar arraySpeciesCreate$3 = arraySpeciesCreate$4;\n\nvar push$6 = uncurryThis$j([].push);\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation\nvar createMethod$3 = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var IS_FILTER_REJECT = TYPE == 7;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject$9($this);\n var self = IndexedObject$1(O);\n var boundFunction = bind$b(callbackfn, that);\n var length = lengthOfArrayLike$9(self);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate$3;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push$6(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push$6(target, value); // filterReject\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nvar arrayIteration = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod$3(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod$3(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod$3(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod$3(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod$3(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod$3(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod$3(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod$3(7)\n};\n\nvar $$W = _export;\nvar global$f = global$q;\nvar call$9 = functionCall;\nvar uncurryThis$i = functionUncurryThis;\nvar DESCRIPTORS$a = descriptors;\nvar NATIVE_SYMBOL$3 = symbolConstructorDetection;\nvar fails$n = fails$z;\nvar hasOwn$b = hasOwnProperty_1;\nvar isPrototypeOf$m = objectIsPrototypeOf;\nvar anObject$7 = anObject$f;\nvar toIndexedObject$4 = toIndexedObject$b;\nvar toPropertyKey = toPropertyKey$4;\nvar $toString = toString$b;\nvar createPropertyDescriptor$2 = createPropertyDescriptor$7;\nvar nativeObjectCreate = objectCreate;\nvar objectKeys$1 = objectKeys$4;\nvar getOwnPropertyNamesModule$2 = objectGetOwnPropertyNames;\nvar getOwnPropertyNamesExternal = objectGetOwnPropertyNamesExternal;\nvar getOwnPropertySymbolsModule$2 = objectGetOwnPropertySymbols;\nvar getOwnPropertyDescriptorModule$3 = objectGetOwnPropertyDescriptor;\nvar definePropertyModule$1 = objectDefineProperty;\nvar definePropertiesModule = objectDefineProperties;\nvar propertyIsEnumerableModule = objectPropertyIsEnumerable;\nvar defineBuiltIn$2 = defineBuiltIn$6;\nvar defineBuiltInAccessor$2 = defineBuiltInAccessor$3;\nvar shared$3 = sharedExports;\nvar sharedKey = sharedKey$4;\nvar hiddenKeys$1 = hiddenKeys$6;\nvar uid$1 = uid$4;\nvar wellKnownSymbol$a = wellKnownSymbol$o;\nvar wrappedWellKnownSymbolModule = wellKnownSymbolWrapped;\nvar defineWellKnownSymbol$l = wellKnownSymbolDefine;\nvar defineSymbolToPrimitive$1 = symbolDefineToPrimitive;\nvar setToStringTag$4 = setToStringTag$7;\nvar InternalStateModule$4 = internalState;\nvar $forEach$1 = arrayIteration.forEach;\n\nvar HIDDEN = sharedKey('hidden');\nvar SYMBOL = 'Symbol';\nvar PROTOTYPE = 'prototype';\n\nvar setInternalState$4 = InternalStateModule$4.set;\nvar getInternalState = InternalStateModule$4.getterFor(SYMBOL);\n\nvar ObjectPrototype$1 = Object[PROTOTYPE];\nvar $Symbol = global$f.Symbol;\nvar SymbolPrototype = $Symbol && $Symbol[PROTOTYPE];\nvar TypeError$2 = global$f.TypeError;\nvar QObject = global$f.QObject;\nvar nativeGetOwnPropertyDescriptor$1 = getOwnPropertyDescriptorModule$3.f;\nvar nativeDefineProperty = definePropertyModule$1.f;\nvar nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;\nvar nativePropertyIsEnumerable = propertyIsEnumerableModule.f;\nvar push$5 = uncurryThis$i([].push);\n\nvar AllSymbols = shared$3('symbols');\nvar ObjectPrototypeSymbols = shared$3('op-symbols');\nvar WellKnownSymbolsStore$1 = shared$3('wks');\n\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDescriptor = DESCRIPTORS$a && fails$n(function () {\n return nativeObjectCreate(nativeDefineProperty({}, 'a', {\n get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (O, P, Attributes) {\n var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype$1, P);\n if (ObjectPrototypeDescriptor) delete ObjectPrototype$1[P];\n nativeDefineProperty(O, P, Attributes);\n if (ObjectPrototypeDescriptor && O !== ObjectPrototype$1) {\n nativeDefineProperty(ObjectPrototype$1, P, ObjectPrototypeDescriptor);\n }\n} : nativeDefineProperty;\n\nvar wrap = function (tag, description) {\n var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype);\n setInternalState$4(symbol, {\n type: SYMBOL,\n tag: tag,\n description: description\n });\n if (!DESCRIPTORS$a) symbol.description = description;\n return symbol;\n};\n\nvar $defineProperty = function defineProperty(O, P, Attributes) {\n if (O === ObjectPrototype$1) $defineProperty(ObjectPrototypeSymbols, P, Attributes);\n anObject$7(O);\n var key = toPropertyKey(P);\n anObject$7(Attributes);\n if (hasOwn$b(AllSymbols, key)) {\n if (!Attributes.enumerable) {\n if (!hasOwn$b(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor$2(1, {}));\n O[HIDDEN][key] = true;\n } else {\n if (hasOwn$b(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;\n Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor$2(0, false) });\n } return setSymbolDescriptor(O, key, Attributes);\n } return nativeDefineProperty(O, key, Attributes);\n};\n\nvar $defineProperties = function defineProperties(O, Properties) {\n anObject$7(O);\n var properties = toIndexedObject$4(Properties);\n var keys = objectKeys$1(properties).concat($getOwnPropertySymbols(properties));\n $forEach$1(keys, function (key) {\n if (!DESCRIPTORS$a || call$9($propertyIsEnumerable$1, properties, key)) $defineProperty(O, key, properties[key]);\n });\n return O;\n};\n\nvar $create = function create(O, Properties) {\n return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);\n};\n\nvar $propertyIsEnumerable$1 = function propertyIsEnumerable(V) {\n var P = toPropertyKey(V);\n var enumerable = call$9(nativePropertyIsEnumerable, this, P);\n if (this === ObjectPrototype$1 && hasOwn$b(AllSymbols, P) && !hasOwn$b(ObjectPrototypeSymbols, P)) return false;\n return enumerable || !hasOwn$b(this, P) || !hasOwn$b(AllSymbols, P) || hasOwn$b(this, HIDDEN) && this[HIDDEN][P]\n ? enumerable : true;\n};\n\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {\n var it = toIndexedObject$4(O);\n var key = toPropertyKey(P);\n if (it === ObjectPrototype$1 && hasOwn$b(AllSymbols, key) && !hasOwn$b(ObjectPrototypeSymbols, key)) return;\n var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);\n if (descriptor && hasOwn$b(AllSymbols, key) && !(hasOwn$b(it, HIDDEN) && it[HIDDEN][key])) {\n descriptor.enumerable = true;\n }\n return descriptor;\n};\n\nvar $getOwnPropertyNames = function getOwnPropertyNames(O) {\n var names = nativeGetOwnPropertyNames(toIndexedObject$4(O));\n var result = [];\n $forEach$1(names, function (key) {\n if (!hasOwn$b(AllSymbols, key) && !hasOwn$b(hiddenKeys$1, key)) push$5(result, key);\n });\n return result;\n};\n\nvar $getOwnPropertySymbols = function (O) {\n var IS_OBJECT_PROTOTYPE = O === ObjectPrototype$1;\n var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject$4(O));\n var result = [];\n $forEach$1(names, function (key) {\n if (hasOwn$b(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn$b(ObjectPrototype$1, key))) {\n push$5(result, AllSymbols[key]);\n }\n });\n return result;\n};\n\n// `Symbol` constructor\n// https://tc39.es/ecma262/#sec-symbol-constructor\nif (!NATIVE_SYMBOL$3) {\n $Symbol = function Symbol() {\n if (isPrototypeOf$m(SymbolPrototype, this)) throw TypeError$2('Symbol is not a constructor');\n var description = !arguments.length || arguments[0] === undefined ? undefined : $toString(arguments[0]);\n var tag = uid$1(description);\n var setter = function (value) {\n if (this === ObjectPrototype$1) call$9(setter, ObjectPrototypeSymbols, value);\n if (hasOwn$b(this, HIDDEN) && hasOwn$b(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDescriptor(this, tag, createPropertyDescriptor$2(1, value));\n };\n if (DESCRIPTORS$a && USE_SETTER) setSymbolDescriptor(ObjectPrototype$1, tag, { configurable: true, set: setter });\n return wrap(tag, description);\n };\n\n SymbolPrototype = $Symbol[PROTOTYPE];\n\n defineBuiltIn$2(SymbolPrototype, 'toString', function toString() {\n return getInternalState(this).tag;\n });\n\n defineBuiltIn$2($Symbol, 'withoutSetter', function (description) {\n return wrap(uid$1(description), description);\n });\n\n propertyIsEnumerableModule.f = $propertyIsEnumerable$1;\n definePropertyModule$1.f = $defineProperty;\n definePropertiesModule.f = $defineProperties;\n getOwnPropertyDescriptorModule$3.f = $getOwnPropertyDescriptor;\n getOwnPropertyNamesModule$2.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;\n getOwnPropertySymbolsModule$2.f = $getOwnPropertySymbols;\n\n wrappedWellKnownSymbolModule.f = function (name) {\n return wrap(wellKnownSymbol$a(name), name);\n };\n\n if (DESCRIPTORS$a) {\n // https://github.com/tc39/proposal-Symbol-description\n defineBuiltInAccessor$2(SymbolPrototype, 'description', {\n configurable: true,\n get: function description() {\n return getInternalState(this).description;\n }\n });\n }\n}\n\n$$W({ global: true, constructor: true, wrap: true, forced: !NATIVE_SYMBOL$3, sham: !NATIVE_SYMBOL$3 }, {\n Symbol: $Symbol\n});\n\n$forEach$1(objectKeys$1(WellKnownSymbolsStore$1), function (name) {\n defineWellKnownSymbol$l(name);\n});\n\n$$W({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL$3 }, {\n useSetter: function () { USE_SETTER = true; },\n useSimple: function () { USE_SETTER = false; }\n});\n\n$$W({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL$3, sham: !DESCRIPTORS$a }, {\n // `Object.create` method\n // https://tc39.es/ecma262/#sec-object.create\n create: $create,\n // `Object.defineProperty` method\n // https://tc39.es/ecma262/#sec-object.defineproperty\n defineProperty: $defineProperty,\n // `Object.defineProperties` method\n // https://tc39.es/ecma262/#sec-object.defineproperties\n defineProperties: $defineProperties,\n // `Object.getOwnPropertyDescriptor` method\n // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor\n});\n\n$$W({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL$3 }, {\n // `Object.getOwnPropertyNames` method\n // https://tc39.es/ecma262/#sec-object.getownpropertynames\n getOwnPropertyNames: $getOwnPropertyNames\n});\n\n// `Symbol.prototype[@@toPrimitive]` method\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive\ndefineSymbolToPrimitive$1();\n\n// `Symbol.prototype[@@toStringTag]` property\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag\nsetToStringTag$4($Symbol, SYMBOL);\n\nhiddenKeys$1[HIDDEN] = true;\n\nvar NATIVE_SYMBOL$2 = symbolConstructorDetection;\n\n/* eslint-disable es/no-symbol -- safe */\nvar symbolRegistryDetection = NATIVE_SYMBOL$2 && !!Symbol['for'] && !!Symbol.keyFor;\n\nvar $$V = _export;\nvar getBuiltIn$a = getBuiltIn$f;\nvar hasOwn$a = hasOwnProperty_1;\nvar toString$7 = toString$b;\nvar shared$2 = sharedExports;\nvar NATIVE_SYMBOL_REGISTRY$1 = symbolRegistryDetection;\n\nvar StringToSymbolRegistry = shared$2('string-to-symbol-registry');\nvar SymbolToStringRegistry$1 = shared$2('symbol-to-string-registry');\n\n// `Symbol.for` method\n// https://tc39.es/ecma262/#sec-symbol.for\n$$V({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY$1 }, {\n 'for': function (key) {\n var string = toString$7(key);\n if (hasOwn$a(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];\n var symbol = getBuiltIn$a('Symbol')(string);\n StringToSymbolRegistry[string] = symbol;\n SymbolToStringRegistry$1[symbol] = string;\n return symbol;\n }\n});\n\nvar $$U = _export;\nvar hasOwn$9 = hasOwnProperty_1;\nvar isSymbol$2 = isSymbol$5;\nvar tryToString$3 = tryToString$6;\nvar shared$1 = sharedExports;\nvar NATIVE_SYMBOL_REGISTRY = symbolRegistryDetection;\n\nvar SymbolToStringRegistry = shared$1('symbol-to-string-registry');\n\n// `Symbol.keyFor` method\n// https://tc39.es/ecma262/#sec-symbol.keyfor\n$$U({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {\n keyFor: function keyFor(sym) {\n if (!isSymbol$2(sym)) throw TypeError(tryToString$3(sym) + ' is not a symbol');\n if (hasOwn$9(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];\n }\n});\n\nvar uncurryThis$h = functionUncurryThis;\nvar isArray$e = isArray$g;\nvar isCallable$7 = isCallable$m;\nvar classof$7 = classofRaw$2;\nvar toString$6 = toString$b;\n\nvar push$4 = uncurryThis$h([].push);\n\nvar getJsonReplacerFunction = function (replacer) {\n if (isCallable$7(replacer)) return replacer;\n if (!isArray$e(replacer)) return;\n var rawLength = replacer.length;\n var keys = [];\n for (var i = 0; i < rawLength; i++) {\n var element = replacer[i];\n if (typeof element == 'string') push$4(keys, element);\n else if (typeof element == 'number' || classof$7(element) == 'Number' || classof$7(element) == 'String') push$4(keys, toString$6(element));\n }\n var keysLength = keys.length;\n var root = true;\n return function (key, value) {\n if (root) {\n root = false;\n return value;\n }\n if (isArray$e(this)) return value;\n for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;\n };\n};\n\nvar $$T = _export;\nvar getBuiltIn$9 = getBuiltIn$f;\nvar apply$4 = functionApply;\nvar call$8 = functionCall;\nvar uncurryThis$g = functionUncurryThis;\nvar fails$m = fails$z;\nvar isCallable$6 = isCallable$m;\nvar isSymbol$1 = isSymbol$5;\nvar arraySlice$3 = arraySlice$6;\nvar getReplacerFunction = getJsonReplacerFunction;\nvar NATIVE_SYMBOL$1 = symbolConstructorDetection;\n\nvar $String = String;\nvar $stringify = getBuiltIn$9('JSON', 'stringify');\nvar exec$1 = uncurryThis$g(/./.exec);\nvar charAt$1 = uncurryThis$g(''.charAt);\nvar charCodeAt = uncurryThis$g(''.charCodeAt);\nvar replace$2 = uncurryThis$g(''.replace);\nvar numberToString = uncurryThis$g(1.0.toString);\n\nvar tester = /[\\uD800-\\uDFFF]/g;\nvar low = /^[\\uD800-\\uDBFF]$/;\nvar hi = /^[\\uDC00-\\uDFFF]$/;\n\nvar WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL$1 || fails$m(function () {\n var symbol = getBuiltIn$9('Symbol')();\n // MS Edge converts symbol values to JSON as {}\n return $stringify([symbol]) != '[null]'\n // WebKit converts symbol values to JSON as null\n || $stringify({ a: symbol }) != '{}'\n // V8 throws on boxed symbols\n || $stringify(Object(symbol)) != '{}';\n});\n\n// https://github.com/tc39/proposal-well-formed-stringify\nvar ILL_FORMED_UNICODE = fails$m(function () {\n return $stringify('\\uDF06\\uD834') !== '\"\\\\udf06\\\\ud834\"'\n || $stringify('\\uDEAD') !== '\"\\\\udead\"';\n});\n\nvar stringifyWithSymbolsFix = function (it, replacer) {\n var args = arraySlice$3(arguments);\n var $replacer = getReplacerFunction(replacer);\n if (!isCallable$6($replacer) && (it === undefined || isSymbol$1(it))) return; // IE8 returns string on undefined\n args[1] = function (key, value) {\n // some old implementations (like WebKit) could pass numbers as keys\n if (isCallable$6($replacer)) value = call$8($replacer, this, $String(key), value);\n if (!isSymbol$1(value)) return value;\n };\n return apply$4($stringify, null, args);\n};\n\nvar fixIllFormed = function (match, offset, string) {\n var prev = charAt$1(string, offset - 1);\n var next = charAt$1(string, offset + 1);\n if ((exec$1(low, match) && !exec$1(hi, next)) || (exec$1(hi, match) && !exec$1(low, prev))) {\n return '\\\\u' + numberToString(charCodeAt(match, 0), 16);\n } return match;\n};\n\nif ($stringify) {\n // `JSON.stringify` method\n // https://tc39.es/ecma262/#sec-json.stringify\n $$T({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n stringify: function stringify(it, replacer, space) {\n var args = arraySlice$3(arguments);\n var result = apply$4(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);\n return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$2(result, tester, fixIllFormed) : result;\n }\n });\n}\n\nvar $$S = _export;\nvar NATIVE_SYMBOL = symbolConstructorDetection;\nvar fails$l = fails$z;\nvar getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;\nvar toObject$8 = toObject$e;\n\n// V8 ~ Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\nvar FORCED$9 = !NATIVE_SYMBOL || fails$l(function () { getOwnPropertySymbolsModule$1.f(1); });\n\n// `Object.getOwnPropertySymbols` method\n// https://tc39.es/ecma262/#sec-object.getownpropertysymbols\n$$S({ target: 'Object', stat: true, forced: FORCED$9 }, {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n var $getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;\n return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject$8(it)) : [];\n }\n});\n\nvar path$s = path$z;\n\nvar getOwnPropertySymbols$1 = path$s.Object.getOwnPropertySymbols;\n\nvar parent$1i = getOwnPropertySymbols$1;\n\nvar getOwnPropertySymbols = parent$1i;\n\n(function (module) {\n\tmodule.exports = getOwnPropertySymbols;\n} (getOwnPropertySymbols$2));\n\nvar _Object$getOwnPropertySymbols = /*@__PURE__*/getDefaultExportFromCjs(getOwnPropertySymbolsExports);\n\nvar getOwnPropertyDescriptorExports$3 = {};\nvar getOwnPropertyDescriptor$9 = {\n get exports(){ return getOwnPropertyDescriptorExports$3; },\n set exports(v){ getOwnPropertyDescriptorExports$3 = v; },\n};\n\nvar getOwnPropertyDescriptorExports$2 = {};\nvar getOwnPropertyDescriptor$8 = {\n get exports(){ return getOwnPropertyDescriptorExports$2; },\n set exports(v){ getOwnPropertyDescriptorExports$2 = v; },\n};\n\nvar $$R = _export;\nvar fails$k = fails$z;\nvar toIndexedObject$3 = toIndexedObject$b;\nvar nativeGetOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;\nvar DESCRIPTORS$9 = descriptors;\n\nvar FORCED$8 = !DESCRIPTORS$9 || fails$k(function () { nativeGetOwnPropertyDescriptor(1); });\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\n$$R({ target: 'Object', stat: true, forced: FORCED$8, sham: !DESCRIPTORS$9 }, {\n getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {\n return nativeGetOwnPropertyDescriptor(toIndexedObject$3(it), key);\n }\n});\n\nvar path$r = path$z;\n\nvar Object$5 = path$r.Object;\n\nvar getOwnPropertyDescriptor$7 = getOwnPropertyDescriptor$8.exports = function getOwnPropertyDescriptor(it, key) {\n return Object$5.getOwnPropertyDescriptor(it, key);\n};\n\nif (Object$5.getOwnPropertyDescriptor.sham) getOwnPropertyDescriptor$7.sham = true;\n\nvar parent$1h = getOwnPropertyDescriptorExports$2;\n\nvar getOwnPropertyDescriptor$6 = parent$1h;\n\n(function (module) {\n\tmodule.exports = getOwnPropertyDescriptor$6;\n} (getOwnPropertyDescriptor$9));\n\nvar _Object$getOwnPropertyDescriptor$1 = /*@__PURE__*/getDefaultExportFromCjs(getOwnPropertyDescriptorExports$3);\n\nvar getOwnPropertyDescriptorsExports = {};\nvar getOwnPropertyDescriptors$2 = {\n get exports(){ return getOwnPropertyDescriptorsExports; },\n set exports(v){ getOwnPropertyDescriptorsExports = v; },\n};\n\nvar getBuiltIn$8 = getBuiltIn$f;\nvar uncurryThis$f = functionUncurryThis;\nvar getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames;\nvar getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;\nvar anObject$6 = anObject$f;\n\nvar concat$4 = uncurryThis$f([].concat);\n\n// all object keys, includes non-enumerable and symbols\nvar ownKeys$b = getBuiltIn$8('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule$1.f(anObject$6(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat$4(keys, getOwnPropertySymbols(it)) : keys;\n};\n\nvar $$Q = _export;\nvar DESCRIPTORS$8 = descriptors;\nvar ownKeys$a = ownKeys$b;\nvar toIndexedObject$2 = toIndexedObject$b;\nvar getOwnPropertyDescriptorModule$2 = objectGetOwnPropertyDescriptor;\nvar createProperty$3 = createProperty$6;\n\n// `Object.getOwnPropertyDescriptors` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors\n$$Q({ target: 'Object', stat: true, sham: !DESCRIPTORS$8 }, {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {\n var O = toIndexedObject$2(object);\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$2.f;\n var keys = ownKeys$a(O);\n var result = {};\n var index = 0;\n var key, descriptor;\n while (keys.length > index) {\n descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);\n if (descriptor !== undefined) createProperty$3(result, key, descriptor);\n }\n return result;\n }\n});\n\nvar path$q = path$z;\n\nvar getOwnPropertyDescriptors$1 = path$q.Object.getOwnPropertyDescriptors;\n\nvar parent$1g = getOwnPropertyDescriptors$1;\n\nvar getOwnPropertyDescriptors = parent$1g;\n\n(function (module) {\n\tmodule.exports = getOwnPropertyDescriptors;\n} (getOwnPropertyDescriptors$2));\n\nvar _Object$getOwnPropertyDescriptors = /*@__PURE__*/getDefaultExportFromCjs(getOwnPropertyDescriptorsExports);\n\nvar definePropertiesExports$1 = {};\nvar defineProperties$4 = {\n get exports(){ return definePropertiesExports$1; },\n set exports(v){ definePropertiesExports$1 = v; },\n};\n\nvar definePropertiesExports = {};\nvar defineProperties$3 = {\n get exports(){ return definePropertiesExports; },\n set exports(v){ definePropertiesExports = v; },\n};\n\nvar $$P = _export;\nvar DESCRIPTORS$7 = descriptors;\nvar defineProperties$2 = objectDefineProperties.f;\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\n$$P({ target: 'Object', stat: true, forced: Object.defineProperties !== defineProperties$2, sham: !DESCRIPTORS$7 }, {\n defineProperties: defineProperties$2\n});\n\nvar path$p = path$z;\n\nvar Object$4 = path$p.Object;\n\nvar defineProperties$1 = defineProperties$3.exports = function defineProperties(T, D) {\n return Object$4.defineProperties(T, D);\n};\n\nif (Object$4.defineProperties.sham) defineProperties$1.sham = true;\n\nvar parent$1f = definePropertiesExports;\n\nvar defineProperties = parent$1f;\n\n(function (module) {\n\tmodule.exports = defineProperties;\n} (defineProperties$4));\n\nvar _Object$defineProperties = /*@__PURE__*/getDefaultExportFromCjs(definePropertiesExports$1);\n\nvar definePropertyExports$3 = {};\nvar defineProperty$a = {\n get exports(){ return definePropertyExports$3; },\n set exports(v){ definePropertyExports$3 = v; },\n};\n\nvar definePropertyExports$2 = {};\nvar defineProperty$9 = {\n get exports(){ return definePropertyExports$2; },\n set exports(v){ definePropertyExports$2 = v; },\n};\n\nvar $$O = _export;\nvar DESCRIPTORS$6 = descriptors;\nvar defineProperty$8 = objectDefineProperty.f;\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\n// eslint-disable-next-line es/no-object-defineproperty -- safe\n$$O({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProperty$8, sham: !DESCRIPTORS$6 }, {\n defineProperty: defineProperty$8\n});\n\nvar path$o = path$z;\n\nvar Object$3 = path$o.Object;\n\nvar defineProperty$7 = defineProperty$9.exports = function defineProperty(it, key, desc) {\n return Object$3.defineProperty(it, key, desc);\n};\n\nif (Object$3.defineProperty.sham) defineProperty$7.sham = true;\n\nvar parent$1e = definePropertyExports$2;\n\nvar defineProperty$6 = parent$1e;\n\n(function (module) {\n\tmodule.exports = defineProperty$6;\n} (defineProperty$a));\n\nvar _Object$defineProperty$1 = /*@__PURE__*/getDefaultExportFromCjs(definePropertyExports$3);\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nvar definePropertyExports$1 = {};\nvar defineProperty$5 = {\n get exports(){ return definePropertyExports$1; },\n set exports(v){ definePropertyExports$1 = v; },\n};\n\nvar definePropertyExports = {};\nvar defineProperty$4 = {\n get exports(){ return definePropertyExports; },\n set exports(v){ definePropertyExports = v; },\n};\n\nvar parent$1d = defineProperty$6;\n\nvar defineProperty$3 = parent$1d;\n\nvar parent$1c = defineProperty$3;\n\nvar defineProperty$2 = parent$1c;\n\n(function (module) {\n\tmodule.exports = defineProperty$2;\n} (defineProperty$4));\n\n(function (module) {\n\tmodule.exports = definePropertyExports;\n} (defineProperty$5));\n\nvar _Object$defineProperty = /*@__PURE__*/getDefaultExportFromCjs(definePropertyExports$1);\n\nvar symbolExports$2 = {};\nvar symbol$6 = {\n get exports(){ return symbolExports$2; },\n set exports(v){ symbolExports$2 = v; },\n};\n\nvar symbolExports$1 = {};\nvar symbol$5 = {\n get exports(){ return symbolExports$1; },\n set exports(v){ symbolExports$1 = v; },\n};\n\nvar $TypeError$9 = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nvar doesNotExceedSafeInteger$3 = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError$9('Maximum allowed index exceeded');\n return it;\n};\n\nvar fails$j = fails$z;\nvar wellKnownSymbol$9 = wellKnownSymbol$o;\nvar V8_VERSION$2 = engineV8Version;\n\nvar SPECIES$4 = wellKnownSymbol$9('species');\n\nvar arrayMethodHasSpeciesSupport$5 = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION$2 >= 51 || !fails$j(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES$4] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n\nvar $$N = _export;\nvar fails$i = fails$z;\nvar isArray$d = isArray$g;\nvar isObject$d = isObject$m;\nvar toObject$7 = toObject$e;\nvar lengthOfArrayLike$8 = lengthOfArrayLike$d;\nvar doesNotExceedSafeInteger$2 = doesNotExceedSafeInteger$3;\nvar createProperty$2 = createProperty$6;\nvar arraySpeciesCreate$2 = arraySpeciesCreate$4;\nvar arrayMethodHasSpeciesSupport$4 = arrayMethodHasSpeciesSupport$5;\nvar wellKnownSymbol$8 = wellKnownSymbol$o;\nvar V8_VERSION$1 = engineV8Version;\n\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol$8('isConcatSpreadable');\n\n// We can't use this feature detection in V8 since it causes\n// deoptimization and serious performance degradation\n// https://github.com/zloirock/core-js/issues/679\nvar IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$i(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar isConcatSpreadable = function (O) {\n if (!isObject$d(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray$d(O);\n};\n\nvar FORCED$7 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport$4('concat');\n\n// `Array.prototype.concat` method\n// https://tc39.es/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$$N({ target: 'Array', proto: true, arity: 1, forced: FORCED$7 }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n concat: function concat(arg) {\n var O = toObject$7(this);\n var A = arraySpeciesCreate$2(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = lengthOfArrayLike$8(E);\n doesNotExceedSafeInteger$2(n + len);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty$2(A, n, E[k]);\n } else {\n doesNotExceedSafeInteger$2(n + 1);\n createProperty$2(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n\nvar defineWellKnownSymbol$k = wellKnownSymbolDefine;\n\n// `Symbol.asyncIterator` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.asynciterator\ndefineWellKnownSymbol$k('asyncIterator');\n\nvar defineWellKnownSymbol$j = wellKnownSymbolDefine;\n\n// `Symbol.hasInstance` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.hasinstance\ndefineWellKnownSymbol$j('hasInstance');\n\nvar defineWellKnownSymbol$i = wellKnownSymbolDefine;\n\n// `Symbol.isConcatSpreadable` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.isconcatspreadable\ndefineWellKnownSymbol$i('isConcatSpreadable');\n\nvar defineWellKnownSymbol$h = wellKnownSymbolDefine;\n\n// `Symbol.iterator` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.iterator\ndefineWellKnownSymbol$h('iterator');\n\nvar defineWellKnownSymbol$g = wellKnownSymbolDefine;\n\n// `Symbol.match` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.match\ndefineWellKnownSymbol$g('match');\n\nvar defineWellKnownSymbol$f = wellKnownSymbolDefine;\n\n// `Symbol.matchAll` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.matchall\ndefineWellKnownSymbol$f('matchAll');\n\nvar defineWellKnownSymbol$e = wellKnownSymbolDefine;\n\n// `Symbol.replace` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.replace\ndefineWellKnownSymbol$e('replace');\n\nvar defineWellKnownSymbol$d = wellKnownSymbolDefine;\n\n// `Symbol.search` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.search\ndefineWellKnownSymbol$d('search');\n\nvar defineWellKnownSymbol$c = wellKnownSymbolDefine;\n\n// `Symbol.species` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.species\ndefineWellKnownSymbol$c('species');\n\nvar defineWellKnownSymbol$b = wellKnownSymbolDefine;\n\n// `Symbol.split` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.split\ndefineWellKnownSymbol$b('split');\n\nvar defineWellKnownSymbol$a = wellKnownSymbolDefine;\nvar defineSymbolToPrimitive = symbolDefineToPrimitive;\n\n// `Symbol.toPrimitive` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.toprimitive\ndefineWellKnownSymbol$a('toPrimitive');\n\n// `Symbol.prototype[@@toPrimitive]` method\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive\ndefineSymbolToPrimitive();\n\nvar getBuiltIn$7 = getBuiltIn$f;\nvar defineWellKnownSymbol$9 = wellKnownSymbolDefine;\nvar setToStringTag$3 = setToStringTag$7;\n\n// `Symbol.toStringTag` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.tostringtag\ndefineWellKnownSymbol$9('toStringTag');\n\n// `Symbol.prototype[@@toStringTag]` property\n// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag\nsetToStringTag$3(getBuiltIn$7('Symbol'), 'Symbol');\n\nvar defineWellKnownSymbol$8 = wellKnownSymbolDefine;\n\n// `Symbol.unscopables` well-known symbol\n// https://tc39.es/ecma262/#sec-symbol.unscopables\ndefineWellKnownSymbol$8('unscopables');\n\nvar global$e = global$q;\nvar setToStringTag$2 = setToStringTag$7;\n\n// JSON[@@toStringTag] property\n// https://tc39.es/ecma262/#sec-json-@@tostringtag\nsetToStringTag$2(global$e.JSON, 'JSON', true);\n\nvar path$n = path$z;\n\nvar symbol$4 = path$n.Symbol;\n\nvar parent$1b = symbol$4;\n\n\nvar symbol$3 = parent$1b;\n\nvar defineWellKnownSymbol$7 = wellKnownSymbolDefine;\n\n// `Symbol.dispose` well-known symbol\n// https://github.com/tc39/proposal-explicit-resource-management\ndefineWellKnownSymbol$7('dispose');\n\nvar parent$1a = symbol$3;\n\n\n\nvar symbol$2 = parent$1a;\n\nvar defineWellKnownSymbol$6 = wellKnownSymbolDefine;\n\n// `Symbol.asyncDispose` well-known symbol\n// https://github.com/tc39/proposal-async-explicit-resource-management\ndefineWellKnownSymbol$6('asyncDispose');\n\nvar $$M = _export;\nvar getBuiltIn$6 = getBuiltIn$f;\nvar uncurryThis$e = functionUncurryThis;\n\nvar Symbol$4 = getBuiltIn$6('Symbol');\nvar keyFor = Symbol$4.keyFor;\nvar thisSymbolValue$1 = uncurryThis$e(Symbol$4.prototype.valueOf);\n\n// `Symbol.isRegistered` method\n// https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregistered\n$$M({ target: 'Symbol', stat: true }, {\n isRegistered: function isRegistered(value) {\n try {\n return keyFor(thisSymbolValue$1(value)) !== undefined;\n } catch (error) {\n return false;\n }\n }\n});\n\nvar $$L = _export;\nvar shared = sharedExports;\nvar getBuiltIn$5 = getBuiltIn$f;\nvar uncurryThis$d = functionUncurryThis;\nvar isSymbol = isSymbol$5;\nvar wellKnownSymbol$7 = wellKnownSymbol$o;\n\nvar Symbol$3 = getBuiltIn$5('Symbol');\nvar $isWellKnown = Symbol$3.isWellKnown;\nvar getOwnPropertyNames$4 = getBuiltIn$5('Object', 'getOwnPropertyNames');\nvar thisSymbolValue = uncurryThis$d(Symbol$3.prototype.valueOf);\nvar WellKnownSymbolsStore = shared('wks');\n\nfor (var i = 0, symbolKeys = getOwnPropertyNames$4(Symbol$3), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) {\n // some old engines throws on access to some keys like `arguments` or `caller`\n try {\n var symbolKey = symbolKeys[i];\n if (isSymbol(Symbol$3[symbolKey])) wellKnownSymbol$7(symbolKey);\n } catch (error) { /* empty */ }\n}\n\n// `Symbol.isWellKnown` method\n// https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknown\n// We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected\n$$L({ target: 'Symbol', stat: true, forced: true }, {\n isWellKnown: function isWellKnown(value) {\n if ($isWellKnown && $isWellKnown(value)) return true;\n try {\n var symbol = thisSymbolValue(value);\n for (var j = 0, keys = getOwnPropertyNames$4(WellKnownSymbolsStore), keysLength = keys.length; j < keysLength; j++) {\n if (WellKnownSymbolsStore[keys[j]] == symbol) return true;\n }\n } catch (error) { /* empty */ }\n return false;\n }\n});\n\nvar defineWellKnownSymbol$5 = wellKnownSymbolDefine;\n\n// `Symbol.matcher` well-known symbol\n// https://github.com/tc39/proposal-pattern-matching\ndefineWellKnownSymbol$5('matcher');\n\nvar defineWellKnownSymbol$4 = wellKnownSymbolDefine;\n\n// `Symbol.metadataKey` well-known symbol\n// https://github.com/tc39/proposal-decorator-metadata\ndefineWellKnownSymbol$4('metadataKey');\n\nvar defineWellKnownSymbol$3 = wellKnownSymbolDefine;\n\n// `Symbol.observable` well-known symbol\n// https://github.com/tc39/proposal-observable\ndefineWellKnownSymbol$3('observable');\n\n// TODO: Remove from `core-js@4`\nvar defineWellKnownSymbol$2 = wellKnownSymbolDefine;\n\n// `Symbol.metadata` well-known symbol\n// https://github.com/tc39/proposal-decorators\ndefineWellKnownSymbol$2('metadata');\n\n// TODO: remove from `core-js@4`\nvar defineWellKnownSymbol$1 = wellKnownSymbolDefine;\n\n// `Symbol.patternMatch` well-known symbol\n// https://github.com/tc39/proposal-pattern-matching\ndefineWellKnownSymbol$1('patternMatch');\n\n// TODO: remove from `core-js@4`\nvar defineWellKnownSymbol = wellKnownSymbolDefine;\n\ndefineWellKnownSymbol('replaceAll');\n\nvar parent$19 = symbol$2;\n\n\n\n\n\n\n// TODO: Remove from `core-js@4`\n\n\n\n\nvar symbol$1 = parent$19;\n\n(function (module) {\n\tmodule.exports = symbol$1;\n} (symbol$5));\n\n(function (module) {\n\tmodule.exports = symbolExports$1;\n} (symbol$6));\n\nvar _Symbol$1 = /*@__PURE__*/getDefaultExportFromCjs(symbolExports$2);\n\nvar iteratorExports$2 = {};\nvar iterator$6 = {\n get exports(){ return iteratorExports$2; },\n set exports(v){ iteratorExports$2 = v; },\n};\n\nvar iteratorExports$1 = {};\nvar iterator$5 = {\n get exports(){ return iteratorExports$1; },\n set exports(v){ iteratorExports$1 = v; },\n};\n\nvar WrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped;\n\nvar iterator$4 = WrappedWellKnownSymbolModule$1.f('iterator');\n\nvar parent$18 = iterator$4;\n\n\nvar iterator$3 = parent$18;\n\nvar parent$17 = iterator$3;\n\nvar iterator$2 = parent$17;\n\nvar parent$16 = iterator$2;\n\nvar iterator$1 = parent$16;\n\n(function (module) {\n\tmodule.exports = iterator$1;\n} (iterator$5));\n\n(function (module) {\n\tmodule.exports = iteratorExports$1;\n} (iterator$6));\n\nvar _Symbol$iterator$1 = /*@__PURE__*/getDefaultExportFromCjs(iteratorExports$2);\n\nfunction _typeof$1(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof$1 = \"function\" == typeof _Symbol$1 && \"symbol\" == typeof _Symbol$iterator$1 ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof _Symbol$1 && obj.constructor === _Symbol$1 && obj !== _Symbol$1.prototype ? \"symbol\" : typeof obj;\n }, _typeof$1(obj);\n}\n\nvar toPrimitiveExports$1 = {};\nvar toPrimitive$5 = {\n get exports(){ return toPrimitiveExports$1; },\n set exports(v){ toPrimitiveExports$1 = v; },\n};\n\nvar toPrimitiveExports = {};\nvar toPrimitive$4 = {\n get exports(){ return toPrimitiveExports; },\n set exports(v){ toPrimitiveExports = v; },\n};\n\nvar WrappedWellKnownSymbolModule = wellKnownSymbolWrapped;\n\nvar toPrimitive$3 = WrappedWellKnownSymbolModule.f('toPrimitive');\n\nvar parent$15 = toPrimitive$3;\n\nvar toPrimitive$2 = parent$15;\n\nvar parent$14 = toPrimitive$2;\n\nvar toPrimitive$1 = parent$14;\n\nvar parent$13 = toPrimitive$1;\n\nvar toPrimitive = parent$13;\n\n(function (module) {\n\tmodule.exports = toPrimitive;\n} (toPrimitive$4));\n\n(function (module) {\n\tmodule.exports = toPrimitiveExports;\n} (toPrimitive$5));\n\nvar _Symbol$toPrimitive = /*@__PURE__*/getDefaultExportFromCjs(toPrimitiveExports$1);\n\nfunction _toPrimitive(input, hint) {\n if (_typeof$1(input) !== \"object\" || input === null) return input;\n var prim = input[_Symbol$toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof$1(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}\n\nfunction _toPropertyKey(arg) {\n var key = _toPrimitive(arg, \"string\");\n return _typeof$1(key) === \"symbol\" ? key : String(key);\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n _Object$defineProperty(target, _toPropertyKey(descriptor.key), descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n _Object$defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _defineProperty(obj, key, value) {\n key = _toPropertyKey(key);\n if (key in obj) {\n _Object$defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\n\nvar isArrayExports$2 = {};\nvar isArray$c = {\n get exports(){ return isArrayExports$2; },\n set exports(v){ isArrayExports$2 = v; },\n};\n\nvar isArrayExports$1 = {};\nvar isArray$b = {\n get exports(){ return isArrayExports$1; },\n set exports(v){ isArrayExports$1 = v; },\n};\n\nvar $$K = _export;\nvar isArray$a = isArray$g;\n\n// `Array.isArray` method\n// https://tc39.es/ecma262/#sec-array.isarray\n$$K({ target: 'Array', stat: true }, {\n isArray: isArray$a\n});\n\nvar path$m = path$z;\n\nvar isArray$9 = path$m.Array.isArray;\n\nvar parent$12 = isArray$9;\n\nvar isArray$8 = parent$12;\n\nvar parent$11 = isArray$8;\n\nvar isArray$7 = parent$11;\n\nvar parent$10 = isArray$7;\n\nvar isArray$6 = parent$10;\n\n(function (module) {\n\tmodule.exports = isArray$6;\n} (isArray$b));\n\n(function (module) {\n\tmodule.exports = isArrayExports$1;\n} (isArray$c));\n\nvar _Array$isArray$1 = /*@__PURE__*/getDefaultExportFromCjs(isArrayExports$2);\n\nfunction _arrayWithHoles(arr) {\n if (_Array$isArray$1(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _i = null == arr ? null : \"undefined\" != typeof _Symbol$1 && _getIteratorMethod(arr) || arr[\"@@iterator\"];\n if (null != _i) {\n var _s,\n _e,\n _x,\n _r,\n _arr = [],\n _n = !0,\n _d = !1;\n try {\n if (_x = (_i = _i.call(arr)).next, 0 === i) {\n if (Object(_i) !== _i) return;\n _n = !1;\n } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);\n } catch (err) {\n _d = !0, _e = err;\n } finally {\n try {\n if (!_n && null != _i[\"return\"] && (_r = _i[\"return\"](), Object(_r) !== _r)) return;\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n}\n\nvar sliceExports$2 = {};\nvar slice$7 = {\n get exports(){ return sliceExports$2; },\n set exports(v){ sliceExports$2 = v; },\n};\n\nvar sliceExports$1 = {};\nvar slice$6 = {\n get exports(){ return sliceExports$1; },\n set exports(v){ sliceExports$1 = v; },\n};\n\nvar $$J = _export;\nvar isArray$5 = isArray$g;\nvar isConstructor$1 = isConstructor$4;\nvar isObject$c = isObject$m;\nvar toAbsoluteIndex$2 = toAbsoluteIndex$5;\nvar lengthOfArrayLike$7 = lengthOfArrayLike$d;\nvar toIndexedObject$1 = toIndexedObject$b;\nvar createProperty$1 = createProperty$6;\nvar wellKnownSymbol$6 = wellKnownSymbol$o;\nvar arrayMethodHasSpeciesSupport$3 = arrayMethodHasSpeciesSupport$5;\nvar nativeSlice = arraySlice$6;\n\nvar HAS_SPECIES_SUPPORT$3 = arrayMethodHasSpeciesSupport$3('slice');\n\nvar SPECIES$3 = wellKnownSymbol$6('species');\nvar $Array = Array;\nvar max$1 = Math.max;\n\n// `Array.prototype.slice` method\n// https://tc39.es/ecma262/#sec-array.prototype.slice\n// fallback for not array-like ES3 strings and DOM objects\n$$J({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {\n slice: function slice(start, end) {\n var O = toIndexedObject$1(this);\n var length = lengthOfArrayLike$7(O);\n var k = toAbsoluteIndex$2(start, length);\n var fin = toAbsoluteIndex$2(end === undefined ? length : end, length);\n // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible\n var Constructor, result, n;\n if (isArray$5(O)) {\n Constructor = O.constructor;\n // cross-realm fallback\n if (isConstructor$1(Constructor) && (Constructor === $Array || isArray$5(Constructor.prototype))) {\n Constructor = undefined;\n } else if (isObject$c(Constructor)) {\n Constructor = Constructor[SPECIES$3];\n if (Constructor === null) Constructor = undefined;\n }\n if (Constructor === $Array || Constructor === undefined) {\n return nativeSlice(O, k, fin);\n }\n }\n result = new (Constructor === undefined ? $Array : Constructor)(max$1(fin - k, 0));\n for (n = 0; k < fin; k++, n++) if (k in O) createProperty$1(result, n, O[k]);\n result.length = n;\n return result;\n }\n});\n\nvar entryVirtual$j = entryVirtual$l;\n\nvar slice$5 = entryVirtual$j('Array').slice;\n\nvar isPrototypeOf$l = objectIsPrototypeOf;\nvar method$h = slice$5;\n\nvar ArrayPrototype$h = Array.prototype;\n\nvar slice$4 = function (it) {\n var own = it.slice;\n return it === ArrayPrototype$h || (isPrototypeOf$l(ArrayPrototype$h, it) && own === ArrayPrototype$h.slice) ? method$h : own;\n};\n\nvar parent$$ = slice$4;\n\nvar slice$3 = parent$$;\n\nvar parent$_ = slice$3;\n\nvar slice$2 = parent$_;\n\nvar parent$Z = slice$2;\n\nvar slice$1 = parent$Z;\n\n(function (module) {\n\tmodule.exports = slice$1;\n} (slice$6));\n\n(function (module) {\n\tmodule.exports = sliceExports$1;\n} (slice$7));\n\nvar _sliceInstanceProperty$1 = /*@__PURE__*/getDefaultExportFromCjs(sliceExports$2);\n\nvar fromExports$1 = {};\nvar from$3 = {\n get exports(){ return fromExports$1; },\n set exports(v){ fromExports$1 = v; },\n};\n\nvar fromExports = {};\nvar from$2 = {\n get exports(){ return fromExports; },\n set exports(v){ fromExports = v; },\n};\n\nvar parent$Y = from$4;\n\nvar from$1 = parent$Y;\n\nvar parent$X = from$1;\n\nvar from = parent$X;\n\n(function (module) {\n\tmodule.exports = from;\n} (from$2));\n\n(function (module) {\n\tmodule.exports = fromExports;\n} (from$3));\n\nvar _Array$from = /*@__PURE__*/getDefaultExportFromCjs(fromExports$1);\n\nfunction _arrayLikeToArray$8(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\n\nfunction _unsupportedIterableToArray$8(o, minLen) {\n var _context;\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray$8(o, minLen);\n var n = _sliceInstanceProperty$1(_context = Object.prototype.toString.call(o)).call(_context, 8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return _Array$from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$8(o, minLen);\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$8(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (_Array$isArray$1(arr)) return _arrayLikeToArray$8(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof _Symbol$1 !== \"undefined\" && _getIteratorMethod(iter) != null || iter[\"@@iterator\"] != null) return _Array$from(iter);\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$8(arr) || _nonIterableSpread();\n}\n\nvar symbolExports = {};\nvar symbol = {\n get exports(){ return symbolExports; },\n set exports(v){ symbolExports = v; },\n};\n\n(function (module) {\n\tmodule.exports = symbol$3;\n} (symbol));\n\nvar _Symbol = /*@__PURE__*/getDefaultExportFromCjs(symbolExports);\n\nvar concatExports = {};\nvar concat$3 = {\n get exports(){ return concatExports; },\n set exports(v){ concatExports = v; },\n};\n\nvar entryVirtual$i = entryVirtual$l;\n\nvar concat$2 = entryVirtual$i('Array').concat;\n\nvar isPrototypeOf$k = objectIsPrototypeOf;\nvar method$g = concat$2;\n\nvar ArrayPrototype$g = Array.prototype;\n\nvar concat$1 = function (it) {\n var own = it.concat;\n return it === ArrayPrototype$g || (isPrototypeOf$k(ArrayPrototype$g, it) && own === ArrayPrototype$g.concat) ? method$g : own;\n};\n\nvar parent$W = concat$1;\n\nvar concat = parent$W;\n\n(function (module) {\n\tmodule.exports = concat;\n} (concat$3));\n\nvar _concatInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(concatExports);\n\nvar sliceExports = {};\nvar slice = {\n get exports(){ return sliceExports; },\n set exports(v){ sliceExports = v; },\n};\n\n(function (module) {\n\tmodule.exports = slice$3;\n} (slice));\n\nvar _sliceInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(sliceExports);\n\nvar ownKeysExports = {};\nvar ownKeys$9 = {\n get exports(){ return ownKeysExports; },\n set exports(v){ ownKeysExports = v; },\n};\n\nvar $$I = _export;\nvar ownKeys$8 = ownKeys$b;\n\n// `Reflect.ownKeys` method\n// https://tc39.es/ecma262/#sec-reflect.ownkeys\n$$I({ target: 'Reflect', stat: true }, {\n ownKeys: ownKeys$8\n});\n\nvar path$l = path$z;\n\nvar ownKeys$7 = path$l.Reflect.ownKeys;\n\nvar parent$V = ownKeys$7;\n\nvar ownKeys$6 = parent$V;\n\n(function (module) {\n\tmodule.exports = ownKeys$6;\n} (ownKeys$9));\n\nvar _Reflect$ownKeys = /*@__PURE__*/getDefaultExportFromCjs(ownKeysExports);\n\nvar isArrayExports = {};\nvar isArray$4 = {\n get exports(){ return isArrayExports; },\n set exports(v){ isArrayExports = v; },\n};\n\n(function (module) {\n\tmodule.exports = isArray$8;\n} (isArray$4));\n\nvar _Array$isArray = /*@__PURE__*/getDefaultExportFromCjs(isArrayExports);\n\nvar mapExports$1 = {};\nvar map$6 = {\n get exports(){ return mapExports$1; },\n set exports(v){ mapExports$1 = v; },\n};\n\nvar $$H = _export;\nvar $map = arrayIteration.map;\nvar arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$5;\n\nvar HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport$2('map');\n\n// `Array.prototype.map` method\n// https://tc39.es/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$$H({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\nvar entryVirtual$h = entryVirtual$l;\n\nvar map$5 = entryVirtual$h('Array').map;\n\nvar isPrototypeOf$j = objectIsPrototypeOf;\nvar method$f = map$5;\n\nvar ArrayPrototype$f = Array.prototype;\n\nvar map$4 = function (it) {\n var own = it.map;\n return it === ArrayPrototype$f || (isPrototypeOf$j(ArrayPrototype$f, it) && own === ArrayPrototype$f.map) ? method$f : own;\n};\n\nvar parent$U = map$4;\n\nvar map$3 = parent$U;\n\n(function (module) {\n\tmodule.exports = map$3;\n} (map$6));\n\nvar _mapInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(mapExports$1);\n\nvar keysExports$1 = {};\nvar keys$6 = {\n get exports(){ return keysExports$1; },\n set exports(v){ keysExports$1 = v; },\n};\n\nvar $$G = _export;\nvar toObject$6 = toObject$e;\nvar nativeKeys = objectKeys$4;\nvar fails$h = fails$z;\n\nvar FAILS_ON_PRIMITIVES$3 = fails$h(function () { nativeKeys(1); });\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n$$G({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$3 }, {\n keys: function keys(it) {\n return nativeKeys(toObject$6(it));\n }\n});\n\nvar path$k = path$z;\n\nvar keys$5 = path$k.Object.keys;\n\nvar parent$T = keys$5;\n\nvar keys$4 = parent$T;\n\n(function (module) {\n\tmodule.exports = keys$4;\n} (keys$6));\n\nvar _Object$keys = /*@__PURE__*/getDefaultExportFromCjs(keysExports$1);\n\nvar nowExports = {};\nvar now$3 = {\n get exports(){ return nowExports; },\n set exports(v){ nowExports = v; },\n};\n\n// TODO: Remove from `core-js@4`\nvar $$F = _export;\nvar uncurryThis$c = functionUncurryThis;\n\nvar $Date = Date;\nvar thisTimeValue = uncurryThis$c($Date.prototype.getTime);\n\n// `Date.now` method\n// https://tc39.es/ecma262/#sec-date.now\n$$F({ target: 'Date', stat: true }, {\n now: function now() {\n return thisTimeValue(new $Date());\n }\n});\n\nvar path$j = path$z;\n\nvar now$2 = path$j.Date.now;\n\nvar parent$S = now$2;\n\nvar now$1 = parent$S;\n\n(function (module) {\n\tmodule.exports = now$1;\n} (now$3));\n\nvar _Date$now = /*@__PURE__*/getDefaultExportFromCjs(nowExports);\n\nvar forEachExports$2 = {};\nvar forEach$a = {\n get exports(){ return forEachExports$2; },\n set exports(v){ forEachExports$2 = v; },\n};\n\nvar fails$g = fails$z;\n\nvar arrayMethodIsStrict$6 = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails$g(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n};\n\nvar $forEach = arrayIteration.forEach;\nvar arrayMethodIsStrict$5 = arrayMethodIsStrict$6;\n\nvar STRICT_METHOD$3 = arrayMethodIsStrict$5('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\nvar arrayForEach = !STRICT_METHOD$3 ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n} : [].forEach;\n\nvar $$E = _export;\nvar forEach$9 = arrayForEach;\n\n// `Array.prototype.forEach` method\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n$$E({ target: 'Array', proto: true, forced: [].forEach != forEach$9 }, {\n forEach: forEach$9\n});\n\nvar entryVirtual$g = entryVirtual$l;\n\nvar forEach$8 = entryVirtual$g('Array').forEach;\n\nvar parent$R = forEach$8;\n\nvar forEach$7 = parent$R;\n\nvar classof$6 = classof$f;\nvar hasOwn$8 = hasOwnProperty_1;\nvar isPrototypeOf$i = objectIsPrototypeOf;\nvar method$e = forEach$7;\n\nvar ArrayPrototype$e = Array.prototype;\n\nvar DOMIterables$3 = {\n DOMTokenList: true,\n NodeList: true\n};\n\nvar forEach$6 = function (it) {\n var own = it.forEach;\n return it === ArrayPrototype$e || (isPrototypeOf$i(ArrayPrototype$e, it) && own === ArrayPrototype$e.forEach)\n || hasOwn$8(DOMIterables$3, classof$6(it)) ? method$e : own;\n};\n\n(function (module) {\n\tmodule.exports = forEach$6;\n} (forEach$a));\n\nvar _forEachInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(forEachExports$2);\n\nvar reverseExports$2 = {};\nvar reverse$7 = {\n get exports(){ return reverseExports$2; },\n set exports(v){ reverseExports$2 = v; },\n};\n\nvar $$D = _export;\nvar uncurryThis$b = functionUncurryThis;\nvar isArray$3 = isArray$g;\n\nvar nativeReverse = uncurryThis$b([].reverse);\nvar test$1 = [1, 2];\n\n// `Array.prototype.reverse` method\n// https://tc39.es/ecma262/#sec-array.prototype.reverse\n// fix for Safari 12.0 bug\n// https://bugs.webkit.org/show_bug.cgi?id=188794\n$$D({ target: 'Array', proto: true, forced: String(test$1) === String(test$1.reverse()) }, {\n reverse: function reverse() {\n // eslint-disable-next-line no-self-assign -- dirty hack\n if (isArray$3(this)) this.length = this.length;\n return nativeReverse(this);\n }\n});\n\nvar entryVirtual$f = entryVirtual$l;\n\nvar reverse$6 = entryVirtual$f('Array').reverse;\n\nvar isPrototypeOf$h = objectIsPrototypeOf;\nvar method$d = reverse$6;\n\nvar ArrayPrototype$d = Array.prototype;\n\nvar reverse$5 = function (it) {\n var own = it.reverse;\n return it === ArrayPrototype$d || (isPrototypeOf$h(ArrayPrototype$d, it) && own === ArrayPrototype$d.reverse) ? method$d : own;\n};\n\nvar parent$Q = reverse$5;\n\nvar reverse$4 = parent$Q;\n\n(function (module) {\n\tmodule.exports = reverse$4;\n} (reverse$7));\n\nvar _reverseInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(reverseExports$2);\n\nvar spliceExports = {};\nvar splice$4 = {\n get exports(){ return spliceExports; },\n set exports(v){ spliceExports = v; },\n};\n\nvar DESCRIPTORS$5 = descriptors;\nvar isArray$2 = isArray$g;\n\nvar $TypeError$8 = TypeError;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor$5 = Object.getOwnPropertyDescriptor;\n\n// Safari < 13 does not throw an error in this case\nvar SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$5 && !function () {\n // makes no sense without proper strict mode support\n if (this !== undefined) return true;\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).length = 1;\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\nvar arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {\n if (isArray$2(O) && !getOwnPropertyDescriptor$5(O, 'length').writable) {\n throw $TypeError$8('Cannot set read only .length');\n } return O.length = length;\n} : function (O, length) {\n return O.length = length;\n};\n\nvar tryToString$2 = tryToString$6;\n\nvar $TypeError$7 = TypeError;\n\nvar deletePropertyOrThrow$2 = function (O, P) {\n if (!delete O[P]) throw $TypeError$7('Cannot delete property ' + tryToString$2(P) + ' of ' + tryToString$2(O));\n};\n\nvar $$C = _export;\nvar toObject$5 = toObject$e;\nvar toAbsoluteIndex$1 = toAbsoluteIndex$5;\nvar toIntegerOrInfinity = toIntegerOrInfinity$4;\nvar lengthOfArrayLike$6 = lengthOfArrayLike$d;\nvar setArrayLength = arraySetLength;\nvar doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$3;\nvar arraySpeciesCreate$1 = arraySpeciesCreate$4;\nvar createProperty = createProperty$6;\nvar deletePropertyOrThrow$1 = deletePropertyOrThrow$2;\nvar arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$5;\n\nvar HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('splice');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// `Array.prototype.splice` method\n// https://tc39.es/ecma262/#sec-array.prototype.splice\n// with adding support of @@species\n$$C({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {\n splice: function splice(start, deleteCount /* , ...items */) {\n var O = toObject$5(this);\n var len = lengthOfArrayLike$6(O);\n var actualStart = toAbsoluteIndex$1(start, len);\n var argumentsLength = arguments.length;\n var insertCount, actualDeleteCount, A, k, from, to;\n if (argumentsLength === 0) {\n insertCount = actualDeleteCount = 0;\n } else if (argumentsLength === 1) {\n insertCount = 0;\n actualDeleteCount = len - actualStart;\n } else {\n insertCount = argumentsLength - 2;\n actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);\n }\n doesNotExceedSafeInteger$1(len + insertCount - actualDeleteCount);\n A = arraySpeciesCreate$1(O, actualDeleteCount);\n for (k = 0; k < actualDeleteCount; k++) {\n from = actualStart + k;\n if (from in O) createProperty(A, k, O[from]);\n }\n A.length = actualDeleteCount;\n if (insertCount < actualDeleteCount) {\n for (k = actualStart; k < len - actualDeleteCount; k++) {\n from = k + actualDeleteCount;\n to = k + insertCount;\n if (from in O) O[to] = O[from];\n else deletePropertyOrThrow$1(O, to);\n }\n for (k = len; k > len - actualDeleteCount + insertCount; k--) deletePropertyOrThrow$1(O, k - 1);\n } else if (insertCount > actualDeleteCount) {\n for (k = len - actualDeleteCount; k > actualStart; k--) {\n from = k + actualDeleteCount - 1;\n to = k + insertCount - 1;\n if (from in O) O[to] = O[from];\n else deletePropertyOrThrow$1(O, to);\n }\n }\n for (k = 0; k < insertCount; k++) {\n O[k + actualStart] = arguments[k + 2];\n }\n setArrayLength(O, len - actualDeleteCount + insertCount);\n return A;\n }\n});\n\nvar entryVirtual$e = entryVirtual$l;\n\nvar splice$3 = entryVirtual$e('Array').splice;\n\nvar isPrototypeOf$g = objectIsPrototypeOf;\nvar method$c = splice$3;\n\nvar ArrayPrototype$c = Array.prototype;\n\nvar splice$2 = function (it) {\n var own = it.splice;\n return it === ArrayPrototype$c || (isPrototypeOf$g(ArrayPrototype$c, it) && own === ArrayPrototype$c.splice) ? method$c : own;\n};\n\nvar parent$P = splice$2;\n\nvar splice$1 = parent$P;\n\n(function (module) {\n\tmodule.exports = splice$1;\n} (splice$4));\n\nvar _spliceInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(spliceExports);\n\nvar includesExports = {};\nvar includes$4 = {\n get exports(){ return includesExports; },\n set exports(v){ includesExports = v; },\n};\n\nvar $$B = _export;\nvar $includes = arrayIncludes.includes;\nvar fails$f = fails$z;\n\n// FF99+ bug\nvar BROKEN_ON_SPARSE = fails$f(function () {\n // eslint-disable-next-line es/no-array-prototype-includes -- detection\n return !Array(1).includes();\n});\n\n// `Array.prototype.includes` method\n// https://tc39.es/ecma262/#sec-array.prototype.includes\n$$B({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\nvar entryVirtual$d = entryVirtual$l;\n\nvar includes$3 = entryVirtual$d('Array').includes;\n\nvar isObject$b = isObject$m;\nvar classof$5 = classofRaw$2;\nvar wellKnownSymbol$5 = wellKnownSymbol$o;\n\nvar MATCH$1 = wellKnownSymbol$5('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nvar isRegexp = function (it) {\n var isRegExp;\n return isObject$b(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$5(it) == 'RegExp');\n};\n\nvar isRegExp = isRegexp;\n\nvar $TypeError$6 = TypeError;\n\nvar notARegexp = function (it) {\n if (isRegExp(it)) {\n throw $TypeError$6(\"The method doesn't accept regular expressions\");\n } return it;\n};\n\nvar wellKnownSymbol$4 = wellKnownSymbol$o;\n\nvar MATCH = wellKnownSymbol$4('match');\n\nvar correctIsRegexpLogic = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (error1) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (error2) { /* empty */ }\n } return false;\n};\n\nvar $$A = _export;\nvar uncurryThis$a = functionUncurryThis;\nvar notARegExp = notARegexp;\nvar requireObjectCoercible$1 = requireObjectCoercible$5;\nvar toString$5 = toString$b;\nvar correctIsRegExpLogic = correctIsRegexpLogic;\n\nvar stringIndexOf = uncurryThis$a(''.indexOf);\n\n// `String.prototype.includes` method\n// https://tc39.es/ecma262/#sec-string.prototype.includes\n$$A({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~stringIndexOf(\n toString$5(requireObjectCoercible$1(this)),\n toString$5(notARegExp(searchString)),\n arguments.length > 1 ? arguments[1] : undefined\n );\n }\n});\n\nvar entryVirtual$c = entryVirtual$l;\n\nvar includes$2 = entryVirtual$c('String').includes;\n\nvar isPrototypeOf$f = objectIsPrototypeOf;\nvar arrayMethod = includes$3;\nvar stringMethod = includes$2;\n\nvar ArrayPrototype$b = Array.prototype;\nvar StringPrototype$1 = String.prototype;\n\nvar includes$1 = function (it) {\n var own = it.includes;\n if (it === ArrayPrototype$b || (isPrototypeOf$f(ArrayPrototype$b, it) && own === ArrayPrototype$b.includes)) return arrayMethod;\n if (typeof it == 'string' || it === StringPrototype$1 || (isPrototypeOf$f(StringPrototype$1, it) && own === StringPrototype$1.includes)) {\n return stringMethod;\n } return own;\n};\n\nvar parent$O = includes$1;\n\nvar includes = parent$O;\n\n(function (module) {\n\tmodule.exports = includes;\n} (includes$4));\n\nvar _includesInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(includesExports);\n\nvar getPrototypeOfExports$2 = {};\nvar getPrototypeOf$8 = {\n get exports(){ return getPrototypeOfExports$2; },\n set exports(v){ getPrototypeOfExports$2 = v; },\n};\n\nvar $$z = _export;\nvar fails$e = fails$z;\nvar toObject$4 = toObject$e;\nvar nativeGetPrototypeOf = objectGetPrototypeOf;\nvar CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;\n\nvar FAILS_ON_PRIMITIVES$2 = fails$e(function () { nativeGetPrototypeOf(1); });\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n$$z({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$2, sham: !CORRECT_PROTOTYPE_GETTER }, {\n getPrototypeOf: function getPrototypeOf(it) {\n return nativeGetPrototypeOf(toObject$4(it));\n }\n});\n\nvar path$i = path$z;\n\nvar getPrototypeOf$7 = path$i.Object.getPrototypeOf;\n\nvar parent$N = getPrototypeOf$7;\n\nvar getPrototypeOf$6 = parent$N;\n\n(function (module) {\n\tmodule.exports = getPrototypeOf$6;\n} (getPrototypeOf$8));\n\nvar _Object$getPrototypeOf$1 = /*@__PURE__*/getDefaultExportFromCjs(getPrototypeOfExports$2);\n\nvar filterExports = {};\nvar filter$3 = {\n get exports(){ return filterExports; },\n set exports(v){ filterExports = v; },\n};\n\nvar $$y = _export;\nvar $filter = arrayIteration.filter;\nvar arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$5;\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');\n\n// `Array.prototype.filter` method\n// https://tc39.es/ecma262/#sec-array.prototype.filter\n// with adding support of @@species\n$$y({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\nvar entryVirtual$b = entryVirtual$l;\n\nvar filter$2 = entryVirtual$b('Array').filter;\n\nvar isPrototypeOf$e = objectIsPrototypeOf;\nvar method$b = filter$2;\n\nvar ArrayPrototype$a = Array.prototype;\n\nvar filter$1 = function (it) {\n var own = it.filter;\n return it === ArrayPrototype$a || (isPrototypeOf$e(ArrayPrototype$a, it) && own === ArrayPrototype$a.filter) ? method$b : own;\n};\n\nvar parent$M = filter$1;\n\nvar filter = parent$M;\n\n(function (module) {\n\tmodule.exports = filter;\n} (filter$3));\n\nvar _filterInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(filterExports);\n\nvar valuesExports$1 = {};\nvar values$6 = {\n get exports(){ return valuesExports$1; },\n set exports(v){ valuesExports$1 = v; },\n};\n\nvar DESCRIPTORS$4 = descriptors;\nvar uncurryThis$9 = functionUncurryThis;\nvar objectKeys = objectKeys$4;\nvar toIndexedObject = toIndexedObject$b;\nvar $propertyIsEnumerable = objectPropertyIsEnumerable.f;\n\nvar propertyIsEnumerable = uncurryThis$9($propertyIsEnumerable);\nvar push$3 = uncurryThis$9([].push);\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod$2 = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS$4 || propertyIsEnumerable(O, key)) {\n push$3(result, TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nvar objectToArray = {\n // `Object.entries` method\n // https://tc39.es/ecma262/#sec-object.entries\n entries: createMethod$2(true),\n // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n values: createMethod$2(false)\n};\n\nvar $$x = _export;\nvar $values = objectToArray.values;\n\n// `Object.values` method\n// https://tc39.es/ecma262/#sec-object.values\n$$x({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n\nvar path$h = path$z;\n\nvar values$5 = path$h.Object.values;\n\nvar parent$L = values$5;\n\nvar values$4 = parent$L;\n\n(function (module) {\n\tmodule.exports = values$4;\n} (values$6));\n\nvar _parseIntExports = {};\nvar _parseInt$3 = {\n get exports(){ return _parseIntExports; },\n set exports(v){ _parseIntExports = v; },\n};\n\n// a string of all valid unicode whitespaces\nvar whitespaces$4 = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002' +\n '\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n\nvar uncurryThis$8 = functionUncurryThis;\nvar requireObjectCoercible = requireObjectCoercible$5;\nvar toString$4 = toString$b;\nvar whitespaces$3 = whitespaces$4;\n\nvar replace$1 = uncurryThis$8(''.replace);\nvar ltrim = RegExp('^[' + whitespaces$3 + ']+');\nvar rtrim = RegExp('(^|[^' + whitespaces$3 + '])[' + whitespaces$3 + ']+$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod$1 = function (TYPE) {\n return function ($this) {\n var string = toString$4(requireObjectCoercible($this));\n if (TYPE & 1) string = replace$1(string, ltrim, '');\n if (TYPE & 2) string = replace$1(string, rtrim, '$1');\n return string;\n };\n};\n\nvar stringTrim = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod$1(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod$1(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod$1(3)\n};\n\nvar global$d = global$q;\nvar fails$d = fails$z;\nvar uncurryThis$7 = functionUncurryThis;\nvar toString$3 = toString$b;\nvar trim$5 = stringTrim.trim;\nvar whitespaces$2 = whitespaces$4;\n\nvar $parseInt$1 = global$d.parseInt;\nvar Symbol$2 = global$d.Symbol;\nvar ITERATOR$1 = Symbol$2 && Symbol$2.iterator;\nvar hex = /^[+-]?0x/i;\nvar exec = uncurryThis$7(hex.exec);\nvar FORCED$6 = $parseInt$1(whitespaces$2 + '08') !== 8 || $parseInt$1(whitespaces$2 + '0x16') !== 22\n // MS Edge 18- broken with boxed symbols\n || (ITERATOR$1 && !fails$d(function () { $parseInt$1(Object(ITERATOR$1)); }));\n\n// `parseInt` method\n// https://tc39.es/ecma262/#sec-parseint-string-radix\nvar numberParseInt = FORCED$6 ? function parseInt(string, radix) {\n var S = trim$5(toString$3(string));\n return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));\n} : $parseInt$1;\n\nvar $$w = _export;\nvar $parseInt = numberParseInt;\n\n// `parseInt` method\n// https://tc39.es/ecma262/#sec-parseint-string-radix\n$$w({ global: true, forced: parseInt != $parseInt }, {\n parseInt: $parseInt\n});\n\nvar path$g = path$z;\n\nvar _parseInt$2 = path$g.parseInt;\n\nvar parent$K = _parseInt$2;\n\nvar _parseInt$1 = parent$K;\n\n(function (module) {\n\tmodule.exports = _parseInt$1;\n} (_parseInt$3));\n\nvar _parseInt = /*@__PURE__*/getDefaultExportFromCjs(_parseIntExports);\n\nvar indexOfExports = {};\nvar indexOf$3 = {\n get exports(){ return indexOfExports; },\n set exports(v){ indexOfExports = v; },\n};\n\n/* eslint-disable es/no-array-prototype-indexof -- required for testing */\nvar $$v = _export;\nvar uncurryThis$6 = functionUncurryThisClause;\nvar $indexOf = arrayIncludes.indexOf;\nvar arrayMethodIsStrict$4 = arrayMethodIsStrict$6;\n\nvar nativeIndexOf = uncurryThis$6([].indexOf);\n\nvar NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;\nvar FORCED$5 = NEGATIVE_ZERO || !arrayMethodIsStrict$4('indexOf');\n\n// `Array.prototype.indexOf` method\n// https://tc39.es/ecma262/#sec-array.prototype.indexof\n$$v({ target: 'Array', proto: true, forced: FORCED$5 }, {\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n var fromIndex = arguments.length > 1 ? arguments[1] : undefined;\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? nativeIndexOf(this, searchElement, fromIndex) || 0\n : $indexOf(this, searchElement, fromIndex);\n }\n});\n\nvar entryVirtual$a = entryVirtual$l;\n\nvar indexOf$2 = entryVirtual$a('Array').indexOf;\n\nvar isPrototypeOf$d = objectIsPrototypeOf;\nvar method$a = indexOf$2;\n\nvar ArrayPrototype$9 = Array.prototype;\n\nvar indexOf$1 = function (it) {\n var own = it.indexOf;\n return it === ArrayPrototype$9 || (isPrototypeOf$d(ArrayPrototype$9, it) && own === ArrayPrototype$9.indexOf) ? method$a : own;\n};\n\nvar parent$J = indexOf$1;\n\nvar indexOf = parent$J;\n\n(function (module) {\n\tmodule.exports = indexOf;\n} (indexOf$3));\n\nvar _indexOfInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(indexOfExports);\n\nvar trimExports = {};\nvar trim$4 = {\n get exports(){ return trimExports; },\n set exports(v){ trimExports = v; },\n};\n\nvar PROPER_FUNCTION_NAME = functionName.PROPER;\nvar fails$c = fails$z;\nvar whitespaces$1 = whitespaces$4;\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nvar stringTrimForced = function (METHOD_NAME) {\n return fails$c(function () {\n return !!whitespaces$1[METHOD_NAME]()\n || non[METHOD_NAME]() !== non\n || (PROPER_FUNCTION_NAME && whitespaces$1[METHOD_NAME].name !== METHOD_NAME);\n });\n};\n\nvar $$u = _export;\nvar $trim = stringTrim.trim;\nvar forcedStringTrimMethod = stringTrimForced;\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$$u({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n\nvar entryVirtual$9 = entryVirtual$l;\n\nvar trim$3 = entryVirtual$9('String').trim;\n\nvar isPrototypeOf$c = objectIsPrototypeOf;\nvar method$9 = trim$3;\n\nvar StringPrototype = String.prototype;\n\nvar trim$2 = function (it) {\n var own = it.trim;\n return typeof it == 'string' || it === StringPrototype\n || (isPrototypeOf$c(StringPrototype, it) && own === StringPrototype.trim) ? method$9 : own;\n};\n\nvar parent$I = trim$2;\n\nvar trim$1 = parent$I;\n\n(function (module) {\n\tmodule.exports = trim$1;\n} (trim$4));\n\nvar createExports$2 = {};\nvar create$a = {\n get exports(){ return createExports$2; },\n set exports(v){ createExports$2 = v; },\n};\n\n// TODO: Remove from `core-js@4`\nvar $$t = _export;\nvar DESCRIPTORS$3 = descriptors;\nvar create$9 = objectCreate;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n$$t({ target: 'Object', stat: true, sham: !DESCRIPTORS$3 }, {\n create: create$9\n});\n\nvar path$f = path$z;\n\nvar Object$2 = path$f.Object;\n\nvar create$8 = function create(P, D) {\n return Object$2.create(P, D);\n};\n\nvar parent$H = create$8;\n\nvar create$7 = parent$H;\n\n(function (module) {\n\tmodule.exports = create$7;\n} (create$a));\n\nvar _Object$create$1 = /*@__PURE__*/getDefaultExportFromCjs(createExports$2);\n\nvar stringifyExports = {};\nvar stringify$2 = {\n get exports(){ return stringifyExports; },\n set exports(v){ stringifyExports = v; },\n};\n\nvar path$e = path$z;\nvar apply$3 = functionApply;\n\n// eslint-disable-next-line es/no-json -- safe\nif (!path$e.JSON) path$e.JSON = { stringify: JSON.stringify };\n\n// eslint-disable-next-line no-unused-vars -- required for `.length`\nvar stringify$1 = function stringify(it, replacer, space) {\n return apply$3(path$e.JSON.stringify, null, arguments);\n};\n\nvar parent$G = stringify$1;\n\nvar stringify = parent$G;\n\n(function (module) {\n\tmodule.exports = stringify;\n} (stringify$2));\n\nvar _JSON$stringify = /*@__PURE__*/getDefaultExportFromCjs(stringifyExports);\n\nvar setTimeoutExports = {};\nvar setTimeout$3 = {\n get exports(){ return setTimeoutExports; },\n set exports(v){ setTimeoutExports = v; },\n};\n\n/* global Bun -- Deno case */\n\nvar engineIsBun = typeof Bun == 'function' && Bun && typeof Bun.version == 'string';\n\nvar $TypeError$5 = TypeError;\n\nvar validateArgumentsLength$2 = function (passed, required) {\n if (passed < required) throw $TypeError$5('Not enough arguments');\n return passed;\n};\n\nvar global$c = global$q;\nvar apply$2 = functionApply;\nvar isCallable$5 = isCallable$m;\nvar ENGINE_IS_BUN = engineIsBun;\nvar USER_AGENT = engineUserAgent;\nvar arraySlice$2 = arraySlice$6;\nvar validateArgumentsLength$1 = validateArgumentsLength$2;\n\nvar Function$2 = global$c.Function;\n// dirty IE9- and Bun 0.3.0- checks\nvar WRAP = /MSIE .\\./.test(USER_AGENT) || ENGINE_IS_BUN && (function () {\n var version = global$c.Bun.version.split('.');\n return version.length < 3 || version[0] == 0 && (version[1] < 3 || version[1] == 3 && version[2] == 0);\n})();\n\n// IE9- / Bun 0.3.0- setTimeout / setInterval / setImmediate additional parameters fix\n// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers\n// https://github.com/oven-sh/bun/issues/1633\nvar schedulersFix$2 = function (scheduler, hasTimeArg) {\n var firstParamIndex = hasTimeArg ? 2 : 1;\n return WRAP ? function (handler, timeout /* , ...arguments */) {\n var boundArgs = validateArgumentsLength$1(arguments.length, 1) > firstParamIndex;\n var fn = isCallable$5(handler) ? handler : Function$2(handler);\n var params = boundArgs ? arraySlice$2(arguments, firstParamIndex) : [];\n var callback = boundArgs ? function () {\n apply$2(fn, this, params);\n } : fn;\n return hasTimeArg ? scheduler(callback, timeout) : scheduler(callback);\n } : scheduler;\n};\n\nvar $$s = _export;\nvar global$b = global$q;\nvar schedulersFix$1 = schedulersFix$2;\n\nvar setInterval$2 = schedulersFix$1(global$b.setInterval, true);\n\n// Bun / IE9- setInterval additional parameters fix\n// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval\n$$s({ global: true, bind: true, forced: global$b.setInterval !== setInterval$2 }, {\n setInterval: setInterval$2\n});\n\nvar $$r = _export;\nvar global$a = global$q;\nvar schedulersFix = schedulersFix$2;\n\nvar setTimeout$2 = schedulersFix(global$a.setTimeout, true);\n\n// Bun / IE9- setTimeout additional parameters fix\n// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout\n$$r({ global: true, bind: true, forced: global$a.setTimeout !== setTimeout$2 }, {\n setTimeout: setTimeout$2\n});\n\nvar path$d = path$z;\n\nvar setTimeout$1 = path$d.setTimeout;\n\n(function (module) {\n\tmodule.exports = setTimeout$1;\n} (setTimeout$3));\n\nvar _setTimeout = /*@__PURE__*/getDefaultExportFromCjs(setTimeoutExports);\n\nvar fillExports = {};\nvar fill$4 = {\n get exports(){ return fillExports; },\n set exports(v){ fillExports = v; },\n};\n\nvar toObject$3 = toObject$e;\nvar toAbsoluteIndex = toAbsoluteIndex$5;\nvar lengthOfArrayLike$5 = lengthOfArrayLike$d;\n\n// `Array.prototype.fill` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.fill\nvar arrayFill = function fill(value /* , start = 0, end = @length */) {\n var O = toObject$3(this);\n var length = lengthOfArrayLike$5(O);\n var argumentsLength = arguments.length;\n var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : undefined, length);\n var end = argumentsLength > 2 ? arguments[2] : undefined;\n var endPos = end === undefined ? length : toAbsoluteIndex(end, length);\n while (endPos > index) O[index++] = value;\n return O;\n};\n\nvar $$q = _export;\nvar fill$3 = arrayFill;\n\n// `Array.prototype.fill` method\n// https://tc39.es/ecma262/#sec-array.prototype.fill\n$$q({ target: 'Array', proto: true }, {\n fill: fill$3\n});\n\nvar entryVirtual$8 = entryVirtual$l;\n\nvar fill$2 = entryVirtual$8('Array').fill;\n\nvar isPrototypeOf$b = objectIsPrototypeOf;\nvar method$8 = fill$2;\n\nvar ArrayPrototype$8 = Array.prototype;\n\nvar fill$1 = function (it) {\n var own = it.fill;\n return it === ArrayPrototype$8 || (isPrototypeOf$b(ArrayPrototype$8, it) && own === ArrayPrototype$8.fill) ? method$8 : own;\n};\n\nvar parent$F = fill$1;\n\nvar fill = parent$F;\n\n(function (module) {\n\tmodule.exports = fill;\n} (fill$4));\n\nvar _fillInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(fillExports);\n\n/*! Hammer.JS - v2.0.17-rc - 2019-12-16\n * http://naver.github.io/egjs\n *\n * Forked By Naver egjs\n * Copyright (c) hammerjs\n * Licensed under the MIT license */\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\nfunction _assertThisInitialized$1(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\n/**\n * @private\n * extend object.\n * means that properties in dest will be overwritten by the ones in src.\n * @param {Object} target\n * @param {...Object} objects_to_assign\n * @returns {Object} target\n */\nvar assign;\n\nif (typeof Object.assign !== 'function') {\n assign = function assign(target) {\n if (target === undefined || target === null) {\n throw new TypeError('Cannot convert undefined or null to object');\n }\n\n var output = Object(target);\n\n for (var index = 1; index < arguments.length; index++) {\n var source = arguments[index];\n\n if (source !== undefined && source !== null) {\n for (var nextKey in source) {\n if (source.hasOwnProperty(nextKey)) {\n output[nextKey] = source[nextKey];\n }\n }\n }\n }\n\n return output;\n };\n} else {\n assign = Object.assign;\n}\n\nvar assign$1 = assign;\n\nvar VENDOR_PREFIXES = ['', 'webkit', 'Moz', 'MS', 'ms', 'o'];\nvar TEST_ELEMENT = typeof document === \"undefined\" ? {\n style: {}\n} : document.createElement('div');\nvar TYPE_FUNCTION = 'function';\nvar round = Math.round,\n abs$1 = Math.abs;\nvar now = Date.now;\n\n/**\n * @private\n * get the prefixed property\n * @param {Object} obj\n * @param {String} property\n * @returns {String|Undefined} prefixed\n */\n\nfunction prefixed(obj, property) {\n var prefix;\n var prop;\n var camelProp = property[0].toUpperCase() + property.slice(1);\n var i = 0;\n\n while (i < VENDOR_PREFIXES.length) {\n prefix = VENDOR_PREFIXES[i];\n prop = prefix ? prefix + camelProp : property;\n\n if (prop in obj) {\n return prop;\n }\n\n i++;\n }\n\n return undefined;\n}\n\n/* eslint-disable no-new-func, no-nested-ternary */\nvar win;\n\nif (typeof window === \"undefined\") {\n // window is undefined in node.js\n win = {};\n} else {\n win = window;\n}\n\nvar PREFIXED_TOUCH_ACTION = prefixed(TEST_ELEMENT.style, 'touchAction');\nvar NATIVE_TOUCH_ACTION = PREFIXED_TOUCH_ACTION !== undefined;\nfunction getTouchActionProps() {\n if (!NATIVE_TOUCH_ACTION) {\n return false;\n }\n\n var touchMap = {};\n var cssSupports = win.CSS && win.CSS.supports;\n ['auto', 'manipulation', 'pan-y', 'pan-x', 'pan-x pan-y', 'none'].forEach(function (val) {\n // If css.supports is not supported but there is native touch-action assume it supports\n // all values. This is the case for IE 10 and 11.\n return touchMap[val] = cssSupports ? win.CSS.supports('touch-action', val) : true;\n });\n return touchMap;\n}\n\nvar TOUCH_ACTION_COMPUTE = 'compute';\nvar TOUCH_ACTION_AUTO = 'auto';\nvar TOUCH_ACTION_MANIPULATION = 'manipulation'; // not implemented\n\nvar TOUCH_ACTION_NONE = 'none';\nvar TOUCH_ACTION_PAN_X = 'pan-x';\nvar TOUCH_ACTION_PAN_Y = 'pan-y';\nvar TOUCH_ACTION_MAP = getTouchActionProps();\n\nvar MOBILE_REGEX = /mobile|tablet|ip(ad|hone|od)|android/i;\nvar SUPPORT_TOUCH = 'ontouchstart' in win;\nvar SUPPORT_POINTER_EVENTS = prefixed(win, 'PointerEvent') !== undefined;\nvar SUPPORT_ONLY_TOUCH = SUPPORT_TOUCH && MOBILE_REGEX.test(navigator.userAgent);\nvar INPUT_TYPE_TOUCH = 'touch';\nvar INPUT_TYPE_PEN = 'pen';\nvar INPUT_TYPE_MOUSE = 'mouse';\nvar INPUT_TYPE_KINECT = 'kinect';\nvar COMPUTE_INTERVAL = 25;\nvar INPUT_START = 1;\nvar INPUT_MOVE = 2;\nvar INPUT_END = 4;\nvar INPUT_CANCEL = 8;\nvar DIRECTION_NONE = 1;\nvar DIRECTION_LEFT = 2;\nvar DIRECTION_RIGHT = 4;\nvar DIRECTION_UP = 8;\nvar DIRECTION_DOWN = 16;\nvar DIRECTION_HORIZONTAL = DIRECTION_LEFT | DIRECTION_RIGHT;\nvar DIRECTION_VERTICAL = DIRECTION_UP | DIRECTION_DOWN;\nvar DIRECTION_ALL = DIRECTION_HORIZONTAL | DIRECTION_VERTICAL;\nvar PROPS_XY = ['x', 'y'];\nvar PROPS_CLIENT_XY = ['clientX', 'clientY'];\n\n/**\n * @private\n * walk objects and arrays\n * @param {Object} obj\n * @param {Function} iterator\n * @param {Object} context\n */\nfunction each(obj, iterator, context) {\n var i;\n\n if (!obj) {\n return;\n }\n\n if (obj.forEach) {\n obj.forEach(iterator, context);\n } else if (obj.length !== undefined) {\n i = 0;\n\n while (i < obj.length) {\n iterator.call(context, obj[i], i, obj);\n i++;\n }\n } else {\n for (i in obj) {\n obj.hasOwnProperty(i) && iterator.call(context, obj[i], i, obj);\n }\n }\n}\n\n/**\n * @private\n * let a boolean value also be a function that must return a boolean\n * this first item in args will be used as the context\n * @param {Boolean|Function} val\n * @param {Array} [args]\n * @returns {Boolean}\n */\n\nfunction boolOrFn(val, args) {\n if (typeof val === TYPE_FUNCTION) {\n return val.apply(args ? args[0] || undefined : undefined, args);\n }\n\n return val;\n}\n\n/**\n * @private\n * small indexOf wrapper\n * @param {String} str\n * @param {String} find\n * @returns {Boolean} found\n */\nfunction inStr(str, find) {\n return str.indexOf(find) > -1;\n}\n\n/**\n * @private\n * when the touchActions are collected they are not a valid value, so we need to clean things up. *\n * @param {String} actions\n * @returns {*}\n */\n\nfunction cleanTouchActions(actions) {\n // none\n if (inStr(actions, TOUCH_ACTION_NONE)) {\n return TOUCH_ACTION_NONE;\n }\n\n var hasPanX = inStr(actions, TOUCH_ACTION_PAN_X);\n var hasPanY = inStr(actions, TOUCH_ACTION_PAN_Y); // if both pan-x and pan-y are set (different recognizers\n // for different directions, e.g. horizontal pan but vertical swipe?)\n // we need none (as otherwise with pan-x pan-y combined none of these\n // recognizers will work, since the browser would handle all panning\n\n if (hasPanX && hasPanY) {\n return TOUCH_ACTION_NONE;\n } // pan-x OR pan-y\n\n\n if (hasPanX || hasPanY) {\n return hasPanX ? TOUCH_ACTION_PAN_X : TOUCH_ACTION_PAN_Y;\n } // manipulation\n\n\n if (inStr(actions, TOUCH_ACTION_MANIPULATION)) {\n return TOUCH_ACTION_MANIPULATION;\n }\n\n return TOUCH_ACTION_AUTO;\n}\n\n/**\n * @private\n * Touch Action\n * sets the touchAction property or uses the js alternative\n * @param {Manager} manager\n * @param {String} value\n * @constructor\n */\n\nvar TouchAction =\n/*#__PURE__*/\nfunction () {\n function TouchAction(manager, value) {\n this.manager = manager;\n this.set(value);\n }\n /**\n * @private\n * set the touchAction value on the element or enable the polyfill\n * @param {String} value\n */\n\n\n var _proto = TouchAction.prototype;\n\n _proto.set = function set(value) {\n // find out the touch-action by the event handlers\n if (value === TOUCH_ACTION_COMPUTE) {\n value = this.compute();\n }\n\n if (NATIVE_TOUCH_ACTION && this.manager.element.style && TOUCH_ACTION_MAP[value]) {\n this.manager.element.style[PREFIXED_TOUCH_ACTION] = value;\n }\n\n this.actions = value.toLowerCase().trim();\n };\n /**\n * @private\n * just re-set the touchAction value\n */\n\n\n _proto.update = function update() {\n this.set(this.manager.options.touchAction);\n };\n /**\n * @private\n * compute the value for the touchAction property based on the recognizer's settings\n * @returns {String} value\n */\n\n\n _proto.compute = function compute() {\n var actions = [];\n each(this.manager.recognizers, function (recognizer) {\n if (boolOrFn(recognizer.options.enable, [recognizer])) {\n actions = actions.concat(recognizer.getTouchAction());\n }\n });\n return cleanTouchActions(actions.join(' '));\n };\n /**\n * @private\n * this method is called on each input cycle and provides the preventing of the browser behavior\n * @param {Object} input\n */\n\n\n _proto.preventDefaults = function preventDefaults(input) {\n var srcEvent = input.srcEvent;\n var direction = input.offsetDirection; // if the touch action did prevented once this session\n\n if (this.manager.session.prevented) {\n srcEvent.preventDefault();\n return;\n }\n\n var actions = this.actions;\n var hasNone = inStr(actions, TOUCH_ACTION_NONE) && !TOUCH_ACTION_MAP[TOUCH_ACTION_NONE];\n var hasPanY = inStr(actions, TOUCH_ACTION_PAN_Y) && !TOUCH_ACTION_MAP[TOUCH_ACTION_PAN_Y];\n var hasPanX = inStr(actions, TOUCH_ACTION_PAN_X) && !TOUCH_ACTION_MAP[TOUCH_ACTION_PAN_X];\n\n if (hasNone) {\n // do not prevent defaults if this is a tap gesture\n var isTapPointer = input.pointers.length === 1;\n var isTapMovement = input.distance < 2;\n var isTapTouchTime = input.deltaTime < 250;\n\n if (isTapPointer && isTapMovement && isTapTouchTime) {\n return;\n }\n }\n\n if (hasPanX && hasPanY) {\n // `pan-x pan-y` means browser handles all scrolling/panning, do not prevent\n return;\n }\n\n if (hasNone || hasPanY && direction & DIRECTION_HORIZONTAL || hasPanX && direction & DIRECTION_VERTICAL) {\n return this.preventSrc(srcEvent);\n }\n };\n /**\n * @private\n * call preventDefault to prevent the browser's default behavior (scrolling in most cases)\n * @param {Object} srcEvent\n */\n\n\n _proto.preventSrc = function preventSrc(srcEvent) {\n this.manager.session.prevented = true;\n srcEvent.preventDefault();\n };\n\n return TouchAction;\n}();\n\n/**\n * @private\n * find if a node is in the given parent\n * @method hasParent\n * @param {HTMLElement} node\n * @param {HTMLElement} parent\n * @return {Boolean} found\n */\nfunction hasParent(node, parent) {\n while (node) {\n if (node === parent) {\n return true;\n }\n\n node = node.parentNode;\n }\n\n return false;\n}\n\n/**\n * @private\n * get the center of all the pointers\n * @param {Array} pointers\n * @return {Object} center contains `x` and `y` properties\n */\n\nfunction getCenter(pointers) {\n var pointersLength = pointers.length; // no need to loop when only one touch\n\n if (pointersLength === 1) {\n return {\n x: round(pointers[0].clientX),\n y: round(pointers[0].clientY)\n };\n }\n\n var x = 0;\n var y = 0;\n var i = 0;\n\n while (i < pointersLength) {\n x += pointers[i].clientX;\n y += pointers[i].clientY;\n i++;\n }\n\n return {\n x: round(x / pointersLength),\n y: round(y / pointersLength)\n };\n}\n\n/**\n * @private\n * create a simple clone from the input used for storage of firstInput and firstMultiple\n * @param {Object} input\n * @returns {Object} clonedInputData\n */\n\nfunction simpleCloneInputData(input) {\n // make a simple copy of the pointers because we will get a reference if we don't\n // we only need clientXY for the calculations\n var pointers = [];\n var i = 0;\n\n while (i < input.pointers.length) {\n pointers[i] = {\n clientX: round(input.pointers[i].clientX),\n clientY: round(input.pointers[i].clientY)\n };\n i++;\n }\n\n return {\n timeStamp: now(),\n pointers: pointers,\n center: getCenter(pointers),\n deltaX: input.deltaX,\n deltaY: input.deltaY\n };\n}\n\n/**\n * @private\n * calculate the absolute distance between two points\n * @param {Object} p1 {x, y}\n * @param {Object} p2 {x, y}\n * @param {Array} [props] containing x and y keys\n * @return {Number} distance\n */\n\nfunction getDistance(p1, p2, props) {\n if (!props) {\n props = PROPS_XY;\n }\n\n var x = p2[props[0]] - p1[props[0]];\n var y = p2[props[1]] - p1[props[1]];\n return Math.sqrt(x * x + y * y);\n}\n\n/**\n * @private\n * calculate the angle between two coordinates\n * @param {Object} p1\n * @param {Object} p2\n * @param {Array} [props] containing x and y keys\n * @return {Number} angle\n */\n\nfunction getAngle(p1, p2, props) {\n if (!props) {\n props = PROPS_XY;\n }\n\n var x = p2[props[0]] - p1[props[0]];\n var y = p2[props[1]] - p1[props[1]];\n return Math.atan2(y, x) * 180 / Math.PI;\n}\n\n/**\n * @private\n * get the direction between two points\n * @param {Number} x\n * @param {Number} y\n * @return {Number} direction\n */\n\nfunction getDirection(x, y) {\n if (x === y) {\n return DIRECTION_NONE;\n }\n\n if (abs$1(x) >= abs$1(y)) {\n return x < 0 ? DIRECTION_LEFT : DIRECTION_RIGHT;\n }\n\n return y < 0 ? DIRECTION_UP : DIRECTION_DOWN;\n}\n\nfunction computeDeltaXY(session, input) {\n var center = input.center; // let { offsetDelta:offset = {}, prevDelta = {}, prevInput = {} } = session;\n // jscs throwing error on defalut destructured values and without defaults tests fail\n\n var offset = session.offsetDelta || {};\n var prevDelta = session.prevDelta || {};\n var prevInput = session.prevInput || {};\n\n if (input.eventType === INPUT_START || prevInput.eventType === INPUT_END) {\n prevDelta = session.prevDelta = {\n x: prevInput.deltaX || 0,\n y: prevInput.deltaY || 0\n };\n offset = session.offsetDelta = {\n x: center.x,\n y: center.y\n };\n }\n\n input.deltaX = prevDelta.x + (center.x - offset.x);\n input.deltaY = prevDelta.y + (center.y - offset.y);\n}\n\n/**\n * @private\n * calculate the velocity between two points. unit is in px per ms.\n * @param {Number} deltaTime\n * @param {Number} x\n * @param {Number} y\n * @return {Object} velocity `x` and `y`\n */\nfunction getVelocity(deltaTime, x, y) {\n return {\n x: x / deltaTime || 0,\n y: y / deltaTime || 0\n };\n}\n\n/**\n * @private\n * calculate the scale factor between two pointersets\n * no scale is 1, and goes down to 0 when pinched together, and bigger when pinched out\n * @param {Array} start array of pointers\n * @param {Array} end array of pointers\n * @return {Number} scale\n */\n\nfunction getScale(start, end) {\n return getDistance(end[0], end[1], PROPS_CLIENT_XY) / getDistance(start[0], start[1], PROPS_CLIENT_XY);\n}\n\n/**\n * @private\n * calculate the rotation degrees between two pointersets\n * @param {Array} start array of pointers\n * @param {Array} end array of pointers\n * @return {Number} rotation\n */\n\nfunction getRotation(start, end) {\n return getAngle(end[1], end[0], PROPS_CLIENT_XY) + getAngle(start[1], start[0], PROPS_CLIENT_XY);\n}\n\n/**\n * @private\n * velocity is calculated every x ms\n * @param {Object} session\n * @param {Object} input\n */\n\nfunction computeIntervalInputData(session, input) {\n var last = session.lastInterval || input;\n var deltaTime = input.timeStamp - last.timeStamp;\n var velocity;\n var velocityX;\n var velocityY;\n var direction;\n\n if (input.eventType !== INPUT_CANCEL && (deltaTime > COMPUTE_INTERVAL || last.velocity === undefined)) {\n var deltaX = input.deltaX - last.deltaX;\n var deltaY = input.deltaY - last.deltaY;\n var v = getVelocity(deltaTime, deltaX, deltaY);\n velocityX = v.x;\n velocityY = v.y;\n velocity = abs$1(v.x) > abs$1(v.y) ? v.x : v.y;\n direction = getDirection(deltaX, deltaY);\n session.lastInterval = input;\n } else {\n // use latest velocity info if it doesn't overtake a minimum period\n velocity = last.velocity;\n velocityX = last.velocityX;\n velocityY = last.velocityY;\n direction = last.direction;\n }\n\n input.velocity = velocity;\n input.velocityX = velocityX;\n input.velocityY = velocityY;\n input.direction = direction;\n}\n\n/**\n* @private\n * extend the data with some usable properties like scale, rotate, velocity etc\n * @param {Object} manager\n * @param {Object} input\n */\n\nfunction computeInputData(manager, input) {\n var session = manager.session;\n var pointers = input.pointers;\n var pointersLength = pointers.length; // store the first input to calculate the distance and direction\n\n if (!session.firstInput) {\n session.firstInput = simpleCloneInputData(input);\n } // to compute scale and rotation we need to store the multiple touches\n\n\n if (pointersLength > 1 && !session.firstMultiple) {\n session.firstMultiple = simpleCloneInputData(input);\n } else if (pointersLength === 1) {\n session.firstMultiple = false;\n }\n\n var firstInput = session.firstInput,\n firstMultiple = session.firstMultiple;\n var offsetCenter = firstMultiple ? firstMultiple.center : firstInput.center;\n var center = input.center = getCenter(pointers);\n input.timeStamp = now();\n input.deltaTime = input.timeStamp - firstInput.timeStamp;\n input.angle = getAngle(offsetCenter, center);\n input.distance = getDistance(offsetCenter, center);\n computeDeltaXY(session, input);\n input.offsetDirection = getDirection(input.deltaX, input.deltaY);\n var overallVelocity = getVelocity(input.deltaTime, input.deltaX, input.deltaY);\n input.overallVelocityX = overallVelocity.x;\n input.overallVelocityY = overallVelocity.y;\n input.overallVelocity = abs$1(overallVelocity.x) > abs$1(overallVelocity.y) ? overallVelocity.x : overallVelocity.y;\n input.scale = firstMultiple ? getScale(firstMultiple.pointers, pointers) : 1;\n input.rotation = firstMultiple ? getRotation(firstMultiple.pointers, pointers) : 0;\n input.maxPointers = !session.prevInput ? input.pointers.length : input.pointers.length > session.prevInput.maxPointers ? input.pointers.length : session.prevInput.maxPointers;\n computeIntervalInputData(session, input); // find the correct target\n\n var target = manager.element;\n var srcEvent = input.srcEvent;\n var srcEventTarget;\n\n if (srcEvent.composedPath) {\n srcEventTarget = srcEvent.composedPath()[0];\n } else if (srcEvent.path) {\n srcEventTarget = srcEvent.path[0];\n } else {\n srcEventTarget = srcEvent.target;\n }\n\n if (hasParent(srcEventTarget, target)) {\n target = srcEventTarget;\n }\n\n input.target = target;\n}\n\n/**\n * @private\n * handle input events\n * @param {Manager} manager\n * @param {String} eventType\n * @param {Object} input\n */\n\nfunction inputHandler(manager, eventType, input) {\n var pointersLen = input.pointers.length;\n var changedPointersLen = input.changedPointers.length;\n var isFirst = eventType & INPUT_START && pointersLen - changedPointersLen === 0;\n var isFinal = eventType & (INPUT_END | INPUT_CANCEL) && pointersLen - changedPointersLen === 0;\n input.isFirst = !!isFirst;\n input.isFinal = !!isFinal;\n\n if (isFirst) {\n manager.session = {};\n } // source event is the normalized value of the domEvents\n // like 'touchstart, mouseup, pointerdown'\n\n\n input.eventType = eventType; // compute scale, rotation etc\n\n computeInputData(manager, input); // emit secret event\n\n manager.emit('hammer.input', input);\n manager.recognize(input);\n manager.session.prevInput = input;\n}\n\n/**\n * @private\n * split string on whitespace\n * @param {String} str\n * @returns {Array} words\n */\nfunction splitStr(str) {\n return str.trim().split(/\\s+/g);\n}\n\n/**\n * @private\n * addEventListener with multiple events at once\n * @param {EventTarget} target\n * @param {String} types\n * @param {Function} handler\n */\n\nfunction addEventListeners(target, types, handler) {\n each(splitStr(types), function (type) {\n target.addEventListener(type, handler, false);\n });\n}\n\n/**\n * @private\n * removeEventListener with multiple events at once\n * @param {EventTarget} target\n * @param {String} types\n * @param {Function} handler\n */\n\nfunction removeEventListeners(target, types, handler) {\n each(splitStr(types), function (type) {\n target.removeEventListener(type, handler, false);\n });\n}\n\n/**\n * @private\n * get the window object of an element\n * @param {HTMLElement} element\n * @returns {DocumentView|Window}\n */\nfunction getWindowForElement(element) {\n var doc = element.ownerDocument || element;\n return doc.defaultView || doc.parentWindow || window;\n}\n\n/**\n * @private\n * create new input type manager\n * @param {Manager} manager\n * @param {Function} callback\n * @returns {Input}\n * @constructor\n */\n\nvar Input =\n/*#__PURE__*/\nfunction () {\n function Input(manager, callback) {\n var self = this;\n this.manager = manager;\n this.callback = callback;\n this.element = manager.element;\n this.target = manager.options.inputTarget; // smaller wrapper around the handler, for the scope and the enabled state of the manager,\n // so when disabled the input events are completely bypassed.\n\n this.domHandler = function (ev) {\n if (boolOrFn(manager.options.enable, [manager])) {\n self.handler(ev);\n }\n };\n\n this.init();\n }\n /**\n * @private\n * should handle the inputEvent data and trigger the callback\n * @virtual\n */\n\n\n var _proto = Input.prototype;\n\n _proto.handler = function handler() {};\n /**\n * @private\n * bind the events\n */\n\n\n _proto.init = function init() {\n this.evEl && addEventListeners(this.element, this.evEl, this.domHandler);\n this.evTarget && addEventListeners(this.target, this.evTarget, this.domHandler);\n this.evWin && addEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);\n };\n /**\n * @private\n * unbind the events\n */\n\n\n _proto.destroy = function destroy() {\n this.evEl && removeEventListeners(this.element, this.evEl, this.domHandler);\n this.evTarget && removeEventListeners(this.target, this.evTarget, this.domHandler);\n this.evWin && removeEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);\n };\n\n return Input;\n}();\n\n/**\n * @private\n * find if a array contains the object using indexOf or a simple polyFill\n * @param {Array} src\n * @param {String} find\n * @param {String} [findByKey]\n * @return {Boolean|Number} false when not found, or the index\n */\nfunction inArray(src, find, findByKey) {\n if (src.indexOf && !findByKey) {\n return src.indexOf(find);\n } else {\n var i = 0;\n\n while (i < src.length) {\n if (findByKey && src[i][findByKey] == find || !findByKey && src[i] === find) {\n // do not use === here, test fails\n return i;\n }\n\n i++;\n }\n\n return -1;\n }\n}\n\nvar POINTER_INPUT_MAP = {\n pointerdown: INPUT_START,\n pointermove: INPUT_MOVE,\n pointerup: INPUT_END,\n pointercancel: INPUT_CANCEL,\n pointerout: INPUT_CANCEL\n}; // in IE10 the pointer types is defined as an enum\n\nvar IE10_POINTER_TYPE_ENUM = {\n 2: INPUT_TYPE_TOUCH,\n 3: INPUT_TYPE_PEN,\n 4: INPUT_TYPE_MOUSE,\n 5: INPUT_TYPE_KINECT // see https://twitter.com/jacobrossi/status/480596438489890816\n\n};\nvar POINTER_ELEMENT_EVENTS = 'pointerdown';\nvar POINTER_WINDOW_EVENTS = 'pointermove pointerup pointercancel'; // IE10 has prefixed support, and case-sensitive\n\nif (win.MSPointerEvent && !win.PointerEvent) {\n POINTER_ELEMENT_EVENTS = 'MSPointerDown';\n POINTER_WINDOW_EVENTS = 'MSPointerMove MSPointerUp MSPointerCancel';\n}\n/**\n * @private\n * Pointer events input\n * @constructor\n * @extends Input\n */\n\n\nvar PointerEventInput =\n/*#__PURE__*/\nfunction (_Input) {\n _inheritsLoose(PointerEventInput, _Input);\n\n function PointerEventInput() {\n var _this;\n\n var proto = PointerEventInput.prototype;\n proto.evEl = POINTER_ELEMENT_EVENTS;\n proto.evWin = POINTER_WINDOW_EVENTS;\n _this = _Input.apply(this, arguments) || this;\n _this.store = _this.manager.session.pointerEvents = [];\n return _this;\n }\n /**\n * @private\n * handle mouse events\n * @param {Object} ev\n */\n\n\n var _proto = PointerEventInput.prototype;\n\n _proto.handler = function handler(ev) {\n var store = this.store;\n var removePointer = false;\n var eventTypeNormalized = ev.type.toLowerCase().replace('ms', '');\n var eventType = POINTER_INPUT_MAP[eventTypeNormalized];\n var pointerType = IE10_POINTER_TYPE_ENUM[ev.pointerType] || ev.pointerType;\n var isTouch = pointerType === INPUT_TYPE_TOUCH; // get index of the event in the store\n\n var storeIndex = inArray(store, ev.pointerId, 'pointerId'); // start and mouse must be down\n\n if (eventType & INPUT_START && (ev.button === 0 || isTouch)) {\n if (storeIndex < 0) {\n store.push(ev);\n storeIndex = store.length - 1;\n }\n } else if (eventType & (INPUT_END | INPUT_CANCEL)) {\n removePointer = true;\n } // it not found, so the pointer hasn't been down (so it's probably a hover)\n\n\n if (storeIndex < 0) {\n return;\n } // update the event in the store\n\n\n store[storeIndex] = ev;\n this.callback(this.manager, eventType, {\n pointers: store,\n changedPointers: [ev],\n pointerType: pointerType,\n srcEvent: ev\n });\n\n if (removePointer) {\n // remove from the store\n store.splice(storeIndex, 1);\n }\n };\n\n return PointerEventInput;\n}(Input);\n\n/**\n * @private\n * convert array-like objects to real arrays\n * @param {Object} obj\n * @returns {Array}\n */\nfunction toArray(obj) {\n return Array.prototype.slice.call(obj, 0);\n}\n\n/**\n * @private\n * unique array with objects based on a key (like 'id') or just by the array's value\n * @param {Array} src [{id:1},{id:2},{id:1}]\n * @param {String} [key]\n * @param {Boolean} [sort=False]\n * @returns {Array} [{id:1},{id:2}]\n */\n\nfunction uniqueArray(src, key, sort) {\n var results = [];\n var values = [];\n var i = 0;\n\n while (i < src.length) {\n var val = key ? src[i][key] : src[i];\n\n if (inArray(values, val) < 0) {\n results.push(src[i]);\n }\n\n values[i] = val;\n i++;\n }\n\n if (sort) {\n if (!key) {\n results = results.sort();\n } else {\n results = results.sort(function (a, b) {\n return a[key] > b[key];\n });\n }\n }\n\n return results;\n}\n\nvar TOUCH_INPUT_MAP = {\n touchstart: INPUT_START,\n touchmove: INPUT_MOVE,\n touchend: INPUT_END,\n touchcancel: INPUT_CANCEL\n};\nvar TOUCH_TARGET_EVENTS = 'touchstart touchmove touchend touchcancel';\n/**\n * @private\n * Multi-user touch events input\n * @constructor\n * @extends Input\n */\n\nvar TouchInput =\n/*#__PURE__*/\nfunction (_Input) {\n _inheritsLoose(TouchInput, _Input);\n\n function TouchInput() {\n var _this;\n\n TouchInput.prototype.evTarget = TOUCH_TARGET_EVENTS;\n _this = _Input.apply(this, arguments) || this;\n _this.targetIds = {}; // this.evTarget = TOUCH_TARGET_EVENTS;\n\n return _this;\n }\n\n var _proto = TouchInput.prototype;\n\n _proto.handler = function handler(ev) {\n var type = TOUCH_INPUT_MAP[ev.type];\n var touches = getTouches.call(this, ev, type);\n\n if (!touches) {\n return;\n }\n\n this.callback(this.manager, type, {\n pointers: touches[0],\n changedPointers: touches[1],\n pointerType: INPUT_TYPE_TOUCH,\n srcEvent: ev\n });\n };\n\n return TouchInput;\n}(Input);\n\nfunction getTouches(ev, type) {\n var allTouches = toArray(ev.touches);\n var targetIds = this.targetIds; // when there is only one touch, the process can be simplified\n\n if (type & (INPUT_START | INPUT_MOVE) && allTouches.length === 1) {\n targetIds[allTouches[0].identifier] = true;\n return [allTouches, allTouches];\n }\n\n var i;\n var targetTouches;\n var changedTouches = toArray(ev.changedTouches);\n var changedTargetTouches = [];\n var target = this.target; // get target touches from touches\n\n targetTouches = allTouches.filter(function (touch) {\n return hasParent(touch.target, target);\n }); // collect touches\n\n if (type === INPUT_START) {\n i = 0;\n\n while (i < targetTouches.length) {\n targetIds[targetTouches[i].identifier] = true;\n i++;\n }\n } // filter changed touches to only contain touches that exist in the collected target ids\n\n\n i = 0;\n\n while (i < changedTouches.length) {\n if (targetIds[changedTouches[i].identifier]) {\n changedTargetTouches.push(changedTouches[i]);\n } // cleanup removed touches\n\n\n if (type & (INPUT_END | INPUT_CANCEL)) {\n delete targetIds[changedTouches[i].identifier];\n }\n\n i++;\n }\n\n if (!changedTargetTouches.length) {\n return;\n }\n\n return [// merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'\n uniqueArray(targetTouches.concat(changedTargetTouches), 'identifier', true), changedTargetTouches];\n}\n\nvar MOUSE_INPUT_MAP = {\n mousedown: INPUT_START,\n mousemove: INPUT_MOVE,\n mouseup: INPUT_END\n};\nvar MOUSE_ELEMENT_EVENTS = 'mousedown';\nvar MOUSE_WINDOW_EVENTS = 'mousemove mouseup';\n/**\n * @private\n * Mouse events input\n * @constructor\n * @extends Input\n */\n\nvar MouseInput =\n/*#__PURE__*/\nfunction (_Input) {\n _inheritsLoose(MouseInput, _Input);\n\n function MouseInput() {\n var _this;\n\n var proto = MouseInput.prototype;\n proto.evEl = MOUSE_ELEMENT_EVENTS;\n proto.evWin = MOUSE_WINDOW_EVENTS;\n _this = _Input.apply(this, arguments) || this;\n _this.pressed = false; // mousedown state\n\n return _this;\n }\n /**\n * @private\n * handle mouse events\n * @param {Object} ev\n */\n\n\n var _proto = MouseInput.prototype;\n\n _proto.handler = function handler(ev) {\n var eventType = MOUSE_INPUT_MAP[ev.type]; // on start we want to have the left mouse button down\n\n if (eventType & INPUT_START && ev.button === 0) {\n this.pressed = true;\n }\n\n if (eventType & INPUT_MOVE && ev.which !== 1) {\n eventType = INPUT_END;\n } // mouse must be down\n\n\n if (!this.pressed) {\n return;\n }\n\n if (eventType & INPUT_END) {\n this.pressed = false;\n }\n\n this.callback(this.manager, eventType, {\n pointers: [ev],\n changedPointers: [ev],\n pointerType: INPUT_TYPE_MOUSE,\n srcEvent: ev\n });\n };\n\n return MouseInput;\n}(Input);\n\n/**\n * @private\n * Combined touch and mouse input\n *\n * Touch has a higher priority then mouse, and while touching no mouse events are allowed.\n * This because touch devices also emit mouse events while doing a touch.\n *\n * @constructor\n * @extends Input\n */\n\nvar DEDUP_TIMEOUT = 2500;\nvar DEDUP_DISTANCE = 25;\n\nfunction setLastTouch(eventData) {\n var _eventData$changedPoi = eventData.changedPointers,\n touch = _eventData$changedPoi[0];\n\n if (touch.identifier === this.primaryTouch) {\n var lastTouch = {\n x: touch.clientX,\n y: touch.clientY\n };\n var lts = this.lastTouches;\n this.lastTouches.push(lastTouch);\n\n var removeLastTouch = function removeLastTouch() {\n var i = lts.indexOf(lastTouch);\n\n if (i > -1) {\n lts.splice(i, 1);\n }\n };\n\n setTimeout(removeLastTouch, DEDUP_TIMEOUT);\n }\n}\n\nfunction recordTouches(eventType, eventData) {\n if (eventType & INPUT_START) {\n this.primaryTouch = eventData.changedPointers[0].identifier;\n setLastTouch.call(this, eventData);\n } else if (eventType & (INPUT_END | INPUT_CANCEL)) {\n setLastTouch.call(this, eventData);\n }\n}\n\nfunction isSyntheticEvent(eventData) {\n var x = eventData.srcEvent.clientX;\n var y = eventData.srcEvent.clientY;\n\n for (var i = 0; i < this.lastTouches.length; i++) {\n var t = this.lastTouches[i];\n var dx = Math.abs(x - t.x);\n var dy = Math.abs(y - t.y);\n\n if (dx <= DEDUP_DISTANCE && dy <= DEDUP_DISTANCE) {\n return true;\n }\n }\n\n return false;\n}\n\nvar TouchMouseInput =\n/*#__PURE__*/\nfunction () {\n var TouchMouseInput =\n /*#__PURE__*/\n function (_Input) {\n _inheritsLoose(TouchMouseInput, _Input);\n\n function TouchMouseInput(_manager, callback) {\n var _this;\n\n _this = _Input.call(this, _manager, callback) || this;\n\n _this.handler = function (manager, inputEvent, inputData) {\n var isTouch = inputData.pointerType === INPUT_TYPE_TOUCH;\n var isMouse = inputData.pointerType === INPUT_TYPE_MOUSE;\n\n if (isMouse && inputData.sourceCapabilities && inputData.sourceCapabilities.firesTouchEvents) {\n return;\n } // when we're in a touch event, record touches to de-dupe synthetic mouse event\n\n\n if (isTouch) {\n recordTouches.call(_assertThisInitialized$1(_assertThisInitialized$1(_this)), inputEvent, inputData);\n } else if (isMouse && isSyntheticEvent.call(_assertThisInitialized$1(_assertThisInitialized$1(_this)), inputData)) {\n return;\n }\n\n _this.callback(manager, inputEvent, inputData);\n };\n\n _this.touch = new TouchInput(_this.manager, _this.handler);\n _this.mouse = new MouseInput(_this.manager, _this.handler);\n _this.primaryTouch = null;\n _this.lastTouches = [];\n return _this;\n }\n /**\n * @private\n * handle mouse and touch events\n * @param {Hammer} manager\n * @param {String} inputEvent\n * @param {Object} inputData\n */\n\n\n var _proto = TouchMouseInput.prototype;\n\n /**\n * @private\n * remove the event listeners\n */\n _proto.destroy = function destroy() {\n this.touch.destroy();\n this.mouse.destroy();\n };\n\n return TouchMouseInput;\n }(Input);\n\n return TouchMouseInput;\n}();\n\n/**\n * @private\n * create new input type manager\n * called by the Manager constructor\n * @param {Hammer} manager\n * @returns {Input}\n */\n\nfunction createInputInstance(manager) {\n var Type; // let inputClass = manager.options.inputClass;\n\n var inputClass = manager.options.inputClass;\n\n if (inputClass) {\n Type = inputClass;\n } else if (SUPPORT_POINTER_EVENTS) {\n Type = PointerEventInput;\n } else if (SUPPORT_ONLY_TOUCH) {\n Type = TouchInput;\n } else if (!SUPPORT_TOUCH) {\n Type = MouseInput;\n } else {\n Type = TouchMouseInput;\n }\n\n return new Type(manager, inputHandler);\n}\n\n/**\n * @private\n * if the argument is an array, we want to execute the fn on each entry\n * if it aint an array we don't want to do a thing.\n * this is used by all the methods that accept a single and array argument.\n * @param {*|Array} arg\n * @param {String} fn\n * @param {Object} [context]\n * @returns {Boolean}\n */\n\nfunction invokeArrayArg(arg, fn, context) {\n if (Array.isArray(arg)) {\n each(arg, context[fn], context);\n return true;\n }\n\n return false;\n}\n\nvar STATE_POSSIBLE = 1;\nvar STATE_BEGAN = 2;\nvar STATE_CHANGED = 4;\nvar STATE_ENDED = 8;\nvar STATE_RECOGNIZED = STATE_ENDED;\nvar STATE_CANCELLED = 16;\nvar STATE_FAILED = 32;\n\n/**\n * @private\n * get a unique id\n * @returns {number} uniqueId\n */\nvar _uniqueId = 1;\nfunction uniqueId() {\n return _uniqueId++;\n}\n\n/**\n * @private\n * get a recognizer by name if it is bound to a manager\n * @param {Recognizer|String} otherRecognizer\n * @param {Recognizer} recognizer\n * @returns {Recognizer}\n */\nfunction getRecognizerByNameIfManager(otherRecognizer, recognizer) {\n var manager = recognizer.manager;\n\n if (manager) {\n return manager.get(otherRecognizer);\n }\n\n return otherRecognizer;\n}\n\n/**\n * @private\n * get a usable string, used as event postfix\n * @param {constant} state\n * @returns {String} state\n */\n\nfunction stateStr(state) {\n if (state & STATE_CANCELLED) {\n return 'cancel';\n } else if (state & STATE_ENDED) {\n return 'end';\n } else if (state & STATE_CHANGED) {\n return 'move';\n } else if (state & STATE_BEGAN) {\n return 'start';\n }\n\n return '';\n}\n\n/**\n * @private\n * Recognizer flow explained; *\n * All recognizers have the initial state of POSSIBLE when a input session starts.\n * The definition of a input session is from the first input until the last input, with all it's movement in it. *\n * Example session for mouse-input: mousedown -> mousemove -> mouseup\n *\n * On each recognizing cycle (see Manager.recognize) the .recognize() method is executed\n * which determines with state it should be.\n *\n * If the recognizer has the state FAILED, CANCELLED or RECOGNIZED (equals ENDED), it is reset to\n * POSSIBLE to give it another change on the next cycle.\n *\n * Possible\n * |\n * +-----+---------------+\n * | |\n * +-----+-----+ |\n * | | |\n * Failed Cancelled |\n * +-------+------+\n * | |\n * Recognized Began\n * |\n * Changed\n * |\n * Ended/Recognized\n */\n\n/**\n * @private\n * Recognizer\n * Every recognizer needs to extend from this class.\n * @constructor\n * @param {Object} options\n */\n\nvar Recognizer =\n/*#__PURE__*/\nfunction () {\n function Recognizer(options) {\n if (options === void 0) {\n options = {};\n }\n\n this.options = _extends({\n enable: true\n }, options);\n this.id = uniqueId();\n this.manager = null; // default is enable true\n\n this.state = STATE_POSSIBLE;\n this.simultaneous = {};\n this.requireFail = [];\n }\n /**\n * @private\n * set options\n * @param {Object} options\n * @return {Recognizer}\n */\n\n\n var _proto = Recognizer.prototype;\n\n _proto.set = function set(options) {\n assign$1(this.options, options); // also update the touchAction, in case something changed about the directions/enabled state\n\n this.manager && this.manager.touchAction.update();\n return this;\n };\n /**\n * @private\n * recognize simultaneous with an other recognizer.\n * @param {Recognizer} otherRecognizer\n * @returns {Recognizer} this\n */\n\n\n _proto.recognizeWith = function recognizeWith(otherRecognizer) {\n if (invokeArrayArg(otherRecognizer, 'recognizeWith', this)) {\n return this;\n }\n\n var simultaneous = this.simultaneous;\n otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\n\n if (!simultaneous[otherRecognizer.id]) {\n simultaneous[otherRecognizer.id] = otherRecognizer;\n otherRecognizer.recognizeWith(this);\n }\n\n return this;\n };\n /**\n * @private\n * drop the simultaneous link. it doesnt remove the link on the other recognizer.\n * @param {Recognizer} otherRecognizer\n * @returns {Recognizer} this\n */\n\n\n _proto.dropRecognizeWith = function dropRecognizeWith(otherRecognizer) {\n if (invokeArrayArg(otherRecognizer, 'dropRecognizeWith', this)) {\n return this;\n }\n\n otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\n delete this.simultaneous[otherRecognizer.id];\n return this;\n };\n /**\n * @private\n * recognizer can only run when an other is failing\n * @param {Recognizer} otherRecognizer\n * @returns {Recognizer} this\n */\n\n\n _proto.requireFailure = function requireFailure(otherRecognizer) {\n if (invokeArrayArg(otherRecognizer, 'requireFailure', this)) {\n return this;\n }\n\n var requireFail = this.requireFail;\n otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\n\n if (inArray(requireFail, otherRecognizer) === -1) {\n requireFail.push(otherRecognizer);\n otherRecognizer.requireFailure(this);\n }\n\n return this;\n };\n /**\n * @private\n * drop the requireFailure link. it does not remove the link on the other recognizer.\n * @param {Recognizer} otherRecognizer\n * @returns {Recognizer} this\n */\n\n\n _proto.dropRequireFailure = function dropRequireFailure(otherRecognizer) {\n if (invokeArrayArg(otherRecognizer, 'dropRequireFailure', this)) {\n return this;\n }\n\n otherRecognizer = getRecognizerByNameIfManager(otherRecognizer, this);\n var index = inArray(this.requireFail, otherRecognizer);\n\n if (index > -1) {\n this.requireFail.splice(index, 1);\n }\n\n return this;\n };\n /**\n * @private\n * has require failures boolean\n * @returns {boolean}\n */\n\n\n _proto.hasRequireFailures = function hasRequireFailures() {\n return this.requireFail.length > 0;\n };\n /**\n * @private\n * if the recognizer can recognize simultaneous with an other recognizer\n * @param {Recognizer} otherRecognizer\n * @returns {Boolean}\n */\n\n\n _proto.canRecognizeWith = function canRecognizeWith(otherRecognizer) {\n return !!this.simultaneous[otherRecognizer.id];\n };\n /**\n * @private\n * You should use `tryEmit` instead of `emit` directly to check\n * that all the needed recognizers has failed before emitting.\n * @param {Object} input\n */\n\n\n _proto.emit = function emit(input) {\n var self = this;\n var state = this.state;\n\n function emit(event) {\n self.manager.emit(event, input);\n } // 'panstart' and 'panmove'\n\n\n if (state < STATE_ENDED) {\n emit(self.options.event + stateStr(state));\n }\n\n emit(self.options.event); // simple 'eventName' events\n\n if (input.additionalEvent) {\n // additional event(panleft, panright, pinchin, pinchout...)\n emit(input.additionalEvent);\n } // panend and pancancel\n\n\n if (state >= STATE_ENDED) {\n emit(self.options.event + stateStr(state));\n }\n };\n /**\n * @private\n * Check that all the require failure recognizers has failed,\n * if true, it emits a gesture event,\n * otherwise, setup the state to FAILED.\n * @param {Object} input\n */\n\n\n _proto.tryEmit = function tryEmit(input) {\n if (this.canEmit()) {\n return this.emit(input);\n } // it's failing anyway\n\n\n this.state = STATE_FAILED;\n };\n /**\n * @private\n * can we emit?\n * @returns {boolean}\n */\n\n\n _proto.canEmit = function canEmit() {\n var i = 0;\n\n while (i < this.requireFail.length) {\n if (!(this.requireFail[i].state & (STATE_FAILED | STATE_POSSIBLE))) {\n return false;\n }\n\n i++;\n }\n\n return true;\n };\n /**\n * @private\n * update the recognizer\n * @param {Object} inputData\n */\n\n\n _proto.recognize = function recognize(inputData) {\n // make a new copy of the inputData\n // so we can change the inputData without messing up the other recognizers\n var inputDataClone = assign$1({}, inputData); // is is enabled and allow recognizing?\n\n if (!boolOrFn(this.options.enable, [this, inputDataClone])) {\n this.reset();\n this.state = STATE_FAILED;\n return;\n } // reset when we've reached the end\n\n\n if (this.state & (STATE_RECOGNIZED | STATE_CANCELLED | STATE_FAILED)) {\n this.state = STATE_POSSIBLE;\n }\n\n this.state = this.process(inputDataClone); // the recognizer has recognized a gesture\n // so trigger an event\n\n if (this.state & (STATE_BEGAN | STATE_CHANGED | STATE_ENDED | STATE_CANCELLED)) {\n this.tryEmit(inputDataClone);\n }\n };\n /**\n * @private\n * return the state of the recognizer\n * the actual recognizing happens in this method\n * @virtual\n * @param {Object} inputData\n * @returns {constant} STATE\n */\n\n /* jshint ignore:start */\n\n\n _proto.process = function process(inputData) {};\n /* jshint ignore:end */\n\n /**\n * @private\n * return the preferred touch-action\n * @virtual\n * @returns {Array}\n */\n\n\n _proto.getTouchAction = function getTouchAction() {};\n /**\n * @private\n * called when the gesture isn't allowed to recognize\n * like when another is being recognized or it is disabled\n * @virtual\n */\n\n\n _proto.reset = function reset() {};\n\n return Recognizer;\n}();\n\n/**\n * @private\n * A tap is recognized when the pointer is doing a small tap/click. Multiple taps are recognized if they occur\n * between the given interval and position. The delay option can be used to recognize multi-taps without firing\n * a single tap.\n *\n * The eventData from the emitted event contains the property `tapCount`, which contains the amount of\n * multi-taps being recognized.\n * @constructor\n * @extends Recognizer\n */\n\nvar TapRecognizer =\n/*#__PURE__*/\nfunction (_Recognizer) {\n _inheritsLoose(TapRecognizer, _Recognizer);\n\n function TapRecognizer(options) {\n var _this;\n\n if (options === void 0) {\n options = {};\n }\n\n _this = _Recognizer.call(this, _extends({\n event: 'tap',\n pointers: 1,\n taps: 1,\n interval: 300,\n // max time between the multi-tap taps\n time: 250,\n // max time of the pointer to be down (like finger on the screen)\n threshold: 9,\n // a minimal movement is ok, but keep it low\n posThreshold: 10\n }, options)) || this; // previous time and center,\n // used for tap counting\n\n _this.pTime = false;\n _this.pCenter = false;\n _this._timer = null;\n _this._input = null;\n _this.count = 0;\n return _this;\n }\n\n var _proto = TapRecognizer.prototype;\n\n _proto.getTouchAction = function getTouchAction() {\n return [TOUCH_ACTION_MANIPULATION];\n };\n\n _proto.process = function process(input) {\n var _this2 = this;\n\n var options = this.options;\n var validPointers = input.pointers.length === options.pointers;\n var validMovement = input.distance < options.threshold;\n var validTouchTime = input.deltaTime < options.time;\n this.reset();\n\n if (input.eventType & INPUT_START && this.count === 0) {\n return this.failTimeout();\n } // we only allow little movement\n // and we've reached an end event, so a tap is possible\n\n\n if (validMovement && validTouchTime && validPointers) {\n if (input.eventType !== INPUT_END) {\n return this.failTimeout();\n }\n\n var validInterval = this.pTime ? input.timeStamp - this.pTime < options.interval : true;\n var validMultiTap = !this.pCenter || getDistance(this.pCenter, input.center) < options.posThreshold;\n this.pTime = input.timeStamp;\n this.pCenter = input.center;\n\n if (!validMultiTap || !validInterval) {\n this.count = 1;\n } else {\n this.count += 1;\n }\n\n this._input = input; // if tap count matches we have recognized it,\n // else it has began recognizing...\n\n var tapCount = this.count % options.taps;\n\n if (tapCount === 0) {\n // no failing requirements, immediately trigger the tap event\n // or wait as long as the multitap interval to trigger\n if (!this.hasRequireFailures()) {\n return STATE_RECOGNIZED;\n } else {\n this._timer = setTimeout(function () {\n _this2.state = STATE_RECOGNIZED;\n\n _this2.tryEmit();\n }, options.interval);\n return STATE_BEGAN;\n }\n }\n }\n\n return STATE_FAILED;\n };\n\n _proto.failTimeout = function failTimeout() {\n var _this3 = this;\n\n this._timer = setTimeout(function () {\n _this3.state = STATE_FAILED;\n }, this.options.interval);\n return STATE_FAILED;\n };\n\n _proto.reset = function reset() {\n clearTimeout(this._timer);\n };\n\n _proto.emit = function emit() {\n if (this.state === STATE_RECOGNIZED) {\n this._input.tapCount = this.count;\n this.manager.emit(this.options.event, this._input);\n }\n };\n\n return TapRecognizer;\n}(Recognizer);\n\n/**\n * @private\n * This recognizer is just used as a base for the simple attribute recognizers.\n * @constructor\n * @extends Recognizer\n */\n\nvar AttrRecognizer =\n/*#__PURE__*/\nfunction (_Recognizer) {\n _inheritsLoose(AttrRecognizer, _Recognizer);\n\n function AttrRecognizer(options) {\n if (options === void 0) {\n options = {};\n }\n\n return _Recognizer.call(this, _extends({\n pointers: 1\n }, options)) || this;\n }\n /**\n * @private\n * Used to check if it the recognizer receives valid input, like input.distance > 10.\n * @memberof AttrRecognizer\n * @param {Object} input\n * @returns {Boolean} recognized\n */\n\n\n var _proto = AttrRecognizer.prototype;\n\n _proto.attrTest = function attrTest(input) {\n var optionPointers = this.options.pointers;\n return optionPointers === 0 || input.pointers.length === optionPointers;\n };\n /**\n * @private\n * Process the input and return the state for the recognizer\n * @memberof AttrRecognizer\n * @param {Object} input\n * @returns {*} State\n */\n\n\n _proto.process = function process(input) {\n var state = this.state;\n var eventType = input.eventType;\n var isRecognized = state & (STATE_BEGAN | STATE_CHANGED);\n var isValid = this.attrTest(input); // on cancel input and we've recognized before, return STATE_CANCELLED\n\n if (isRecognized && (eventType & INPUT_CANCEL || !isValid)) {\n return state | STATE_CANCELLED;\n } else if (isRecognized || isValid) {\n if (eventType & INPUT_END) {\n return state | STATE_ENDED;\n } else if (!(state & STATE_BEGAN)) {\n return STATE_BEGAN;\n }\n\n return state | STATE_CHANGED;\n }\n\n return STATE_FAILED;\n };\n\n return AttrRecognizer;\n}(Recognizer);\n\n/**\n * @private\n * direction cons to string\n * @param {constant} direction\n * @returns {String}\n */\n\nfunction directionStr(direction) {\n if (direction === DIRECTION_DOWN) {\n return 'down';\n } else if (direction === DIRECTION_UP) {\n return 'up';\n } else if (direction === DIRECTION_LEFT) {\n return 'left';\n } else if (direction === DIRECTION_RIGHT) {\n return 'right';\n }\n\n return '';\n}\n\n/**\n * @private\n * Pan\n * Recognized when the pointer is down and moved in the allowed direction.\n * @constructor\n * @extends AttrRecognizer\n */\n\nvar PanRecognizer =\n/*#__PURE__*/\nfunction (_AttrRecognizer) {\n _inheritsLoose(PanRecognizer, _AttrRecognizer);\n\n function PanRecognizer(options) {\n var _this;\n\n if (options === void 0) {\n options = {};\n }\n\n _this = _AttrRecognizer.call(this, _extends({\n event: 'pan',\n threshold: 10,\n pointers: 1,\n direction: DIRECTION_ALL\n }, options)) || this;\n _this.pX = null;\n _this.pY = null;\n return _this;\n }\n\n var _proto = PanRecognizer.prototype;\n\n _proto.getTouchAction = function getTouchAction() {\n var direction = this.options.direction;\n var actions = [];\n\n if (direction & DIRECTION_HORIZONTAL) {\n actions.push(TOUCH_ACTION_PAN_Y);\n }\n\n if (direction & DIRECTION_VERTICAL) {\n actions.push(TOUCH_ACTION_PAN_X);\n }\n\n return actions;\n };\n\n _proto.directionTest = function directionTest(input) {\n var options = this.options;\n var hasMoved = true;\n var distance = input.distance;\n var direction = input.direction;\n var x = input.deltaX;\n var y = input.deltaY; // lock to axis?\n\n if (!(direction & options.direction)) {\n if (options.direction & DIRECTION_HORIZONTAL) {\n direction = x === 0 ? DIRECTION_NONE : x < 0 ? DIRECTION_LEFT : DIRECTION_RIGHT;\n hasMoved = x !== this.pX;\n distance = Math.abs(input.deltaX);\n } else {\n direction = y === 0 ? DIRECTION_NONE : y < 0 ? DIRECTION_UP : DIRECTION_DOWN;\n hasMoved = y !== this.pY;\n distance = Math.abs(input.deltaY);\n }\n }\n\n input.direction = direction;\n return hasMoved && distance > options.threshold && direction & options.direction;\n };\n\n _proto.attrTest = function attrTest(input) {\n return AttrRecognizer.prototype.attrTest.call(this, input) && ( // replace with a super call\n this.state & STATE_BEGAN || !(this.state & STATE_BEGAN) && this.directionTest(input));\n };\n\n _proto.emit = function emit(input) {\n this.pX = input.deltaX;\n this.pY = input.deltaY;\n var direction = directionStr(input.direction);\n\n if (direction) {\n input.additionalEvent = this.options.event + direction;\n }\n\n _AttrRecognizer.prototype.emit.call(this, input);\n };\n\n return PanRecognizer;\n}(AttrRecognizer);\n\n/**\n * @private\n * Swipe\n * Recognized when the pointer is moving fast (velocity), with enough distance in the allowed direction.\n * @constructor\n * @extends AttrRecognizer\n */\n\nvar SwipeRecognizer =\n/*#__PURE__*/\nfunction (_AttrRecognizer) {\n _inheritsLoose(SwipeRecognizer, _AttrRecognizer);\n\n function SwipeRecognizer(options) {\n if (options === void 0) {\n options = {};\n }\n\n return _AttrRecognizer.call(this, _extends({\n event: 'swipe',\n threshold: 10,\n velocity: 0.3,\n direction: DIRECTION_HORIZONTAL | DIRECTION_VERTICAL,\n pointers: 1\n }, options)) || this;\n }\n\n var _proto = SwipeRecognizer.prototype;\n\n _proto.getTouchAction = function getTouchAction() {\n return PanRecognizer.prototype.getTouchAction.call(this);\n };\n\n _proto.attrTest = function attrTest(input) {\n var direction = this.options.direction;\n var velocity;\n\n if (direction & (DIRECTION_HORIZONTAL | DIRECTION_VERTICAL)) {\n velocity = input.overallVelocity;\n } else if (direction & DIRECTION_HORIZONTAL) {\n velocity = input.overallVelocityX;\n } else if (direction & DIRECTION_VERTICAL) {\n velocity = input.overallVelocityY;\n }\n\n return _AttrRecognizer.prototype.attrTest.call(this, input) && direction & input.offsetDirection && input.distance > this.options.threshold && input.maxPointers === this.options.pointers && abs$1(velocity) > this.options.velocity && input.eventType & INPUT_END;\n };\n\n _proto.emit = function emit(input) {\n var direction = directionStr(input.offsetDirection);\n\n if (direction) {\n this.manager.emit(this.options.event + direction, input);\n }\n\n this.manager.emit(this.options.event, input);\n };\n\n return SwipeRecognizer;\n}(AttrRecognizer);\n\n/**\n * @private\n * Pinch\n * Recognized when two or more pointers are moving toward (zoom-in) or away from each other (zoom-out).\n * @constructor\n * @extends AttrRecognizer\n */\n\nvar PinchRecognizer =\n/*#__PURE__*/\nfunction (_AttrRecognizer) {\n _inheritsLoose(PinchRecognizer, _AttrRecognizer);\n\n function PinchRecognizer(options) {\n if (options === void 0) {\n options = {};\n }\n\n return _AttrRecognizer.call(this, _extends({\n event: 'pinch',\n threshold: 0,\n pointers: 2\n }, options)) || this;\n }\n\n var _proto = PinchRecognizer.prototype;\n\n _proto.getTouchAction = function getTouchAction() {\n return [TOUCH_ACTION_NONE];\n };\n\n _proto.attrTest = function attrTest(input) {\n return _AttrRecognizer.prototype.attrTest.call(this, input) && (Math.abs(input.scale - 1) > this.options.threshold || this.state & STATE_BEGAN);\n };\n\n _proto.emit = function emit(input) {\n if (input.scale !== 1) {\n var inOut = input.scale < 1 ? 'in' : 'out';\n input.additionalEvent = this.options.event + inOut;\n }\n\n _AttrRecognizer.prototype.emit.call(this, input);\n };\n\n return PinchRecognizer;\n}(AttrRecognizer);\n\n/**\n * @private\n * Rotate\n * Recognized when two or more pointer are moving in a circular motion.\n * @constructor\n * @extends AttrRecognizer\n */\n\nvar RotateRecognizer =\n/*#__PURE__*/\nfunction (_AttrRecognizer) {\n _inheritsLoose(RotateRecognizer, _AttrRecognizer);\n\n function RotateRecognizer(options) {\n if (options === void 0) {\n options = {};\n }\n\n return _AttrRecognizer.call(this, _extends({\n event: 'rotate',\n threshold: 0,\n pointers: 2\n }, options)) || this;\n }\n\n var _proto = RotateRecognizer.prototype;\n\n _proto.getTouchAction = function getTouchAction() {\n return [TOUCH_ACTION_NONE];\n };\n\n _proto.attrTest = function attrTest(input) {\n return _AttrRecognizer.prototype.attrTest.call(this, input) && (Math.abs(input.rotation) > this.options.threshold || this.state & STATE_BEGAN);\n };\n\n return RotateRecognizer;\n}(AttrRecognizer);\n\n/**\n * @private\n * Press\n * Recognized when the pointer is down for x ms without any movement.\n * @constructor\n * @extends Recognizer\n */\n\nvar PressRecognizer =\n/*#__PURE__*/\nfunction (_Recognizer) {\n _inheritsLoose(PressRecognizer, _Recognizer);\n\n function PressRecognizer(options) {\n var _this;\n\n if (options === void 0) {\n options = {};\n }\n\n _this = _Recognizer.call(this, _extends({\n event: 'press',\n pointers: 1,\n time: 251,\n // minimal time of the pointer to be pressed\n threshold: 9\n }, options)) || this;\n _this._timer = null;\n _this._input = null;\n return _this;\n }\n\n var _proto = PressRecognizer.prototype;\n\n _proto.getTouchAction = function getTouchAction() {\n return [TOUCH_ACTION_AUTO];\n };\n\n _proto.process = function process(input) {\n var _this2 = this;\n\n var options = this.options;\n var validPointers = input.pointers.length === options.pointers;\n var validMovement = input.distance < options.threshold;\n var validTime = input.deltaTime > options.time;\n this._input = input; // we only allow little movement\n // and we've reached an end event, so a tap is possible\n\n if (!validMovement || !validPointers || input.eventType & (INPUT_END | INPUT_CANCEL) && !validTime) {\n this.reset();\n } else if (input.eventType & INPUT_START) {\n this.reset();\n this._timer = setTimeout(function () {\n _this2.state = STATE_RECOGNIZED;\n\n _this2.tryEmit();\n }, options.time);\n } else if (input.eventType & INPUT_END) {\n return STATE_RECOGNIZED;\n }\n\n return STATE_FAILED;\n };\n\n _proto.reset = function reset() {\n clearTimeout(this._timer);\n };\n\n _proto.emit = function emit(input) {\n if (this.state !== STATE_RECOGNIZED) {\n return;\n }\n\n if (input && input.eventType & INPUT_END) {\n this.manager.emit(this.options.event + \"up\", input);\n } else {\n this._input.timeStamp = now();\n this.manager.emit(this.options.event, this._input);\n }\n };\n\n return PressRecognizer;\n}(Recognizer);\n\nvar defaults = {\n /**\n * @private\n * set if DOM events are being triggered.\n * But this is slower and unused by simple implementations, so disabled by default.\n * @type {Boolean}\n * @default false\n */\n domEvents: false,\n\n /**\n * @private\n * The value for the touchAction property/fallback.\n * When set to `compute` it will magically set the correct value based on the added recognizers.\n * @type {String}\n * @default compute\n */\n touchAction: TOUCH_ACTION_COMPUTE,\n\n /**\n * @private\n * @type {Boolean}\n * @default true\n */\n enable: true,\n\n /**\n * @private\n * EXPERIMENTAL FEATURE -- can be removed/changed\n * Change the parent input target element.\n * If Null, then it is being set the to main element.\n * @type {Null|EventTarget}\n * @default null\n */\n inputTarget: null,\n\n /**\n * @private\n * force an input class\n * @type {Null|Function}\n * @default null\n */\n inputClass: null,\n\n /**\n * @private\n * Some CSS properties can be used to improve the working of Hammer.\n * Add them to this method and they will be set when creating a new Manager.\n * @namespace\n */\n cssProps: {\n /**\n * @private\n * Disables text selection to improve the dragging gesture. Mainly for desktop browsers.\n * @type {String}\n * @default 'none'\n */\n userSelect: \"none\",\n\n /**\n * @private\n * Disable the Windows Phone grippers when pressing an element.\n * @type {String}\n * @default 'none'\n */\n touchSelect: \"none\",\n\n /**\n * @private\n * Disables the default callout shown when you touch and hold a touch target.\n * On iOS, when you touch and hold a touch target such as a link, Safari displays\n * a callout containing information about the link. This property allows you to disable that callout.\n * @type {String}\n * @default 'none'\n */\n touchCallout: \"none\",\n\n /**\n * @private\n * Specifies whether zooming is enabled. Used by IE10>\n * @type {String}\n * @default 'none'\n */\n contentZooming: \"none\",\n\n /**\n * @private\n * Specifies that an entire element should be draggable instead of its contents. Mainly for desktop browsers.\n * @type {String}\n * @default 'none'\n */\n userDrag: \"none\",\n\n /**\n * @private\n * Overrides the highlight color shown when the user taps a link or a JavaScript\n * clickable element in iOS. This property obeys the alpha value, if specified.\n * @type {String}\n * @default 'rgba(0,0,0,0)'\n */\n tapHighlightColor: \"rgba(0,0,0,0)\"\n }\n};\n/**\n * @private\n * Default recognizer setup when calling `Hammer()`\n * When creating a new Manager these will be skipped.\n * This is separated with other defaults because of tree-shaking.\n * @type {Array}\n */\n\nvar preset = [[RotateRecognizer, {\n enable: false\n}], [PinchRecognizer, {\n enable: false\n}, ['rotate']], [SwipeRecognizer, {\n direction: DIRECTION_HORIZONTAL\n}], [PanRecognizer, {\n direction: DIRECTION_HORIZONTAL\n}, ['swipe']], [TapRecognizer], [TapRecognizer, {\n event: 'doubletap',\n taps: 2\n}, ['tap']], [PressRecognizer]];\n\nvar STOP = 1;\nvar FORCED_STOP = 2;\n/**\n * @private\n * add/remove the css properties as defined in manager.options.cssProps\n * @param {Manager} manager\n * @param {Boolean} add\n */\n\nfunction toggleCssProps(manager, add) {\n var element = manager.element;\n\n if (!element.style) {\n return;\n }\n\n var prop;\n each(manager.options.cssProps, function (value, name) {\n prop = prefixed(element.style, name);\n\n if (add) {\n manager.oldCssProps[prop] = element.style[prop];\n element.style[prop] = value;\n } else {\n element.style[prop] = manager.oldCssProps[prop] || \"\";\n }\n });\n\n if (!add) {\n manager.oldCssProps = {};\n }\n}\n/**\n * @private\n * trigger dom event\n * @param {String} event\n * @param {Object} data\n */\n\n\nfunction triggerDomEvent(event, data) {\n var gestureEvent = document.createEvent(\"Event\");\n gestureEvent.initEvent(event, true, true);\n gestureEvent.gesture = data;\n data.target.dispatchEvent(gestureEvent);\n}\n/**\n* @private\n * Manager\n * @param {HTMLElement} element\n * @param {Object} [options]\n * @constructor\n */\n\n\nvar Manager =\n/*#__PURE__*/\nfunction () {\n function Manager(element, options) {\n var _this = this;\n\n this.options = assign$1({}, defaults, options || {});\n this.options.inputTarget = this.options.inputTarget || element;\n this.handlers = {};\n this.session = {};\n this.recognizers = [];\n this.oldCssProps = {};\n this.element = element;\n this.input = createInputInstance(this);\n this.touchAction = new TouchAction(this, this.options.touchAction);\n toggleCssProps(this, true);\n each(this.options.recognizers, function (item) {\n var recognizer = _this.add(new item[0](item[1]));\n\n item[2] && recognizer.recognizeWith(item[2]);\n item[3] && recognizer.requireFailure(item[3]);\n }, this);\n }\n /**\n * @private\n * set options\n * @param {Object} options\n * @returns {Manager}\n */\n\n\n var _proto = Manager.prototype;\n\n _proto.set = function set(options) {\n assign$1(this.options, options); // Options that need a little more setup\n\n if (options.touchAction) {\n this.touchAction.update();\n }\n\n if (options.inputTarget) {\n // Clean up existing event listeners and reinitialize\n this.input.destroy();\n this.input.target = options.inputTarget;\n this.input.init();\n }\n\n return this;\n };\n /**\n * @private\n * stop recognizing for this session.\n * This session will be discarded, when a new [input]start event is fired.\n * When forced, the recognizer cycle is stopped immediately.\n * @param {Boolean} [force]\n */\n\n\n _proto.stop = function stop(force) {\n this.session.stopped = force ? FORCED_STOP : STOP;\n };\n /**\n * @private\n * run the recognizers!\n * called by the inputHandler function on every movement of the pointers (touches)\n * it walks through all the recognizers and tries to detect the gesture that is being made\n * @param {Object} inputData\n */\n\n\n _proto.recognize = function recognize(inputData) {\n var session = this.session;\n\n if (session.stopped) {\n return;\n } // run the touch-action polyfill\n\n\n this.touchAction.preventDefaults(inputData);\n var recognizer;\n var recognizers = this.recognizers; // this holds the recognizer that is being recognized.\n // so the recognizer's state needs to be BEGAN, CHANGED, ENDED or RECOGNIZED\n // if no recognizer is detecting a thing, it is set to `null`\n\n var curRecognizer = session.curRecognizer; // reset when the last recognizer is recognized\n // or when we're in a new session\n\n if (!curRecognizer || curRecognizer && curRecognizer.state & STATE_RECOGNIZED) {\n session.curRecognizer = null;\n curRecognizer = null;\n }\n\n var i = 0;\n\n while (i < recognizers.length) {\n recognizer = recognizers[i]; // find out if we are allowed try to recognize the input for this one.\n // 1. allow if the session is NOT forced stopped (see the .stop() method)\n // 2. allow if we still haven't recognized a gesture in this session, or the this recognizer is the one\n // that is being recognized.\n // 3. allow if the recognizer is allowed to run simultaneous with the current recognized recognizer.\n // this can be setup with the `recognizeWith()` method on the recognizer.\n\n if (session.stopped !== FORCED_STOP && ( // 1\n !curRecognizer || recognizer === curRecognizer || // 2\n recognizer.canRecognizeWith(curRecognizer))) {\n // 3\n recognizer.recognize(inputData);\n } else {\n recognizer.reset();\n } // if the recognizer has been recognizing the input as a valid gesture, we want to store this one as the\n // current active recognizer. but only if we don't already have an active recognizer\n\n\n if (!curRecognizer && recognizer.state & (STATE_BEGAN | STATE_CHANGED | STATE_ENDED)) {\n session.curRecognizer = recognizer;\n curRecognizer = recognizer;\n }\n\n i++;\n }\n };\n /**\n * @private\n * get a recognizer by its event name.\n * @param {Recognizer|String} recognizer\n * @returns {Recognizer|Null}\n */\n\n\n _proto.get = function get(recognizer) {\n if (recognizer instanceof Recognizer) {\n return recognizer;\n }\n\n var recognizers = this.recognizers;\n\n for (var i = 0; i < recognizers.length; i++) {\n if (recognizers[i].options.event === recognizer) {\n return recognizers[i];\n }\n }\n\n return null;\n };\n /**\n * @private add a recognizer to the manager\n * existing recognizers with the same event name will be removed\n * @param {Recognizer} recognizer\n * @returns {Recognizer|Manager}\n */\n\n\n _proto.add = function add(recognizer) {\n if (invokeArrayArg(recognizer, \"add\", this)) {\n return this;\n } // remove existing\n\n\n var existing = this.get(recognizer.options.event);\n\n if (existing) {\n this.remove(existing);\n }\n\n this.recognizers.push(recognizer);\n recognizer.manager = this;\n this.touchAction.update();\n return recognizer;\n };\n /**\n * @private\n * remove a recognizer by name or instance\n * @param {Recognizer|String} recognizer\n * @returns {Manager}\n */\n\n\n _proto.remove = function remove(recognizer) {\n if (invokeArrayArg(recognizer, \"remove\", this)) {\n return this;\n }\n\n var targetRecognizer = this.get(recognizer); // let's make sure this recognizer exists\n\n if (recognizer) {\n var recognizers = this.recognizers;\n var index = inArray(recognizers, targetRecognizer);\n\n if (index !== -1) {\n recognizers.splice(index, 1);\n this.touchAction.update();\n }\n }\n\n return this;\n };\n /**\n * @private\n * bind event\n * @param {String} events\n * @param {Function} handler\n * @returns {EventEmitter} this\n */\n\n\n _proto.on = function on(events, handler) {\n if (events === undefined || handler === undefined) {\n return this;\n }\n\n var handlers = this.handlers;\n each(splitStr(events), function (event) {\n handlers[event] = handlers[event] || [];\n handlers[event].push(handler);\n });\n return this;\n };\n /**\n * @private unbind event, leave emit blank to remove all handlers\n * @param {String} events\n * @param {Function} [handler]\n * @returns {EventEmitter} this\n */\n\n\n _proto.off = function off(events, handler) {\n if (events === undefined) {\n return this;\n }\n\n var handlers = this.handlers;\n each(splitStr(events), function (event) {\n if (!handler) {\n delete handlers[event];\n } else {\n handlers[event] && handlers[event].splice(inArray(handlers[event], handler), 1);\n }\n });\n return this;\n };\n /**\n * @private emit event to the listeners\n * @param {String} event\n * @param {Object} data\n */\n\n\n _proto.emit = function emit(event, data) {\n // we also want to trigger dom events\n if (this.options.domEvents) {\n triggerDomEvent(event, data);\n } // no handlers, so skip it all\n\n\n var handlers = this.handlers[event] && this.handlers[event].slice();\n\n if (!handlers || !handlers.length) {\n return;\n }\n\n data.type = event;\n\n data.preventDefault = function () {\n data.srcEvent.preventDefault();\n };\n\n var i = 0;\n\n while (i < handlers.length) {\n handlers[i](data);\n i++;\n }\n };\n /**\n * @private\n * destroy the manager and unbinds all events\n * it doesn't unbind dom events, that is the user own responsibility\n */\n\n\n _proto.destroy = function destroy() {\n this.element && toggleCssProps(this, false);\n this.handlers = {};\n this.session = {};\n this.input.destroy();\n this.element = null;\n };\n\n return Manager;\n}();\n\nvar SINGLE_TOUCH_INPUT_MAP = {\n touchstart: INPUT_START,\n touchmove: INPUT_MOVE,\n touchend: INPUT_END,\n touchcancel: INPUT_CANCEL\n};\nvar SINGLE_TOUCH_TARGET_EVENTS = 'touchstart';\nvar SINGLE_TOUCH_WINDOW_EVENTS = 'touchstart touchmove touchend touchcancel';\n/**\n * @private\n * Touch events input\n * @constructor\n * @extends Input\n */\n\nvar SingleTouchInput =\n/*#__PURE__*/\nfunction (_Input) {\n _inheritsLoose(SingleTouchInput, _Input);\n\n function SingleTouchInput() {\n var _this;\n\n var proto = SingleTouchInput.prototype;\n proto.evTarget = SINGLE_TOUCH_TARGET_EVENTS;\n proto.evWin = SINGLE_TOUCH_WINDOW_EVENTS;\n _this = _Input.apply(this, arguments) || this;\n _this.started = false;\n return _this;\n }\n\n var _proto = SingleTouchInput.prototype;\n\n _proto.handler = function handler(ev) {\n var type = SINGLE_TOUCH_INPUT_MAP[ev.type]; // should we handle the touch events?\n\n if (type === INPUT_START) {\n this.started = true;\n }\n\n if (!this.started) {\n return;\n }\n\n var touches = normalizeSingleTouches.call(this, ev, type); // when done, reset the started state\n\n if (type & (INPUT_END | INPUT_CANCEL) && touches[0].length - touches[1].length === 0) {\n this.started = false;\n }\n\n this.callback(this.manager, type, {\n pointers: touches[0],\n changedPointers: touches[1],\n pointerType: INPUT_TYPE_TOUCH,\n srcEvent: ev\n });\n };\n\n return SingleTouchInput;\n}(Input);\n\nfunction normalizeSingleTouches(ev, type) {\n var all = toArray(ev.touches);\n var changed = toArray(ev.changedTouches);\n\n if (type & (INPUT_END | INPUT_CANCEL)) {\n all = uniqueArray(all.concat(changed), 'identifier', true);\n }\n\n return [all, changed];\n}\n\n/**\n * @private\n * wrap a method with a deprecation warning and stack trace\n * @param {Function} method\n * @param {String} name\n * @param {String} message\n * @returns {Function} A new function wrapping the supplied method.\n */\nfunction deprecate(method, name, message) {\n var deprecationMessage = \"DEPRECATED METHOD: \" + name + \"\\n\" + message + \" AT \\n\";\n return function () {\n var e = new Error('get-stack-trace');\n var stack = e && e.stack ? e.stack.replace(/^[^\\(]+?[\\n$]/gm, '').replace(/^\\s+at\\s+/gm, '').replace(/^Object.\\s*\\(/gm, '{anonymous}()@') : 'Unknown Stack Trace';\n var log = window.console && (window.console.warn || window.console.log);\n\n if (log) {\n log.call(window.console, deprecationMessage, stack);\n }\n\n return method.apply(this, arguments);\n };\n}\n\n/**\n * @private\n * extend object.\n * means that properties in dest will be overwritten by the ones in src.\n * @param {Object} dest\n * @param {Object} src\n * @param {Boolean} [merge=false]\n * @returns {Object} dest\n */\n\nvar extend = deprecate(function (dest, src, merge) {\n var keys = Object.keys(src);\n var i = 0;\n\n while (i < keys.length) {\n if (!merge || merge && dest[keys[i]] === undefined) {\n dest[keys[i]] = src[keys[i]];\n }\n\n i++;\n }\n\n return dest;\n}, 'extend', 'Use `assign`.');\n\n/**\n * @private\n * merge the values from src in the dest.\n * means that properties that exist in dest will not be overwritten by src\n * @param {Object} dest\n * @param {Object} src\n * @returns {Object} dest\n */\n\nvar merge$2 = deprecate(function (dest, src) {\n return extend(dest, src, true);\n}, 'merge', 'Use `assign`.');\n\n/**\n * @private\n * simple class inheritance\n * @param {Function} child\n * @param {Function} base\n * @param {Object} [properties]\n */\n\nfunction inherit(child, base, properties) {\n var baseP = base.prototype;\n var childP;\n childP = child.prototype = Object.create(baseP);\n childP.constructor = child;\n childP._super = baseP;\n\n if (properties) {\n assign$1(childP, properties);\n }\n}\n\n/**\n * @private\n * simple function bind\n * @param {Function} fn\n * @param {Object} context\n * @returns {Function}\n */\nfunction bindFn(fn, context) {\n return function boundFn() {\n return fn.apply(context, arguments);\n };\n}\n\n/**\n * @private\n * Simple way to create a manager with a default set of recognizers.\n * @param {HTMLElement} element\n * @param {Object} [options]\n * @constructor\n */\n\nvar Hammer$2 =\n/*#__PURE__*/\nfunction () {\n var Hammer =\n /**\n * @private\n * @const {string}\n */\n function Hammer(element, options) {\n if (options === void 0) {\n options = {};\n }\n\n return new Manager(element, _extends({\n recognizers: preset.concat()\n }, options));\n };\n\n Hammer.VERSION = \"2.0.17-rc\";\n Hammer.DIRECTION_ALL = DIRECTION_ALL;\n Hammer.DIRECTION_DOWN = DIRECTION_DOWN;\n Hammer.DIRECTION_LEFT = DIRECTION_LEFT;\n Hammer.DIRECTION_RIGHT = DIRECTION_RIGHT;\n Hammer.DIRECTION_UP = DIRECTION_UP;\n Hammer.DIRECTION_HORIZONTAL = DIRECTION_HORIZONTAL;\n Hammer.DIRECTION_VERTICAL = DIRECTION_VERTICAL;\n Hammer.DIRECTION_NONE = DIRECTION_NONE;\n Hammer.DIRECTION_DOWN = DIRECTION_DOWN;\n Hammer.INPUT_START = INPUT_START;\n Hammer.INPUT_MOVE = INPUT_MOVE;\n Hammer.INPUT_END = INPUT_END;\n Hammer.INPUT_CANCEL = INPUT_CANCEL;\n Hammer.STATE_POSSIBLE = STATE_POSSIBLE;\n Hammer.STATE_BEGAN = STATE_BEGAN;\n Hammer.STATE_CHANGED = STATE_CHANGED;\n Hammer.STATE_ENDED = STATE_ENDED;\n Hammer.STATE_RECOGNIZED = STATE_RECOGNIZED;\n Hammer.STATE_CANCELLED = STATE_CANCELLED;\n Hammer.STATE_FAILED = STATE_FAILED;\n Hammer.Manager = Manager;\n Hammer.Input = Input;\n Hammer.TouchAction = TouchAction;\n Hammer.TouchInput = TouchInput;\n Hammer.MouseInput = MouseInput;\n Hammer.PointerEventInput = PointerEventInput;\n Hammer.TouchMouseInput = TouchMouseInput;\n Hammer.SingleTouchInput = SingleTouchInput;\n Hammer.Recognizer = Recognizer;\n Hammer.AttrRecognizer = AttrRecognizer;\n Hammer.Tap = TapRecognizer;\n Hammer.Pan = PanRecognizer;\n Hammer.Swipe = SwipeRecognizer;\n Hammer.Pinch = PinchRecognizer;\n Hammer.Rotate = RotateRecognizer;\n Hammer.Press = PressRecognizer;\n Hammer.on = addEventListeners;\n Hammer.off = removeEventListeners;\n Hammer.each = each;\n Hammer.merge = merge$2;\n Hammer.extend = extend;\n Hammer.bindFn = bindFn;\n Hammer.assign = assign$1;\n Hammer.inherit = inherit;\n Hammer.bindFn = bindFn;\n Hammer.prefixed = prefixed;\n Hammer.toArray = toArray;\n Hammer.inArray = inArray;\n Hammer.uniqueArray = uniqueArray;\n Hammer.splitStr = splitStr;\n Hammer.boolOrFn = boolOrFn;\n Hammer.hasParent = hasParent;\n Hammer.addEventListeners = addEventListeners;\n Hammer.removeEventListeners = removeEventListeners;\n Hammer.defaults = assign$1({}, defaults, {\n preset: preset\n });\n return Hammer;\n}();\n\n// style loader but by script tag, not by the loader.\n\nHammer$2.defaults;\n\nvar RealHammer = Hammer$2;\n\nfunction _createForOfIteratorHelper$7(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray$7(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray$7(o, minLen) { var _context21; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray$7(o, minLen); var n = _sliceInstanceProperty(_context21 = Object.prototype.toString.call(o)).call(_context21, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$7(o, minLen); }\nfunction _arrayLikeToArray$7(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n/**\r\n * Use this symbol to delete properies in deepObjectAssign.\r\n */\nvar DELETE = _Symbol(\"DELETE\");\n/**\r\n * Pure version of deepObjectAssign, it doesn't modify any of it's arguments.\r\n *\r\n * @param base - The base object that fullfils the whole interface T.\r\n * @param updates - Updates that may change or delete props.\r\n * @returns A brand new instance with all the supplied objects deeply merged.\r\n */\nfunction pureDeepObjectAssign(base) {\n var _context;\n for (var _len = arguments.length, updates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n updates[_key - 1] = arguments[_key];\n }\n return deepObjectAssign.apply(void 0, _concatInstanceProperty(_context = [{}, base]).call(_context, updates));\n}\n/**\r\n * Deep version of object assign with additional deleting by the DELETE symbol.\r\n *\r\n * @param values - Objects to be deeply merged.\r\n * @returns The first object from values.\r\n */\nfunction deepObjectAssign() {\n var merged = deepObjectAssignNonentry.apply(void 0, arguments);\n stripDelete(merged);\n return merged;\n}\n/**\r\n * Deep version of object assign with additional deleting by the DELETE symbol.\r\n *\r\n * @remarks\r\n * This doesn't strip the DELETE symbols so they may end up in the final object.\r\n * @param values - Objects to be deeply merged.\r\n * @returns The first object from values.\r\n */\nfunction deepObjectAssignNonentry() {\n for (var _len2 = arguments.length, values = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n values[_key2] = arguments[_key2];\n }\n if (values.length < 2) {\n return values[0];\n } else if (values.length > 2) {\n var _context2;\n return deepObjectAssignNonentry.apply(void 0, _concatInstanceProperty(_context2 = [deepObjectAssign(values[0], values[1])]).call(_context2, _toConsumableArray(_sliceInstanceProperty(values).call(values, 2))));\n }\n var a = values[0];\n var b = values[1];\n var _iterator = _createForOfIteratorHelper$7(_Reflect$ownKeys(b)),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var prop = _step.value;\n if (!Object.prototype.propertyIsEnumerable.call(b, prop)) ;else if (b[prop] === DELETE) {\n delete a[prop];\n } else if (a[prop] !== null && b[prop] !== null && _typeof$1(a[prop]) === \"object\" && _typeof$1(b[prop]) === \"object\" && !_Array$isArray(a[prop]) && !_Array$isArray(b[prop])) {\n a[prop] = deepObjectAssignNonentry(a[prop], b[prop]);\n } else {\n a[prop] = clone(b[prop]);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return a;\n}\n/**\r\n * Deep clone given object or array. In case of primitive simply return.\r\n *\r\n * @param a - Anything.\r\n * @returns Deep cloned object/array or unchanged a.\r\n */\nfunction clone(a) {\n if (_Array$isArray(a)) {\n return _mapInstanceProperty(a).call(a, function (value) {\n return clone(value);\n });\n } else if (_typeof$1(a) === \"object\" && a !== null) {\n return deepObjectAssignNonentry({}, a);\n } else {\n return a;\n }\n}\n/**\r\n * Strip DELETE from given object.\r\n *\r\n * @param a - Object which may contain DELETE but won't after this is executed.\r\n */\nfunction stripDelete(a) {\n for (var _i = 0, _Object$keys$1 = _Object$keys(a); _i < _Object$keys$1.length; _i++) {\n var prop = _Object$keys$1[_i];\n if (a[prop] === DELETE) {\n delete a[prop];\n } else if (_typeof$1(a[prop]) === \"object\" && a[prop] !== null) {\n stripDelete(a[prop]);\n }\n }\n}\n\n/**\r\n * Seedable, fast and reasonably good (not crypto but more than okay for our\r\n * needs) random number generator.\r\n *\r\n * @remarks\r\n * Adapted from {@link https://web.archive.org/web/20110429100736/http://baagoe.com:80/en/RandomMusings/javascript}.\r\n * Original algorithm created by Johannes Baagøe \\ in 2010.\r\n */\n/**\r\n * Create a seeded pseudo random generator based on Alea by Johannes Baagøe.\r\n *\r\n * @param seed - All supplied arguments will be used as a seed. In case nothing\r\n * is supplied the current time will be used to seed the generator.\r\n * @returns A ready to use seeded generator.\r\n */\nfunction Alea() {\n for (var _len3 = arguments.length, seed = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n seed[_key3] = arguments[_key3];\n }\n return AleaImplementation(seed.length ? seed : [_Date$now()]);\n}\n/**\r\n * An implementation of [[Alea]] without user input validation.\r\n *\r\n * @param seed - The data that will be used to seed the generator.\r\n * @returns A ready to use seeded generator.\r\n */\nfunction AleaImplementation(seed) {\n var _mashSeed = mashSeed(seed),\n _mashSeed2 = _slicedToArray(_mashSeed, 3),\n s0 = _mashSeed2[0],\n s1 = _mashSeed2[1],\n s2 = _mashSeed2[2];\n var c = 1;\n var random = function random() {\n var t = 2091639 * s0 + c * 2.3283064365386963e-10; // 2^-32\n s0 = s1;\n s1 = s2;\n return s2 = t - (c = t | 0);\n };\n random.uint32 = function () {\n return random() * 0x100000000;\n }; // 2^32\n random.fract53 = function () {\n return random() + (random() * 0x200000 | 0) * 1.1102230246251565e-16;\n }; // 2^-53\n random.algorithm = \"Alea\";\n random.seed = seed;\n random.version = \"0.9\";\n return random;\n}\n/**\r\n * Turn arbitrary data into values [[AleaImplementation]] can use to generate\r\n * random numbers.\r\n *\r\n * @param seed - Arbitrary data that will be used as the seed.\r\n * @returns Three numbers to use as initial values for [[AleaImplementation]].\r\n */\nfunction mashSeed() {\n var mash = Mash();\n var s0 = mash(\" \");\n var s1 = mash(\" \");\n var s2 = mash(\" \");\n for (var i = 0; i < arguments.length; i++) {\n s0 -= mash(i < 0 || arguments.length <= i ? undefined : arguments[i]);\n if (s0 < 0) {\n s0 += 1;\n }\n s1 -= mash(i < 0 || arguments.length <= i ? undefined : arguments[i]);\n if (s1 < 0) {\n s1 += 1;\n }\n s2 -= mash(i < 0 || arguments.length <= i ? undefined : arguments[i]);\n if (s2 < 0) {\n s2 += 1;\n }\n }\n return [s0, s1, s2];\n}\n/**\r\n * Create a new mash function.\r\n *\r\n * @returns A nonpure function that takes arbitrary [[Mashable]] data and turns\r\n * them into numbers.\r\n */\nfunction Mash() {\n var n = 0xefc8249d;\n return function (data) {\n var string = data.toString();\n for (var i = 0; i < string.length; i++) {\n n += string.charCodeAt(i);\n var h = 0.02519603282416938 * n;\n n = h >>> 0;\n h -= n;\n h *= n;\n n = h >>> 0;\n h -= n;\n n += h * 0x100000000; // 2^32\n }\n\n return (n >>> 0) * 2.3283064365386963e-10; // 2^-32\n };\n}\n\n/**\n * Setup a mock hammer.js object, for unit testing.\n *\n * Inspiration: https://github.com/uber/deck.gl/pull/658\n *\n * @returns {{on: noop, off: noop, destroy: noop, emit: noop, get: get}}\n */\nfunction hammerMock() {\n var noop = function noop() {};\n return {\n on: noop,\n off: noop,\n destroy: noop,\n emit: noop,\n get: function get() {\n return {\n set: noop\n };\n }\n };\n}\nvar Hammer$1 = typeof window !== \"undefined\" ? window.Hammer || RealHammer : function () {\n // hammer.js is only available in a browser, not in node.js. Replacing it with a mock object.\n return hammerMock();\n};\n\n/**\n * Turn an element into an clickToUse element.\n * When not active, the element has a transparent overlay. When the overlay is\n * clicked, the mode is changed to active.\n * When active, the element is displayed with a blue border around it, and\n * the interactive contents of the element can be used. When clicked outside\n * the element, the elements mode is changed to inactive.\n *\n * @param {Element} container\n * @class Activator\n */\nfunction Activator$1(container) {\n var _this = this,\n _context3;\n this._cleanupQueue = [];\n this.active = false;\n this._dom = {\n container: container,\n overlay: document.createElement(\"div\")\n };\n this._dom.overlay.classList.add(\"vis-overlay\");\n this._dom.container.appendChild(this._dom.overlay);\n this._cleanupQueue.push(function () {\n _this._dom.overlay.parentNode.removeChild(_this._dom.overlay);\n });\n var hammer = Hammer$1(this._dom.overlay);\n hammer.on(\"tap\", _bindInstanceProperty$1(_context3 = this._onTapOverlay).call(_context3, this));\n this._cleanupQueue.push(function () {\n hammer.destroy();\n // FIXME: cleaning up hammer instances doesn't work (Timeline not removed\n // from memory)\n });\n\n // block all touch events (except tap)\n var events = [\"tap\", \"doubletap\", \"press\", \"pinch\", \"pan\", \"panstart\", \"panmove\", \"panend\"];\n _forEachInstanceProperty(events).call(events, function (event) {\n hammer.on(event, function (event) {\n event.srcEvent.stopPropagation();\n });\n });\n\n // attach a click event to the window, in order to deactivate when clicking outside the timeline\n if (document && document.body) {\n this._onClick = function (event) {\n if (!_hasParent(event.target, container)) {\n _this.deactivate();\n }\n };\n document.body.addEventListener(\"click\", this._onClick);\n this._cleanupQueue.push(function () {\n document.body.removeEventListener(\"click\", _this._onClick);\n });\n }\n\n // prepare escape key listener for deactivating when active\n this._escListener = function (event) {\n if (\"key\" in event ? event.key === \"Escape\" : event.keyCode === 27 /* the keyCode is for IE11 */) {\n _this.deactivate();\n }\n };\n}\n\n// turn into an event emitter\nEmitter(Activator$1.prototype);\n\n// The currently active activator\nActivator$1.current = null;\n\n/**\n * Destroy the activator. Cleans up all created DOM and event listeners\n */\nActivator$1.prototype.destroy = function () {\n var _context4, _context5;\n this.deactivate();\n var _iterator2 = _createForOfIteratorHelper$7(_reverseInstanceProperty(_context4 = _spliceInstanceProperty(_context5 = this._cleanupQueue).call(_context5, 0)).call(_context4)),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var callback = _step2.value;\n callback();\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n};\n\n/**\n * Activate the element\n * Overlay is hidden, element is decorated with a blue shadow border\n */\nActivator$1.prototype.activate = function () {\n // we allow only one active activator at a time\n if (Activator$1.current) {\n Activator$1.current.deactivate();\n }\n Activator$1.current = this;\n this.active = true;\n this._dom.overlay.style.display = \"none\";\n this._dom.container.classList.add(\"vis-active\");\n this.emit(\"change\");\n this.emit(\"activate\");\n\n // ugly hack: bind ESC after emitting the events, as the Network rebinds all\n // keyboard events on a 'change' event\n document.body.addEventListener(\"keydown\", this._escListener);\n};\n\n/**\n * Deactivate the element\n * Overlay is displayed on top of the element\n */\nActivator$1.prototype.deactivate = function () {\n this.active = false;\n this._dom.overlay.style.display = \"block\";\n this._dom.container.classList.remove(\"vis-active\");\n document.body.removeEventListener(\"keydown\", this._escListener);\n this.emit(\"change\");\n this.emit(\"deactivate\");\n};\n\n/**\n * Handle a tap event: activate the container\n *\n * @param {Event} event The event\n * @private\n */\nActivator$1.prototype._onTapOverlay = function (event) {\n // activate the container\n this.activate();\n event.srcEvent.stopPropagation();\n};\n\n/**\n * Test whether the element has the requested parent element somewhere in\n * its chain of parent nodes.\n *\n * @param {HTMLElement} element\n * @param {HTMLElement} parent\n * @returns {boolean} Returns true when the parent is found somewhere in the\n * chain of parent nodes.\n * @private\n */\nfunction _hasParent(element, parent) {\n while (element) {\n if (element === parent) {\n return true;\n }\n element = element.parentNode;\n }\n return false;\n}\n// Color REs\nvar fullHexRE = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i;\nvar shortHexRE = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\nvar rgbRE = /^rgb\\( *(1?\\d{1,2}|2[0-4]\\d|25[0-5]) *, *(1?\\d{1,2}|2[0-4]\\d|25[0-5]) *, *(1?\\d{1,2}|2[0-4]\\d|25[0-5]) *\\)$/i;\nvar rgbaRE = /^rgba\\( *(1?\\d{1,2}|2[0-4]\\d|25[0-5]) *, *(1?\\d{1,2}|2[0-4]\\d|25[0-5]) *, *(1?\\d{1,2}|2[0-4]\\d|25[0-5]) *, *([01]|0?\\.\\d+) *\\)$/i;\n/**\r\n * Remove everything in the DOM object.\r\n *\r\n * @param DOMobject - Node whose child nodes will be recursively deleted.\r\n */\nfunction recursiveDOMDelete(DOMobject) {\n if (DOMobject) {\n while (DOMobject.hasChildNodes() === true) {\n var child = DOMobject.firstChild;\n if (child) {\n recursiveDOMDelete(child);\n DOMobject.removeChild(child);\n }\n }\n }\n}\n/**\r\n * Test whether given object is a string.\r\n *\r\n * @param value - Input value of unknown type.\r\n * @returns True if string, false otherwise.\r\n */\nfunction isString(value) {\n return value instanceof String || typeof value === \"string\";\n}\n/**\r\n * Test whether given object is a object (not primitive or null).\r\n *\r\n * @param value - Input value of unknown type.\r\n * @returns True if not null object, false otherwise.\r\n */\nfunction isObject$a(value) {\n return _typeof$1(value) === \"object\" && value !== null;\n}\n/**\r\n * Copy property from b to a if property present in a.\r\n * If property in b explicitly set to null, delete it if `allowDeletion` set.\r\n *\r\n * Internal helper routine, should not be exported. Not added to `exports` for that reason.\r\n *\r\n * @param a - Target object.\r\n * @param b - Source object.\r\n * @param prop - Name of property to copy from b to a.\r\n * @param allowDeletion - If true, delete property in a if explicitly set to null in b.\r\n */\nfunction copyOrDelete(a, b, prop, allowDeletion) {\n var doDeletion = false;\n if (allowDeletion === true) {\n doDeletion = b[prop] === null && a[prop] !== undefined;\n }\n if (doDeletion) {\n delete a[prop];\n } else {\n a[prop] = b[prop]; // Remember, this is a reference copy!\n }\n}\n/**\r\n * Fill an object with a possibly partially defined other object.\r\n *\r\n * Only copies values for the properties already present in a.\r\n * That means an object is not created on a property if only the b object has it.\r\n *\r\n * @param a - The object that will have it's properties updated.\r\n * @param b - The object with property updates.\r\n * @param allowDeletion - If true, delete properties in a that are explicitly set to null in b.\r\n */\nfunction fillIfDefined(a, b) {\n var allowDeletion = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n // NOTE: iteration of properties of a\n // NOTE: prototype properties iterated over as well\n for (var prop in a) {\n if (b[prop] !== undefined) {\n if (b[prop] === null || _typeof$1(b[prop]) !== \"object\") {\n // Note: typeof null === 'object'\n copyOrDelete(a, b, prop, allowDeletion);\n } else {\n var aProp = a[prop];\n var bProp = b[prop];\n if (isObject$a(aProp) && isObject$a(bProp)) {\n fillIfDefined(aProp, bProp, allowDeletion);\n }\n }\n }\n }\n}\n/**\r\n * Extend object a with selected properties of object b.\r\n * Only properties with defined values are copied.\r\n *\r\n * @remarks\r\n * Previous version of this routine implied that multiple source objects could\r\n * be used; however, the implementation was **wrong**. Since multiple (\\>1)\r\n * sources weren't used anywhere in the `vis.js` code, this has been removed\r\n * @param props - Names of first-level properties to copy over.\r\n * @param a - Target object.\r\n * @param b - Source object.\r\n * @param allowDeletion - If true, delete property in a if explicitly set to null in b.\r\n * @returns Argument a.\r\n */\nfunction selectiveDeepExtend(props, a, b) {\n var allowDeletion = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n // TODO: add support for Arrays to deepExtend\n if (_Array$isArray(b)) {\n throw new TypeError(\"Arrays are not supported by deepExtend\");\n }\n for (var p = 0; p < props.length; p++) {\n var prop = props[p];\n if (Object.prototype.hasOwnProperty.call(b, prop)) {\n if (b[prop] && b[prop].constructor === Object) {\n if (a[prop] === undefined) {\n a[prop] = {};\n }\n if (a[prop].constructor === Object) {\n deepExtend(a[prop], b[prop], false, allowDeletion);\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n } else if (_Array$isArray(b[prop])) {\n throw new TypeError(\"Arrays are not supported by deepExtend\");\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n }\n }\n return a;\n}\n/**\r\n * Extend object `a` with properties of object `b`, ignoring properties which\r\n * are explicitly specified to be excluded.\r\n *\r\n * @remarks\r\n * The properties of `b` are considered for copying. Properties which are\r\n * themselves objects are are also extended. Only properties with defined\r\n * values are copied.\r\n * @param propsToExclude - Names of properties which should *not* be copied.\r\n * @param a - Object to extend.\r\n * @param b - Object to take properties from for extension.\r\n * @param allowDeletion - If true, delete properties in a that are explicitly\r\n * set to null in b.\r\n * @returns Argument a.\r\n */\nfunction selectiveNotDeepExtend(propsToExclude, a, b) {\n var allowDeletion = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n // TODO: add support for Arrays to deepExtend\n // NOTE: array properties have an else-below; apparently, there is a problem here.\n if (_Array$isArray(b)) {\n throw new TypeError(\"Arrays are not supported by deepExtend\");\n }\n for (var prop in b) {\n if (!Object.prototype.hasOwnProperty.call(b, prop)) {\n continue;\n } // Handle local properties only\n if (_includesInstanceProperty(propsToExclude).call(propsToExclude, prop)) {\n continue;\n } // In exclusion list, skip\n if (b[prop] && b[prop].constructor === Object) {\n if (a[prop] === undefined) {\n a[prop] = {};\n }\n if (a[prop].constructor === Object) {\n deepExtend(a[prop], b[prop]); // NOTE: allowDeletion not propagated!\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n } else if (_Array$isArray(b[prop])) {\n a[prop] = [];\n for (var i = 0; i < b[prop].length; i++) {\n a[prop].push(b[prop][i]);\n }\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n }\n return a;\n}\n/**\r\n * Deep extend an object a with the properties of object b.\r\n *\r\n * @param a - Target object.\r\n * @param b - Source object.\r\n * @param protoExtend - If true, the prototype values will also be extended.\r\n * (That is the options objects that inherit from others will also get the\r\n * inherited options).\r\n * @param allowDeletion - If true, the values of fields that are null will be deleted.\r\n * @returns Argument a.\r\n */\nfunction deepExtend(a, b) {\n var protoExtend = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var allowDeletion = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n for (var prop in b) {\n if (Object.prototype.hasOwnProperty.call(b, prop) || protoExtend === true) {\n if (_typeof$1(b[prop]) === \"object\" && b[prop] !== null && _Object$getPrototypeOf$1(b[prop]) === Object.prototype) {\n if (a[prop] === undefined) {\n a[prop] = deepExtend({}, b[prop], protoExtend); // NOTE: allowDeletion not propagated!\n } else if (_typeof$1(a[prop]) === \"object\" && a[prop] !== null && _Object$getPrototypeOf$1(a[prop]) === Object.prototype) {\n deepExtend(a[prop], b[prop], protoExtend); // NOTE: allowDeletion not propagated!\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n } else if (_Array$isArray(b[prop])) {\n var _context6;\n a[prop] = _sliceInstanceProperty(_context6 = b[prop]).call(_context6);\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n }\n }\n return a;\n}\n/**\r\n * Used to extend an array and copy it. This is used to propagate paths recursively.\r\n *\r\n * @param arr - First part.\r\n * @param newValue - The value to be aadded into the array.\r\n * @returns A new array with all items from arr and newValue (which is last).\r\n */\nfunction copyAndExtendArray(arr, newValue) {\n var _context7;\n return _concatInstanceProperty(_context7 = []).call(_context7, _toConsumableArray(arr), [newValue]);\n}\n/**\r\n * Used to extend an array and copy it. This is used to propagate paths recursively.\r\n *\r\n * @param arr - The array to be copied.\r\n * @returns Shallow copy of arr.\r\n */\nfunction copyArray(arr) {\n return _sliceInstanceProperty(arr).call(arr);\n}\n/**\r\n * Retrieve the absolute left value of a DOM element.\r\n *\r\n * @param elem - A dom element, for example a div.\r\n * @returns The absolute left position of this element in the browser page.\r\n */\nfunction getAbsoluteLeft(elem) {\n return elem.getBoundingClientRect().left;\n}\n/**\r\n * Retrieve the absolute top value of a DOM element.\r\n *\r\n * @param elem - A dom element, for example a div.\r\n * @returns The absolute top position of this element in the browser page.\r\n */\nfunction getAbsoluteTop(elem) {\n return elem.getBoundingClientRect().top;\n}\n/**\r\n * For each method for both arrays and objects.\r\n * In case of an array, the built-in Array.forEach() is applied (**No, it's not!**).\r\n * In case of an Object, the method loops over all properties of the object.\r\n *\r\n * @param object - An Object or Array to be iterated over.\r\n * @param callback - Array.forEach-like callback.\r\n */\nfunction forEach$5(object, callback) {\n if (_Array$isArray(object)) {\n // array\n var len = object.length;\n for (var i = 0; i < len; i++) {\n callback(object[i], i, object);\n }\n } else {\n // object\n for (var key in object) {\n if (Object.prototype.hasOwnProperty.call(object, key)) {\n callback(object[key], key, object);\n }\n }\n }\n}\n/**\r\n * Add and event listener. Works for all browsers.\r\n *\r\n * @param element - The element to bind the event listener to.\r\n * @param action - Same as Element.addEventListener(action, —, —).\r\n * @param listener - Same as Element.addEventListener(—, listener, —).\r\n * @param useCapture - Same as Element.addEventListener(—, —, useCapture).\r\n */\nfunction addEventListener(element, action, listener, useCapture) {\n if (element.addEventListener) {\n var _context8;\n if (useCapture === undefined) {\n useCapture = false;\n }\n if (action === \"mousewheel\" && _includesInstanceProperty(_context8 = navigator.userAgent).call(_context8, \"Firefox\")) {\n action = \"DOMMouseScroll\"; // For Firefox\n }\n\n element.addEventListener(action, listener, useCapture);\n } else {\n // @TODO: IE types? Does anyone care?\n element.attachEvent(\"on\" + action, listener); // IE browsers\n }\n}\n/**\r\n * Remove an event listener from an element.\r\n *\r\n * @param element - The element to bind the event listener to.\r\n * @param action - Same as Element.removeEventListener(action, —, —).\r\n * @param listener - Same as Element.removeEventListener(—, listener, —).\r\n * @param useCapture - Same as Element.removeEventListener(—, —, useCapture).\r\n */\nfunction removeEventListener(element, action, listener, useCapture) {\n if (element.removeEventListener) {\n var _context9;\n // non-IE browsers\n if (useCapture === undefined) {\n useCapture = false;\n }\n if (action === \"mousewheel\" && _includesInstanceProperty(_context9 = navigator.userAgent).call(_context9, \"Firefox\")) {\n action = \"DOMMouseScroll\"; // For Firefox\n }\n\n element.removeEventListener(action, listener, useCapture);\n } else {\n // @TODO: IE types? Does anyone care?\n element.detachEvent(\"on\" + action, listener); // IE browsers\n }\n}\n/**\r\n * Convert hex color string into RGB color object.\r\n *\r\n * @remarks\r\n * {@link http://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb}\r\n * @param hex - Hex color string (3 or 6 digits, with or without #).\r\n * @returns RGB color object.\r\n */\nfunction hexToRGB(hex) {\n var result;\n switch (hex.length) {\n case 3:\n case 4:\n result = shortHexRE.exec(hex);\n return result ? {\n r: _parseInt(result[1] + result[1], 16),\n g: _parseInt(result[2] + result[2], 16),\n b: _parseInt(result[3] + result[3], 16)\n } : null;\n case 6:\n case 7:\n result = fullHexRE.exec(hex);\n return result ? {\n r: _parseInt(result[1], 16),\n g: _parseInt(result[2], 16),\n b: _parseInt(result[3], 16)\n } : null;\n default:\n return null;\n }\n}\n/**\r\n * This function takes string color in hex or RGB format and adds the opacity, RGBA is passed through unchanged.\r\n *\r\n * @param color - The color string (hex, RGB, RGBA).\r\n * @param opacity - The new opacity.\r\n * @returns RGBA string, for example 'rgba(255, 0, 127, 0.3)'.\r\n */\nfunction overrideOpacity(color, opacity) {\n if (_includesInstanceProperty(color).call(color, \"rgba\")) {\n return color;\n } else if (_includesInstanceProperty(color).call(color, \"rgb\")) {\n var rgb = color.substr(_indexOfInstanceProperty(color).call(color, \"(\") + 1).replace(\")\", \"\").split(\",\");\n return \"rgba(\" + rgb[0] + \",\" + rgb[1] + \",\" + rgb[2] + \",\" + opacity + \")\";\n } else {\n var _rgb = hexToRGB(color);\n if (_rgb == null) {\n return color;\n } else {\n return \"rgba(\" + _rgb.r + \",\" + _rgb.g + \",\" + _rgb.b + \",\" + opacity + \")\";\n }\n }\n}\n/**\r\n * Convert RGB \\<0, 255\\> into hex color string.\r\n *\r\n * @param red - Red channel.\r\n * @param green - Green channel.\r\n * @param blue - Blue channel.\r\n * @returns Hex color string (for example: '#0acdc0').\r\n */\nfunction RGBToHex(red, green, blue) {\n var _context10;\n return \"#\" + _sliceInstanceProperty(_context10 = ((1 << 24) + (red << 16) + (green << 8) + blue).toString(16)).call(_context10, 1);\n}\n/**\r\n * Parse a color property into an object with border, background, and highlight colors.\r\n *\r\n * @param inputColor - Shorthand color string or input color object.\r\n * @param defaultColor - Full color object to fill in missing values in inputColor.\r\n * @returns Color object.\r\n */\nfunction parseColor(inputColor, defaultColor) {\n if (isString(inputColor)) {\n var colorStr = inputColor;\n if (isValidRGB(colorStr)) {\n var _context11;\n var rgb = _mapInstanceProperty(_context11 = colorStr.substr(4).substr(0, colorStr.length - 5).split(\",\")).call(_context11, function (value) {\n return _parseInt(value);\n });\n colorStr = RGBToHex(rgb[0], rgb[1], rgb[2]);\n }\n if (isValidHex(colorStr) === true) {\n var hsv = hexToHSV(colorStr);\n var lighterColorHSV = {\n h: hsv.h,\n s: hsv.s * 0.8,\n v: Math.min(1, hsv.v * 1.02)\n };\n var darkerColorHSV = {\n h: hsv.h,\n s: Math.min(1, hsv.s * 1.25),\n v: hsv.v * 0.8\n };\n var darkerColorHex = HSVToHex(darkerColorHSV.h, darkerColorHSV.s, darkerColorHSV.v);\n var lighterColorHex = HSVToHex(lighterColorHSV.h, lighterColorHSV.s, lighterColorHSV.v);\n return {\n background: colorStr,\n border: darkerColorHex,\n highlight: {\n background: lighterColorHex,\n border: darkerColorHex\n },\n hover: {\n background: lighterColorHex,\n border: darkerColorHex\n }\n };\n } else {\n return {\n background: colorStr,\n border: colorStr,\n highlight: {\n background: colorStr,\n border: colorStr\n },\n hover: {\n background: colorStr,\n border: colorStr\n }\n };\n }\n } else {\n if (defaultColor) {\n var color = {\n background: inputColor.background || defaultColor.background,\n border: inputColor.border || defaultColor.border,\n highlight: isString(inputColor.highlight) ? {\n border: inputColor.highlight,\n background: inputColor.highlight\n } : {\n background: inputColor.highlight && inputColor.highlight.background || defaultColor.highlight.background,\n border: inputColor.highlight && inputColor.highlight.border || defaultColor.highlight.border\n },\n hover: isString(inputColor.hover) ? {\n border: inputColor.hover,\n background: inputColor.hover\n } : {\n border: inputColor.hover && inputColor.hover.border || defaultColor.hover.border,\n background: inputColor.hover && inputColor.hover.background || defaultColor.hover.background\n }\n };\n return color;\n } else {\n var _color = {\n background: inputColor.background || undefined,\n border: inputColor.border || undefined,\n highlight: isString(inputColor.highlight) ? {\n border: inputColor.highlight,\n background: inputColor.highlight\n } : {\n background: inputColor.highlight && inputColor.highlight.background || undefined,\n border: inputColor.highlight && inputColor.highlight.border || undefined\n },\n hover: isString(inputColor.hover) ? {\n border: inputColor.hover,\n background: inputColor.hover\n } : {\n border: inputColor.hover && inputColor.hover.border || undefined,\n background: inputColor.hover && inputColor.hover.background || undefined\n }\n };\n return _color;\n }\n }\n}\n/**\r\n * Convert RGB \\<0, 255\\> into HSV object.\r\n *\r\n * @remarks\r\n * {@link http://www.javascripter.net/faq/rgb2hsv.htm}\r\n * @param red - Red channel.\r\n * @param green - Green channel.\r\n * @param blue - Blue channel.\r\n * @returns HSV color object.\r\n */\nfunction RGBToHSV(red, green, blue) {\n red = red / 255;\n green = green / 255;\n blue = blue / 255;\n var minRGB = Math.min(red, Math.min(green, blue));\n var maxRGB = Math.max(red, Math.max(green, blue));\n // Black-gray-white\n if (minRGB === maxRGB) {\n return {\n h: 0,\n s: 0,\n v: minRGB\n };\n }\n // Colors other than black-gray-white:\n var d = red === minRGB ? green - blue : blue === minRGB ? red - green : blue - red;\n var h = red === minRGB ? 3 : blue === minRGB ? 1 : 5;\n var hue = 60 * (h - d / (maxRGB - minRGB)) / 360;\n var saturation = (maxRGB - minRGB) / maxRGB;\n var value = maxRGB;\n return {\n h: hue,\n s: saturation,\n v: value\n };\n}\n/**\r\n * Convert HSV \\<0, 1\\> into RGB color object.\r\n *\r\n * @remarks\r\n * {@link https://gist.github.com/mjijackson/5311256}\r\n * @param h - Hue.\r\n * @param s - Saturation.\r\n * @param v - Value.\r\n * @returns RGB color object.\r\n */\nfunction HSVToRGB(h, s, v) {\n var r;\n var g;\n var b;\n var i = Math.floor(h * 6);\n var f = h * 6 - i;\n var p = v * (1 - s);\n var q = v * (1 - f * s);\n var t = v * (1 - (1 - f) * s);\n switch (i % 6) {\n case 0:\n r = v, g = t, b = p;\n break;\n case 1:\n r = q, g = v, b = p;\n break;\n case 2:\n r = p, g = v, b = t;\n break;\n case 3:\n r = p, g = q, b = v;\n break;\n case 4:\n r = t, g = p, b = v;\n break;\n case 5:\n r = v, g = p, b = q;\n break;\n }\n return {\n r: Math.floor(r * 255),\n g: Math.floor(g * 255),\n b: Math.floor(b * 255)\n };\n}\n/**\r\n * Convert HSV \\<0, 1\\> into hex color string.\r\n *\r\n * @param h - Hue.\r\n * @param s - Saturation.\r\n * @param v - Value.\r\n * @returns Hex color string.\r\n */\nfunction HSVToHex(h, s, v) {\n var rgb = HSVToRGB(h, s, v);\n return RGBToHex(rgb.r, rgb.g, rgb.b);\n}\n/**\r\n * Convert hex color string into HSV \\<0, 1\\>.\r\n *\r\n * @param hex - Hex color string.\r\n * @returns HSV color object.\r\n */\nfunction hexToHSV(hex) {\n var rgb = hexToRGB(hex);\n if (!rgb) {\n throw new TypeError(\"'\".concat(hex, \"' is not a valid color.\"));\n }\n return RGBToHSV(rgb.r, rgb.g, rgb.b);\n}\n/**\r\n * Validate hex color string.\r\n *\r\n * @param hex - Unknown string that may contain a color.\r\n * @returns True if the string is valid, false otherwise.\r\n */\nfunction isValidHex(hex) {\n var isOk = /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(hex);\n return isOk;\n}\n/**\r\n * Validate RGB color string.\r\n *\r\n * @param rgb - Unknown string that may contain a color.\r\n * @returns True if the string is valid, false otherwise.\r\n */\nfunction isValidRGB(rgb) {\n return rgbRE.test(rgb);\n}\n/**\r\n * Validate RGBA color string.\r\n *\r\n * @param rgba - Unknown string that may contain a color.\r\n * @returns True if the string is valid, false otherwise.\r\n */\nfunction isValidRGBA(rgba) {\n return rgbaRE.test(rgba);\n}\n/**\r\n * This recursively redirects the prototype of JSON objects to the referenceObject.\r\n * This is used for default options.\r\n *\r\n * @param referenceObject - The original object.\r\n * @returns The Element if the referenceObject is an Element, or a new object inheriting from the referenceObject.\r\n */\nfunction bridgeObject(referenceObject) {\n if (referenceObject === null || _typeof$1(referenceObject) !== \"object\") {\n return null;\n }\n if (referenceObject instanceof Element) {\n // Avoid bridging DOM objects\n return referenceObject;\n }\n var objectTo = _Object$create$1(referenceObject);\n for (var i in referenceObject) {\n if (Object.prototype.hasOwnProperty.call(referenceObject, i)) {\n if (_typeof$1(referenceObject[i]) == \"object\") {\n objectTo[i] = bridgeObject(referenceObject[i]);\n }\n }\n }\n return objectTo;\n}\n/**\r\n * This is used to set the options of subobjects in the options object.\r\n *\r\n * A requirement of these subobjects is that they have an 'enabled' element\r\n * which is optional for the user but mandatory for the program.\r\n *\r\n * The added value here of the merge is that option 'enabled' is set as required.\r\n *\r\n * @param mergeTarget - Either this.options or the options used for the groups.\r\n * @param options - Options.\r\n * @param option - Option key in the options argument.\r\n * @param globalOptions - Global options, passed in to determine value of option 'enabled'.\r\n */\nfunction mergeOptions(mergeTarget, options, option) {\n var globalOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n // Local helpers\n var isPresent = function isPresent(obj) {\n return obj !== null && obj !== undefined;\n };\n var isObject = function isObject(obj) {\n return obj !== null && _typeof$1(obj) === \"object\";\n };\n // https://stackoverflow.com/a/34491287/1223531\n var isEmpty = function isEmpty(obj) {\n for (var x in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, x)) {\n return false;\n }\n }\n return true;\n };\n // Guards\n if (!isObject(mergeTarget)) {\n throw new Error(\"Parameter mergeTarget must be an object\");\n }\n if (!isObject(options)) {\n throw new Error(\"Parameter options must be an object\");\n }\n if (!isPresent(option)) {\n throw new Error(\"Parameter option must have a value\");\n }\n if (!isObject(globalOptions)) {\n throw new Error(\"Parameter globalOptions must be an object\");\n }\n //\n // Actual merge routine, separated from main logic\n // Only a single level of options is merged. Deeper levels are ref'd. This may actually be an issue.\n //\n var doMerge = function doMerge(target, options, option) {\n if (!isObject(target[option])) {\n target[option] = {};\n }\n var src = options[option];\n var dst = target[option];\n for (var prop in src) {\n if (Object.prototype.hasOwnProperty.call(src, prop)) {\n dst[prop] = src[prop];\n }\n }\n };\n // Local initialization\n var srcOption = options[option];\n var globalPassed = isObject(globalOptions) && !isEmpty(globalOptions);\n var globalOption = globalPassed ? globalOptions[option] : undefined;\n var globalEnabled = globalOption ? globalOption.enabled : undefined;\n /////////////////////////////////////////\n // Main routine\n /////////////////////////////////////////\n if (srcOption === undefined) {\n return; // Nothing to do\n }\n\n if (typeof srcOption === \"boolean\") {\n if (!isObject(mergeTarget[option])) {\n mergeTarget[option] = {};\n }\n mergeTarget[option].enabled = srcOption;\n return;\n }\n if (srcOption === null && !isObject(mergeTarget[option])) {\n // If possible, explicit copy from globals\n if (isPresent(globalOption)) {\n mergeTarget[option] = _Object$create$1(globalOption);\n } else {\n return; // Nothing to do\n }\n }\n\n if (!isObject(srcOption)) {\n return;\n }\n //\n // Ensure that 'enabled' is properly set. It is required internally\n // Note that the value from options will always overwrite the existing value\n //\n var enabled = true; // default value\n if (srcOption.enabled !== undefined) {\n enabled = srcOption.enabled;\n } else {\n // Take from globals, if present\n if (globalEnabled !== undefined) {\n enabled = globalOption.enabled;\n }\n }\n doMerge(mergeTarget, options, option);\n mergeTarget[option].enabled = enabled;\n}\n/*\r\n * Easing Functions.\r\n * Only considering the t value for the range [0, 1] => [0, 1].\r\n *\r\n * Inspiration: from http://gizma.com/easing/\r\n * https://gist.github.com/gre/1650294\r\n */\nvar easingFunctions = {\n /**\r\n * Provides no easing and no acceleration.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n linear: function linear(t) {\n return t;\n },\n /**\r\n * Accelerate from zero velocity.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeInQuad: function easeInQuad(t) {\n return t * t;\n },\n /**\r\n * Decelerate to zero velocity.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeOutQuad: function easeOutQuad(t) {\n return t * (2 - t);\n },\n /**\r\n * Accelerate until halfway, then decelerate.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeInOutQuad: function easeInOutQuad(t) {\n return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;\n },\n /**\r\n * Accelerate from zero velocity.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeInCubic: function easeInCubic(t) {\n return t * t * t;\n },\n /**\r\n * Decelerate to zero velocity.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeOutCubic: function easeOutCubic(t) {\n return --t * t * t + 1;\n },\n /**\r\n * Accelerate until halfway, then decelerate.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeInOutCubic: function easeInOutCubic(t) {\n return t < 0.5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;\n },\n /**\r\n * Accelerate from zero velocity.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeInQuart: function easeInQuart(t) {\n return t * t * t * t;\n },\n /**\r\n * Decelerate to zero velocity.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeOutQuart: function easeOutQuart(t) {\n return 1 - --t * t * t * t;\n },\n /**\r\n * Accelerate until halfway, then decelerate.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeInOutQuart: function easeInOutQuart(t) {\n return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t;\n },\n /**\r\n * Accelerate from zero velocity.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeInQuint: function easeInQuint(t) {\n return t * t * t * t * t;\n },\n /**\r\n * Decelerate to zero velocity.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeOutQuint: function easeOutQuint(t) {\n return 1 + --t * t * t * t * t;\n },\n /**\r\n * Accelerate until halfway, then decelerate.\r\n *\r\n * @param t - Time.\r\n * @returns Value at time t.\r\n */\n easeInOutQuint: function easeInOutQuint(t) {\n return t < 0.5 ? 16 * t * t * t * t * t : 1 + 16 * --t * t * t * t * t;\n }\n};\n// @TODO: This doesn't work properly.\n// It works only for single property objects,\n// otherwise it combines all of the types in a union.\n// export function topMost (\n// pile: Record[],\n// accessors: K1 | [K1]\n// ): undefined | V1\n// export function topMost (\n// pile: Record>[],\n// accessors: [K1, K2]\n// ): undefined | V1 | V2\n// export function topMost (\n// pile: Record>>[],\n// accessors: [K1, K2, K3]\n// ): undefined | V1 | V2 | V3\n/**\r\n * Get the top most property value from a pile of objects.\r\n *\r\n * @param pile - Array of objects, no required format.\r\n * @param accessors - Array of property names.\r\n * For example `object['foo']['bar']` → `['foo', 'bar']`.\r\n * @returns Value of the property with given accessors path from the first pile item where it's not undefined.\r\n */\nfunction topMost(pile, accessors) {\n var candidate;\n if (!_Array$isArray(accessors)) {\n accessors = [accessors];\n }\n var _iterator3 = _createForOfIteratorHelper$7(pile),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var member = _step3.value;\n if (member) {\n candidate = member[accessors[0]];\n for (var i = 1; i < accessors.length; i++) {\n if (candidate) {\n candidate = candidate[accessors[i]];\n }\n }\n if (typeof candidate !== \"undefined\") {\n break;\n }\n }\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n return candidate;\n}\nvar htmlColors = {\n black: \"#000000\",\n navy: \"#000080\",\n darkblue: \"#00008B\",\n mediumblue: \"#0000CD\",\n blue: \"#0000FF\",\n darkgreen: \"#006400\",\n green: \"#008000\",\n teal: \"#008080\",\n darkcyan: \"#008B8B\",\n deepskyblue: \"#00BFFF\",\n darkturquoise: \"#00CED1\",\n mediumspringgreen: \"#00FA9A\",\n lime: \"#00FF00\",\n springgreen: \"#00FF7F\",\n aqua: \"#00FFFF\",\n cyan: \"#00FFFF\",\n midnightblue: \"#191970\",\n dodgerblue: \"#1E90FF\",\n lightseagreen: \"#20B2AA\",\n forestgreen: \"#228B22\",\n seagreen: \"#2E8B57\",\n darkslategray: \"#2F4F4F\",\n limegreen: \"#32CD32\",\n mediumseagreen: \"#3CB371\",\n turquoise: \"#40E0D0\",\n royalblue: \"#4169E1\",\n steelblue: \"#4682B4\",\n darkslateblue: \"#483D8B\",\n mediumturquoise: \"#48D1CC\",\n indigo: \"#4B0082\",\n darkolivegreen: \"#556B2F\",\n cadetblue: \"#5F9EA0\",\n cornflowerblue: \"#6495ED\",\n mediumaquamarine: \"#66CDAA\",\n dimgray: \"#696969\",\n slateblue: \"#6A5ACD\",\n olivedrab: \"#6B8E23\",\n slategray: \"#708090\",\n lightslategray: \"#778899\",\n mediumslateblue: \"#7B68EE\",\n lawngreen: \"#7CFC00\",\n chartreuse: \"#7FFF00\",\n aquamarine: \"#7FFFD4\",\n maroon: \"#800000\",\n purple: \"#800080\",\n olive: \"#808000\",\n gray: \"#808080\",\n skyblue: \"#87CEEB\",\n lightskyblue: \"#87CEFA\",\n blueviolet: \"#8A2BE2\",\n darkred: \"#8B0000\",\n darkmagenta: \"#8B008B\",\n saddlebrown: \"#8B4513\",\n darkseagreen: \"#8FBC8F\",\n lightgreen: \"#90EE90\",\n mediumpurple: \"#9370D8\",\n darkviolet: \"#9400D3\",\n palegreen: \"#98FB98\",\n darkorchid: \"#9932CC\",\n yellowgreen: \"#9ACD32\",\n sienna: \"#A0522D\",\n brown: \"#A52A2A\",\n darkgray: \"#A9A9A9\",\n lightblue: \"#ADD8E6\",\n greenyellow: \"#ADFF2F\",\n paleturquoise: \"#AFEEEE\",\n lightsteelblue: \"#B0C4DE\",\n powderblue: \"#B0E0E6\",\n firebrick: \"#B22222\",\n darkgoldenrod: \"#B8860B\",\n mediumorchid: \"#BA55D3\",\n rosybrown: \"#BC8F8F\",\n darkkhaki: \"#BDB76B\",\n silver: \"#C0C0C0\",\n mediumvioletred: \"#C71585\",\n indianred: \"#CD5C5C\",\n peru: \"#CD853F\",\n chocolate: \"#D2691E\",\n tan: \"#D2B48C\",\n lightgrey: \"#D3D3D3\",\n palevioletred: \"#D87093\",\n thistle: \"#D8BFD8\",\n orchid: \"#DA70D6\",\n goldenrod: \"#DAA520\",\n crimson: \"#DC143C\",\n gainsboro: \"#DCDCDC\",\n plum: \"#DDA0DD\",\n burlywood: \"#DEB887\",\n lightcyan: \"#E0FFFF\",\n lavender: \"#E6E6FA\",\n darksalmon: \"#E9967A\",\n violet: \"#EE82EE\",\n palegoldenrod: \"#EEE8AA\",\n lightcoral: \"#F08080\",\n khaki: \"#F0E68C\",\n aliceblue: \"#F0F8FF\",\n honeydew: \"#F0FFF0\",\n azure: \"#F0FFFF\",\n sandybrown: \"#F4A460\",\n wheat: \"#F5DEB3\",\n beige: \"#F5F5DC\",\n whitesmoke: \"#F5F5F5\",\n mintcream: \"#F5FFFA\",\n ghostwhite: \"#F8F8FF\",\n salmon: \"#FA8072\",\n antiquewhite: \"#FAEBD7\",\n linen: \"#FAF0E6\",\n lightgoldenrodyellow: \"#FAFAD2\",\n oldlace: \"#FDF5E6\",\n red: \"#FF0000\",\n fuchsia: \"#FF00FF\",\n magenta: \"#FF00FF\",\n deeppink: \"#FF1493\",\n orangered: \"#FF4500\",\n tomato: \"#FF6347\",\n hotpink: \"#FF69B4\",\n coral: \"#FF7F50\",\n darkorange: \"#FF8C00\",\n lightsalmon: \"#FFA07A\",\n orange: \"#FFA500\",\n lightpink: \"#FFB6C1\",\n pink: \"#FFC0CB\",\n gold: \"#FFD700\",\n peachpuff: \"#FFDAB9\",\n navajowhite: \"#FFDEAD\",\n moccasin: \"#FFE4B5\",\n bisque: \"#FFE4C4\",\n mistyrose: \"#FFE4E1\",\n blanchedalmond: \"#FFEBCD\",\n papayawhip: \"#FFEFD5\",\n lavenderblush: \"#FFF0F5\",\n seashell: \"#FFF5EE\",\n cornsilk: \"#FFF8DC\",\n lemonchiffon: \"#FFFACD\",\n floralwhite: \"#FFFAF0\",\n snow: \"#FFFAFA\",\n yellow: \"#FFFF00\",\n lightyellow: \"#FFFFE0\",\n ivory: \"#FFFFF0\",\n white: \"#FFFFFF\"\n};\n\n/**\n * @param {number} [pixelRatio=1]\n */\nvar ColorPicker$1 = /*#__PURE__*/function () {\n /**\n * @param {number} [pixelRatio=1]\n */\n function ColorPicker$1() {\n var pixelRatio = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n _classCallCheck(this, ColorPicker$1);\n this.pixelRatio = pixelRatio;\n this.generated = false;\n this.centerCoordinates = {\n x: 289 / 2,\n y: 289 / 2\n };\n this.r = 289 * 0.49;\n this.color = {\n r: 255,\n g: 255,\n b: 255,\n a: 1.0\n };\n this.hueCircle = undefined;\n this.initialColor = {\n r: 255,\n g: 255,\n b: 255,\n a: 1.0\n };\n this.previousColor = undefined;\n this.applied = false;\n\n // bound by\n this.updateCallback = function () {};\n this.closeCallback = function () {};\n\n // create all DOM elements\n this._create();\n }\n\n /**\n * this inserts the colorPicker into a div from the DOM\n *\n * @param {Element} container\n */\n _createClass(ColorPicker$1, [{\n key: \"insertTo\",\n value: function insertTo(container) {\n if (this.hammer !== undefined) {\n this.hammer.destroy();\n this.hammer = undefined;\n }\n this.container = container;\n this.container.appendChild(this.frame);\n this._bindHammer();\n this._setSize();\n }\n\n /**\n * the callback is executed on apply and save. Bind it to the application\n *\n * @param {Function} callback\n */\n }, {\n key: \"setUpdateCallback\",\n value: function setUpdateCallback(callback) {\n if (typeof callback === \"function\") {\n this.updateCallback = callback;\n } else {\n throw new Error(\"Function attempted to set as colorPicker update callback is not a function.\");\n }\n }\n\n /**\n * the callback is executed on apply and save. Bind it to the application\n *\n * @param {Function} callback\n */\n }, {\n key: \"setCloseCallback\",\n value: function setCloseCallback(callback) {\n if (typeof callback === \"function\") {\n this.closeCallback = callback;\n } else {\n throw new Error(\"Function attempted to set as colorPicker closing callback is not a function.\");\n }\n }\n\n /**\n *\n * @param {string} color\n * @returns {string}\n * @private\n */\n }, {\n key: \"_isColorString\",\n value: function _isColorString(color) {\n if (typeof color === \"string\") {\n return htmlColors[color];\n }\n }\n\n /**\n * Set the color of the colorPicker\n * Supported formats:\n * 'red' --> HTML color string\n * '#ffffff' --> hex string\n * 'rgb(255,255,255)' --> rgb string\n * 'rgba(255,255,255,1.0)' --> rgba string\n * {r:255,g:255,b:255} --> rgb object\n * {r:255,g:255,b:255,a:1.0} --> rgba object\n *\n * @param {string | object} color\n * @param {boolean} [setInitial=true]\n */\n }, {\n key: \"setColor\",\n value: function setColor(color) {\n var setInitial = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (color === \"none\") {\n return;\n }\n var rgba;\n\n // if a html color shorthand is used, convert to hex\n var htmlColor = this._isColorString(color);\n if (htmlColor !== undefined) {\n color = htmlColor;\n }\n\n // check format\n if (isString(color) === true) {\n if (isValidRGB(color) === true) {\n var rgbaArray = color.substr(4).substr(0, color.length - 5).split(\",\");\n rgba = {\n r: rgbaArray[0],\n g: rgbaArray[1],\n b: rgbaArray[2],\n a: 1.0\n };\n } else if (isValidRGBA(color) === true) {\n var _rgbaArray = color.substr(5).substr(0, color.length - 6).split(\",\");\n rgba = {\n r: _rgbaArray[0],\n g: _rgbaArray[1],\n b: _rgbaArray[2],\n a: _rgbaArray[3]\n };\n } else if (isValidHex(color) === true) {\n var rgbObj = hexToRGB(color);\n rgba = {\n r: rgbObj.r,\n g: rgbObj.g,\n b: rgbObj.b,\n a: 1.0\n };\n }\n } else {\n if (color instanceof Object) {\n if (color.r !== undefined && color.g !== undefined && color.b !== undefined) {\n var alpha = color.a !== undefined ? color.a : \"1.0\";\n rgba = {\n r: color.r,\n g: color.g,\n b: color.b,\n a: alpha\n };\n }\n }\n }\n\n // set color\n if (rgba === undefined) {\n throw new Error(\"Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: \" + _JSON$stringify(color));\n } else {\n this._setColor(rgba, setInitial);\n }\n }\n\n /**\n * this shows the color picker.\n * The hue circle is constructed once and stored.\n */\n }, {\n key: \"show\",\n value: function show() {\n if (this.closeCallback !== undefined) {\n this.closeCallback();\n this.closeCallback = undefined;\n }\n this.applied = false;\n this.frame.style.display = \"block\";\n this._generateHueCircle();\n }\n\n // ------------------------------------------ PRIVATE ----------------------------- //\n\n /**\n * Hide the picker. Is called by the cancel button.\n * Optional boolean to store the previous color for easy access later on.\n *\n * @param {boolean} [storePrevious=true]\n * @private\n */\n }, {\n key: \"_hide\",\n value: function _hide() {\n var _this2 = this;\n var storePrevious = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n // store the previous color for next time;\n if (storePrevious === true) {\n this.previousColor = _Object$assign({}, this.color);\n }\n if (this.applied === true) {\n this.updateCallback(this.initialColor);\n }\n this.frame.style.display = \"none\";\n\n // call the closing callback, restoring the onclick method.\n // this is in a setTimeout because it will trigger the show again before the click is done.\n _setTimeout(function () {\n if (_this2.closeCallback !== undefined) {\n _this2.closeCallback();\n _this2.closeCallback = undefined;\n }\n }, 0);\n }\n\n /**\n * bound to the save button. Saves and hides.\n *\n * @private\n */\n }, {\n key: \"_save\",\n value: function _save() {\n this.updateCallback(this.color);\n this.applied = false;\n this._hide();\n }\n\n /**\n * Bound to apply button. Saves but does not close. Is undone by the cancel button.\n *\n * @private\n */\n }, {\n key: \"_apply\",\n value: function _apply() {\n this.applied = true;\n this.updateCallback(this.color);\n this._updatePicker(this.color);\n }\n\n /**\n * load the color from the previous session.\n *\n * @private\n */\n }, {\n key: \"_loadLast\",\n value: function _loadLast() {\n if (this.previousColor !== undefined) {\n this.setColor(this.previousColor, false);\n } else {\n alert(\"There is no last color to load...\");\n }\n }\n\n /**\n * set the color, place the picker\n *\n * @param {object} rgba\n * @param {boolean} [setInitial=true]\n * @private\n */\n }, {\n key: \"_setColor\",\n value: function _setColor(rgba) {\n var setInitial = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n // store the initial color\n if (setInitial === true) {\n this.initialColor = _Object$assign({}, rgba);\n }\n this.color = rgba;\n var hsv = RGBToHSV(rgba.r, rgba.g, rgba.b);\n var angleConvert = 2 * Math.PI;\n var radius = this.r * hsv.s;\n var x = this.centerCoordinates.x + radius * Math.sin(angleConvert * hsv.h);\n var y = this.centerCoordinates.y + radius * Math.cos(angleConvert * hsv.h);\n this.colorPickerSelector.style.left = x - 0.5 * this.colorPickerSelector.clientWidth + \"px\";\n this.colorPickerSelector.style.top = y - 0.5 * this.colorPickerSelector.clientHeight + \"px\";\n this._updatePicker(rgba);\n }\n\n /**\n * bound to opacity control\n *\n * @param {number} value\n * @private\n */\n }, {\n key: \"_setOpacity\",\n value: function _setOpacity(value) {\n this.color.a = value / 100;\n this._updatePicker(this.color);\n }\n\n /**\n * bound to brightness control\n *\n * @param {number} value\n * @private\n */\n }, {\n key: \"_setBrightness\",\n value: function _setBrightness(value) {\n var hsv = RGBToHSV(this.color.r, this.color.g, this.color.b);\n hsv.v = value / 100;\n var rgba = HSVToRGB(hsv.h, hsv.s, hsv.v);\n rgba[\"a\"] = this.color.a;\n this.color = rgba;\n this._updatePicker();\n }\n\n /**\n * update the color picker. A black circle overlays the hue circle to mimic the brightness decreasing.\n *\n * @param {object} rgba\n * @private\n */\n }, {\n key: \"_updatePicker\",\n value: function _updatePicker() {\n var rgba = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.color;\n var hsv = RGBToHSV(rgba.r, rgba.g, rgba.b);\n var ctx = this.colorPickerCanvas.getContext(\"2d\");\n if (this.pixelRation === undefined) {\n this.pixelRatio = (window.devicePixelRatio || 1) / (ctx.webkitBackingStorePixelRatio || ctx.mozBackingStorePixelRatio || ctx.msBackingStorePixelRatio || ctx.oBackingStorePixelRatio || ctx.backingStorePixelRatio || 1);\n }\n ctx.setTransform(this.pixelRatio, 0, 0, this.pixelRatio, 0, 0);\n\n // clear the canvas\n var w = this.colorPickerCanvas.clientWidth;\n var h = this.colorPickerCanvas.clientHeight;\n ctx.clearRect(0, 0, w, h);\n ctx.putImageData(this.hueCircle, 0, 0);\n ctx.fillStyle = \"rgba(0,0,0,\" + (1 - hsv.v) + \")\";\n ctx.circle(this.centerCoordinates.x, this.centerCoordinates.y, this.r);\n _fillInstanceProperty(ctx).call(ctx);\n this.brightnessRange.value = 100 * hsv.v;\n this.opacityRange.value = 100 * rgba.a;\n this.initialColorDiv.style.backgroundColor = \"rgba(\" + this.initialColor.r + \",\" + this.initialColor.g + \",\" + this.initialColor.b + \",\" + this.initialColor.a + \")\";\n this.newColorDiv.style.backgroundColor = \"rgba(\" + this.color.r + \",\" + this.color.g + \",\" + this.color.b + \",\" + this.color.a + \")\";\n }\n\n /**\n * used by create to set the size of the canvas.\n *\n * @private\n */\n }, {\n key: \"_setSize\",\n value: function _setSize() {\n this.colorPickerCanvas.style.width = \"100%\";\n this.colorPickerCanvas.style.height = \"100%\";\n this.colorPickerCanvas.width = 289 * this.pixelRatio;\n this.colorPickerCanvas.height = 289 * this.pixelRatio;\n }\n\n /**\n * create all dom elements\n * TODO: cleanup, lots of similar dom elements\n *\n * @private\n */\n }, {\n key: \"_create\",\n value: function _create() {\n var _context16, _context17, _context18, _context19;\n this.frame = document.createElement(\"div\");\n this.frame.className = \"vis-color-picker\";\n this.colorPickerDiv = document.createElement(\"div\");\n this.colorPickerSelector = document.createElement(\"div\");\n this.colorPickerSelector.className = \"vis-selector\";\n this.colorPickerDiv.appendChild(this.colorPickerSelector);\n this.colorPickerCanvas = document.createElement(\"canvas\");\n this.colorPickerDiv.appendChild(this.colorPickerCanvas);\n if (!this.colorPickerCanvas.getContext) {\n var noCanvas = document.createElement(\"DIV\");\n noCanvas.style.color = \"red\";\n noCanvas.style.fontWeight = \"bold\";\n noCanvas.style.padding = \"10px\";\n noCanvas.innerText = \"Error: your browser does not support HTML canvas\";\n this.colorPickerCanvas.appendChild(noCanvas);\n } else {\n var ctx = this.colorPickerCanvas.getContext(\"2d\");\n this.pixelRatio = (window.devicePixelRatio || 1) / (ctx.webkitBackingStorePixelRatio || ctx.mozBackingStorePixelRatio || ctx.msBackingStorePixelRatio || ctx.oBackingStorePixelRatio || ctx.backingStorePixelRatio || 1);\n this.colorPickerCanvas.getContext(\"2d\").setTransform(this.pixelRatio, 0, 0, this.pixelRatio, 0, 0);\n }\n this.colorPickerDiv.className = \"vis-color\";\n this.opacityDiv = document.createElement(\"div\");\n this.opacityDiv.className = \"vis-opacity\";\n this.brightnessDiv = document.createElement(\"div\");\n this.brightnessDiv.className = \"vis-brightness\";\n this.arrowDiv = document.createElement(\"div\");\n this.arrowDiv.className = \"vis-arrow\";\n this.opacityRange = document.createElement(\"input\");\n try {\n this.opacityRange.type = \"range\"; // Not supported on IE9\n this.opacityRange.min = \"0\";\n this.opacityRange.max = \"100\";\n } catch (err) {\n // TODO: Add some error handling.\n }\n this.opacityRange.value = \"100\";\n this.opacityRange.className = \"vis-range\";\n this.brightnessRange = document.createElement(\"input\");\n try {\n this.brightnessRange.type = \"range\"; // Not supported on IE9\n this.brightnessRange.min = \"0\";\n this.brightnessRange.max = \"100\";\n } catch (err) {\n // TODO: Add some error handling.\n }\n this.brightnessRange.value = \"100\";\n this.brightnessRange.className = \"vis-range\";\n this.opacityDiv.appendChild(this.opacityRange);\n this.brightnessDiv.appendChild(this.brightnessRange);\n var me = this;\n this.opacityRange.onchange = function () {\n me._setOpacity(this.value);\n };\n this.opacityRange.oninput = function () {\n me._setOpacity(this.value);\n };\n this.brightnessRange.onchange = function () {\n me._setBrightness(this.value);\n };\n this.brightnessRange.oninput = function () {\n me._setBrightness(this.value);\n };\n this.brightnessLabel = document.createElement(\"div\");\n this.brightnessLabel.className = \"vis-label vis-brightness\";\n this.brightnessLabel.innerText = \"brightness:\";\n this.opacityLabel = document.createElement(\"div\");\n this.opacityLabel.className = \"vis-label vis-opacity\";\n this.opacityLabel.innerText = \"opacity:\";\n this.newColorDiv = document.createElement(\"div\");\n this.newColorDiv.className = \"vis-new-color\";\n this.newColorDiv.innerText = \"new\";\n this.initialColorDiv = document.createElement(\"div\");\n this.initialColorDiv.className = \"vis-initial-color\";\n this.initialColorDiv.innerText = \"initial\";\n this.cancelButton = document.createElement(\"div\");\n this.cancelButton.className = \"vis-button vis-cancel\";\n this.cancelButton.innerText = \"cancel\";\n this.cancelButton.onclick = _bindInstanceProperty$1(_context16 = this._hide).call(_context16, this, false);\n this.applyButton = document.createElement(\"div\");\n this.applyButton.className = \"vis-button vis-apply\";\n this.applyButton.innerText = \"apply\";\n this.applyButton.onclick = _bindInstanceProperty$1(_context17 = this._apply).call(_context17, this);\n this.saveButton = document.createElement(\"div\");\n this.saveButton.className = \"vis-button vis-save\";\n this.saveButton.innerText = \"save\";\n this.saveButton.onclick = _bindInstanceProperty$1(_context18 = this._save).call(_context18, this);\n this.loadButton = document.createElement(\"div\");\n this.loadButton.className = \"vis-button vis-load\";\n this.loadButton.innerText = \"load last\";\n this.loadButton.onclick = _bindInstanceProperty$1(_context19 = this._loadLast).call(_context19, this);\n this.frame.appendChild(this.colorPickerDiv);\n this.frame.appendChild(this.arrowDiv);\n this.frame.appendChild(this.brightnessLabel);\n this.frame.appendChild(this.brightnessDiv);\n this.frame.appendChild(this.opacityLabel);\n this.frame.appendChild(this.opacityDiv);\n this.frame.appendChild(this.newColorDiv);\n this.frame.appendChild(this.initialColorDiv);\n this.frame.appendChild(this.cancelButton);\n this.frame.appendChild(this.applyButton);\n this.frame.appendChild(this.saveButton);\n this.frame.appendChild(this.loadButton);\n }\n\n /**\n * bind hammer to the color picker\n *\n * @private\n */\n }, {\n key: \"_bindHammer\",\n value: function _bindHammer() {\n var _this3 = this;\n this.drag = {};\n this.pinch = {};\n this.hammer = new Hammer$1(this.colorPickerCanvas);\n this.hammer.get(\"pinch\").set({\n enable: true\n });\n this.hammer.on(\"hammer.input\", function (event) {\n if (event.isFirst) {\n _this3._moveSelector(event);\n }\n });\n this.hammer.on(\"tap\", function (event) {\n _this3._moveSelector(event);\n });\n this.hammer.on(\"panstart\", function (event) {\n _this3._moveSelector(event);\n });\n this.hammer.on(\"panmove\", function (event) {\n _this3._moveSelector(event);\n });\n this.hammer.on(\"panend\", function (event) {\n _this3._moveSelector(event);\n });\n }\n\n /**\n * generate the hue circle. This is relatively heavy (200ms) and is done only once on the first time it is shown.\n *\n * @private\n */\n }, {\n key: \"_generateHueCircle\",\n value: function _generateHueCircle() {\n if (this.generated === false) {\n var ctx = this.colorPickerCanvas.getContext(\"2d\");\n if (this.pixelRation === undefined) {\n this.pixelRatio = (window.devicePixelRatio || 1) / (ctx.webkitBackingStorePixelRatio || ctx.mozBackingStorePixelRatio || ctx.msBackingStorePixelRatio || ctx.oBackingStorePixelRatio || ctx.backingStorePixelRatio || 1);\n }\n ctx.setTransform(this.pixelRatio, 0, 0, this.pixelRatio, 0, 0);\n\n // clear the canvas\n var w = this.colorPickerCanvas.clientWidth;\n var h = this.colorPickerCanvas.clientHeight;\n ctx.clearRect(0, 0, w, h);\n\n // draw hue circle\n var x, y, hue, sat;\n this.centerCoordinates = {\n x: w * 0.5,\n y: h * 0.5\n };\n this.r = 0.49 * w;\n var angleConvert = 2 * Math.PI / 360;\n var hfac = 1 / 360;\n var sfac = 1 / this.r;\n var rgb;\n for (hue = 0; hue < 360; hue++) {\n for (sat = 0; sat < this.r; sat++) {\n x = this.centerCoordinates.x + sat * Math.sin(angleConvert * hue);\n y = this.centerCoordinates.y + sat * Math.cos(angleConvert * hue);\n rgb = HSVToRGB(hue * hfac, sat * sfac, 1);\n ctx.fillStyle = \"rgb(\" + rgb.r + \",\" + rgb.g + \",\" + rgb.b + \")\";\n ctx.fillRect(x - 0.5, y - 0.5, 2, 2);\n }\n }\n ctx.strokeStyle = \"rgba(0,0,0,1)\";\n ctx.circle(this.centerCoordinates.x, this.centerCoordinates.y, this.r);\n ctx.stroke();\n this.hueCircle = ctx.getImageData(0, 0, w, h);\n }\n this.generated = true;\n }\n\n /**\n * move the selector. This is called by hammer functions.\n *\n * @param {Event} event The event\n * @private\n */\n }, {\n key: \"_moveSelector\",\n value: function _moveSelector(event) {\n var rect = this.colorPickerDiv.getBoundingClientRect();\n var left = event.center.x - rect.left;\n var top = event.center.y - rect.top;\n var centerY = 0.5 * this.colorPickerDiv.clientHeight;\n var centerX = 0.5 * this.colorPickerDiv.clientWidth;\n var x = left - centerX;\n var y = top - centerY;\n var angle = Math.atan2(x, y);\n var radius = 0.98 * Math.min(Math.sqrt(x * x + y * y), centerX);\n var newTop = Math.cos(angle) * radius + centerY;\n var newLeft = Math.sin(angle) * radius + centerX;\n this.colorPickerSelector.style.top = newTop - 0.5 * this.colorPickerSelector.clientHeight + \"px\";\n this.colorPickerSelector.style.left = newLeft - 0.5 * this.colorPickerSelector.clientWidth + \"px\";\n\n // set color\n var h = angle / (2 * Math.PI);\n h = h < 0 ? h + 1 : h;\n var s = radius / this.r;\n var hsv = RGBToHSV(this.color.r, this.color.g, this.color.b);\n hsv.h = h;\n hsv.s = s;\n var rgba = HSVToRGB(hsv.h, hsv.s, hsv.v);\n rgba[\"a\"] = this.color.a;\n this.color = rgba;\n\n // update previews\n this.initialColorDiv.style.backgroundColor = \"rgba(\" + this.initialColor.r + \",\" + this.initialColor.g + \",\" + this.initialColor.b + \",\" + this.initialColor.a + \")\";\n this.newColorDiv.style.backgroundColor = \"rgba(\" + this.color.r + \",\" + this.color.g + \",\" + this.color.b + \",\" + this.color.a + \")\";\n }\n }]);\n return ColorPicker$1;\n}();\n/**\n * Wrap given text (last argument) in HTML elements (all preceding arguments).\n *\n * @param {...any} rest - List of tag names followed by inner text.\n * @returns An element or a text node.\n */\nfunction wrapInTag() {\n for (var _len5 = arguments.length, rest = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n rest[_key5] = arguments[_key5];\n }\n if (rest.length < 1) {\n throw new TypeError(\"Invalid arguments.\");\n } else if (rest.length === 1) {\n return document.createTextNode(rest[0]);\n } else {\n var element = document.createElement(rest[0]);\n element.appendChild(wrapInTag.apply(void 0, _toConsumableArray(_sliceInstanceProperty(rest).call(rest, 1))));\n return element;\n }\n}\n\n/**\n * The way this works is for all properties of this.possible options, you can supply the property name in any form to list the options.\n * Boolean options are recognised as Boolean\n * Number options should be written as array: [default value, min value, max value, stepsize]\n * Colors should be written as array: ['color', '#ffffff']\n * Strings with should be written as array: [option1, option2, option3, ..]\n *\n * The options are matched with their counterparts in each of the modules and the values used in the configuration are\n */\nvar Configurator$1 = /*#__PURE__*/function () {\n /**\n * @param {object} parentModule | the location where parentModule.setOptions() can be called\n * @param {object} defaultContainer | the default container of the module\n * @param {object} configureOptions | the fully configured and predefined options set found in allOptions.js\n * @param {number} pixelRatio | canvas pixel ratio\n * @param {Function} hideOption | custom logic to dynamically hide options\n */\n function Configurator$1(parentModule, defaultContainer, configureOptions) {\n var pixelRatio = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;\n var hideOption = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function () {\n return false;\n };\n _classCallCheck(this, Configurator$1);\n this.parent = parentModule;\n this.changedOptions = [];\n this.container = defaultContainer;\n this.allowCreation = false;\n this.hideOption = hideOption;\n this.options = {};\n this.initialized = false;\n this.popupCounter = 0;\n this.defaultOptions = {\n enabled: false,\n filter: true,\n container: undefined,\n showButton: true\n };\n _Object$assign(this.options, this.defaultOptions);\n this.configureOptions = configureOptions;\n this.moduleOptions = {};\n this.domElements = [];\n this.popupDiv = {};\n this.popupLimit = 5;\n this.popupHistory = {};\n this.colorPicker = new ColorPicker$1(pixelRatio);\n this.wrapper = undefined;\n }\n\n /**\n * refresh all options.\n * Because all modules parse their options by themselves, we just use their options. We copy them here.\n *\n * @param {object} options\n */\n _createClass(Configurator$1, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options !== undefined) {\n // reset the popup history because the indices may have been changed.\n this.popupHistory = {};\n this._removePopup();\n var enabled = true;\n if (typeof options === \"string\") {\n this.options.filter = options;\n } else if (_Array$isArray(options)) {\n this.options.filter = options.join();\n } else if (_typeof$1(options) === \"object\") {\n if (options == null) {\n throw new TypeError(\"options cannot be null\");\n }\n if (options.container !== undefined) {\n this.options.container = options.container;\n }\n if (_filterInstanceProperty(options) !== undefined) {\n this.options.filter = _filterInstanceProperty(options);\n }\n if (options.showButton !== undefined) {\n this.options.showButton = options.showButton;\n }\n if (options.enabled !== undefined) {\n enabled = options.enabled;\n }\n } else if (typeof options === \"boolean\") {\n this.options.filter = true;\n enabled = options;\n } else if (typeof options === \"function\") {\n this.options.filter = options;\n enabled = true;\n }\n if (_filterInstanceProperty(this.options) === false) {\n enabled = false;\n }\n this.options.enabled = enabled;\n }\n this._clean();\n }\n\n /**\n *\n * @param {object} moduleOptions\n */\n }, {\n key: \"setModuleOptions\",\n value: function setModuleOptions(moduleOptions) {\n this.moduleOptions = moduleOptions;\n if (this.options.enabled === true) {\n this._clean();\n if (this.options.container !== undefined) {\n this.container = this.options.container;\n }\n this._create();\n }\n }\n\n /**\n * Create all DOM elements\n *\n * @private\n */\n }, {\n key: \"_create\",\n value: function _create() {\n this._clean();\n this.changedOptions = [];\n var filter = _filterInstanceProperty(this.options);\n var counter = 0;\n var show = false;\n for (var _option in this.configureOptions) {\n if (Object.prototype.hasOwnProperty.call(this.configureOptions, _option)) {\n this.allowCreation = false;\n show = false;\n if (typeof filter === \"function\") {\n show = filter(_option, []);\n show = show || this._handleObject(this.configureOptions[_option], [_option], true);\n } else if (filter === true || _indexOfInstanceProperty(filter).call(filter, _option) !== -1) {\n show = true;\n }\n if (show !== false) {\n this.allowCreation = true;\n\n // linebreak between categories\n if (counter > 0) {\n this._makeItem([]);\n }\n // a header for the category\n this._makeHeader(_option);\n\n // get the sub options\n this._handleObject(this.configureOptions[_option], [_option]);\n }\n counter++;\n }\n }\n this._makeButton();\n this._push();\n //~ this.colorPicker.insertTo(this.container);\n }\n\n /**\n * draw all DOM elements on the screen\n *\n * @private\n */\n }, {\n key: \"_push\",\n value: function _push() {\n this.wrapper = document.createElement(\"div\");\n this.wrapper.className = \"vis-configuration-wrapper\";\n this.container.appendChild(this.wrapper);\n for (var i = 0; i < this.domElements.length; i++) {\n this.wrapper.appendChild(this.domElements[i]);\n }\n this._showPopupIfNeeded();\n }\n\n /**\n * delete all DOM elements\n *\n * @private\n */\n }, {\n key: \"_clean\",\n value: function _clean() {\n for (var i = 0; i < this.domElements.length; i++) {\n this.wrapper.removeChild(this.domElements[i]);\n }\n if (this.wrapper !== undefined) {\n this.container.removeChild(this.wrapper);\n this.wrapper = undefined;\n }\n this.domElements = [];\n this._removePopup();\n }\n\n /**\n * get the value from the actualOptions if it exists\n *\n * @param {Array} path | where to look for the actual option\n * @returns {*}\n * @private\n */\n }, {\n key: \"_getValue\",\n value: function _getValue(path) {\n var base = this.moduleOptions;\n for (var i = 0; i < path.length; i++) {\n if (base[path[i]] !== undefined) {\n base = base[path[i]];\n } else {\n base = undefined;\n break;\n }\n }\n return base;\n }\n\n /**\n * all option elements are wrapped in an item\n *\n * @param {Array} path | where to look for the actual option\n * @param {Array.} domElements\n * @returns {number}\n * @private\n */\n }, {\n key: \"_makeItem\",\n value: function _makeItem(path) {\n if (this.allowCreation === true) {\n var item = document.createElement(\"div\");\n item.className = \"vis-configuration vis-config-item vis-config-s\" + path.length;\n for (var _len6 = arguments.length, domElements = new Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; _key6 < _len6; _key6++) {\n domElements[_key6 - 1] = arguments[_key6];\n }\n _forEachInstanceProperty(domElements).call(domElements, function (element) {\n item.appendChild(element);\n });\n this.domElements.push(item);\n return this.domElements.length;\n }\n return 0;\n }\n\n /**\n * header for major subjects\n *\n * @param {string} name\n * @private\n */\n }, {\n key: \"_makeHeader\",\n value: function _makeHeader(name) {\n var div = document.createElement(\"div\");\n div.className = \"vis-configuration vis-config-header\";\n div.innerText = name;\n this._makeItem([], div);\n }\n\n /**\n * make a label, if it is an object label, it gets different styling.\n *\n * @param {string} name\n * @param {Array} path | where to look for the actual option\n * @param {string} objectLabel\n * @returns {HTMLElement}\n * @private\n */\n }, {\n key: \"_makeLabel\",\n value: function _makeLabel(name, path) {\n var objectLabel = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var div = document.createElement(\"div\");\n div.className = \"vis-configuration vis-config-label vis-config-s\" + path.length;\n if (objectLabel === true) {\n while (div.firstChild) {\n div.removeChild(div.firstChild);\n }\n div.appendChild(wrapInTag(\"i\", \"b\", name));\n } else {\n div.innerText = name + \":\";\n }\n return div;\n }\n\n /**\n * make a dropdown list for multiple possible string optoins\n *\n * @param {Array.} arr\n * @param {number} value\n * @param {Array} path | where to look for the actual option\n * @private\n */\n }, {\n key: \"_makeDropdown\",\n value: function _makeDropdown(arr, value, path) {\n var select = document.createElement(\"select\");\n select.className = \"vis-configuration vis-config-select\";\n var selectedValue = 0;\n if (value !== undefined) {\n if (_indexOfInstanceProperty(arr).call(arr, value) !== -1) {\n selectedValue = _indexOfInstanceProperty(arr).call(arr, value);\n }\n }\n for (var i = 0; i < arr.length; i++) {\n var _option2 = document.createElement(\"option\");\n _option2.value = arr[i];\n if (i === selectedValue) {\n _option2.selected = \"selected\";\n }\n _option2.innerText = arr[i];\n select.appendChild(_option2);\n }\n var me = this;\n select.onchange = function () {\n me._update(this.value, path);\n };\n var label = this._makeLabel(path[path.length - 1], path);\n this._makeItem(path, label, select);\n }\n\n /**\n * make a range object for numeric options\n *\n * @param {Array.} arr\n * @param {number} value\n * @param {Array} path | where to look for the actual option\n * @private\n */\n }, {\n key: \"_makeRange\",\n value: function _makeRange(arr, value, path) {\n var defaultValue = arr[0];\n var min = arr[1];\n var max = arr[2];\n var step = arr[3];\n var range = document.createElement(\"input\");\n range.className = \"vis-configuration vis-config-range\";\n try {\n range.type = \"range\"; // not supported on IE9\n range.min = min;\n range.max = max;\n } catch (err) {\n // TODO: Add some error handling.\n }\n range.step = step;\n\n // set up the popup settings in case they are needed.\n var popupString = \"\";\n var popupValue = 0;\n if (value !== undefined) {\n var factor = 1.2;\n if (value < 0 && value * factor < min) {\n range.min = Math.ceil(value * factor);\n popupValue = range.min;\n popupString = \"range increased\";\n } else if (value / factor < min) {\n range.min = Math.ceil(value / factor);\n popupValue = range.min;\n popupString = \"range increased\";\n }\n if (value * factor > max && max !== 1) {\n range.max = Math.ceil(value * factor);\n popupValue = range.max;\n popupString = \"range increased\";\n }\n range.value = value;\n } else {\n range.value = defaultValue;\n }\n var input = document.createElement(\"input\");\n input.className = \"vis-configuration vis-config-rangeinput\";\n input.value = range.value;\n var me = this;\n range.onchange = function () {\n input.value = this.value;\n me._update(Number(this.value), path);\n };\n range.oninput = function () {\n input.value = this.value;\n };\n var label = this._makeLabel(path[path.length - 1], path);\n var itemIndex = this._makeItem(path, label, range, input);\n\n // if a popup is needed AND it has not been shown for this value, show it.\n if (popupString !== \"\" && this.popupHistory[itemIndex] !== popupValue) {\n this.popupHistory[itemIndex] = popupValue;\n this._setupPopup(popupString, itemIndex);\n }\n }\n\n /**\n * make a button object\n *\n * @private\n */\n }, {\n key: \"_makeButton\",\n value: function _makeButton() {\n var _this4 = this;\n if (this.options.showButton === true) {\n var generateButton = document.createElement(\"div\");\n generateButton.className = \"vis-configuration vis-config-button\";\n generateButton.innerText = \"generate options\";\n generateButton.onclick = function () {\n _this4._printOptions();\n };\n generateButton.onmouseover = function () {\n generateButton.className = \"vis-configuration vis-config-button hover\";\n };\n generateButton.onmouseout = function () {\n generateButton.className = \"vis-configuration vis-config-button\";\n };\n this.optionsContainer = document.createElement(\"div\");\n this.optionsContainer.className = \"vis-configuration vis-config-option-container\";\n this.domElements.push(this.optionsContainer);\n this.domElements.push(generateButton);\n }\n }\n\n /**\n * prepare the popup\n *\n * @param {string} string\n * @param {number} index\n * @private\n */\n }, {\n key: \"_setupPopup\",\n value: function _setupPopup(string, index) {\n var _this5 = this;\n if (this.initialized === true && this.allowCreation === true && this.popupCounter < this.popupLimit) {\n var div = document.createElement(\"div\");\n div.id = \"vis-configuration-popup\";\n div.className = \"vis-configuration-popup\";\n div.innerText = string;\n div.onclick = function () {\n _this5._removePopup();\n };\n this.popupCounter += 1;\n this.popupDiv = {\n html: div,\n index: index\n };\n }\n }\n\n /**\n * remove the popup from the dom\n *\n * @private\n */\n }, {\n key: \"_removePopup\",\n value: function _removePopup() {\n if (this.popupDiv.html !== undefined) {\n this.popupDiv.html.parentNode.removeChild(this.popupDiv.html);\n clearTimeout(this.popupDiv.hideTimeout);\n clearTimeout(this.popupDiv.deleteTimeout);\n this.popupDiv = {};\n }\n }\n\n /**\n * Show the popup if it is needed.\n *\n * @private\n */\n }, {\n key: \"_showPopupIfNeeded\",\n value: function _showPopupIfNeeded() {\n var _this6 = this;\n if (this.popupDiv.html !== undefined) {\n var correspondingElement = this.domElements[this.popupDiv.index];\n var rect = correspondingElement.getBoundingClientRect();\n this.popupDiv.html.style.left = rect.left + \"px\";\n this.popupDiv.html.style.top = rect.top - 30 + \"px\"; // 30 is the height;\n document.body.appendChild(this.popupDiv.html);\n this.popupDiv.hideTimeout = _setTimeout(function () {\n _this6.popupDiv.html.style.opacity = 0;\n }, 1500);\n this.popupDiv.deleteTimeout = _setTimeout(function () {\n _this6._removePopup();\n }, 1800);\n }\n }\n\n /**\n * make a checkbox for boolean options.\n *\n * @param {number} defaultValue\n * @param {number} value\n * @param {Array} path | where to look for the actual option\n * @private\n */\n }, {\n key: \"_makeCheckbox\",\n value: function _makeCheckbox(defaultValue, value, path) {\n var checkbox = document.createElement(\"input\");\n checkbox.type = \"checkbox\";\n checkbox.className = \"vis-configuration vis-config-checkbox\";\n checkbox.checked = defaultValue;\n if (value !== undefined) {\n checkbox.checked = value;\n if (value !== defaultValue) {\n if (_typeof$1(defaultValue) === \"object\") {\n if (value !== defaultValue.enabled) {\n this.changedOptions.push({\n path: path,\n value: value\n });\n }\n } else {\n this.changedOptions.push({\n path: path,\n value: value\n });\n }\n }\n }\n var me = this;\n checkbox.onchange = function () {\n me._update(this.checked, path);\n };\n var label = this._makeLabel(path[path.length - 1], path);\n this._makeItem(path, label, checkbox);\n }\n\n /**\n * make a text input field for string options.\n *\n * @param {number} defaultValue\n * @param {number} value\n * @param {Array} path | where to look for the actual option\n * @private\n */\n }, {\n key: \"_makeTextInput\",\n value: function _makeTextInput(defaultValue, value, path) {\n var checkbox = document.createElement(\"input\");\n checkbox.type = \"text\";\n checkbox.className = \"vis-configuration vis-config-text\";\n checkbox.value = value;\n if (value !== defaultValue) {\n this.changedOptions.push({\n path: path,\n value: value\n });\n }\n var me = this;\n checkbox.onchange = function () {\n me._update(this.value, path);\n };\n var label = this._makeLabel(path[path.length - 1], path);\n this._makeItem(path, label, checkbox);\n }\n\n /**\n * make a color field with a color picker for color fields\n *\n * @param {Array.} arr\n * @param {number} value\n * @param {Array} path | where to look for the actual option\n * @private\n */\n }, {\n key: \"_makeColorField\",\n value: function _makeColorField(arr, value, path) {\n var _this7 = this;\n var defaultColor = arr[1];\n var div = document.createElement(\"div\");\n value = value === undefined ? defaultColor : value;\n if (value !== \"none\") {\n div.className = \"vis-configuration vis-config-colorBlock\";\n div.style.backgroundColor = value;\n } else {\n div.className = \"vis-configuration vis-config-colorBlock none\";\n }\n value = value === undefined ? defaultColor : value;\n div.onclick = function () {\n _this7._showColorPicker(value, div, path);\n };\n var label = this._makeLabel(path[path.length - 1], path);\n this._makeItem(path, label, div);\n }\n\n /**\n * used by the color buttons to call the color picker.\n *\n * @param {number} value\n * @param {HTMLElement} div\n * @param {Array} path | where to look for the actual option\n * @private\n */\n }, {\n key: \"_showColorPicker\",\n value: function _showColorPicker(value, div, path) {\n var _this8 = this;\n // clear the callback from this div\n div.onclick = function () {};\n this.colorPicker.insertTo(div);\n this.colorPicker.show();\n this.colorPicker.setColor(value);\n this.colorPicker.setUpdateCallback(function (color) {\n var colorString = \"rgba(\" + color.r + \",\" + color.g + \",\" + color.b + \",\" + color.a + \")\";\n div.style.backgroundColor = colorString;\n _this8._update(colorString, path);\n });\n\n // on close of the colorpicker, restore the callback.\n this.colorPicker.setCloseCallback(function () {\n div.onclick = function () {\n _this8._showColorPicker(value, div, path);\n };\n });\n }\n\n /**\n * parse an object and draw the correct items\n *\n * @param {object} obj\n * @param {Array} [path=[]] | where to look for the actual option\n * @param {boolean} [checkOnly=false]\n * @returns {boolean}\n * @private\n */\n }, {\n key: \"_handleObject\",\n value: function _handleObject(obj) {\n var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n var checkOnly = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var show = false;\n var filter = _filterInstanceProperty(this.options);\n var visibleInSet = false;\n for (var subObj in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, subObj)) {\n show = true;\n var item = obj[subObj];\n var newPath = copyAndExtendArray(path, subObj);\n if (typeof filter === \"function\") {\n show = filter(subObj, path);\n\n // if needed we must go deeper into the object.\n if (show === false) {\n if (!_Array$isArray(item) && typeof item !== \"string\" && typeof item !== \"boolean\" && item instanceof Object) {\n this.allowCreation = false;\n show = this._handleObject(item, newPath, true);\n this.allowCreation = checkOnly === false;\n }\n }\n }\n if (show !== false) {\n visibleInSet = true;\n var value = this._getValue(newPath);\n if (_Array$isArray(item)) {\n this._handleArray(item, value, newPath);\n } else if (typeof item === \"string\") {\n this._makeTextInput(item, value, newPath);\n } else if (typeof item === \"boolean\") {\n this._makeCheckbox(item, value, newPath);\n } else if (item instanceof Object) {\n // skip the options that are not enabled\n if (!this.hideOption(path, subObj, this.moduleOptions)) {\n // initially collapse options with an disabled enabled option.\n if (item.enabled !== undefined) {\n var enabledPath = copyAndExtendArray(newPath, \"enabled\");\n var enabledValue = this._getValue(enabledPath);\n if (enabledValue === true) {\n var label = this._makeLabel(subObj, newPath, true);\n this._makeItem(newPath, label);\n visibleInSet = this._handleObject(item, newPath) || visibleInSet;\n } else {\n this._makeCheckbox(item, enabledValue, newPath);\n }\n } else {\n var _label = this._makeLabel(subObj, newPath, true);\n this._makeItem(newPath, _label);\n visibleInSet = this._handleObject(item, newPath) || visibleInSet;\n }\n }\n } else {\n console.error(\"dont know how to handle\", item, subObj, newPath);\n }\n }\n }\n }\n return visibleInSet;\n }\n\n /**\n * handle the array type of option\n *\n * @param {Array.} arr\n * @param {number} value\n * @param {Array} path | where to look for the actual option\n * @private\n */\n }, {\n key: \"_handleArray\",\n value: function _handleArray(arr, value, path) {\n if (typeof arr[0] === \"string\" && arr[0] === \"color\") {\n this._makeColorField(arr, value, path);\n if (arr[1] !== value) {\n this.changedOptions.push({\n path: path,\n value: value\n });\n }\n } else if (typeof arr[0] === \"string\") {\n this._makeDropdown(arr, value, path);\n if (arr[0] !== value) {\n this.changedOptions.push({\n path: path,\n value: value\n });\n }\n } else if (typeof arr[0] === \"number\") {\n this._makeRange(arr, value, path);\n if (arr[0] !== value) {\n this.changedOptions.push({\n path: path,\n value: Number(value)\n });\n }\n }\n }\n\n /**\n * called to update the network with the new settings.\n *\n * @param {number} value\n * @param {Array} path | where to look for the actual option\n * @private\n */\n }, {\n key: \"_update\",\n value: function _update(value, path) {\n var options = this._constructOptions(value, path);\n if (this.parent.body && this.parent.body.emitter && this.parent.body.emitter.emit) {\n this.parent.body.emitter.emit(\"configChange\", options);\n }\n this.initialized = true;\n this.parent.setOptions(options);\n }\n\n /**\n *\n * @param {string | boolean} value\n * @param {Array.} path\n * @param {{}} optionsObj\n * @returns {{}}\n * @private\n */\n }, {\n key: \"_constructOptions\",\n value: function _constructOptions(value, path) {\n var optionsObj = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var pointer = optionsObj;\n\n // when dropdown boxes can be string or boolean, we typecast it into correct types\n value = value === \"true\" ? true : value;\n value = value === \"false\" ? false : value;\n for (var i = 0; i < path.length; i++) {\n if (path[i] !== \"global\") {\n if (pointer[path[i]] === undefined) {\n pointer[path[i]] = {};\n }\n if (i !== path.length - 1) {\n pointer = pointer[path[i]];\n } else {\n pointer[path[i]] = value;\n }\n }\n }\n return optionsObj;\n }\n\n /**\n * @private\n */\n }, {\n key: \"_printOptions\",\n value: function _printOptions() {\n var options = this.getOptions();\n while (this.optionsContainer.firstChild) {\n this.optionsContainer.removeChild(this.optionsContainer.firstChild);\n }\n this.optionsContainer.appendChild(wrapInTag(\"pre\", \"const options = \" + _JSON$stringify(options, null, 2)));\n }\n\n /**\n *\n * @returns {{}} options\n */\n }, {\n key: \"getOptions\",\n value: function getOptions() {\n var options = {};\n for (var i = 0; i < this.changedOptions.length; i++) {\n this._constructOptions(this.changedOptions[i].value, this.changedOptions[i].path, options);\n }\n return options;\n }\n }]);\n return Configurator$1;\n}();\n/**\n * Popup is a class to create a popup window with some text\n */\nvar Popup$1 = /*#__PURE__*/function () {\n /**\n * @param {Element} container The container object.\n * @param {string} overflowMethod How the popup should act to overflowing ('flip' or 'cap')\n */\n function Popup$1(container, overflowMethod) {\n _classCallCheck(this, Popup$1);\n this.container = container;\n this.overflowMethod = overflowMethod || \"cap\";\n this.x = 0;\n this.y = 0;\n this.padding = 5;\n this.hidden = false;\n\n // create the frame\n this.frame = document.createElement(\"div\");\n this.frame.className = \"vis-tooltip\";\n this.container.appendChild(this.frame);\n }\n\n /**\n * @param {number} x Horizontal position of the popup window\n * @param {number} y Vertical position of the popup window\n */\n _createClass(Popup$1, [{\n key: \"setPosition\",\n value: function setPosition(x, y) {\n this.x = _parseInt(x);\n this.y = _parseInt(y);\n }\n\n /**\n * Set the content for the popup window. This can be HTML code or text.\n *\n * @param {string | Element} content\n */\n }, {\n key: \"setText\",\n value: function setText(content) {\n if (content instanceof Element) {\n while (this.frame.firstChild) {\n this.frame.removeChild(this.frame.firstChild);\n }\n this.frame.appendChild(content);\n } else {\n // String containing literal text, element has to be used for HTML due to\n // XSS risks associated with innerHTML (i.e. prevent XSS by accident).\n this.frame.innerText = content;\n }\n }\n\n /**\n * Show the popup window\n *\n * @param {boolean} [doShow] Show or hide the window\n */\n }, {\n key: \"show\",\n value: function show(doShow) {\n if (doShow === undefined) {\n doShow = true;\n }\n if (doShow === true) {\n var height = this.frame.clientHeight;\n var width = this.frame.clientWidth;\n var maxHeight = this.frame.parentNode.clientHeight;\n var maxWidth = this.frame.parentNode.clientWidth;\n var left = 0,\n top = 0;\n if (this.overflowMethod == \"flip\") {\n var isLeft = false,\n isTop = true; // Where around the position it's located\n\n if (this.y - height < this.padding) {\n isTop = false;\n }\n if (this.x + width > maxWidth - this.padding) {\n isLeft = true;\n }\n if (isLeft) {\n left = this.x - width;\n } else {\n left = this.x;\n }\n if (isTop) {\n top = this.y - height;\n } else {\n top = this.y;\n }\n } else {\n top = this.y - height;\n if (top + height + this.padding > maxHeight) {\n top = maxHeight - height - this.padding;\n }\n if (top < this.padding) {\n top = this.padding;\n }\n left = this.x;\n if (left + width + this.padding > maxWidth) {\n left = maxWidth - width - this.padding;\n }\n if (left < this.padding) {\n left = this.padding;\n }\n }\n this.frame.style.left = left + \"px\";\n this.frame.style.top = top + \"px\";\n this.frame.style.visibility = \"visible\";\n this.hidden = false;\n } else {\n this.hide();\n }\n }\n\n /**\n * Hide the popup window\n */\n }, {\n key: \"hide\",\n value: function hide() {\n this.hidden = true;\n this.frame.style.left = \"0\";\n this.frame.style.top = \"0\";\n this.frame.style.visibility = \"hidden\";\n }\n\n /**\n * Remove the popup window\n */\n }, {\n key: \"destroy\",\n value: function destroy() {\n this.frame.parentNode.removeChild(this.frame); // Remove element from DOM\n }\n }]);\n return Popup$1;\n}();\nvar errorFound = false;\nvar allOptions$1;\nvar VALIDATOR_PRINT_STYLE$1 = \"background: #FFeeee; color: #dd0000\";\n\n/**\n * Used to validate options.\n */\nvar Validator$1 = /*#__PURE__*/function () {\n function Validator$1() {\n _classCallCheck(this, Validator$1);\n }\n _createClass(Validator$1, null, [{\n key: \"validate\",\n value:\n /**\n * Main function to be called\n *\n * @param {object} options\n * @param {object} referenceOptions\n * @param {object} subObject\n * @returns {boolean}\n * @static\n */\n function validate(options, referenceOptions, subObject) {\n errorFound = false;\n allOptions$1 = referenceOptions;\n var usedOptions = referenceOptions;\n if (subObject !== undefined) {\n usedOptions = referenceOptions[subObject];\n }\n Validator$1.parse(options, usedOptions, []);\n return errorFound;\n }\n\n /**\n * Will traverse an object recursively and check every value\n *\n * @param {object} options\n * @param {object} referenceOptions\n * @param {Array} path | where to look for the actual option\n * @static\n */\n }, {\n key: \"parse\",\n value: function parse(options, referenceOptions, path) {\n for (var _option3 in options) {\n if (Object.prototype.hasOwnProperty.call(options, _option3)) {\n Validator$1.check(_option3, options, referenceOptions, path);\n }\n }\n }\n\n /**\n * Check every value. If the value is an object, call the parse function on that object.\n *\n * @param {string} option\n * @param {object} options\n * @param {object} referenceOptions\n * @param {Array} path | where to look for the actual option\n * @static\n */\n }, {\n key: \"check\",\n value: function check(option, options, referenceOptions, path) {\n if (referenceOptions[option] === undefined && referenceOptions.__any__ === undefined) {\n Validator$1.getSuggestion(option, referenceOptions, path);\n return;\n }\n var referenceOption = option;\n var is_object = true;\n if (referenceOptions[option] === undefined && referenceOptions.__any__ !== undefined) {\n // NOTE: This only triggers if the __any__ is in the top level of the options object.\n // THAT'S A REALLY BAD PLACE TO ALLOW IT!!!!\n // TODO: Examine if needed, remove if possible\n\n // __any__ is a wildcard. Any value is accepted and will be further analysed by reference.\n referenceOption = \"__any__\";\n\n // if the any-subgroup is not a predefined object in the configurator,\n // we do not look deeper into the object.\n is_object = Validator$1.getType(options[option]) === \"object\";\n }\n var refOptionObj = referenceOptions[referenceOption];\n if (is_object && refOptionObj.__type__ !== undefined) {\n refOptionObj = refOptionObj.__type__;\n }\n Validator$1.checkFields(option, options, referenceOptions, referenceOption, refOptionObj, path);\n }\n\n /**\n *\n * @param {string} option | the option property\n * @param {object} options | The supplied options object\n * @param {object} referenceOptions | The reference options containing all options and their allowed formats\n * @param {string} referenceOption | Usually this is the same as option, except when handling an __any__ tag.\n * @param {string} refOptionObj | This is the type object from the reference options\n * @param {Array} path | where in the object is the option\n * @static\n */\n }, {\n key: \"checkFields\",\n value: function checkFields(option, options, referenceOptions, referenceOption, refOptionObj, path) {\n var log = function log(message) {\n console.error(\"%c\" + message + Validator$1.printLocation(path, option), VALIDATOR_PRINT_STYLE$1);\n };\n var optionType = Validator$1.getType(options[option]);\n var refOptionType = refOptionObj[optionType];\n if (refOptionType !== undefined) {\n // if the type is correct, we check if it is supposed to be one of a few select values\n if (Validator$1.getType(refOptionType) === \"array\" && _indexOfInstanceProperty(refOptionType).call(refOptionType, options[option]) === -1) {\n log('Invalid option detected in \"' + option + '\".' + \" Allowed values are:\" + Validator$1.print(refOptionType) + ' not \"' + options[option] + '\". ');\n errorFound = true;\n } else if (optionType === \"object\" && referenceOption !== \"__any__\") {\n path = copyAndExtendArray(path, option);\n Validator$1.parse(options[option], referenceOptions[referenceOption], path);\n }\n } else if (refOptionObj[\"any\"] === undefined) {\n // type of the field is incorrect and the field cannot be any\n log('Invalid type received for \"' + option + '\". Expected: ' + Validator$1.print(_Object$keys(refOptionObj)) + \". Received [\" + optionType + '] \"' + options[option] + '\"');\n errorFound = true;\n }\n }\n\n /**\n *\n * @param {object | boolean | number | string | Array. | Date | Node | Moment | undefined | null} object\n * @returns {string}\n * @static\n */\n }, {\n key: \"getType\",\n value: function getType(object) {\n var type = _typeof$1(object);\n if (type === \"object\") {\n if (object === null) {\n return \"null\";\n }\n if (object instanceof Boolean) {\n return \"boolean\";\n }\n if (object instanceof Number) {\n return \"number\";\n }\n if (object instanceof String) {\n return \"string\";\n }\n if (_Array$isArray(object)) {\n return \"array\";\n }\n if (object instanceof Date) {\n return \"date\";\n }\n if (object.nodeType !== undefined) {\n return \"dom\";\n }\n if (object._isAMomentObject === true) {\n return \"moment\";\n }\n return \"object\";\n } else if (type === \"number\") {\n return \"number\";\n } else if (type === \"boolean\") {\n return \"boolean\";\n } else if (type === \"string\") {\n return \"string\";\n } else if (type === undefined) {\n return \"undefined\";\n }\n return type;\n }\n\n /**\n * @param {string} option\n * @param {object} options\n * @param {Array.} path\n * @static\n */\n }, {\n key: \"getSuggestion\",\n value: function getSuggestion(option, options, path) {\n var localSearch = Validator$1.findInOptions(option, options, path, false);\n var globalSearch = Validator$1.findInOptions(option, allOptions$1, [], true);\n var localSearchThreshold = 8;\n var globalSearchThreshold = 4;\n var msg;\n if (localSearch.indexMatch !== undefined) {\n msg = \" in \" + Validator$1.printLocation(localSearch.path, option, \"\") + 'Perhaps it was incomplete? Did you mean: \"' + localSearch.indexMatch + '\"?\\n\\n';\n } else if (globalSearch.distance <= globalSearchThreshold && localSearch.distance > globalSearch.distance) {\n msg = \" in \" + Validator$1.printLocation(localSearch.path, option, \"\") + \"Perhaps it was misplaced? Matching option found at: \" + Validator$1.printLocation(globalSearch.path, globalSearch.closestMatch, \"\");\n } else if (localSearch.distance <= localSearchThreshold) {\n msg = '. Did you mean \"' + localSearch.closestMatch + '\"?' + Validator$1.printLocation(localSearch.path, option);\n } else {\n msg = \". Did you mean one of these: \" + Validator$1.print(_Object$keys(options)) + Validator$1.printLocation(path, option);\n }\n console.error('%cUnknown option detected: \"' + option + '\"' + msg, VALIDATOR_PRINT_STYLE$1);\n errorFound = true;\n }\n\n /**\n * traverse the options in search for a match.\n *\n * @param {string} option\n * @param {object} options\n * @param {Array} path | where to look for the actual option\n * @param {boolean} [recursive=false]\n * @returns {{closestMatch: string, path: Array, distance: number}}\n * @static\n */\n }, {\n key: \"findInOptions\",\n value: function findInOptions(option, options, path) {\n var recursive = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var min = 1e9;\n var closestMatch = \"\";\n var closestMatchPath = [];\n var lowerCaseOption = option.toLowerCase();\n var indexMatch = undefined;\n for (var op in options) {\n var distance = void 0;\n if (options[op].__type__ !== undefined && recursive === true) {\n var result = Validator$1.findInOptions(option, options[op], copyAndExtendArray(path, op));\n if (min > result.distance) {\n closestMatch = result.closestMatch;\n closestMatchPath = result.path;\n min = result.distance;\n indexMatch = result.indexMatch;\n }\n } else {\n var _context20;\n if (_indexOfInstanceProperty(_context20 = op.toLowerCase()).call(_context20, lowerCaseOption) !== -1) {\n indexMatch = op;\n }\n distance = Validator$1.levenshteinDistance(option, op);\n if (min > distance) {\n closestMatch = op;\n closestMatchPath = copyArray(path);\n min = distance;\n }\n }\n }\n return {\n closestMatch: closestMatch,\n path: closestMatchPath,\n distance: min,\n indexMatch: indexMatch\n };\n }\n\n /**\n * @param {Array.} path\n * @param {object} option\n * @param {string} prefix\n * @returns {string}\n * @static\n */\n }, {\n key: \"printLocation\",\n value: function printLocation(path, option) {\n var prefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"Problem value found at: \\n\";\n var str = \"\\n\\n\" + prefix + \"options = {\\n\";\n for (var i = 0; i < path.length; i++) {\n for (var j = 0; j < i + 1; j++) {\n str += \" \";\n }\n str += path[i] + \": {\\n\";\n }\n for (var _j = 0; _j < path.length + 1; _j++) {\n str += \" \";\n }\n str += option + \"\\n\";\n for (var _i3 = 0; _i3 < path.length + 1; _i3++) {\n for (var _j2 = 0; _j2 < path.length - _i3; _j2++) {\n str += \" \";\n }\n str += \"}\\n\";\n }\n return str + \"\\n\\n\";\n }\n\n /**\n * @param {object} options\n * @returns {string}\n * @static\n */\n }, {\n key: \"print\",\n value: function print(options) {\n return _JSON$stringify(options).replace(/(\")|(\\[)|(\\])|(,\"__type__\")/g, \"\").replace(/(,)/g, \", \");\n }\n\n /**\n * Compute the edit distance between the two given strings\n * http://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Levenshtein_distance#JavaScript\n *\n * Copyright (c) 2011 Andrei Mackenzie\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n *\n * @param {string} a\n * @param {string} b\n * @returns {Array.>}}\n * @static\n */\n }, {\n key: \"levenshteinDistance\",\n value: function levenshteinDistance(a, b) {\n if (a.length === 0) return b.length;\n if (b.length === 0) return a.length;\n var matrix = [];\n\n // increment along the first column of each row\n var i;\n for (i = 0; i <= b.length; i++) {\n matrix[i] = [i];\n }\n\n // increment each column in the first row\n var j;\n for (j = 0; j <= a.length; j++) {\n matrix[0][j] = j;\n }\n\n // Fill in the rest of the matrix\n for (i = 1; i <= b.length; i++) {\n for (j = 1; j <= a.length; j++) {\n if (b.charAt(i - 1) == a.charAt(j - 1)) {\n matrix[i][j] = matrix[i - 1][j - 1];\n } else {\n matrix[i][j] = Math.min(matrix[i - 1][j - 1] + 1,\n // substitution\n Math.min(matrix[i][j - 1] + 1,\n // insertion\n matrix[i - 1][j] + 1)); // deletion\n }\n }\n }\n\n return matrix[b.length][a.length];\n }\n }]);\n return Validator$1;\n}();\nvar Activator = Activator$1;\nvar Configurator = Configurator$1;\nvar Hammer = Hammer$1;\nvar Popup = Popup$1;\nvar VALIDATOR_PRINT_STYLE = VALIDATOR_PRINT_STYLE$1;\nvar Validator = Validator$1;\n\n/* eslint-disable no-prototype-builtins */\n/* eslint-disable no-unused-vars */\n/* eslint-disable no-var */\n\n/**\n * Parse a text source containing data in DOT language into a JSON object.\n * The object contains two lists: one with nodes and one with edges.\n *\n * DOT language reference: http://www.graphviz.org/doc/info/lang.html\n *\n * DOT language attributes: http://graphviz.org/content/attrs\n *\n * @param {string} data Text containing a graph in DOT-notation\n * @returns {object} graph An object containing two parameters:\n * {Object[]} nodes\n * {Object[]} edges\n *\n * -------------------------------------------\n * TODO\n * ====\n *\n * For label handling, this is an incomplete implementation. From docs (quote #3015):\n *\n * > the escape sequences \"\\n\", \"\\l\" and \"\\r\" divide the label into lines, centered,\n * > left-justified, and right-justified, respectively.\n *\n * Source: http://www.graphviz.org/content/attrs#kescString\n *\n * > As another aid for readability, dot allows double-quoted strings to span multiple physical\n * > lines using the standard C convention of a backslash immediately preceding a newline\n * > character\n * > In addition, double-quoted strings can be concatenated using a '+' operator.\n * > As HTML strings can contain newline characters, which are used solely for formatting,\n * > the language does not allow escaped newlines or concatenation operators to be used\n * > within them.\n *\n * - Currently, only '\\\\n' is handled\n * - Note that text explicitly says 'labels'; the dot parser currently handles escape\n * sequences in **all** strings.\n */\nfunction parseDOT(data) {\n dot = data;\n return parseGraph();\n}\n\n// mapping of attributes from DOT (the keys) to vis.js (the values)\nvar NODE_ATTR_MAPPING = {\n fontsize: \"font.size\",\n fontcolor: \"font.color\",\n labelfontcolor: \"font.color\",\n fontname: \"font.face\",\n color: [\"color.border\", \"color.background\"],\n fillcolor: \"color.background\",\n tooltip: \"title\",\n labeltooltip: \"title\"\n};\nvar EDGE_ATTR_MAPPING = _Object$create$1(NODE_ATTR_MAPPING);\nEDGE_ATTR_MAPPING.color = \"color.color\";\nEDGE_ATTR_MAPPING.style = \"dashes\";\n\n// token types enumeration\nvar TOKENTYPE = {\n NULL: 0,\n DELIMITER: 1,\n IDENTIFIER: 2,\n UNKNOWN: 3\n};\n\n// map with all delimiters\nvar DELIMITERS = {\n \"{\": true,\n \"}\": true,\n \"[\": true,\n \"]\": true,\n \";\": true,\n \"=\": true,\n \",\": true,\n \"->\": true,\n \"--\": true\n};\nvar dot = \"\"; // current dot file\nvar index$1 = 0; // current index in dot file\nvar c = \"\"; // current token character in expr\nvar token = \"\"; // current token\nvar tokenType = TOKENTYPE.NULL; // type of the token\n\n/**\n * Get the first character from the dot file.\n * The character is stored into the char c. If the end of the dot file is\n * reached, the function puts an empty string in c.\n */\nfunction first() {\n index$1 = 0;\n c = dot.charAt(0);\n}\n\n/**\n * Get the next character from the dot file.\n * The character is stored into the char c. If the end of the dot file is\n * reached, the function puts an empty string in c.\n */\nfunction next() {\n index$1++;\n c = dot.charAt(index$1);\n}\n\n/**\n * Preview the next character from the dot file.\n *\n * @returns {string} cNext\n */\nfunction nextPreview() {\n return dot.charAt(index$1 + 1);\n}\n\n/**\n * Test whether given character is alphabetic or numeric ( a-zA-Z_0-9.:# )\n *\n * @param {string} c\n * @returns {boolean} isAlphaNumeric\n */\nfunction isAlphaNumeric(c) {\n var charCode = c.charCodeAt(0);\n if (charCode < 47) {\n // #.\n return charCode === 35 || charCode === 46;\n }\n if (charCode < 59) {\n // 0-9 and :\n return charCode > 47;\n }\n if (charCode < 91) {\n // A-Z\n return charCode > 64;\n }\n if (charCode < 96) {\n // _\n return charCode === 95;\n }\n if (charCode < 123) {\n // a-z\n return charCode > 96;\n }\n return false;\n}\n\n/**\n * Merge all options of object b into object b\n *\n * @param {object} a\n * @param {object} b\n * @returns {object} a\n */\nfunction merge$1(a, b) {\n if (!a) {\n a = {};\n }\n if (b) {\n for (var name in b) {\n if (b.hasOwnProperty(name)) {\n a[name] = b[name];\n }\n }\n }\n return a;\n}\n\n/**\n * Set a value in an object, where the provided parameter name can be a\n * path with nested parameters. For example:\n *\n * var obj = {a: 2};\n * setValue(obj, 'b.c', 3); // obj = {a: 2, b: {c: 3}}\n *\n * @param {object} obj\n * @param {string} path A parameter name or dot-separated parameter path,\n * like \"color.highlight.border\".\n * @param {*} value\n */\nfunction setValue(obj, path, value) {\n var keys = path.split(\".\");\n var o = obj;\n while (keys.length) {\n var key = keys.shift();\n if (keys.length) {\n // this isn't the end point\n if (!o[key]) {\n o[key] = {};\n }\n o = o[key];\n } else {\n // this is the end point\n o[key] = value;\n }\n }\n}\n\n/**\n * Add a node to a graph object. If there is already a node with\n * the same id, their attributes will be merged.\n *\n * @param {object} graph\n * @param {object} node\n */\nfunction addNode(graph, node) {\n var i, len;\n var current = null;\n\n // find root graph (in case of subgraph)\n var graphs = [graph]; // list with all graphs from current graph to root graph\n var root = graph;\n while (root.parent) {\n graphs.push(root.parent);\n root = root.parent;\n }\n\n // find existing node (at root level) by its id\n if (root.nodes) {\n for (i = 0, len = root.nodes.length; i < len; i++) {\n if (node.id === root.nodes[i].id) {\n current = root.nodes[i];\n break;\n }\n }\n }\n if (!current) {\n // this is a new node\n current = {\n id: node.id\n };\n if (graph.node) {\n // clone default attributes\n current.attr = merge$1(current.attr, graph.node);\n }\n }\n\n // add node to this (sub)graph and all its parent graphs\n for (i = graphs.length - 1; i >= 0; i--) {\n var _context;\n var g = graphs[i];\n if (!g.nodes) {\n g.nodes = [];\n }\n if (_indexOfInstanceProperty(_context = g.nodes).call(_context, current) === -1) {\n g.nodes.push(current);\n }\n }\n\n // merge attributes\n if (node.attr) {\n current.attr = merge$1(current.attr, node.attr);\n }\n}\n\n/**\n * Add an edge to a graph object\n *\n * @param {object} graph\n * @param {object} edge\n */\nfunction addEdge(graph, edge) {\n if (!graph.edges) {\n graph.edges = [];\n }\n graph.edges.push(edge);\n if (graph.edge) {\n var attr = merge$1({}, graph.edge); // clone default attributes\n edge.attr = merge$1(attr, edge.attr); // merge attributes\n }\n}\n\n/**\n * Create an edge to a graph object\n *\n * @param {object} graph\n * @param {string | number | object} from\n * @param {string | number | object} to\n * @param {string} type\n * @param {object | null} attr\n * @returns {object} edge\n */\nfunction createEdge(graph, from, to, type, attr) {\n var edge = {\n from: from,\n to: to,\n type: type\n };\n if (graph.edge) {\n edge.attr = merge$1({}, graph.edge); // clone default attributes\n }\n\n edge.attr = merge$1(edge.attr || {}, attr); // merge attributes\n\n // Move arrows attribute from attr to edge temporally created in\n // parseAttributeList().\n if (attr != null) {\n if (attr.hasOwnProperty(\"arrows\") && attr[\"arrows\"] != null) {\n edge[\"arrows\"] = {\n to: {\n enabled: true,\n type: attr.arrows.type\n }\n };\n attr[\"arrows\"] = null;\n }\n }\n return edge;\n}\n\n/**\n * Get next token in the current dot file.\n * The token and token type are available as token and tokenType\n */\nfunction getToken() {\n tokenType = TOKENTYPE.NULL;\n token = \"\";\n\n // skip over whitespaces\n while (c === \" \" || c === \"\\t\" || c === \"\\n\" || c === \"\\r\") {\n // space, tab, enter\n next();\n }\n do {\n var isComment = false;\n\n // skip comment\n if (c === \"#\") {\n // find the previous non-space character\n var i = index$1 - 1;\n while (dot.charAt(i) === \" \" || dot.charAt(i) === \"\\t\") {\n i--;\n }\n if (dot.charAt(i) === \"\\n\" || dot.charAt(i) === \"\") {\n // the # is at the start of a line, this is indeed a line comment\n while (c != \"\" && c != \"\\n\") {\n next();\n }\n isComment = true;\n }\n }\n if (c === \"/\" && nextPreview() === \"/\") {\n // skip line comment\n while (c != \"\" && c != \"\\n\") {\n next();\n }\n isComment = true;\n }\n if (c === \"/\" && nextPreview() === \"*\") {\n // skip block comment\n while (c != \"\") {\n if (c === \"*\" && nextPreview() === \"/\") {\n // end of block comment found. skip these last two characters\n next();\n next();\n break;\n } else {\n next();\n }\n }\n isComment = true;\n }\n\n // skip over whitespaces\n while (c === \" \" || c === \"\\t\" || c === \"\\n\" || c === \"\\r\") {\n // space, tab, enter\n next();\n }\n } while (isComment);\n\n // check for end of dot file\n if (c === \"\") {\n // token is still empty\n tokenType = TOKENTYPE.DELIMITER;\n return;\n }\n\n // check for delimiters consisting of 2 characters\n var c2 = c + nextPreview();\n if (DELIMITERS[c2]) {\n tokenType = TOKENTYPE.DELIMITER;\n token = c2;\n next();\n next();\n return;\n }\n\n // check for delimiters consisting of 1 character\n if (DELIMITERS[c]) {\n tokenType = TOKENTYPE.DELIMITER;\n token = c;\n next();\n return;\n }\n\n // check for an identifier (number or string)\n // TODO: more precise parsing of numbers/strings (and the port separator ':')\n if (isAlphaNumeric(c) || c === \"-\") {\n token += c;\n next();\n while (isAlphaNumeric(c)) {\n token += c;\n next();\n }\n if (token === \"false\") {\n token = false; // convert to boolean\n } else if (token === \"true\") {\n token = true; // convert to boolean\n } else if (!isNaN(Number(token))) {\n token = Number(token); // convert to number\n }\n\n tokenType = TOKENTYPE.IDENTIFIER;\n return;\n }\n\n // check for a string enclosed by double quotes\n if (c === '\"') {\n next();\n while (c != \"\" && (c != '\"' || c === '\"' && nextPreview() === '\"')) {\n if (c === '\"') {\n // skip the escape character\n token += c;\n next();\n } else if (c === \"\\\\\" && nextPreview() === \"n\") {\n // Honor a newline escape sequence\n token += \"\\n\";\n next();\n } else {\n token += c;\n }\n next();\n }\n if (c != '\"') {\n throw newSyntaxError('End of string \" expected');\n }\n next();\n tokenType = TOKENTYPE.IDENTIFIER;\n return;\n }\n\n // something unknown is found, wrong characters, a syntax error\n tokenType = TOKENTYPE.UNKNOWN;\n while (c != \"\") {\n token += c;\n next();\n }\n throw new SyntaxError('Syntax error in part \"' + chop(token, 30) + '\"');\n}\n\n/**\n * Parse a graph.\n *\n * @returns {object} graph\n */\nfunction parseGraph() {\n var graph = {};\n first();\n getToken();\n\n // optional strict keyword\n if (token === \"strict\") {\n graph.strict = true;\n getToken();\n }\n\n // graph or digraph keyword\n if (token === \"graph\" || token === \"digraph\") {\n graph.type = token;\n getToken();\n }\n\n // optional graph id\n if (tokenType === TOKENTYPE.IDENTIFIER) {\n graph.id = token;\n getToken();\n }\n\n // open angle bracket\n if (token != \"{\") {\n throw newSyntaxError(\"Angle bracket { expected\");\n }\n getToken();\n\n // statements\n parseStatements(graph);\n\n // close angle bracket\n if (token != \"}\") {\n throw newSyntaxError(\"Angle bracket } expected\");\n }\n getToken();\n\n // end of file\n if (token !== \"\") {\n throw newSyntaxError(\"End of file expected\");\n }\n getToken();\n\n // remove temporary default options\n delete graph.node;\n delete graph.edge;\n delete graph.graph;\n return graph;\n}\n\n/**\n * Parse a list with statements.\n *\n * @param {object} graph\n */\nfunction parseStatements(graph) {\n while (token !== \"\" && token != \"}\") {\n parseStatement(graph);\n if (token === \";\") {\n getToken();\n }\n }\n}\n\n/**\n * Parse a single statement. Can be a an attribute statement, node\n * statement, a series of node statements and edge statements, or a\n * parameter.\n *\n * @param {object} graph\n */\nfunction parseStatement(graph) {\n // parse subgraph\n var subgraph = parseSubgraph(graph);\n if (subgraph) {\n // edge statements\n parseEdge(graph, subgraph);\n return;\n }\n\n // parse an attribute statement\n var attr = parseAttributeStatement(graph);\n if (attr) {\n return;\n }\n\n // parse node\n if (tokenType != TOKENTYPE.IDENTIFIER) {\n throw newSyntaxError(\"Identifier expected\");\n }\n var id = token; // id can be a string or a number\n getToken();\n if (token === \"=\") {\n // id statement\n getToken();\n if (tokenType != TOKENTYPE.IDENTIFIER) {\n throw newSyntaxError(\"Identifier expected\");\n }\n graph[id] = token;\n getToken();\n // TODO: implement comma separated list with \"a_list: ID=ID [','] [a_list] \"\n } else {\n parseNodeStatement(graph, id);\n }\n}\n\n/**\n * Parse a subgraph\n *\n * @param {object} graph parent graph object\n * @returns {object | null} subgraph\n */\nfunction parseSubgraph(graph) {\n var subgraph = null;\n\n // optional subgraph keyword\n if (token === \"subgraph\") {\n subgraph = {};\n subgraph.type = \"subgraph\";\n getToken();\n\n // optional graph id\n if (tokenType === TOKENTYPE.IDENTIFIER) {\n subgraph.id = token;\n getToken();\n }\n }\n\n // open angle bracket\n if (token === \"{\") {\n getToken();\n if (!subgraph) {\n subgraph = {};\n }\n subgraph.parent = graph;\n subgraph.node = graph.node;\n subgraph.edge = graph.edge;\n subgraph.graph = graph.graph;\n\n // statements\n parseStatements(subgraph);\n\n // close angle bracket\n if (token != \"}\") {\n throw newSyntaxError(\"Angle bracket } expected\");\n }\n getToken();\n\n // remove temporary default options\n delete subgraph.node;\n delete subgraph.edge;\n delete subgraph.graph;\n delete subgraph.parent;\n\n // register at the parent graph\n if (!graph.subgraphs) {\n graph.subgraphs = [];\n }\n graph.subgraphs.push(subgraph);\n }\n return subgraph;\n}\n\n/**\n * parse an attribute statement like \"node [shape=circle fontSize=16]\".\n * Available keywords are 'node', 'edge', 'graph'.\n * The previous list with default attributes will be replaced\n *\n * @param {object} graph\n * @returns {string | null} keyword Returns the name of the parsed attribute\n * (node, edge, graph), or null if nothing\n * is parsed.\n */\nfunction parseAttributeStatement(graph) {\n // attribute statements\n if (token === \"node\") {\n getToken();\n\n // node attributes\n graph.node = parseAttributeList();\n return \"node\";\n } else if (token === \"edge\") {\n getToken();\n\n // edge attributes\n graph.edge = parseAttributeList();\n return \"edge\";\n } else if (token === \"graph\") {\n getToken();\n\n // graph attributes\n graph.graph = parseAttributeList();\n return \"graph\";\n }\n return null;\n}\n\n/**\n * parse a node statement\n *\n * @param {object} graph\n * @param {string | number} id\n */\nfunction parseNodeStatement(graph, id) {\n // node statement\n var node = {\n id: id\n };\n var attr = parseAttributeList();\n if (attr) {\n node.attr = attr;\n }\n addNode(graph, node);\n\n // edge statements\n parseEdge(graph, id);\n}\n\n/**\n * Parse an edge or a series of edges\n *\n * @param {object} graph\n * @param {string | number} from Id of the from node\n */\nfunction parseEdge(graph, from) {\n while (token === \"->\" || token === \"--\") {\n var to;\n var type = token;\n getToken();\n var subgraph = parseSubgraph(graph);\n if (subgraph) {\n to = subgraph;\n } else {\n if (tokenType != TOKENTYPE.IDENTIFIER) {\n throw newSyntaxError(\"Identifier or subgraph expected\");\n }\n to = token;\n addNode(graph, {\n id: to\n });\n getToken();\n }\n\n // parse edge attributes\n var attr = parseAttributeList();\n\n // create edge\n var edge = createEdge(graph, from, to, type, attr);\n addEdge(graph, edge);\n from = to;\n }\n}\n\n/**\n * Parse a set with attributes,\n * for example [label=\"1.000\", shape=solid]\n *\n * @returns {object | null} attr\n */\nfunction parseAttributeList() {\n var i;\n var attr = null;\n\n // edge styles of dot and vis\n var edgeStyles = {\n dashed: true,\n solid: false,\n dotted: [1, 5]\n };\n\n /**\n * Define arrow types.\n * vis currently supports types defined in 'arrowTypes'.\n * Details of arrow shapes are described in\n * http://www.graphviz.org/content/arrow-shapes\n */\n var arrowTypes = {\n dot: \"circle\",\n box: \"box\",\n crow: \"crow\",\n curve: \"curve\",\n icurve: \"inv_curve\",\n normal: \"triangle\",\n inv: \"inv_triangle\",\n diamond: \"diamond\",\n tee: \"bar\",\n vee: \"vee\"\n };\n\n /**\n * 'attr_list' contains attributes for checking if some of them are affected\n * later. For instance, both of 'arrowhead' and 'dir' (edge style defined\n * in DOT) make changes to 'arrows' attribute in vis.\n */\n var attr_list = new Array();\n var attr_names = new Array(); // used for checking the case.\n\n // parse attributes\n while (token === \"[\") {\n getToken();\n attr = {};\n while (token !== \"\" && token != \"]\") {\n if (tokenType != TOKENTYPE.IDENTIFIER) {\n throw newSyntaxError(\"Attribute name expected\");\n }\n var name = token;\n getToken();\n if (token != \"=\") {\n throw newSyntaxError(\"Equal sign = expected\");\n }\n getToken();\n if (tokenType != TOKENTYPE.IDENTIFIER) {\n throw newSyntaxError(\"Attribute value expected\");\n }\n var value = token;\n\n // convert from dot style to vis\n if (name === \"style\") {\n value = edgeStyles[value];\n }\n var arrowType;\n if (name === \"arrowhead\") {\n arrowType = arrowTypes[value];\n name = \"arrows\";\n value = {\n to: {\n enabled: true,\n type: arrowType\n }\n };\n }\n if (name === \"arrowtail\") {\n arrowType = arrowTypes[value];\n name = \"arrows\";\n value = {\n from: {\n enabled: true,\n type: arrowType\n }\n };\n }\n attr_list.push({\n attr: attr,\n name: name,\n value: value\n });\n attr_names.push(name);\n getToken();\n if (token == \",\") {\n getToken();\n }\n }\n if (token != \"]\") {\n throw newSyntaxError(\"Bracket ] expected\");\n }\n getToken();\n }\n\n /**\n * As explained in [1], graphviz has limitations for combination of\n * arrow[head|tail] and dir. If attribute list includes 'dir',\n * following cases just be supported.\n * 1. both or none + arrowhead, arrowtail\n * 2. forward + arrowhead (arrowtail is not affedted)\n * 3. back + arrowtail (arrowhead is not affected)\n * [1] https://www.graphviz.org/doc/info/attrs.html#h:undir_note\n */\n if (_includesInstanceProperty(attr_names).call(attr_names, \"dir\")) {\n var idx = {}; // get index of 'arrows' and 'dir'\n idx.arrows = {};\n for (i = 0; i < attr_list.length; i++) {\n if (attr_list[i].name === \"arrows\") {\n if (attr_list[i].value.to != null) {\n idx.arrows.to = i;\n } else if (attr_list[i].value.from != null) {\n idx.arrows.from = i;\n } else {\n throw newSyntaxError(\"Invalid value of arrows\");\n }\n } else if (attr_list[i].name === \"dir\") {\n idx.dir = i;\n }\n }\n\n // first, add default arrow shape if it is not assigned to avoid error\n var dir_type = attr_list[idx.dir].value;\n if (!_includesInstanceProperty(attr_names).call(attr_names, \"arrows\")) {\n if (dir_type === \"both\") {\n attr_list.push({\n attr: attr_list[idx.dir].attr,\n name: \"arrows\",\n value: {\n to: {\n enabled: true\n }\n }\n });\n idx.arrows.to = attr_list.length - 1;\n attr_list.push({\n attr: attr_list[idx.dir].attr,\n name: \"arrows\",\n value: {\n from: {\n enabled: true\n }\n }\n });\n idx.arrows.from = attr_list.length - 1;\n } else if (dir_type === \"forward\") {\n attr_list.push({\n attr: attr_list[idx.dir].attr,\n name: \"arrows\",\n value: {\n to: {\n enabled: true\n }\n }\n });\n idx.arrows.to = attr_list.length - 1;\n } else if (dir_type === \"back\") {\n attr_list.push({\n attr: attr_list[idx.dir].attr,\n name: \"arrows\",\n value: {\n from: {\n enabled: true\n }\n }\n });\n idx.arrows.from = attr_list.length - 1;\n } else if (dir_type === \"none\") {\n attr_list.push({\n attr: attr_list[idx.dir].attr,\n name: \"arrows\",\n value: \"\"\n });\n idx.arrows.to = attr_list.length - 1;\n } else {\n throw newSyntaxError('Invalid dir type \"' + dir_type + '\"');\n }\n }\n var from_type;\n var to_type;\n // update 'arrows' attribute from 'dir'.\n if (dir_type === \"both\") {\n // both of shapes of 'from' and 'to' are given\n if (idx.arrows.to && idx.arrows.from) {\n to_type = attr_list[idx.arrows.to].value.to.type;\n from_type = attr_list[idx.arrows.from].value.from.type;\n attr_list[idx.arrows.to] = {\n attr: attr_list[idx.arrows.to].attr,\n name: attr_list[idx.arrows.to].name,\n value: {\n to: {\n enabled: true,\n type: to_type\n },\n from: {\n enabled: true,\n type: from_type\n }\n }\n };\n _spliceInstanceProperty(attr_list).call(attr_list, idx.arrows.from, 1);\n\n // shape of 'to' is assigned and use default to 'from'\n } else if (idx.arrows.to) {\n to_type = attr_list[idx.arrows.to].value.to.type;\n from_type = \"arrow\";\n attr_list[idx.arrows.to] = {\n attr: attr_list[idx.arrows.to].attr,\n name: attr_list[idx.arrows.to].name,\n value: {\n to: {\n enabled: true,\n type: to_type\n },\n from: {\n enabled: true,\n type: from_type\n }\n }\n };\n\n // only shape of 'from' is assigned and use default for 'to'\n } else if (idx.arrows.from) {\n to_type = \"arrow\";\n from_type = attr_list[idx.arrows.from].value.from.type;\n attr_list[idx.arrows.from] = {\n attr: attr_list[idx.arrows.from].attr,\n name: attr_list[idx.arrows.from].name,\n value: {\n to: {\n enabled: true,\n type: to_type\n },\n from: {\n enabled: true,\n type: from_type\n }\n }\n };\n }\n } else if (dir_type === \"back\") {\n // given both of shapes, but use only 'from'\n if (idx.arrows.to && idx.arrows.from) {\n to_type = \"\";\n from_type = attr_list[idx.arrows.from].value.from.type;\n attr_list[idx.arrows.from] = {\n attr: attr_list[idx.arrows.from].attr,\n name: attr_list[idx.arrows.from].name,\n value: {\n to: {\n enabled: true,\n type: to_type\n },\n from: {\n enabled: true,\n type: from_type\n }\n }\n };\n\n // given shape of 'to', but does not use it\n } else if (idx.arrows.to) {\n to_type = \"\";\n from_type = \"arrow\";\n idx.arrows.from = idx.arrows.to;\n attr_list[idx.arrows.from] = {\n attr: attr_list[idx.arrows.from].attr,\n name: attr_list[idx.arrows.from].name,\n value: {\n to: {\n enabled: true,\n type: to_type\n },\n from: {\n enabled: true,\n type: from_type\n }\n }\n };\n\n // assign given 'from' shape\n } else if (idx.arrows.from) {\n to_type = \"\";\n from_type = attr_list[idx.arrows.from].value.from.type;\n attr_list[idx.arrows.to] = {\n attr: attr_list[idx.arrows.from].attr,\n name: attr_list[idx.arrows.from].name,\n value: {\n to: {\n enabled: true,\n type: to_type\n },\n from: {\n enabled: true,\n type: from_type\n }\n }\n };\n }\n attr_list[idx.arrows.from] = {\n attr: attr_list[idx.arrows.from].attr,\n name: attr_list[idx.arrows.from].name,\n value: {\n from: {\n enabled: true,\n type: attr_list[idx.arrows.from].value.from.type\n }\n }\n };\n } else if (dir_type === \"none\") {\n var idx_arrow;\n if (idx.arrows.to) {\n idx_arrow = idx.arrows.to;\n } else {\n idx_arrow = idx.arrows.from;\n }\n attr_list[idx_arrow] = {\n attr: attr_list[idx_arrow].attr,\n name: attr_list[idx_arrow].name,\n value: \"\"\n };\n } else if (dir_type === \"forward\") {\n // given both of shapes, but use only 'to'\n if (idx.arrows.to && idx.arrows.from) {\n to_type = attr_list[idx.arrows.to].value.to.type;\n from_type = \"\";\n attr_list[idx.arrows.to] = {\n attr: attr_list[idx.arrows.to].attr,\n name: attr_list[idx.arrows.to].name,\n value: {\n to: {\n enabled: true,\n type: to_type\n },\n from: {\n enabled: true,\n type: from_type\n }\n }\n };\n\n // assign given 'to' shape\n } else if (idx.arrows.to) {\n to_type = attr_list[idx.arrows.to].value.to.type;\n from_type = \"\";\n attr_list[idx.arrows.to] = {\n attr: attr_list[idx.arrows.to].attr,\n name: attr_list[idx.arrows.to].name,\n value: {\n to: {\n enabled: true,\n type: to_type\n },\n from: {\n enabled: true,\n type: from_type\n }\n }\n };\n\n // given shape of 'from', but does not use it\n } else if (idx.arrows.from) {\n to_type = \"arrow\";\n from_type = \"\";\n idx.arrows.to = idx.arrows.from;\n attr_list[idx.arrows.to] = {\n attr: attr_list[idx.arrows.to].attr,\n name: attr_list[idx.arrows.to].name,\n value: {\n to: {\n enabled: true,\n type: to_type\n },\n from: {\n enabled: true,\n type: from_type\n }\n }\n };\n }\n attr_list[idx.arrows.to] = {\n attr: attr_list[idx.arrows.to].attr,\n name: attr_list[idx.arrows.to].name,\n value: {\n to: {\n enabled: true,\n type: attr_list[idx.arrows.to].value.to.type\n }\n }\n };\n } else {\n throw newSyntaxError('Invalid dir type \"' + dir_type + '\"');\n }\n\n // remove 'dir' attribute no need anymore\n _spliceInstanceProperty(attr_list).call(attr_list, idx.dir, 1);\n }\n\n // parse 'penwidth'\n var nof_attr_list;\n if (_includesInstanceProperty(attr_names).call(attr_names, \"penwidth\")) {\n var tmp_attr_list = [];\n nof_attr_list = attr_list.length;\n for (i = 0; i < nof_attr_list; i++) {\n // exclude 'width' from attr_list if 'penwidth' exists\n if (attr_list[i].name !== \"width\") {\n if (attr_list[i].name === \"penwidth\") {\n attr_list[i].name = \"width\";\n }\n tmp_attr_list.push(attr_list[i]);\n }\n }\n attr_list = tmp_attr_list;\n }\n nof_attr_list = attr_list.length;\n for (i = 0; i < nof_attr_list; i++) {\n setValue(attr_list[i].attr, attr_list[i].name, attr_list[i].value);\n }\n return attr;\n}\n\n/**\n * Create a syntax error with extra information on current token and index.\n *\n * @param {string} message\n * @returns {SyntaxError} err\n */\nfunction newSyntaxError(message) {\n return new SyntaxError(message + ', got \"' + chop(token, 30) + '\" (char ' + index$1 + \")\");\n}\n\n/**\n * Chop off text after a maximum length\n *\n * @param {string} text\n * @param {number} maxLength\n * @returns {string}\n */\nfunction chop(text, maxLength) {\n return text.length <= maxLength ? text : text.substr(0, 27) + \"...\";\n}\n\n/**\n * Execute a function fn for each pair of elements in two arrays\n *\n * @param {Array | *} array1\n * @param {Array | *} array2\n * @param {Function} fn\n */\nfunction forEach2(array1, array2, fn) {\n if (_Array$isArray(array1)) {\n _forEachInstanceProperty(array1).call(array1, function (elem1) {\n if (_Array$isArray(array2)) {\n _forEachInstanceProperty(array2).call(array2, function (elem2) {\n fn(elem1, elem2);\n });\n } else {\n fn(elem1, array2);\n }\n });\n } else {\n if (_Array$isArray(array2)) {\n _forEachInstanceProperty(array2).call(array2, function (elem2) {\n fn(array1, elem2);\n });\n } else {\n fn(array1, array2);\n }\n }\n}\n\n/**\n * Set a nested property on an object\n * When nested objects are missing, they will be created.\n * For example setProp({}, 'font.color', 'red') will return {font: {color: 'red'}}\n *\n * @param {object} object\n * @param {string} path A dot separated string like 'font.color'\n * @param {*} value Value for the property\n * @returns {object} Returns the original object, allows for chaining.\n */\nfunction setProp(object, path, value) {\n var names = path.split(\".\");\n var prop = names.pop();\n\n // traverse over the nested objects\n var obj = object;\n for (var i = 0; i < names.length; i++) {\n var name = names[i];\n if (!(name in obj)) {\n obj[name] = {};\n }\n obj = obj[name];\n }\n\n // set the property value\n obj[prop] = value;\n return object;\n}\n\n/**\n * Convert an object with DOT attributes to their vis.js equivalents.\n *\n * @param {object} attr Object with DOT attributes\n * @param {object} mapping\n * @returns {object} Returns an object with vis.js attributes\n */\nfunction convertAttr(attr, mapping) {\n var converted = {};\n for (var prop in attr) {\n if (attr.hasOwnProperty(prop)) {\n var visProp = mapping[prop];\n if (_Array$isArray(visProp)) {\n _forEachInstanceProperty(visProp).call(visProp, function (visPropI) {\n setProp(converted, visPropI, attr[prop]);\n });\n } else if (typeof visProp === \"string\") {\n setProp(converted, visProp, attr[prop]);\n } else {\n setProp(converted, prop, attr[prop]);\n }\n }\n }\n return converted;\n}\n\n/**\n * Convert a string containing a graph in DOT language into a map containing\n * with nodes and edges in the format of graph.\n *\n * @param {string} data Text containing a graph in DOT-notation\n * @returns {object} graphData\n */\nfunction DOTToGraph(data) {\n // parse the DOT file\n var dotData = parseDOT(data);\n var graphData = {\n nodes: [],\n edges: [],\n options: {}\n };\n\n // copy the nodes\n if (dotData.nodes) {\n var _context2;\n _forEachInstanceProperty(_context2 = dotData.nodes).call(_context2, function (dotNode) {\n var graphNode = {\n id: dotNode.id,\n label: String(dotNode.label || dotNode.id)\n };\n merge$1(graphNode, convertAttr(dotNode.attr, NODE_ATTR_MAPPING));\n if (graphNode.image) {\n graphNode.shape = \"image\";\n }\n graphData.nodes.push(graphNode);\n });\n }\n\n // copy the edges\n if (dotData.edges) {\n var _context3;\n /**\n * Convert an edge in DOT format to an edge with VisGraph format\n *\n * @param {object} dotEdge\n * @returns {object} graphEdge\n */\n var convertEdge = function convertEdge(dotEdge) {\n var graphEdge = {\n from: dotEdge.from,\n to: dotEdge.to\n };\n merge$1(graphEdge, convertAttr(dotEdge.attr, EDGE_ATTR_MAPPING));\n\n // Add arrows attribute to default styled arrow.\n // The reason why default style is not added in parseAttributeList() is\n // because only default is cleared before here.\n if (graphEdge.arrows == null && dotEdge.type === \"->\") {\n graphEdge.arrows = \"to\";\n }\n return graphEdge;\n };\n _forEachInstanceProperty(_context3 = dotData.edges).call(_context3, function (dotEdge) {\n var from, to;\n if (dotEdge.from instanceof Object) {\n from = dotEdge.from.nodes;\n } else {\n from = {\n id: dotEdge.from\n };\n }\n if (dotEdge.to instanceof Object) {\n to = dotEdge.to.nodes;\n } else {\n to = {\n id: dotEdge.to\n };\n }\n if (dotEdge.from instanceof Object && dotEdge.from.edges) {\n var _context4;\n _forEachInstanceProperty(_context4 = dotEdge.from.edges).call(_context4, function (subEdge) {\n var graphEdge = convertEdge(subEdge);\n graphData.edges.push(graphEdge);\n });\n }\n forEach2(from, to, function (from, to) {\n var subEdge = createEdge(graphData, from.id, to.id, dotEdge.type, dotEdge.attr);\n var graphEdge = convertEdge(subEdge);\n graphData.edges.push(graphEdge);\n });\n if (dotEdge.to instanceof Object && dotEdge.to.edges) {\n var _context5;\n _forEachInstanceProperty(_context5 = dotEdge.to.edges).call(_context5, function (subEdge) {\n var graphEdge = convertEdge(subEdge);\n graphData.edges.push(graphEdge);\n });\n }\n });\n }\n\n // copy the options\n if (dotData.attr) {\n graphData.options = dotData.attr;\n }\n return graphData;\n}\n\n/* eslint-enable no-var */\n/* eslint-enable no-unused-vars */\n/* eslint-enable no-prototype-builtins */\n\nvar dotparser = /*#__PURE__*/Object.freeze({\n\t__proto__: null,\n\tDOTToGraph: DOTToGraph,\n\tparseDOT: parseDOT\n});\n\n/**\r\n * Convert Gephi to Vis.\r\n *\r\n * @param gephiJSON - The parsed JSON data in Gephi format.\r\n * @param optionsObj - Additional options.\r\n * @returns The converted data ready to be used in Vis.\r\n */\nfunction parseGephi(gephiJSON, optionsObj) {\n var _context;\n var options = {\n edges: {\n inheritColor: false\n },\n nodes: {\n fixed: false,\n parseColor: false\n }\n };\n if (optionsObj != null) {\n if (optionsObj.fixed != null) {\n options.nodes.fixed = optionsObj.fixed;\n }\n if (optionsObj.parseColor != null) {\n options.nodes.parseColor = optionsObj.parseColor;\n }\n if (optionsObj.inheritColor != null) {\n options.edges.inheritColor = optionsObj.inheritColor;\n }\n }\n var gEdges = gephiJSON.edges;\n var vEdges = _mapInstanceProperty(gEdges).call(gEdges, function (gEdge) {\n var vEdge = {\n from: gEdge.source,\n id: gEdge.id,\n to: gEdge.target\n };\n if (gEdge.attributes != null) {\n vEdge.attributes = gEdge.attributes;\n }\n if (gEdge.label != null) {\n vEdge.label = gEdge.label;\n }\n if (gEdge.attributes != null && gEdge.attributes.title != null) {\n vEdge.title = gEdge.attributes.title;\n }\n if (gEdge.type === \"Directed\") {\n vEdge.arrows = \"to\";\n }\n // edge['value'] = gEdge.attributes != null ? gEdge.attributes.Weight : undefined;\n // edge['width'] = edge['value'] != null ? undefined : edgegEdge.size;\n if (gEdge.color && options.edges.inheritColor === false) {\n vEdge.color = gEdge.color;\n }\n return vEdge;\n });\n var vNodes = _mapInstanceProperty(_context = gephiJSON.nodes).call(_context, function (gNode) {\n var vNode = {\n id: gNode.id,\n fixed: options.nodes.fixed && gNode.x != null && gNode.y != null\n };\n if (gNode.attributes != null) {\n vNode.attributes = gNode.attributes;\n }\n if (gNode.label != null) {\n vNode.label = gNode.label;\n }\n if (gNode.size != null) {\n vNode.size = gNode.size;\n }\n if (gNode.attributes != null && gNode.attributes.title != null) {\n vNode.title = gNode.attributes.title;\n }\n if (gNode.title != null) {\n vNode.title = gNode.title;\n }\n if (gNode.x != null) {\n vNode.x = gNode.x;\n }\n if (gNode.y != null) {\n vNode.y = gNode.y;\n }\n if (gNode.color != null) {\n if (options.nodes.parseColor === true) {\n vNode.color = gNode.color;\n } else {\n vNode.color = {\n background: gNode.color,\n border: gNode.color,\n highlight: {\n background: gNode.color,\n border: gNode.color\n },\n hover: {\n background: gNode.color,\n border: gNode.color\n }\n };\n }\n }\n return vNode;\n });\n return {\n nodes: vNodes,\n edges: vEdges\n };\n}\n\nvar gephiParser = /*#__PURE__*/Object.freeze({\n\t__proto__: null,\n\tparseGephi: parseGephi\n});\n\n// English\nvar en = {\n addDescription: \"Click in an empty space to place a new node.\",\n addEdge: \"Add Edge\",\n addNode: \"Add Node\",\n back: \"Back\",\n close: \"Close\",\n createEdgeError: \"Cannot link edges to a cluster.\",\n del: \"Delete selected\",\n deleteClusterError: \"Clusters cannot be deleted.\",\n edgeDescription: \"Click on a node and drag the edge to another node to connect them.\",\n edit: \"Edit\",\n editClusterError: \"Clusters cannot be edited.\",\n editEdge: \"Edit Edge\",\n editEdgeDescription: \"Click on the control points and drag them to a node to connect to it.\",\n editNode: \"Edit Node\"\n};\n// German\nvar de = {\n addDescription: \"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.\",\n addEdge: \"Kante hinzuf\\xFCgen\",\n addNode: \"Knoten hinzuf\\xFCgen\",\n back: \"Zur\\xFCck\",\n close: \"Schließen\",\n createEdgeError: \"Es ist nicht m\\xF6glich, Kanten mit Clustern zu verbinden.\",\n del: \"L\\xF6sche Auswahl\",\n deleteClusterError: \"Cluster k\\xF6nnen nicht gel\\xF6scht werden.\",\n edgeDescription: \"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.\",\n edit: \"Editieren\",\n editClusterError: \"Cluster k\\xF6nnen nicht editiert werden.\",\n editEdge: \"Kante editieren\",\n editEdgeDescription: \"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.\",\n editNode: \"Knoten editieren\"\n};\n// Spanish\nvar es = {\n addDescription: \"Haga clic en un lugar vac\\xEDo para colocar un nuevo nodo.\",\n addEdge: \"A\\xF1adir arista\",\n addNode: \"A\\xF1adir nodo\",\n back: \"Atr\\xE1s\",\n close: \"Cerrar\",\n createEdgeError: \"No se puede conectar una arista a un grupo.\",\n del: \"Eliminar selecci\\xF3n\",\n deleteClusterError: \"No es posible eliminar grupos.\",\n edgeDescription: \"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.\",\n edit: \"Editar\",\n editClusterError: \"No es posible editar grupos.\",\n editEdge: \"Editar arista\",\n editEdgeDescription: \"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.\",\n editNode: \"Editar nodo\"\n};\n//Italiano\nvar it = {\n addDescription: \"Clicca per aggiungere un nuovo nodo\",\n addEdge: \"Aggiungi un vertice\",\n addNode: \"Aggiungi un nodo\",\n back: \"Indietro\",\n close: \"Chiudere\",\n createEdgeError: \"Non si possono collegare vertici ad un cluster\",\n del: \"Cancella la selezione\",\n deleteClusterError: \"I cluster non possono essere cancellati\",\n edgeDescription: \"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.\",\n edit: \"Modifica\",\n editClusterError: \"I clusters non possono essere modificati.\",\n editEdge: \"Modifica il vertice\",\n editEdgeDescription: \"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.\",\n editNode: \"Modifica il nodo\"\n};\n// Dutch\nvar nl = {\n addDescription: \"Klik op een leeg gebied om een nieuwe node te maken.\",\n addEdge: \"Link toevoegen\",\n addNode: \"Node toevoegen\",\n back: \"Terug\",\n close: \"Sluiten\",\n createEdgeError: \"Kan geen link maken naar een cluster.\",\n del: \"Selectie verwijderen\",\n deleteClusterError: \"Clusters kunnen niet worden verwijderd.\",\n edgeDescription: \"Klik op een node en sleep de link naar een andere node om ze te verbinden.\",\n edit: \"Wijzigen\",\n editClusterError: \"Clusters kunnen niet worden aangepast.\",\n editEdge: \"Link wijzigen\",\n editEdgeDescription: \"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.\",\n editNode: \"Node wijzigen\"\n};\n// Portuguese Brazil\nvar pt = {\n addDescription: \"Clique em um espaço em branco para adicionar um novo nó\",\n addEdge: \"Adicionar aresta\",\n addNode: \"Adicionar nó\",\n back: \"Voltar\",\n close: \"Fechar\",\n createEdgeError: \"Não foi possível linkar arestas a um cluster.\",\n del: \"Remover selecionado\",\n deleteClusterError: \"Clusters não puderam ser removidos.\",\n edgeDescription: \"Clique em um nó e arraste a aresta até outro nó para conectá-los\",\n edit: \"Editar\",\n editClusterError: \"Clusters não puderam ser editados.\",\n editEdge: \"Editar aresta\",\n editEdgeDescription: \"Clique nos pontos de controle e os arraste para um nó para conectá-los\",\n editNode: \"Editar nó\"\n};\n// Russian\nvar ru = {\n addDescription: \"Кликните в свободное место, чтобы добавить новый узел.\",\n addEdge: \"Добавить ребро\",\n addNode: \"Добавить узел\",\n back: \"Назад\",\n close: \"Закрывать\",\n createEdgeError: \"Невозможно соединить ребра в кластер.\",\n del: \"Удалить выбранное\",\n deleteClusterError: \"Кластеры не могут быть удалены\",\n edgeDescription: \"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.\",\n edit: \"Редактировать\",\n editClusterError: \"Кластеры недоступны для редактирования.\",\n editEdge: \"Редактировать ребро\",\n editEdgeDescription: \"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.\",\n editNode: \"Редактировать узел\"\n};\n// Chinese\nvar cn = {\n addDescription: \"单击空白处放置新节点。\",\n addEdge: \"添加连接线\",\n addNode: \"添加节点\",\n back: \"返回\",\n close: \"關閉\",\n createEdgeError: \"无法将连接线连接到群集。\",\n del: \"删除选定\",\n deleteClusterError: \"无法删除群集。\",\n edgeDescription: \"单击某个节点并将该连接线拖动到另一个节点以连接它们。\",\n edit: \"编辑\",\n editClusterError: \"无法编辑群集。\",\n editEdge: \"编辑连接线\",\n editEdgeDescription: \"单击控制节点并将它们拖到节点上连接。\",\n editNode: \"编辑节点\"\n};\n// Ukrainian\nvar uk = {\n addDescription: \"Kлікніть на вільне місце, щоб додати новий вузол.\",\n addEdge: \"Додати край\",\n addNode: \"Додати вузол\",\n back: \"Назад\",\n close: \"Закрити\",\n createEdgeError: \"Не можливо об'єднати краї в групу.\",\n del: \"Видалити обране\",\n deleteClusterError: \"Групи не можуть бути видалені.\",\n edgeDescription: \"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.\",\n edit: \"Редагувати\",\n editClusterError: \"Групи недоступні для редагування.\",\n editEdge: \"Редагувати край\",\n editEdgeDescription: \"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.\",\n editNode: \"Редагувати вузол\"\n};\n// French\nvar fr = {\n addDescription: \"Cliquez dans un endroit vide pour placer un nœud.\",\n addEdge: \"Ajouter un lien\",\n addNode: \"Ajouter un nœud\",\n back: \"Retour\",\n close: \"Fermer\",\n createEdgeError: \"Impossible de créer un lien vers un cluster.\",\n del: \"Effacer la sélection\",\n deleteClusterError: \"Les clusters ne peuvent pas être effacés.\",\n edgeDescription: \"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.\",\n edit: \"Éditer\",\n editClusterError: \"Les clusters ne peuvent pas être édités.\",\n editEdge: \"Éditer le lien\",\n editEdgeDescription: \"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.\",\n editNode: \"Éditer le nœud\"\n};\n// Czech\nvar cs = {\n addDescription: \"Kluknutím do prázdného prostoru můžete přidat nový vrchol.\",\n addEdge: \"Přidat hranu\",\n addNode: \"Přidat vrchol\",\n back: \"Zpět\",\n close: \"Zavřít\",\n createEdgeError: \"Nelze připojit hranu ke shluku.\",\n del: \"Smazat výběr\",\n deleteClusterError: \"Nelze mazat shluky.\",\n edgeDescription: \"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.\",\n edit: \"Upravit\",\n editClusterError: \"Nelze upravovat shluky.\",\n editEdge: \"Upravit hranu\",\n editEdgeDescription: \"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.\",\n editNode: \"Upravit vrchol\"\n};\n\nvar locales = /*#__PURE__*/Object.freeze({\n\t__proto__: null,\n\tcn: cn,\n\tcs: cs,\n\tde: de,\n\ten: en,\n\tes: es,\n\tfr: fr,\n\tit: it,\n\tnl: nl,\n\tpt: pt,\n\tru: ru,\n\tuk: uk\n});\n\n/**\r\n * Normalizes language code into the format used internally.\r\n *\r\n * @param locales - All the available locales.\r\n * @param rawCode - The original code as supplied by the user.\r\n * @returns Language code in the format language-COUNTRY or language, eventually\r\n * fallbacks to en.\r\n */\nfunction normalizeLanguageCode(locales, rawCode) {\n try {\n var _rawCode$split = rawCode.split(/[-_ /]/, 2),\n _rawCode$split2 = _slicedToArray(_rawCode$split, 2),\n rawLanguage = _rawCode$split2[0],\n rawCountry = _rawCode$split2[1];\n var language = rawLanguage != null ? rawLanguage.toLowerCase() : null;\n var country = rawCountry != null ? rawCountry.toUpperCase() : null;\n if (language && country) {\n var code = language + \"-\" + country;\n if (Object.prototype.hasOwnProperty.call(locales, code)) {\n return code;\n } else {\n var _context;\n console.warn(_concatInstanceProperty(_context = \"Unknown variant \".concat(country, \" of language \")).call(_context, language, \".\"));\n }\n }\n if (language) {\n var _code = language;\n if (Object.prototype.hasOwnProperty.call(locales, _code)) {\n return _code;\n } else {\n console.warn(\"Unknown language \".concat(language));\n }\n }\n console.warn(\"Unknown locale \".concat(rawCode, \", falling back to English.\"));\n return \"en\";\n } catch (error) {\n console.error(error);\n console.warn(\"Unexpected error while normalizing locale \".concat(rawCode, \", falling back to English.\"));\n return \"en\";\n }\n}\n\n/**\n * Associates a canvas to a given image, containing a number of renderings\n * of the image at various sizes.\n *\n * This technique is known as 'mipmapping'.\n *\n * NOTE: Images can also be of type 'data:svg+xml`. This code also works\n * for svg, but the mipmapping may not be necessary.\n *\n * @param {Image} image\n */\nvar CachedImage = /*#__PURE__*/function () {\n /**\n * @ignore\n */\n function CachedImage() {\n _classCallCheck(this, CachedImage);\n this.NUM_ITERATIONS = 4; // Number of items in the coordinates array\n\n this.image = new Image();\n this.canvas = document.createElement(\"canvas\");\n }\n\n /**\n * Called when the image has been successfully loaded.\n */\n _createClass(CachedImage, [{\n key: \"init\",\n value: function init() {\n if (this.initialized()) return;\n this.src = this.image.src; // For same interface with Image\n var w = this.image.width;\n var h = this.image.height;\n\n // Ease external access\n this.width = w;\n this.height = h;\n var h2 = Math.floor(h / 2);\n var h4 = Math.floor(h / 4);\n var h8 = Math.floor(h / 8);\n var h16 = Math.floor(h / 16);\n var w2 = Math.floor(w / 2);\n var w4 = Math.floor(w / 4);\n var w8 = Math.floor(w / 8);\n var w16 = Math.floor(w / 16);\n\n // Make canvas as small as possible\n this.canvas.width = 3 * w4;\n this.canvas.height = h2;\n\n // Coordinates and sizes of images contained in the canvas\n // Values per row: [top x, left y, width, height]\n\n this.coordinates = [[0, 0, w2, h2], [w2, 0, w4, h4], [w2, h4, w8, h8], [5 * w8, h4, w16, h16]];\n this._fillMipMap();\n }\n\n /**\n * @returns {boolean} true if init() has been called, false otherwise.\n */\n }, {\n key: \"initialized\",\n value: function initialized() {\n return this.coordinates !== undefined;\n }\n\n /**\n * Redraw main image in various sizes to the context.\n *\n * The rationale behind this is to reduce artefacts due to interpolation\n * at differing zoom levels.\n *\n * Source: http://stackoverflow.com/q/18761404/1223531\n *\n * This methods takes the resizing out of the drawing loop, in order to\n * reduce performance overhead.\n *\n * TODO: The code assumes that a 2D context can always be gotten. This is\n * not necessarily true! OTOH, if not true then usage of this class\n * is senseless.\n *\n * @private\n */\n }, {\n key: \"_fillMipMap\",\n value: function _fillMipMap() {\n var ctx = this.canvas.getContext(\"2d\");\n\n // First zoom-level comes from the image\n var to = this.coordinates[0];\n ctx.drawImage(this.image, to[0], to[1], to[2], to[3]);\n\n // The rest are copy actions internal to the canvas/context\n for (var iterations = 1; iterations < this.NUM_ITERATIONS; iterations++) {\n var from = this.coordinates[iterations - 1];\n var _to = this.coordinates[iterations];\n ctx.drawImage(this.canvas, from[0], from[1], from[2], from[3], _to[0], _to[1], _to[2], _to[3]);\n }\n }\n\n /**\n * Draw the image, using the mipmap if necessary.\n *\n * MipMap is only used if param factor > 2; otherwise, original bitmap\n * is resized. This is also used to skip mipmap usage, e.g. by setting factor = 1\n *\n * Credits to 'Alex de Mulder' for original implementation.\n *\n * @param {CanvasRenderingContext2D} ctx context on which to draw zoomed image\n * @param {Float} factor scale factor at which to draw\n * @param {number} left\n * @param {number} top\n * @param {number} width\n * @param {number} height\n */\n }, {\n key: \"drawImageAtPosition\",\n value: function drawImageAtPosition(ctx, factor, left, top, width, height) {\n if (!this.initialized()) return; //can't draw image yet not intialized\n\n if (factor > 2) {\n // Determine which zoomed image to use\n factor *= 0.5;\n var iterations = 0;\n while (factor > 2 && iterations < this.NUM_ITERATIONS) {\n factor *= 0.5;\n iterations += 1;\n }\n if (iterations >= this.NUM_ITERATIONS) {\n iterations = this.NUM_ITERATIONS - 1;\n }\n //console.log(\"iterations: \" + iterations);\n\n var from = this.coordinates[iterations];\n ctx.drawImage(this.canvas, from[0], from[1], from[2], from[3], left, top, width, height);\n } else {\n // Draw image directly\n ctx.drawImage(this.image, left, top, width, height);\n }\n }\n }]);\n return CachedImage;\n}();\n\n/**\n * This callback is a callback that accepts an Image.\n *\n * @callback ImageCallback\n * @param {Image} image\n */\n\n/**\n * This class loads images and keeps them stored.\n *\n * @param {ImageCallback} callback\n */\nvar Images = /*#__PURE__*/function () {\n /**\n * @param {ImageCallback} callback\n */\n function Images(callback) {\n _classCallCheck(this, Images);\n this.images = {};\n this.imageBroken = {};\n this.callback = callback;\n }\n\n /**\n * @param {string} url The original Url that failed to load, if the broken image is successfully loaded it will be added to the cache using this Url as the key so that subsequent requests for this Url will return the broken image\n * @param {string} brokenUrl Url the broken image to try and load\n * @param {Image} imageToLoadBrokenUrlOn The image object\n */\n _createClass(Images, [{\n key: \"_tryloadBrokenUrl\",\n value: function _tryloadBrokenUrl(url, brokenUrl, imageToLoadBrokenUrlOn) {\n //If these parameters aren't specified then exit the function because nothing constructive can be done\n if (url === undefined || imageToLoadBrokenUrlOn === undefined) return;\n if (brokenUrl === undefined) {\n console.warn(\"No broken url image defined\");\n return;\n }\n\n //Clear the old subscription to the error event and put a new in place that only handle errors in loading the brokenImageUrl\n imageToLoadBrokenUrlOn.image.onerror = function () {\n console.error(\"Could not load brokenImage:\", brokenUrl);\n // cache item will contain empty image, this should be OK for default\n };\n\n //Set the source of the image to the brokenUrl, this is actually what kicks off the loading of the broken image\n imageToLoadBrokenUrlOn.image.src = brokenUrl;\n }\n\n /**\n *\n * @param {vis.Image} imageToRedrawWith\n * @private\n */\n }, {\n key: \"_redrawWithImage\",\n value: function _redrawWithImage(imageToRedrawWith) {\n if (this.callback) {\n this.callback(imageToRedrawWith);\n }\n }\n\n /**\n * @param {string} url Url of the image\n * @param {string} brokenUrl Url of an image to use if the url image is not found\n * @returns {Image} img The image object\n */\n }, {\n key: \"load\",\n value: function load(url, brokenUrl) {\n var _this = this;\n //Try and get the image from the cache, if successful then return the cached image\n var cachedImage = this.images[url];\n if (cachedImage) return cachedImage;\n\n //Create a new image\n var img = new CachedImage();\n\n // Need to add to cache here, otherwise final return will spawn different copies of the same image,\n // Also, there will be multiple loads of the same image.\n this.images[url] = img;\n\n //Subscribe to the event that is raised if the image loads successfully\n img.image.onload = function () {\n // Properly init the cached item and then request a redraw\n _this._fixImageCoordinates(img.image);\n img.init();\n _this._redrawWithImage(img);\n };\n\n //Subscribe to the event that is raised if the image fails to load\n img.image.onerror = function () {\n console.error(\"Could not load image:\", url);\n //Try and load the image specified by the brokenUrl using\n _this._tryloadBrokenUrl(url, brokenUrl, img);\n };\n\n //Set the source of the image to the url, this is what actually kicks off the loading of the image\n img.image.src = url;\n\n //Return the new image\n return img;\n }\n\n /**\n * IE11 fix -- thanks dponch!\n *\n * Local helper function\n *\n * @param {vis.Image} imageToCache\n * @private\n */\n }, {\n key: \"_fixImageCoordinates\",\n value: function _fixImageCoordinates(imageToCache) {\n if (imageToCache.width === 0) {\n document.body.appendChild(imageToCache);\n imageToCache.width = imageToCache.offsetWidth;\n imageToCache.height = imageToCache.offsetHeight;\n document.body.removeChild(imageToCache);\n }\n }\n }]);\n return Images;\n}();\n\nvar mapExports = {};\nvar map$2 = {\n get exports(){ return mapExports; },\n set exports(v){ mapExports = v; },\n};\n\nvar internalMetadataExports = {};\nvar internalMetadata = {\n get exports(){ return internalMetadataExports; },\n set exports(v){ internalMetadataExports = v; },\n};\n\n// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it\nvar fails$b = fails$z;\n\nvar arrayBufferNonExtensible = fails$b(function () {\n if (typeof ArrayBuffer == 'function') {\n var buffer = new ArrayBuffer(8);\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe\n if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });\n }\n});\n\nvar fails$a = fails$z;\nvar isObject$9 = isObject$m;\nvar classof$4 = classofRaw$2;\nvar ARRAY_BUFFER_NON_EXTENSIBLE = arrayBufferNonExtensible;\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES$1 = fails$a(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\nvar objectIsExtensible = (FAILS_ON_PRIMITIVES$1 || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject$9(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$4(it) == 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n} : $isExtensible;\n\nvar fails$9 = fails$z;\n\nvar freezing = !fails$9(function () {\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n\nvar $$p = _export;\nvar uncurryThis$5 = functionUncurryThis;\nvar hiddenKeys = hiddenKeys$6;\nvar isObject$8 = isObject$m;\nvar hasOwn$7 = hasOwnProperty_1;\nvar defineProperty$1 = objectDefineProperty.f;\nvar getOwnPropertyNamesModule = objectGetOwnPropertyNames;\nvar getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal;\nvar isExtensible$1 = objectIsExtensible;\nvar uid = uid$4;\nvar FREEZING$1 = freezing;\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id$1 = 0;\n\nvar setMetadata = function (it) {\n defineProperty$1(it, METADATA, { value: {\n objectID: 'O' + id$1++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey$1 = function (it, create) {\n // return a primitive with prefix\n if (!isObject$8(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn$7(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible$1(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData$1 = function (it, create) {\n if (!hasOwn$7(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible$1(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING$1 && REQUIRED && isExtensible$1(it) && !hasOwn$7(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis$5([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $$p({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = internalMetadata.exports = {\n enable: enable,\n fastKey: fastKey$1,\n getWeakData: getWeakData$1,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n\nvar bind$a = functionBindContext;\nvar call$7 = functionCall;\nvar anObject$5 = anObject$f;\nvar tryToString$1 = tryToString$6;\nvar isArrayIteratorMethod = isArrayIteratorMethod$2;\nvar lengthOfArrayLike$4 = lengthOfArrayLike$d;\nvar isPrototypeOf$a = objectIsPrototypeOf;\nvar getIterator$6 = getIterator$8;\nvar getIteratorMethod = getIteratorMethod$9;\nvar iteratorClose = iteratorClose$2;\n\nvar $TypeError$4 = TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nvar iterate$8 = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_RECORD = !!(options && options.IS_RECORD);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind$a(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject$5(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_RECORD) {\n iterator = iterable.iterator;\n } else if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw $TypeError$4(tryToString$1(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike$4(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf$a(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator$6(iterable, iterFn);\n }\n\n next = IS_RECORD ? iterable.next : iterator.next;\n while (!(step = call$7(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf$a(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n\nvar isPrototypeOf$9 = objectIsPrototypeOf;\n\nvar $TypeError$3 = TypeError;\n\nvar anInstance$4 = function (it, Prototype) {\n if (isPrototypeOf$9(Prototype, it)) return it;\n throw $TypeError$3('Incorrect invocation');\n};\n\nvar $$o = _export;\nvar global$9 = global$q;\nvar InternalMetadataModule$1 = internalMetadataExports;\nvar fails$8 = fails$z;\nvar createNonEnumerableProperty$3 = createNonEnumerableProperty$9;\nvar iterate$7 = iterate$8;\nvar anInstance$3 = anInstance$4;\nvar isCallable$4 = isCallable$m;\nvar isObject$7 = isObject$m;\nvar setToStringTag$1 = setToStringTag$7;\nvar defineProperty = objectDefineProperty.f;\nvar forEach$4 = arrayIteration.forEach;\nvar DESCRIPTORS$2 = descriptors;\nvar InternalStateModule$3 = internalState;\n\nvar setInternalState$3 = InternalStateModule$3.set;\nvar internalStateGetterFor$2 = InternalStateModule$3.getterFor;\n\nvar collection$3 = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global$9[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var exported = {};\n var Constructor;\n\n if (!DESCRIPTORS$2 || !isCallable$4(NativeConstructor)\n || !(IS_WEAK || NativePrototype.forEach && !fails$8(function () { new NativeConstructor().entries().next(); }))\n ) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule$1.enable();\n } else {\n Constructor = wrapper(function (target, iterable) {\n setInternalState$3(anInstance$3(target, Prototype), {\n type: CONSTRUCTOR_NAME,\n collection: new NativeConstructor()\n });\n if (iterable != undefined) iterate$7(iterable, target[ADDER], { that: target, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor$2(CONSTRUCTOR_NAME);\n\n forEach$4(['add', 'clear', 'delete', 'forEach', 'get', 'has', 'set', 'keys', 'values', 'entries'], function (KEY) {\n var IS_ADDER = KEY == 'add' || KEY == 'set';\n if (KEY in NativePrototype && !(IS_WEAK && KEY == 'clear')) {\n createNonEnumerableProperty$3(Prototype, KEY, function (a, b) {\n var collection = getInternalState(this).collection;\n if (!IS_ADDER && IS_WEAK && !isObject$7(a)) return KEY == 'get' ? undefined : false;\n var result = collection[KEY](a === 0 ? 0 : a, b);\n return IS_ADDER ? this : result;\n });\n }\n });\n\n IS_WEAK || defineProperty(Prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).collection.size;\n }\n });\n }\n\n setToStringTag$1(Constructor, CONSTRUCTOR_NAME, false, true);\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $$o({ global: true, forced: true }, exported);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n\nvar defineBuiltIn$1 = defineBuiltIn$6;\n\nvar defineBuiltIns$3 = function (target, src, options) {\n for (var key in src) {\n if (options && options.unsafe && target[key]) target[key] = src[key];\n else defineBuiltIn$1(target, key, src[key], options);\n } return target;\n};\n\nvar getBuiltIn$4 = getBuiltIn$f;\nvar defineBuiltInAccessor$1 = defineBuiltInAccessor$3;\nvar wellKnownSymbol$3 = wellKnownSymbol$o;\nvar DESCRIPTORS$1 = descriptors;\n\nvar SPECIES$2 = wellKnownSymbol$3('species');\n\nvar setSpecies$2 = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);\n\n if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$2]) {\n defineBuiltInAccessor$1(Constructor, SPECIES$2, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n\nvar create$6 = objectCreate;\nvar defineBuiltInAccessor = defineBuiltInAccessor$3;\nvar defineBuiltIns$2 = defineBuiltIns$3;\nvar bind$9 = functionBindContext;\nvar anInstance$2 = anInstance$4;\nvar isNullOrUndefined$2 = isNullOrUndefined$6;\nvar iterate$6 = iterate$8;\nvar defineIterator = iteratorDefine;\nvar createIterResultObject = createIterResultObject$3;\nvar setSpecies$1 = setSpecies$2;\nvar DESCRIPTORS = descriptors;\nvar fastKey = internalMetadataExports.fastKey;\nvar InternalStateModule$2 = internalState;\n\nvar setInternalState$2 = InternalStateModule$2.set;\nvar internalStateGetterFor$1 = InternalStateModule$2.getterFor;\n\nvar collectionStrong$2 = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance$2(that, Prototype);\n setInternalState$2(that, {\n type: CONSTRUCTOR_NAME,\n index: create$6(null),\n first: undefined,\n last: undefined,\n size: 0\n });\n if (!DESCRIPTORS) that.size = 0;\n if (!isNullOrUndefined$2(iterable)) iterate$6(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor$1(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n var previous, index;\n // change existing entry\n if (entry) {\n entry.value = value;\n // create new entry\n } else {\n state.last = entry = {\n index: index = fastKey(key, true),\n key: key,\n value: value,\n previous: previous = state.last,\n next: undefined,\n removed: false\n };\n if (!state.first) state.first = entry;\n if (previous) previous.next = entry;\n if (DESCRIPTORS) state.size++;\n else that.size++;\n // add to index\n if (index !== 'F') state.index[index] = entry;\n } return that;\n };\n\n var getEntry = function (that, key) {\n var state = getInternalState(that);\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return state.index[index];\n // frozen object case\n for (entry = state.first; entry; entry = entry.next) {\n if (entry.key == key) return entry;\n }\n };\n\n defineBuiltIns$2(Prototype, {\n // `{ Map, Set }.prototype.clear()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.clear\n // https://tc39.es/ecma262/#sec-set.prototype.clear\n clear: function clear() {\n var that = this;\n var state = getInternalState(that);\n var data = state.index;\n var entry = state.first;\n while (entry) {\n entry.removed = true;\n if (entry.previous) entry.previous = entry.previous.next = undefined;\n delete data[entry.index];\n entry = entry.next;\n }\n state.first = state.last = undefined;\n if (DESCRIPTORS) state.size = 0;\n else that.size = 0;\n },\n // `{ Map, Set }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.delete\n // https://tc39.es/ecma262/#sec-set.prototype.delete\n 'delete': function (key) {\n var that = this;\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.next;\n var prev = entry.previous;\n delete state.index[entry.index];\n entry.removed = true;\n if (prev) prev.next = next;\n if (next) next.previous = prev;\n if (state.first == entry) state.first = next;\n if (state.last == entry) state.last = prev;\n if (DESCRIPTORS) state.size--;\n else that.size--;\n } return !!entry;\n },\n // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.foreach\n // https://tc39.es/ecma262/#sec-set.prototype.foreach\n forEach: function forEach(callbackfn /* , that = undefined */) {\n var state = getInternalState(this);\n var boundFunction = bind$9(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n defineBuiltIns$2(Prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineBuiltInAccessor(Prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).size;\n }\n });\n return Constructor;\n },\n setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor$1(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor$1(ITERATOR_NAME);\n // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\n defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState$2(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n // return step by kind\n if (kind == 'keys') return createIterResultObject(entry.key, false);\n if (kind == 'values') return createIterResultObject(entry.value, false);\n return createIterResultObject([entry.key, entry.value], false);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\n setSpecies$1(CONSTRUCTOR_NAME);\n }\n};\n\nvar collection$2 = collection$3;\nvar collectionStrong$1 = collectionStrong$2;\n\n// `Map` constructor\n// https://tc39.es/ecma262/#sec-map-objects\ncollection$2('Map', function (init) {\n return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong$1);\n\nvar path$c = path$z;\n\nvar map$1 = path$c.Map;\n\nvar parent$E = map$1;\n\n\nvar map = parent$E;\n\n(function (module) {\n\tmodule.exports = map;\n} (map$2));\n\nvar _Map = /*@__PURE__*/getDefaultExportFromCjs(mapExports);\n\n/**\n * This class can store groups and options specific for groups.\n */\nvar Groups = /*#__PURE__*/function () {\n /**\n * @ignore\n */\n function Groups() {\n _classCallCheck(this, Groups);\n this.clear();\n this._defaultIndex = 0;\n this._groupIndex = 0;\n this._defaultGroups = [{\n border: \"#2B7CE9\",\n background: \"#97C2FC\",\n highlight: {\n border: \"#2B7CE9\",\n background: \"#D2E5FF\"\n },\n hover: {\n border: \"#2B7CE9\",\n background: \"#D2E5FF\"\n }\n },\n // 0: blue\n {\n border: \"#FFA500\",\n background: \"#FFFF00\",\n highlight: {\n border: \"#FFA500\",\n background: \"#FFFFA3\"\n },\n hover: {\n border: \"#FFA500\",\n background: \"#FFFFA3\"\n }\n },\n // 1: yellow\n {\n border: \"#FA0A10\",\n background: \"#FB7E81\",\n highlight: {\n border: \"#FA0A10\",\n background: \"#FFAFB1\"\n },\n hover: {\n border: \"#FA0A10\",\n background: \"#FFAFB1\"\n }\n },\n // 2: red\n {\n border: \"#41A906\",\n background: \"#7BE141\",\n highlight: {\n border: \"#41A906\",\n background: \"#A1EC76\"\n },\n hover: {\n border: \"#41A906\",\n background: \"#A1EC76\"\n }\n },\n // 3: green\n {\n border: \"#E129F0\",\n background: \"#EB7DF4\",\n highlight: {\n border: \"#E129F0\",\n background: \"#F0B3F5\"\n },\n hover: {\n border: \"#E129F0\",\n background: \"#F0B3F5\"\n }\n },\n // 4: magenta\n {\n border: \"#7C29F0\",\n background: \"#AD85E4\",\n highlight: {\n border: \"#7C29F0\",\n background: \"#D3BDF0\"\n },\n hover: {\n border: \"#7C29F0\",\n background: \"#D3BDF0\"\n }\n },\n // 5: purple\n {\n border: \"#C37F00\",\n background: \"#FFA807\",\n highlight: {\n border: \"#C37F00\",\n background: \"#FFCA66\"\n },\n hover: {\n border: \"#C37F00\",\n background: \"#FFCA66\"\n }\n },\n // 6: orange\n {\n border: \"#4220FB\",\n background: \"#6E6EFD\",\n highlight: {\n border: \"#4220FB\",\n background: \"#9B9BFD\"\n },\n hover: {\n border: \"#4220FB\",\n background: \"#9B9BFD\"\n }\n },\n // 7: darkblue\n {\n border: \"#FD5A77\",\n background: \"#FFC0CB\",\n highlight: {\n border: \"#FD5A77\",\n background: \"#FFD1D9\"\n },\n hover: {\n border: \"#FD5A77\",\n background: \"#FFD1D9\"\n }\n },\n // 8: pink\n {\n border: \"#4AD63A\",\n background: \"#C2FABC\",\n highlight: {\n border: \"#4AD63A\",\n background: \"#E6FFE3\"\n },\n hover: {\n border: \"#4AD63A\",\n background: \"#E6FFE3\"\n }\n },\n // 9: mint\n\n {\n border: \"#990000\",\n background: \"#EE0000\",\n highlight: {\n border: \"#BB0000\",\n background: \"#FF3333\"\n },\n hover: {\n border: \"#BB0000\",\n background: \"#FF3333\"\n }\n },\n // 10:bright red\n\n {\n border: \"#FF6000\",\n background: \"#FF6000\",\n highlight: {\n border: \"#FF6000\",\n background: \"#FF6000\"\n },\n hover: {\n border: \"#FF6000\",\n background: \"#FF6000\"\n }\n },\n // 12: real orange\n {\n border: \"#97C2FC\",\n background: \"#2B7CE9\",\n highlight: {\n border: \"#D2E5FF\",\n background: \"#2B7CE9\"\n },\n hover: {\n border: \"#D2E5FF\",\n background: \"#2B7CE9\"\n }\n },\n // 13: blue\n {\n border: \"#399605\",\n background: \"#255C03\",\n highlight: {\n border: \"#399605\",\n background: \"#255C03\"\n },\n hover: {\n border: \"#399605\",\n background: \"#255C03\"\n }\n },\n // 14: green\n {\n border: \"#B70054\",\n background: \"#FF007E\",\n highlight: {\n border: \"#B70054\",\n background: \"#FF007E\"\n },\n hover: {\n border: \"#B70054\",\n background: \"#FF007E\"\n }\n },\n // 15: magenta\n {\n border: \"#AD85E4\",\n background: \"#7C29F0\",\n highlight: {\n border: \"#D3BDF0\",\n background: \"#7C29F0\"\n },\n hover: {\n border: \"#D3BDF0\",\n background: \"#7C29F0\"\n }\n },\n // 16: purple\n {\n border: \"#4557FA\",\n background: \"#000EA1\",\n highlight: {\n border: \"#6E6EFD\",\n background: \"#000EA1\"\n },\n hover: {\n border: \"#6E6EFD\",\n background: \"#000EA1\"\n }\n },\n // 17: darkblue\n {\n border: \"#FFC0CB\",\n background: \"#FD5A77\",\n highlight: {\n border: \"#FFD1D9\",\n background: \"#FD5A77\"\n },\n hover: {\n border: \"#FFD1D9\",\n background: \"#FD5A77\"\n }\n },\n // 18: pink\n {\n border: \"#C2FABC\",\n background: \"#74D66A\",\n highlight: {\n border: \"#E6FFE3\",\n background: \"#74D66A\"\n },\n hover: {\n border: \"#E6FFE3\",\n background: \"#74D66A\"\n }\n },\n // 19: mint\n\n {\n border: \"#EE0000\",\n background: \"#990000\",\n highlight: {\n border: \"#FF3333\",\n background: \"#BB0000\"\n },\n hover: {\n border: \"#FF3333\",\n background: \"#BB0000\"\n }\n } // 20:bright red\n ];\n\n this.options = {};\n this.defaultOptions = {\n useDefaultGroups: true\n };\n _Object$assign(this.options, this.defaultOptions);\n }\n\n /**\n *\n * @param {object} options\n */\n _createClass(Groups, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n var optionFields = [\"useDefaultGroups\"];\n if (options !== undefined) {\n for (var groupName in options) {\n if (Object.prototype.hasOwnProperty.call(options, groupName)) {\n if (_indexOfInstanceProperty(optionFields).call(optionFields, groupName) === -1) {\n var group = options[groupName];\n this.add(groupName, group);\n }\n }\n }\n }\n }\n\n /**\n * Clear all groups\n */\n }, {\n key: \"clear\",\n value: function clear() {\n this._groups = new _Map();\n this._groupNames = [];\n }\n\n /**\n * Get group options of a groupname.\n * If groupname is not found, a new group may be created.\n *\n * @param {*} groupname Can be a number, string, Date, etc.\n * @param {boolean} [shouldCreate=true] If true, create a new group\n * @returns {object} The found or created group\n */\n }, {\n key: \"get\",\n value: function get(groupname) {\n var shouldCreate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var group = this._groups.get(groupname);\n if (group === undefined && shouldCreate) {\n if (this.options.useDefaultGroups === false && this._groupNames.length > 0) {\n // create new group\n var index = this._groupIndex % this._groupNames.length;\n ++this._groupIndex;\n group = {};\n group.color = this._groups.get(this._groupNames[index]);\n this._groups.set(groupname, group);\n } else {\n // create new group\n var _index = this._defaultIndex % this._defaultGroups.length;\n this._defaultIndex++;\n group = {};\n group.color = this._defaultGroups[_index];\n this._groups.set(groupname, group);\n }\n }\n return group;\n }\n\n /**\n * Add custom group style.\n *\n * @param {string} groupName - The name of the group, a new group will be\n * created if a group with the same name doesn't exist, otherwise the old\n * groups style will be overwritten.\n * @param {object} style - An object containing borderColor, backgroundColor,\n * etc.\n * @returns {object} The created group object.\n */\n }, {\n key: \"add\",\n value: function add(groupName, style) {\n // Only push group name once to prevent duplicates which would consume more\n // RAM and also skew the distribution towards more often updated groups,\n // neither of which is desirable.\n if (!this._groups.has(groupName)) {\n this._groupNames.push(groupName);\n }\n this._groups.set(groupName, style);\n return style;\n }\n }]);\n return Groups;\n}();\n\nvar isNanExports = {};\nvar isNan$2 = {\n get exports(){ return isNanExports; },\n set exports(v){ isNanExports = v; },\n};\n\nvar $$n = _export;\n\n// `Number.isNaN` method\n// https://tc39.es/ecma262/#sec-number.isnan\n$$n({ target: 'Number', stat: true }, {\n isNaN: function isNaN(number) {\n // eslint-disable-next-line no-self-compare -- NaN check\n return number != number;\n }\n});\n\nvar path$b = path$z;\n\nvar isNan$1 = path$b.Number.isNaN;\n\nvar parent$D = isNan$1;\n\nvar isNan = parent$D;\n\n(function (module) {\n\tmodule.exports = isNan;\n} (isNan$2));\n\nvar _Number$isNaN = /*@__PURE__*/getDefaultExportFromCjs(isNanExports);\n\nvar _isFiniteExports = {};\nvar _isFinite$2 = {\n get exports(){ return _isFiniteExports; },\n set exports(v){ _isFiniteExports = v; },\n};\n\nvar global$8 = global$q;\n\nvar globalIsFinite = global$8.isFinite;\n\n// `Number.isFinite` method\n// https://tc39.es/ecma262/#sec-number.isfinite\n// eslint-disable-next-line es/no-number-isfinite -- safe\nvar numberIsFinite$1 = Number.isFinite || function isFinite(it) {\n return typeof it == 'number' && globalIsFinite(it);\n};\n\nvar $$m = _export;\nvar numberIsFinite = numberIsFinite$1;\n\n// `Number.isFinite` method\n// https://tc39.es/ecma262/#sec-number.isfinite\n$$m({ target: 'Number', stat: true }, { isFinite: numberIsFinite });\n\nvar path$a = path$z;\n\nvar _isFinite$1 = path$a.Number.isFinite;\n\nvar parent$C = _isFinite$1;\n\nvar _isFinite = parent$C;\n\n(function (module) {\n\tmodule.exports = _isFinite;\n} (_isFinite$2));\n\nvar _Number$isFinite = /*@__PURE__*/getDefaultExportFromCjs(_isFiniteExports);\n\nvar someExports = {};\nvar some$3 = {\n get exports(){ return someExports; },\n set exports(v){ someExports = v; },\n};\n\nvar $$l = _export;\nvar $some = arrayIteration.some;\nvar arrayMethodIsStrict$3 = arrayMethodIsStrict$6;\n\nvar STRICT_METHOD$2 = arrayMethodIsStrict$3('some');\n\n// `Array.prototype.some` method\n// https://tc39.es/ecma262/#sec-array.prototype.some\n$$l({ target: 'Array', proto: true, forced: !STRICT_METHOD$2 }, {\n some: function some(callbackfn /* , thisArg */) {\n return $some(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\nvar entryVirtual$7 = entryVirtual$l;\n\nvar some$2 = entryVirtual$7('Array').some;\n\nvar isPrototypeOf$8 = objectIsPrototypeOf;\nvar method$7 = some$2;\n\nvar ArrayPrototype$7 = Array.prototype;\n\nvar some$1 = function (it) {\n var own = it.some;\n return it === ArrayPrototype$7 || (isPrototypeOf$8(ArrayPrototype$7, it) && own === ArrayPrototype$7.some) ? method$7 : own;\n};\n\nvar parent$B = some$1;\n\nvar some = parent$B;\n\n(function (module) {\n\tmodule.exports = some;\n} (some$3));\n\nvar _someInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(someExports);\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\n\nvar createExports$1 = {};\nvar create$5 = {\n get exports(){ return createExports$1; },\n set exports(v){ createExports$1 = v; },\n};\n\nvar createExports = {};\nvar create$4 = {\n get exports(){ return createExports; },\n set exports(v){ createExports = v; },\n};\n\nvar parent$A = create$7;\n\nvar create$3 = parent$A;\n\nvar parent$z = create$3;\n\nvar create$2 = parent$z;\n\n(function (module) {\n\tmodule.exports = create$2;\n} (create$4));\n\n(function (module) {\n\tmodule.exports = createExports;\n} (create$5));\n\nvar _Object$create = /*@__PURE__*/getDefaultExportFromCjs(createExports$1);\n\nvar setPrototypeOfExports$1 = {};\nvar setPrototypeOf$7 = {\n get exports(){ return setPrototypeOfExports$1; },\n set exports(v){ setPrototypeOfExports$1 = v; },\n};\n\nvar setPrototypeOfExports = {};\nvar setPrototypeOf$6 = {\n get exports(){ return setPrototypeOfExports; },\n set exports(v){ setPrototypeOfExports = v; },\n};\n\nvar $$k = _export;\nvar setPrototypeOf$5 = objectSetPrototypeOf;\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n$$k({ target: 'Object', stat: true }, {\n setPrototypeOf: setPrototypeOf$5\n});\n\nvar path$9 = path$z;\n\nvar setPrototypeOf$4 = path$9.Object.setPrototypeOf;\n\nvar parent$y = setPrototypeOf$4;\n\nvar setPrototypeOf$3 = parent$y;\n\nvar parent$x = setPrototypeOf$3;\n\nvar setPrototypeOf$2 = parent$x;\n\nvar parent$w = setPrototypeOf$2;\n\nvar setPrototypeOf$1 = parent$w;\n\n(function (module) {\n\tmodule.exports = setPrototypeOf$1;\n} (setPrototypeOf$6));\n\n(function (module) {\n\tmodule.exports = setPrototypeOfExports;\n} (setPrototypeOf$7));\n\nvar _Object$setPrototypeOf = /*@__PURE__*/getDefaultExportFromCjs(setPrototypeOfExports$1);\n\nvar bindExports$1 = {};\nvar bind$8 = {\n get exports(){ return bindExports$1; },\n set exports(v){ bindExports$1 = v; },\n};\n\nvar bindExports = {};\nvar bind$7 = {\n get exports(){ return bindExports; },\n set exports(v){ bindExports = v; },\n};\n\nvar parent$v = bind$d;\n\nvar bind$6 = parent$v;\n\nvar parent$u = bind$6;\n\nvar bind$5 = parent$u;\n\n(function (module) {\n\tmodule.exports = bind$5;\n} (bind$7));\n\n(function (module) {\n\tmodule.exports = bindExports;\n} (bind$8));\n\nvar _bindInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(bindExports$1);\n\nfunction _setPrototypeOf(o, p) {\n var _context;\n _setPrototypeOf = _Object$setPrototypeOf ? _bindInstanceProperty(_context = _Object$setPrototypeOf).call(_context) : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = _Object$create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n _Object$defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof$1(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return _assertThisInitialized(self);\n}\n\nvar getPrototypeOfExports$1 = {};\nvar getPrototypeOf$5 = {\n get exports(){ return getPrototypeOfExports$1; },\n set exports(v){ getPrototypeOfExports$1 = v; },\n};\n\nvar getPrototypeOfExports = {};\nvar getPrototypeOf$4 = {\n get exports(){ return getPrototypeOfExports; },\n set exports(v){ getPrototypeOfExports = v; },\n};\n\nvar parent$t = getPrototypeOf$6;\n\nvar getPrototypeOf$3 = parent$t;\n\nvar parent$s = getPrototypeOf$3;\n\nvar getPrototypeOf$2 = parent$s;\n\n(function (module) {\n\tmodule.exports = getPrototypeOf$2;\n} (getPrototypeOf$4));\n\n(function (module) {\n\tmodule.exports = getPrototypeOfExports;\n} (getPrototypeOf$5));\n\nvar _Object$getPrototypeOf = /*@__PURE__*/getDefaultExportFromCjs(getPrototypeOfExports$1);\n\nfunction _getPrototypeOf(o) {\n var _context;\n _getPrototypeOf = _Object$setPrototypeOf ? _bindInstanceProperty(_context = _Object$getPrototypeOf).call(_context) : function _getPrototypeOf(o) {\n return o.__proto__ || _Object$getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nvar regeneratorRuntimeExports = {};\nvar regeneratorRuntime$1 = {\n get exports(){ return regeneratorRuntimeExports; },\n set exports(v){ regeneratorRuntimeExports = v; },\n};\n\nvar _typeofExports = {};\nvar _typeof = {\n get exports(){ return _typeofExports; },\n set exports(v){ _typeofExports = v; },\n};\n\n(function (module) {\n\tvar _Symbol = symbolExports$2;\n\tvar _Symbol$iterator = iteratorExports$2;\n\tfunction _typeof(obj) {\n\t \"@babel/helpers - typeof\";\n\n\t return (module.exports = _typeof = \"function\" == typeof _Symbol && \"symbol\" == typeof _Symbol$iterator ? function (obj) {\n\t return typeof obj;\n\t } : function (obj) {\n\t return obj && \"function\" == typeof _Symbol && obj.constructor === _Symbol && obj !== _Symbol.prototype ? \"symbol\" : typeof obj;\n\t }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(obj);\n\t}\n\tmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n} (_typeof));\n\nvar forEachExports$1 = {};\nvar forEach$3 = {\n get exports(){ return forEachExports$1; },\n set exports(v){ forEachExports$1 = v; },\n};\n\nvar forEachExports = {};\nvar forEach$2 = {\n get exports(){ return forEachExports; },\n set exports(v){ forEachExports = v; },\n};\n\nvar parent$r = forEach$6;\n\nvar forEach$1 = parent$r;\n\nvar parent$q = forEach$1;\n\nvar forEach = parent$q;\n\n(function (module) {\n\tmodule.exports = forEach;\n} (forEach$2));\n\n(function (module) {\n\tmodule.exports = forEachExports;\n} (forEach$3));\n\nvar promiseExports$1 = {};\nvar promise$6 = {\n get exports(){ return promiseExports$1; },\n set exports(v){ promiseExports$1 = v; },\n};\n\nvar promiseExports = {};\nvar promise$5 = {\n get exports(){ return promiseExports; },\n set exports(v){ promiseExports = v; },\n};\n\nvar hasOwn$6 = hasOwnProperty_1;\nvar ownKeys$5 = ownKeys$b;\nvar getOwnPropertyDescriptorModule$1 = objectGetOwnPropertyDescriptor;\nvar definePropertyModule = objectDefineProperty;\n\nvar copyConstructorProperties$1 = function (target, source, exceptions) {\n var keys = ownKeys$5(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$1.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn$6(target, key) && !(exceptions && hasOwn$6(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n\nvar isObject$6 = isObject$m;\nvar createNonEnumerableProperty$2 = createNonEnumerableProperty$9;\n\n// `InstallErrorCause` abstract operation\n// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause\nvar installErrorCause$1 = function (O, options) {\n if (isObject$6(options) && 'cause' in options) {\n createNonEnumerableProperty$2(O, 'cause', options.cause);\n }\n};\n\nvar uncurryThis$4 = functionUncurryThis;\n\nvar $Error$1 = Error;\nvar replace = uncurryThis$4(''.replace);\n\nvar TEST = (function (arg) { return String($Error$1(arg).stack); })('zxcasd');\n// eslint-disable-next-line redos/no-vulnerable -- safe\nvar V8_OR_CHAKRA_STACK_ENTRY = /\\n\\s*at [^:]*:[^\\n]*/;\nvar IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);\n\nvar errorStackClear = function (stack, dropEntries) {\n if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error$1.prepareStackTrace) {\n while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');\n } return stack;\n};\n\nvar fails$7 = fails$z;\nvar createPropertyDescriptor$1 = createPropertyDescriptor$7;\n\nvar errorStackInstallable = !fails$7(function () {\n var error = Error('a');\n if (!('stack' in error)) return true;\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty(error, 'stack', createPropertyDescriptor$1(1, 7));\n return error.stack !== 7;\n});\n\nvar createNonEnumerableProperty$1 = createNonEnumerableProperty$9;\nvar clearErrorStack = errorStackClear;\nvar ERROR_STACK_INSTALLABLE = errorStackInstallable;\n\n// non-standard V8\nvar captureStackTrace = Error.captureStackTrace;\n\nvar errorStackInstall = function (error, C, stack, dropEntries) {\n if (ERROR_STACK_INSTALLABLE) {\n if (captureStackTrace) captureStackTrace(error, C);\n else createNonEnumerableProperty$1(error, 'stack', clearErrorStack(stack, dropEntries));\n }\n};\n\nvar toString$2 = toString$b;\n\nvar normalizeStringArgument$1 = function (argument, $default) {\n return argument === undefined ? arguments.length < 2 ? '' : $default : toString$2(argument);\n};\n\nvar $$j = _export;\nvar isPrototypeOf$7 = objectIsPrototypeOf;\nvar getPrototypeOf$1 = objectGetPrototypeOf;\nvar setPrototypeOf = objectSetPrototypeOf;\nvar copyConstructorProperties = copyConstructorProperties$1;\nvar create$1 = objectCreate;\nvar createNonEnumerableProperty = createNonEnumerableProperty$9;\nvar createPropertyDescriptor = createPropertyDescriptor$7;\nvar installErrorCause = installErrorCause$1;\nvar installErrorStack = errorStackInstall;\nvar iterate$5 = iterate$8;\nvar normalizeStringArgument = normalizeStringArgument$1;\nvar wellKnownSymbol$2 = wellKnownSymbol$o;\n\nvar TO_STRING_TAG = wellKnownSymbol$2('toStringTag');\nvar $Error = Error;\nvar push$2 = [].push;\n\nvar $AggregateError = function AggregateError(errors, message /* , options */) {\n var isInstance = isPrototypeOf$7(AggregateErrorPrototype, this);\n var that;\n if (setPrototypeOf) {\n that = setPrototypeOf($Error(), isInstance ? getPrototypeOf$1(this) : AggregateErrorPrototype);\n } else {\n that = isInstance ? this : create$1(AggregateErrorPrototype);\n createNonEnumerableProperty(that, TO_STRING_TAG, 'Error');\n }\n if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message));\n installErrorStack(that, $AggregateError, that.stack, 1);\n if (arguments.length > 2) installErrorCause(that, arguments[2]);\n var errorsArray = [];\n iterate$5(errors, push$2, { that: errorsArray });\n createNonEnumerableProperty(that, 'errors', errorsArray);\n return that;\n};\n\nif (setPrototypeOf) setPrototypeOf($AggregateError, $Error);\nelse copyConstructorProperties($AggregateError, $Error, { name: true });\n\nvar AggregateErrorPrototype = $AggregateError.prototype = create$1($Error.prototype, {\n constructor: createPropertyDescriptor(1, $AggregateError),\n message: createPropertyDescriptor(1, ''),\n name: createPropertyDescriptor(1, 'AggregateError')\n});\n\n// `AggregateError` constructor\n// https://tc39.es/ecma262/#sec-aggregate-error-constructor\n$$j({ global: true, constructor: true, arity: 2 }, {\n AggregateError: $AggregateError\n});\n\nvar classof$3 = classofRaw$2;\n\nvar engineIsNode = typeof process != 'undefined' && classof$3(process) == 'process';\n\nvar isConstructor = isConstructor$4;\nvar tryToString = tryToString$6;\n\nvar $TypeError$2 = TypeError;\n\n// `Assert: IsConstructor(argument) is true`\nvar aConstructor$2 = function (argument) {\n if (isConstructor(argument)) return argument;\n throw $TypeError$2(tryToString(argument) + ' is not a constructor');\n};\n\nvar anObject$4 = anObject$f;\nvar aConstructor$1 = aConstructor$2;\nvar isNullOrUndefined$1 = isNullOrUndefined$6;\nvar wellKnownSymbol$1 = wellKnownSymbol$o;\n\nvar SPECIES$1 = wellKnownSymbol$1('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nvar speciesConstructor$2 = function (O, defaultConstructor) {\n var C = anObject$4(O).constructor;\n var S;\n return C === undefined || isNullOrUndefined$1(S = anObject$4(C)[SPECIES$1]) ? defaultConstructor : aConstructor$1(S);\n};\n\nvar userAgent$4 = engineUserAgent;\n\n// eslint-disable-next-line redos/no-vulnerable -- safe\nvar engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$4);\n\nvar global$7 = global$q;\nvar apply$1 = functionApply;\nvar bind$4 = functionBindContext;\nvar isCallable$3 = isCallable$m;\nvar hasOwn$5 = hasOwnProperty_1;\nvar fails$6 = fails$z;\nvar html = html$2;\nvar arraySlice$1 = arraySlice$6;\nvar createElement = documentCreateElement$1;\nvar validateArgumentsLength = validateArgumentsLength$2;\nvar IS_IOS$1 = engineIsIos;\nvar IS_NODE$4 = engineIsNode;\n\nvar set$3 = global$7.setImmediate;\nvar clear = global$7.clearImmediate;\nvar process$3 = global$7.process;\nvar Dispatch = global$7.Dispatch;\nvar Function$1 = global$7.Function;\nvar MessageChannel = global$7.MessageChannel;\nvar String$1 = global$7.String;\nvar counter = 0;\nvar queue$2 = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar $location, defer, channel, port;\n\nfails$6(function () {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n $location = global$7.location;\n});\n\nvar run = function (id) {\n if (hasOwn$5(queue$2, id)) {\n var fn = queue$2[id];\n delete queue$2[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar eventListener = function (event) {\n run(event.data);\n};\n\nvar globalPostMessageDefer = function (id) {\n // old engines have not location.origin\n global$7.postMessage(String$1(id), $location.protocol + '//' + $location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set$3 || !clear) {\n set$3 = function setImmediate(handler) {\n validateArgumentsLength(arguments.length, 1);\n var fn = isCallable$3(handler) ? handler : Function$1(handler);\n var args = arraySlice$1(arguments, 1);\n queue$2[++counter] = function () {\n apply$1(fn, undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue$2[id];\n };\n // Node.js 0.8-\n if (IS_NODE$4) {\n defer = function (id) {\n process$3.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS$1) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = eventListener;\n defer = bind$4(port.postMessage, port);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global$7.addEventListener &&\n isCallable$3(global$7.postMessage) &&\n !global$7.importScripts &&\n $location && $location.protocol !== 'file:' &&\n !fails$6(globalPostMessageDefer)\n ) {\n defer = globalPostMessageDefer;\n global$7.addEventListener('message', eventListener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nvar task$1 = {\n set: set$3,\n clear: clear\n};\n\nvar Queue$3 = function () {\n this.head = null;\n this.tail = null;\n};\n\nQueue$3.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n var tail = this.tail;\n if (tail) tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n var next = this.head = entry.next;\n if (next === null) this.tail = null;\n return entry.item;\n }\n }\n};\n\nvar queue$1 = Queue$3;\n\nvar userAgent$3 = engineUserAgent;\n\nvar engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$3) && typeof Pebble != 'undefined';\n\nvar userAgent$2 = engineUserAgent;\n\nvar engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$2);\n\nvar global$6 = global$q;\nvar bind$3 = functionBindContext;\nvar getOwnPropertyDescriptor$4 = objectGetOwnPropertyDescriptor.f;\nvar macrotask = task$1.set;\nvar Queue$2 = queue$1;\nvar IS_IOS = engineIsIos;\nvar IS_IOS_PEBBLE = engineIsIosPebble;\nvar IS_WEBOS_WEBKIT = engineIsWebosWebkit;\nvar IS_NODE$3 = engineIsNode;\n\nvar MutationObserver = global$6.MutationObserver || global$6.WebKitMutationObserver;\nvar document$2 = global$6.document;\nvar process$2 = global$6.process;\nvar Promise$1 = global$6.Promise;\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor$4(global$6, 'queueMicrotask');\nvar microtask$1 = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\nvar notify$1, toggle, node, promise$4, then;\n\n// modern engines have queueMicrotask method\nif (!microtask$1) {\n var queue = new Queue$2();\n\n var flush = function () {\n var parent, fn;\n if (IS_NODE$3 && (parent = process$2.domain)) parent.exit();\n while (fn = queue.get()) try {\n fn();\n } catch (error) {\n if (queue.head) notify$1();\n throw error;\n }\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE$3 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {\n toggle = true;\n node = document$2.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify$1 = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise$4 = Promise$1.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise$4.constructor = Promise$1;\n then = bind$3(promise$4.then, promise$4);\n notify$1 = function () {\n then(flush);\n };\n // Node.js without promises\n } else if (IS_NODE$3) {\n notify$1 = function () {\n process$2.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessage\n // - onreadystatechange\n // - setTimeout\n } else {\n // `webpack` dev server bug on IE global methods - use bind(fn, global)\n macrotask = bind$3(macrotask, global$6);\n notify$1 = function () {\n macrotask(flush);\n };\n }\n\n microtask$1 = function (fn) {\n if (!queue.head) notify$1();\n queue.add(fn);\n };\n}\n\nvar microtask_1 = microtask$1;\n\nvar hostReportErrors$1 = function (a, b) {\n try {\n // eslint-disable-next-line no-console -- safe\n arguments.length == 1 ? console.error(a) : console.error(a, b);\n } catch (error) { /* empty */ }\n};\n\nvar perform$6 = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n\nvar global$5 = global$q;\n\nvar promiseNativeConstructor = global$5.Promise;\n\n/* global Deno -- Deno case */\n\nvar engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';\n\nvar IS_DENO$1 = engineIsDeno;\nvar IS_NODE$2 = engineIsNode;\n\nvar engineIsBrowser = !IS_DENO$1 && !IS_NODE$2\n && typeof window == 'object'\n && typeof document == 'object';\n\nvar global$4 = global$q;\nvar NativePromiseConstructor$5 = promiseNativeConstructor;\nvar isCallable$2 = isCallable$m;\nvar isForced = isForced_1;\nvar inspectSource = inspectSource$2;\nvar wellKnownSymbol = wellKnownSymbol$o;\nvar IS_BROWSER = engineIsBrowser;\nvar IS_DENO = engineIsDeno;\nvar V8_VERSION = engineV8Version;\n\nvar NativePromisePrototype$2 = NativePromiseConstructor$5 && NativePromiseConstructor$5.prototype;\nvar SPECIES = wellKnownSymbol('species');\nvar SUBCLASSING = false;\nvar NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$4.PromiseRejectionEvent);\n\nvar FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$5);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$5);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution\n if (!(NativePromisePrototype$2['catch'] && NativePromisePrototype$2['finally'])) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {\n // Detect correctness of subclassing with @@species support\n var promise = new NativePromiseConstructor$5(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;\n});\n\nvar promiseConstructorDetection = {\n CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,\n REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,\n SUBCLASSING: SUBCLASSING\n};\n\nvar newPromiseCapability$2 = {};\n\nvar aCallable$8 = aCallable$e;\n\nvar $TypeError$1 = TypeError;\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw $TypeError$1('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aCallable$8(resolve);\n this.reject = aCallable$8(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nnewPromiseCapability$2.f = function (C) {\n return new PromiseCapability(C);\n};\n\nvar $$i = _export;\nvar IS_NODE$1 = engineIsNode;\nvar global$3 = global$q;\nvar call$6 = functionCall;\nvar defineBuiltIn = defineBuiltIn$6;\nvar setToStringTag = setToStringTag$7;\nvar setSpecies = setSpecies$2;\nvar aCallable$7 = aCallable$e;\nvar isCallable$1 = isCallable$m;\nvar isObject$5 = isObject$m;\nvar anInstance$1 = anInstance$4;\nvar speciesConstructor$1 = speciesConstructor$2;\nvar task = task$1.set;\nvar microtask = microtask_1;\nvar hostReportErrors = hostReportErrors$1;\nvar perform$5 = perform$6;\nvar Queue$1 = queue$1;\nvar InternalStateModule$1 = internalState;\nvar NativePromiseConstructor$4 = promiseNativeConstructor;\nvar PromiseConstructorDetection = promiseConstructorDetection;\nvar newPromiseCapabilityModule$6 = newPromiseCapability$2;\n\nvar PROMISE = 'Promise';\nvar FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;\nvar NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;\nvar getInternalPromiseState = InternalStateModule$1.getterFor(PROMISE);\nvar setInternalState$1 = InternalStateModule$1.set;\nvar NativePromisePrototype$1 = NativePromiseConstructor$4 && NativePromiseConstructor$4.prototype;\nvar PromiseConstructor = NativePromiseConstructor$4;\nvar PromisePrototype = NativePromisePrototype$1;\nvar TypeError$1 = global$3.TypeError;\nvar document$1 = global$3.document;\nvar process$1 = global$3.process;\nvar newPromiseCapability$1 = newPromiseCapabilityModule$6.f;\nvar newGenericPromiseCapability = newPromiseCapability$1;\n\nvar DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$3.dispatchEvent);\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\n\nvar Internal, OwnPromiseCapability, PromiseWrapper;\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject$5(it) && isCallable$1(then = it.then) ? then : false;\n};\n\nvar callReaction = function (reaction, state) {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError$1('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n call$6(then, result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n};\n\nvar notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n microtask(function () {\n var reactions = state.reactions;\n var reaction;\n while (reaction = reactions.get()) {\n callReaction(reaction, state);\n }\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\n};\n\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document$1.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global$3.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$3['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n call$6(task, global$3, function () {\n var promise = state.facade;\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform$5(function () {\n if (IS_NODE$1) {\n process$1.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE$1 || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (state) {\n call$6(task, global$3, function () {\n var promise = state.facade;\n if (IS_NODE$1) {\n process$1.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind$2 = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw TypeError$1(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n call$6(then, value,\n bind$2(internalResolve, wrapper, state),\n bind$2(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED_PROMISE_CONSTRUCTOR$4) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance$1(this, PromisePrototype);\n aCallable$7(executor);\n call$6(Internal, this);\n var state = getInternalPromiseState(this);\n try {\n executor(bind$2(internalResolve, state), bind$2(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n\n PromisePrototype = PromiseConstructor.prototype;\n\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState$1(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: new Queue$1(),\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability$1(speciesConstructor$1(this, PromiseConstructor));\n state.parent = true;\n reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;\n reaction.fail = isCallable$1(onRejected) && onRejected;\n reaction.domain = IS_NODE$1 ? process$1.domain : undefined;\n if (state.state == PENDING) state.reactions.add(reaction);\n else microtask(function () {\n callReaction(reaction, state);\n });\n return reaction.promise;\n });\n\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalPromiseState(promise);\n this.promise = promise;\n this.resolve = bind$2(internalResolve, state);\n this.reject = bind$2(internalReject, state);\n };\n\n newPromiseCapabilityModule$6.f = newPromiseCapability$1 = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n}\n\n$$i({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n\nvar NativePromiseConstructor$3 = promiseNativeConstructor;\nvar checkCorrectnessOfIteration = checkCorrectnessOfIteration$2;\nvar FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;\n\nvar promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {\n NativePromiseConstructor$3.all(iterable).then(undefined, function () { /* empty */ });\n});\n\nvar $$h = _export;\nvar call$5 = functionCall;\nvar aCallable$6 = aCallable$e;\nvar newPromiseCapabilityModule$5 = newPromiseCapability$2;\nvar perform$4 = perform$6;\nvar iterate$4 = iterate$8;\nvar PROMISE_STATICS_INCORRECT_ITERATION$3 = promiseStaticsIncorrectIteration;\n\n// `Promise.all` method\n// https://tc39.es/ecma262/#sec-promise.all\n$$h({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$3 }, {\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule$5.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform$4(function () {\n var $promiseResolve = aCallable$6(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate$4(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call$5($promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n\nvar $$g = _export;\nvar FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;\nvar NativePromiseConstructor$2 = promiseNativeConstructor;\n\nNativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;\n\n// `Promise.prototype.catch` method\n// https://tc39.es/ecma262/#sec-promise.prototype.catch\n$$g({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n});\n\nvar $$f = _export;\nvar call$4 = functionCall;\nvar aCallable$5 = aCallable$e;\nvar newPromiseCapabilityModule$4 = newPromiseCapability$2;\nvar perform$3 = perform$6;\nvar iterate$3 = iterate$8;\nvar PROMISE_STATICS_INCORRECT_ITERATION$2 = promiseStaticsIncorrectIteration;\n\n// `Promise.race` method\n// https://tc39.es/ecma262/#sec-promise.race\n$$f({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$2 }, {\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule$4.f(C);\n var reject = capability.reject;\n var result = perform$3(function () {\n var $promiseResolve = aCallable$5(C.resolve);\n iterate$3(iterable, function (promise) {\n call$4($promiseResolve, C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n\nvar $$e = _export;\nvar call$3 = functionCall;\nvar newPromiseCapabilityModule$3 = newPromiseCapability$2;\nvar FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;\n\n// `Promise.reject` method\n// https://tc39.es/ecma262/#sec-promise.reject\n$$e({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {\n reject: function reject(r) {\n var capability = newPromiseCapabilityModule$3.f(this);\n call$3(capability.reject, undefined, r);\n return capability.promise;\n }\n});\n\nvar anObject$3 = anObject$f;\nvar isObject$4 = isObject$m;\nvar newPromiseCapability = newPromiseCapability$2;\n\nvar promiseResolve$2 = function (C, x) {\n anObject$3(C);\n if (isObject$4(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n\nvar $$d = _export;\nvar getBuiltIn$3 = getBuiltIn$f;\nvar IS_PURE = isPure;\nvar NativePromiseConstructor$1 = promiseNativeConstructor;\nvar FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;\nvar promiseResolve$1 = promiseResolve$2;\n\nvar PromiseConstructorWrapper = getBuiltIn$3('Promise');\nvar CHECK_WRAPPER = !FORCED_PROMISE_CONSTRUCTOR;\n\n// `Promise.resolve` method\n// https://tc39.es/ecma262/#sec-promise.resolve\n$$d({ target: 'Promise', stat: true, forced: IS_PURE }, {\n resolve: function resolve(x) {\n return promiseResolve$1(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor$1 : this, x);\n }\n});\n\nvar $$c = _export;\nvar call$2 = functionCall;\nvar aCallable$4 = aCallable$e;\nvar newPromiseCapabilityModule$2 = newPromiseCapability$2;\nvar perform$2 = perform$6;\nvar iterate$2 = iterate$8;\nvar PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;\n\n// `Promise.allSettled` method\n// https://tc39.es/ecma262/#sec-promise.allsettled\n$$c({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {\n allSettled: function allSettled(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule$2.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform$2(function () {\n var promiseResolve = aCallable$4(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate$2(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call$2(promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'fulfilled', value: value };\n --remaining || resolve(values);\n }, function (error) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'rejected', reason: error };\n --remaining || resolve(values);\n });\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n\nvar $$b = _export;\nvar call$1 = functionCall;\nvar aCallable$3 = aCallable$e;\nvar getBuiltIn$2 = getBuiltIn$f;\nvar newPromiseCapabilityModule$1 = newPromiseCapability$2;\nvar perform$1 = perform$6;\nvar iterate$1 = iterate$8;\nvar PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;\n\nvar PROMISE_ANY_ERROR = 'No one promise resolved';\n\n// `Promise.any` method\n// https://tc39.es/ecma262/#sec-promise.any\n$$b({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n any: function any(iterable) {\n var C = this;\n var AggregateError = getBuiltIn$2('AggregateError');\n var capability = newPromiseCapabilityModule$1.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform$1(function () {\n var promiseResolve = aCallable$3(C.resolve);\n var errors = [];\n var counter = 0;\n var remaining = 1;\n var alreadyResolved = false;\n iterate$1(iterable, function (promise) {\n var index = counter++;\n var alreadyRejected = false;\n remaining++;\n call$1(promiseResolve, C, promise).then(function (value) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyResolved = true;\n resolve(value);\n }, function (error) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyRejected = true;\n errors[index] = error;\n --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));\n });\n });\n --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n\nvar $$a = _export;\nvar NativePromiseConstructor = promiseNativeConstructor;\nvar fails$5 = fails$z;\nvar getBuiltIn$1 = getBuiltIn$f;\nvar isCallable = isCallable$m;\nvar speciesConstructor = speciesConstructor$2;\nvar promiseResolve = promiseResolve$2;\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829\nvar NON_GENERIC = !!NativePromiseConstructor && fails$5(function () {\n // eslint-disable-next-line unicorn/no-thenable -- required for testing\n NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });\n});\n\n// `Promise.prototype.finally` method\n// https://tc39.es/ecma262/#sec-promise.prototype.finally\n$$a({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {\n 'finally': function (onFinally) {\n var C = speciesConstructor(this, getBuiltIn$1('Promise'));\n var isFunction = isCallable(onFinally);\n return this.then(\n isFunction ? function (x) {\n return promiseResolve(C, onFinally()).then(function () { return x; });\n } : onFinally,\n isFunction ? function (e) {\n return promiseResolve(C, onFinally()).then(function () { throw e; });\n } : onFinally\n );\n }\n});\n\nvar path$8 = path$z;\n\nvar promise$3 = path$8.Promise;\n\nvar parent$p = promise$3;\n\n\nvar promise$2 = parent$p;\n\nvar parent$o = promise$2;\n\nvar promise$1 = parent$o;\n\n// TODO: Remove from `core-js@4`\nvar $$9 = _export;\nvar newPromiseCapabilityModule = newPromiseCapability$2;\nvar perform = perform$6;\n\n// `Promise.try` method\n// https://github.com/tc39/proposal-promise-try\n$$9({ target: 'Promise', stat: true, forced: true }, {\n 'try': function (callbackfn) {\n var promiseCapability = newPromiseCapabilityModule.f(this);\n var result = perform(callbackfn);\n (result.error ? promiseCapability.reject : promiseCapability.resolve)(result.value);\n return promiseCapability.promise;\n }\n});\n\nvar parent$n = promise$1;\n\n// TODO: Remove from `core-js@4`\n\n\n\n\nvar promise = parent$n;\n\n(function (module) {\n\tmodule.exports = promise;\n} (promise$5));\n\n(function (module) {\n\tmodule.exports = promiseExports;\n} (promise$6));\n\nvar reverseExports$1 = {};\nvar reverse$3 = {\n get exports(){ return reverseExports$1; },\n set exports(v){ reverseExports$1 = v; },\n};\n\nvar reverseExports = {};\nvar reverse$2 = {\n get exports(){ return reverseExports; },\n set exports(v){ reverseExports = v; },\n};\n\nvar parent$m = reverse$4;\n\nvar reverse$1 = parent$m;\n\nvar parent$l = reverse$1;\n\nvar reverse = parent$l;\n\n(function (module) {\n\tmodule.exports = reverse;\n} (reverse$2));\n\n(function (module) {\n\tmodule.exports = reverseExports;\n} (reverse$3));\n\n(function (module) {\n\tvar _typeof = _typeofExports[\"default\"];\n\tvar _Object$defineProperty = definePropertyExports$1;\n\tvar _Symbol = symbolExports$2;\n\tvar _Object$create = createExports$1;\n\tvar _Object$getPrototypeOf = getPrototypeOfExports$1;\n\tvar _forEachInstanceProperty = forEachExports$1;\n\tvar _Object$setPrototypeOf = setPrototypeOfExports$1;\n\tvar _Promise = promiseExports$1;\n\tvar _reverseInstanceProperty = reverseExports$1;\n\tvar _sliceInstanceProperty = sliceExports$2;\n\tfunction _regeneratorRuntime() {\n\t module.exports = _regeneratorRuntime = function _regeneratorRuntime() {\n\t return exports;\n\t }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n\t var exports = {},\n\t Op = Object.prototype,\n\t hasOwn = Op.hasOwnProperty,\n\t defineProperty = _Object$defineProperty || function (obj, key, desc) {\n\t obj[key] = desc.value;\n\t },\n\t $Symbol = \"function\" == typeof _Symbol ? _Symbol : {},\n\t iteratorSymbol = $Symbol.iterator || \"@@iterator\",\n\t asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\",\n\t toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\t function define(obj, key, value) {\n\t return _Object$defineProperty(obj, key, {\n\t value: value,\n\t enumerable: !0,\n\t configurable: !0,\n\t writable: !0\n\t }), obj[key];\n\t }\n\t try {\n\t define({}, \"\");\n\t } catch (err) {\n\t define = function define(obj, key, value) {\n\t return obj[key] = value;\n\t };\n\t }\n\t function wrap(innerFn, outerFn, self, tryLocsList) {\n\t var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,\n\t generator = _Object$create(protoGenerator.prototype),\n\t context = new Context(tryLocsList || []);\n\t return defineProperty(generator, \"_invoke\", {\n\t value: makeInvokeMethod(innerFn, self, context)\n\t }), generator;\n\t }\n\t function tryCatch(fn, obj, arg) {\n\t try {\n\t return {\n\t type: \"normal\",\n\t arg: fn.call(obj, arg)\n\t };\n\t } catch (err) {\n\t return {\n\t type: \"throw\",\n\t arg: err\n\t };\n\t }\n\t }\n\t exports.wrap = wrap;\n\t var ContinueSentinel = {};\n\t function Generator() {}\n\t function GeneratorFunction() {}\n\t function GeneratorFunctionPrototype() {}\n\t var IteratorPrototype = {};\n\t define(IteratorPrototype, iteratorSymbol, function () {\n\t return this;\n\t });\n\t var getProto = _Object$getPrototypeOf,\n\t NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n\t NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);\n\t var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(IteratorPrototype);\n\t function defineIteratorMethods(prototype) {\n\t var _context;\n\t _forEachInstanceProperty(_context = [\"next\", \"throw\", \"return\"]).call(_context, function (method) {\n\t define(prototype, method, function (arg) {\n\t return this._invoke(method, arg);\n\t });\n\t });\n\t }\n\t function AsyncIterator(generator, PromiseImpl) {\n\t function invoke(method, arg, resolve, reject) {\n\t var record = tryCatch(generator[method], generator, arg);\n\t if (\"throw\" !== record.type) {\n\t var result = record.arg,\n\t value = result.value;\n\t return value && \"object\" == _typeof(value) && hasOwn.call(value, \"__await\") ? PromiseImpl.resolve(value.__await).then(function (value) {\n\t invoke(\"next\", value, resolve, reject);\n\t }, function (err) {\n\t invoke(\"throw\", err, resolve, reject);\n\t }) : PromiseImpl.resolve(value).then(function (unwrapped) {\n\t result.value = unwrapped, resolve(result);\n\t }, function (error) {\n\t return invoke(\"throw\", error, resolve, reject);\n\t });\n\t }\n\t reject(record.arg);\n\t }\n\t var previousPromise;\n\t defineProperty(this, \"_invoke\", {\n\t value: function value(method, arg) {\n\t function callInvokeWithMethodAndArg() {\n\t return new PromiseImpl(function (resolve, reject) {\n\t invoke(method, arg, resolve, reject);\n\t });\n\t }\n\t return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n\t }\n\t });\n\t }\n\t function makeInvokeMethod(innerFn, self, context) {\n\t var state = \"suspendedStart\";\n\t return function (method, arg) {\n\t if (\"executing\" === state) throw new Error(\"Generator is already running\");\n\t if (\"completed\" === state) {\n\t if (\"throw\" === method) throw arg;\n\t return doneResult();\n\t }\n\t for (context.method = method, context.arg = arg;;) {\n\t var delegate = context.delegate;\n\t if (delegate) {\n\t var delegateResult = maybeInvokeDelegate(delegate, context);\n\t if (delegateResult) {\n\t if (delegateResult === ContinueSentinel) continue;\n\t return delegateResult;\n\t }\n\t }\n\t if (\"next\" === context.method) context.sent = context._sent = context.arg;else if (\"throw\" === context.method) {\n\t if (\"suspendedStart\" === state) throw state = \"completed\", context.arg;\n\t context.dispatchException(context.arg);\n\t } else \"return\" === context.method && context.abrupt(\"return\", context.arg);\n\t state = \"executing\";\n\t var record = tryCatch(innerFn, self, context);\n\t if (\"normal\" === record.type) {\n\t if (state = context.done ? \"completed\" : \"suspendedYield\", record.arg === ContinueSentinel) continue;\n\t return {\n\t value: record.arg,\n\t done: context.done\n\t };\n\t }\n\t \"throw\" === record.type && (state = \"completed\", context.method = \"throw\", context.arg = record.arg);\n\t }\n\t };\n\t }\n\t function maybeInvokeDelegate(delegate, context) {\n\t var methodName = context.method,\n\t method = delegate.iterator[methodName];\n\t if (undefined === method) return context.delegate = null, \"throw\" === methodName && delegate.iterator[\"return\"] && (context.method = \"return\", context.arg = undefined, maybeInvokeDelegate(delegate, context), \"throw\" === context.method) || \"return\" !== methodName && (context.method = \"throw\", context.arg = new TypeError(\"The iterator does not provide a '\" + methodName + \"' method\")), ContinueSentinel;\n\t var record = tryCatch(method, delegate.iterator, context.arg);\n\t if (\"throw\" === record.type) return context.method = \"throw\", context.arg = record.arg, context.delegate = null, ContinueSentinel;\n\t var info = record.arg;\n\t return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, \"return\" !== context.method && (context.method = \"next\", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = \"throw\", context.arg = new TypeError(\"iterator result is not an object\"), context.delegate = null, ContinueSentinel);\n\t }\n\t function pushTryEntry(locs) {\n\t var entry = {\n\t tryLoc: locs[0]\n\t };\n\t 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);\n\t }\n\t function resetTryEntry(entry) {\n\t var record = entry.completion || {};\n\t record.type = \"normal\", delete record.arg, entry.completion = record;\n\t }\n\t function Context(tryLocsList) {\n\t this.tryEntries = [{\n\t tryLoc: \"root\"\n\t }], _forEachInstanceProperty(tryLocsList).call(tryLocsList, pushTryEntry, this), this.reset(!0);\n\t }\n\t function values(iterable) {\n\t if (iterable) {\n\t var iteratorMethod = iterable[iteratorSymbol];\n\t if (iteratorMethod) return iteratorMethod.call(iterable);\n\t if (\"function\" == typeof iterable.next) return iterable;\n\t if (!isNaN(iterable.length)) {\n\t var i = -1,\n\t next = function next() {\n\t for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;\n\t return next.value = undefined, next.done = !0, next;\n\t };\n\t return next.next = next;\n\t }\n\t }\n\t return {\n\t next: doneResult\n\t };\n\t }\n\t function doneResult() {\n\t return {\n\t value: undefined,\n\t done: !0\n\t };\n\t }\n\t return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, \"constructor\", {\n\t value: GeneratorFunctionPrototype,\n\t configurable: !0\n\t }), defineProperty(GeneratorFunctionPrototype, \"constructor\", {\n\t value: GeneratorFunction,\n\t configurable: !0\n\t }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, \"GeneratorFunction\"), exports.isGeneratorFunction = function (genFun) {\n\t var ctor = \"function\" == typeof genFun && genFun.constructor;\n\t return !!ctor && (ctor === GeneratorFunction || \"GeneratorFunction\" === (ctor.displayName || ctor.name));\n\t }, exports.mark = function (genFun) {\n\t return _Object$setPrototypeOf ? _Object$setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, \"GeneratorFunction\")), genFun.prototype = _Object$create(Gp), genFun;\n\t }, exports.awrap = function (arg) {\n\t return {\n\t __await: arg\n\t };\n\t }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {\n\t return this;\n\t }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n\t void 0 === PromiseImpl && (PromiseImpl = _Promise);\n\t var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);\n\t return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {\n\t return result.done ? result.value : iter.next();\n\t });\n\t }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, \"Generator\"), define(Gp, iteratorSymbol, function () {\n\t return this;\n\t }), define(Gp, \"toString\", function () {\n\t return \"[object Generator]\";\n\t }), exports.keys = function (val) {\n\t var object = Object(val),\n\t keys = [];\n\t for (var key in object) keys.push(key);\n\t return _reverseInstanceProperty(keys).call(keys), function next() {\n\t for (; keys.length;) {\n\t var key = keys.pop();\n\t if (key in object) return next.value = key, next.done = !1, next;\n\t }\n\t return next.done = !0, next;\n\t };\n\t }, exports.values = values, Context.prototype = {\n\t constructor: Context,\n\t reset: function reset(skipTempReset) {\n\t var _context2;\n\t if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = undefined, _forEachInstanceProperty(_context2 = this.tryEntries).call(_context2, resetTryEntry), !skipTempReset) for (var name in this) \"t\" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+_sliceInstanceProperty(name).call(name, 1)) && (this[name] = undefined);\n\t },\n\t stop: function stop() {\n\t this.done = !0;\n\t var rootRecord = this.tryEntries[0].completion;\n\t if (\"throw\" === rootRecord.type) throw rootRecord.arg;\n\t return this.rval;\n\t },\n\t dispatchException: function dispatchException(exception) {\n\t if (this.done) throw exception;\n\t var context = this;\n\t function handle(loc, caught) {\n\t return record.type = \"throw\", record.arg = exception, context.next = loc, caught && (context.method = \"next\", context.arg = undefined), !!caught;\n\t }\n\t for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n\t var entry = this.tryEntries[i],\n\t record = entry.completion;\n\t if (\"root\" === entry.tryLoc) return handle(\"end\");\n\t if (entry.tryLoc <= this.prev) {\n\t var hasCatch = hasOwn.call(entry, \"catchLoc\"),\n\t hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\t if (hasCatch && hasFinally) {\n\t if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);\n\t if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);\n\t } else if (hasCatch) {\n\t if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);\n\t } else {\n\t if (!hasFinally) throw new Error(\"try statement without catch or finally\");\n\t if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);\n\t }\n\t }\n\t }\n\t },\n\t abrupt: function abrupt(type, arg) {\n\t for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n\t var entry = this.tryEntries[i];\n\t if (entry.tryLoc <= this.prev && hasOwn.call(entry, \"finallyLoc\") && this.prev < entry.finallyLoc) {\n\t var finallyEntry = entry;\n\t break;\n\t }\n\t }\n\t finallyEntry && (\"break\" === type || \"continue\" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);\n\t var record = finallyEntry ? finallyEntry.completion : {};\n\t return record.type = type, record.arg = arg, finallyEntry ? (this.method = \"next\", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);\n\t },\n\t complete: function complete(record, afterLoc) {\n\t if (\"throw\" === record.type) throw record.arg;\n\t return \"break\" === record.type || \"continue\" === record.type ? this.next = record.arg : \"return\" === record.type ? (this.rval = this.arg = record.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;\n\t },\n\t finish: function finish(finallyLoc) {\n\t for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n\t var entry = this.tryEntries[i];\n\t if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;\n\t }\n\t },\n\t \"catch\": function _catch(tryLoc) {\n\t for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n\t var entry = this.tryEntries[i];\n\t if (entry.tryLoc === tryLoc) {\n\t var record = entry.completion;\n\t if (\"throw\" === record.type) {\n\t var thrown = record.arg;\n\t resetTryEntry(entry);\n\t }\n\t return thrown;\n\t }\n\t }\n\t throw new Error(\"illegal catch attempt\");\n\t },\n\t delegateYield: function delegateYield(iterable, resultName, nextLoc) {\n\t return this.delegate = {\n\t iterator: values(iterable),\n\t resultName: resultName,\n\t nextLoc: nextLoc\n\t }, \"next\" === this.method && (this.arg = undefined), ContinueSentinel;\n\t }\n\t }, exports;\n\t}\n\tmodule.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n} (regeneratorRuntime$1));\n\n// TODO(Babel 8): Remove this file.\n\nvar runtime = regeneratorRuntimeExports();\nvar regenerator = runtime;\n\n// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n if (typeof globalThis === \"object\") {\n globalThis.regeneratorRuntime = runtime;\n } else {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\n}\n\nvar reduceExports = {};\nvar reduce$3 = {\n get exports(){ return reduceExports; },\n set exports(v){ reduceExports = v; },\n};\n\nvar aCallable$2 = aCallable$e;\nvar toObject$2 = toObject$e;\nvar IndexedObject = indexedObject;\nvar lengthOfArrayLike$3 = lengthOfArrayLike$d;\n\nvar $TypeError = TypeError;\n\n// `Array.prototype.{ reduce, reduceRight }` methods implementation\nvar createMethod = function (IS_RIGHT) {\n return function (that, callbackfn, argumentsLength, memo) {\n aCallable$2(callbackfn);\n var O = toObject$2(that);\n var self = IndexedObject(O);\n var length = lengthOfArrayLike$3(O);\n var index = IS_RIGHT ? length - 1 : 0;\n var i = IS_RIGHT ? -1 : 1;\n if (argumentsLength < 2) while (true) {\n if (index in self) {\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if (IS_RIGHT ? index < 0 : length <= index) {\n throw $TypeError('Reduce of empty array with no initial value');\n }\n }\n for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n };\n};\n\nvar arrayReduce = {\n // `Array.prototype.reduce` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduce\n left: createMethod(false),\n // `Array.prototype.reduceRight` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduceright\n right: createMethod(true)\n};\n\nvar $$8 = _export;\nvar $reduce = arrayReduce.left;\nvar arrayMethodIsStrict$2 = arrayMethodIsStrict$6;\nvar CHROME_VERSION = engineV8Version;\nvar IS_NODE = engineIsNode;\n\n// Chrome 80-82 has a critical bug\n// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982\nvar CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;\nvar FORCED$4 = CHROME_BUG || !arrayMethodIsStrict$2('reduce');\n\n// `Array.prototype.reduce` method\n// https://tc39.es/ecma262/#sec-array.prototype.reduce\n$$8({ target: 'Array', proto: true, forced: FORCED$4 }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n var length = arguments.length;\n return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);\n }\n});\n\nvar entryVirtual$6 = entryVirtual$l;\n\nvar reduce$2 = entryVirtual$6('Array').reduce;\n\nvar isPrototypeOf$6 = objectIsPrototypeOf;\nvar method$6 = reduce$2;\n\nvar ArrayPrototype$6 = Array.prototype;\n\nvar reduce$1 = function (it) {\n var own = it.reduce;\n return it === ArrayPrototype$6 || (isPrototypeOf$6(ArrayPrototype$6, it) && own === ArrayPrototype$6.reduce) ? method$6 : own;\n};\n\nvar parent$k = reduce$1;\n\nvar reduce = parent$k;\n\n(function (module) {\n\tmodule.exports = reduce;\n} (reduce$3));\n\nvar _reduceInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(reduceExports);\n\nvar flatMapExports = {};\nvar flatMap$3 = {\n get exports(){ return flatMapExports; },\n set exports(v){ flatMapExports = v; },\n};\n\nvar isArray$1 = isArray$g;\nvar lengthOfArrayLike$2 = lengthOfArrayLike$d;\nvar doesNotExceedSafeInteger = doesNotExceedSafeInteger$3;\nvar bind$1 = functionBindContext;\n\n// `FlattenIntoArray` abstract operation\n// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray\nvar flattenIntoArray$1 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {\n var targetIndex = start;\n var sourceIndex = 0;\n var mapFn = mapper ? bind$1(mapper, thisArg) : false;\n var element, elementLen;\n\n while (sourceIndex < sourceLen) {\n if (sourceIndex in source) {\n element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];\n\n if (depth > 0 && isArray$1(element)) {\n elementLen = lengthOfArrayLike$2(element);\n targetIndex = flattenIntoArray$1(target, original, element, elementLen, targetIndex, depth - 1) - 1;\n } else {\n doesNotExceedSafeInteger(targetIndex + 1);\n target[targetIndex] = element;\n }\n\n targetIndex++;\n }\n sourceIndex++;\n }\n return targetIndex;\n};\n\nvar flattenIntoArray_1 = flattenIntoArray$1;\n\nvar $$7 = _export;\nvar flattenIntoArray = flattenIntoArray_1;\nvar aCallable$1 = aCallable$e;\nvar toObject$1 = toObject$e;\nvar lengthOfArrayLike$1 = lengthOfArrayLike$d;\nvar arraySpeciesCreate = arraySpeciesCreate$4;\n\n// `Array.prototype.flatMap` method\n// https://tc39.es/ecma262/#sec-array.prototype.flatmap\n$$7({ target: 'Array', proto: true }, {\n flatMap: function flatMap(callbackfn /* , thisArg */) {\n var O = toObject$1(this);\n var sourceLen = lengthOfArrayLike$1(O);\n var A;\n aCallable$1(callbackfn);\n A = arraySpeciesCreate(O, 0);\n A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n return A;\n }\n});\n\nvar entryVirtual$5 = entryVirtual$l;\n\nvar flatMap$2 = entryVirtual$5('Array').flatMap;\n\nvar isPrototypeOf$5 = objectIsPrototypeOf;\nvar method$5 = flatMap$2;\n\nvar ArrayPrototype$5 = Array.prototype;\n\nvar flatMap$1 = function (it) {\n var own = it.flatMap;\n return it === ArrayPrototype$5 || (isPrototypeOf$5(ArrayPrototype$5, it) && own === ArrayPrototype$5.flatMap) ? method$5 : own;\n};\n\nvar parent$j = flatMap$1;\n\nvar flatMap = parent$j;\n\n(function (module) {\n\tmodule.exports = flatMap;\n} (flatMap$3));\n\nvar _flatMapInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(flatMapExports);\n\nvar setExports = {};\nvar set$2 = {\n get exports(){ return setExports; },\n set exports(v){ setExports = v; },\n};\n\nvar collection$1 = collection$3;\nvar collectionStrong = collectionStrong$2;\n\n// `Set` constructor\n// https://tc39.es/ecma262/#sec-set-objects\ncollection$1('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n\nvar path$7 = path$z;\n\nvar set$1 = path$7.Set;\n\nvar parent$i = set$1;\n\n\nvar set = parent$i;\n\n(function (module) {\n\tmodule.exports = set;\n} (set$2));\n\nvar _Set = /*@__PURE__*/getDefaultExportFromCjs(setExports);\n\nvar iteratorExports = {};\nvar iterator = {\n get exports(){ return iteratorExports; },\n set exports(v){ iteratorExports = v; },\n};\n\n(function (module) {\n\tmodule.exports = iterator$3;\n} (iterator));\n\nvar _Symbol$iterator2 = /*@__PURE__*/getDefaultExportFromCjs(iteratorExports);\n\nvar getIteratorExports$1 = {};\nvar getIterator$5 = {\n get exports(){ return getIteratorExports$1; },\n set exports(v){ getIteratorExports$1 = v; },\n};\n\nvar getIteratorExports = {};\nvar getIterator$4 = {\n get exports(){ return getIteratorExports; },\n set exports(v){ getIteratorExports = v; },\n};\n\nvar getIterator$3 = getIterator$8;\n\nvar getIterator_1 = getIterator$3;\n\nvar parent$h = getIterator_1;\n\n\nvar getIterator$2 = parent$h;\n\nvar parent$g = getIterator$2;\n\nvar getIterator$1 = parent$g;\n\nvar parent$f = getIterator$1;\n\nvar getIterator = parent$f;\n\n(function (module) {\n\tmodule.exports = getIterator;\n} (getIterator$4));\n\n(function (module) {\n\tmodule.exports = getIteratorExports;\n} (getIterator$5));\n\nvar _getIterator = /*@__PURE__*/getDefaultExportFromCjs(getIteratorExports$1);\n\nvar sortExports = {};\nvar sort$3 = {\n get exports(){ return sortExports; },\n set exports(v){ sortExports = v; },\n};\n\nvar arraySlice = arraySliceSimple;\n\nvar floor = Math.floor;\n\nvar mergeSort = function (array, comparefn) {\n var length = array.length;\n var middle = floor(length / 2);\n return length < 8 ? insertionSort(array, comparefn) : merge(\n array,\n mergeSort(arraySlice(array, 0, middle), comparefn),\n mergeSort(arraySlice(array, middle), comparefn),\n comparefn\n );\n};\n\nvar insertionSort = function (array, comparefn) {\n var length = array.length;\n var i = 1;\n var element, j;\n\n while (i < length) {\n j = i;\n element = array[i];\n while (j && comparefn(array[j - 1], element) > 0) {\n array[j] = array[--j];\n }\n if (j !== i++) array[j] = element;\n } return array;\n};\n\nvar merge = function (array, left, right, comparefn) {\n var llength = left.length;\n var rlength = right.length;\n var lindex = 0;\n var rindex = 0;\n\n while (lindex < llength || rindex < rlength) {\n array[lindex + rindex] = (lindex < llength && rindex < rlength)\n ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]\n : lindex < llength ? left[lindex++] : right[rindex++];\n } return array;\n};\n\nvar arraySort = mergeSort;\n\nvar userAgent$1 = engineUserAgent;\n\nvar firefox = userAgent$1.match(/firefox\\/(\\d+)/i);\n\nvar engineFfVersion = !!firefox && +firefox[1];\n\nvar UA = engineUserAgent;\n\nvar engineIsIeOrEdge = /MSIE|Trident/.test(UA);\n\nvar userAgent = engineUserAgent;\n\nvar webkit = userAgent.match(/AppleWebKit\\/(\\d+)\\./);\n\nvar engineWebkitVersion = !!webkit && +webkit[1];\n\nvar $$6 = _export;\nvar uncurryThis$3 = functionUncurryThis;\nvar aCallable = aCallable$e;\nvar toObject = toObject$e;\nvar lengthOfArrayLike = lengthOfArrayLike$d;\nvar deletePropertyOrThrow = deletePropertyOrThrow$2;\nvar toString$1 = toString$b;\nvar fails$4 = fails$z;\nvar internalSort = arraySort;\nvar arrayMethodIsStrict$1 = arrayMethodIsStrict$6;\nvar FF = engineFfVersion;\nvar IE_OR_EDGE = engineIsIeOrEdge;\nvar V8 = engineV8Version;\nvar WEBKIT = engineWebkitVersion;\n\nvar test = [];\nvar nativeSort = uncurryThis$3(test.sort);\nvar push$1 = uncurryThis$3(test.push);\n\n// IE8-\nvar FAILS_ON_UNDEFINED = fails$4(function () {\n test.sort(undefined);\n});\n// V8 bug\nvar FAILS_ON_NULL = fails$4(function () {\n test.sort(null);\n});\n// Old WebKit\nvar STRICT_METHOD$1 = arrayMethodIsStrict$1('sort');\n\nvar STABLE_SORT = !fails$4(function () {\n // feature detection can be too slow, so check engines versions\n if (V8) return V8 < 70;\n if (FF && FF > 3) return;\n if (IE_OR_EDGE) return true;\n if (WEBKIT) return WEBKIT < 603;\n\n var result = '';\n var code, chr, value, index;\n\n // generate an array with more 512 elements (Chakra and old V8 fails only in this case)\n for (code = 65; code < 76; code++) {\n chr = String.fromCharCode(code);\n\n switch (code) {\n case 66: case 69: case 70: case 72: value = 3; break;\n case 68: case 71: value = 4; break;\n default: value = 2;\n }\n\n for (index = 0; index < 47; index++) {\n test.push({ k: chr + index, v: value });\n }\n }\n\n test.sort(function (a, b) { return b.v - a.v; });\n\n for (index = 0; index < test.length; index++) {\n chr = test[index].k.charAt(0);\n if (result.charAt(result.length - 1) !== chr) result += chr;\n }\n\n return result !== 'DGBEFHACIJK';\n});\n\nvar FORCED$3 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$1 || !STABLE_SORT;\n\nvar getSortCompare = function (comparefn) {\n return function (x, y) {\n if (y === undefined) return -1;\n if (x === undefined) return 1;\n if (comparefn !== undefined) return +comparefn(x, y) || 0;\n return toString$1(x) > toString$1(y) ? 1 : -1;\n };\n};\n\n// `Array.prototype.sort` method\n// https://tc39.es/ecma262/#sec-array.prototype.sort\n$$6({ target: 'Array', proto: true, forced: FORCED$3 }, {\n sort: function sort(comparefn) {\n if (comparefn !== undefined) aCallable(comparefn);\n\n var array = toObject(this);\n\n if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);\n\n var items = [];\n var arrayLength = lengthOfArrayLike(array);\n var itemsLength, index;\n\n for (index = 0; index < arrayLength; index++) {\n if (index in array) push$1(items, array[index]);\n }\n\n internalSort(items, getSortCompare(comparefn));\n\n itemsLength = lengthOfArrayLike(items);\n index = 0;\n\n while (index < itemsLength) array[index] = items[index++];\n while (index < arrayLength) deletePropertyOrThrow(array, index++);\n\n return array;\n }\n});\n\nvar entryVirtual$4 = entryVirtual$l;\n\nvar sort$2 = entryVirtual$4('Array').sort;\n\nvar isPrototypeOf$4 = objectIsPrototypeOf;\nvar method$4 = sort$2;\n\nvar ArrayPrototype$4 = Array.prototype;\n\nvar sort$1 = function (it) {\n var own = it.sort;\n return it === ArrayPrototype$4 || (isPrototypeOf$4(ArrayPrototype$4, it) && own === ArrayPrototype$4.sort) ? method$4 : own;\n};\n\nvar parent$e = sort$1;\n\nvar sort = parent$e;\n\n(function (module) {\n\tmodule.exports = sort;\n} (sort$3));\n\nvar _sortInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(sortExports);\n\nvar keysExports = {};\nvar keys$3 = {\n get exports(){ return keysExports; },\n set exports(v){ keysExports = v; },\n};\n\nvar entryVirtual$3 = entryVirtual$l;\n\nvar keys$2 = entryVirtual$3('Array').keys;\n\nvar parent$d = keys$2;\n\nvar keys$1 = parent$d;\n\nvar classof$2 = classof$f;\nvar hasOwn$4 = hasOwnProperty_1;\nvar isPrototypeOf$3 = objectIsPrototypeOf;\nvar method$3 = keys$1;\n\nvar ArrayPrototype$3 = Array.prototype;\n\nvar DOMIterables$2 = {\n DOMTokenList: true,\n NodeList: true\n};\n\nvar keys = function (it) {\n var own = it.keys;\n return it === ArrayPrototype$3 || (isPrototypeOf$3(ArrayPrototype$3, it) && own === ArrayPrototype$3.keys)\n || hasOwn$4(DOMIterables$2, classof$2(it)) ? method$3 : own;\n};\n\n(function (module) {\n\tmodule.exports = keys;\n} (keys$3));\n\nvar _keysInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(keysExports);\n\nvar valuesExports = {};\nvar values$3 = {\n get exports(){ return valuesExports; },\n set exports(v){ valuesExports = v; },\n};\n\nvar entryVirtual$2 = entryVirtual$l;\n\nvar values$2 = entryVirtual$2('Array').values;\n\nvar parent$c = values$2;\n\nvar values$1 = parent$c;\n\nvar classof$1 = classof$f;\nvar hasOwn$3 = hasOwnProperty_1;\nvar isPrototypeOf$2 = objectIsPrototypeOf;\nvar method$2 = values$1;\n\nvar ArrayPrototype$2 = Array.prototype;\n\nvar DOMIterables$1 = {\n DOMTokenList: true,\n NodeList: true\n};\n\nvar values = function (it) {\n var own = it.values;\n return it === ArrayPrototype$2 || (isPrototypeOf$2(ArrayPrototype$2, it) && own === ArrayPrototype$2.values)\n || hasOwn$3(DOMIterables$1, classof$1(it)) ? method$2 : own;\n};\n\n(function (module) {\n\tmodule.exports = values;\n} (values$3));\n\nvar _valuesInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(valuesExports);\n\nvar entriesExports = {};\nvar entries$3 = {\n get exports(){ return entriesExports; },\n set exports(v){ entriesExports = v; },\n};\n\nvar entryVirtual$1 = entryVirtual$l;\n\nvar entries$2 = entryVirtual$1('Array').entries;\n\nvar parent$b = entries$2;\n\nvar entries$1 = parent$b;\n\nvar classof = classof$f;\nvar hasOwn$2 = hasOwnProperty_1;\nvar isPrototypeOf$1 = objectIsPrototypeOf;\nvar method$1 = entries$1;\n\nvar ArrayPrototype$1 = Array.prototype;\n\nvar DOMIterables = {\n DOMTokenList: true,\n NodeList: true\n};\n\nvar entries = function (it) {\n var own = it.entries;\n return it === ArrayPrototype$1 || (isPrototypeOf$1(ArrayPrototype$1, it) && own === ArrayPrototype$1.entries)\n || hasOwn$2(DOMIterables, classof(it)) ? method$1 : own;\n};\n\n(function (module) {\n\tmodule.exports = entries;\n} (entries$3));\n\nvar _entriesInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(entriesExports);\n\nvar constructExports = {};\nvar construct$2 = {\n get exports(){ return constructExports; },\n set exports(v){ constructExports = v; },\n};\n\nvar $$5 = _export;\nvar getBuiltIn = getBuiltIn$f;\nvar apply = functionApply;\nvar bind = functionBind;\nvar aConstructor = aConstructor$2;\nvar anObject$2 = anObject$f;\nvar isObject$3 = isObject$m;\nvar create = objectCreate;\nvar fails$3 = fails$z;\n\nvar nativeConstruct = getBuiltIn('Reflect', 'construct');\nvar ObjectPrototype = Object.prototype;\nvar push = [].push;\n\n// `Reflect.construct` method\n// https://tc39.es/ecma262/#sec-reflect.construct\n// MS Edge supports only 2 arguments and argumentsList argument is optional\n// FF Nightly sets third argument as `new.target`, but does not create `this` from it\nvar NEW_TARGET_BUG = fails$3(function () {\n function F() { /* empty */ }\n return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F);\n});\n\nvar ARGS_BUG = !fails$3(function () {\n nativeConstruct(function () { /* empty */ });\n});\n\nvar FORCED$2 = NEW_TARGET_BUG || ARGS_BUG;\n\n$$5({ target: 'Reflect', stat: true, forced: FORCED$2, sham: FORCED$2 }, {\n construct: function construct(Target, args /* , newTarget */) {\n aConstructor(Target);\n anObject$2(args);\n var newTarget = arguments.length < 3 ? Target : aConstructor(arguments[2]);\n if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget);\n if (Target == newTarget) {\n // w/o altered newTarget, optimization for 0-4 arguments\n switch (args.length) {\n case 0: return new Target();\n case 1: return new Target(args[0]);\n case 2: return new Target(args[0], args[1]);\n case 3: return new Target(args[0], args[1], args[2]);\n case 4: return new Target(args[0], args[1], args[2], args[3]);\n }\n // w/o altered newTarget, lot of arguments case\n var $args = [null];\n apply(push, $args, args);\n return new (apply(bind, Target, $args))();\n }\n // with altered newTarget, not support built-in constructors\n var proto = newTarget.prototype;\n var instance = create(isObject$3(proto) ? proto : ObjectPrototype);\n var result = apply(Target, instance, args);\n return isObject$3(result) ? result : instance;\n }\n});\n\nvar path$6 = path$z;\n\nvar construct$1 = path$6.Reflect.construct;\n\nvar parent$a = construct$1;\n\nvar construct = parent$a;\n\n(function (module) {\n\tmodule.exports = construct;\n} (construct$2));\n\nvar _Reflect$construct = /*@__PURE__*/getDefaultExportFromCjs(constructExports);\n\n// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nfunction rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}\n\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nfunction unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();\n}\n\nconst randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nvar native = {\n randomUUID\n};\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nvar _Symbol$iterator;\nfunction ownKeys$4(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor$1(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var _context32, _context33; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context32 = ownKeys$4(Object(source), !0)).call(_context32, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context33 = ownKeys$4(Object(source))).call(_context33, function (key) { _Object$defineProperty$1(target, key, _Object$getOwnPropertyDescriptor$1(source, key)); }); } return target; }\nfunction _createSuper$t(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$t(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$t() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nfunction _createForOfIteratorHelper$6(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray$6(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray$6(o, minLen) { var _context31; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray$6(o, minLen); var n = _sliceInstanceProperty(_context31 = Object.prototype.toString.call(o)).call(_context31, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$6(o, minLen); }\nfunction _arrayLikeToArray$6(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n/**\r\n * Create new data pipe.\r\n *\r\n * @param from - The source data set or data view.\r\n * @remarks\r\n * Example usage:\r\n * ```typescript\r\n * interface AppItem {\r\n * whoami: string;\r\n * appData: unknown;\r\n * visData: VisItem;\r\n * }\r\n * interface VisItem {\r\n * id: number;\r\n * label: string;\r\n * color: string;\r\n * x: number;\r\n * y: number;\r\n * }\r\n *\r\n * const ds1 = new DataSet([], { fieldId: \"whoami\" });\r\n * const ds2 = new DataSet();\r\n *\r\n * const pipe = createNewDataPipeFrom(ds1)\r\n * .filter((item): boolean => item.enabled === true)\r\n * .map((item): VisItem => item.visData)\r\n * .to(ds2);\r\n *\r\n * pipe.start();\r\n * ```\r\n * @returns A factory whose methods can be used to configure the pipe.\r\n */\nfunction createNewDataPipeFrom(from) {\n return new DataPipeUnderConstruction(from);\n}\n/**\r\n * Internal implementation of the pipe. This should be accessible only through\r\n * `createNewDataPipeFrom` from the outside.\r\n *\r\n * @typeParam SI - Source item type.\r\n * @typeParam SP - Source item type's id property name.\r\n * @typeParam TI - Target item type.\r\n * @typeParam TP - Target item type's id property name.\r\n */\nvar SimpleDataPipe = /*#__PURE__*/function () {\n /**\r\n * Bound listeners for use with `DataInterface['on' | 'off']`.\r\n */\n\n /**\r\n * Create a new data pipe.\r\n *\r\n * @param _source - The data set or data view that will be observed.\r\n * @param _transformers - An array of transforming functions to be used to\r\n * filter or transform the items in the pipe.\r\n * @param _target - The data set or data view that will receive the items.\r\n */\n function SimpleDataPipe(_source, _transformers, _target) {\n var _context, _context2, _context3;\n _classCallCheck(this, SimpleDataPipe);\n _defineProperty(this, \"_source\", void 0);\n _defineProperty(this, \"_transformers\", void 0);\n _defineProperty(this, \"_target\", void 0);\n _defineProperty(this, \"_listeners\", {\n add: _bindInstanceProperty$1(_context = this._add).call(_context, this),\n remove: _bindInstanceProperty$1(_context2 = this._remove).call(_context2, this),\n update: _bindInstanceProperty$1(_context3 = this._update).call(_context3, this)\n });\n this._source = _source;\n this._transformers = _transformers;\n this._target = _target;\n }\n /** @inheritDoc */\n _createClass(SimpleDataPipe, [{\n key: \"all\",\n value: function all() {\n this._target.update(this._transformItems(this._source.get()));\n return this;\n }\n /** @inheritDoc */\n }, {\n key: \"start\",\n value: function start() {\n this._source.on(\"add\", this._listeners.add);\n this._source.on(\"remove\", this._listeners.remove);\n this._source.on(\"update\", this._listeners.update);\n return this;\n }\n /** @inheritDoc */\n }, {\n key: \"stop\",\n value: function stop() {\n this._source.off(\"add\", this._listeners.add);\n this._source.off(\"remove\", this._listeners.remove);\n this._source.off(\"update\", this._listeners.update);\n return this;\n }\n /**\r\n * Apply the transformers to the items.\r\n *\r\n * @param items - The items to be transformed.\r\n * @returns The transformed items.\r\n */\n }, {\n key: \"_transformItems\",\n value: function _transformItems(items) {\n var _context4;\n return _reduceInstanceProperty(_context4 = this._transformers).call(_context4, function (items, transform) {\n return transform(items);\n }, items);\n }\n /**\r\n * Handle an add event.\r\n *\r\n * @param _name - Ignored.\r\n * @param payload - The payload containing the ids of the added items.\r\n */\n }, {\n key: \"_add\",\n value: function _add(_name, payload) {\n if (payload == null) {\n return;\n }\n this._target.add(this._transformItems(this._source.get(payload.items)));\n }\n /**\r\n * Handle an update event.\r\n *\r\n * @param _name - Ignored.\r\n * @param payload - The payload containing the ids of the updated items.\r\n */\n }, {\n key: \"_update\",\n value: function _update(_name, payload) {\n if (payload == null) {\n return;\n }\n this._target.update(this._transformItems(this._source.get(payload.items)));\n }\n /**\r\n * Handle a remove event.\r\n *\r\n * @param _name - Ignored.\r\n * @param payload - The payload containing the data of the removed items.\r\n */\n }, {\n key: \"_remove\",\n value: function _remove(_name, payload) {\n if (payload == null) {\n return;\n }\n this._target.remove(this._transformItems(payload.oldData));\n }\n }]);\n return SimpleDataPipe;\n}();\n/**\r\n * Internal implementation of the pipe factory. This should be accessible\r\n * only through `createNewDataPipeFrom` from the outside.\r\n *\r\n * @typeParam TI - Target item type.\r\n * @typeParam TP - Target item type's id property name.\r\n */\nvar DataPipeUnderConstruction = /*#__PURE__*/function () {\n /**\r\n * Array transformers used to transform items within the pipe. This is typed\r\n * as any for the sake of simplicity.\r\n */\n\n /**\r\n * Create a new data pipe factory. This is an internal constructor that\r\n * should never be called from outside of this file.\r\n *\r\n * @param _source - The source data set or data view for this pipe.\r\n */\n function DataPipeUnderConstruction(_source) {\n _classCallCheck(this, DataPipeUnderConstruction);\n _defineProperty(this, \"_source\", void 0);\n _defineProperty(this, \"_transformers\", []);\n this._source = _source;\n }\n /**\r\n * Filter the items.\r\n *\r\n * @param callback - A filtering function that returns true if given item\r\n * should be piped and false if not.\r\n * @returns This factory for further configuration.\r\n */\n _createClass(DataPipeUnderConstruction, [{\n key: \"filter\",\n value: function filter(callback) {\n this._transformers.push(function (input) {\n return _filterInstanceProperty(input).call(input, callback);\n });\n return this;\n }\n /**\r\n * Map each source item to a new type.\r\n *\r\n * @param callback - A mapping function that takes a source item and returns\r\n * corresponding mapped item.\r\n * @typeParam TI - Target item type.\r\n * @typeParam TP - Target item type's id property name.\r\n * @returns This factory for further configuration.\r\n */\n }, {\n key: \"map\",\n value: function map(callback) {\n this._transformers.push(function (input) {\n return _mapInstanceProperty(input).call(input, callback);\n });\n return this;\n }\n /**\r\n * Map each source item to zero or more items of a new type.\r\n *\r\n * @param callback - A mapping function that takes a source item and returns\r\n * an array of corresponding mapped items.\r\n * @typeParam TI - Target item type.\r\n * @typeParam TP - Target item type's id property name.\r\n * @returns This factory for further configuration.\r\n */\n }, {\n key: \"flatMap\",\n value: function flatMap(callback) {\n this._transformers.push(function (input) {\n return _flatMapInstanceProperty(input).call(input, callback);\n });\n return this;\n }\n /**\r\n * Connect this pipe to given data set.\r\n *\r\n * @param target - The data set that will receive the items from this pipe.\r\n * @returns The pipe connected between given data sets and performing\r\n * configured transformation on the processed items.\r\n */\n }, {\n key: \"to\",\n value: function to(target) {\n return new SimpleDataPipe(this._source, this._transformers, target);\n }\n }]);\n return DataPipeUnderConstruction;\n}();\n/**\r\n * Determine whether a value can be used as an id.\r\n *\r\n * @param value - Input value of unknown type.\r\n * @returns True if the value is valid id, false otherwise.\r\n */\nfunction isId(value) {\n return typeof value === \"string\" || typeof value === \"number\";\n}\n\n/**\r\n * A queue.\r\n *\r\n * @typeParam T - The type of method names to be replaced by queued versions.\r\n */\nvar Queue = /*#__PURE__*/function () {\n /** Delay in milliseconds. If defined the queue will be periodically flushed. */\n\n /** Maximum number of entries in the queue before it will be flushed. */\n\n /**\r\n * Construct a new Queue.\r\n *\r\n * @param options - Queue configuration.\r\n */\n function Queue(options) {\n _classCallCheck(this, Queue);\n _defineProperty(this, \"delay\", void 0);\n _defineProperty(this, \"max\", void 0);\n _defineProperty(this, \"_queue\", []);\n _defineProperty(this, \"_timeout\", null);\n _defineProperty(this, \"_extended\", null);\n // options\n this.delay = null;\n this.max = Infinity;\n this.setOptions(options);\n }\n /**\r\n * Update the configuration of the queue.\r\n *\r\n * @param options - Queue configuration.\r\n */\n _createClass(Queue, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options && typeof options.delay !== \"undefined\") {\n this.delay = options.delay;\n }\n if (options && typeof options.max !== \"undefined\") {\n this.max = options.max;\n }\n this._flushIfNeeded();\n }\n /**\r\n * Extend an object with queuing functionality.\r\n * The object will be extended with a function flush, and the methods provided in options.replace will be replaced with queued ones.\r\n *\r\n * @param object - The object to be extended.\r\n * @param options - Additional options.\r\n * @returns The created queue.\r\n */\n }, {\n key: \"destroy\",\n value:\n /**\r\n * Destroy the queue. The queue will first flush all queued actions, and in case it has extended an object, will restore the original object.\r\n */\n function destroy() {\n this.flush();\n if (this._extended) {\n var object = this._extended.object;\n var methods = this._extended.methods;\n for (var i = 0; i < methods.length; i++) {\n var method = methods[i];\n if (method.original) {\n // @TODO: better solution?\n object[method.name] = method.original;\n } else {\n // @TODO: better solution?\n delete object[method.name];\n }\n }\n this._extended = null;\n }\n }\n /**\r\n * Replace a method on an object with a queued version.\r\n *\r\n * @param object - Object having the method.\r\n * @param method - The method name.\r\n */\n }, {\n key: \"replace\",\n value: function replace(object, method) {\n /* eslint-disable-next-line @typescript-eslint/no-this-alias -- Function this is necessary in the function bellow, so class this has to be saved into a variable here. */\n var me = this;\n var original = object[method];\n if (!original) {\n throw new Error(\"Method \" + method + \" undefined\");\n }\n object[method] = function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n // add this call to the queue\n me.queue({\n args: args,\n fn: original,\n context: this\n });\n };\n }\n /**\r\n * Queue a call.\r\n *\r\n * @param entry - The function or entry to be queued.\r\n */\n }, {\n key: \"queue\",\n value: function queue(entry) {\n if (typeof entry === \"function\") {\n this._queue.push({\n fn: entry\n });\n } else {\n this._queue.push(entry);\n }\n this._flushIfNeeded();\n }\n /**\r\n * Check whether the queue needs to be flushed.\r\n */\n }, {\n key: \"_flushIfNeeded\",\n value: function _flushIfNeeded() {\n var _this = this;\n // flush when the maximum is exceeded.\n if (this._queue.length > this.max) {\n this.flush();\n }\n // flush after a period of inactivity when a delay is configured\n if (this._timeout != null) {\n clearTimeout(this._timeout);\n this._timeout = null;\n }\n if (this.queue.length > 0 && typeof this.delay === \"number\") {\n this._timeout = _setTimeout(function () {\n _this.flush();\n }, this.delay);\n }\n }\n /**\r\n * Flush all queued calls\r\n */\n }, {\n key: \"flush\",\n value: function flush() {\n var _context5, _context6;\n _forEachInstanceProperty(_context5 = _spliceInstanceProperty(_context6 = this._queue).call(_context6, 0)).call(_context5, function (entry) {\n entry.fn.apply(entry.context || entry.fn, entry.args || []);\n });\n }\n }], [{\n key: \"extend\",\n value: function extend(object, options) {\n var queue = new Queue(options);\n if (object.flush !== undefined) {\n throw new Error(\"Target object already has a property flush\");\n }\n object.flush = function () {\n queue.flush();\n };\n var methods = [{\n name: \"flush\",\n original: undefined\n }];\n if (options && options.replace) {\n for (var i = 0; i < options.replace.length; i++) {\n var name = options.replace[i];\n methods.push({\n name: name,\n // @TODO: better solution?\n original: object[name]\n });\n // @TODO: better solution?\n queue.replace(object, name);\n }\n }\n queue._extended = {\n object: object,\n methods: methods\n };\n return queue;\n }\n }]);\n return Queue;\n}();\n/**\r\n * {@link DataSet} code that can be reused in {@link DataView} or other similar implementations of {@link DataInterface}.\r\n *\r\n * @typeParam Item - Item type that may or may not have an id.\r\n * @typeParam IdProp - Name of the property that contains the id.\r\n */\nvar DataSetPart = /*#__PURE__*/function () {\n function DataSetPart() {\n _classCallCheck(this, DataSetPart);\n _defineProperty(this, \"_subscribers\", {\n \"*\": [],\n add: [],\n remove: [],\n update: []\n });\n /**\r\n * @deprecated Use on instead (PS: DataView.subscribe === DataView.on).\r\n */\n _defineProperty(this, \"subscribe\", DataSetPart.prototype.on);\n /**\r\n * @deprecated Use off instead (PS: DataView.unsubscribe === DataView.off).\r\n */\n _defineProperty(this, \"unsubscribe\", DataSetPart.prototype.off);\n }\n _createClass(DataSetPart, [{\n key: \"_trigger\",\n value:\n /**\r\n * Trigger an event\r\n *\r\n * @param event - Event name.\r\n * @param payload - Event payload.\r\n * @param senderId - Id of the sender.\r\n */\n function _trigger(event, payload, senderId) {\n var _context7, _context8;\n if (event === \"*\") {\n throw new Error(\"Cannot trigger event *\");\n }\n _forEachInstanceProperty(_context7 = _concatInstanceProperty(_context8 = []).call(_context8, _toConsumableArray(this._subscribers[event]), _toConsumableArray(this._subscribers[\"*\"]))).call(_context7, function (subscriber) {\n subscriber(event, payload, senderId != null ? senderId : null);\n });\n }\n /**\r\n * Subscribe to an event, add an event listener.\r\n *\r\n * @remarks Non-function callbacks are ignored.\r\n * @param event - Event name.\r\n * @param callback - Callback method.\r\n */\n }, {\n key: \"on\",\n value: function on(event, callback) {\n if (typeof callback === \"function\") {\n this._subscribers[event].push(callback);\n }\n // @TODO: Maybe throw for invalid callbacks?\n }\n /**\r\n * Unsubscribe from an event, remove an event listener.\r\n *\r\n * @remarks If the same callback was subscribed more than once **all** occurences will be removed.\r\n * @param event - Event name.\r\n * @param callback - Callback method.\r\n */\n }, {\n key: \"off\",\n value: function off(event, callback) {\n var _context9;\n this._subscribers[event] = _filterInstanceProperty(_context9 = this._subscribers[event]).call(_context9, function (subscriber) {\n return subscriber !== callback;\n });\n }\n }]);\n return DataSetPart;\n}();\n/**\r\n * Data stream\r\n *\r\n * @remarks\r\n * {@link DataStream} offers an always up to date stream of items from a {@link DataSet} or {@link DataView}.\r\n * That means that the stream is evaluated at the time of iteration, conversion to another data type or when {@link cache} is called, not when the {@link DataStream} was created.\r\n * Multiple invocations of for example {@link toItemArray} may yield different results (if the data source like for example {@link DataSet} gets modified).\r\n * @typeParam Item - The item type this stream is going to work with.\r\n */\n_Symbol$iterator = _Symbol$iterator2;\nvar DataStream = /*#__PURE__*/function () {\n /**\r\n * Create a new data stream.\r\n *\r\n * @param pairs - The id, item pairs.\r\n */\n function DataStream(pairs) {\n _classCallCheck(this, DataStream);\n _defineProperty(this, \"_pairs\", void 0);\n this._pairs = pairs;\n }\n /**\r\n * Return an iterable of key, value pairs for every entry in the stream.\r\n */\n _createClass(DataStream, [{\n key: _Symbol$iterator,\n value:\n /*#__PURE__*/\n regenerator.mark(function value() {\n var _iterator, _step, _step$value, id, item;\n return regenerator.wrap(function value$(_context10) {\n while (1) switch (_context10.prev = _context10.next) {\n case 0:\n _iterator = _createForOfIteratorHelper$6(this._pairs);\n _context10.prev = 1;\n _iterator.s();\n case 3:\n if ((_step = _iterator.n()).done) {\n _context10.next = 9;\n break;\n }\n _step$value = _slicedToArray(_step.value, 2), id = _step$value[0], item = _step$value[1];\n _context10.next = 7;\n return [id, item];\n case 7:\n _context10.next = 3;\n break;\n case 9:\n _context10.next = 14;\n break;\n case 11:\n _context10.prev = 11;\n _context10.t0 = _context10[\"catch\"](1);\n _iterator.e(_context10.t0);\n case 14:\n _context10.prev = 14;\n _iterator.f();\n return _context10.finish(14);\n case 17:\n case \"end\":\n return _context10.stop();\n }\n }, value, this, [[1, 11, 14, 17]]);\n })\n /**\r\n * Return an iterable of key, value pairs for every entry in the stream.\r\n */\n }, {\n key: \"entries\",\n value:\n /*#__PURE__*/\n regenerator.mark(function entries() {\n var _iterator2, _step2, _step2$value, id, item;\n return regenerator.wrap(function entries$(_context11) {\n while (1) switch (_context11.prev = _context11.next) {\n case 0:\n _iterator2 = _createForOfIteratorHelper$6(this._pairs);\n _context11.prev = 1;\n _iterator2.s();\n case 3:\n if ((_step2 = _iterator2.n()).done) {\n _context11.next = 9;\n break;\n }\n _step2$value = _slicedToArray(_step2.value, 2), id = _step2$value[0], item = _step2$value[1];\n _context11.next = 7;\n return [id, item];\n case 7:\n _context11.next = 3;\n break;\n case 9:\n _context11.next = 14;\n break;\n case 11:\n _context11.prev = 11;\n _context11.t0 = _context11[\"catch\"](1);\n _iterator2.e(_context11.t0);\n case 14:\n _context11.prev = 14;\n _iterator2.f();\n return _context11.finish(14);\n case 17:\n case \"end\":\n return _context11.stop();\n }\n }, entries, this, [[1, 11, 14, 17]]);\n })\n /**\r\n * Return an iterable of keys in the stream.\r\n */\n }, {\n key: \"keys\",\n value:\n /*#__PURE__*/\n regenerator.mark(function keys() {\n var _iterator3, _step3, _step3$value, id;\n return regenerator.wrap(function keys$(_context12) {\n while (1) switch (_context12.prev = _context12.next) {\n case 0:\n _iterator3 = _createForOfIteratorHelper$6(this._pairs);\n _context12.prev = 1;\n _iterator3.s();\n case 3:\n if ((_step3 = _iterator3.n()).done) {\n _context12.next = 9;\n break;\n }\n _step3$value = _slicedToArray(_step3.value, 1), id = _step3$value[0];\n _context12.next = 7;\n return id;\n case 7:\n _context12.next = 3;\n break;\n case 9:\n _context12.next = 14;\n break;\n case 11:\n _context12.prev = 11;\n _context12.t0 = _context12[\"catch\"](1);\n _iterator3.e(_context12.t0);\n case 14:\n _context12.prev = 14;\n _iterator3.f();\n return _context12.finish(14);\n case 17:\n case \"end\":\n return _context12.stop();\n }\n }, keys, this, [[1, 11, 14, 17]]);\n })\n /**\r\n * Return an iterable of values in the stream.\r\n */\n }, {\n key: \"values\",\n value:\n /*#__PURE__*/\n regenerator.mark(function values() {\n var _iterator4, _step4, _step4$value, item;\n return regenerator.wrap(function values$(_context13) {\n while (1) switch (_context13.prev = _context13.next) {\n case 0:\n _iterator4 = _createForOfIteratorHelper$6(this._pairs);\n _context13.prev = 1;\n _iterator4.s();\n case 3:\n if ((_step4 = _iterator4.n()).done) {\n _context13.next = 9;\n break;\n }\n _step4$value = _slicedToArray(_step4.value, 2), item = _step4$value[1];\n _context13.next = 7;\n return item;\n case 7:\n _context13.next = 3;\n break;\n case 9:\n _context13.next = 14;\n break;\n case 11:\n _context13.prev = 11;\n _context13.t0 = _context13[\"catch\"](1);\n _iterator4.e(_context13.t0);\n case 14:\n _context13.prev = 14;\n _iterator4.f();\n return _context13.finish(14);\n case 17:\n case \"end\":\n return _context13.stop();\n }\n }, values, this, [[1, 11, 14, 17]]);\n })\n /**\r\n * Return an array containing all the ids in this stream.\r\n *\r\n * @remarks\r\n * The array may contain duplicities.\r\n * @returns The array with all ids from this stream.\r\n */\n }, {\n key: \"toIdArray\",\n value: function toIdArray() {\n var _context14;\n return _mapInstanceProperty(_context14 = _toConsumableArray(this._pairs)).call(_context14, function (pair) {\n return pair[0];\n });\n }\n /**\r\n * Return an array containing all the items in this stream.\r\n *\r\n * @remarks\r\n * The array may contain duplicities.\r\n * @returns The array with all items from this stream.\r\n */\n }, {\n key: \"toItemArray\",\n value: function toItemArray() {\n var _context15;\n return _mapInstanceProperty(_context15 = _toConsumableArray(this._pairs)).call(_context15, function (pair) {\n return pair[1];\n });\n }\n /**\r\n * Return an array containing all the entries in this stream.\r\n *\r\n * @remarks\r\n * The array may contain duplicities.\r\n * @returns The array with all entries from this stream.\r\n */\n }, {\n key: \"toEntryArray\",\n value: function toEntryArray() {\n return _toConsumableArray(this._pairs);\n }\n /**\r\n * Return an object map containing all the items in this stream accessible by ids.\r\n *\r\n * @remarks\r\n * In case of duplicate ids (coerced to string so `7 == '7'`) the last encoutered appears in the returned object.\r\n * @returns The object map of all id → item pairs from this stream.\r\n */\n }, {\n key: \"toObjectMap\",\n value: function toObjectMap() {\n var map = _Object$create$1(null);\n var _iterator5 = _createForOfIteratorHelper$6(this._pairs),\n _step5;\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var _step5$value = _slicedToArray(_step5.value, 2),\n id = _step5$value[0],\n item = _step5$value[1];\n map[id] = item;\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n return map;\n }\n /**\r\n * Return a map containing all the items in this stream accessible by ids.\r\n *\r\n * @returns The map of all id → item pairs from this stream.\r\n */\n }, {\n key: \"toMap\",\n value: function toMap() {\n return new _Map(this._pairs);\n }\n /**\r\n * Return a set containing all the (unique) ids in this stream.\r\n *\r\n * @returns The set of all ids from this stream.\r\n */\n }, {\n key: \"toIdSet\",\n value: function toIdSet() {\n return new _Set(this.toIdArray());\n }\n /**\r\n * Return a set containing all the (unique) items in this stream.\r\n *\r\n * @returns The set of all items from this stream.\r\n */\n }, {\n key: \"toItemSet\",\n value: function toItemSet() {\n return new _Set(this.toItemArray());\n }\n /**\r\n * Cache the items from this stream.\r\n *\r\n * @remarks\r\n * This method allows for items to be fetched immediatelly and used (possibly multiple times) later.\r\n * It can also be used to optimize performance as {@link DataStream} would otherwise reevaluate everything upon each iteration.\r\n *\r\n * ## Example\r\n * ```javascript\r\n * const ds = new DataSet([…])\r\n *\r\n * const cachedStream = ds.stream()\r\n * .filter(…)\r\n * .sort(…)\r\n * .map(…)\r\n * .cached(…) // Data are fetched, processed and cached here.\r\n *\r\n * ds.clear()\r\n * chachedStream // Still has all the items.\r\n * ```\r\n * @returns A new {@link DataStream} with cached items (detached from the original {@link DataSet}).\r\n */\n }, {\n key: \"cache\",\n value: function cache() {\n return new DataStream(_toConsumableArray(this._pairs));\n }\n /**\r\n * Get the distinct values of given property.\r\n *\r\n * @param callback - The function that picks and possibly converts the property.\r\n * @typeParam T - The type of the distinct value.\r\n * @returns A set of all distinct properties.\r\n */\n }, {\n key: \"distinct\",\n value: function distinct(callback) {\n var set = new _Set();\n var _iterator6 = _createForOfIteratorHelper$6(this._pairs),\n _step6;\n try {\n for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {\n var _step6$value = _slicedToArray(_step6.value, 2),\n id = _step6$value[0],\n item = _step6$value[1];\n set.add(callback(item, id));\n }\n } catch (err) {\n _iterator6.e(err);\n } finally {\n _iterator6.f();\n }\n return set;\n }\n /**\r\n * Filter the items of the stream.\r\n *\r\n * @param callback - The function that decides whether an item will be included.\r\n * @returns A new data stream with the filtered items.\r\n */\n }, {\n key: \"filter\",\n value: function filter(callback) {\n var pairs = this._pairs;\n return new DataStream(_defineProperty({}, _Symbol$iterator2, /*#__PURE__*/regenerator.mark(function _callee() {\n var _iterator7, _step7, _step7$value, id, item;\n return regenerator.wrap(function _callee$(_context16) {\n while (1) switch (_context16.prev = _context16.next) {\n case 0:\n _iterator7 = _createForOfIteratorHelper$6(pairs);\n _context16.prev = 1;\n _iterator7.s();\n case 3:\n if ((_step7 = _iterator7.n()).done) {\n _context16.next = 10;\n break;\n }\n _step7$value = _slicedToArray(_step7.value, 2), id = _step7$value[0], item = _step7$value[1];\n if (!callback(item, id)) {\n _context16.next = 8;\n break;\n }\n _context16.next = 8;\n return [id, item];\n case 8:\n _context16.next = 3;\n break;\n case 10:\n _context16.next = 15;\n break;\n case 12:\n _context16.prev = 12;\n _context16.t0 = _context16[\"catch\"](1);\n _iterator7.e(_context16.t0);\n case 15:\n _context16.prev = 15;\n _iterator7.f();\n return _context16.finish(15);\n case 18:\n case \"end\":\n return _context16.stop();\n }\n }, _callee, null, [[1, 12, 15, 18]]);\n })));\n }\n /**\r\n * Execute a callback for each item of the stream.\r\n *\r\n * @param callback - The function that will be invoked for each item.\r\n */\n }, {\n key: \"forEach\",\n value: function forEach(callback) {\n var _iterator8 = _createForOfIteratorHelper$6(this._pairs),\n _step8;\n try {\n for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {\n var _step8$value = _slicedToArray(_step8.value, 2),\n id = _step8$value[0],\n item = _step8$value[1];\n callback(item, id);\n }\n } catch (err) {\n _iterator8.e(err);\n } finally {\n _iterator8.f();\n }\n }\n /**\r\n * Map the items into a different type.\r\n *\r\n * @param callback - The function that does the conversion.\r\n * @typeParam Mapped - The type of the item after mapping.\r\n * @returns A new data stream with the mapped items.\r\n */\n }, {\n key: \"map\",\n value: function map(callback) {\n var pairs = this._pairs;\n return new DataStream(_defineProperty({}, _Symbol$iterator2, /*#__PURE__*/regenerator.mark(function _callee2() {\n var _iterator9, _step9, _step9$value, id, item;\n return regenerator.wrap(function _callee2$(_context17) {\n while (1) switch (_context17.prev = _context17.next) {\n case 0:\n _iterator9 = _createForOfIteratorHelper$6(pairs);\n _context17.prev = 1;\n _iterator9.s();\n case 3:\n if ((_step9 = _iterator9.n()).done) {\n _context17.next = 9;\n break;\n }\n _step9$value = _slicedToArray(_step9.value, 2), id = _step9$value[0], item = _step9$value[1];\n _context17.next = 7;\n return [id, callback(item, id)];\n case 7:\n _context17.next = 3;\n break;\n case 9:\n _context17.next = 14;\n break;\n case 11:\n _context17.prev = 11;\n _context17.t0 = _context17[\"catch\"](1);\n _iterator9.e(_context17.t0);\n case 14:\n _context17.prev = 14;\n _iterator9.f();\n return _context17.finish(14);\n case 17:\n case \"end\":\n return _context17.stop();\n }\n }, _callee2, null, [[1, 11, 14, 17]]);\n })));\n }\n /**\r\n * Get the item with the maximum value of given property.\r\n *\r\n * @param callback - The function that picks and possibly converts the property.\r\n * @returns The item with the maximum if found otherwise null.\r\n */\n }, {\n key: \"max\",\n value: function max(callback) {\n var iter = _getIterator(this._pairs);\n var curr = iter.next();\n if (curr.done) {\n return null;\n }\n var maxItem = curr.value[1];\n var maxValue = callback(curr.value[1], curr.value[0]);\n while (!(curr = iter.next()).done) {\n var _curr$value = _slicedToArray(curr.value, 2),\n id = _curr$value[0],\n item = _curr$value[1];\n var _value = callback(item, id);\n if (_value > maxValue) {\n maxValue = _value;\n maxItem = item;\n }\n }\n return maxItem;\n }\n /**\r\n * Get the item with the minimum value of given property.\r\n *\r\n * @param callback - The function that picks and possibly converts the property.\r\n * @returns The item with the minimum if found otherwise null.\r\n */\n }, {\n key: \"min\",\n value: function min(callback) {\n var iter = _getIterator(this._pairs);\n var curr = iter.next();\n if (curr.done) {\n return null;\n }\n var minItem = curr.value[1];\n var minValue = callback(curr.value[1], curr.value[0]);\n while (!(curr = iter.next()).done) {\n var _curr$value2 = _slicedToArray(curr.value, 2),\n id = _curr$value2[0],\n item = _curr$value2[1];\n var _value2 = callback(item, id);\n if (_value2 < minValue) {\n minValue = _value2;\n minItem = item;\n }\n }\n return minItem;\n }\n /**\r\n * Reduce the items into a single value.\r\n *\r\n * @param callback - The function that does the reduction.\r\n * @param accumulator - The initial value of the accumulator.\r\n * @typeParam T - The type of the accumulated value.\r\n * @returns The reduced value.\r\n */\n }, {\n key: \"reduce\",\n value: function reduce(callback, accumulator) {\n var _iterator10 = _createForOfIteratorHelper$6(this._pairs),\n _step10;\n try {\n for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {\n var _step10$value = _slicedToArray(_step10.value, 2),\n id = _step10$value[0],\n item = _step10$value[1];\n accumulator = callback(accumulator, item, id);\n }\n } catch (err) {\n _iterator10.e(err);\n } finally {\n _iterator10.f();\n }\n return accumulator;\n }\n /**\r\n * Sort the items.\r\n *\r\n * @param callback - Item comparator.\r\n * @returns A new stream with sorted items.\r\n */\n }, {\n key: \"sort\",\n value: function sort(callback) {\n var _this2 = this;\n return new DataStream(_defineProperty({}, _Symbol$iterator2, function () {\n var _context18;\n return _getIterator(_sortInstanceProperty(_context18 = _toConsumableArray(_this2._pairs)).call(_context18, function (_ref, _ref2) {\n var _ref3 = _slicedToArray(_ref, 2),\n idA = _ref3[0],\n itemA = _ref3[1];\n var _ref4 = _slicedToArray(_ref2, 2),\n idB = _ref4[0],\n itemB = _ref4[1];\n return callback(itemA, itemB, idA, idB);\n }));\n }));\n }\n }]);\n return DataStream;\n}();\n/**\r\n * Add an id to given item if it doesn't have one already.\r\n *\r\n * @remarks\r\n * The item will be modified.\r\n * @param item - The item that will have an id after a call to this function.\r\n * @param idProp - The key of the id property.\r\n * @typeParam Item - Item type that may or may not have an id.\r\n * @typeParam IdProp - Name of the property that contains the id.\r\n * @returns true\r\n */\nfunction ensureFullItem(item, idProp) {\n if (item[idProp] == null) {\n // generate an id\n item[idProp] = v4();\n }\n return item;\n}\n/**\r\n * # DataSet\r\n *\r\n * Vis.js comes with a flexible DataSet, which can be used to hold and\r\n * manipulate unstructured data and listen for changes in the data. The DataSet\r\n * is key/value based. Data items can be added, updated and removed from the\r\n * DataSet, and one can subscribe to changes in the DataSet. The data in the\r\n * DataSet can be filtered and ordered. Data can be normalized when appending it\r\n * to the DataSet as well.\r\n *\r\n * ## Example\r\n *\r\n * The following example shows how to use a DataSet.\r\n *\r\n * ```javascript\r\n * // create a DataSet\r\n * var options = {};\r\n * var data = new vis.DataSet(options);\r\n *\r\n * // add items\r\n * // note that the data items can contain different properties and data formats\r\n * data.add([\r\n * {id: 1, text: 'item 1', date: new Date(2013, 6, 20), group: 1, first: true},\r\n * {id: 2, text: 'item 2', date: '2013-06-23', group: 2},\r\n * {id: 3, text: 'item 3', date: '2013-06-25', group: 2},\r\n * {id: 4, text: 'item 4'}\r\n * ]);\r\n *\r\n * // subscribe to any change in the DataSet\r\n * data.on('*', function (event, properties, senderId) {\r\n * console.log('event', event, properties);\r\n * });\r\n *\r\n * // update an existing item\r\n * data.update({id: 2, group: 1});\r\n *\r\n * // remove an item\r\n * data.remove(4);\r\n *\r\n * // get all ids\r\n * var ids = data.getIds();\r\n * console.log('ids', ids);\r\n *\r\n * // get a specific item\r\n * var item1 = data.get(1);\r\n * console.log('item1', item1);\r\n *\r\n * // retrieve a filtered subset of the data\r\n * var items = data.get({\r\n * filter: function (item) {\r\n * return item.group == 1;\r\n * }\r\n * });\r\n * console.log('filtered items', items);\r\n * ```\r\n *\r\n * @typeParam Item - Item type that may or may not have an id.\r\n * @typeParam IdProp - Name of the property that contains the id.\r\n */\nvar DataSet = /*#__PURE__*/function (_DataSetPart) {\n _inherits(DataSet, _DataSetPart);\n var _super = _createSuper$t(DataSet);\n /**\r\n * Construct a new DataSet.\r\n *\r\n * @param data - Initial data or options.\r\n * @param options - Options (type error if data is also options).\r\n */\n function DataSet(data, options) {\n var _this3;\n _classCallCheck(this, DataSet);\n _this3 = _super.call(this);\n // correctly read optional arguments\n /** Flush all queued calls. */\n _defineProperty(_assertThisInitialized(_this3), \"flush\", void 0);\n /** @inheritDoc */\n _defineProperty(_assertThisInitialized(_this3), \"length\", void 0);\n _defineProperty(_assertThisInitialized(_this3), \"_options\", void 0);\n _defineProperty(_assertThisInitialized(_this3), \"_data\", void 0);\n _defineProperty(_assertThisInitialized(_this3), \"_idProp\", void 0);\n _defineProperty(_assertThisInitialized(_this3), \"_queue\", null);\n if (data && !_Array$isArray(data)) {\n options = data;\n data = [];\n }\n _this3._options = options || {};\n _this3._data = new _Map(); // map with data indexed by id\n _this3.length = 0; // number of items in the DataSet\n _this3._idProp = _this3._options.fieldId || \"id\"; // name of the field containing id\n // add initial data when provided\n if (data && data.length) {\n _this3.add(data);\n }\n _this3.setOptions(options);\n return _this3;\n }\n /**\r\n * Set new options.\r\n *\r\n * @param options - The new options.\r\n */\n _createClass(DataSet, [{\n key: \"idProp\",\n get:\n /** @inheritDoc */\n function get() {\n return this._idProp;\n }\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options && options.queue !== undefined) {\n if (options.queue === false) {\n // delete queue if loaded\n if (this._queue) {\n this._queue.destroy();\n this._queue = null;\n }\n } else {\n // create queue and update its options\n if (!this._queue) {\n this._queue = Queue.extend(this, {\n replace: [\"add\", \"update\", \"remove\"]\n });\n }\n if (options.queue && _typeof$1(options.queue) === \"object\") {\n this._queue.setOptions(options.queue);\n }\n }\n }\n }\n /**\r\n * Add a data item or an array with items.\r\n *\r\n * After the items are added to the DataSet, the DataSet will trigger an event `add`. When a `senderId` is provided, this id will be passed with the triggered event to all subscribers.\r\n *\r\n * ## Example\r\n *\r\n * ```javascript\r\n * // create a DataSet\r\n * const data = new vis.DataSet()\r\n *\r\n * // add items\r\n * const ids = data.add([\r\n * { id: 1, text: 'item 1' },\r\n * { id: 2, text: 'item 2' },\r\n * { text: 'item without an id' }\r\n * ])\r\n *\r\n * console.log(ids) // [1, 2, '']\r\n * ```\r\n *\r\n * @param data - Items to be added (ids will be generated if missing).\r\n * @param senderId - Sender id.\r\n * @returns addedIds - Array with the ids (generated if not present) of the added items.\r\n * @throws When an item with the same id as any of the added items already exists.\r\n */\n }, {\n key: \"add\",\n value: function add(data, senderId) {\n var _this4 = this;\n var addedIds = [];\n var id;\n if (_Array$isArray(data)) {\n // Array\n var idsToAdd = _mapInstanceProperty(data).call(data, function (d) {\n return d[_this4._idProp];\n });\n if (_someInstanceProperty(idsToAdd).call(idsToAdd, function (id) {\n return _this4._data.has(id);\n })) {\n throw new Error(\"A duplicate id was found in the parameter array.\");\n }\n for (var i = 0, len = data.length; i < len; i++) {\n id = this._addItem(data[i]);\n addedIds.push(id);\n }\n } else if (data && _typeof$1(data) === \"object\") {\n // Single item\n id = this._addItem(data);\n addedIds.push(id);\n } else {\n throw new Error(\"Unknown dataType\");\n }\n if (addedIds.length) {\n this._trigger(\"add\", {\n items: addedIds\n }, senderId);\n }\n return addedIds;\n }\n /**\r\n * Update existing items. When an item does not exist, it will be created.\r\n *\r\n * @remarks\r\n * The provided properties will be merged in the existing item. When an item does not exist, it will be created.\r\n *\r\n * After the items are updated, the DataSet will trigger an event `add` for the added items, and an event `update`. When a `senderId` is provided, this id will be passed with the triggered event to all subscribers.\r\n *\r\n * ## Example\r\n *\r\n * ```javascript\r\n * // create a DataSet\r\n * const data = new vis.DataSet([\r\n * { id: 1, text: 'item 1' },\r\n * { id: 2, text: 'item 2' },\r\n * { id: 3, text: 'item 3' }\r\n * ])\r\n *\r\n * // update items\r\n * const ids = data.update([\r\n * { id: 2, text: 'item 2 (updated)' },\r\n * { id: 4, text: 'item 4 (new)' }\r\n * ])\r\n *\r\n * console.log(ids) // [2, 4]\r\n * ```\r\n *\r\n * ## Warning for TypeScript users\r\n * This method may introduce partial items into the data set. Use add or updateOnly instead for better type safety.\r\n * @param data - Items to be updated (if the id is already present) or added (if the id is missing).\r\n * @param senderId - Sender id.\r\n * @returns updatedIds - The ids of the added (these may be newly generated if there was no id in the item from the data) or updated items.\r\n * @throws When the supplied data is neither an item nor an array of items.\r\n */\n }, {\n key: \"update\",\n value: function update(data, senderId) {\n var _this5 = this;\n var addedIds = [];\n var updatedIds = [];\n var oldData = [];\n var updatedData = [];\n var idProp = this._idProp;\n var addOrUpdate = function addOrUpdate(item) {\n var origId = item[idProp];\n if (origId != null && _this5._data.has(origId)) {\n var fullItem = item; // it has an id, therefore it is a fullitem\n var oldItem = _Object$assign({}, _this5._data.get(origId));\n // update item\n var id = _this5._updateItem(fullItem);\n updatedIds.push(id);\n updatedData.push(fullItem);\n oldData.push(oldItem);\n } else {\n // add new item\n var _id = _this5._addItem(item);\n addedIds.push(_id);\n }\n };\n if (_Array$isArray(data)) {\n // Array\n for (var i = 0, len = data.length; i < len; i++) {\n if (data[i] && _typeof$1(data[i]) === \"object\") {\n addOrUpdate(data[i]);\n } else {\n console.warn(\"Ignoring input item, which is not an object at index \" + i);\n }\n }\n } else if (data && _typeof$1(data) === \"object\") {\n // Single item\n addOrUpdate(data);\n } else {\n throw new Error(\"Unknown dataType\");\n }\n if (addedIds.length) {\n this._trigger(\"add\", {\n items: addedIds\n }, senderId);\n }\n if (updatedIds.length) {\n var props = {\n items: updatedIds,\n oldData: oldData,\n data: updatedData\n };\n // TODO: remove deprecated property 'data' some day\n //Object.defineProperty(props, 'data', {\n // 'get': (function() {\n // console.warn('Property data is deprecated. Use DataSet.get(ids) to retrieve the new data, use the oldData property on this object to get the old data');\n // return updatedData;\n // }).bind(this)\n //});\n this._trigger(\"update\", props, senderId);\n }\n return _concatInstanceProperty(addedIds).call(addedIds, updatedIds);\n }\n /**\r\n * Update existing items. When an item does not exist, an error will be thrown.\r\n *\r\n * @remarks\r\n * The provided properties will be deeply merged into the existing item.\r\n * When an item does not exist (id not present in the data set or absent), an error will be thrown and nothing will be changed.\r\n *\r\n * After the items are updated, the DataSet will trigger an event `update`.\r\n * When a `senderId` is provided, this id will be passed with the triggered event to all subscribers.\r\n *\r\n * ## Example\r\n *\r\n * ```javascript\r\n * // create a DataSet\r\n * const data = new vis.DataSet([\r\n * { id: 1, text: 'item 1' },\r\n * { id: 2, text: 'item 2' },\r\n * { id: 3, text: 'item 3' },\r\n * ])\r\n *\r\n * // update items\r\n * const ids = data.update([\r\n * { id: 2, text: 'item 2 (updated)' }, // works\r\n * // { id: 4, text: 'item 4 (new)' }, // would throw\r\n * // { text: 'item 4 (new)' }, // would also throw\r\n * ])\r\n *\r\n * console.log(ids) // [2]\r\n * ```\r\n * @param data - Updates (the id and optionally other props) to the items in this data set.\r\n * @param senderId - Sender id.\r\n * @returns updatedIds - The ids of the updated items.\r\n * @throws When the supplied data is neither an item nor an array of items, when the ids are missing.\r\n */\n }, {\n key: \"updateOnly\",\n value: function updateOnly(data, senderId) {\n var _context19,\n _this6 = this;\n if (!_Array$isArray(data)) {\n data = [data];\n }\n var updateEventData = _mapInstanceProperty(_context19 = _mapInstanceProperty(data).call(data, function (update) {\n var oldData = _this6._data.get(update[_this6._idProp]);\n if (oldData == null) {\n throw new Error(\"Updating non-existent items is not allowed.\");\n }\n return {\n oldData: oldData,\n update: update\n };\n })).call(_context19, function (_ref5) {\n var oldData = _ref5.oldData,\n update = _ref5.update;\n var id = oldData[_this6._idProp];\n var updatedData = pureDeepObjectAssign(oldData, update);\n _this6._data.set(id, updatedData);\n return {\n id: id,\n oldData: oldData,\n updatedData: updatedData\n };\n });\n if (updateEventData.length) {\n var props = {\n items: _mapInstanceProperty(updateEventData).call(updateEventData, function (value) {\n return value.id;\n }),\n oldData: _mapInstanceProperty(updateEventData).call(updateEventData, function (value) {\n return value.oldData;\n }),\n data: _mapInstanceProperty(updateEventData).call(updateEventData, function (value) {\n return value.updatedData;\n })\n };\n // TODO: remove deprecated property 'data' some day\n //Object.defineProperty(props, 'data', {\n // 'get': (function() {\n // console.warn('Property data is deprecated. Use DataSet.get(ids) to retrieve the new data, use the oldData property on this object to get the old data');\n // return updatedData;\n // }).bind(this)\n //});\n this._trigger(\"update\", props, senderId);\n return props.items;\n } else {\n return [];\n }\n }\n /** @inheritDoc */\n }, {\n key: \"get\",\n value: function get(first, second) {\n // @TODO: Woudn't it be better to split this into multiple methods?\n // parse the arguments\n var id = undefined;\n var ids = undefined;\n var options = undefined;\n if (isId(first)) {\n // get(id [, options])\n id = first;\n options = second;\n } else if (_Array$isArray(first)) {\n // get(ids [, options])\n ids = first;\n options = second;\n } else {\n // get([, options])\n options = first;\n }\n // determine the return type\n var returnType = options && options.returnType === \"Object\" ? \"Object\" : \"Array\";\n // @TODO: WTF is this? Or am I missing something?\n // var returnType\n // if (options && options.returnType) {\n // var allowedValues = ['Array', 'Object']\n // returnType =\n // allowedValues.indexOf(options.returnType) == -1\n // ? 'Array'\n // : options.returnType\n // } else {\n // returnType = 'Array'\n // }\n // build options\n var filter = options && _filterInstanceProperty(options);\n var items = [];\n var item = undefined;\n var itemIds = undefined;\n var itemId = undefined;\n // convert items\n if (id != null) {\n // return a single item\n item = this._data.get(id);\n if (item && filter && !filter(item)) {\n item = undefined;\n }\n } else if (ids != null) {\n // return a subset of items\n for (var i = 0, len = ids.length; i < len; i++) {\n item = this._data.get(ids[i]);\n if (item != null && (!filter || filter(item))) {\n items.push(item);\n }\n }\n } else {\n var _context20;\n // return all items\n itemIds = _toConsumableArray(_keysInstanceProperty(_context20 = this._data).call(_context20));\n for (var _i = 0, _len2 = itemIds.length; _i < _len2; _i++) {\n itemId = itemIds[_i];\n item = this._data.get(itemId);\n if (item != null && (!filter || filter(item))) {\n items.push(item);\n }\n }\n }\n // order the results\n if (options && options.order && id == undefined) {\n this._sort(items, options.order);\n }\n // filter fields of the items\n if (options && options.fields) {\n var fields = options.fields;\n if (id != undefined && item != null) {\n item = this._filterFields(item, fields);\n } else {\n for (var _i2 = 0, _len3 = items.length; _i2 < _len3; _i2++) {\n items[_i2] = this._filterFields(items[_i2], fields);\n }\n }\n }\n // return the results\n if (returnType == \"Object\") {\n var result = {};\n for (var _i3 = 0, _len4 = items.length; _i3 < _len4; _i3++) {\n var resultant = items[_i3];\n // @TODO: Shoudn't this be this._fieldId?\n // result[resultant.id] = resultant\n var _id2 = resultant[this._idProp];\n result[_id2] = resultant;\n }\n return result;\n } else {\n if (id != null) {\n var _item;\n // a single item\n return (_item = item) !== null && _item !== void 0 ? _item : null;\n } else {\n // just return our array\n return items;\n }\n }\n }\n /** @inheritDoc */\n }, {\n key: \"getIds\",\n value: function getIds(options) {\n var data = this._data;\n var filter = options && _filterInstanceProperty(options);\n var order = options && options.order;\n var itemIds = _toConsumableArray(_keysInstanceProperty(data).call(data));\n var ids = [];\n if (filter) {\n // get filtered items\n if (order) {\n // create ordered list\n var items = [];\n for (var i = 0, len = itemIds.length; i < len; i++) {\n var id = itemIds[i];\n var item = this._data.get(id);\n if (item != null && filter(item)) {\n items.push(item);\n }\n }\n this._sort(items, order);\n for (var _i4 = 0, _len5 = items.length; _i4 < _len5; _i4++) {\n ids.push(items[_i4][this._idProp]);\n }\n } else {\n // create unordered list\n for (var _i5 = 0, _len6 = itemIds.length; _i5 < _len6; _i5++) {\n var _id3 = itemIds[_i5];\n var _item2 = this._data.get(_id3);\n if (_item2 != null && filter(_item2)) {\n ids.push(_item2[this._idProp]);\n }\n }\n }\n } else {\n // get all items\n if (order) {\n // create an ordered list\n var _items = [];\n for (var _i6 = 0, _len7 = itemIds.length; _i6 < _len7; _i6++) {\n var _id4 = itemIds[_i6];\n _items.push(data.get(_id4));\n }\n this._sort(_items, order);\n for (var _i7 = 0, _len8 = _items.length; _i7 < _len8; _i7++) {\n ids.push(_items[_i7][this._idProp]);\n }\n } else {\n // create unordered list\n for (var _i8 = 0, _len9 = itemIds.length; _i8 < _len9; _i8++) {\n var _id5 = itemIds[_i8];\n var _item3 = data.get(_id5);\n if (_item3 != null) {\n ids.push(_item3[this._idProp]);\n }\n }\n }\n }\n return ids;\n }\n /** @inheritDoc */\n }, {\n key: \"getDataSet\",\n value: function getDataSet() {\n return this;\n }\n /** @inheritDoc */\n }, {\n key: \"forEach\",\n value: function forEach(callback, options) {\n var filter = options && _filterInstanceProperty(options);\n var data = this._data;\n var itemIds = _toConsumableArray(_keysInstanceProperty(data).call(data));\n if (options && options.order) {\n // execute forEach on ordered list\n var items = this.get(options);\n for (var i = 0, len = items.length; i < len; i++) {\n var item = items[i];\n var id = item[this._idProp];\n callback(item, id);\n }\n } else {\n // unordered\n for (var _i9 = 0, _len10 = itemIds.length; _i9 < _len10; _i9++) {\n var _id6 = itemIds[_i9];\n var _item4 = this._data.get(_id6);\n if (_item4 != null && (!filter || filter(_item4))) {\n callback(_item4, _id6);\n }\n }\n }\n }\n /** @inheritDoc */\n }, {\n key: \"map\",\n value: function map(callback, options) {\n var filter = options && _filterInstanceProperty(options);\n var mappedItems = [];\n var data = this._data;\n var itemIds = _toConsumableArray(_keysInstanceProperty(data).call(data));\n // convert and filter items\n for (var i = 0, len = itemIds.length; i < len; i++) {\n var id = itemIds[i];\n var item = this._data.get(id);\n if (item != null && (!filter || filter(item))) {\n mappedItems.push(callback(item, id));\n }\n }\n // order items\n if (options && options.order) {\n this._sort(mappedItems, options.order);\n }\n return mappedItems;\n }\n /**\r\n * Filter the fields of an item.\r\n *\r\n * @param item - The item whose fields should be filtered.\r\n * @param fields - The names of the fields that will be kept.\r\n * @typeParam K - Field name type.\r\n * @returns The item without any additional fields.\r\n */\n }, {\n key: \"_filterFields\",\n value: function _filterFields(item, fields) {\n var _context21;\n if (!item) {\n // item is null\n return item;\n }\n return _reduceInstanceProperty(_context21 = _Array$isArray(fields) ?\n // Use the supplied array\n fields :\n // Use the keys of the supplied object\n _Object$keys(fields)).call(_context21, function (filteredItem, field) {\n filteredItem[field] = item[field];\n return filteredItem;\n }, {});\n }\n /**\r\n * Sort the provided array with items.\r\n *\r\n * @param items - Items to be sorted in place.\r\n * @param order - A field name or custom sort function.\r\n * @typeParam T - The type of the items in the items array.\r\n */\n }, {\n key: \"_sort\",\n value: function _sort(items, order) {\n if (typeof order === \"string\") {\n // order by provided field name\n var name = order; // field name\n _sortInstanceProperty(items).call(items, function (a, b) {\n // @TODO: How to treat missing properties?\n var av = a[name];\n var bv = b[name];\n return av > bv ? 1 : av < bv ? -1 : 0;\n });\n } else if (typeof order === \"function\") {\n // order by sort function\n _sortInstanceProperty(items).call(items, order);\n } else {\n // TODO: extend order by an Object {field:string, direction:string}\n // where direction can be 'asc' or 'desc'\n throw new TypeError(\"Order must be a function or a string\");\n }\n }\n /**\r\n * Remove an item or multiple items by “reference” (only the id is used) or by id.\r\n *\r\n * The method ignores removal of non-existing items, and returns an array containing the ids of the items which are actually removed from the DataSet.\r\n *\r\n * After the items are removed, the DataSet will trigger an event `remove` for the removed items. When a `senderId` is provided, this id will be passed with the triggered event to all subscribers.\r\n *\r\n * ## Example\r\n * ```javascript\r\n * // create a DataSet\r\n * const data = new vis.DataSet([\r\n * { id: 1, text: 'item 1' },\r\n * { id: 2, text: 'item 2' },\r\n * { id: 3, text: 'item 3' }\r\n * ])\r\n *\r\n * // remove items\r\n * const ids = data.remove([2, { id: 3 }, 4])\r\n *\r\n * console.log(ids) // [2, 3]\r\n * ```\r\n *\r\n * @param id - One or more items or ids of items to be removed.\r\n * @param senderId - Sender id.\r\n * @returns The ids of the removed items.\r\n */\n }, {\n key: \"remove\",\n value: function remove(id, senderId) {\n var removedIds = [];\n var removedItems = [];\n // force everything to be an array for simplicity\n var ids = _Array$isArray(id) ? id : [id];\n for (var i = 0, len = ids.length; i < len; i++) {\n var item = this._remove(ids[i]);\n if (item) {\n var itemId = item[this._idProp];\n if (itemId != null) {\n removedIds.push(itemId);\n removedItems.push(item);\n }\n }\n }\n if (removedIds.length) {\n this._trigger(\"remove\", {\n items: removedIds,\n oldData: removedItems\n }, senderId);\n }\n return removedIds;\n }\n /**\r\n * Remove an item by its id or reference.\r\n *\r\n * @param id - Id of an item or the item itself.\r\n * @returns The removed item if removed, null otherwise.\r\n */\n }, {\n key: \"_remove\",\n value: function _remove(id) {\n // @TODO: It origianlly returned the item although the docs say id.\n // The code expects the item, so probably an error in the docs.\n var ident;\n // confirm the id to use based on the args type\n if (isId(id)) {\n ident = id;\n } else if (id && _typeof$1(id) === \"object\") {\n ident = id[this._idProp]; // look for the identifier field using ._idProp\n }\n // do the removing if the item is found\n if (ident != null && this._data.has(ident)) {\n var item = this._data.get(ident) || null;\n this._data.delete(ident);\n --this.length;\n return item;\n }\n return null;\n }\n /**\r\n * Clear the entire data set.\r\n *\r\n * After the items are removed, the {@link DataSet} will trigger an event `remove` for all removed items. When a `senderId` is provided, this id will be passed with the triggered event to all subscribers.\r\n *\r\n * @param senderId - Sender id.\r\n * @returns removedIds - The ids of all removed items.\r\n */\n }, {\n key: \"clear\",\n value: function clear(senderId) {\n var _context22;\n var ids = _toConsumableArray(_keysInstanceProperty(_context22 = this._data).call(_context22));\n var items = [];\n for (var i = 0, len = ids.length; i < len; i++) {\n items.push(this._data.get(ids[i]));\n }\n this._data.clear();\n this.length = 0;\n this._trigger(\"remove\", {\n items: ids,\n oldData: items\n }, senderId);\n return ids;\n }\n /**\r\n * Find the item with maximum value of a specified field.\r\n *\r\n * @param field - Name of the property that should be searched for max value.\r\n * @returns Item containing max value, or null if no items.\r\n */\n }, {\n key: \"max\",\n value: function max(field) {\n var _context23;\n var max = null;\n var maxField = null;\n var _iterator11 = _createForOfIteratorHelper$6(_valuesInstanceProperty(_context23 = this._data).call(_context23)),\n _step11;\n try {\n for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {\n var item = _step11.value;\n var itemField = item[field];\n if (typeof itemField === \"number\" && (maxField == null || itemField > maxField)) {\n max = item;\n maxField = itemField;\n }\n }\n } catch (err) {\n _iterator11.e(err);\n } finally {\n _iterator11.f();\n }\n return max || null;\n }\n /**\r\n * Find the item with minimum value of a specified field.\r\n *\r\n * @param field - Name of the property that should be searched for min value.\r\n * @returns Item containing min value, or null if no items.\r\n */\n }, {\n key: \"min\",\n value: function min(field) {\n var _context24;\n var min = null;\n var minField = null;\n var _iterator12 = _createForOfIteratorHelper$6(_valuesInstanceProperty(_context24 = this._data).call(_context24)),\n _step12;\n try {\n for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {\n var item = _step12.value;\n var itemField = item[field];\n if (typeof itemField === \"number\" && (minField == null || itemField < minField)) {\n min = item;\n minField = itemField;\n }\n }\n } catch (err) {\n _iterator12.e(err);\n } finally {\n _iterator12.f();\n }\n return min || null;\n }\n /**\r\n * Find all distinct values of a specified field\r\n *\r\n * @param prop - The property name whose distinct values should be returned.\r\n * @returns Unordered array containing all distinct values. Items without specified property are ignored.\r\n */\n }, {\n key: \"distinct\",\n value: function distinct(prop) {\n var data = this._data;\n var itemIds = _toConsumableArray(_keysInstanceProperty(data).call(data));\n var values = [];\n var count = 0;\n for (var i = 0, len = itemIds.length; i < len; i++) {\n var id = itemIds[i];\n var item = data.get(id);\n var _value3 = item[prop];\n var exists = false;\n for (var j = 0; j < count; j++) {\n if (values[j] == _value3) {\n exists = true;\n break;\n }\n }\n if (!exists && _value3 !== undefined) {\n values[count] = _value3;\n count++;\n }\n }\n return values;\n }\n /**\r\n * Add a single item. Will fail when an item with the same id already exists.\r\n *\r\n * @param item - A new item to be added.\r\n * @returns Added item's id. An id is generated when it is not present in the item.\r\n */\n }, {\n key: \"_addItem\",\n value: function _addItem(item) {\n var fullItem = ensureFullItem(item, this._idProp);\n var id = fullItem[this._idProp];\n // check whether this id is already taken\n if (this._data.has(id)) {\n // item already exists\n throw new Error(\"Cannot add item: item with id \" + id + \" already exists\");\n }\n this._data.set(id, fullItem);\n ++this.length;\n return id;\n }\n /**\r\n * Update a single item: merge with existing item.\r\n * Will fail when the item has no id, or when there does not exist an item with the same id.\r\n *\r\n * @param update - The new item\r\n * @returns The id of the updated item.\r\n */\n }, {\n key: \"_updateItem\",\n value: function _updateItem(update) {\n var id = update[this._idProp];\n if (id == null) {\n throw new Error(\"Cannot update item: item has no id (item: \" + _JSON$stringify(update) + \")\");\n }\n var item = this._data.get(id);\n if (!item) {\n // item doesn't exist\n throw new Error(\"Cannot update item: no item with id \" + id + \" found\");\n }\n this._data.set(id, _objectSpread$4(_objectSpread$4({}, item), update));\n return id;\n }\n /** @inheritDoc */\n }, {\n key: \"stream\",\n value: function stream(ids) {\n if (ids) {\n var data = this._data;\n return new DataStream(_defineProperty({}, _Symbol$iterator2, /*#__PURE__*/regenerator.mark(function _callee3() {\n var _iterator13, _step13, id, item;\n return regenerator.wrap(function _callee3$(_context25) {\n while (1) switch (_context25.prev = _context25.next) {\n case 0:\n _iterator13 = _createForOfIteratorHelper$6(ids);\n _context25.prev = 1;\n _iterator13.s();\n case 3:\n if ((_step13 = _iterator13.n()).done) {\n _context25.next = 11;\n break;\n }\n id = _step13.value;\n item = data.get(id);\n if (!(item != null)) {\n _context25.next = 9;\n break;\n }\n _context25.next = 9;\n return [id, item];\n case 9:\n _context25.next = 3;\n break;\n case 11:\n _context25.next = 16;\n break;\n case 13:\n _context25.prev = 13;\n _context25.t0 = _context25[\"catch\"](1);\n _iterator13.e(_context25.t0);\n case 16:\n _context25.prev = 16;\n _iterator13.f();\n return _context25.finish(16);\n case 19:\n case \"end\":\n return _context25.stop();\n }\n }, _callee3, null, [[1, 13, 16, 19]]);\n })));\n } else {\n var _context26;\n return new DataStream(_defineProperty({}, _Symbol$iterator2, _bindInstanceProperty$1(_context26 = _entriesInstanceProperty(this._data)).call(_context26, this._data)));\n }\n }\n }]);\n return DataSet;\n}(DataSetPart);\n/**\r\n * DataView\r\n *\r\n * A DataView offers a filtered and/or formatted view on a DataSet. One can subscribe to changes in a DataView, and easily get filtered or formatted data without having to specify filters and field types all the time.\r\n *\r\n * ## Example\r\n * ```javascript\r\n * // create a DataSet\r\n * var data = new vis.DataSet();\r\n * data.add([\r\n * {id: 1, text: 'item 1', date: new Date(2013, 6, 20), group: 1, first: true},\r\n * {id: 2, text: 'item 2', date: '2013-06-23', group: 2},\r\n * {id: 3, text: 'item 3', date: '2013-06-25', group: 2},\r\n * {id: 4, text: 'item 4'}\r\n * ]);\r\n *\r\n * // create a DataView\r\n * // the view will only contain items having a property group with value 1,\r\n * // and will only output fields id, text, and date.\r\n * var view = new vis.DataView(data, {\r\n * filter: function (item) {\r\n * return (item.group == 1);\r\n * },\r\n * fields: ['id', 'text', 'date']\r\n * });\r\n *\r\n * // subscribe to any change in the DataView\r\n * view.on('*', function (event, properties, senderId) {\r\n * console.log('event', event, properties);\r\n * });\r\n *\r\n * // update an item in the data set\r\n * data.update({id: 2, group: 1});\r\n *\r\n * // get all ids in the view\r\n * var ids = view.getIds();\r\n * console.log('ids', ids); // will output [1, 2]\r\n *\r\n * // get all items in the view\r\n * var items = view.get();\r\n * ```\r\n *\r\n * @typeParam Item - Item type that may or may not have an id.\r\n * @typeParam IdProp - Name of the property that contains the id.\r\n */\nvar DataView = /*#__PURE__*/function (_DataSetPart2) {\n _inherits(DataView, _DataSetPart2);\n var _super2 = _createSuper$t(DataView);\n /**\r\n * Create a DataView.\r\n *\r\n * @param data - The instance containing data (directly or indirectly).\r\n * @param options - Options to configure this data view.\r\n */\n function DataView(data, options) {\n var _context27;\n var _this7;\n _classCallCheck(this, DataView);\n _this7 = _super2.call(this);\n /** @inheritDoc */\n _defineProperty(_assertThisInitialized(_this7), \"length\", 0);\n _defineProperty(_assertThisInitialized(_this7), \"_listener\", void 0);\n _defineProperty(_assertThisInitialized(_this7), \"_data\", void 0);\n // constructor → setData\n _defineProperty(_assertThisInitialized(_this7), \"_ids\", new _Set());\n // ids of the items currently in memory (just contains a boolean true)\n _defineProperty(_assertThisInitialized(_this7), \"_options\", void 0);\n _this7._options = options || {};\n _this7._listener = _bindInstanceProperty$1(_context27 = _this7._onEvent).call(_context27, _assertThisInitialized(_this7));\n _this7.setData(data);\n return _this7;\n }\n // TODO: implement a function .config() to dynamically update things like configured filter\n // and trigger changes accordingly\n /**\r\n * Set a data source for the view.\r\n *\r\n * @param data - The instance containing data (directly or indirectly).\r\n * @remarks\r\n * Note that when the data view is bound to a data set it won't be garbage\r\n * collected unless the data set is too. Use `dataView.setData(null)` or\r\n * `dataView.dispose()` to enable garbage collection before you lose the last\r\n * reference.\r\n */\n _createClass(DataView, [{\n key: \"idProp\",\n get:\n /** @inheritDoc */\n function get() {\n return this.getDataSet().idProp;\n }\n }, {\n key: \"setData\",\n value: function setData(data) {\n if (this._data) {\n // unsubscribe from current dataset\n if (this._data.off) {\n this._data.off(\"*\", this._listener);\n }\n // trigger a remove of all items in memory\n var ids = this._data.getIds({\n filter: _filterInstanceProperty(this._options)\n });\n var items = this._data.get(ids);\n this._ids.clear();\n this.length = 0;\n this._trigger(\"remove\", {\n items: ids,\n oldData: items\n });\n }\n if (data != null) {\n this._data = data;\n // trigger an add of all added items\n var _ids = this._data.getIds({\n filter: _filterInstanceProperty(this._options)\n });\n for (var i = 0, len = _ids.length; i < len; i++) {\n var id = _ids[i];\n this._ids.add(id);\n }\n this.length = _ids.length;\n this._trigger(\"add\", {\n items: _ids\n });\n } else {\n this._data = new DataSet();\n }\n // subscribe to new dataset\n if (this._data.on) {\n this._data.on(\"*\", this._listener);\n }\n }\n /**\r\n * Refresh the DataView.\r\n * Useful when the DataView has a filter function containing a variable parameter.\r\n */\n }, {\n key: \"refresh\",\n value: function refresh() {\n var ids = this._data.getIds({\n filter: _filterInstanceProperty(this._options)\n });\n var oldIds = _toConsumableArray(this._ids);\n var newIds = {};\n var addedIds = [];\n var removedIds = [];\n var removedItems = [];\n // check for additions\n for (var i = 0, len = ids.length; i < len; i++) {\n var id = ids[i];\n newIds[id] = true;\n if (!this._ids.has(id)) {\n addedIds.push(id);\n this._ids.add(id);\n }\n }\n // check for removals\n for (var _i10 = 0, _len11 = oldIds.length; _i10 < _len11; _i10++) {\n var _id7 = oldIds[_i10];\n var item = this._data.get(_id7);\n if (item == null) {\n // @TODO: Investigate.\n // Doesn't happen during tests or examples.\n // Is it really impossible or could it eventually happen?\n // How to handle it if it does? The types guarantee non-nullable items.\n console.error(\"If you see this, report it please.\");\n } else if (!newIds[_id7]) {\n removedIds.push(_id7);\n removedItems.push(item);\n this._ids.delete(_id7);\n }\n }\n this.length += addedIds.length - removedIds.length;\n // trigger events\n if (addedIds.length) {\n this._trigger(\"add\", {\n items: addedIds\n });\n }\n if (removedIds.length) {\n this._trigger(\"remove\", {\n items: removedIds,\n oldData: removedItems\n });\n }\n }\n /** @inheritDoc */\n }, {\n key: \"get\",\n value: function get(first, second) {\n if (this._data == null) {\n return null;\n }\n // parse the arguments\n var ids = null;\n var options;\n if (isId(first) || _Array$isArray(first)) {\n ids = first;\n options = second;\n } else {\n options = first;\n }\n // extend the options with the default options and provided options\n var viewOptions = _Object$assign({}, this._options, options);\n // create a combined filter method when needed\n var thisFilter = _filterInstanceProperty(this._options);\n var optionsFilter = options && _filterInstanceProperty(options);\n if (thisFilter && optionsFilter) {\n viewOptions.filter = function (item) {\n return thisFilter(item) && optionsFilter(item);\n };\n }\n if (ids == null) {\n return this._data.get(viewOptions);\n } else {\n return this._data.get(ids, viewOptions);\n }\n }\n /** @inheritDoc */\n }, {\n key: \"getIds\",\n value: function getIds(options) {\n if (this._data.length) {\n var defaultFilter = _filterInstanceProperty(this._options);\n var optionsFilter = options != null ? _filterInstanceProperty(options) : null;\n var filter;\n if (optionsFilter) {\n if (defaultFilter) {\n filter = function filter(item) {\n return defaultFilter(item) && optionsFilter(item);\n };\n } else {\n filter = optionsFilter;\n }\n } else {\n filter = defaultFilter;\n }\n return this._data.getIds({\n filter: filter,\n order: options && options.order\n });\n } else {\n return [];\n }\n }\n /** @inheritDoc */\n }, {\n key: \"forEach\",\n value: function forEach(callback, options) {\n if (this._data) {\n var _context28;\n var defaultFilter = _filterInstanceProperty(this._options);\n var optionsFilter = options && _filterInstanceProperty(options);\n var filter;\n if (optionsFilter) {\n if (defaultFilter) {\n filter = function filter(item) {\n return defaultFilter(item) && optionsFilter(item);\n };\n } else {\n filter = optionsFilter;\n }\n } else {\n filter = defaultFilter;\n }\n _forEachInstanceProperty(_context28 = this._data).call(_context28, callback, {\n filter: filter,\n order: options && options.order\n });\n }\n }\n /** @inheritDoc */\n }, {\n key: \"map\",\n value: function map(callback, options) {\n if (this._data) {\n var _context29;\n var defaultFilter = _filterInstanceProperty(this._options);\n var optionsFilter = options && _filterInstanceProperty(options);\n var filter;\n if (optionsFilter) {\n if (defaultFilter) {\n filter = function filter(item) {\n return defaultFilter(item) && optionsFilter(item);\n };\n } else {\n filter = optionsFilter;\n }\n } else {\n filter = defaultFilter;\n }\n return _mapInstanceProperty(_context29 = this._data).call(_context29, callback, {\n filter: filter,\n order: options && options.order\n });\n } else {\n return [];\n }\n }\n /** @inheritDoc */\n }, {\n key: \"getDataSet\",\n value: function getDataSet() {\n return this._data.getDataSet();\n }\n /** @inheritDoc */\n }, {\n key: \"stream\",\n value: function stream(ids) {\n var _context30;\n return this._data.stream(ids || _defineProperty({}, _Symbol$iterator2, _bindInstanceProperty$1(_context30 = _keysInstanceProperty(this._ids)).call(_context30, this._ids)));\n }\n /**\r\n * Render the instance unusable prior to garbage collection.\r\n *\r\n * @remarks\r\n * The intention of this method is to help discover scenarios where the data\r\n * view is being used when the programmer thinks it has been garbage collected\r\n * already. It's stricter version of `dataView.setData(null)`.\r\n */\n }, {\n key: \"dispose\",\n value: function dispose() {\n var _this$_data;\n if ((_this$_data = this._data) !== null && _this$_data !== void 0 && _this$_data.off) {\n this._data.off(\"*\", this._listener);\n }\n var message = \"This data view has already been disposed of.\";\n var replacement = {\n get: function get() {\n throw new Error(message);\n },\n set: function set() {\n throw new Error(message);\n },\n configurable: false\n };\n var _iterator14 = _createForOfIteratorHelper$6(_Reflect$ownKeys(DataView.prototype)),\n _step14;\n try {\n for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {\n var key = _step14.value;\n _Object$defineProperty$1(this, key, replacement);\n }\n } catch (err) {\n _iterator14.e(err);\n } finally {\n _iterator14.f();\n }\n }\n /**\r\n * Event listener. Will propagate all events from the connected data set to the subscribers of the DataView, but will filter the items and only trigger when there are changes in the filtered data set.\r\n *\r\n * @param event - The name of the event.\r\n * @param params - Parameters of the event.\r\n * @param senderId - Id supplied by the sender.\r\n */\n }, {\n key: \"_onEvent\",\n value: function _onEvent(event, params, senderId) {\n if (!params || !params.items || !this._data) {\n return;\n }\n var ids = params.items;\n var addedIds = [];\n var updatedIds = [];\n var removedIds = [];\n var oldItems = [];\n var updatedItems = [];\n var removedItems = [];\n switch (event) {\n case \"add\":\n // filter the ids of the added items\n for (var i = 0, len = ids.length; i < len; i++) {\n var id = ids[i];\n var item = this.get(id);\n if (item) {\n this._ids.add(id);\n addedIds.push(id);\n }\n }\n break;\n case \"update\":\n // determine the event from the views viewpoint: an updated\n // item can be added, updated, or removed from this view.\n for (var _i11 = 0, _len12 = ids.length; _i11 < _len12; _i11++) {\n var _id8 = ids[_i11];\n var _item5 = this.get(_id8);\n if (_item5) {\n if (this._ids.has(_id8)) {\n updatedIds.push(_id8);\n updatedItems.push(params.data[_i11]);\n oldItems.push(params.oldData[_i11]);\n } else {\n this._ids.add(_id8);\n addedIds.push(_id8);\n }\n } else {\n if (this._ids.has(_id8)) {\n this._ids.delete(_id8);\n removedIds.push(_id8);\n removedItems.push(params.oldData[_i11]);\n }\n }\n }\n break;\n case \"remove\":\n // filter the ids of the removed items\n for (var _i12 = 0, _len13 = ids.length; _i12 < _len13; _i12++) {\n var _id9 = ids[_i12];\n if (this._ids.has(_id9)) {\n this._ids.delete(_id9);\n removedIds.push(_id9);\n removedItems.push(params.oldData[_i12]);\n }\n }\n break;\n }\n this.length += addedIds.length - removedIds.length;\n if (addedIds.length) {\n this._trigger(\"add\", {\n items: addedIds\n }, senderId);\n }\n if (updatedIds.length) {\n this._trigger(\"update\", {\n items: updatedIds,\n oldData: oldItems,\n data: updatedItems\n }, senderId);\n }\n if (removedIds.length) {\n this._trigger(\"remove\", {\n items: removedIds,\n oldData: removedItems\n }, senderId);\n }\n }\n }]);\n return DataView;\n}(DataSetPart);\n/**\r\n * Check that given value is compatible with Vis Data Set interface.\r\n *\r\n * @param idProp - The expected property to contain item id.\r\n * @param v - The value to be tested.\r\n * @returns True if all expected values and methods match, false otherwise.\r\n */\nfunction isDataSetLike(idProp, v) {\n return _typeof$1(v) === \"object\" && v !== null && idProp === v.idProp && typeof v.add === \"function\" && typeof v.clear === \"function\" && typeof v.distinct === \"function\" && typeof _forEachInstanceProperty(v) === \"function\" && typeof v.get === \"function\" && typeof v.getDataSet === \"function\" && typeof v.getIds === \"function\" && typeof v.length === \"number\" && typeof _mapInstanceProperty(v) === \"function\" && typeof v.max === \"function\" && typeof v.min === \"function\" && typeof v.off === \"function\" && typeof v.on === \"function\" && typeof v.remove === \"function\" && typeof v.setOptions === \"function\" && typeof v.stream === \"function\" && typeof v.update === \"function\" && typeof v.updateOnly === \"function\";\n}\n\n/**\r\n * Check that given value is compatible with Vis Data View interface.\r\n *\r\n * @param idProp - The expected property to contain item id.\r\n * @param v - The value to be tested.\r\n * @returns True if all expected values and methods match, false otherwise.\r\n */\nfunction isDataViewLike(idProp, v) {\n return _typeof$1(v) === \"object\" && v !== null && idProp === v.idProp && typeof _forEachInstanceProperty(v) === \"function\" && typeof v.get === \"function\" && typeof v.getDataSet === \"function\" && typeof v.getIds === \"function\" && typeof v.length === \"number\" && typeof _mapInstanceProperty(v) === \"function\" && typeof v.off === \"function\" && typeof v.on === \"function\" && typeof v.stream === \"function\" && isDataSetLike(idProp, v.getDataSet());\n}\n\nvar index = /*#__PURE__*/Object.freeze({\n\t__proto__: null,\n\tDELETE: DELETE,\n\tDataSet: DataSet,\n\tDataStream: DataStream,\n\tDataView: DataView,\n\tQueue: Queue,\n\tcreateNewDataPipeFrom: createNewDataPipeFrom,\n\tisDataSetLike: isDataSetLike,\n\tisDataViewLike: isDataViewLike\n});\n\nvar _parseFloatExports = {};\nvar _parseFloat$3 = {\n get exports(){ return _parseFloatExports; },\n set exports(v){ _parseFloatExports = v; },\n};\n\nvar global$2 = global$q;\nvar fails$2 = fails$z;\nvar uncurryThis$2 = functionUncurryThis;\nvar toString = toString$b;\nvar trim = stringTrim.trim;\nvar whitespaces = whitespaces$4;\n\nvar charAt = uncurryThis$2(''.charAt);\nvar $parseFloat$1 = global$2.parseFloat;\nvar Symbol$1 = global$2.Symbol;\nvar ITERATOR = Symbol$1 && Symbol$1.iterator;\nvar FORCED$1 = 1 / $parseFloat$1(whitespaces + '-0') !== -Infinity\n // MS Edge 18- broken with boxed symbols\n || (ITERATOR && !fails$2(function () { $parseFloat$1(Object(ITERATOR)); }));\n\n// `parseFloat` method\n// https://tc39.es/ecma262/#sec-parsefloat-string\nvar numberParseFloat = FORCED$1 ? function parseFloat(string) {\n var trimmedString = trim(toString(string));\n var result = $parseFloat$1(trimmedString);\n return result === 0 && charAt(trimmedString, 0) == '-' ? -0 : result;\n} : $parseFloat$1;\n\nvar $$4 = _export;\nvar $parseFloat = numberParseFloat;\n\n// `parseFloat` method\n// https://tc39.es/ecma262/#sec-parsefloat-string\n$$4({ global: true, forced: parseFloat != $parseFloat }, {\n parseFloat: $parseFloat\n});\n\nvar path$5 = path$z;\n\nvar _parseFloat$2 = path$5.parseFloat;\n\nvar parent$9 = _parseFloat$2;\n\nvar _parseFloat$1 = parent$9;\n\n(function (module) {\n\tmodule.exports = _parseFloat$1;\n} (_parseFloat$3));\n\nvar _parseFloat = /*@__PURE__*/getDefaultExportFromCjs(_parseFloatExports);\n\nvar getOwnPropertyNamesExports = {};\nvar getOwnPropertyNames$3 = {\n get exports(){ return getOwnPropertyNamesExports; },\n set exports(v){ getOwnPropertyNamesExports = v; },\n};\n\nvar $$3 = _export;\nvar fails$1 = fails$z;\nvar getOwnPropertyNames$2 = objectGetOwnPropertyNamesExternal.f;\n\n// eslint-disable-next-line es/no-object-getownpropertynames -- required for testing\nvar FAILS_ON_PRIMITIVES = fails$1(function () { return !Object.getOwnPropertyNames(1); });\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n$$3({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n getOwnPropertyNames: getOwnPropertyNames$2\n});\n\nvar path$4 = path$z;\n\nvar Object$1 = path$4.Object;\n\nvar getOwnPropertyNames$1 = function getOwnPropertyNames(it) {\n return Object$1.getOwnPropertyNames(it);\n};\n\nvar parent$8 = getOwnPropertyNames$1;\n\nvar getOwnPropertyNames = parent$8;\n\n(function (module) {\n\tmodule.exports = getOwnPropertyNames;\n} (getOwnPropertyNames$3));\n\nvar _Object$getOwnPropertyNames = /*@__PURE__*/getDefaultExportFromCjs(getOwnPropertyNamesExports);\n\n/**\n * Helper functions for components\n */\n\n/**\n * Determine values to use for (sub)options of 'chosen'.\n *\n * This option is either a boolean or an object whose values should be examined further.\n * The relevant structures are:\n *\n * - chosen: \n * - chosen: { subOption: }\n *\n * Where subOption is 'node', 'edge' or 'label'.\n *\n * The intention of this method appears to be to set a specific priority to the options;\n * Since most properties are either bridged or merged into the local options objects, there\n * is not much point in handling them separately.\n * TODO: examine if 'most' in previous sentence can be replaced with 'all'. In that case, we\n * should be able to get rid of this method.\n *\n * @param {string} subOption option within object 'chosen' to consider; either 'node', 'edge' or 'label'\n * @param {object} pile array of options objects to consider\n * @returns {boolean | Function} value for passed subOption of 'chosen' to use\n */\nfunction choosify(subOption, pile) {\n // allowed values for subOption\n var allowed = [\"node\", \"edge\", \"label\"];\n var value = true;\n var chosen = topMost(pile, \"chosen\");\n if (typeof chosen === \"boolean\") {\n value = chosen;\n } else if (_typeof$1(chosen) === \"object\") {\n if (_indexOfInstanceProperty(allowed).call(allowed, subOption) === -1) {\n throw new Error(\"choosify: subOption '\" + subOption + \"' should be one of \" + \"'\" + allowed.join(\"', '\") + \"'\");\n }\n var chosenEdge = topMost(pile, [\"chosen\", subOption]);\n if (typeof chosenEdge === \"boolean\" || typeof chosenEdge === \"function\") {\n value = chosenEdge;\n }\n }\n return value;\n}\n\n/**\n * Check if the point falls within the given rectangle.\n *\n * @param {rect} rect\n * @param {point} point\n * @param {rotationPoint} [rotationPoint] if specified, the rotation that applies to the rectangle.\n * @returns {boolean} true if point within rectangle, false otherwise\n */\nfunction pointInRect(rect, point, rotationPoint) {\n if (rect.width <= 0 || rect.height <= 0) {\n return false; // early out\n }\n\n if (rotationPoint !== undefined) {\n // Rotate the point the same amount as the rectangle\n var tmp = {\n x: point.x - rotationPoint.x,\n y: point.y - rotationPoint.y\n };\n if (rotationPoint.angle !== 0) {\n // In order to get the coordinates the same, you need to\n // rotate in the reverse direction\n var angle = -rotationPoint.angle;\n var tmp2 = {\n x: Math.cos(angle) * tmp.x - Math.sin(angle) * tmp.y,\n y: Math.sin(angle) * tmp.x + Math.cos(angle) * tmp.y\n };\n point = tmp2;\n } else {\n point = tmp;\n }\n\n // Note that if a rotation is specified, the rectangle coordinates\n // are **not* the full canvas coordinates. They are relative to the\n // rotationPoint. Hence, the point coordinates need not be translated\n // back in this case.\n }\n\n var right = rect.x + rect.width;\n var bottom = rect.y + rect.width;\n return rect.left < point.x && right > point.x && rect.top < point.y && bottom > point.y;\n}\n\n/**\n * Check if given value is acceptable as a label text.\n *\n * @param {*} text value to check; can be anything at this point\n * @returns {boolean} true if valid label value, false otherwise\n */\nfunction isValidLabel(text) {\n // Note that this is quite strict: types that *might* be converted to string are disallowed\n return typeof text === \"string\" && text !== \"\";\n}\n\n/**\n * Returns x, y of self reference circle based on provided angle\n *\n * @param {object} ctx\n * @param {number} angle\n * @param {number} radius\n * @param {VisNode} node\n * @returns {object} x and y coordinates\n */\nfunction getSelfRefCoordinates(ctx, angle, radius, node) {\n var x = node.x;\n var y = node.y;\n if (typeof node.distanceToBorder === \"function\") {\n //calculating opposite and adjacent\n //distaneToBorder becomes Hypotenuse.\n //Formulas sin(a) = Opposite / Hypotenuse and cos(a) = Adjacent / Hypotenuse\n var toBorderDist = node.distanceToBorder(ctx, angle);\n var yFromNodeCenter = Math.sin(angle) * toBorderDist;\n var xFromNodeCenter = Math.cos(angle) * toBorderDist;\n //xFromNodeCenter is basically x and if xFromNodeCenter equals to the distance to border then it means\n //that y does not need calculation because it is equal node.height / 2 or node.y\n //same thing with yFromNodeCenter and if yFromNodeCenter equals to the distance to border then it means\n //that x is equal node.width / 2 or node.x\n if (xFromNodeCenter === toBorderDist) {\n x += toBorderDist;\n y = node.y;\n } else if (yFromNodeCenter === toBorderDist) {\n x = node.x;\n y -= toBorderDist;\n } else {\n x += xFromNodeCenter;\n y -= yFromNodeCenter;\n }\n } else if (node.shape.width > node.shape.height) {\n x = node.x + node.shape.width * 0.5;\n y = node.y - radius;\n } else {\n x = node.x + radius;\n y = node.y - node.shape.height * 0.5;\n }\n return {\n x: x,\n y: y\n };\n}\n\n/**\n * Callback to determine text dimensions, using the parent label settings.\n *\n * @callback MeasureText\n * @param {text} text\n * @param {text} mod\n * @returns {object} { width, values} width in pixels and font attributes\n */\n/**\n * Helper class for Label which collects results of splitting labels into lines and blocks.\n *\n * @private\n */\nvar LabelAccumulator = /*#__PURE__*/function () {\n /**\n * @param {MeasureText} measureText\n */\n function LabelAccumulator(measureText) {\n _classCallCheck(this, LabelAccumulator);\n this.measureText = measureText;\n this.current = 0;\n this.width = 0;\n this.height = 0;\n this.lines = [];\n }\n\n /**\n * Append given text to the given line.\n *\n * @param {number} l index of line to add to\n * @param {string} text string to append to line\n * @param {'bold'|'ital'|'boldital'|'mono'|'normal'} [mod='normal']\n * @private\n */\n _createClass(LabelAccumulator, [{\n key: \"_add\",\n value: function _add(l, text) {\n var mod = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"normal\";\n if (this.lines[l] === undefined) {\n this.lines[l] = {\n width: 0,\n height: 0,\n blocks: []\n };\n }\n\n // We still need to set a block for undefined and empty texts, hence return at this point\n // This is necessary because we don't know at this point if we're at the\n // start of an empty line or not.\n // To compensate, empty blocks are removed in `finalize()`.\n //\n // Empty strings should still have a height\n var tmpText = text;\n if (text === undefined || text === \"\") tmpText = \" \";\n\n // Determine width and get the font properties\n var result = this.measureText(tmpText, mod);\n var block = _Object$assign({}, _valuesInstanceProperty(result));\n block.text = text;\n block.width = result.width;\n block.mod = mod;\n if (text === undefined || text === \"\") {\n block.width = 0;\n }\n this.lines[l].blocks.push(block);\n\n // Update the line width. We need this for determining if a string goes over max width\n this.lines[l].width += block.width;\n }\n\n /**\n * Returns the width in pixels of the current line.\n *\n * @returns {number}\n */\n }, {\n key: \"curWidth\",\n value: function curWidth() {\n var line = this.lines[this.current];\n if (line === undefined) return 0;\n return line.width;\n }\n\n /**\n * Add text in block to current line\n *\n * @param {string} text\n * @param {'bold'|'ital'|'boldital'|'mono'|'normal'} [mod='normal']\n */\n }, {\n key: \"append\",\n value: function append(text) {\n var mod = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"normal\";\n this._add(this.current, text, mod);\n }\n\n /**\n * Add text in block to current line and start a new line\n *\n * @param {string} text\n * @param {'bold'|'ital'|'boldital'|'mono'|'normal'} [mod='normal']\n */\n }, {\n key: \"newLine\",\n value: function newLine(text) {\n var mod = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"normal\";\n this._add(this.current, text, mod);\n this.current++;\n }\n\n /**\n * Determine and set the heights of all the lines currently contained in this instance\n *\n * Note that width has already been set.\n *\n * @private\n */\n }, {\n key: \"determineLineHeights\",\n value: function determineLineHeights() {\n for (var k = 0; k < this.lines.length; k++) {\n var line = this.lines[k];\n\n // Looking for max height of blocks in line\n var height = 0;\n if (line.blocks !== undefined) {\n // Can happen if text contains e.g. '\\n '\n for (var l = 0; l < line.blocks.length; l++) {\n var block = line.blocks[l];\n if (height < block.height) {\n height = block.height;\n }\n }\n }\n line.height = height;\n }\n }\n\n /**\n * Determine the full size of the label text, as determined by current lines and blocks\n *\n * @private\n */\n }, {\n key: \"determineLabelSize\",\n value: function determineLabelSize() {\n var width = 0;\n var height = 0;\n for (var k = 0; k < this.lines.length; k++) {\n var line = this.lines[k];\n if (line.width > width) {\n width = line.width;\n }\n height += line.height;\n }\n this.width = width;\n this.height = height;\n }\n\n /**\n * Remove all empty blocks and empty lines we don't need\n *\n * This must be done after the width/height determination,\n * so that these are set properly for processing here.\n *\n * @returns {Array} Lines with empty blocks (and some empty lines) removed\n * @private\n */\n }, {\n key: \"removeEmptyBlocks\",\n value: function removeEmptyBlocks() {\n var tmpLines = [];\n for (var k = 0; k < this.lines.length; k++) {\n var line = this.lines[k];\n\n // Note: an empty line in between text has width zero but is still relevant to layout.\n // So we can't use width for testing empty line here\n if (line.blocks.length === 0) continue;\n\n // Discard final empty line always\n if (k === this.lines.length - 1) {\n if (line.width === 0) continue;\n }\n var tmpLine = {};\n _Object$assign(tmpLine, line);\n tmpLine.blocks = [];\n var firstEmptyBlock = void 0;\n var tmpBlocks = [];\n for (var l = 0; l < line.blocks.length; l++) {\n var block = line.blocks[l];\n if (block.width !== 0) {\n tmpBlocks.push(block);\n } else {\n if (firstEmptyBlock === undefined) {\n firstEmptyBlock = block;\n }\n }\n }\n\n // Ensure that there is *some* text present\n if (tmpBlocks.length === 0 && firstEmptyBlock !== undefined) {\n tmpBlocks.push(firstEmptyBlock);\n }\n tmpLine.blocks = tmpBlocks;\n tmpLines.push(tmpLine);\n }\n return tmpLines;\n }\n\n /**\n * Set the sizes for all lines and the whole thing.\n *\n * @returns {{width: (number|*), height: (number|*), lines: Array}}\n */\n }, {\n key: \"finalize\",\n value: function finalize() {\n //console.log(JSON.stringify(this.lines, null, 2));\n\n this.determineLineHeights();\n this.determineLabelSize();\n var tmpLines = this.removeEmptyBlocks();\n\n // Return a simple hash object for further processing.\n return {\n width: this.width,\n height: this.height,\n lines: tmpLines\n };\n }\n }]);\n return LabelAccumulator;\n}();\n\n// Hash of prepared regexp's for tags\nvar tagPattern = {\n // HTML\n \"\": //,\n \"\": //,\n \"\": //,\n \"\": /<\\/b>/,\n \"\": /<\\/i>/,\n \"\": /<\\/code>/,\n // Markdown\n \"*\": /\\*/,\n // bold\n _: /_/,\n // ital\n \"`\": /`/,\n // mono\n afterBold: /[^*]/,\n afterItal: /[^_]/,\n afterMono: /[^`]/\n};\n\n/**\n * Internal helper class for parsing the markup tags for HTML and Markdown.\n *\n * NOTE: Sequences of tabs and spaces are reduced to single space.\n * Scan usage of `this.spacing` within method\n */\nvar MarkupAccumulator = /*#__PURE__*/function () {\n /**\n * Create an instance\n *\n * @param {string} text text to parse for markup\n */\n function MarkupAccumulator(text) {\n _classCallCheck(this, MarkupAccumulator);\n this.text = text;\n this.bold = false;\n this.ital = false;\n this.mono = false;\n this.spacing = false;\n this.position = 0;\n this.buffer = \"\";\n this.modStack = [];\n this.blocks = [];\n }\n\n /**\n * Return the mod label currently on the top of the stack\n *\n * @returns {string} label of topmost mod\n * @private\n */\n _createClass(MarkupAccumulator, [{\n key: \"mod\",\n value: function mod() {\n return this.modStack.length === 0 ? \"normal\" : this.modStack[0];\n }\n\n /**\n * Return the mod label currently active\n *\n * @returns {string} label of active mod\n * @private\n */\n }, {\n key: \"modName\",\n value: function modName() {\n if (this.modStack.length === 0) return \"normal\";else if (this.modStack[0] === \"mono\") return \"mono\";else {\n if (this.bold && this.ital) {\n return \"boldital\";\n } else if (this.bold) {\n return \"bold\";\n } else if (this.ital) {\n return \"ital\";\n }\n }\n }\n\n /**\n * @private\n */\n }, {\n key: \"emitBlock\",\n value: function emitBlock() {\n if (this.spacing) {\n this.add(\" \");\n this.spacing = false;\n }\n if (this.buffer.length > 0) {\n this.blocks.push({\n text: this.buffer,\n mod: this.modName()\n });\n this.buffer = \"\";\n }\n }\n\n /**\n * Output text to buffer\n *\n * @param {string} text text to add\n * @private\n */\n }, {\n key: \"add\",\n value: function add(text) {\n if (text === \" \") {\n this.spacing = true;\n }\n if (this.spacing) {\n this.buffer += \" \";\n this.spacing = false;\n }\n if (text != \" \") {\n this.buffer += text;\n }\n }\n\n /**\n * Handle parsing of whitespace\n *\n * @param {string} ch the character to check\n * @returns {boolean} true if the character was processed as whitespace, false otherwise\n */\n }, {\n key: \"parseWS\",\n value: function parseWS(ch) {\n if (/[ \\t]/.test(ch)) {\n if (!this.mono) {\n this.spacing = true;\n } else {\n this.add(ch);\n }\n return true;\n }\n return false;\n }\n\n /**\n * @param {string} tagName label for block type to set\n * @private\n */\n }, {\n key: \"setTag\",\n value: function setTag(tagName) {\n this.emitBlock();\n this[tagName] = true;\n this.modStack.unshift(tagName);\n }\n\n /**\n * @param {string} tagName label for block type to unset\n * @private\n */\n }, {\n key: \"unsetTag\",\n value: function unsetTag(tagName) {\n this.emitBlock();\n this[tagName] = false;\n this.modStack.shift();\n }\n\n /**\n * @param {string} tagName label for block type we are currently processing\n * @param {string|RegExp} tag string to match in text\n * @returns {boolean} true if the tag was processed, false otherwise\n */\n }, {\n key: \"parseStartTag\",\n value: function parseStartTag(tagName, tag) {\n // Note: if 'mono' passed as tagName, there is a double check here. This is OK\n if (!this.mono && !this[tagName] && this.match(tag)) {\n this.setTag(tagName);\n return true;\n }\n return false;\n }\n\n /**\n * @param {string|RegExp} tag\n * @param {number} [advance=true] if set, advance current position in text\n * @returns {boolean} true if match at given position, false otherwise\n * @private\n */\n }, {\n key: \"match\",\n value: function match(tag) {\n var advance = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var _this$prepareRegExp = this.prepareRegExp(tag),\n _this$prepareRegExp2 = _slicedToArray(_this$prepareRegExp, 2),\n regExp = _this$prepareRegExp2[0],\n length = _this$prepareRegExp2[1];\n var matched = regExp.test(this.text.substr(this.position, length));\n if (matched && advance) {\n this.position += length - 1;\n }\n return matched;\n }\n\n /**\n * @param {string} tagName label for block type we are currently processing\n * @param {string|RegExp} tag string to match in text\n * @param {RegExp} [nextTag] regular expression to match for characters *following* the current tag\n * @returns {boolean} true if the tag was processed, false otherwise\n */\n }, {\n key: \"parseEndTag\",\n value: function parseEndTag(tagName, tag, nextTag) {\n var checkTag = this.mod() === tagName;\n if (tagName === \"mono\") {\n // special handling for 'mono'\n checkTag = checkTag && this.mono;\n } else {\n checkTag = checkTag && !this.mono;\n }\n if (checkTag && this.match(tag)) {\n if (nextTag !== undefined) {\n // Purpose of the following match is to prevent a direct unset/set of a given tag\n // E.g. '*bold **still bold*' => '*bold still bold*'\n if (this.position === this.text.length - 1 || this.match(nextTag, false)) {\n this.unsetTag(tagName);\n }\n } else {\n this.unsetTag(tagName);\n }\n return true;\n }\n return false;\n }\n\n /**\n * @param {string|RegExp} tag string to match in text\n * @param {value} value string to replace tag with, if found at current position\n * @returns {boolean} true if the tag was processed, false otherwise\n */\n }, {\n key: \"replace\",\n value: function replace(tag, value) {\n if (this.match(tag)) {\n this.add(value);\n this.position += length - 1;\n return true;\n }\n return false;\n }\n\n /**\n * Create a regular expression for the tag if it isn't already one.\n *\n * The return value is an array `[RegExp, number]`, with exactly two value, where:\n * - RegExp is the regular expression to use\n * - number is the lenth of the input string to match\n *\n * @param {string|RegExp} tag string to match in text\n * @returns {Array} regular expression to use and length of input string to match\n * @private\n */\n }, {\n key: \"prepareRegExp\",\n value: function prepareRegExp(tag) {\n var length;\n var regExp;\n if (tag instanceof RegExp) {\n regExp = tag;\n length = 1; // ASSUMPTION: regexp only tests one character\n } else {\n // use prepared regexp if present\n var prepared = tagPattern[tag];\n if (prepared !== undefined) {\n regExp = prepared;\n } else {\n regExp = new RegExp(tag);\n }\n length = tag.length;\n }\n return [regExp, length];\n }\n }]);\n return MarkupAccumulator;\n}();\n/**\n * Helper class for Label which explodes the label text into lines and blocks within lines\n *\n * @private\n */\nvar LabelSplitter = /*#__PURE__*/function () {\n /**\n * @param {CanvasRenderingContext2D} ctx Canvas rendering context\n * @param {Label} parent reference to the Label instance using current instance\n * @param {boolean} selected\n * @param {boolean} hover\n */\n function LabelSplitter(ctx, parent, selected, hover) {\n var _this = this;\n _classCallCheck(this, LabelSplitter);\n this.ctx = ctx;\n this.parent = parent;\n this.selected = selected;\n this.hover = hover;\n\n /**\n * Callback to determine text width; passed to LabelAccumulator instance\n *\n * @param {string} text string to determine width of\n * @param {string} mod font type to use for this text\n * @returns {object} { width, values} width in pixels and font attributes\n */\n var textWidth = function textWidth(text, mod) {\n if (text === undefined) return 0;\n\n // TODO: This can be done more efficiently with caching\n // This will set the ctx.font correctly, depending on selected/hover and mod - so that ctx.measureText() will be accurate.\n var values = _this.parent.getFormattingValues(ctx, selected, hover, mod);\n var width = 0;\n if (text !== \"\") {\n var measure = _this.ctx.measureText(text);\n width = measure.width;\n }\n return {\n width: width,\n values: values\n };\n };\n this.lines = new LabelAccumulator(textWidth);\n }\n\n /**\n * Split passed text of a label into lines and blocks.\n *\n * # NOTE\n *\n * The handling of spacing is option dependent:\n *\n * - if `font.multi : false`, all spaces are retained\n * - if `font.multi : true`, every sequence of spaces is compressed to a single space\n *\n * This might not be the best way to do it, but this is as it has been working till now.\n * In order not to break existing functionality, for the time being this behaviour will\n * be retained in any code changes.\n *\n * @param {string} text text to split\n * @returns {Array}\n */\n _createClass(LabelSplitter, [{\n key: \"process\",\n value: function process(text) {\n if (!isValidLabel(text)) {\n return this.lines.finalize();\n }\n var font = this.parent.fontOptions;\n\n // Normalize the end-of-line's to a single representation - order important\n text = text.replace(/\\r\\n/g, \"\\n\"); // Dos EOL's\n text = text.replace(/\\r/g, \"\\n\"); // Mac EOL's\n\n // Note that at this point, there can be no \\r's in the text.\n // This is used later on splitStringIntoLines() to split multifont texts.\n\n var nlLines = String(text).split(\"\\n\");\n var lineCount = nlLines.length;\n if (font.multi) {\n // Multi-font case: styling tags active\n for (var i = 0; i < lineCount; i++) {\n var blocks = this.splitBlocks(nlLines[i], font.multi);\n // Post: Sequences of tabs and spaces are reduced to single space\n\n if (blocks === undefined) continue;\n if (blocks.length === 0) {\n this.lines.newLine(\"\");\n continue;\n }\n if (font.maxWdt > 0) {\n // widthConstraint.maximum defined\n //console.log('Running widthConstraint multi, max: ' + this.fontOptions.maxWdt);\n for (var j = 0; j < blocks.length; j++) {\n var mod = blocks[j].mod;\n var _text = blocks[j].text;\n this.splitStringIntoLines(_text, mod, true);\n }\n } else {\n // widthConstraint.maximum NOT defined\n for (var _j = 0; _j < blocks.length; _j++) {\n var _mod = blocks[_j].mod;\n var _text2 = blocks[_j].text;\n this.lines.append(_text2, _mod);\n }\n }\n this.lines.newLine();\n }\n } else {\n // Single-font case\n if (font.maxWdt > 0) {\n // widthConstraint.maximum defined\n // console.log('Running widthConstraint normal, max: ' + this.fontOptions.maxWdt);\n for (var _i = 0; _i < lineCount; _i++) {\n this.splitStringIntoLines(nlLines[_i]);\n }\n } else {\n // widthConstraint.maximum NOT defined\n for (var _i2 = 0; _i2 < lineCount; _i2++) {\n this.lines.newLine(nlLines[_i2]);\n }\n }\n }\n return this.lines.finalize();\n }\n\n /**\n * normalize the markup system\n *\n * @param {boolean|'md'|'markdown'|'html'} markupSystem\n * @returns {string}\n */\n }, {\n key: \"decodeMarkupSystem\",\n value: function decodeMarkupSystem(markupSystem) {\n var system = \"none\";\n if (markupSystem === \"markdown\" || markupSystem === \"md\") {\n system = \"markdown\";\n } else if (markupSystem === true || markupSystem === \"html\") {\n system = \"html\";\n }\n return system;\n }\n\n /**\n *\n * @param {string} text\n * @returns {Array}\n */\n }, {\n key: \"splitHtmlBlocks\",\n value: function splitHtmlBlocks(text) {\n var s = new MarkupAccumulator(text);\n var parseEntities = function parseEntities(ch) {\n if (/&/.test(ch)) {\n var parsed = s.replace(s.text, \"<\", \"<\") || s.replace(s.text, \"&\", \"&\");\n if (!parsed) {\n s.add(\"&\");\n }\n return true;\n }\n return false;\n };\n while (s.position < s.text.length) {\n var ch = s.text.charAt(s.position);\n var parsed = s.parseWS(ch) || /\") || s.parseStartTag(\"ital\", \"\") || s.parseStartTag(\"mono\", \"\") || s.parseEndTag(\"bold\", \"\") || s.parseEndTag(\"ital\", \"\") || s.parseEndTag(\"mono\", \"\")) || parseEntities(ch);\n if (!parsed) {\n s.add(ch);\n }\n s.position++;\n }\n s.emitBlock();\n return s.blocks;\n }\n\n /**\n *\n * @param {string} text\n * @returns {Array}\n */\n }, {\n key: \"splitMarkdownBlocks\",\n value: function splitMarkdownBlocks(text) {\n var _this2 = this;\n var s = new MarkupAccumulator(text);\n var beginable = true;\n var parseOverride = function parseOverride(ch) {\n if (/\\\\/.test(ch)) {\n if (s.position < _this2.text.length + 1) {\n s.position++;\n ch = _this2.text.charAt(s.position);\n if (/ \\t/.test(ch)) {\n s.spacing = true;\n } else {\n s.add(ch);\n beginable = false;\n }\n }\n return true;\n }\n return false;\n };\n while (s.position < s.text.length) {\n var ch = s.text.charAt(s.position);\n var parsed = s.parseWS(ch) || parseOverride(ch) || (beginable || s.spacing) && (s.parseStartTag(\"bold\", \"*\") || s.parseStartTag(\"ital\", \"_\") || s.parseStartTag(\"mono\", \"`\")) || s.parseEndTag(\"bold\", \"*\", \"afterBold\") || s.parseEndTag(\"ital\", \"_\", \"afterItal\") || s.parseEndTag(\"mono\", \"`\", \"afterMono\");\n if (!parsed) {\n s.add(ch);\n beginable = false;\n }\n s.position++;\n }\n s.emitBlock();\n return s.blocks;\n }\n\n /**\n * Explodes a piece of text into single-font blocks using a given markup\n *\n * @param {string} text\n * @param {boolean|'md'|'markdown'|'html'} markupSystem\n * @returns {Array.<{text: string, mod: string}>}\n * @private\n */\n }, {\n key: \"splitBlocks\",\n value: function splitBlocks(text, markupSystem) {\n var system = this.decodeMarkupSystem(markupSystem);\n if (system === \"none\") {\n return [{\n text: text,\n mod: \"normal\"\n }];\n } else if (system === \"markdown\") {\n return this.splitMarkdownBlocks(text);\n } else if (system === \"html\") {\n return this.splitHtmlBlocks(text);\n }\n }\n\n /**\n * @param {string} text\n * @returns {boolean} true if text length over the current max with\n * @private\n */\n }, {\n key: \"overMaxWidth\",\n value: function overMaxWidth(text) {\n var width = this.ctx.measureText(text).width;\n return this.lines.curWidth() + width > this.parent.fontOptions.maxWdt;\n }\n\n /**\n * Determine the longest part of the sentence which still fits in the\n * current max width.\n *\n * @param {Array} words Array of strings signifying a text lines\n * @returns {number} index of first item in string making string go over max\n * @private\n */\n }, {\n key: \"getLongestFit\",\n value: function getLongestFit(words) {\n var text = \"\";\n var w = 0;\n while (w < words.length) {\n var pre = text === \"\" ? \"\" : \" \";\n var newText = text + pre + words[w];\n if (this.overMaxWidth(newText)) break;\n text = newText;\n w++;\n }\n return w;\n }\n\n /**\n * Determine the longest part of the string which still fits in the\n * current max width.\n *\n * @param {Array} words Array of strings signifying a text lines\n * @returns {number} index of first item in string making string go over max\n */\n }, {\n key: \"getLongestFitWord\",\n value: function getLongestFitWord(words) {\n var w = 0;\n while (w < words.length) {\n if (this.overMaxWidth(_sliceInstanceProperty(words).call(words, 0, w))) break;\n w++;\n }\n return w;\n }\n\n /**\n * Split the passed text into lines, according to width constraint (if any).\n *\n * The method assumes that the input string is a single line, i.e. without lines break.\n *\n * This method retains spaces, if still present (case `font.multi: false`).\n * A space which falls on an internal line break, will be replaced by a newline.\n * There is no special handling of tabs; these go along with the flow.\n *\n * @param {string} str\n * @param {string} [mod='normal']\n * @param {boolean} [appendLast=false]\n * @private\n */\n }, {\n key: \"splitStringIntoLines\",\n value: function splitStringIntoLines(str) {\n var mod = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"normal\";\n var appendLast = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n // Set the canvas context font, based upon the current selected/hover state\n // and the provided mod, so the text measurement performed by getLongestFit\n // will be accurate - and not just use the font of whoever last used the canvas.\n this.parent.getFormattingValues(this.ctx, this.selected, this.hover, mod);\n\n // Still-present spaces are relevant, retain them\n str = str.replace(/^( +)/g, \"$1\\r\");\n str = str.replace(/([^\\r][^ ]*)( +)/g, \"$1\\r$2\\r\");\n var words = str.split(\"\\r\");\n while (words.length > 0) {\n var w = this.getLongestFit(words);\n if (w === 0) {\n // Special case: the first word is already larger than the max width.\n var word = words[0];\n\n // Break the word to the largest part that fits the line\n var x = this.getLongestFitWord(word);\n this.lines.newLine(_sliceInstanceProperty(word).call(word, 0, x), mod);\n\n // Adjust the word, so that the rest will be done next iteration\n words[0] = _sliceInstanceProperty(word).call(word, x);\n } else {\n // skip any space that is replaced by a newline\n var newW = w;\n if (words[w - 1] === \" \") {\n w--;\n } else if (words[newW] === \" \") {\n newW++;\n }\n var text = _sliceInstanceProperty(words).call(words, 0, w).join(\"\");\n if (w == words.length && appendLast) {\n this.lines.append(text, mod);\n } else {\n this.lines.newLine(text, mod);\n }\n\n // Adjust the word, so that the rest will be done next iteration\n words = _sliceInstanceProperty(words).call(words, newW);\n }\n }\n }\n }]);\n return LabelSplitter;\n}();\n\n/**\n * List of special styles for multi-fonts\n *\n * @private\n */\nvar multiFontStyle = [\"bold\", \"ital\", \"boldital\", \"mono\"];\n\n/**\n * A Label to be used for Nodes or Edges.\n */\nvar Label = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {object} options\n * @param {boolean} [edgelabel=false]\n */\n function Label(body, options) {\n var edgelabel = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n _classCallCheck(this, Label);\n this.body = body;\n this.pointToSelf = false;\n this.baseSize = undefined;\n this.fontOptions = {}; // instance variable containing the *instance-local* font options\n this.setOptions(options);\n this.size = {\n top: 0,\n left: 0,\n width: 0,\n height: 0,\n yLine: 0\n };\n this.isEdgeLabel = edgelabel;\n }\n\n /**\n * @param {object} options the options of the parent Node-instance\n */\n _createClass(Label, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n this.elementOptions = options; // Reference to the options of the parent Node-instance\n\n this.initFontOptions(options.font);\n if (isValidLabel(options.label)) {\n this.labelDirty = true;\n } else {\n // Bad label! Change the option value to prevent bad stuff happening\n options.label = undefined;\n }\n if (options.font !== undefined && options.font !== null) {\n // font options can be deleted at various levels\n if (typeof options.font === \"string\") {\n this.baseSize = this.fontOptions.size;\n } else if (_typeof$1(options.font) === \"object\") {\n var size = options.font.size;\n if (size !== undefined) {\n this.baseSize = size;\n }\n }\n }\n }\n\n /**\n * Init the font Options structure.\n *\n * Member fontOptions serves as an accumulator for the current font options.\n * As such, it needs to be completely separated from the node options.\n *\n * @param {object} newFontOptions the new font options to process\n * @private\n */\n }, {\n key: \"initFontOptions\",\n value: function initFontOptions(newFontOptions) {\n var _this = this;\n // Prepare the multi-font option objects.\n // These will be filled in propagateFonts(), if required\n forEach$5(multiFontStyle, function (style) {\n _this.fontOptions[style] = {};\n });\n\n // Handle shorthand option, if present\n if (Label.parseFontString(this.fontOptions, newFontOptions)) {\n this.fontOptions.vadjust = 0;\n return;\n }\n\n // Copy over the non-multifont options, if specified\n forEach$5(newFontOptions, function (prop, n) {\n if (prop !== undefined && prop !== null && _typeof$1(prop) !== \"object\") {\n _this.fontOptions[n] = prop;\n }\n });\n }\n\n /**\n * If in-variable is a string, parse it as a font specifier.\n *\n * Note that following is not done here and have to be done after the call:\n * - Not all font options are set (vadjust, mod)\n *\n * @param {object} outOptions out-parameter, object in which to store the parse results (if any)\n * @param {object} inOptions font options to parse\n * @returns {boolean} true if font parsed as string, false otherwise\n * @static\n */\n }, {\n key: \"constrain\",\n value:\n /**\n * Set the width and height constraints based on 'nearest' value\n *\n * @param {Array} pile array of option objects to consider\n * @returns {object} the actual constraint values to use\n * @private\n */\n function constrain(pile) {\n // NOTE: constrainWidth and constrainHeight never set!\n // NOTE: for edge labels, only 'maxWdt' set\n // Node labels can set all the fields\n var fontOptions = {\n constrainWidth: false,\n maxWdt: -1,\n minWdt: -1,\n constrainHeight: false,\n minHgt: -1,\n valign: \"middle\"\n };\n var widthConstraint = topMost(pile, \"widthConstraint\");\n if (typeof widthConstraint === \"number\") {\n fontOptions.maxWdt = Number(widthConstraint);\n fontOptions.minWdt = Number(widthConstraint);\n } else if (_typeof$1(widthConstraint) === \"object\") {\n var widthConstraintMaximum = topMost(pile, [\"widthConstraint\", \"maximum\"]);\n if (typeof widthConstraintMaximum === \"number\") {\n fontOptions.maxWdt = Number(widthConstraintMaximum);\n }\n var widthConstraintMinimum = topMost(pile, [\"widthConstraint\", \"minimum\"]);\n if (typeof widthConstraintMinimum === \"number\") {\n fontOptions.minWdt = Number(widthConstraintMinimum);\n }\n }\n var heightConstraint = topMost(pile, \"heightConstraint\");\n if (typeof heightConstraint === \"number\") {\n fontOptions.minHgt = Number(heightConstraint);\n } else if (_typeof$1(heightConstraint) === \"object\") {\n var heightConstraintMinimum = topMost(pile, [\"heightConstraint\", \"minimum\"]);\n if (typeof heightConstraintMinimum === \"number\") {\n fontOptions.minHgt = Number(heightConstraintMinimum);\n }\n var heightConstraintValign = topMost(pile, [\"heightConstraint\", \"valign\"]);\n if (typeof heightConstraintValign === \"string\") {\n if (heightConstraintValign === \"top\" || heightConstraintValign === \"bottom\") {\n fontOptions.valign = heightConstraintValign;\n }\n }\n }\n return fontOptions;\n }\n\n /**\n * Set options and update internal state\n *\n * @param {object} options options to set\n * @param {Array} pile array of option objects to consider for option 'chosen'\n */\n }, {\n key: \"update\",\n value: function update(options, pile) {\n this.setOptions(options, true);\n this.propagateFonts(pile);\n deepExtend(this.fontOptions, this.constrain(pile));\n this.fontOptions.chooser = choosify(\"label\", pile);\n }\n\n /**\n * When margins are set in an element, adjust sizes is called to remove them\n * from the width/height constraints. This must be done prior to label sizing.\n *\n * @param {{top: number, right: number, bottom: number, left: number}} margins\n */\n }, {\n key: \"adjustSizes\",\n value: function adjustSizes(margins) {\n var widthBias = margins ? margins.right + margins.left : 0;\n if (this.fontOptions.constrainWidth) {\n this.fontOptions.maxWdt -= widthBias;\n this.fontOptions.minWdt -= widthBias;\n }\n var heightBias = margins ? margins.top + margins.bottom : 0;\n if (this.fontOptions.constrainHeight) {\n this.fontOptions.minHgt -= heightBias;\n }\n }\n\n /////////////////////////////////////////////////////////\n // Methods for handling options piles\n // Eventually, these will be moved to a separate class\n /////////////////////////////////////////////////////////\n\n /**\n * Add the font members of the passed list of option objects to the pile.\n *\n * @param {Pile} dstPile pile of option objects add to\n * @param {Pile} srcPile pile of option objects to take font options from\n * @private\n */\n }, {\n key: \"addFontOptionsToPile\",\n value: function addFontOptionsToPile(dstPile, srcPile) {\n for (var i = 0; i < srcPile.length; ++i) {\n this.addFontToPile(dstPile, srcPile[i]);\n }\n }\n\n /**\n * Add given font option object to the list of objects (the 'pile') to consider for determining\n * multi-font option values.\n *\n * @param {Pile} pile pile of option objects to use\n * @param {object} options instance to add to pile\n * @private\n */\n }, {\n key: \"addFontToPile\",\n value: function addFontToPile(pile, options) {\n if (options === undefined) return;\n if (options.font === undefined || options.font === null) return;\n var item = options.font;\n pile.push(item);\n }\n\n /**\n * Collect all own-property values from the font pile that aren't multi-font option objectss.\n *\n * @param {Pile} pile pile of option objects to use\n * @returns {object} object with all current own basic font properties\n * @private\n */\n }, {\n key: \"getBasicOptions\",\n value: function getBasicOptions(pile) {\n var ret = {};\n\n // Scans the whole pile to get all options present\n for (var n = 0; n < pile.length; ++n) {\n var fontOptions = pile[n];\n\n // Convert shorthand if necessary\n var tmpShorthand = {};\n if (Label.parseFontString(tmpShorthand, fontOptions)) {\n fontOptions = tmpShorthand;\n }\n forEach$5(fontOptions, function (opt, name) {\n if (opt === undefined) return; // multi-font option need not be present\n if (Object.prototype.hasOwnProperty.call(ret, name)) return; // Keep first value we encounter\n\n if (_indexOfInstanceProperty(multiFontStyle).call(multiFontStyle, name) !== -1) {\n // Skip multi-font properties but we do need the structure\n ret[name] = {};\n } else {\n ret[name] = opt;\n }\n });\n }\n return ret;\n }\n\n /**\n * Return the value for given option for the given multi-font.\n *\n * All available option objects are trawled in the set order to construct the option values.\n *\n * ---------------------------------------------------------------------\n * ## Traversal of pile for multi-fonts\n *\n * The determination of multi-font option values is a special case, because any values not\n * present in the multi-font options should by definition be taken from the main font options,\n * i.e. from the current 'parent' object of the multi-font option.\n *\n * ### Search order for multi-fonts\n *\n * 'bold' used as example:\n *\n * - search in option group 'bold' in local properties\n * - search in main font option group in local properties\n *\n * ---------------------------------------------------------------------\n *\n * @param {Pile} pile pile of option objects to use\n * @param {MultiFontStyle} multiName sub path for the multi-font\n * @param {string} option the option to search for, for the given multi-font\n * @returns {string|number} the value for the given option\n * @private\n */\n }, {\n key: \"getFontOption\",\n value: function getFontOption(pile, multiName, option) {\n var multiFont;\n\n // Search multi font in local properties\n for (var n = 0; n < pile.length; ++n) {\n var fontOptions = pile[n];\n if (Object.prototype.hasOwnProperty.call(fontOptions, multiName)) {\n multiFont = fontOptions[multiName];\n if (multiFont === undefined || multiFont === null) continue;\n\n // Convert shorthand if necessary\n // TODO: inefficient to do this conversion every time; find a better way.\n var tmpShorthand = {};\n if (Label.parseFontString(tmpShorthand, multiFont)) {\n multiFont = tmpShorthand;\n }\n if (Object.prototype.hasOwnProperty.call(multiFont, option)) {\n return multiFont[option];\n }\n }\n }\n\n // Option is not mentioned in the multi font options; take it from the parent font options.\n // These have already been converted with getBasicOptions(), so use the converted values.\n if (Object.prototype.hasOwnProperty.call(this.fontOptions, option)) {\n return this.fontOptions[option];\n }\n\n // A value **must** be found; you should never get here.\n throw new Error(\"Did not find value for multi-font for property: '\" + option + \"'\");\n }\n\n /**\n * Return all options values for the given multi-font.\n *\n * All available option objects are trawled in the set order to construct the option values.\n *\n * @param {Pile} pile pile of option objects to use\n * @param {MultiFontStyle} multiName sub path for the mod-font\n * @returns {MultiFontOptions}\n * @private\n */\n }, {\n key: \"getFontOptions\",\n value: function getFontOptions(pile, multiName) {\n var result = {};\n var optionNames = [\"color\", \"size\", \"face\", \"mod\", \"vadjust\"]; // List of allowed options per multi-font\n\n for (var i = 0; i < optionNames.length; ++i) {\n var mod = optionNames[i];\n result[mod] = this.getFontOption(pile, multiName, mod);\n }\n return result;\n }\n\n /////////////////////////////////////////////////////////\n // End methods for handling options piles\n /////////////////////////////////////////////////////////\n\n /**\n * Collapse the font options for the multi-font to single objects, from\n * the chain of option objects passed (the 'pile').\n *\n * @param {Pile} pile sequence of option objects to consider.\n * First item in list assumed to be the newly set options.\n */\n }, {\n key: \"propagateFonts\",\n value: function propagateFonts(pile) {\n var _this2 = this;\n var fontPile = []; // sequence of font objects to consider, order important\n\n // Note that this.elementOptions is not used here.\n this.addFontOptionsToPile(fontPile, pile);\n this.fontOptions = this.getBasicOptions(fontPile);\n\n // We set multifont values even if multi === false, for consistency (things break otherwise)\n var _loop = function _loop() {\n var mod = multiFontStyle[i];\n var modOptions = _this2.fontOptions[mod];\n var tmpMultiFontOptions = _this2.getFontOptions(fontPile, mod);\n\n // Copy over found values\n forEach$5(tmpMultiFontOptions, function (option, n) {\n modOptions[n] = option;\n });\n modOptions.size = Number(modOptions.size);\n modOptions.vadjust = Number(modOptions.vadjust);\n };\n for (var i = 0; i < multiFontStyle.length; ++i) {\n _loop();\n }\n }\n\n /**\n * Main function. This is called from anything that wants to draw a label.\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x\n * @param {number} y\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {string} [baseline='middle']\n */\n }, {\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover) {\n var baseline = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : \"middle\";\n // if no label, return\n if (this.elementOptions.label === undefined) return;\n\n // check if we have to render the label\n var viewFontSize = this.fontOptions.size * this.body.view.scale;\n if (this.elementOptions.label && viewFontSize < this.elementOptions.scaling.label.drawThreshold - 1) return;\n\n // This ensures that there will not be HUGE letters on screen\n // by setting an upper limit on the visible text size (regardless of zoomLevel)\n if (viewFontSize >= this.elementOptions.scaling.label.maxVisible) {\n viewFontSize = Number(this.elementOptions.scaling.label.maxVisible) / this.body.view.scale;\n }\n\n // update the size cache if required\n this.calculateLabelSize(ctx, selected, hover, x, y, baseline);\n this._drawBackground(ctx);\n this._drawText(ctx, x, this.size.yLine, baseline, viewFontSize);\n }\n\n /**\n * Draws the label background\n *\n * @param {CanvasRenderingContext2D} ctx\n * @private\n */\n }, {\n key: \"_drawBackground\",\n value: function _drawBackground(ctx) {\n if (this.fontOptions.background !== undefined && this.fontOptions.background !== \"none\") {\n ctx.fillStyle = this.fontOptions.background;\n var size = this.getSize();\n ctx.fillRect(size.left, size.top, size.width, size.height);\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x\n * @param {number} y\n * @param {string} [baseline='middle']\n * @param {number} viewFontSize\n * @private\n */\n }, {\n key: \"_drawText\",\n value: function _drawText(ctx, x, y) {\n var baseline = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : \"middle\";\n var viewFontSize = arguments.length > 4 ? arguments[4] : undefined;\n var _this$_setAlignment = this._setAlignment(ctx, x, y, baseline);\n var _this$_setAlignment2 = _slicedToArray(_this$_setAlignment, 2);\n x = _this$_setAlignment2[0];\n y = _this$_setAlignment2[1];\n ctx.textAlign = \"left\";\n x = x - this.size.width / 2; // Shift label 1/2-distance to the left\n if (this.fontOptions.valign && this.size.height > this.size.labelHeight) {\n if (this.fontOptions.valign === \"top\") {\n y -= (this.size.height - this.size.labelHeight) / 2;\n }\n if (this.fontOptions.valign === \"bottom\") {\n y += (this.size.height - this.size.labelHeight) / 2;\n }\n }\n\n // draw the text\n for (var i = 0; i < this.lineCount; i++) {\n var line = this.lines[i];\n if (line && line.blocks) {\n var width = 0;\n if (this.isEdgeLabel || this.fontOptions.align === \"center\") {\n width += (this.size.width - line.width) / 2;\n } else if (this.fontOptions.align === \"right\") {\n width += this.size.width - line.width;\n }\n for (var j = 0; j < line.blocks.length; j++) {\n var block = line.blocks[j];\n ctx.font = block.font;\n var _this$_getColor = this._getColor(block.color, viewFontSize, block.strokeColor),\n _this$_getColor2 = _slicedToArray(_this$_getColor, 2),\n fontColor = _this$_getColor2[0],\n strokeColor = _this$_getColor2[1];\n if (block.strokeWidth > 0) {\n ctx.lineWidth = block.strokeWidth;\n ctx.strokeStyle = strokeColor;\n ctx.lineJoin = \"round\";\n }\n ctx.fillStyle = fontColor;\n if (block.strokeWidth > 0) {\n ctx.strokeText(block.text, x + width, y + block.vadjust);\n }\n ctx.fillText(block.text, x + width, y + block.vadjust);\n width += block.width;\n }\n y += line.height;\n }\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x\n * @param {number} y\n * @param {string} baseline\n * @returns {Array.}\n * @private\n */\n }, {\n key: \"_setAlignment\",\n value: function _setAlignment(ctx, x, y, baseline) {\n // check for label alignment (for edges)\n // TODO: make alignment for nodes\n if (this.isEdgeLabel && this.fontOptions.align !== \"horizontal\" && this.pointToSelf === false) {\n x = 0;\n y = 0;\n var lineMargin = 2;\n if (this.fontOptions.align === \"top\") {\n ctx.textBaseline = \"alphabetic\";\n y -= 2 * lineMargin; // distance from edge, required because we use alphabetic. Alphabetic has less difference between browsers\n } else if (this.fontOptions.align === \"bottom\") {\n ctx.textBaseline = \"hanging\";\n y += 2 * lineMargin; // distance from edge, required because we use hanging. Hanging has less difference between browsers\n } else {\n ctx.textBaseline = \"middle\";\n }\n } else {\n ctx.textBaseline = baseline;\n }\n return [x, y];\n }\n\n /**\n * fade in when relative scale is between threshold and threshold - 1.\n * If the relative scale would be smaller than threshold -1 the draw function would have returned before coming here.\n *\n * @param {string} color The font color to use\n * @param {number} viewFontSize\n * @param {string} initialStrokeColor\n * @returns {Array.} An array containing the font color and stroke color\n * @private\n */\n }, {\n key: \"_getColor\",\n value: function _getColor(color, viewFontSize, initialStrokeColor) {\n var fontColor = color || \"#000000\";\n var strokeColor = initialStrokeColor || \"#ffffff\";\n if (viewFontSize <= this.elementOptions.scaling.label.drawThreshold) {\n var opacity = Math.max(0, Math.min(1, 1 - (this.elementOptions.scaling.label.drawThreshold - viewFontSize)));\n fontColor = overrideOpacity(fontColor, opacity);\n strokeColor = overrideOpacity(strokeColor, opacity);\n }\n return [fontColor, strokeColor];\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n * @returns {{width: number, height: number}}\n */\n }, {\n key: \"getTextSize\",\n value: function getTextSize(ctx) {\n var selected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var hover = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n this._processLabel(ctx, selected, hover);\n return {\n width: this.size.width,\n height: this.size.height,\n lineCount: this.lineCount\n };\n }\n\n /**\n * Get the current dimensions of the label\n *\n * @returns {rect}\n */\n }, {\n key: \"getSize\",\n value: function getSize() {\n var lineMargin = 2;\n var x = this.size.left; // default values which might be overridden below\n var y = this.size.top - 0.5 * lineMargin; // idem\n\n if (this.isEdgeLabel) {\n var x2 = -this.size.width * 0.5;\n switch (this.fontOptions.align) {\n case \"middle\":\n x = x2;\n y = -this.size.height * 0.5;\n break;\n case \"top\":\n x = x2;\n y = -(this.size.height + lineMargin);\n break;\n case \"bottom\":\n x = x2;\n y = lineMargin;\n break;\n }\n }\n var ret = {\n left: x,\n top: y,\n width: this.size.width,\n height: this.size.height\n };\n return ret;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {number} [x=0]\n * @param {number} [y=0]\n * @param {'middle'|'hanging'} [baseline='middle']\n */\n }, {\n key: \"calculateLabelSize\",\n value: function calculateLabelSize(ctx, selected, hover) {\n var x = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;\n var y = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;\n var baseline = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : \"middle\";\n this._processLabel(ctx, selected, hover);\n this.size.left = x - this.size.width * 0.5;\n this.size.top = y - this.size.height * 0.5;\n this.size.yLine = y + (1 - this.lineCount) * 0.5 * this.fontOptions.size;\n if (baseline === \"hanging\") {\n this.size.top += 0.5 * this.fontOptions.size;\n this.size.top += 4; // distance from node, required because we use hanging. Hanging has less difference between browsers\n this.size.yLine += 4; // distance from node\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {string} mod\n * @returns {{color, size, face, mod, vadjust, strokeWidth: *, strokeColor: (*|string|allOptions.edges.font.strokeColor|{string}|allOptions.nodes.font.strokeColor|Array)}}\n */\n }, {\n key: \"getFormattingValues\",\n value: function getFormattingValues(ctx, selected, hover, mod) {\n var getValue = function getValue(fontOptions, mod, option) {\n if (mod === \"normal\") {\n if (option === \"mod\") return \"\";\n return fontOptions[option];\n }\n if (fontOptions[mod][option] !== undefined) {\n // Grumbl leaving out test on undefined equals false for \"\"\n return fontOptions[mod][option];\n } else {\n // Take from parent font option\n return fontOptions[option];\n }\n };\n var values = {\n color: getValue(this.fontOptions, mod, \"color\"),\n size: getValue(this.fontOptions, mod, \"size\"),\n face: getValue(this.fontOptions, mod, \"face\"),\n mod: getValue(this.fontOptions, mod, \"mod\"),\n vadjust: getValue(this.fontOptions, mod, \"vadjust\"),\n strokeWidth: this.fontOptions.strokeWidth,\n strokeColor: this.fontOptions.strokeColor\n };\n if (selected || hover) {\n if (mod === \"normal\" && this.fontOptions.chooser === true && this.elementOptions.labelHighlightBold) {\n values.mod = \"bold\";\n } else {\n if (typeof this.fontOptions.chooser === \"function\") {\n this.fontOptions.chooser(values, this.elementOptions.id, selected, hover);\n }\n }\n }\n var fontString = \"\";\n if (values.mod !== undefined && values.mod !== \"\") {\n // safeguard for undefined - this happened\n fontString += values.mod + \" \";\n }\n fontString += values.size + \"px \" + values.face;\n ctx.font = fontString.replace(/\"/g, \"\");\n values.font = ctx.font;\n values.height = values.size;\n return values;\n }\n\n /**\n *\n * @param {boolean} selected\n * @param {boolean} hover\n * @returns {boolean}\n */\n }, {\n key: \"differentState\",\n value: function differentState(selected, hover) {\n return selected !== this.selectedState || hover !== this.hoverState;\n }\n\n /**\n * This explodes the passed text into lines and determines the width, height and number of lines.\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {string} inText the text to explode\n * @returns {{width, height, lines}|*}\n * @private\n */\n }, {\n key: \"_processLabelText\",\n value: function _processLabelText(ctx, selected, hover, inText) {\n var splitter = new LabelSplitter(ctx, this, selected, hover);\n return splitter.process(inText);\n }\n\n /**\n * This explodes the label string into lines and sets the width, height and number of lines.\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n * @private\n */\n }, {\n key: \"_processLabel\",\n value: function _processLabel(ctx, selected, hover) {\n if (this.labelDirty === false && !this.differentState(selected, hover)) return;\n var state = this._processLabelText(ctx, selected, hover, this.elementOptions.label);\n if (this.fontOptions.minWdt > 0 && state.width < this.fontOptions.minWdt) {\n state.width = this.fontOptions.minWdt;\n }\n this.size.labelHeight = state.height;\n if (this.fontOptions.minHgt > 0 && state.height < this.fontOptions.minHgt) {\n state.height = this.fontOptions.minHgt;\n }\n this.lines = state.lines;\n this.lineCount = state.lines.length;\n this.size.width = state.width;\n this.size.height = state.height;\n this.selectedState = selected;\n this.hoverState = hover;\n this.labelDirty = false;\n }\n\n /**\n * Check if this label is visible\n *\n * @returns {boolean} true if this label will be show, false otherwise\n */\n }, {\n key: \"visible\",\n value: function visible() {\n if (this.size.width === 0 || this.size.height === 0 || this.elementOptions.label === undefined) {\n return false; // nothing to display\n }\n\n var viewFontSize = this.fontOptions.size * this.body.view.scale;\n if (viewFontSize < this.elementOptions.scaling.label.drawThreshold - 1) {\n return false; // Too small or too far away to show\n }\n\n return true;\n }\n }], [{\n key: \"parseFontString\",\n value: function parseFontString(outOptions, inOptions) {\n if (!inOptions || typeof inOptions !== \"string\") return false;\n var newOptionsArray = inOptions.split(\" \");\n outOptions.size = +newOptionsArray[0].replace(\"px\", \"\");\n outOptions.face = newOptionsArray[1];\n outOptions.color = newOptionsArray[2];\n return true;\n }\n }]);\n return Label;\n}();\n\n/**\n * The Base class for all Nodes.\n */\nvar NodeBase = /*#__PURE__*/function () {\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function NodeBase(options, body, labelModule) {\n _classCallCheck(this, NodeBase);\n this.body = body;\n this.labelModule = labelModule;\n this.setOptions(options);\n this.top = undefined;\n this.left = undefined;\n this.height = undefined;\n this.width = undefined;\n this.radius = undefined;\n this.margin = undefined;\n this.refreshNeeded = true;\n this.boundingBox = {\n top: 0,\n left: 0,\n right: 0,\n bottom: 0\n };\n }\n\n /**\n *\n * @param {object} options\n */\n _createClass(NodeBase, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n this.options = options;\n }\n\n /**\n *\n * @param {Label} labelModule\n * @private\n */\n }, {\n key: \"_setMargins\",\n value: function _setMargins(labelModule) {\n this.margin = {};\n if (this.options.margin) {\n if (_typeof$1(this.options.margin) == \"object\") {\n this.margin.top = this.options.margin.top;\n this.margin.right = this.options.margin.right;\n this.margin.bottom = this.options.margin.bottom;\n this.margin.left = this.options.margin.left;\n } else {\n this.margin.top = this.options.margin;\n this.margin.right = this.options.margin;\n this.margin.bottom = this.options.margin;\n this.margin.left = this.options.margin;\n }\n }\n labelModule.adjustSizes(this.margin);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n * @private\n */\n }, {\n key: \"_distanceToBorder\",\n value: function _distanceToBorder(ctx, angle) {\n var borderWidth = this.options.borderWidth;\n if (ctx) {\n this.resize(ctx);\n }\n return Math.min(Math.abs(this.width / 2 / Math.cos(angle)), Math.abs(this.height / 2 / Math.sin(angle))) + borderWidth;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {ArrowOptions} values\n */\n }, {\n key: \"enableShadow\",\n value: function enableShadow(ctx, values) {\n if (values.shadow) {\n ctx.shadowColor = values.shadowColor;\n ctx.shadowBlur = values.shadowSize;\n ctx.shadowOffsetX = values.shadowX;\n ctx.shadowOffsetY = values.shadowY;\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {ArrowOptions} values\n */\n }, {\n key: \"disableShadow\",\n value: function disableShadow(ctx, values) {\n if (values.shadow) {\n ctx.shadowColor = \"rgba(0,0,0,0)\";\n ctx.shadowBlur = 0;\n ctx.shadowOffsetX = 0;\n ctx.shadowOffsetY = 0;\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {ArrowOptions} values\n */\n }, {\n key: \"enableBorderDashes\",\n value: function enableBorderDashes(ctx, values) {\n if (values.borderDashes !== false) {\n if (ctx.setLineDash !== undefined) {\n var dashes = values.borderDashes;\n if (dashes === true) {\n dashes = [5, 15];\n }\n ctx.setLineDash(dashes);\n } else {\n console.warn(\"setLineDash is not supported in this browser. The dashed borders cannot be used.\");\n this.options.shapeProperties.borderDashes = false;\n values.borderDashes = false;\n }\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {ArrowOptions} values\n */\n }, {\n key: \"disableBorderDashes\",\n value: function disableBorderDashes(ctx, values) {\n if (values.borderDashes !== false) {\n if (ctx.setLineDash !== undefined) {\n ctx.setLineDash([0]);\n } else {\n console.warn(\"setLineDash is not supported in this browser. The dashed borders cannot be used.\");\n this.options.shapeProperties.borderDashes = false;\n values.borderDashes = false;\n }\n }\n }\n\n /**\n * Determine if the shape of a node needs to be recalculated.\n *\n * @param {boolean} selected\n * @param {boolean} hover\n * @returns {boolean}\n * @protected\n */\n }, {\n key: \"needsRefresh\",\n value: function needsRefresh(selected, hover) {\n if (this.refreshNeeded === true) {\n // This is probably not the best location to reset this member.\n // However, in the current logic, it is the most convenient one.\n this.refreshNeeded = false;\n return true;\n }\n return this.width === undefined || this.labelModule.differentState(selected, hover);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {ArrowOptions} values\n */\n }, {\n key: \"initContextForDraw\",\n value: function initContextForDraw(ctx, values) {\n var borderWidth = values.borderWidth / this.body.view.scale;\n ctx.lineWidth = Math.min(this.width, borderWidth);\n ctx.strokeStyle = values.borderColor;\n ctx.fillStyle = values.color;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {ArrowOptions} values\n */\n }, {\n key: \"performStroke\",\n value: function performStroke(ctx, values) {\n var borderWidth = values.borderWidth / this.body.view.scale;\n\n //draw dashed border if enabled, save and restore is required for firefox not to crash on unix.\n ctx.save();\n // if borders are zero width, they will be drawn with width 1 by default. This prevents that\n if (borderWidth > 0) {\n this.enableBorderDashes(ctx, values);\n //draw the border\n ctx.stroke();\n //disable dashed border for other elements\n this.disableBorderDashes(ctx, values);\n }\n ctx.restore();\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {ArrowOptions} values\n */\n }, {\n key: \"performFill\",\n value: function performFill(ctx, values) {\n ctx.save();\n ctx.fillStyle = values.color;\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n // draw the background\n _fillInstanceProperty(ctx).call(ctx);\n // disable shadows for other elements.\n this.disableShadow(ctx, values);\n ctx.restore();\n this.performStroke(ctx, values);\n }\n\n /**\n *\n * @param {number} margin\n * @private\n */\n }, {\n key: \"_addBoundingBoxMargin\",\n value: function _addBoundingBoxMargin(margin) {\n this.boundingBox.left -= margin;\n this.boundingBox.top -= margin;\n this.boundingBox.bottom += margin;\n this.boundingBox.right += margin;\n }\n\n /**\n * Actual implementation of this method call.\n *\n * Doing it like this makes it easier to override\n * in the child classes.\n *\n * @param {number} x width\n * @param {number} y height\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n * @private\n */\n }, {\n key: \"_updateBoundingBox\",\n value: function _updateBoundingBox(x, y, ctx, selected, hover) {\n if (ctx !== undefined) {\n this.resize(ctx, selected, hover);\n }\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n this.boundingBox.left = this.left;\n this.boundingBox.top = this.top;\n this.boundingBox.bottom = this.top + this.height;\n this.boundingBox.right = this.left + this.width;\n }\n\n /**\n * Default implementation of this method call.\n * This acts as a stub which can be overridden.\n *\n * @param {number} x width\n * @param {number} y height\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n */\n }, {\n key: \"updateBoundingBox\",\n value: function updateBoundingBox(x, y, ctx, selected, hover) {\n this._updateBoundingBox(x, y, ctx, selected, hover);\n }\n\n /**\n * Determine the dimensions to use for nodes with an internal label\n *\n * Currently, these are: Circle, Ellipse, Database, Box\n * The other nodes have external labels, and will not call this method\n *\n * If there is no label, decent default values are supplied.\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} [selected]\n * @param {boolean} [hover]\n * @returns {{width:number, height:number}}\n */\n }, {\n key: \"getDimensionsFromLabel\",\n value: function getDimensionsFromLabel(ctx, selected, hover) {\n // NOTE: previously 'textSize' was not put in 'this' for Ellipse\n // TODO: examine the consequences.\n this.textSize = this.labelModule.getTextSize(ctx, selected, hover);\n var width = this.textSize.width;\n var height = this.textSize.height;\n var DEFAULT_SIZE = 14;\n if (width === 0) {\n // This happens when there is no label text set\n width = DEFAULT_SIZE; // use a decent default\n height = DEFAULT_SIZE; // if width zero, then height also always zero\n }\n\n return {\n width: width,\n height: height\n };\n }\n }]);\n return NodeBase;\n}();\n\nfunction _createSuper$s(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$s(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$s() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Box Node/Cluster shape.\n *\n * @augments NodeBase\n */\nvar Box$1 = /*#__PURE__*/function (_NodeBase) {\n _inherits(Box, _NodeBase);\n var _super = _createSuper$s(Box);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Box(options, body, labelModule) {\n var _this;\n _classCallCheck(this, Box);\n _this = _super.call(this, options, body, labelModule);\n _this._setMargins(labelModule);\n return _this;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} [selected]\n * @param {boolean} [hover]\n */\n _createClass(Box, [{\n key: \"resize\",\n value: function resize(ctx) {\n var selected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.selected;\n var hover = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.hover;\n if (this.needsRefresh(selected, hover)) {\n var dimensions = this.getDimensionsFromLabel(ctx, selected, hover);\n this.width = dimensions.width + this.margin.right + this.margin.left;\n this.height = dimensions.height + this.margin.top + this.margin.bottom;\n this.radius = this.width / 2;\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n */\n }, {\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n this.resize(ctx, selected, hover);\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n this.initContextForDraw(ctx, values);\n drawRoundRect(ctx, this.left, this.top, this.width, this.height, values.borderRadius);\n this.performFill(ctx, values);\n this.updateBoundingBox(x, y, ctx, selected, hover);\n this.labelModule.draw(ctx, this.left + this.textSize.width / 2 + this.margin.left, this.top + this.textSize.height / 2 + this.margin.top, selected, hover);\n }\n\n /**\n *\n * @param {number} x width\n * @param {number} y height\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n */\n }, {\n key: \"updateBoundingBox\",\n value: function updateBoundingBox(x, y, ctx, selected, hover) {\n this._updateBoundingBox(x, y, ctx, selected, hover);\n var borderRadius = this.options.shapeProperties.borderRadius; // only effective for box\n this._addBoundingBoxMargin(borderRadius);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n if (ctx) {\n this.resize(ctx);\n }\n var borderWidth = this.options.borderWidth;\n return Math.min(Math.abs(this.width / 2 / Math.cos(angle)), Math.abs(this.height / 2 / Math.sin(angle))) + borderWidth;\n }\n }]);\n return Box;\n}(NodeBase);\n\nfunction _createSuper$r(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$r(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$r() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * NOTE: This is a bad base class\n *\n * Child classes are:\n *\n * Image - uses *only* image methods\n * Circle - uses *only* _drawRawCircle\n * CircleImage - uses all\n *\n * TODO: Refactor, move _drawRawCircle to different module, derive Circle from NodeBase\n * Rename this to ImageBase\n * Consolidate common code in Image and CircleImage to base class\n *\n * @augments NodeBase\n */\nvar CircleImageBase = /*#__PURE__*/function (_NodeBase) {\n _inherits(CircleImageBase, _NodeBase);\n var _super = _createSuper$r(CircleImageBase);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function CircleImageBase(options, body, labelModule) {\n var _this;\n _classCallCheck(this, CircleImageBase);\n _this = _super.call(this, options, body, labelModule);\n _this.labelOffset = 0;\n _this.selected = false;\n return _this;\n }\n\n /**\n *\n * @param {object} options\n * @param {object} [imageObj]\n * @param {object} [imageObjAlt]\n */\n _createClass(CircleImageBase, [{\n key: \"setOptions\",\n value: function setOptions(options, imageObj, imageObjAlt) {\n this.options = options;\n if (!(imageObj === undefined && imageObjAlt === undefined)) {\n this.setImages(imageObj, imageObjAlt);\n }\n }\n\n /**\n * Set the images for this node.\n *\n * The images can be updated after the initial setting of options;\n * therefore, this method needs to be reentrant.\n *\n * For correct working in error cases, it is necessary to properly set\n * field 'nodes.brokenImage' in the options.\n *\n * @param {Image} imageObj required; main image to show for this node\n * @param {Image|undefined} imageObjAlt optional; image to show when node is selected\n */\n }, {\n key: \"setImages\",\n value: function setImages(imageObj, imageObjAlt) {\n if (imageObjAlt && this.selected) {\n this.imageObj = imageObjAlt;\n this.imageObjAlt = imageObj;\n } else {\n this.imageObj = imageObj;\n this.imageObjAlt = imageObjAlt;\n }\n }\n\n /**\n * Set selection and switch between the base and the selected image.\n *\n * Do the switch only if imageObjAlt exists.\n *\n * @param {boolean} selected value of new selected state for current node\n */\n }, {\n key: \"switchImages\",\n value: function switchImages(selected) {\n var selection_changed = selected && !this.selected || !selected && this.selected;\n this.selected = selected; // Remember new selection\n\n if (this.imageObjAlt !== undefined && selection_changed) {\n var imageTmp = this.imageObj;\n this.imageObj = this.imageObjAlt;\n this.imageObjAlt = imageTmp;\n }\n }\n\n /**\n * Returns Image Padding from node options\n *\n * @returns {{top: number,left: number,bottom: number,right: number}} image padding inside this shape\n * @private\n */\n }, {\n key: \"_getImagePadding\",\n value: function _getImagePadding() {\n var imgPadding = {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n if (this.options.imagePadding) {\n var optImgPadding = this.options.imagePadding;\n if (_typeof$1(optImgPadding) == \"object\") {\n imgPadding.top = optImgPadding.top;\n imgPadding.right = optImgPadding.right;\n imgPadding.bottom = optImgPadding.bottom;\n imgPadding.left = optImgPadding.left;\n } else {\n imgPadding.top = optImgPadding;\n imgPadding.right = optImgPadding;\n imgPadding.bottom = optImgPadding;\n imgPadding.left = optImgPadding;\n }\n }\n return imgPadding;\n }\n\n /**\n * Adjust the node dimensions for a loaded image.\n *\n * Pre: this.imageObj is valid\n */\n }, {\n key: \"_resizeImage\",\n value: function _resizeImage() {\n var width, height;\n if (this.options.shapeProperties.useImageSize === false) {\n // Use the size property\n var ratio_width = 1;\n var ratio_height = 1;\n\n // Only calculate the proper ratio if both width and height not zero\n if (this.imageObj.width && this.imageObj.height) {\n if (this.imageObj.width > this.imageObj.height) {\n ratio_width = this.imageObj.width / this.imageObj.height;\n } else {\n ratio_height = this.imageObj.height / this.imageObj.width;\n }\n }\n width = this.options.size * 2 * ratio_width;\n height = this.options.size * 2 * ratio_height;\n } else {\n // Use the image size with image padding\n var imgPadding = this._getImagePadding();\n width = this.imageObj.width + imgPadding.left + imgPadding.right;\n height = this.imageObj.height + imgPadding.top + imgPadding.bottom;\n }\n this.width = width;\n this.height = height;\n this.radius = 0.5 * this.width;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {ArrowOptions} values\n * @private\n */\n }, {\n key: \"_drawRawCircle\",\n value: function _drawRawCircle(ctx, x, y, values) {\n this.initContextForDraw(ctx, values);\n drawCircle(ctx, x, y, values.size);\n this.performFill(ctx, values);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {ArrowOptions} values\n * @private\n */\n }, {\n key: \"_drawImageAtPosition\",\n value: function _drawImageAtPosition(ctx, values) {\n if (this.imageObj.width != 0) {\n // draw the image\n ctx.globalAlpha = values.opacity !== undefined ? values.opacity : 1;\n\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n var factor = 1;\n if (this.options.shapeProperties.interpolation === true) {\n factor = this.imageObj.width / this.width / this.body.view.scale;\n }\n var imgPadding = this._getImagePadding();\n var imgPosLeft = this.left + imgPadding.left;\n var imgPosTop = this.top + imgPadding.top;\n var imgWidth = this.width - imgPadding.left - imgPadding.right;\n var imgHeight = this.height - imgPadding.top - imgPadding.bottom;\n this.imageObj.drawImageAtPosition(ctx, factor, imgPosLeft, imgPosTop, imgWidth, imgHeight);\n\n // disable shadows for other elements.\n this.disableShadow(ctx, values);\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @private\n */\n }, {\n key: \"_drawImageLabel\",\n value: function _drawImageLabel(ctx, x, y, selected, hover) {\n var offset = 0;\n if (this.height !== undefined) {\n offset = this.height * 0.5;\n var labelDimensions = this.labelModule.getTextSize(ctx, selected, hover);\n if (labelDimensions.lineCount >= 1) {\n offset += labelDimensions.height / 2;\n }\n }\n var yLabel = y + offset;\n if (this.options.label) {\n this.labelOffset = offset;\n }\n this.labelModule.draw(ctx, x, yLabel, selected, hover, \"hanging\");\n }\n }]);\n return CircleImageBase;\n}(NodeBase);\n\nfunction _createSuper$q(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$q(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$q() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Circle Node/Cluster shape.\n *\n * @augments CircleImageBase\n */\nvar Circle$1 = /*#__PURE__*/function (_CircleImageBase) {\n _inherits(Circle, _CircleImageBase);\n var _super = _createSuper$q(Circle);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Circle(options, body, labelModule) {\n var _this;\n _classCallCheck(this, Circle);\n _this = _super.call(this, options, body, labelModule);\n _this._setMargins(labelModule);\n return _this;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} [selected]\n * @param {boolean} [hover]\n */\n _createClass(Circle, [{\n key: \"resize\",\n value: function resize(ctx) {\n var selected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.selected;\n var hover = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.hover;\n if (this.needsRefresh(selected, hover)) {\n var dimensions = this.getDimensionsFromLabel(ctx, selected, hover);\n var diameter = Math.max(dimensions.width + this.margin.right + this.margin.left, dimensions.height + this.margin.top + this.margin.bottom);\n this.options.size = diameter / 2; // NOTE: this size field only set here, not in Ellipse, Database, Box\n this.width = diameter;\n this.height = diameter;\n this.radius = this.width / 2;\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n */\n }, {\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n this.resize(ctx, selected, hover);\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n this._drawRawCircle(ctx, x, y, values);\n this.updateBoundingBox(x, y);\n this.labelModule.draw(ctx, this.left + this.textSize.width / 2 + this.margin.left, y, selected, hover);\n }\n\n /**\n *\n * @param {number} x width\n * @param {number} y height\n */\n }, {\n key: \"updateBoundingBox\",\n value: function updateBoundingBox(x, y) {\n this.boundingBox.top = y - this.options.size;\n this.boundingBox.left = x - this.options.size;\n this.boundingBox.right = x + this.options.size;\n this.boundingBox.bottom = y + this.options.size;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx) {\n if (ctx) {\n this.resize(ctx);\n }\n return this.width * 0.5;\n }\n }]);\n return Circle;\n}(CircleImageBase);\n\nfunction _createSuper$p(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$p(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$p() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A CircularImage Node/Cluster shape.\n *\n * @augments CircleImageBase\n */\nvar CircularImage = /*#__PURE__*/function (_CircleImageBase) {\n _inherits(CircularImage, _CircleImageBase);\n var _super = _createSuper$p(CircularImage);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n * @param {Image} imageObj\n * @param {Image} imageObjAlt\n */\n function CircularImage(options, body, labelModule, imageObj, imageObjAlt) {\n var _this;\n _classCallCheck(this, CircularImage);\n _this = _super.call(this, options, body, labelModule);\n _this.setImages(imageObj, imageObjAlt);\n return _this;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} [selected]\n * @param {boolean} [hover]\n */\n _createClass(CircularImage, [{\n key: \"resize\",\n value: function resize(ctx) {\n var selected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.selected;\n var hover = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.hover;\n var imageAbsent = this.imageObj.src === undefined || this.imageObj.width === undefined || this.imageObj.height === undefined;\n if (imageAbsent) {\n var diameter = this.options.size * 2;\n this.width = diameter;\n this.height = diameter;\n this.radius = 0.5 * this.width;\n return;\n }\n\n // At this point, an image is present, i.e. this.imageObj is valid.\n if (this.needsRefresh(selected, hover)) {\n this._resizeImage();\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n */\n }, {\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n this.switchImages(selected);\n this.resize();\n var labelX = x,\n labelY = y;\n if (this.options.shapeProperties.coordinateOrigin === \"top-left\") {\n this.left = x;\n this.top = y;\n labelX += this.width / 2;\n labelY += this.height / 2;\n } else {\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n }\n\n // draw the background circle. IMPORTANT: the stroke in this method is used by the clip method below.\n this._drawRawCircle(ctx, labelX, labelY, values);\n\n // now we draw in the circle, we save so we can revert the clip operation after drawing.\n ctx.save();\n // clip is used to use the stroke in drawRawCircle as an area that we can draw in.\n ctx.clip();\n // draw the image\n this._drawImageAtPosition(ctx, values);\n // restore so we can again draw on the full canvas\n ctx.restore();\n this._drawImageLabel(ctx, labelX, labelY, selected, hover);\n this.updateBoundingBox(x, y);\n }\n\n // TODO: compare with Circle.updateBoundingBox(), consolidate? More stuff is happening here\n /**\n *\n * @param {number} x width\n * @param {number} y height\n */\n }, {\n key: \"updateBoundingBox\",\n value: function updateBoundingBox(x, y) {\n if (this.options.shapeProperties.coordinateOrigin === \"top-left\") {\n this.boundingBox.top = y;\n this.boundingBox.left = x;\n this.boundingBox.right = x + this.options.size * 2;\n this.boundingBox.bottom = y + this.options.size * 2;\n } else {\n this.boundingBox.top = y - this.options.size;\n this.boundingBox.left = x - this.options.size;\n this.boundingBox.right = x + this.options.size;\n this.boundingBox.bottom = y + this.options.size;\n }\n\n // TODO: compare with Image.updateBoundingBox(), consolidate?\n this.boundingBox.left = Math.min(this.boundingBox.left, this.labelModule.size.left);\n this.boundingBox.right = Math.max(this.boundingBox.right, this.labelModule.size.left + this.labelModule.size.width);\n this.boundingBox.bottom = Math.max(this.boundingBox.bottom, this.boundingBox.bottom + this.labelOffset);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx) {\n if (ctx) {\n this.resize(ctx);\n }\n return this.width * 0.5;\n }\n }]);\n return CircularImage;\n}(CircleImageBase);\n\nfunction _createSuper$o(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$o(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$o() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * Base class for constructing Node/Cluster Shapes.\n *\n * @augments NodeBase\n */\nvar ShapeBase = /*#__PURE__*/function (_NodeBase) {\n _inherits(ShapeBase, _NodeBase);\n var _super = _createSuper$o(ShapeBase);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function ShapeBase(options, body, labelModule) {\n _classCallCheck(this, ShapeBase);\n return _super.call(this, options, body, labelModule);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} [selected]\n * @param {boolean} [hover]\n * @param {object} [values={size: this.options.size}]\n */\n _createClass(ShapeBase, [{\n key: \"resize\",\n value: function resize(ctx) {\n var selected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.selected;\n var hover = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.hover;\n var values = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {\n size: this.options.size\n };\n if (this.needsRefresh(selected, hover)) {\n var _this$customSizeWidth, _this$customSizeHeigh;\n this.labelModule.getTextSize(ctx, selected, hover);\n var size = 2 * values.size;\n this.width = (_this$customSizeWidth = this.customSizeWidth) !== null && _this$customSizeWidth !== void 0 ? _this$customSizeWidth : size;\n this.height = (_this$customSizeHeigh = this.customSizeHeight) !== null && _this$customSizeHeigh !== void 0 ? _this$customSizeHeigh : size;\n this.radius = 0.5 * this.width;\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {string} shape\n * @param {number} sizeMultiplier - Unused! TODO: Remove next major release\n * @param {number} x\n * @param {number} y\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @private\n * @returns {object} Callbacks to draw later on higher layers.\n */\n }, {\n key: \"_drawShape\",\n value: function _drawShape(ctx, shape, sizeMultiplier, x, y, selected, hover, values) {\n var _this = this;\n this.resize(ctx, selected, hover, values);\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n this.initContextForDraw(ctx, values);\n getShape(shape)(ctx, x, y, values.size);\n this.performFill(ctx, values);\n if (this.options.icon !== undefined) {\n if (this.options.icon.code !== undefined) {\n ctx.font = (selected ? \"bold \" : \"\") + this.height / 2 + \"px \" + (this.options.icon.face || \"FontAwesome\");\n ctx.fillStyle = this.options.icon.color || \"black\";\n ctx.textAlign = \"center\";\n ctx.textBaseline = \"middle\";\n ctx.fillText(this.options.icon.code, x, y);\n }\n }\n return {\n drawExternalLabel: function drawExternalLabel() {\n if (_this.options.label !== undefined) {\n // Need to call following here in order to ensure value for\n // `this.labelModule.size.height`.\n _this.labelModule.calculateLabelSize(ctx, selected, hover, x, y, \"hanging\");\n var yLabel = y + 0.5 * _this.height + 0.5 * _this.labelModule.size.height;\n _this.labelModule.draw(ctx, x, yLabel, selected, hover, \"hanging\");\n }\n _this.updateBoundingBox(x, y);\n }\n };\n }\n\n /**\n *\n * @param {number} x\n * @param {number} y\n */\n }, {\n key: \"updateBoundingBox\",\n value: function updateBoundingBox(x, y) {\n this.boundingBox.top = y - this.options.size;\n this.boundingBox.left = x - this.options.size;\n this.boundingBox.right = x + this.options.size;\n this.boundingBox.bottom = y + this.options.size;\n if (this.options.label !== undefined && this.labelModule.size.width > 0) {\n this.boundingBox.left = Math.min(this.boundingBox.left, this.labelModule.size.left);\n this.boundingBox.right = Math.max(this.boundingBox.right, this.labelModule.size.left + this.labelModule.size.width);\n this.boundingBox.bottom = Math.max(this.boundingBox.bottom, this.boundingBox.bottom + this.labelModule.size.height);\n }\n }\n }]);\n return ShapeBase;\n}(NodeBase);\n\nfunction ownKeys$3(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor$1(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$3(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$3(Object(source))).call(_context2, function (key) { _Object$defineProperty$1(target, key, _Object$getOwnPropertyDescriptor$1(source, key)); }); } return target; }\nfunction _createSuper$n(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$n(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$n() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A CustomShape Node/Cluster shape.\n *\n * @augments ShapeBase\n */\nvar CustomShape = /*#__PURE__*/function (_ShapeBase) {\n _inherits(CustomShape, _ShapeBase);\n var _super = _createSuper$n(CustomShape);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n * @param {Function} ctxRenderer\n */\n function CustomShape(options, body, labelModule, ctxRenderer) {\n var _this;\n _classCallCheck(this, CustomShape);\n _this = _super.call(this, options, body, labelModule, ctxRenderer);\n _this.ctxRenderer = ctxRenderer;\n return _this;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @returns {object} Callbacks to draw later on different layers.\n */\n _createClass(CustomShape, [{\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n this.resize(ctx, selected, hover, values);\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n\n // Guard right away because someone may just draw in the function itself.\n ctx.save();\n var drawLater = this.ctxRenderer({\n ctx: ctx,\n id: this.options.id,\n x: x,\n y: y,\n state: {\n selected: selected,\n hover: hover\n },\n style: _objectSpread$3({}, values),\n label: this.options.label\n });\n // Render the node shape bellow arrows.\n if (drawLater.drawNode != null) {\n drawLater.drawNode();\n }\n ctx.restore();\n if (drawLater.drawExternalLabel) {\n // Guard the external label (above arrows) drawing function.\n var drawExternalLabel = drawLater.drawExternalLabel;\n drawLater.drawExternalLabel = function () {\n ctx.save();\n drawExternalLabel();\n ctx.restore();\n };\n }\n if (drawLater.nodeDimensions) {\n this.customSizeWidth = drawLater.nodeDimensions.width;\n this.customSizeHeight = drawLater.nodeDimensions.height;\n }\n return drawLater;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return CustomShape;\n}(ShapeBase);\n\nfunction _createSuper$m(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$m(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$m() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Database Node/Cluster shape.\n *\n * @augments NodeBase\n */\nvar Database = /*#__PURE__*/function (_NodeBase) {\n _inherits(Database, _NodeBase);\n var _super = _createSuper$m(Database);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Database(options, body, labelModule) {\n var _this;\n _classCallCheck(this, Database);\n _this = _super.call(this, options, body, labelModule);\n _this._setMargins(labelModule);\n return _this;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n */\n _createClass(Database, [{\n key: \"resize\",\n value: function resize(ctx, selected, hover) {\n if (this.needsRefresh(selected, hover)) {\n var dimensions = this.getDimensionsFromLabel(ctx, selected, hover);\n var size = dimensions.width + this.margin.right + this.margin.left;\n this.width = size;\n this.height = size;\n this.radius = this.width / 2;\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n */\n }, {\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n this.resize(ctx, selected, hover);\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n this.initContextForDraw(ctx, values);\n drawDatabase(ctx, x - this.width / 2, y - this.height / 2, this.width, this.height);\n this.performFill(ctx, values);\n this.updateBoundingBox(x, y, ctx, selected, hover);\n this.labelModule.draw(ctx, this.left + this.textSize.width / 2 + this.margin.left, this.top + this.textSize.height / 2 + this.margin.top, selected, hover);\n }\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return Database;\n}(NodeBase);\n\nfunction _createSuper$l(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$l(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$l() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Diamond Node/Cluster shape.\n *\n * @augments ShapeBase\n */\nvar Diamond$1 = /*#__PURE__*/function (_ShapeBase) {\n _inherits(Diamond, _ShapeBase);\n var _super = _createSuper$l(Diamond);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Diamond(options, body, labelModule) {\n _classCallCheck(this, Diamond);\n return _super.call(this, options, body, labelModule);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @returns {object} Callbacks to draw later on higher layers.\n */\n _createClass(Diamond, [{\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n return this._drawShape(ctx, \"diamond\", 4, x, y, selected, hover, values);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return Diamond;\n}(ShapeBase);\n\nfunction _createSuper$k(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$k(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$k() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Dot Node/Cluster shape.\n *\n * @augments ShapeBase\n */\nvar Dot = /*#__PURE__*/function (_ShapeBase) {\n _inherits(Dot, _ShapeBase);\n var _super = _createSuper$k(Dot);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Dot(options, body, labelModule) {\n _classCallCheck(this, Dot);\n return _super.call(this, options, body, labelModule);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @returns {object} Callbacks to draw later on higher layers.\n */\n _createClass(Dot, [{\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n return this._drawShape(ctx, \"circle\", 2, x, y, selected, hover, values);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx) {\n if (ctx) {\n this.resize(ctx);\n }\n return this.options.size;\n }\n }]);\n return Dot;\n}(ShapeBase);\n\nfunction _createSuper$j(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$j(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$j() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * Am Ellipse Node/Cluster shape.\n *\n * @augments NodeBase\n */\nvar Ellipse = /*#__PURE__*/function (_NodeBase) {\n _inherits(Ellipse, _NodeBase);\n var _super = _createSuper$j(Ellipse);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Ellipse(options, body, labelModule) {\n _classCallCheck(this, Ellipse);\n return _super.call(this, options, body, labelModule);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} [selected]\n * @param {boolean} [hover]\n */\n _createClass(Ellipse, [{\n key: \"resize\",\n value: function resize(ctx) {\n var selected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.selected;\n var hover = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.hover;\n if (this.needsRefresh(selected, hover)) {\n var dimensions = this.getDimensionsFromLabel(ctx, selected, hover);\n this.height = dimensions.height * 2;\n this.width = dimensions.width + dimensions.height;\n this.radius = 0.5 * this.width;\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n */\n }, {\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n this.resize(ctx, selected, hover);\n this.left = x - this.width * 0.5;\n this.top = y - this.height * 0.5;\n this.initContextForDraw(ctx, values);\n drawEllipse(ctx, this.left, this.top, this.width, this.height);\n this.performFill(ctx, values);\n this.updateBoundingBox(x, y, ctx, selected, hover);\n this.labelModule.draw(ctx, x, y, selected, hover);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n if (ctx) {\n this.resize(ctx);\n }\n var a = this.width * 0.5;\n var b = this.height * 0.5;\n var w = Math.sin(angle) * a;\n var h = Math.cos(angle) * b;\n return a * b / Math.sqrt(w * w + h * h);\n }\n }]);\n return Ellipse;\n}(NodeBase);\n\nfunction _createSuper$i(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$i(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$i() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * An icon replacement for the default Node shape.\n *\n * @augments NodeBase\n */\nvar Icon = /*#__PURE__*/function (_NodeBase) {\n _inherits(Icon, _NodeBase);\n var _super = _createSuper$i(Icon);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Icon(options, body, labelModule) {\n var _this;\n _classCallCheck(this, Icon);\n _this = _super.call(this, options, body, labelModule);\n _this._setMargins(labelModule);\n return _this;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx - Unused.\n * @param {boolean} [selected]\n * @param {boolean} [hover]\n */\n _createClass(Icon, [{\n key: \"resize\",\n value: function resize(ctx, selected, hover) {\n if (this.needsRefresh(selected, hover)) {\n this.iconSize = {\n width: Number(this.options.icon.size),\n height: Number(this.options.icon.size)\n };\n this.width = this.iconSize.width + this.margin.right + this.margin.left;\n this.height = this.iconSize.height + this.margin.top + this.margin.bottom;\n this.radius = 0.5 * this.width;\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @returns {object} Callbacks to draw later on higher layers.\n */\n }, {\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n var _this2 = this;\n this.resize(ctx, selected, hover);\n this.options.icon.size = this.options.icon.size || 50;\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n this._icon(ctx, x, y, selected, hover, values);\n return {\n drawExternalLabel: function drawExternalLabel() {\n if (_this2.options.label !== undefined) {\n var iconTextSpacing = 5;\n _this2.labelModule.draw(ctx, _this2.left + _this2.iconSize.width / 2 + _this2.margin.left, y + _this2.height / 2 + iconTextSpacing, selected);\n }\n _this2.updateBoundingBox(x, y);\n }\n };\n }\n\n /**\n *\n * @param {number} x\n * @param {number} y\n */\n }, {\n key: \"updateBoundingBox\",\n value: function updateBoundingBox(x, y) {\n this.boundingBox.top = y - this.options.icon.size * 0.5;\n this.boundingBox.left = x - this.options.icon.size * 0.5;\n this.boundingBox.right = x + this.options.icon.size * 0.5;\n this.boundingBox.bottom = y + this.options.icon.size * 0.5;\n if (this.options.label !== undefined && this.labelModule.size.width > 0) {\n var iconTextSpacing = 5;\n this.boundingBox.left = Math.min(this.boundingBox.left, this.labelModule.size.left);\n this.boundingBox.right = Math.max(this.boundingBox.right, this.labelModule.size.left + this.labelModule.size.width);\n this.boundingBox.bottom = Math.max(this.boundingBox.bottom, this.boundingBox.bottom + this.labelModule.size.height + iconTextSpacing);\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover - Unused\n * @param {ArrowOptions} values\n */\n }, {\n key: \"_icon\",\n value: function _icon(ctx, x, y, selected, hover, values) {\n var iconSize = Number(this.options.icon.size);\n if (this.options.icon.code !== undefined) {\n ctx.font = [this.options.icon.weight != null ? this.options.icon.weight : selected ? \"bold\" : \"\",\n // If the weight is forced (for example to make Font Awesome 5 work\n // properly) substitute slightly bigger size for bold font face.\n (this.options.icon.weight != null && selected ? 5 : 0) + iconSize + \"px\", this.options.icon.face].join(\" \");\n\n // draw icon\n ctx.fillStyle = this.options.icon.color || \"black\";\n ctx.textAlign = \"center\";\n ctx.textBaseline = \"middle\";\n\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n ctx.fillText(this.options.icon.code, x, y);\n\n // disable shadows for other elements.\n this.disableShadow(ctx, values);\n } else {\n console.error(\"When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.\");\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return Icon;\n}(NodeBase);\n\nfunction _createSuper$h(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$h(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$h() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * An image-based replacement for the default Node shape.\n *\n * @augments CircleImageBase\n */\nvar Image$2 = /*#__PURE__*/function (_CircleImageBase) {\n _inherits(Image, _CircleImageBase);\n var _super = _createSuper$h(Image);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n * @param {Image} imageObj\n * @param {Image} imageObjAlt\n */\n function Image(options, body, labelModule, imageObj, imageObjAlt) {\n var _this;\n _classCallCheck(this, Image);\n _this = _super.call(this, options, body, labelModule);\n _this.setImages(imageObj, imageObjAlt);\n return _this;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx - Unused.\n * @param {boolean} [selected]\n * @param {boolean} [hover]\n */\n _createClass(Image, [{\n key: \"resize\",\n value: function resize(ctx) {\n var selected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.selected;\n var hover = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.hover;\n var imageAbsent = this.imageObj.src === undefined || this.imageObj.width === undefined || this.imageObj.height === undefined;\n if (imageAbsent) {\n var side = this.options.size * 2;\n this.width = side;\n this.height = side;\n return;\n }\n if (this.needsRefresh(selected, hover)) {\n this._resizeImage();\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n */\n }, {\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n ctx.save();\n this.switchImages(selected);\n this.resize();\n var labelX = x,\n labelY = y;\n if (this.options.shapeProperties.coordinateOrigin === \"top-left\") {\n this.left = x;\n this.top = y;\n labelX += this.width / 2;\n labelY += this.height / 2;\n } else {\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n }\n if (this.options.shapeProperties.useBorderWithImage === true) {\n var neutralborderWidth = this.options.borderWidth;\n var selectionLineWidth = this.options.borderWidthSelected || 2 * this.options.borderWidth;\n var borderWidth = (selected ? selectionLineWidth : neutralborderWidth) / this.body.view.scale;\n ctx.lineWidth = Math.min(this.width, borderWidth);\n ctx.beginPath();\n var strokeStyle = selected ? this.options.color.highlight.border : hover ? this.options.color.hover.border : this.options.color.border;\n var fillStyle = selected ? this.options.color.highlight.background : hover ? this.options.color.hover.background : this.options.color.background;\n if (values.opacity !== undefined) {\n strokeStyle = overrideOpacity(strokeStyle, values.opacity);\n fillStyle = overrideOpacity(fillStyle, values.opacity);\n }\n // setup the line properties.\n ctx.strokeStyle = strokeStyle;\n\n // set a fillstyle\n ctx.fillStyle = fillStyle;\n\n // draw a rectangle to form the border around. This rectangle is filled so the opacity of a picture (in future vis releases?) can be used to tint the image\n ctx.rect(this.left - 0.5 * ctx.lineWidth, this.top - 0.5 * ctx.lineWidth, this.width + ctx.lineWidth, this.height + ctx.lineWidth);\n _fillInstanceProperty(ctx).call(ctx);\n this.performStroke(ctx, values);\n ctx.closePath();\n }\n this._drawImageAtPosition(ctx, values);\n this._drawImageLabel(ctx, labelX, labelY, selected, hover);\n this.updateBoundingBox(x, y);\n ctx.restore();\n }\n\n /**\n *\n * @param {number} x\n * @param {number} y\n */\n }, {\n key: \"updateBoundingBox\",\n value: function updateBoundingBox(x, y) {\n this.resize();\n if (this.options.shapeProperties.coordinateOrigin === \"top-left\") {\n this.left = x;\n this.top = y;\n } else {\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n }\n this.boundingBox.left = this.left;\n this.boundingBox.top = this.top;\n this.boundingBox.bottom = this.top + this.height;\n this.boundingBox.right = this.left + this.width;\n if (this.options.label !== undefined && this.labelModule.size.width > 0) {\n this.boundingBox.left = Math.min(this.boundingBox.left, this.labelModule.size.left);\n this.boundingBox.right = Math.max(this.boundingBox.right, this.labelModule.size.left + this.labelModule.size.width);\n this.boundingBox.bottom = Math.max(this.boundingBox.bottom, this.boundingBox.bottom + this.labelOffset);\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return Image;\n}(CircleImageBase);\n\nfunction _createSuper$g(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$g(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$g() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Square Node/Cluster shape.\n *\n * @augments ShapeBase\n */\nvar Square = /*#__PURE__*/function (_ShapeBase) {\n _inherits(Square, _ShapeBase);\n var _super = _createSuper$g(Square);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Square(options, body, labelModule) {\n _classCallCheck(this, Square);\n return _super.call(this, options, body, labelModule);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @returns {object} Callbacks to draw later on higher layers.\n */\n _createClass(Square, [{\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n return this._drawShape(ctx, \"square\", 2, x, y, selected, hover, values);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return Square;\n}(ShapeBase);\n\nfunction _createSuper$f(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$f(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$f() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Hexagon Node/Cluster shape.\n *\n * @augments ShapeBase\n */\nvar Hexagon = /*#__PURE__*/function (_ShapeBase) {\n _inherits(Hexagon, _ShapeBase);\n var _super = _createSuper$f(Hexagon);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Hexagon(options, body, labelModule) {\n _classCallCheck(this, Hexagon);\n return _super.call(this, options, body, labelModule);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @returns {object} Callbacks to draw later on higher layers.\n */\n _createClass(Hexagon, [{\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n return this._drawShape(ctx, \"hexagon\", 4, x, y, selected, hover, values);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return Hexagon;\n}(ShapeBase);\n\nfunction _createSuper$e(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$e(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$e() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Star Node/Cluster shape.\n *\n * @augments ShapeBase\n */\nvar Star = /*#__PURE__*/function (_ShapeBase) {\n _inherits(Star, _ShapeBase);\n var _super = _createSuper$e(Star);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Star(options, body, labelModule) {\n _classCallCheck(this, Star);\n return _super.call(this, options, body, labelModule);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @returns {object} Callbacks to draw later on higher layers.\n */\n _createClass(Star, [{\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n return this._drawShape(ctx, \"star\", 4, x, y, selected, hover, values);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return Star;\n}(ShapeBase);\n\nfunction _createSuper$d(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$d(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$d() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A text-based replacement for the default Node shape.\n *\n * @augments NodeBase\n */\nvar Text = /*#__PURE__*/function (_NodeBase) {\n _inherits(Text, _NodeBase);\n var _super = _createSuper$d(Text);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Text(options, body, labelModule) {\n var _this;\n _classCallCheck(this, Text);\n _this = _super.call(this, options, body, labelModule);\n _this._setMargins(labelModule);\n return _this;\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} selected\n * @param {boolean} hover\n */\n _createClass(Text, [{\n key: \"resize\",\n value: function resize(ctx, selected, hover) {\n if (this.needsRefresh(selected, hover)) {\n this.textSize = this.labelModule.getTextSize(ctx, selected, hover);\n this.width = this.textSize.width + this.margin.right + this.margin.left;\n this.height = this.textSize.height + this.margin.top + this.margin.bottom;\n this.radius = 0.5 * this.width;\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x width\n * @param {number} y height\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n */\n }, {\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n this.resize(ctx, selected, hover);\n this.left = x - this.width / 2;\n this.top = y - this.height / 2;\n\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n this.labelModule.draw(ctx, this.left + this.textSize.width / 2 + this.margin.left, this.top + this.textSize.height / 2 + this.margin.top, selected, hover);\n\n // disable shadows for other elements.\n this.disableShadow(ctx, values);\n this.updateBoundingBox(x, y, ctx, selected, hover);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return Text;\n}(NodeBase);\n\nfunction _createSuper$c(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$c(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$c() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Triangle Node/Cluster shape.\n *\n * @augments ShapeBase\n */\nvar Triangle$1 = /*#__PURE__*/function (_ShapeBase) {\n _inherits(Triangle, _ShapeBase);\n var _super = _createSuper$c(Triangle);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function Triangle(options, body, labelModule) {\n _classCallCheck(this, Triangle);\n return _super.call(this, options, body, labelModule);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x\n * @param {number} y\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @returns {object} Callbacks to draw later on higher layers.\n */\n _createClass(Triangle, [{\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n return this._drawShape(ctx, \"triangle\", 3, x, y, selected, hover, values);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return Triangle;\n}(ShapeBase);\n\nfunction _createSuper$b(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$b(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$b() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A downward facing Triangle Node/Cluster shape.\n *\n * @augments ShapeBase\n */\nvar TriangleDown = /*#__PURE__*/function (_ShapeBase) {\n _inherits(TriangleDown, _ShapeBase);\n var _super = _createSuper$b(TriangleDown);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Label} labelModule\n */\n function TriangleDown(options, body, labelModule) {\n _classCallCheck(this, TriangleDown);\n return _super.call(this, options, body, labelModule);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} x\n * @param {number} y\n * @param {boolean} selected\n * @param {boolean} hover\n * @param {ArrowOptions} values\n * @returns {object} Callbacks to draw later on higher layers.\n */\n _createClass(TriangleDown, [{\n key: \"draw\",\n value: function draw(ctx, x, y, selected, hover, values) {\n return this._drawShape(ctx, \"triangleDown\", 3, x, y, selected, hover, values);\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle\n * @returns {number}\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this._distanceToBorder(ctx, angle);\n }\n }]);\n return TriangleDown;\n}(ShapeBase);\n\nfunction ownKeys$2(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor$1(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var _context5, _context6; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context5 = ownKeys$2(Object(source), !0)).call(_context5, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context6 = ownKeys$2(Object(source))).call(_context6, function (key) { _Object$defineProperty$1(target, key, _Object$getOwnPropertyDescriptor$1(source, key)); }); } return target; }\n\n/**\n * A node. A node can be connected to other nodes via one or multiple edges.\n */\nvar Node = /*#__PURE__*/function () {\n /**\n *\n * @param {object} options An object containing options for the node. All\n * options are optional, except for the id.\n * {number} id Id of the node. Required\n * {string} label Text label for the node\n * {number} x Horizontal position of the node\n * {number} y Vertical position of the node\n * {string} shape Node shape\n * {string} image An image url\n * {string} title A title text, can be HTML\n * {anytype} group A group name or number\n * @param {object} body Shared state of current network instance\n * @param {Network.Images} imagelist A list with images. Only needed when the node has an image\n * @param {Groups} grouplist A list with groups. Needed for retrieving group options\n * @param {object} globalOptions Current global node options; these serve as defaults for the node instance\n * @param {object} defaultOptions Global default options for nodes; note that this is also the prototype\n * for parameter `globalOptions`.\n */\n function Node(options, body, imagelist, grouplist, globalOptions, defaultOptions) {\n _classCallCheck(this, Node);\n this.options = bridgeObject(globalOptions);\n this.globalOptions = globalOptions;\n this.defaultOptions = defaultOptions;\n this.body = body;\n this.edges = []; // all edges connected to this node\n\n // set defaults for the options\n this.id = undefined;\n this.imagelist = imagelist;\n this.grouplist = grouplist;\n\n // state options\n this.x = undefined;\n this.y = undefined;\n this.baseSize = this.options.size;\n this.baseFontSize = this.options.font.size;\n this.predefinedPosition = false; // used to check if initial fit should just take the range or approximate\n this.selected = false;\n this.hover = false;\n this.labelModule = new Label(this.body, this.options, false /* Not edge label */);\n\n this.setOptions(options);\n }\n\n /**\n * Attach a edge to the node\n *\n * @param {Edge} edge\n */\n _createClass(Node, [{\n key: \"attachEdge\",\n value: function attachEdge(edge) {\n var _context;\n if (_indexOfInstanceProperty(_context = this.edges).call(_context, edge) === -1) {\n this.edges.push(edge);\n }\n }\n\n /**\n * Detach a edge from the node\n *\n * @param {Edge} edge\n */\n }, {\n key: \"detachEdge\",\n value: function detachEdge(edge) {\n var _context2;\n var index = _indexOfInstanceProperty(_context2 = this.edges).call(_context2, edge);\n if (index != -1) {\n var _context3;\n _spliceInstanceProperty(_context3 = this.edges).call(_context3, index, 1);\n }\n }\n\n /**\n * Set or overwrite options for the node\n *\n * @param {object} options an object with options\n * @returns {null|boolean}\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n var currentShape = this.options.shape;\n if (!options) {\n return; // Note that the return value will be 'undefined'! This is OK.\n }\n\n // Save the color for later.\n // This is necessary in order to prevent local color from being overwritten by group color.\n // TODO: To prevent such workarounds the way options are handled should be rewritten from scratch.\n // This is not the only problem with current options handling.\n if (typeof options.color !== \"undefined\") {\n this._localColor = options.color;\n }\n\n // basic options\n if (options.id !== undefined) {\n this.id = options.id;\n }\n if (this.id === undefined) {\n throw new Error(\"Node must have an id\");\n }\n Node.checkMass(options, this.id);\n\n // set these options locally\n // clear x and y positions\n if (options.x !== undefined) {\n if (options.x === null) {\n this.x = undefined;\n this.predefinedPosition = false;\n } else {\n this.x = _parseInt(options.x);\n this.predefinedPosition = true;\n }\n }\n if (options.y !== undefined) {\n if (options.y === null) {\n this.y = undefined;\n this.predefinedPosition = false;\n } else {\n this.y = _parseInt(options.y);\n this.predefinedPosition = true;\n }\n }\n if (options.size !== undefined) {\n this.baseSize = options.size;\n }\n if (options.value !== undefined) {\n options.value = _parseFloat(options.value);\n }\n\n // this transforms all shorthands into fully defined options\n Node.parseOptions(this.options, options, true, this.globalOptions, this.grouplist);\n var pile = [options, this.options, this.defaultOptions];\n this.chooser = choosify(\"node\", pile);\n this._load_images();\n this.updateLabelModule(options);\n\n // Need to set local opacity after `this.updateLabelModule(options);` because `this.updateLabelModule(options);` overrites local opacity with group opacity\n if (options.opacity !== undefined && Node.checkOpacity(options.opacity)) {\n this.options.opacity = options.opacity;\n }\n this.updateShape(currentShape);\n return options.hidden !== undefined || options.physics !== undefined;\n }\n\n /**\n * Load the images from the options, for the nodes that need them.\n *\n * Images are always loaded, even if they are not used in the current shape.\n * The user may switch to an image shape later on.\n *\n * @private\n */\n }, {\n key: \"_load_images\",\n value: function _load_images() {\n if (this.options.shape === \"circularImage\" || this.options.shape === \"image\") {\n if (this.options.image === undefined) {\n throw new Error(\"Option image must be defined for node type '\" + this.options.shape + \"'\");\n }\n }\n if (this.options.image === undefined) {\n return;\n }\n if (this.imagelist === undefined) {\n throw new Error(\"Internal Error: No images provided\");\n }\n if (typeof this.options.image === \"string\") {\n this.imageObj = this.imagelist.load(this.options.image, this.options.brokenImage, this.id);\n } else {\n if (this.options.image.unselected === undefined) {\n throw new Error(\"No unselected image provided\");\n }\n this.imageObj = this.imagelist.load(this.options.image.unselected, this.options.brokenImage, this.id);\n if (this.options.image.selected !== undefined) {\n this.imageObjAlt = this.imagelist.load(this.options.image.selected, this.options.brokenImage, this.id);\n } else {\n this.imageObjAlt = undefined;\n }\n }\n }\n\n /**\n * Check that opacity is only between 0 and 1\n *\n * @param {number} opacity\n * @returns {boolean}\n */\n }, {\n key: \"getFormattingValues\",\n value:\n /**\n *\n * @returns {{color: *, borderWidth: *, borderColor: *, size: *, borderDashes: (boolean|Array|allOptions.nodes.shapeProperties.borderDashes|{boolean, array}), borderRadius: (number|allOptions.nodes.shapeProperties.borderRadius|{number}|Array), shadow: *, shadowColor: *, shadowSize: *, shadowX: *, shadowY: *}}\n */\n function getFormattingValues() {\n var values = {\n color: this.options.color.background,\n opacity: this.options.opacity,\n borderWidth: this.options.borderWidth,\n borderColor: this.options.color.border,\n size: this.options.size,\n borderDashes: this.options.shapeProperties.borderDashes,\n borderRadius: this.options.shapeProperties.borderRadius,\n shadow: this.options.shadow.enabled,\n shadowColor: this.options.shadow.color,\n shadowSize: this.options.shadow.size,\n shadowX: this.options.shadow.x,\n shadowY: this.options.shadow.y\n };\n if (this.selected || this.hover) {\n if (this.chooser === true) {\n if (this.selected) {\n if (this.options.borderWidthSelected != null) {\n values.borderWidth = this.options.borderWidthSelected;\n } else {\n values.borderWidth *= 2;\n }\n values.color = this.options.color.highlight.background;\n values.borderColor = this.options.color.highlight.border;\n values.shadow = this.options.shadow.enabled;\n } else if (this.hover) {\n values.color = this.options.color.hover.background;\n values.borderColor = this.options.color.hover.border;\n values.shadow = this.options.shadow.enabled;\n }\n } else if (typeof this.chooser === \"function\") {\n this.chooser(values, this.options.id, this.selected, this.hover);\n if (values.shadow === false) {\n if (values.shadowColor !== this.options.shadow.color || values.shadowSize !== this.options.shadow.size || values.shadowX !== this.options.shadow.x || values.shadowY !== this.options.shadow.y) {\n values.shadow = true;\n }\n }\n }\n } else {\n values.shadow = this.options.shadow.enabled;\n }\n if (this.options.opacity !== undefined) {\n var opacity = this.options.opacity;\n values.borderColor = overrideOpacity(values.borderColor, opacity);\n values.color = overrideOpacity(values.color, opacity);\n values.shadowColor = overrideOpacity(values.shadowColor, opacity);\n }\n return values;\n }\n\n /**\n *\n * @param {object} options\n */\n }, {\n key: \"updateLabelModule\",\n value: function updateLabelModule(options) {\n if (this.options.label === undefined || this.options.label === null) {\n this.options.label = \"\";\n }\n Node.updateGroupOptions(this.options, _objectSpread$2(_objectSpread$2({}, options), {}, {\n color: options && options.color || this._localColor || undefined\n }), this.grouplist);\n\n //\n // Note:The prototype chain for this.options is:\n //\n // this.options -> NodesHandler.options -> NodesHandler.defaultOptions\n // (also: this.globalOptions)\n //\n // Note that the prototypes are mentioned explicitly in the pile list below;\n // WE DON'T WANT THE ORDER OF THE PROTOTYPES!!!! At least, not for font handling of labels.\n // This is a good indication that the prototype usage of options is deficient.\n //\n var currentGroup = this.grouplist.get(this.options.group, false);\n var pile = [options,\n // new options\n this.options,\n // current node options, see comment above for prototype\n currentGroup,\n // group options, if any\n this.globalOptions,\n // Currently set global node options\n this.defaultOptions // Default global node options\n ];\n\n this.labelModule.update(this.options, pile);\n if (this.labelModule.baseSize !== undefined) {\n this.baseFontSize = this.labelModule.baseSize;\n }\n }\n\n /**\n *\n * @param {string} currentShape\n */\n }, {\n key: \"updateShape\",\n value: function updateShape(currentShape) {\n if (currentShape === this.options.shape && this.shape) {\n this.shape.setOptions(this.options, this.imageObj, this.imageObjAlt);\n } else {\n // choose draw method depending on the shape\n switch (this.options.shape) {\n case \"box\":\n this.shape = new Box$1(this.options, this.body, this.labelModule);\n break;\n case \"circle\":\n this.shape = new Circle$1(this.options, this.body, this.labelModule);\n break;\n case \"circularImage\":\n this.shape = new CircularImage(this.options, this.body, this.labelModule, this.imageObj, this.imageObjAlt);\n break;\n case \"custom\":\n this.shape = new CustomShape(this.options, this.body, this.labelModule, this.options.ctxRenderer);\n break;\n case \"database\":\n this.shape = new Database(this.options, this.body, this.labelModule);\n break;\n case \"diamond\":\n this.shape = new Diamond$1(this.options, this.body, this.labelModule);\n break;\n case \"dot\":\n this.shape = new Dot(this.options, this.body, this.labelModule);\n break;\n case \"ellipse\":\n this.shape = new Ellipse(this.options, this.body, this.labelModule);\n break;\n case \"icon\":\n this.shape = new Icon(this.options, this.body, this.labelModule);\n break;\n case \"image\":\n this.shape = new Image$2(this.options, this.body, this.labelModule, this.imageObj, this.imageObjAlt);\n break;\n case \"square\":\n this.shape = new Square(this.options, this.body, this.labelModule);\n break;\n case \"hexagon\":\n this.shape = new Hexagon(this.options, this.body, this.labelModule);\n break;\n case \"star\":\n this.shape = new Star(this.options, this.body, this.labelModule);\n break;\n case \"text\":\n this.shape = new Text(this.options, this.body, this.labelModule);\n break;\n case \"triangle\":\n this.shape = new Triangle$1(this.options, this.body, this.labelModule);\n break;\n case \"triangleDown\":\n this.shape = new TriangleDown(this.options, this.body, this.labelModule);\n break;\n default:\n this.shape = new Ellipse(this.options, this.body, this.labelModule);\n break;\n }\n }\n this.needsRefresh();\n }\n\n /**\n * select this node\n */\n }, {\n key: \"select\",\n value: function select() {\n this.selected = true;\n this.needsRefresh();\n }\n\n /**\n * unselect this node\n */\n }, {\n key: \"unselect\",\n value: function unselect() {\n this.selected = false;\n this.needsRefresh();\n }\n\n /**\n * Reset the calculated size of the node, forces it to recalculate its size\n */\n }, {\n key: \"needsRefresh\",\n value: function needsRefresh() {\n this.shape.refreshNeeded = true;\n }\n\n /**\n * get the title of this node.\n *\n * @returns {string} title The title of the node, or undefined when no title\n * has been set.\n */\n }, {\n key: \"getTitle\",\n value: function getTitle() {\n return this.options.title;\n }\n\n /**\n * Calculate the distance to the border of the Node\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {number} angle Angle in radians\n * @returns {number} distance Distance to the border in pixels\n */\n }, {\n key: \"distanceToBorder\",\n value: function distanceToBorder(ctx, angle) {\n return this.shape.distanceToBorder(ctx, angle);\n }\n\n /**\n * Check if this node has a fixed x and y position\n *\n * @returns {boolean} true if fixed, false if not\n */\n }, {\n key: \"isFixed\",\n value: function isFixed() {\n return this.options.fixed.x && this.options.fixed.y;\n }\n\n /**\n * check if this node is selecte\n *\n * @returns {boolean} selected True if node is selected, else false\n */\n }, {\n key: \"isSelected\",\n value: function isSelected() {\n return this.selected;\n }\n\n /**\n * Retrieve the value of the node. Can be undefined\n *\n * @returns {number} value\n */\n }, {\n key: \"getValue\",\n value: function getValue() {\n return this.options.value;\n }\n\n /**\n * Get the current dimensions of the label\n *\n * @returns {rect}\n */\n }, {\n key: \"getLabelSize\",\n value: function getLabelSize() {\n return this.labelModule.size();\n }\n\n /**\n * Adjust the value range of the node. The node will adjust it's size\n * based on its value.\n *\n * @param {number} min\n * @param {number} max\n * @param {number} total\n */\n }, {\n key: \"setValueRange\",\n value: function setValueRange(min, max, total) {\n if (this.options.value !== undefined) {\n var scale = this.options.scaling.customScalingFunction(min, max, total, this.options.value);\n var sizeDiff = this.options.scaling.max - this.options.scaling.min;\n if (this.options.scaling.label.enabled === true) {\n var fontDiff = this.options.scaling.label.max - this.options.scaling.label.min;\n this.options.font.size = this.options.scaling.label.min + scale * fontDiff;\n }\n this.options.size = this.options.scaling.min + scale * sizeDiff;\n } else {\n this.options.size = this.baseSize;\n this.options.font.size = this.baseFontSize;\n }\n this.updateLabelModule();\n }\n\n /**\n * Draw this node in the given canvas\n * The 2d context of a HTML canvas can be retrieved by canvas.getContext(\"2d\");\n *\n * @param {CanvasRenderingContext2D} ctx\n * @returns {object} Callbacks to draw later on higher layers.\n */\n }, {\n key: \"draw\",\n value: function draw(ctx) {\n var values = this.getFormattingValues();\n return this.shape.draw(ctx, this.x, this.y, this.selected, this.hover, values) || {};\n }\n\n /**\n * Update the bounding box of the shape\n *\n * @param {CanvasRenderingContext2D} ctx\n */\n }, {\n key: \"updateBoundingBox\",\n value: function updateBoundingBox(ctx) {\n this.shape.updateBoundingBox(this.x, this.y, ctx);\n }\n\n /**\n * Recalculate the size of this node in the given canvas\n * The 2d context of a HTML canvas can be retrieved by canvas.getContext(\"2d\");\n *\n * @param {CanvasRenderingContext2D} ctx\n */\n }, {\n key: \"resize\",\n value: function resize(ctx) {\n var values = this.getFormattingValues();\n this.shape.resize(ctx, this.selected, this.hover, values);\n }\n\n /**\n * Determine all visual elements of this node instance, in which the given\n * point falls within the bounding shape.\n *\n * @param {point} point\n * @returns {Array.} list with the items which are on the point\n */\n }, {\n key: \"getItemsOnPoint\",\n value: function getItemsOnPoint(point) {\n var ret = [];\n if (this.labelModule.visible()) {\n if (pointInRect(this.labelModule.getSize(), point)) {\n ret.push({\n nodeId: this.id,\n labelId: 0\n });\n }\n }\n if (pointInRect(this.shape.boundingBox, point)) {\n ret.push({\n nodeId: this.id\n });\n }\n return ret;\n }\n\n /**\n * Check if this object is overlapping with the provided object\n *\n * @param {object} obj an object with parameters left, top, right, bottom\n * @returns {boolean} True if location is located on node\n */\n }, {\n key: \"isOverlappingWith\",\n value: function isOverlappingWith(obj) {\n return this.shape.left < obj.right && this.shape.left + this.shape.width > obj.left && this.shape.top < obj.bottom && this.shape.top + this.shape.height > obj.top;\n }\n\n /**\n * Check if this object is overlapping with the provided object\n *\n * @param {object} obj an object with parameters left, top, right, bottom\n * @returns {boolean} True if location is located on node\n */\n }, {\n key: \"isBoundingBoxOverlappingWith\",\n value: function isBoundingBoxOverlappingWith(obj) {\n return this.shape.boundingBox.left < obj.right && this.shape.boundingBox.right > obj.left && this.shape.boundingBox.top < obj.bottom && this.shape.boundingBox.bottom > obj.top;\n }\n\n /**\n * Check valid values for mass\n *\n * The mass may not be negative or zero. If it is, reset to 1\n *\n * @param {object} options\n * @param {Node.id} id\n * @static\n */\n }], [{\n key: \"checkOpacity\",\n value: function checkOpacity(opacity) {\n return 0 <= opacity && opacity <= 1;\n }\n\n /**\n * Check that origin is 'center' or 'top-left'\n *\n * @param {string} origin\n * @returns {boolean}\n */\n }, {\n key: \"checkCoordinateOrigin\",\n value: function checkCoordinateOrigin(origin) {\n return origin === undefined || origin === \"center\" || origin === \"top-left\";\n }\n\n /**\n * Copy group option values into the node options.\n *\n * The group options override the global node options, so the copy of group options\n * must happen *after* the global node options have been set.\n *\n * This method must also be called also if the global node options have changed and the group options did not.\n *\n * @param {object} parentOptions\n * @param {object} newOptions new values for the options, currently only passed in for check\n * @param {object} groupList\n */\n }, {\n key: \"updateGroupOptions\",\n value: function updateGroupOptions(parentOptions, newOptions, groupList) {\n var _context4;\n if (groupList === undefined) return; // No groups, nothing to do\n\n var group = parentOptions.group;\n\n // paranoia: the selected group is already merged into node options, check.\n if (newOptions !== undefined && newOptions.group !== undefined && group !== newOptions.group) {\n throw new Error(\"updateGroupOptions: group values in options don't match.\");\n }\n var hasGroup = typeof group === \"number\" || typeof group === \"string\" && group != \"\";\n if (!hasGroup) return; // current node has no group, no need to merge\n\n var groupObj = groupList.get(group);\n if (groupObj.opacity !== undefined && newOptions.opacity === undefined) {\n if (!Node.checkOpacity(groupObj.opacity)) {\n console.error(\"Invalid option for node opacity. Value must be between 0 and 1, found: \" + groupObj.opacity);\n groupObj.opacity = undefined;\n }\n }\n\n // Skip any new option to avoid them being overridden by the group options.\n var skipProperties = _filterInstanceProperty(_context4 = _Object$getOwnPropertyNames(newOptions)).call(_context4, function (p) {\n return newOptions[p] != null;\n });\n // Always skip merging group font options into parent; these are required to be distinct for labels\n skipProperties.push(\"font\");\n selectiveNotDeepExtend(skipProperties, parentOptions, groupObj);\n\n // the color object needs to be completely defined.\n // Since groups can partially overwrite the colors, we parse it again, just in case.\n parentOptions.color = parseColor(parentOptions.color);\n }\n\n /**\n * This process all possible shorthands in the new options and makes sure that the parentOptions are fully defined.\n * Static so it can also be used by the handler.\n *\n * @param {object} parentOptions\n * @param {object} newOptions\n * @param {boolean} [allowDeletion=false]\n * @param {object} [globalOptions={}]\n * @param {object} [groupList]\n * @static\n */\n }, {\n key: \"parseOptions\",\n value: function parseOptions(parentOptions, newOptions) {\n var allowDeletion = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var globalOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n var groupList = arguments.length > 4 ? arguments[4] : undefined;\n var fields = [\"color\", \"fixed\", \"shadow\"];\n selectiveNotDeepExtend(fields, parentOptions, newOptions, allowDeletion);\n Node.checkMass(newOptions);\n if (parentOptions.opacity !== undefined) {\n if (!Node.checkOpacity(parentOptions.opacity)) {\n console.error(\"Invalid option for node opacity. Value must be between 0 and 1, found: \" + parentOptions.opacity);\n parentOptions.opacity = undefined;\n }\n }\n if (newOptions.opacity !== undefined) {\n if (!Node.checkOpacity(newOptions.opacity)) {\n console.error(\"Invalid option for node opacity. Value must be between 0 and 1, found: \" + newOptions.opacity);\n newOptions.opacity = undefined;\n }\n }\n if (newOptions.shapeProperties && !Node.checkCoordinateOrigin(newOptions.shapeProperties.coordinateOrigin)) {\n console.error(\"Invalid option for node coordinateOrigin, found: \" + newOptions.shapeProperties.coordinateOrigin);\n }\n\n // merge the shadow options into the parent.\n mergeOptions(parentOptions, newOptions, \"shadow\", globalOptions);\n\n // individual shape newOptions\n if (newOptions.color !== undefined && newOptions.color !== null) {\n var parsedColor = parseColor(newOptions.color);\n fillIfDefined(parentOptions.color, parsedColor);\n } else if (allowDeletion === true && newOptions.color === null) {\n parentOptions.color = bridgeObject(globalOptions.color); // set the object back to the global options\n }\n\n // handle the fixed options\n if (newOptions.fixed !== undefined && newOptions.fixed !== null) {\n if (typeof newOptions.fixed === \"boolean\") {\n parentOptions.fixed.x = newOptions.fixed;\n parentOptions.fixed.y = newOptions.fixed;\n } else {\n if (newOptions.fixed.x !== undefined && typeof newOptions.fixed.x === \"boolean\") {\n parentOptions.fixed.x = newOptions.fixed.x;\n }\n if (newOptions.fixed.y !== undefined && typeof newOptions.fixed.y === \"boolean\") {\n parentOptions.fixed.y = newOptions.fixed.y;\n }\n }\n }\n if (allowDeletion === true && newOptions.font === null) {\n parentOptions.font = bridgeObject(globalOptions.font); // set the object back to the global options\n }\n\n Node.updateGroupOptions(parentOptions, newOptions, groupList);\n\n // handle the scaling options, specifically the label part\n if (newOptions.scaling !== undefined) {\n mergeOptions(parentOptions.scaling, newOptions.scaling, \"label\", globalOptions.scaling);\n }\n }\n }, {\n key: \"checkMass\",\n value: function checkMass(options, id) {\n if (options.mass !== undefined && options.mass <= 0) {\n var strId = \"\";\n if (id !== undefined) {\n strId = \" in node id: \" + id;\n }\n console.error(\"%cNegative or zero mass disallowed\" + strId + \", setting mass to 1.\", VALIDATOR_PRINT_STYLE);\n options.mass = 1;\n }\n }\n }]);\n return Node;\n}();\n\nfunction _createForOfIteratorHelper$5(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray$5(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray$5(o, minLen) { var _context4; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray$5(o, minLen); var n = _sliceInstanceProperty(_context4 = Object.prototype.toString.call(o)).call(_context4, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$5(o, minLen); }\nfunction _arrayLikeToArray$5(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n/**\n * Handler for Nodes\n */\nvar NodesHandler = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {Images} images\n * @param {Array.} groups\n * @param {LayoutEngine} layoutEngine\n */\n function NodesHandler(body, images, groups, layoutEngine) {\n var _context,\n _this = this;\n _classCallCheck(this, NodesHandler);\n this.body = body;\n this.images = images;\n this.groups = groups;\n this.layoutEngine = layoutEngine;\n\n // create the node API in the body container\n this.body.functions.createNode = _bindInstanceProperty$1(_context = this.create).call(_context, this);\n this.nodesListeners = {\n add: function add(event, params) {\n _this.add(params.items);\n },\n update: function update(event, params) {\n _this.update(params.items, params.data, params.oldData);\n },\n remove: function remove(event, params) {\n _this.remove(params.items);\n }\n };\n this.defaultOptions = {\n borderWidth: 1,\n borderWidthSelected: undefined,\n brokenImage: undefined,\n color: {\n border: \"#2B7CE9\",\n background: \"#97C2FC\",\n highlight: {\n border: \"#2B7CE9\",\n background: \"#D2E5FF\"\n },\n hover: {\n border: \"#2B7CE9\",\n background: \"#D2E5FF\"\n }\n },\n opacity: undefined,\n // number between 0 and 1\n fixed: {\n x: false,\n y: false\n },\n font: {\n color: \"#343434\",\n size: 14,\n // px\n face: \"arial\",\n background: \"none\",\n strokeWidth: 0,\n // px\n strokeColor: \"#ffffff\",\n align: \"center\",\n vadjust: 0,\n multi: false,\n bold: {\n mod: \"bold\"\n },\n boldital: {\n mod: \"bold italic\"\n },\n ital: {\n mod: \"italic\"\n },\n mono: {\n mod: \"\",\n size: 15,\n // px\n face: \"monospace\",\n vadjust: 2\n }\n },\n group: undefined,\n hidden: false,\n icon: {\n face: \"FontAwesome\",\n //'FontAwesome',\n code: undefined,\n //'\\uf007',\n size: 50,\n //50,\n color: \"#2B7CE9\" //'#aa00ff'\n },\n\n image: undefined,\n // --> URL\n imagePadding: {\n // only for image shape\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n },\n label: undefined,\n labelHighlightBold: true,\n level: undefined,\n margin: {\n top: 5,\n right: 5,\n bottom: 5,\n left: 5\n },\n mass: 1,\n physics: true,\n scaling: {\n min: 10,\n max: 30,\n label: {\n enabled: false,\n min: 14,\n max: 30,\n maxVisible: 30,\n drawThreshold: 5\n },\n customScalingFunction: function customScalingFunction(min, max, total, value) {\n if (max === min) {\n return 0.5;\n } else {\n var scale = 1 / (max - min);\n return Math.max(0, (value - min) * scale);\n }\n }\n },\n shadow: {\n enabled: false,\n color: \"rgba(0,0,0,0.5)\",\n size: 10,\n x: 5,\n y: 5\n },\n shape: \"ellipse\",\n shapeProperties: {\n borderDashes: false,\n // only for borders\n borderRadius: 6,\n // only for box shape\n interpolation: true,\n // only for image and circularImage shapes\n useImageSize: false,\n // only for image and circularImage shapes\n useBorderWithImage: false,\n // only for image shape\n coordinateOrigin: \"center\" // only for image and circularImage shapes\n },\n\n size: 25,\n title: undefined,\n value: undefined,\n x: undefined,\n y: undefined\n };\n\n // Protect from idiocy\n if (this.defaultOptions.mass <= 0) {\n throw \"Internal error: mass in defaultOptions of NodesHandler may not be zero or negative\";\n }\n this.options = bridgeObject(this.defaultOptions);\n this.bindEventListeners();\n }\n\n /**\n * Binds event listeners\n */\n _createClass(NodesHandler, [{\n key: \"bindEventListeners\",\n value: function bindEventListeners() {\n var _context2,\n _context3,\n _this2 = this;\n // refresh the nodes. Used when reverting from hierarchical layout\n this.body.emitter.on(\"refreshNodes\", _bindInstanceProperty$1(_context2 = this.refresh).call(_context2, this));\n this.body.emitter.on(\"refresh\", _bindInstanceProperty$1(_context3 = this.refresh).call(_context3, this));\n this.body.emitter.on(\"destroy\", function () {\n forEach$5(_this2.nodesListeners, function (callback, event) {\n if (_this2.body.data.nodes) _this2.body.data.nodes.off(event, callback);\n });\n delete _this2.body.functions.createNode;\n delete _this2.nodesListeners.add;\n delete _this2.nodesListeners.update;\n delete _this2.nodesListeners.remove;\n delete _this2.nodesListeners;\n });\n }\n\n /**\n *\n * @param {object} options\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options !== undefined) {\n Node.parseOptions(this.options, options);\n\n // Need to set opacity here because Node.parseOptions is also used for groups,\n // if you set opacity in Node.parseOptions it overwrites group opacity.\n if (options.opacity !== undefined) {\n if (_Number$isNaN(options.opacity) || !_Number$isFinite(options.opacity) || options.opacity < 0 || options.opacity > 1) {\n console.error(\"Invalid option for node opacity. Value must be between 0 and 1, found: \" + options.opacity);\n } else {\n this.options.opacity = options.opacity;\n }\n }\n\n // update the shape in all nodes\n if (options.shape !== undefined) {\n for (var nodeId in this.body.nodes) {\n if (Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId)) {\n this.body.nodes[nodeId].updateShape();\n }\n }\n }\n\n // Update the labels of nodes if any relevant options changed.\n if (typeof options.font !== \"undefined\" || typeof options.widthConstraint !== \"undefined\" || typeof options.heightConstraint !== \"undefined\") {\n for (var _i = 0, _Object$keys$1 = _Object$keys(this.body.nodes); _i < _Object$keys$1.length; _i++) {\n var _nodeId = _Object$keys$1[_i];\n this.body.nodes[_nodeId].updateLabelModule();\n this.body.nodes[_nodeId].needsRefresh();\n }\n }\n\n // update the shape size in all nodes\n if (options.size !== undefined) {\n for (var _nodeId2 in this.body.nodes) {\n if (Object.prototype.hasOwnProperty.call(this.body.nodes, _nodeId2)) {\n this.body.nodes[_nodeId2].needsRefresh();\n }\n }\n }\n\n // update the state of the variables if needed\n if (options.hidden !== undefined || options.physics !== undefined) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n }\n\n /**\n * Set a data set with nodes for the network\n *\n * @param {Array | DataSet | DataView} nodes The data containing the nodes.\n * @param {boolean} [doNotEmit=false] - Suppress data changed event.\n * @private\n */\n }, {\n key: \"setData\",\n value: function setData(nodes) {\n var doNotEmit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var oldNodesData = this.body.data.nodes;\n if (isDataViewLike(\"id\", nodes)) {\n this.body.data.nodes = nodes;\n } else if (_Array$isArray(nodes)) {\n this.body.data.nodes = new DataSet();\n this.body.data.nodes.add(nodes);\n } else if (!nodes) {\n this.body.data.nodes = new DataSet();\n } else {\n throw new TypeError(\"Array or DataSet expected\");\n }\n if (oldNodesData) {\n // unsubscribe from old dataset\n forEach$5(this.nodesListeners, function (callback, event) {\n oldNodesData.off(event, callback);\n });\n }\n\n // remove drawn nodes\n this.body.nodes = {};\n if (this.body.data.nodes) {\n // subscribe to new dataset\n var me = this;\n forEach$5(this.nodesListeners, function (callback, event) {\n me.body.data.nodes.on(event, callback);\n });\n\n // draw all new nodes\n var ids = this.body.data.nodes.getIds();\n this.add(ids, true);\n }\n if (doNotEmit === false) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n\n /**\n * Add nodes\n *\n * @param {number[] | string[]} ids\n * @param {boolean} [doNotEmit=false]\n * @private\n */\n }, {\n key: \"add\",\n value: function add(ids) {\n var doNotEmit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var id;\n var newNodes = [];\n for (var i = 0; i < ids.length; i++) {\n id = ids[i];\n var properties = this.body.data.nodes.get(id);\n var node = this.create(properties);\n newNodes.push(node);\n this.body.nodes[id] = node; // note: this may replace an existing node\n }\n\n this.layoutEngine.positionInitially(newNodes);\n if (doNotEmit === false) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n\n /**\n * Update existing nodes, or create them when not yet existing\n *\n * @param {number[] | string[]} ids id's of changed nodes\n * @param {Array} changedData array with changed data\n * @param {Array|undefined} oldData optional; array with previous data\n * @private\n */\n }, {\n key: \"update\",\n value: function update(ids, changedData, oldData) {\n var nodes = this.body.nodes;\n var dataChanged = false;\n for (var i = 0; i < ids.length; i++) {\n var id = ids[i];\n var node = nodes[id];\n var data = changedData[i];\n if (node !== undefined) {\n // update node\n if (node.setOptions(data)) {\n dataChanged = true;\n }\n } else {\n dataChanged = true;\n // create node\n node = this.create(data);\n nodes[id] = node;\n }\n }\n if (!dataChanged && oldData !== undefined) {\n // Check for any changes which should trigger a layout recalculation\n // For now, this is just 'level' for hierarchical layout\n // Assumption: old and new data arranged in same order; at time of writing, this holds.\n dataChanged = _someInstanceProperty(changedData).call(changedData, function (newValue, index) {\n var oldValue = oldData[index];\n return oldValue && oldValue.level !== newValue.level;\n });\n }\n if (dataChanged === true) {\n this.body.emitter.emit(\"_dataChanged\");\n } else {\n this.body.emitter.emit(\"_dataUpdated\");\n }\n }\n\n /**\n * Remove existing nodes. If nodes do not exist, the method will just ignore it.\n *\n * @param {number[] | string[]} ids\n * @private\n */\n }, {\n key: \"remove\",\n value: function remove(ids) {\n var nodes = this.body.nodes;\n for (var i = 0; i < ids.length; i++) {\n var id = ids[i];\n delete nodes[id];\n }\n this.body.emitter.emit(\"_dataChanged\");\n }\n\n /**\n * create a node\n *\n * @param {object} properties\n * @param {class} [constructorClass=Node.default]\n * @returns {*}\n */\n }, {\n key: \"create\",\n value: function create(properties) {\n var constructorClass = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Node;\n return new constructorClass(properties, this.body, this.images, this.groups, this.options, this.defaultOptions);\n }\n\n /**\n *\n * @param {boolean} [clearPositions=false]\n */\n }, {\n key: \"refresh\",\n value: function refresh() {\n var _this3 = this;\n var clearPositions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n forEach$5(this.body.nodes, function (node, nodeId) {\n var data = _this3.body.data.nodes.get(nodeId);\n if (data !== undefined) {\n if (clearPositions === true) {\n node.setOptions({\n x: null,\n y: null\n });\n }\n node.setOptions({\n fixed: false\n });\n node.setOptions(data);\n }\n });\n }\n\n /**\n * Returns the positions of the nodes.\n *\n * @param {Array. | string} [ids] --> optional, can be array of nodeIds, can be string\n * @returns {{}}\n */\n }, {\n key: \"getPositions\",\n value: function getPositions(ids) {\n var dataArray = {};\n if (ids !== undefined) {\n if (_Array$isArray(ids) === true) {\n for (var i = 0; i < ids.length; i++) {\n if (this.body.nodes[ids[i]] !== undefined) {\n var node = this.body.nodes[ids[i]];\n dataArray[ids[i]] = {\n x: Math.round(node.x),\n y: Math.round(node.y)\n };\n }\n }\n } else {\n if (this.body.nodes[ids] !== undefined) {\n var _node = this.body.nodes[ids];\n dataArray[ids] = {\n x: Math.round(_node.x),\n y: Math.round(_node.y)\n };\n }\n }\n } else {\n for (var _i2 = 0; _i2 < this.body.nodeIndices.length; _i2++) {\n var _node2 = this.body.nodes[this.body.nodeIndices[_i2]];\n dataArray[this.body.nodeIndices[_i2]] = {\n x: Math.round(_node2.x),\n y: Math.round(_node2.y)\n };\n }\n }\n return dataArray;\n }\n\n /**\n * Retrieves the x y position of a specific id.\n *\n * @param {string} id The id to retrieve.\n * @throws {TypeError} If no id is included.\n * @throws {ReferenceError} If an invalid id is provided.\n * @returns {{ x: number, y: number }} Returns X, Y canvas position of the node with given id.\n */\n }, {\n key: \"getPosition\",\n value: function getPosition(id) {\n if (id == undefined) {\n throw new TypeError(\"No id was specified for getPosition method.\");\n } else if (this.body.nodes[id] == undefined) {\n throw new ReferenceError(\"NodeId provided for getPosition does not exist. Provided: \".concat(id));\n } else {\n return {\n x: Math.round(this.body.nodes[id].x),\n y: Math.round(this.body.nodes[id].y)\n };\n }\n }\n\n /**\n * Load the XY positions of the nodes into the dataset.\n */\n }, {\n key: \"storePositions\",\n value: function storePositions() {\n // todo: add support for clusters and hierarchical.\n var dataArray = [];\n var dataset = this.body.data.nodes.getDataSet();\n var _iterator = _createForOfIteratorHelper$5(dataset.get()),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var dsNode = _step.value;\n var id = dsNode.id;\n var bodyNode = this.body.nodes[id];\n var x = Math.round(bodyNode.x);\n var y = Math.round(bodyNode.y);\n if (dsNode.x !== x || dsNode.y !== y) {\n dataArray.push({\n id: id,\n x: x,\n y: y\n });\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n dataset.update(dataArray);\n }\n\n /**\n * get the bounding box of a node.\n *\n * @param {Node.id} nodeId\n * @returns {j|*}\n */\n }, {\n key: \"getBoundingBox\",\n value: function getBoundingBox(nodeId) {\n if (this.body.nodes[nodeId] !== undefined) {\n return this.body.nodes[nodeId].shape.boundingBox;\n }\n }\n\n /**\n * Get the Ids of nodes connected to this node.\n *\n * @param {Node.id} nodeId\n * @param {'to'|'from'|undefined} direction values 'from' and 'to' select respectively parent and child nodes only.\n * Any other value returns both parent and child nodes.\n * @returns {Array}\n */\n }, {\n key: \"getConnectedNodes\",\n value: function getConnectedNodes(nodeId, direction) {\n var nodeList = [];\n if (this.body.nodes[nodeId] !== undefined) {\n var node = this.body.nodes[nodeId];\n var nodeObj = {}; // used to quickly check if node already exists\n for (var i = 0; i < node.edges.length; i++) {\n var edge = node.edges[i];\n if (direction !== \"to\" && edge.toId == node.id) {\n // these are double equals since ids can be numeric or string\n if (nodeObj[edge.fromId] === undefined) {\n nodeList.push(edge.fromId);\n nodeObj[edge.fromId] = true;\n }\n } else if (direction !== \"from\" && edge.fromId == node.id) {\n // these are double equals since ids can be numeric or string\n if (nodeObj[edge.toId] === undefined) {\n nodeList.push(edge.toId);\n nodeObj[edge.toId] = true;\n }\n }\n }\n }\n return nodeList;\n }\n\n /**\n * Get the ids of the edges connected to this node.\n *\n * @param {Node.id} nodeId\n * @returns {*}\n */\n }, {\n key: \"getConnectedEdges\",\n value: function getConnectedEdges(nodeId) {\n var edgeList = [];\n if (this.body.nodes[nodeId] !== undefined) {\n var node = this.body.nodes[nodeId];\n for (var i = 0; i < node.edges.length; i++) {\n edgeList.push(node.edges[i].id);\n }\n } else {\n console.error(\"NodeId provided for getConnectedEdges does not exist. Provided: \", nodeId);\n }\n return edgeList;\n }\n\n /**\n * Move a node.\n *\n * @param {Node.id} nodeId\n * @param {number} x\n * @param {number} y\n */\n }, {\n key: \"moveNode\",\n value: function moveNode(nodeId, x, y) {\n var _this4 = this;\n if (this.body.nodes[nodeId] !== undefined) {\n this.body.nodes[nodeId].x = Number(x);\n this.body.nodes[nodeId].y = Number(y);\n _setTimeout(function () {\n _this4.body.emitter.emit(\"startSimulation\");\n }, 0);\n } else {\n console.error(\"Node id supplied to moveNode does not exist. Provided: \", nodeId);\n }\n }\n }]);\n return NodesHandler;\n}();\n\nvar getExports$1 = {};\nvar get$6 = {\n get exports(){ return getExports$1; },\n set exports(v){ getExports$1 = v; },\n};\n\nvar getExports = {};\nvar get$5 = {\n get exports(){ return getExports; },\n set exports(v){ getExports = v; },\n};\n\nvar hasOwn$1 = hasOwnProperty_1;\n\nvar isDataDescriptor$1 = function (descriptor) {\n return descriptor !== undefined && (hasOwn$1(descriptor, 'value') || hasOwn$1(descriptor, 'writable'));\n};\n\nvar $$2 = _export;\nvar call = functionCall;\nvar isObject$2 = isObject$m;\nvar anObject$1 = anObject$f;\nvar isDataDescriptor = isDataDescriptor$1;\nvar getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;\nvar getPrototypeOf = objectGetPrototypeOf;\n\n// `Reflect.get` method\n// https://tc39.es/ecma262/#sec-reflect.get\nfunction get$4(target, propertyKey /* , receiver */) {\n var receiver = arguments.length < 3 ? target : arguments[2];\n var descriptor, prototype;\n if (anObject$1(target) === receiver) return target[propertyKey];\n descriptor = getOwnPropertyDescriptorModule.f(target, propertyKey);\n if (descriptor) return isDataDescriptor(descriptor)\n ? descriptor.value\n : descriptor.get === undefined ? undefined : call(descriptor.get, receiver);\n if (isObject$2(prototype = getPrototypeOf(target))) return get$4(prototype, propertyKey, receiver);\n}\n\n$$2({ target: 'Reflect', stat: true }, {\n get: get$4\n});\n\nvar path$3 = path$z;\n\nvar get$3 = path$3.Reflect.get;\n\nvar parent$7 = get$3;\n\nvar get$2 = parent$7;\n\nvar parent$6 = get$2;\n\nvar get$1 = parent$6;\n\nvar parent$5 = get$1;\n\nvar get = parent$5;\n\n(function (module) {\n\tmodule.exports = get;\n} (get$5));\n\n(function (module) {\n\tmodule.exports = getExports;\n} (get$6));\n\nvar _Reflect$get = /*@__PURE__*/getDefaultExportFromCjs(getExports$1);\n\nvar getOwnPropertyDescriptorExports$1 = {};\nvar getOwnPropertyDescriptor$3 = {\n get exports(){ return getOwnPropertyDescriptorExports$1; },\n set exports(v){ getOwnPropertyDescriptorExports$1 = v; },\n};\n\nvar getOwnPropertyDescriptorExports = {};\nvar getOwnPropertyDescriptor$2 = {\n get exports(){ return getOwnPropertyDescriptorExports; },\n set exports(v){ getOwnPropertyDescriptorExports = v; },\n};\n\nvar parent$4 = getOwnPropertyDescriptor$6;\n\nvar getOwnPropertyDescriptor$1 = parent$4;\n\nvar parent$3 = getOwnPropertyDescriptor$1;\n\nvar getOwnPropertyDescriptor = parent$3;\n\n(function (module) {\n\tmodule.exports = getOwnPropertyDescriptor;\n} (getOwnPropertyDescriptor$2));\n\n(function (module) {\n\tmodule.exports = getOwnPropertyDescriptorExports;\n} (getOwnPropertyDescriptor$3));\n\nvar _Object$getOwnPropertyDescriptor = /*@__PURE__*/getDefaultExportFromCjs(getOwnPropertyDescriptorExports$1);\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = _getPrototypeOf(object);\n if (object === null) break;\n }\n return object;\n}\n\nfunction _get() {\n if (typeof Reflect !== \"undefined\" && _Reflect$get) {\n var _context;\n _get = _bindInstanceProperty(_context = _Reflect$get).call(_context);\n } else {\n _get = function _get(target, property, receiver) {\n var base = _superPropBase(target, property);\n if (!base) return;\n var desc = _Object$getOwnPropertyDescriptor(base, property);\n if (desc.get) {\n return desc.get.call(arguments.length < 3 ? target : receiver);\n }\n return desc.value;\n };\n }\n return _get.apply(this, arguments);\n}\n\nvar hypotExports = {};\nvar hypot$2 = {\n get exports(){ return hypotExports; },\n set exports(v){ hypotExports = v; },\n};\n\nvar $$1 = _export;\n\n// eslint-disable-next-line es/no-math-hypot -- required for testing\nvar $hypot = Math.hypot;\nvar abs = Math.abs;\nvar sqrt = Math.sqrt;\n\n// Chrome 77 bug\n// https://bugs.chromium.org/p/v8/issues/detail?id=9546\nvar FORCED = !!$hypot && $hypot(Infinity, NaN) !== Infinity;\n\n// `Math.hypot` method\n// https://tc39.es/ecma262/#sec-math.hypot\n$$1({ target: 'Math', stat: true, arity: 2, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n hypot: function hypot(value1, value2) {\n var sum = 0;\n var i = 0;\n var aLen = arguments.length;\n var larg = 0;\n var arg, div;\n while (i < aLen) {\n arg = abs(arguments[i++]);\n if (larg < arg) {\n div = larg / arg;\n sum = sum * div * div + 1;\n larg = arg;\n } else if (arg > 0) {\n div = arg / larg;\n sum += div * div;\n } else sum += arg;\n }\n return larg === Infinity ? Infinity : larg * sqrt(sum);\n }\n});\n\nvar path$2 = path$z;\n\nvar hypot$1 = path$2.Math.hypot;\n\nvar parent$2 = hypot$1;\n\nvar hypot = parent$2;\n\n(function (module) {\n\tmodule.exports = hypot;\n} (hypot$2));\n\nvar _Math$hypot = /*@__PURE__*/getDefaultExportFromCjs(hypotExports);\n\nfunction _createSuper$a(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$a(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$a() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * Common methods for endpoints\r\n *\r\n * @class\r\n */\nvar EndPoint = /*#__PURE__*/function () {\n function EndPoint() {\n _classCallCheck(this, EndPoint);\n }\n _createClass(EndPoint, null, [{\n key: \"transform\",\n value:\n /**\r\n * Apply transformation on points for display.\r\n *\r\n * The following is done:\r\n * - rotate by the specified angle\r\n * - multiply the (normalized) coordinates by the passed length\r\n * - offset by the target coordinates\r\n *\r\n * @param points - The point(s) to be transformed.\r\n * @param arrowData - The data determining the result of the transformation.\r\n */\n function transform(points, arrowData) {\n if (!_Array$isArray(points)) {\n points = [points];\n }\n var x = arrowData.point.x;\n var y = arrowData.point.y;\n var angle = arrowData.angle;\n var length = arrowData.length;\n for (var i = 0; i < points.length; ++i) {\n var p = points[i];\n var xt = p.x * Math.cos(angle) - p.y * Math.sin(angle);\n var yt = p.x * Math.sin(angle) + p.y * Math.cos(angle);\n p.x = x + length * xt;\n p.y = y + length * yt;\n }\n }\n /**\r\n * Draw a closed path using the given real coordinates.\r\n *\r\n * @param ctx - The path will be rendered into this context.\r\n * @param points - The points of the path.\r\n */\n }, {\n key: \"drawPath\",\n value: function drawPath(ctx, points) {\n ctx.beginPath();\n ctx.moveTo(points[0].x, points[0].y);\n for (var i = 1; i < points.length; ++i) {\n ctx.lineTo(points[i].x, points[i].y);\n }\n ctx.closePath();\n }\n }]);\n return EndPoint;\n}();\n/**\r\n * Drawing methods for the arrow endpoint.\r\n */\nvar Image$1 = /*#__PURE__*/function (_EndPoint) {\n _inherits(Image, _EndPoint);\n var _super = _createSuper$a(Image);\n function Image() {\n _classCallCheck(this, Image);\n return _super.apply(this, arguments);\n }\n _createClass(Image, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns False as there is no way to fill an image.\r\n */\n function draw(ctx, arrowData) {\n if (arrowData.image) {\n ctx.save();\n ctx.translate(arrowData.point.x, arrowData.point.y);\n ctx.rotate(Math.PI / 2 + arrowData.angle);\n var width = arrowData.imageWidth != null ? arrowData.imageWidth : arrowData.image.width;\n var height = arrowData.imageHeight != null ? arrowData.imageHeight : arrowData.image.height;\n arrowData.image.drawImageAtPosition(ctx, 1,\n // scale\n -width / 2,\n // x\n 0,\n // y\n width, height);\n ctx.restore();\n }\n return false;\n }\n }]);\n return Image;\n}(EndPoint);\n/**\r\n * Drawing methods for the arrow endpoint.\r\n */\nvar Arrow = /*#__PURE__*/function (_EndPoint2) {\n _inherits(Arrow, _EndPoint2);\n var _super2 = _createSuper$a(Arrow);\n function Arrow() {\n _classCallCheck(this, Arrow);\n return _super2.apply(this, arguments);\n }\n _createClass(Arrow, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n // Normalized points of closed path, in the order that they should be drawn.\n // (0, 0) is the attachment point, and the point around which should be rotated\n var points = [{\n x: 0,\n y: 0\n }, {\n x: -1,\n y: 0.3\n }, {\n x: -0.9,\n y: 0\n }, {\n x: -1,\n y: -0.3\n }];\n EndPoint.transform(points, arrowData);\n EndPoint.drawPath(ctx, points);\n return true;\n }\n }]);\n return Arrow;\n}(EndPoint);\n/**\r\n * Drawing methods for the crow endpoint.\r\n */\nvar Crow = /*#__PURE__*/function () {\n function Crow() {\n _classCallCheck(this, Crow);\n }\n _createClass(Crow, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n // Normalized points of closed path, in the order that they should be drawn.\n // (0, 0) is the attachment point, and the point around which should be rotated\n var points = [{\n x: -1,\n y: 0\n }, {\n x: 0,\n y: 0.3\n }, {\n x: -0.4,\n y: 0\n }, {\n x: 0,\n y: -0.3\n }];\n EndPoint.transform(points, arrowData);\n EndPoint.drawPath(ctx, points);\n return true;\n }\n }]);\n return Crow;\n}();\n/**\r\n * Drawing methods for the curve endpoint.\r\n */\nvar Curve = /*#__PURE__*/function () {\n function Curve() {\n _classCallCheck(this, Curve);\n }\n _createClass(Curve, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n // Normalized points of closed path, in the order that they should be drawn.\n // (0, 0) is the attachment point, and the point around which should be rotated\n var point = {\n x: -0.4,\n y: 0\n };\n EndPoint.transform(point, arrowData);\n // Update endpoint style for drawing transparent arc.\n ctx.strokeStyle = ctx.fillStyle;\n ctx.fillStyle = \"rgba(0, 0, 0, 0)\";\n // Define curve endpoint as semicircle.\n var pi = Math.PI;\n var startAngle = arrowData.angle - pi / 2;\n var endAngle = arrowData.angle + pi / 2;\n ctx.beginPath();\n ctx.arc(point.x, point.y, arrowData.length * 0.4, startAngle, endAngle, false);\n ctx.stroke();\n return true;\n }\n }]);\n return Curve;\n}();\n/**\r\n * Drawing methods for the inverted curve endpoint.\r\n */\nvar InvertedCurve = /*#__PURE__*/function () {\n function InvertedCurve() {\n _classCallCheck(this, InvertedCurve);\n }\n _createClass(InvertedCurve, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n // Normalized points of closed path, in the order that they should be drawn.\n // (0, 0) is the attachment point, and the point around which should be rotated\n var point = {\n x: -0.3,\n y: 0\n };\n EndPoint.transform(point, arrowData);\n // Update endpoint style for drawing transparent arc.\n ctx.strokeStyle = ctx.fillStyle;\n ctx.fillStyle = \"rgba(0, 0, 0, 0)\";\n // Define inverted curve endpoint as semicircle.\n var pi = Math.PI;\n var startAngle = arrowData.angle + pi / 2;\n var endAngle = arrowData.angle + 3 * pi / 2;\n ctx.beginPath();\n ctx.arc(point.x, point.y, arrowData.length * 0.4, startAngle, endAngle, false);\n ctx.stroke();\n return true;\n }\n }]);\n return InvertedCurve;\n}();\n/**\r\n * Drawing methods for the trinagle endpoint.\r\n */\nvar Triangle = /*#__PURE__*/function () {\n function Triangle() {\n _classCallCheck(this, Triangle);\n }\n _createClass(Triangle, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n // Normalized points of closed path, in the order that they should be drawn.\n // (0, 0) is the attachment point, and the point around which should be rotated\n var points = [{\n x: 0.02,\n y: 0\n }, {\n x: -1,\n y: 0.3\n }, {\n x: -1,\n y: -0.3\n }];\n EndPoint.transform(points, arrowData);\n EndPoint.drawPath(ctx, points);\n return true;\n }\n }]);\n return Triangle;\n}();\n/**\r\n * Drawing methods for the inverted trinagle endpoint.\r\n */\nvar InvertedTriangle = /*#__PURE__*/function () {\n function InvertedTriangle() {\n _classCallCheck(this, InvertedTriangle);\n }\n _createClass(InvertedTriangle, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n // Normalized points of closed path, in the order that they should be drawn.\n // (0, 0) is the attachment point, and the point around which should be rotated\n var points = [{\n x: 0,\n y: 0.3\n }, {\n x: 0,\n y: -0.3\n }, {\n x: -1,\n y: 0\n }];\n EndPoint.transform(points, arrowData);\n EndPoint.drawPath(ctx, points);\n return true;\n }\n }]);\n return InvertedTriangle;\n}();\n/**\r\n * Drawing methods for the circle endpoint.\r\n */\nvar Circle = /*#__PURE__*/function () {\n function Circle() {\n _classCallCheck(this, Circle);\n }\n _createClass(Circle, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n var point = {\n x: -0.4,\n y: 0\n };\n EndPoint.transform(point, arrowData);\n drawCircle(ctx, point.x, point.y, arrowData.length * 0.4);\n return true;\n }\n }]);\n return Circle;\n}();\n/**\r\n * Drawing methods for the bar endpoint.\r\n */\nvar Bar = /*#__PURE__*/function () {\n function Bar() {\n _classCallCheck(this, Bar);\n }\n _createClass(Bar, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n /*\r\n var points = [\r\n {x:0, y:0.5},\r\n {x:0, y:-0.5}\r\n ];\r\n EndPoint.transform(points, arrowData);\r\n ctx.beginPath();\r\n ctx.moveTo(points[0].x, points[0].y);\r\n ctx.lineTo(points[1].x, points[1].y);\r\n ctx.stroke();\r\n */\n var points = [{\n x: 0,\n y: 0.5\n }, {\n x: 0,\n y: -0.5\n }, {\n x: -0.15,\n y: -0.5\n }, {\n x: -0.15,\n y: 0.5\n }];\n EndPoint.transform(points, arrowData);\n EndPoint.drawPath(ctx, points);\n return true;\n }\n }]);\n return Bar;\n}();\n/**\r\n * Drawing methods for the box endpoint.\r\n */\nvar Box = /*#__PURE__*/function () {\n function Box() {\n _classCallCheck(this, Box);\n }\n _createClass(Box, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n var points = [{\n x: 0,\n y: 0.3\n }, {\n x: 0,\n y: -0.3\n }, {\n x: -0.6,\n y: -0.3\n }, {\n x: -0.6,\n y: 0.3\n }];\n EndPoint.transform(points, arrowData);\n EndPoint.drawPath(ctx, points);\n return true;\n }\n }]);\n return Box;\n}();\n/**\r\n * Drawing methods for the diamond endpoint.\r\n */\nvar Diamond = /*#__PURE__*/function () {\n function Diamond() {\n _classCallCheck(this, Diamond);\n }\n _createClass(Diamond, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n var points = [{\n x: 0,\n y: 0\n }, {\n x: -0.5,\n y: -0.3\n }, {\n x: -1,\n y: 0\n }, {\n x: -0.5,\n y: 0.3\n }];\n EndPoint.transform(points, arrowData);\n EndPoint.drawPath(ctx, points);\n return true;\n }\n }]);\n return Diamond;\n}();\n/**\r\n * Drawing methods for the vee endpoint.\r\n */\nvar Vee = /*#__PURE__*/function () {\n function Vee() {\n _classCallCheck(this, Vee);\n }\n _createClass(Vee, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw this shape at the end of a line.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True because ctx.fill() can be used to fill the arrow.\r\n */\n function draw(ctx, arrowData) {\n // Normalized points of closed path, in the order that they should be drawn.\n // (0, 0) is the attachment point, and the point around which should be rotated\n var points = [{\n x: -1,\n y: 0.3\n }, {\n x: -0.5,\n y: 0\n }, {\n x: -1,\n y: -0.3\n }, {\n x: 0,\n y: 0\n }];\n EndPoint.transform(points, arrowData);\n EndPoint.drawPath(ctx, points);\n return true;\n }\n }]);\n return Vee;\n}();\n/**\r\n * Drawing methods for the endpoints.\r\n */\nvar EndPoints = /*#__PURE__*/function () {\n function EndPoints() {\n _classCallCheck(this, EndPoints);\n }\n _createClass(EndPoints, null, [{\n key: \"draw\",\n value:\n /**\r\n * Draw an endpoint.\r\n *\r\n * @param ctx - The shape will be rendered into this context.\r\n * @param arrowData - The data determining the shape.\r\n * @returns True if ctx.fill() can be used to fill the arrow, false otherwise.\r\n */\n function draw(ctx, arrowData) {\n var type;\n if (arrowData.type) {\n type = arrowData.type.toLowerCase();\n }\n switch (type) {\n case \"image\":\n return Image$1.draw(ctx, arrowData);\n case \"circle\":\n return Circle.draw(ctx, arrowData);\n case \"box\":\n return Box.draw(ctx, arrowData);\n case \"crow\":\n return Crow.draw(ctx, arrowData);\n case \"curve\":\n return Curve.draw(ctx, arrowData);\n case \"diamond\":\n return Diamond.draw(ctx, arrowData);\n case \"inv_curve\":\n return InvertedCurve.draw(ctx, arrowData);\n case \"triangle\":\n return Triangle.draw(ctx, arrowData);\n case \"inv_triangle\":\n return InvertedTriangle.draw(ctx, arrowData);\n case \"bar\":\n return Bar.draw(ctx, arrowData);\n case \"vee\":\n return Vee.draw(ctx, arrowData);\n case \"arrow\": // fall-through\n default:\n return Arrow.draw(ctx, arrowData);\n }\n }\n }]);\n return EndPoints;\n}();\n\nfunction ownKeys$1(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor$1(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$1(Object(source))).call(_context3, function (key) { _Object$defineProperty$1(target, key, _Object$getOwnPropertyDescriptor$1(source, key)); }); } return target; }\n/**\r\n * The Base Class for all edges.\r\n */\nvar EdgeBase = /*#__PURE__*/function () {\n /**\r\n * Create a new instance.\r\n *\r\n * @param options - The options object of given edge.\r\n * @param _body - The body of the network.\r\n * @param _labelModule - Label module.\r\n */\n function EdgeBase(options, _body, _labelModule) {\n _classCallCheck(this, EdgeBase);\n this._body = _body;\n this._labelModule = _labelModule;\n this.color = {};\n this.colorDirty = true;\n this.hoverWidth = 1.5;\n this.selectionWidth = 2;\n this.setOptions(options);\n this.fromPoint = this.from;\n this.toPoint = this.to;\n }\n /** @inheritDoc */\n _createClass(EdgeBase, [{\n key: \"connect\",\n value: function connect() {\n this.from = this._body.nodes[this.options.from];\n this.to = this._body.nodes[this.options.to];\n }\n /** @inheritDoc */\n }, {\n key: \"cleanup\",\n value: function cleanup() {\n return false;\n }\n /**\r\n * Set new edge options.\r\n *\r\n * @param options - The new edge options object.\r\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n this.options = options;\n this.from = this._body.nodes[this.options.from];\n this.to = this._body.nodes[this.options.to];\n this.id = this.options.id;\n }\n /** @inheritDoc */\n }, {\n key: \"drawLine\",\n value: function drawLine(ctx, values, _selected, _hover) {\n var viaNode = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : this.getViaNode();\n // set style\n ctx.strokeStyle = this.getColor(ctx, values);\n ctx.lineWidth = values.width;\n if (values.dashes !== false) {\n this._drawDashedLine(ctx, values, viaNode);\n } else {\n this._drawLine(ctx, values, viaNode);\n }\n }\n /**\r\n * Draw a line with given style between two nodes through supplied node(s).\r\n *\r\n * @param ctx - The context that will be used for rendering.\r\n * @param values - Formatting values like color, opacity or shadow.\r\n * @param viaNode - Additional control point(s) for the edge.\r\n * @param fromPoint - TODO: Seems ignored, remove?\r\n * @param toPoint - TODO: Seems ignored, remove?\r\n */\n }, {\n key: \"_drawLine\",\n value: function _drawLine(ctx, values, viaNode, fromPoint, toPoint) {\n if (this.from != this.to) {\n // draw line\n this._line(ctx, values, viaNode, fromPoint, toPoint);\n } else {\n var _this$_getCircleData = this._getCircleData(ctx),\n _this$_getCircleData2 = _slicedToArray(_this$_getCircleData, 3),\n x = _this$_getCircleData2[0],\n y = _this$_getCircleData2[1],\n radius = _this$_getCircleData2[2];\n this._circle(ctx, values, x, y, radius);\n }\n }\n /**\r\n * Draw a dashed line with given style between two nodes through supplied node(s).\r\n *\r\n * @param ctx - The context that will be used for rendering.\r\n * @param values - Formatting values like color, opacity or shadow.\r\n * @param viaNode - Additional control point(s) for the edge.\r\n * @param _fromPoint - Ignored (TODO: remove in the future).\r\n * @param _toPoint - Ignored (TODO: remove in the future).\r\n */\n }, {\n key: \"_drawDashedLine\",\n value: function _drawDashedLine(ctx, values, viaNode, _fromPoint, _toPoint) {\n ctx.lineCap = \"round\";\n var pattern = _Array$isArray(values.dashes) ? values.dashes : [5, 5];\n // only firefox and chrome support this method, else we use the legacy one.\n if (ctx.setLineDash !== undefined) {\n ctx.save();\n // set dash settings for chrome or firefox\n ctx.setLineDash(pattern);\n ctx.lineDashOffset = 0;\n // draw the line\n if (this.from != this.to) {\n // draw line\n this._line(ctx, values, viaNode);\n } else {\n var _this$_getCircleData3 = this._getCircleData(ctx),\n _this$_getCircleData4 = _slicedToArray(_this$_getCircleData3, 3),\n x = _this$_getCircleData4[0],\n y = _this$_getCircleData4[1],\n radius = _this$_getCircleData4[2];\n this._circle(ctx, values, x, y, radius);\n }\n // restore the dash settings.\n ctx.setLineDash([0]);\n ctx.lineDashOffset = 0;\n ctx.restore();\n } else {\n // unsupporting smooth lines\n if (this.from != this.to) {\n // draw line\n drawDashedLine(ctx, this.from.x, this.from.y, this.to.x, this.to.y, pattern);\n } else {\n var _this$_getCircleData5 = this._getCircleData(ctx),\n _this$_getCircleData6 = _slicedToArray(_this$_getCircleData5, 3),\n _x = _this$_getCircleData6[0],\n _y = _this$_getCircleData6[1],\n _radius = _this$_getCircleData6[2];\n this._circle(ctx, values, _x, _y, _radius);\n }\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n ctx.stroke();\n // disable shadows for other elements.\n this.disableShadow(ctx, values);\n }\n }\n /**\r\n * Find the intersection between the border of the node and the edge.\r\n *\r\n * @param node - The node (either from or to node of the edge).\r\n * @param ctx - The context that will be used for rendering.\r\n * @param options - Additional options.\r\n * @returns Cartesian coordinates of the intersection between the border of the node and the edge.\r\n */\n }, {\n key: \"findBorderPosition\",\n value: function findBorderPosition(node, ctx, options) {\n if (this.from != this.to) {\n return this._findBorderPosition(node, ctx, options);\n } else {\n return this._findBorderPositionCircle(node, ctx, options);\n }\n }\n /** @inheritDoc */\n }, {\n key: \"findBorderPositions\",\n value: function findBorderPositions(ctx) {\n if (this.from != this.to) {\n return {\n from: this._findBorderPosition(this.from, ctx),\n to: this._findBorderPosition(this.to, ctx)\n };\n } else {\n var _context;\n var _this$_getCircleData$ = _sliceInstanceProperty(_context = this._getCircleData(ctx)).call(_context, 0, 2),\n _this$_getCircleData$2 = _slicedToArray(_this$_getCircleData$, 2),\n x = _this$_getCircleData$2[0],\n y = _this$_getCircleData$2[1];\n return {\n from: this._findBorderPositionCircle(this.from, ctx, {\n x: x,\n y: y,\n low: 0.25,\n high: 0.6,\n direction: -1\n }),\n to: this._findBorderPositionCircle(this.from, ctx, {\n x: x,\n y: y,\n low: 0.6,\n high: 0.8,\n direction: 1\n })\n };\n }\n }\n /**\r\n * Compute the center point and radius of an edge connected to the same node at both ends.\r\n *\r\n * @param ctx - The context that will be used for rendering.\r\n * @returns `[x, y, radius]`\r\n */\n }, {\n key: \"_getCircleData\",\n value: function _getCircleData(ctx) {\n var radius = this.options.selfReference.size;\n if (ctx !== undefined) {\n if (this.from.shape.width === undefined) {\n this.from.shape.resize(ctx);\n }\n }\n // get circle coordinates\n var coordinates = getSelfRefCoordinates(ctx, this.options.selfReference.angle, radius, this.from);\n return [coordinates.x, coordinates.y, radius];\n }\n /**\r\n * Get a point on a circle.\r\n *\r\n * @param x - Center of the circle on the x axis.\r\n * @param y - Center of the circle on the y axis.\r\n * @param radius - Radius of the circle.\r\n * @param position - Value between 0 (line start) and 1 (line end).\r\n * @returns Cartesian coordinates of requested point on the circle.\r\n */\n }, {\n key: \"_pointOnCircle\",\n value: function _pointOnCircle(x, y, radius, position) {\n var angle = position * 2 * Math.PI;\n return {\n x: x + radius * Math.cos(angle),\n y: y - radius * Math.sin(angle)\n };\n }\n /**\r\n * Find the intersection between the border of the node and the edge.\r\n *\r\n * @remarks\r\n * This function uses binary search to look for the point where the circle crosses the border of the node.\r\n * @param nearNode - The node (either from or to node of the edge).\r\n * @param ctx - The context that will be used for rendering.\r\n * @param options - Additional options.\r\n * @returns Cartesian coordinates of the intersection between the border of the node and the edge.\r\n */\n }, {\n key: \"_findBorderPositionCircle\",\n value: function _findBorderPositionCircle(nearNode, ctx, options) {\n var x = options.x;\n var y = options.y;\n var low = options.low;\n var high = options.high;\n var direction = options.direction;\n var maxIterations = 10;\n var radius = this.options.selfReference.size;\n var threshold = 0.05;\n var pos;\n var middle = (low + high) * 0.5;\n var endPointOffset = 0;\n if (this.options.arrowStrikethrough === true) {\n if (direction === -1) {\n endPointOffset = this.options.endPointOffset.from;\n } else if (direction === 1) {\n endPointOffset = this.options.endPointOffset.to;\n }\n }\n var iteration = 0;\n do {\n middle = (low + high) * 0.5;\n pos = this._pointOnCircle(x, y, radius, middle);\n var angle = Math.atan2(nearNode.y - pos.y, nearNode.x - pos.x);\n var distanceToBorder = nearNode.distanceToBorder(ctx, angle) + endPointOffset;\n var distanceToPoint = Math.sqrt(Math.pow(pos.x - nearNode.x, 2) + Math.pow(pos.y - nearNode.y, 2));\n var difference = distanceToBorder - distanceToPoint;\n if (Math.abs(difference) < threshold) {\n break; // found\n } else if (difference > 0) {\n // distance to nodes is larger than distance to border --> t needs to be bigger if we're looking at the to node.\n if (direction > 0) {\n low = middle;\n } else {\n high = middle;\n }\n } else {\n if (direction > 0) {\n high = middle;\n } else {\n low = middle;\n }\n }\n ++iteration;\n } while (low <= high && iteration < maxIterations);\n return _objectSpread$1(_objectSpread$1({}, pos), {}, {\n t: middle\n });\n }\n /**\r\n * Get the line width of the edge. Depends on width and whether one of the connected nodes is selected.\r\n *\r\n * @param selected - Determines wheter the line is selected.\r\n * @param hover - Determines wheter the line is being hovered, only applies if selected is false.\r\n * @returns The width of the line.\r\n */\n }, {\n key: \"getLineWidth\",\n value: function getLineWidth(selected, hover) {\n if (selected === true) {\n return Math.max(this.selectionWidth, 0.3 / this._body.view.scale);\n } else if (hover === true) {\n return Math.max(this.hoverWidth, 0.3 / this._body.view.scale);\n } else {\n return Math.max(this.options.width, 0.3 / this._body.view.scale);\n }\n }\n /**\r\n * Compute the color or gradient for given edge.\r\n *\r\n * @param ctx - The context that will be used for rendering.\r\n * @param values - Formatting values like color, opacity or shadow.\r\n * @param _selected - Ignored (TODO: remove in the future).\r\n * @param _hover - Ignored (TODO: remove in the future).\r\n * @returns Color string if single color is inherited or gradient if two.\r\n */\n }, {\n key: \"getColor\",\n value: function getColor(ctx, values) {\n if (values.inheritsColor !== false) {\n // when this is a loop edge, just use the 'from' method\n if (values.inheritsColor === \"both\" && this.from.id !== this.to.id) {\n var grd = ctx.createLinearGradient(this.from.x, this.from.y, this.to.x, this.to.y);\n var fromColor = this.from.options.color.highlight.border;\n var toColor = this.to.options.color.highlight.border;\n if (this.from.selected === false && this.to.selected === false) {\n fromColor = overrideOpacity(this.from.options.color.border, values.opacity);\n toColor = overrideOpacity(this.to.options.color.border, values.opacity);\n } else if (this.from.selected === true && this.to.selected === false) {\n toColor = this.to.options.color.border;\n } else if (this.from.selected === false && this.to.selected === true) {\n fromColor = this.from.options.color.border;\n }\n grd.addColorStop(0, fromColor);\n grd.addColorStop(1, toColor);\n // -------------------- this returns -------------------- //\n return grd;\n }\n if (values.inheritsColor === \"to\") {\n return overrideOpacity(this.to.options.color.border, values.opacity);\n } else {\n // \"from\"\n return overrideOpacity(this.from.options.color.border, values.opacity);\n }\n } else {\n return overrideOpacity(values.color, values.opacity);\n }\n }\n /**\r\n * Draw a line from a node to itself, a circle.\r\n *\r\n * @param ctx - The context that will be used for rendering.\r\n * @param values - Formatting values like color, opacity or shadow.\r\n * @param x - Center of the circle on the x axis.\r\n * @param y - Center of the circle on the y axis.\r\n * @param radius - Radius of the circle.\r\n */\n }, {\n key: \"_circle\",\n value: function _circle(ctx, values, x, y, radius) {\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n //full circle\n var angleFrom = 0;\n var angleTo = Math.PI * 2;\n if (!this.options.selfReference.renderBehindTheNode) {\n //render only parts which are not overlaping with parent node\n //need to find x,y of from point and x,y to point\n //calculating radians\n var low = this.options.selfReference.angle;\n var high = this.options.selfReference.angle + Math.PI;\n var pointTFrom = this._findBorderPositionCircle(this.from, ctx, {\n x: x,\n y: y,\n low: low,\n high: high,\n direction: -1\n });\n var pointTTo = this._findBorderPositionCircle(this.from, ctx, {\n x: x,\n y: y,\n low: low,\n high: high,\n direction: 1\n });\n angleFrom = Math.atan2(pointTFrom.y - y, pointTFrom.x - x);\n angleTo = Math.atan2(pointTTo.y - y, pointTTo.x - x);\n }\n // draw a circle\n ctx.beginPath();\n ctx.arc(x, y, radius, angleFrom, angleTo, false);\n ctx.stroke();\n // disable shadows for other elements.\n this.disableShadow(ctx, values);\n }\n /**\r\n * @inheritDoc\r\n * @remarks\r\n * http://stackoverflow.com/questions/849211/shortest-distancae-between-a-point-and-a-line-segment\r\n */\n }, {\n key: \"getDistanceToEdge\",\n value: function getDistanceToEdge(x1, y1, x2, y2, x3, y3) {\n if (this.from != this.to) {\n return this._getDistanceToEdge(x1, y1, x2, y2, x3, y3);\n } else {\n var _this$_getCircleData7 = this._getCircleData(undefined),\n _this$_getCircleData8 = _slicedToArray(_this$_getCircleData7, 3),\n x = _this$_getCircleData8[0],\n y = _this$_getCircleData8[1],\n radius = _this$_getCircleData8[2];\n var dx = x - x3;\n var dy = y - y3;\n return Math.abs(Math.sqrt(dx * dx + dy * dy) - radius);\n }\n }\n /**\r\n * Calculate the distance between a point (x3, y3) and a line segment from (x1, y1) to (x2, y2).\r\n *\r\n * @param x1 - First end of the line segment on the x axis.\r\n * @param y1 - First end of the line segment on the y axis.\r\n * @param x2 - Second end of the line segment on the x axis.\r\n * @param y2 - Second end of the line segment on the y axis.\r\n * @param x3 - Position of the point on the x axis.\r\n * @param y3 - Position of the point on the y axis.\r\n * @returns The distance between the line segment and the point.\r\n */\n }, {\n key: \"_getDistanceToLine\",\n value: function _getDistanceToLine(x1, y1, x2, y2, x3, y3) {\n var px = x2 - x1;\n var py = y2 - y1;\n var something = px * px + py * py;\n var u = ((x3 - x1) * px + (y3 - y1) * py) / something;\n if (u > 1) {\n u = 1;\n } else if (u < 0) {\n u = 0;\n }\n var x = x1 + u * px;\n var y = y1 + u * py;\n var dx = x - x3;\n var dy = y - y3;\n //# Note: If the actual distance does not matter,\n //# if you only want to compare what this function\n //# returns to other results of this function, you\n //# can just return the squared distance instead\n //# (i.e. remove the sqrt) to gain a little performance\n return Math.sqrt(dx * dx + dy * dy);\n }\n /** @inheritDoc */\n }, {\n key: \"getArrowData\",\n value: function getArrowData(ctx, position, viaNode, _selected, _hover, values) {\n // set lets\n var angle;\n var arrowPoint;\n var node1;\n var node2;\n var reversed;\n var scaleFactor;\n var type;\n var lineWidth = values.width;\n if (position === \"from\") {\n node1 = this.from;\n node2 = this.to;\n reversed = values.fromArrowScale < 0;\n scaleFactor = Math.abs(values.fromArrowScale);\n type = values.fromArrowType;\n } else if (position === \"to\") {\n node1 = this.to;\n node2 = this.from;\n reversed = values.toArrowScale < 0;\n scaleFactor = Math.abs(values.toArrowScale);\n type = values.toArrowType;\n } else {\n node1 = this.to;\n node2 = this.from;\n reversed = values.middleArrowScale < 0;\n scaleFactor = Math.abs(values.middleArrowScale);\n type = values.middleArrowType;\n }\n var length = 15 * scaleFactor + 3 * lineWidth; // 3* lineWidth is the width of the edge.\n // if not connected to itself\n if (node1 != node2) {\n var approximateEdgeLength = _Math$hypot(node1.x - node2.x, node1.y - node2.y);\n var relativeLength = length / approximateEdgeLength;\n if (position !== \"middle\") {\n // draw arrow head\n if (this.options.smooth.enabled === true) {\n var pointT = this._findBorderPosition(node1, ctx, {\n via: viaNode\n });\n var guidePos = this.getPoint(pointT.t + relativeLength * (position === \"from\" ? 1 : -1), viaNode);\n angle = Math.atan2(pointT.y - guidePos.y, pointT.x - guidePos.x);\n arrowPoint = pointT;\n } else {\n angle = Math.atan2(node1.y - node2.y, node1.x - node2.x);\n arrowPoint = this._findBorderPosition(node1, ctx);\n }\n } else {\n // Negative half length reverses arrow direction.\n var halfLength = (reversed ? -relativeLength : relativeLength) / 2;\n var guidePos1 = this.getPoint(0.5 + halfLength, viaNode);\n var guidePos2 = this.getPoint(0.5 - halfLength, viaNode);\n angle = Math.atan2(guidePos1.y - guidePos2.y, guidePos1.x - guidePos2.x);\n arrowPoint = this.getPoint(0.5, viaNode);\n }\n } else {\n // draw circle\n var _this$_getCircleData9 = this._getCircleData(ctx),\n _this$_getCircleData10 = _slicedToArray(_this$_getCircleData9, 3),\n x = _this$_getCircleData10[0],\n y = _this$_getCircleData10[1],\n radius = _this$_getCircleData10[2];\n if (position === \"from\") {\n var low = this.options.selfReference.angle;\n var high = this.options.selfReference.angle + Math.PI;\n var _pointT = this._findBorderPositionCircle(this.from, ctx, {\n x: x,\n y: y,\n low: low,\n high: high,\n direction: -1\n });\n angle = _pointT.t * -2 * Math.PI + 1.5 * Math.PI + 0.1 * Math.PI;\n arrowPoint = _pointT;\n } else if (position === \"to\") {\n var _low = this.options.selfReference.angle;\n var _high = this.options.selfReference.angle + Math.PI;\n var _pointT2 = this._findBorderPositionCircle(this.from, ctx, {\n x: x,\n y: y,\n low: _low,\n high: _high,\n direction: 1\n });\n angle = _pointT2.t * -2 * Math.PI + 1.5 * Math.PI - 1.1 * Math.PI;\n arrowPoint = _pointT2;\n } else {\n var pos = this.options.selfReference.angle / (2 * Math.PI);\n arrowPoint = this._pointOnCircle(x, y, radius, pos);\n angle = pos * -2 * Math.PI + 1.5 * Math.PI + 0.1 * Math.PI;\n }\n }\n var xi = arrowPoint.x - length * 0.9 * Math.cos(angle);\n var yi = arrowPoint.y - length * 0.9 * Math.sin(angle);\n var arrowCore = {\n x: xi,\n y: yi\n };\n return {\n point: arrowPoint,\n core: arrowCore,\n angle: angle,\n length: length,\n type: type\n };\n }\n /** @inheritDoc */\n }, {\n key: \"drawArrowHead\",\n value: function drawArrowHead(ctx, values, _selected, _hover, arrowData) {\n // set style\n ctx.strokeStyle = this.getColor(ctx, values);\n ctx.fillStyle = ctx.strokeStyle;\n ctx.lineWidth = values.width;\n var canFill = EndPoints.draw(ctx, arrowData);\n if (canFill) {\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n _fillInstanceProperty(ctx).call(ctx);\n // disable shadows for other elements.\n this.disableShadow(ctx, values);\n }\n }\n /**\r\n * Set the shadow formatting values in the context if enabled, do nothing otherwise.\r\n *\r\n * @param ctx - The context that will be used for rendering.\r\n * @param values - Formatting values for the shadow.\r\n */\n }, {\n key: \"enableShadow\",\n value: function enableShadow(ctx, values) {\n if (values.shadow === true) {\n ctx.shadowColor = values.shadowColor;\n ctx.shadowBlur = values.shadowSize;\n ctx.shadowOffsetX = values.shadowX;\n ctx.shadowOffsetY = values.shadowY;\n }\n }\n /**\r\n * Reset the shadow formatting values in the context if enabled, do nothing otherwise.\r\n *\r\n * @param ctx - The context that will be used for rendering.\r\n * @param values - Formatting values for the shadow.\r\n */\n }, {\n key: \"disableShadow\",\n value: function disableShadow(ctx, values) {\n if (values.shadow === true) {\n ctx.shadowColor = \"rgba(0,0,0,0)\";\n ctx.shadowBlur = 0;\n ctx.shadowOffsetX = 0;\n ctx.shadowOffsetY = 0;\n }\n }\n /**\r\n * Render the background according to the formatting values.\r\n *\r\n * @param ctx - The context that will be used for rendering.\r\n * @param values - Formatting values for the background.\r\n */\n }, {\n key: \"drawBackground\",\n value: function drawBackground(ctx, values) {\n if (values.background !== false) {\n // save original line attrs\n var origCtxAttr = {\n strokeStyle: ctx.strokeStyle,\n lineWidth: ctx.lineWidth,\n dashes: ctx.dashes\n };\n ctx.strokeStyle = values.backgroundColor;\n ctx.lineWidth = values.backgroundSize;\n this.setStrokeDashed(ctx, values.backgroundDashes);\n ctx.stroke();\n // restore original line attrs\n ctx.strokeStyle = origCtxAttr.strokeStyle;\n ctx.lineWidth = origCtxAttr.lineWidth;\n ctx.dashes = origCtxAttr.dashes;\n this.setStrokeDashed(ctx, values.dashes);\n }\n }\n /**\r\n * Set the line dash pattern if supported. Logs a warning to the console if it isn't supported.\r\n *\r\n * @param ctx - The context that will be used for rendering.\r\n * @param dashes - The pattern [line, space, line…], true for default dashed line or false for normal line.\r\n */\n }, {\n key: \"setStrokeDashed\",\n value: function setStrokeDashed(ctx, dashes) {\n if (dashes !== false) {\n if (ctx.setLineDash !== undefined) {\n var pattern = _Array$isArray(dashes) ? dashes : [5, 5];\n ctx.setLineDash(pattern);\n } else {\n console.warn(\"setLineDash is not supported in this browser. The dashed stroke cannot be used.\");\n }\n } else {\n if (ctx.setLineDash !== undefined) {\n ctx.setLineDash([]);\n } else {\n console.warn(\"setLineDash is not supported in this browser. The dashed stroke cannot be used.\");\n }\n }\n }\n }]);\n return EdgeBase;\n}();\n\nfunction ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor$1(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty$1(target, key, _Object$getOwnPropertyDescriptor$1(source, key)); }); } return target; }\nfunction _createSuper$9(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$9(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$9() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * The Base Class for all Bezier edges.\r\n * Bezier curves are used to model smooth gradual curves in paths between nodes.\r\n */\nvar BezierEdgeBase = /*#__PURE__*/function (_EdgeBase) {\n _inherits(BezierEdgeBase, _EdgeBase);\n var _super = _createSuper$9(BezierEdgeBase);\n /**\r\n * Create a new instance.\r\n *\r\n * @param options - The options object of given edge.\r\n * @param body - The body of the network.\r\n * @param labelModule - Label module.\r\n */\n function BezierEdgeBase(options, body, labelModule) {\n _classCallCheck(this, BezierEdgeBase);\n return _super.call(this, options, body, labelModule);\n }\n /**\r\n * Find the intersection between the border of the node and the edge.\r\n *\r\n * @remarks\r\n * This function uses binary search to look for the point where the bezier curve crosses the border of the node.\r\n * @param nearNode - The node (either from or to node of the edge).\r\n * @param ctx - The context that will be used for rendering.\r\n * @param viaNode - Additional node(s) the edge passes through.\r\n * @returns Cartesian coordinates of the intersection between the border of the node and the edge.\r\n */\n _createClass(BezierEdgeBase, [{\n key: \"_findBorderPositionBezier\",\n value: function _findBorderPositionBezier(nearNode, ctx) {\n var viaNode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this._getViaCoordinates();\n var maxIterations = 10;\n var threshold = 0.2;\n var from = false;\n var high = 1;\n var low = 0;\n var node = this.to;\n var pos;\n var middle;\n var endPointOffset = this.options.endPointOffset ? this.options.endPointOffset.to : 0;\n if (nearNode.id === this.from.id) {\n node = this.from;\n from = true;\n endPointOffset = this.options.endPointOffset ? this.options.endPointOffset.from : 0;\n }\n if (this.options.arrowStrikethrough === false) {\n endPointOffset = 0;\n }\n var iteration = 0;\n do {\n middle = (low + high) * 0.5;\n pos = this.getPoint(middle, viaNode);\n var angle = Math.atan2(node.y - pos.y, node.x - pos.x);\n var distanceToBorder = node.distanceToBorder(ctx, angle) + endPointOffset;\n var distanceToPoint = Math.sqrt(Math.pow(pos.x - node.x, 2) + Math.pow(pos.y - node.y, 2));\n var difference = distanceToBorder - distanceToPoint;\n if (Math.abs(difference) < threshold) {\n break; // found\n } else if (difference < 0) {\n // distance to nodes is larger than distance to border --> t needs to be bigger if we're looking at the to node.\n if (from === false) {\n low = middle;\n } else {\n high = middle;\n }\n } else {\n if (from === false) {\n high = middle;\n } else {\n low = middle;\n }\n }\n ++iteration;\n } while (low <= high && iteration < maxIterations);\n return _objectSpread(_objectSpread({}, pos), {}, {\n t: middle\n });\n }\n /**\r\n * Calculate the distance between a point (x3,y3) and a line segment from (x1,y1) to (x2,y2).\r\n *\r\n * @remarks\r\n * http://stackoverflow.com/questions/849211/shortest-distancae-between-a-point-and-a-line-segment\r\n * @param x1 - First end of the line segment on the x axis.\r\n * @param y1 - First end of the line segment on the y axis.\r\n * @param x2 - Second end of the line segment on the x axis.\r\n * @param y2 - Second end of the line segment on the y axis.\r\n * @param x3 - Position of the point on the x axis.\r\n * @param y3 - Position of the point on the y axis.\r\n * @param via - The control point for the edge.\r\n * @returns The distance between the line segment and the point.\r\n */\n }, {\n key: \"_getDistanceToBezierEdge\",\n value: function _getDistanceToBezierEdge(x1, y1, x2, y2, x3, y3, via) {\n // x3,y3 is the point\n var minDistance = 1e9;\n var distance;\n var i, t, x, y;\n var lastX = x1;\n var lastY = y1;\n for (i = 1; i < 10; i++) {\n t = 0.1 * i;\n x = Math.pow(1 - t, 2) * x1 + 2 * t * (1 - t) * via.x + Math.pow(t, 2) * x2;\n y = Math.pow(1 - t, 2) * y1 + 2 * t * (1 - t) * via.y + Math.pow(t, 2) * y2;\n if (i > 0) {\n distance = this._getDistanceToLine(lastX, lastY, x, y, x3, y3);\n minDistance = distance < minDistance ? distance : minDistance;\n }\n lastX = x;\n lastY = y;\n }\n return minDistance;\n }\n /**\r\n * Render a bezier curve between two nodes.\r\n *\r\n * @remarks\r\n * The method accepts zero, one or two control points.\r\n * Passing zero control points just draws a straight line.\r\n * @param ctx - The context that will be used for rendering.\r\n * @param values - Style options for edge drawing.\r\n * @param viaNode1 - First control point for curve drawing.\r\n * @param viaNode2 - Second control point for curve drawing.\r\n */\n }, {\n key: \"_bezierCurve\",\n value: function _bezierCurve(ctx, values, viaNode1, viaNode2) {\n ctx.beginPath();\n ctx.moveTo(this.fromPoint.x, this.fromPoint.y);\n if (viaNode1 != null && viaNode1.x != null) {\n if (viaNode2 != null && viaNode2.x != null) {\n ctx.bezierCurveTo(viaNode1.x, viaNode1.y, viaNode2.x, viaNode2.y, this.toPoint.x, this.toPoint.y);\n } else {\n ctx.quadraticCurveTo(viaNode1.x, viaNode1.y, this.toPoint.x, this.toPoint.y);\n }\n } else {\n // fallback to normal straight edge\n ctx.lineTo(this.toPoint.x, this.toPoint.y);\n }\n // draw a background\n this.drawBackground(ctx, values);\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n ctx.stroke();\n this.disableShadow(ctx, values);\n }\n /** @inheritDoc */\n }, {\n key: \"getViaNode\",\n value: function getViaNode() {\n return this._getViaCoordinates();\n }\n }]);\n return BezierEdgeBase;\n}(EdgeBase);\n\nfunction _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$8() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * A Dynamic Bezier Edge. Bezier curves are used to model smooth gradual\r\n * curves in paths between nodes. The Dynamic piece refers to how the curve\r\n * reacts to physics changes.\r\n *\r\n * @augments BezierEdgeBase\r\n */\nvar BezierEdgeDynamic = /*#__PURE__*/function (_BezierEdgeBase) {\n _inherits(BezierEdgeDynamic, _BezierEdgeBase);\n var _super = _createSuper$8(BezierEdgeDynamic);\n /**\r\n * Create a new instance.\r\n *\r\n * @param options - The options object of given edge.\r\n * @param body - The body of the network.\r\n * @param labelModule - Label module.\r\n */\n function BezierEdgeDynamic(options, body, labelModule) {\n var _this;\n _classCallCheck(this, BezierEdgeDynamic);\n //this.via = undefined; // Here for completeness but not allowed to defined before super() is invoked.\n _this = _super.call(this, options, body, labelModule); // --> this calls the setOptions below\n _this.via = _this.via; // constructor → super → super → setOptions → setupSupportNode\n _this._boundFunction = function () {\n _this.positionBezierNode();\n };\n _this._body.emitter.on(\"_repositionBezierNodes\", _this._boundFunction);\n return _this;\n }\n /** @inheritDoc */\n _createClass(BezierEdgeDynamic, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n _get(_getPrototypeOf(BezierEdgeDynamic.prototype), \"setOptions\", this).call(this, options);\n // check if the physics has changed.\n var physicsChange = false;\n if (this.options.physics !== options.physics) {\n physicsChange = true;\n }\n // set the options and the to and from nodes\n this.options = options;\n this.id = this.options.id;\n this.from = this._body.nodes[this.options.from];\n this.to = this._body.nodes[this.options.to];\n // setup the support node and connect\n this.setupSupportNode();\n this.connect();\n // when we change the physics state of the edge, we reposition the support node.\n if (physicsChange === true) {\n this.via.setOptions({\n physics: this.options.physics\n });\n this.positionBezierNode();\n }\n }\n /** @inheritDoc */\n }, {\n key: \"connect\",\n value: function connect() {\n this.from = this._body.nodes[this.options.from];\n this.to = this._body.nodes[this.options.to];\n if (this.from === undefined || this.to === undefined || this.options.physics === false) {\n this.via.setOptions({\n physics: false\n });\n } else {\n // fix weird behaviour where a self referencing node has physics enabled\n if (this.from.id === this.to.id) {\n this.via.setOptions({\n physics: false\n });\n } else {\n this.via.setOptions({\n physics: true\n });\n }\n }\n }\n /** @inheritDoc */\n }, {\n key: \"cleanup\",\n value: function cleanup() {\n this._body.emitter.off(\"_repositionBezierNodes\", this._boundFunction);\n if (this.via !== undefined) {\n delete this._body.nodes[this.via.id];\n this.via = undefined;\n return true;\n }\n return false;\n }\n /**\r\n * Create and add a support node if not already present.\r\n *\r\n * @remarks\r\n * Bezier curves require an anchor point to calculate the smooth flow.\r\n * These points are nodes.\r\n * These nodes are invisible but are used for the force calculation.\r\n *\r\n * The changed data is not called, if needed, it is returned by the main edge constructor.\r\n */\n }, {\n key: \"setupSupportNode\",\n value: function setupSupportNode() {\n if (this.via === undefined) {\n var nodeId = \"edgeId:\" + this.id;\n var node = this._body.functions.createNode({\n id: nodeId,\n shape: \"circle\",\n physics: true,\n hidden: true\n });\n this._body.nodes[nodeId] = node;\n this.via = node;\n this.via.parentEdgeId = this.id;\n this.positionBezierNode();\n }\n }\n /**\r\n * Position bezier node.\r\n */\n }, {\n key: \"positionBezierNode\",\n value: function positionBezierNode() {\n if (this.via !== undefined && this.from !== undefined && this.to !== undefined) {\n this.via.x = 0.5 * (this.from.x + this.to.x);\n this.via.y = 0.5 * (this.from.y + this.to.y);\n } else if (this.via !== undefined) {\n this.via.x = 0;\n this.via.y = 0;\n }\n }\n /** @inheritDoc */\n }, {\n key: \"_line\",\n value: function _line(ctx, values, viaNode) {\n this._bezierCurve(ctx, values, viaNode);\n }\n /** @inheritDoc */\n }, {\n key: \"_getViaCoordinates\",\n value: function _getViaCoordinates() {\n return this.via;\n }\n /** @inheritDoc */\n }, {\n key: \"getViaNode\",\n value: function getViaNode() {\n return this.via;\n }\n /** @inheritDoc */\n }, {\n key: \"getPoint\",\n value: function getPoint(position) {\n var viaNode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.via;\n if (this.from === this.to) {\n var _this$_getCircleData = this._getCircleData(),\n _this$_getCircleData2 = _slicedToArray(_this$_getCircleData, 3),\n cx = _this$_getCircleData2[0],\n cy = _this$_getCircleData2[1],\n cr = _this$_getCircleData2[2];\n var a = 2 * Math.PI * (1 - position);\n return {\n x: cx + cr * Math.sin(a),\n y: cy + cr - cr * (1 - Math.cos(a))\n };\n } else {\n return {\n x: Math.pow(1 - position, 2) * this.fromPoint.x + 2 * position * (1 - position) * viaNode.x + Math.pow(position, 2) * this.toPoint.x,\n y: Math.pow(1 - position, 2) * this.fromPoint.y + 2 * position * (1 - position) * viaNode.y + Math.pow(position, 2) * this.toPoint.y\n };\n }\n }\n /** @inheritDoc */\n }, {\n key: \"_findBorderPosition\",\n value: function _findBorderPosition(nearNode, ctx) {\n return this._findBorderPositionBezier(nearNode, ctx, this.via);\n }\n /** @inheritDoc */\n }, {\n key: \"_getDistanceToEdge\",\n value: function _getDistanceToEdge(x1, y1, x2, y2, x3, y3) {\n // x3,y3 is the point\n return this._getDistanceToBezierEdge(x1, y1, x2, y2, x3, y3, this.via);\n }\n }]);\n return BezierEdgeDynamic;\n}(BezierEdgeBase);\n\nfunction _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$7() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * A Static Bezier Edge. Bezier curves are used to model smooth gradual curves in paths between nodes.\r\n */\nvar BezierEdgeStatic = /*#__PURE__*/function (_BezierEdgeBase) {\n _inherits(BezierEdgeStatic, _BezierEdgeBase);\n var _super = _createSuper$7(BezierEdgeStatic);\n /**\r\n * Create a new instance.\r\n *\r\n * @param options - The options object of given edge.\r\n * @param body - The body of the network.\r\n * @param labelModule - Label module.\r\n */\n function BezierEdgeStatic(options, body, labelModule) {\n _classCallCheck(this, BezierEdgeStatic);\n return _super.call(this, options, body, labelModule);\n }\n /** @inheritDoc */\n _createClass(BezierEdgeStatic, [{\n key: \"_line\",\n value: function _line(ctx, values, viaNode) {\n this._bezierCurve(ctx, values, viaNode);\n }\n /** @inheritDoc */\n }, {\n key: \"getViaNode\",\n value: function getViaNode() {\n return this._getViaCoordinates();\n }\n /**\r\n * Compute the coordinates of the via node.\r\n *\r\n * @remarks\r\n * We do not use the to and fromPoints here to make the via nodes the same as edges without arrows.\r\n * @returns Cartesian coordinates of the via node.\r\n */\n }, {\n key: \"_getViaCoordinates\",\n value: function _getViaCoordinates() {\n // Assumption: x/y coordinates in from/to always defined\n var factor = this.options.smooth.roundness;\n var type = this.options.smooth.type;\n var dx = Math.abs(this.from.x - this.to.x);\n var dy = Math.abs(this.from.y - this.to.y);\n if (type === \"discrete\" || type === \"diagonalCross\") {\n var stepX;\n var stepY;\n if (dx <= dy) {\n stepX = stepY = factor * dy;\n } else {\n stepX = stepY = factor * dx;\n }\n if (this.from.x > this.to.x) {\n stepX = -stepX;\n }\n if (this.from.y >= this.to.y) {\n stepY = -stepY;\n }\n var xVia = this.from.x + stepX;\n var yVia = this.from.y + stepY;\n if (type === \"discrete\") {\n if (dx <= dy) {\n xVia = dx < factor * dy ? this.from.x : xVia;\n } else {\n yVia = dy < factor * dx ? this.from.y : yVia;\n }\n }\n return {\n x: xVia,\n y: yVia\n };\n } else if (type === \"straightCross\") {\n var _stepX = (1 - factor) * dx;\n var _stepY = (1 - factor) * dy;\n if (dx <= dy) {\n // up - down\n _stepX = 0;\n if (this.from.y < this.to.y) {\n _stepY = -_stepY;\n }\n } else {\n // left - right\n if (this.from.x < this.to.x) {\n _stepX = -_stepX;\n }\n _stepY = 0;\n }\n return {\n x: this.to.x + _stepX,\n y: this.to.y + _stepY\n };\n } else if (type === \"horizontal\") {\n var _stepX2 = (1 - factor) * dx;\n if (this.from.x < this.to.x) {\n _stepX2 = -_stepX2;\n }\n return {\n x: this.to.x + _stepX2,\n y: this.from.y\n };\n } else if (type === \"vertical\") {\n var _stepY2 = (1 - factor) * dy;\n if (this.from.y < this.to.y) {\n _stepY2 = -_stepY2;\n }\n return {\n x: this.from.x,\n y: this.to.y + _stepY2\n };\n } else if (type === \"curvedCW\") {\n dx = this.to.x - this.from.x;\n dy = this.from.y - this.to.y;\n var radius = Math.sqrt(dx * dx + dy * dy);\n var pi = Math.PI;\n var originalAngle = Math.atan2(dy, dx);\n var myAngle = (originalAngle + (factor * 0.5 + 0.5) * pi) % (2 * pi);\n return {\n x: this.from.x + (factor * 0.5 + 0.5) * radius * Math.sin(myAngle),\n y: this.from.y + (factor * 0.5 + 0.5) * radius * Math.cos(myAngle)\n };\n } else if (type === \"curvedCCW\") {\n dx = this.to.x - this.from.x;\n dy = this.from.y - this.to.y;\n var _radius = Math.sqrt(dx * dx + dy * dy);\n var _pi = Math.PI;\n var _originalAngle = Math.atan2(dy, dx);\n var _myAngle = (_originalAngle + (-factor * 0.5 + 0.5) * _pi) % (2 * _pi);\n return {\n x: this.from.x + (factor * 0.5 + 0.5) * _radius * Math.sin(_myAngle),\n y: this.from.y + (factor * 0.5 + 0.5) * _radius * Math.cos(_myAngle)\n };\n } else {\n // continuous\n var _stepX3;\n var _stepY3;\n if (dx <= dy) {\n _stepX3 = _stepY3 = factor * dy;\n } else {\n _stepX3 = _stepY3 = factor * dx;\n }\n if (this.from.x > this.to.x) {\n _stepX3 = -_stepX3;\n }\n if (this.from.y >= this.to.y) {\n _stepY3 = -_stepY3;\n }\n var _xVia = this.from.x + _stepX3;\n var _yVia = this.from.y + _stepY3;\n if (dx <= dy) {\n if (this.from.x <= this.to.x) {\n _xVia = this.to.x < _xVia ? this.to.x : _xVia;\n } else {\n _xVia = this.to.x > _xVia ? this.to.x : _xVia;\n }\n } else {\n if (this.from.y >= this.to.y) {\n _yVia = this.to.y > _yVia ? this.to.y : _yVia;\n } else {\n _yVia = this.to.y < _yVia ? this.to.y : _yVia;\n }\n }\n return {\n x: _xVia,\n y: _yVia\n };\n }\n }\n /** @inheritDoc */\n }, {\n key: \"_findBorderPosition\",\n value: function _findBorderPosition(nearNode, ctx) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n return this._findBorderPositionBezier(nearNode, ctx, options.via);\n }\n /** @inheritDoc */\n }, {\n key: \"_getDistanceToEdge\",\n value: function _getDistanceToEdge(x1, y1, x2, y2, x3, y3) {\n var viaNode = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : this._getViaCoordinates();\n // x3,y3 is the point\n return this._getDistanceToBezierEdge(x1, y1, x2, y2, x3, y3, viaNode);\n }\n /** @inheritDoc */\n }, {\n key: \"getPoint\",\n value: function getPoint(position) {\n var viaNode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this._getViaCoordinates();\n var t = position;\n var x = Math.pow(1 - t, 2) * this.fromPoint.x + 2 * t * (1 - t) * viaNode.x + Math.pow(t, 2) * this.toPoint.x;\n var y = Math.pow(1 - t, 2) * this.fromPoint.y + 2 * t * (1 - t) * viaNode.y + Math.pow(t, 2) * this.toPoint.y;\n return {\n x: x,\n y: y\n };\n }\n }]);\n return BezierEdgeStatic;\n}(BezierEdgeBase);\n\nfunction _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$6() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * A Base Class for all Cubic Bezier Edges. Bezier curves are used to model\r\n * smooth gradual curves in paths between nodes.\r\n *\r\n * @augments BezierEdgeBase\r\n */\nvar CubicBezierEdgeBase = /*#__PURE__*/function (_BezierEdgeBase) {\n _inherits(CubicBezierEdgeBase, _BezierEdgeBase);\n var _super = _createSuper$6(CubicBezierEdgeBase);\n /**\r\n * Create a new instance.\r\n *\r\n * @param options - The options object of given edge.\r\n * @param body - The body of the network.\r\n * @param labelModule - Label module.\r\n */\n function CubicBezierEdgeBase(options, body, labelModule) {\n _classCallCheck(this, CubicBezierEdgeBase);\n return _super.call(this, options, body, labelModule);\n }\n /**\r\n * Calculate the distance between a point (x3,y3) and a line segment from (x1,y1) to (x2,y2).\r\n *\r\n * @remarks\r\n * http://stackoverflow.com/questions/849211/shortest-distancae-between-a-point-and-a-line-segment\r\n * https://en.wikipedia.org/wiki/B%C3%A9zier_curve\r\n * @param x1 - First end of the line segment on the x axis.\r\n * @param y1 - First end of the line segment on the y axis.\r\n * @param x2 - Second end of the line segment on the x axis.\r\n * @param y2 - Second end of the line segment on the y axis.\r\n * @param x3 - Position of the point on the x axis.\r\n * @param y3 - Position of the point on the y axis.\r\n * @param via1 - The first point this edge passes through.\r\n * @param via2 - The second point this edge passes through.\r\n * @returns The distance between the line segment and the point.\r\n */\n _createClass(CubicBezierEdgeBase, [{\n key: \"_getDistanceToBezierEdge2\",\n value: function _getDistanceToBezierEdge2(x1, y1, x2, y2, x3, y3, via1, via2) {\n // x3,y3 is the point\n var minDistance = 1e9;\n var lastX = x1;\n var lastY = y1;\n var vec = [0, 0, 0, 0];\n for (var i = 1; i < 10; i++) {\n var t = 0.1 * i;\n vec[0] = Math.pow(1 - t, 3);\n vec[1] = 3 * t * Math.pow(1 - t, 2);\n vec[2] = 3 * Math.pow(t, 2) * (1 - t);\n vec[3] = Math.pow(t, 3);\n var x = vec[0] * x1 + vec[1] * via1.x + vec[2] * via2.x + vec[3] * x2;\n var y = vec[0] * y1 + vec[1] * via1.y + vec[2] * via2.y + vec[3] * y2;\n if (i > 0) {\n var distance = this._getDistanceToLine(lastX, lastY, x, y, x3, y3);\n minDistance = distance < minDistance ? distance : minDistance;\n }\n lastX = x;\n lastY = y;\n }\n return minDistance;\n }\n }]);\n return CubicBezierEdgeBase;\n}(BezierEdgeBase);\n\nfunction _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$5() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * A Cubic Bezier Edge. Bezier curves are used to model smooth gradual curves in paths between nodes.\r\n */\nvar CubicBezierEdge = /*#__PURE__*/function (_CubicBezierEdgeBase) {\n _inherits(CubicBezierEdge, _CubicBezierEdgeBase);\n var _super = _createSuper$5(CubicBezierEdge);\n /**\r\n * Create a new instance.\r\n *\r\n * @param options - The options object of given edge.\r\n * @param body - The body of the network.\r\n * @param labelModule - Label module.\r\n */\n function CubicBezierEdge(options, body, labelModule) {\n _classCallCheck(this, CubicBezierEdge);\n return _super.call(this, options, body, labelModule);\n }\n /** @inheritDoc */\n _createClass(CubicBezierEdge, [{\n key: \"_line\",\n value: function _line(ctx, values, viaNodes) {\n // get the coordinates of the support points.\n var via1 = viaNodes[0];\n var via2 = viaNodes[1];\n this._bezierCurve(ctx, values, via1, via2);\n }\n /**\r\n * Compute the additional points the edge passes through.\r\n *\r\n * @returns Cartesian coordinates of the points the edge passes through.\r\n */\n }, {\n key: \"_getViaCoordinates\",\n value: function _getViaCoordinates() {\n var dx = this.from.x - this.to.x;\n var dy = this.from.y - this.to.y;\n var x1;\n var y1;\n var x2;\n var y2;\n var roundness = this.options.smooth.roundness;\n // horizontal if x > y or if direction is forced or if direction is horizontal\n if ((Math.abs(dx) > Math.abs(dy) || this.options.smooth.forceDirection === true || this.options.smooth.forceDirection === \"horizontal\") && this.options.smooth.forceDirection !== \"vertical\") {\n y1 = this.from.y;\n y2 = this.to.y;\n x1 = this.from.x - roundness * dx;\n x2 = this.to.x + roundness * dx;\n } else {\n y1 = this.from.y - roundness * dy;\n y2 = this.to.y + roundness * dy;\n x1 = this.from.x;\n x2 = this.to.x;\n }\n return [{\n x: x1,\n y: y1\n }, {\n x: x2,\n y: y2\n }];\n }\n /** @inheritDoc */\n }, {\n key: \"getViaNode\",\n value: function getViaNode() {\n return this._getViaCoordinates();\n }\n /** @inheritDoc */\n }, {\n key: \"_findBorderPosition\",\n value: function _findBorderPosition(nearNode, ctx) {\n return this._findBorderPositionBezier(nearNode, ctx);\n }\n /** @inheritDoc */\n }, {\n key: \"_getDistanceToEdge\",\n value: function _getDistanceToEdge(x1, y1, x2, y2, x3, y3) {\n var _ref = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : this._getViaCoordinates(),\n _ref2 = _slicedToArray(_ref, 2),\n via1 = _ref2[0],\n via2 = _ref2[1];\n // x3,y3 is the point\n return this._getDistanceToBezierEdge2(x1, y1, x2, y2, x3, y3, via1, via2);\n }\n /** @inheritDoc */\n }, {\n key: \"getPoint\",\n value: function getPoint(position) {\n var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this._getViaCoordinates(),\n _ref4 = _slicedToArray(_ref3, 2),\n via1 = _ref4[0],\n via2 = _ref4[1];\n var t = position;\n var vec = [Math.pow(1 - t, 3), 3 * t * Math.pow(1 - t, 2), 3 * Math.pow(t, 2) * (1 - t), Math.pow(t, 3)];\n var x = vec[0] * this.fromPoint.x + vec[1] * via1.x + vec[2] * via2.x + vec[3] * this.toPoint.x;\n var y = vec[0] * this.fromPoint.y + vec[1] * via1.y + vec[2] * via2.y + vec[3] * this.toPoint.y;\n return {\n x: x,\n y: y\n };\n }\n }]);\n return CubicBezierEdge;\n}(CubicBezierEdgeBase);\n\nfunction _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$4() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\r\n * A Straight Edge.\r\n */\nvar StraightEdge = /*#__PURE__*/function (_EdgeBase) {\n _inherits(StraightEdge, _EdgeBase);\n var _super = _createSuper$4(StraightEdge);\n /**\r\n * Create a new instance.\r\n *\r\n * @param options - The options object of given edge.\r\n * @param body - The body of the network.\r\n * @param labelModule - Label module.\r\n */\n function StraightEdge(options, body, labelModule) {\n _classCallCheck(this, StraightEdge);\n return _super.call(this, options, body, labelModule);\n }\n /** @inheritDoc */\n _createClass(StraightEdge, [{\n key: \"_line\",\n value: function _line(ctx, values) {\n // draw a straight line\n ctx.beginPath();\n ctx.moveTo(this.fromPoint.x, this.fromPoint.y);\n ctx.lineTo(this.toPoint.x, this.toPoint.y);\n // draw shadow if enabled\n this.enableShadow(ctx, values);\n ctx.stroke();\n this.disableShadow(ctx, values);\n }\n /** @inheritDoc */\n }, {\n key: \"getViaNode\",\n value: function getViaNode() {\n return undefined;\n }\n /** @inheritDoc */\n }, {\n key: \"getPoint\",\n value: function getPoint(position) {\n return {\n x: (1 - position) * this.fromPoint.x + position * this.toPoint.x,\n y: (1 - position) * this.fromPoint.y + position * this.toPoint.y\n };\n }\n /** @inheritDoc */\n }, {\n key: \"_findBorderPosition\",\n value: function _findBorderPosition(nearNode, ctx) {\n var node1 = this.to;\n var node2 = this.from;\n if (nearNode.id === this.from.id) {\n node1 = this.from;\n node2 = this.to;\n }\n var angle = Math.atan2(node1.y - node2.y, node1.x - node2.x);\n var dx = node1.x - node2.x;\n var dy = node1.y - node2.y;\n var edgeSegmentLength = Math.sqrt(dx * dx + dy * dy);\n var toBorderDist = nearNode.distanceToBorder(ctx, angle);\n var toBorderPoint = (edgeSegmentLength - toBorderDist) / edgeSegmentLength;\n return {\n x: (1 - toBorderPoint) * node2.x + toBorderPoint * node1.x,\n y: (1 - toBorderPoint) * node2.y + toBorderPoint * node1.y,\n t: 0\n };\n }\n /** @inheritDoc */\n }, {\n key: \"_getDistanceToEdge\",\n value: function _getDistanceToEdge(x1, y1, x2, y2, x3, y3) {\n // x3,y3 is the point\n return this._getDistanceToLine(x1, y1, x2, y2, x3, y3);\n }\n }]);\n return StraightEdge;\n}(EdgeBase);\n\n/**\n * An edge connects two nodes and has a specific direction.\n */\nvar Edge = /*#__PURE__*/function () {\n /**\n * @param {object} options values specific to this edge, must contain at least 'from' and 'to'\n * @param {object} body shared state from Network instance\n * @param {Network.Images} imagelist A list with images. Only needed when the edge has image arrows.\n * @param {object} globalOptions options from the EdgesHandler instance\n * @param {object} defaultOptions default options from the EdgeHandler instance. Value and reference are constant\n */\n function Edge(options, body, imagelist, globalOptions, defaultOptions) {\n _classCallCheck(this, Edge);\n if (body === undefined) {\n throw new Error(\"No body provided\");\n }\n\n // Since globalOptions is constant in values as well as reference,\n // Following needs to be done only once.\n\n this.options = bridgeObject(globalOptions);\n this.globalOptions = globalOptions;\n this.defaultOptions = defaultOptions;\n this.body = body;\n this.imagelist = imagelist;\n\n // initialize variables\n this.id = undefined;\n this.fromId = undefined;\n this.toId = undefined;\n this.selected = false;\n this.hover = false;\n this.labelDirty = true;\n this.baseWidth = this.options.width;\n this.baseFontSize = this.options.font.size;\n this.from = undefined; // a node\n this.to = undefined; // a node\n\n this.edgeType = undefined;\n this.connected = false;\n this.labelModule = new Label(this.body, this.options, true /* It's an edge label */);\n\n this.setOptions(options);\n }\n\n /**\n * Set or overwrite options for the edge\n *\n * @param {object} options an object with options\n * @returns {undefined|boolean} undefined if no options, true if layout affecting data changed, false otherwise.\n */\n _createClass(Edge, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n if (!options) {\n return;\n }\n\n // Following options if changed affect the layout.\n var affectsLayout = typeof options.physics !== \"undefined\" && this.options.physics !== options.physics || typeof options.hidden !== \"undefined\" && (this.options.hidden || false) !== (options.hidden || false) || typeof options.from !== \"undefined\" && this.options.from !== options.from || typeof options.to !== \"undefined\" && this.options.to !== options.to;\n Edge.parseOptions(this.options, options, true, this.globalOptions);\n if (options.id !== undefined) {\n this.id = options.id;\n }\n if (options.from !== undefined) {\n this.fromId = options.from;\n }\n if (options.to !== undefined) {\n this.toId = options.to;\n }\n if (options.title !== undefined) {\n this.title = options.title;\n }\n if (options.value !== undefined) {\n options.value = _parseFloat(options.value);\n }\n var pile = [options, this.options, this.defaultOptions];\n this.chooser = choosify(\"edge\", pile);\n\n // update label Module\n this.updateLabelModule(options);\n\n // Update edge type, this if changed affects the layout.\n affectsLayout = this.updateEdgeType() || affectsLayout;\n\n // if anything has been updates, reset the selection width and the hover width\n this._setInteractionWidths();\n\n // A node is connected when it has a from and to node that both exist in the network.body.nodes.\n this.connect();\n return affectsLayout;\n }\n\n /**\n *\n * @param {object} parentOptions\n * @param {object} newOptions\n * @param {boolean} [allowDeletion=false]\n * @param {object} [globalOptions={}]\n * @param {boolean} [copyFromGlobals=false]\n */\n }, {\n key: \"getFormattingValues\",\n value:\n /**\n *\n * @returns {ArrowOptions}\n */\n function getFormattingValues() {\n var toArrow = this.options.arrows.to === true || this.options.arrows.to.enabled === true;\n var fromArrow = this.options.arrows.from === true || this.options.arrows.from.enabled === true;\n var middleArrow = this.options.arrows.middle === true || this.options.arrows.middle.enabled === true;\n var inheritsColor = this.options.color.inherit;\n var values = {\n toArrow: toArrow,\n toArrowScale: this.options.arrows.to.scaleFactor,\n toArrowType: this.options.arrows.to.type,\n toArrowSrc: this.options.arrows.to.src,\n toArrowImageWidth: this.options.arrows.to.imageWidth,\n toArrowImageHeight: this.options.arrows.to.imageHeight,\n middleArrow: middleArrow,\n middleArrowScale: this.options.arrows.middle.scaleFactor,\n middleArrowType: this.options.arrows.middle.type,\n middleArrowSrc: this.options.arrows.middle.src,\n middleArrowImageWidth: this.options.arrows.middle.imageWidth,\n middleArrowImageHeight: this.options.arrows.middle.imageHeight,\n fromArrow: fromArrow,\n fromArrowScale: this.options.arrows.from.scaleFactor,\n fromArrowType: this.options.arrows.from.type,\n fromArrowSrc: this.options.arrows.from.src,\n fromArrowImageWidth: this.options.arrows.from.imageWidth,\n fromArrowImageHeight: this.options.arrows.from.imageHeight,\n arrowStrikethrough: this.options.arrowStrikethrough,\n color: inheritsColor ? undefined : this.options.color.color,\n inheritsColor: inheritsColor,\n opacity: this.options.color.opacity,\n hidden: this.options.hidden,\n length: this.options.length,\n shadow: this.options.shadow.enabled,\n shadowColor: this.options.shadow.color,\n shadowSize: this.options.shadow.size,\n shadowX: this.options.shadow.x,\n shadowY: this.options.shadow.y,\n dashes: this.options.dashes,\n width: this.options.width,\n background: this.options.background.enabled,\n backgroundColor: this.options.background.color,\n backgroundSize: this.options.background.size,\n backgroundDashes: this.options.background.dashes\n };\n if (this.selected || this.hover) {\n if (this.chooser === true) {\n if (this.selected) {\n var selectedWidth = this.options.selectionWidth;\n if (typeof selectedWidth === \"function\") {\n values.width = selectedWidth(values.width);\n } else if (typeof selectedWidth === \"number\") {\n values.width += selectedWidth;\n }\n values.width = Math.max(values.width, 0.3 / this.body.view.scale);\n values.color = this.options.color.highlight;\n values.shadow = this.options.shadow.enabled;\n } else if (this.hover) {\n var hoverWidth = this.options.hoverWidth;\n if (typeof hoverWidth === \"function\") {\n values.width = hoverWidth(values.width);\n } else if (typeof hoverWidth === \"number\") {\n values.width += hoverWidth;\n }\n values.width = Math.max(values.width, 0.3 / this.body.view.scale);\n values.color = this.options.color.hover;\n values.shadow = this.options.shadow.enabled;\n }\n } else if (typeof this.chooser === \"function\") {\n this.chooser(values, this.options.id, this.selected, this.hover);\n if (values.color !== undefined) {\n values.inheritsColor = false;\n }\n if (values.shadow === false) {\n if (values.shadowColor !== this.options.shadow.color || values.shadowSize !== this.options.shadow.size || values.shadowX !== this.options.shadow.x || values.shadowY !== this.options.shadow.y) {\n values.shadow = true;\n }\n }\n }\n } else {\n values.shadow = this.options.shadow.enabled;\n values.width = Math.max(values.width, 0.3 / this.body.view.scale);\n }\n return values;\n }\n\n /**\n * update the options in the label module\n *\n * @param {object} options\n */\n }, {\n key: \"updateLabelModule\",\n value: function updateLabelModule(options) {\n var pile = [options, this.options, this.globalOptions,\n // Currently set global edge options\n this.defaultOptions];\n this.labelModule.update(this.options, pile);\n if (this.labelModule.baseSize !== undefined) {\n this.baseFontSize = this.labelModule.baseSize;\n }\n }\n\n /**\n * update the edge type, set the options\n *\n * @returns {boolean}\n */\n }, {\n key: \"updateEdgeType\",\n value: function updateEdgeType() {\n var smooth = this.options.smooth;\n var dataChanged = false;\n var changeInType = true;\n if (this.edgeType !== undefined) {\n if (this.edgeType instanceof BezierEdgeDynamic && smooth.enabled === true && smooth.type === \"dynamic\" || this.edgeType instanceof CubicBezierEdge && smooth.enabled === true && smooth.type === \"cubicBezier\" || this.edgeType instanceof BezierEdgeStatic && smooth.enabled === true && smooth.type !== \"dynamic\" && smooth.type !== \"cubicBezier\" || this.edgeType instanceof StraightEdge && smooth.type.enabled === false) {\n changeInType = false;\n }\n if (changeInType === true) {\n dataChanged = this.cleanup();\n }\n }\n if (changeInType === true) {\n if (smooth.enabled === true) {\n if (smooth.type === \"dynamic\") {\n dataChanged = true;\n this.edgeType = new BezierEdgeDynamic(this.options, this.body, this.labelModule);\n } else if (smooth.type === \"cubicBezier\") {\n this.edgeType = new CubicBezierEdge(this.options, this.body, this.labelModule);\n } else {\n this.edgeType = new BezierEdgeStatic(this.options, this.body, this.labelModule);\n }\n } else {\n this.edgeType = new StraightEdge(this.options, this.body, this.labelModule);\n }\n } else {\n // if nothing changes, we just set the options.\n this.edgeType.setOptions(this.options);\n }\n return dataChanged;\n }\n\n /**\n * Connect an edge to its nodes\n */\n }, {\n key: \"connect\",\n value: function connect() {\n this.disconnect();\n this.from = this.body.nodes[this.fromId] || undefined;\n this.to = this.body.nodes[this.toId] || undefined;\n this.connected = this.from !== undefined && this.to !== undefined;\n if (this.connected === true) {\n this.from.attachEdge(this);\n this.to.attachEdge(this);\n } else {\n if (this.from) {\n this.from.detachEdge(this);\n }\n if (this.to) {\n this.to.detachEdge(this);\n }\n }\n this.edgeType.connect();\n }\n\n /**\n * Disconnect an edge from its nodes\n */\n }, {\n key: \"disconnect\",\n value: function disconnect() {\n if (this.from) {\n this.from.detachEdge(this);\n this.from = undefined;\n }\n if (this.to) {\n this.to.detachEdge(this);\n this.to = undefined;\n }\n this.connected = false;\n }\n\n /**\n * get the title of this edge.\n *\n * @returns {string} title The title of the edge, or undefined when no title\n * has been set.\n */\n }, {\n key: \"getTitle\",\n value: function getTitle() {\n return this.title;\n }\n\n /**\n * check if this node is selecte\n *\n * @returns {boolean} selected True if node is selected, else false\n */\n }, {\n key: \"isSelected\",\n value: function isSelected() {\n return this.selected;\n }\n\n /**\n * Retrieve the value of the edge. Can be undefined\n *\n * @returns {number} value\n */\n }, {\n key: \"getValue\",\n value: function getValue() {\n return this.options.value;\n }\n\n /**\n * Adjust the value range of the edge. The edge will adjust it's width\n * based on its value.\n *\n * @param {number} min\n * @param {number} max\n * @param {number} total\n */\n }, {\n key: \"setValueRange\",\n value: function setValueRange(min, max, total) {\n if (this.options.value !== undefined) {\n var scale = this.options.scaling.customScalingFunction(min, max, total, this.options.value);\n var widthDiff = this.options.scaling.max - this.options.scaling.min;\n if (this.options.scaling.label.enabled === true) {\n var fontDiff = this.options.scaling.label.max - this.options.scaling.label.min;\n this.options.font.size = this.options.scaling.label.min + scale * fontDiff;\n }\n this.options.width = this.options.scaling.min + scale * widthDiff;\n } else {\n this.options.width = this.baseWidth;\n this.options.font.size = this.baseFontSize;\n }\n this._setInteractionWidths();\n this.updateLabelModule();\n }\n\n /**\n *\n * @private\n */\n }, {\n key: \"_setInteractionWidths\",\n value: function _setInteractionWidths() {\n if (typeof this.options.hoverWidth === \"function\") {\n this.edgeType.hoverWidth = this.options.hoverWidth(this.options.width);\n } else {\n this.edgeType.hoverWidth = this.options.hoverWidth + this.options.width;\n }\n if (typeof this.options.selectionWidth === \"function\") {\n this.edgeType.selectionWidth = this.options.selectionWidth(this.options.width);\n } else {\n this.edgeType.selectionWidth = this.options.selectionWidth + this.options.width;\n }\n }\n\n /**\n * Redraw a edge\n * Draw this edge in the given canvas\n * The 2d context of a HTML canvas can be retrieved by canvas.getContext(\"2d\");\n *\n * @param {CanvasRenderingContext2D} ctx\n */\n }, {\n key: \"draw\",\n value: function draw(ctx) {\n var values = this.getFormattingValues();\n if (values.hidden) {\n return;\n }\n\n // get the via node from the edge type\n var viaNode = this.edgeType.getViaNode();\n\n // draw line and label\n this.edgeType.drawLine(ctx, values, this.selected, this.hover, viaNode);\n this.drawLabel(ctx, viaNode);\n }\n\n /**\n * Redraw arrows\n * Draw this arrows in the given canvas\n * The 2d context of a HTML canvas can be retrieved by canvas.getContext(\"2d\");\n *\n * @param {CanvasRenderingContext2D} ctx\n */\n }, {\n key: \"drawArrows\",\n value: function drawArrows(ctx) {\n var values = this.getFormattingValues();\n if (values.hidden) {\n return;\n }\n\n // get the via node from the edge type\n var viaNode = this.edgeType.getViaNode();\n var arrowData = {};\n\n // restore edge targets to defaults\n this.edgeType.fromPoint = this.edgeType.from;\n this.edgeType.toPoint = this.edgeType.to;\n\n // from and to arrows give a different end point for edges. we set them here\n if (values.fromArrow) {\n arrowData.from = this.edgeType.getArrowData(ctx, \"from\", viaNode, this.selected, this.hover, values);\n if (values.arrowStrikethrough === false) this.edgeType.fromPoint = arrowData.from.core;\n if (values.fromArrowSrc) {\n arrowData.from.image = this.imagelist.load(values.fromArrowSrc);\n }\n if (values.fromArrowImageWidth) {\n arrowData.from.imageWidth = values.fromArrowImageWidth;\n }\n if (values.fromArrowImageHeight) {\n arrowData.from.imageHeight = values.fromArrowImageHeight;\n }\n }\n if (values.toArrow) {\n arrowData.to = this.edgeType.getArrowData(ctx, \"to\", viaNode, this.selected, this.hover, values);\n if (values.arrowStrikethrough === false) this.edgeType.toPoint = arrowData.to.core;\n if (values.toArrowSrc) {\n arrowData.to.image = this.imagelist.load(values.toArrowSrc);\n }\n if (values.toArrowImageWidth) {\n arrowData.to.imageWidth = values.toArrowImageWidth;\n }\n if (values.toArrowImageHeight) {\n arrowData.to.imageHeight = values.toArrowImageHeight;\n }\n }\n\n // the middle arrow depends on the line, which can depend on the to and from arrows so we do this one lastly.\n if (values.middleArrow) {\n arrowData.middle = this.edgeType.getArrowData(ctx, \"middle\", viaNode, this.selected, this.hover, values);\n if (values.middleArrowSrc) {\n arrowData.middle.image = this.imagelist.load(values.middleArrowSrc);\n }\n if (values.middleArrowImageWidth) {\n arrowData.middle.imageWidth = values.middleArrowImageWidth;\n }\n if (values.middleArrowImageHeight) {\n arrowData.middle.imageHeight = values.middleArrowImageHeight;\n }\n }\n if (values.fromArrow) {\n this.edgeType.drawArrowHead(ctx, values, this.selected, this.hover, arrowData.from);\n }\n if (values.middleArrow) {\n this.edgeType.drawArrowHead(ctx, values, this.selected, this.hover, arrowData.middle);\n }\n if (values.toArrow) {\n this.edgeType.drawArrowHead(ctx, values, this.selected, this.hover, arrowData.to);\n }\n }\n\n /**\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {Node} viaNode\n */\n }, {\n key: \"drawLabel\",\n value: function drawLabel(ctx, viaNode) {\n if (this.options.label !== undefined) {\n // set style\n var node1 = this.from;\n var node2 = this.to;\n if (this.labelModule.differentState(this.selected, this.hover)) {\n this.labelModule.getTextSize(ctx, this.selected, this.hover);\n }\n var point;\n if (node1.id != node2.id) {\n this.labelModule.pointToSelf = false;\n point = this.edgeType.getPoint(0.5, viaNode);\n ctx.save();\n var rotationPoint = this._getRotation(ctx);\n if (rotationPoint.angle != 0) {\n ctx.translate(rotationPoint.x, rotationPoint.y);\n ctx.rotate(rotationPoint.angle);\n }\n\n // draw the label\n this.labelModule.draw(ctx, point.x, point.y, this.selected, this.hover);\n\n /*\n // Useful debug code: draw a border around the label\n // This should **not** be enabled in production!\n var size = this.labelModule.getSize();; // ;; intentional so lint catches it\n ctx.strokeStyle = \"#ff0000\";\n ctx.strokeRect(size.left, size.top, size.width, size.height);\n // End debug code\n */\n\n ctx.restore();\n } else {\n // Ignore the orientations.\n this.labelModule.pointToSelf = true;\n\n // get circle coordinates\n var coordinates = getSelfRefCoordinates(ctx, this.options.selfReference.angle, this.options.selfReference.size, node1);\n point = this._pointOnCircle(coordinates.x, coordinates.y, this.options.selfReference.size, this.options.selfReference.angle);\n this.labelModule.draw(ctx, point.x, point.y, this.selected, this.hover);\n }\n }\n }\n\n /**\n * Determine all visual elements of this edge instance, in which the given\n * point falls within the bounding shape.\n *\n * @param {point} point\n * @returns {Array.} list with the items which are on the point\n */\n }, {\n key: \"getItemsOnPoint\",\n value: function getItemsOnPoint(point) {\n var ret = [];\n if (this.labelModule.visible()) {\n var rotationPoint = this._getRotation();\n if (pointInRect(this.labelModule.getSize(), point, rotationPoint)) {\n ret.push({\n edgeId: this.id,\n labelId: 0\n });\n }\n }\n var obj = {\n left: point.x,\n top: point.y\n };\n if (this.isOverlappingWith(obj)) {\n ret.push({\n edgeId: this.id\n });\n }\n return ret;\n }\n\n /**\n * Check if this object is overlapping with the provided object\n *\n * @param {object} obj an object with parameters left, top\n * @returns {boolean} True if location is located on the edge\n */\n }, {\n key: \"isOverlappingWith\",\n value: function isOverlappingWith(obj) {\n if (this.connected) {\n var distMax = 10;\n var xFrom = this.from.x;\n var yFrom = this.from.y;\n var xTo = this.to.x;\n var yTo = this.to.y;\n var xObj = obj.left;\n var yObj = obj.top;\n var dist = this.edgeType.getDistanceToEdge(xFrom, yFrom, xTo, yTo, xObj, yObj);\n return dist < distMax;\n } else {\n return false;\n }\n }\n\n /**\n * Determine the rotation point, if any.\n *\n * @param {CanvasRenderingContext2D} [ctx] if passed, do a recalculation of the label size\n * @returns {rotationPoint} the point to rotate around and the angle in radians to rotate\n * @private\n */\n }, {\n key: \"_getRotation\",\n value: function _getRotation(ctx) {\n var viaNode = this.edgeType.getViaNode();\n var point = this.edgeType.getPoint(0.5, viaNode);\n if (ctx !== undefined) {\n this.labelModule.calculateLabelSize(ctx, this.selected, this.hover, point.x, point.y);\n }\n var ret = {\n x: point.x,\n y: this.labelModule.size.yLine,\n angle: 0\n };\n if (!this.labelModule.visible()) {\n return ret; // Don't even bother doing the atan2, there's nothing to draw\n }\n\n if (this.options.font.align === \"horizontal\") {\n return ret; // No need to calculate angle\n }\n\n var dy = this.from.y - this.to.y;\n var dx = this.from.x - this.to.x;\n var angle = Math.atan2(dy, dx); // radians\n\n // rotate so that label is readable\n if (angle < -1 && dx < 0 || angle > 0 && dx < 0) {\n angle += Math.PI;\n }\n ret.angle = angle;\n return ret;\n }\n\n /**\n * Get a point on a circle\n *\n * @param {number} x\n * @param {number} y\n * @param {number} radius\n * @param {number} angle\n * @returns {object} point\n * @private\n */\n }, {\n key: \"_pointOnCircle\",\n value: function _pointOnCircle(x, y, radius, angle) {\n return {\n x: x + radius * Math.cos(angle),\n y: y - radius * Math.sin(angle)\n };\n }\n\n /**\n * Sets selected state to true\n */\n }, {\n key: \"select\",\n value: function select() {\n this.selected = true;\n }\n\n /**\n * Sets selected state to false\n */\n }, {\n key: \"unselect\",\n value: function unselect() {\n this.selected = false;\n }\n\n /**\n * cleans all required things on delete\n *\n * @returns {*}\n */\n }, {\n key: \"cleanup\",\n value: function cleanup() {\n return this.edgeType.cleanup();\n }\n\n /**\n * Remove edge from the list and perform necessary cleanup.\n */\n }, {\n key: \"remove\",\n value: function remove() {\n this.cleanup();\n this.disconnect();\n delete this.body.edges[this.id];\n }\n\n /**\n * Check if both connecting nodes exist\n *\n * @returns {boolean}\n */\n }, {\n key: \"endPointsValid\",\n value: function endPointsValid() {\n return this.body.nodes[this.fromId] !== undefined && this.body.nodes[this.toId] !== undefined;\n }\n }], [{\n key: \"parseOptions\",\n value: function parseOptions(parentOptions, newOptions) {\n var allowDeletion = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var globalOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n var copyFromGlobals = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var fields = [\"endPointOffset\", \"arrowStrikethrough\", \"id\", \"from\", \"hidden\", \"hoverWidth\", \"labelHighlightBold\", \"length\", \"line\", \"opacity\", \"physics\", \"scaling\", \"selectionWidth\", \"selfReferenceSize\", \"selfReference\", \"to\", \"title\", \"value\", \"width\", \"font\", \"chosen\", \"widthConstraint\"];\n\n // only deep extend the items in the field array. These do not have shorthand.\n selectiveDeepExtend(fields, parentOptions, newOptions, allowDeletion);\n\n // Only use endPointOffset values (from and to) if it's valid values\n if (newOptions.endPointOffset !== undefined && newOptions.endPointOffset.from !== undefined) {\n if (_Number$isFinite(newOptions.endPointOffset.from)) {\n parentOptions.endPointOffset.from = newOptions.endPointOffset.from;\n } else {\n parentOptions.endPointOffset.from = globalOptions.endPointOffset.from !== undefined ? globalOptions.endPointOffset.from : 0;\n console.error(\"endPointOffset.from is not a valid number\");\n }\n }\n if (newOptions.endPointOffset !== undefined && newOptions.endPointOffset.to !== undefined) {\n if (_Number$isFinite(newOptions.endPointOffset.to)) {\n parentOptions.endPointOffset.to = newOptions.endPointOffset.to;\n } else {\n parentOptions.endPointOffset.to = globalOptions.endPointOffset.to !== undefined ? globalOptions.endPointOffset.to : 0;\n console.error(\"endPointOffset.to is not a valid number\");\n }\n }\n\n // Only copy label if it's a legal value.\n if (isValidLabel(newOptions.label)) {\n parentOptions.label = newOptions.label;\n } else if (!isValidLabel(parentOptions.label)) {\n parentOptions.label = undefined;\n }\n mergeOptions(parentOptions, newOptions, \"smooth\", globalOptions);\n mergeOptions(parentOptions, newOptions, \"shadow\", globalOptions);\n mergeOptions(parentOptions, newOptions, \"background\", globalOptions);\n if (newOptions.dashes !== undefined && newOptions.dashes !== null) {\n parentOptions.dashes = newOptions.dashes;\n } else if (allowDeletion === true && newOptions.dashes === null) {\n parentOptions.dashes = _Object$create$1(globalOptions.dashes); // this sets the pointer of the option back to the global option.\n }\n\n // set the scaling newOptions\n if (newOptions.scaling !== undefined && newOptions.scaling !== null) {\n if (newOptions.scaling.min !== undefined) {\n parentOptions.scaling.min = newOptions.scaling.min;\n }\n if (newOptions.scaling.max !== undefined) {\n parentOptions.scaling.max = newOptions.scaling.max;\n }\n mergeOptions(parentOptions.scaling, newOptions.scaling, \"label\", globalOptions.scaling);\n } else if (allowDeletion === true && newOptions.scaling === null) {\n parentOptions.scaling = _Object$create$1(globalOptions.scaling); // this sets the pointer of the option back to the global option.\n }\n\n // handle multiple input cases for arrows\n if (newOptions.arrows !== undefined && newOptions.arrows !== null) {\n if (typeof newOptions.arrows === \"string\") {\n var arrows = newOptions.arrows.toLowerCase();\n parentOptions.arrows.to.enabled = _indexOfInstanceProperty(arrows).call(arrows, \"to\") != -1;\n parentOptions.arrows.middle.enabled = _indexOfInstanceProperty(arrows).call(arrows, \"middle\") != -1;\n parentOptions.arrows.from.enabled = _indexOfInstanceProperty(arrows).call(arrows, \"from\") != -1;\n } else if (_typeof$1(newOptions.arrows) === \"object\") {\n mergeOptions(parentOptions.arrows, newOptions.arrows, \"to\", globalOptions.arrows);\n mergeOptions(parentOptions.arrows, newOptions.arrows, \"middle\", globalOptions.arrows);\n mergeOptions(parentOptions.arrows, newOptions.arrows, \"from\", globalOptions.arrows);\n } else {\n throw new Error(\"The arrow newOptions can only be an object or a string. Refer to the documentation. You used:\" + _JSON$stringify(newOptions.arrows));\n }\n } else if (allowDeletion === true && newOptions.arrows === null) {\n parentOptions.arrows = _Object$create$1(globalOptions.arrows); // this sets the pointer of the option back to the global option.\n }\n\n // handle multiple input cases for color\n if (newOptions.color !== undefined && newOptions.color !== null) {\n var fromColor = isString(newOptions.color) ? {\n color: newOptions.color,\n highlight: newOptions.color,\n hover: newOptions.color,\n inherit: false,\n opacity: 1\n } : newOptions.color;\n var toColor = parentOptions.color;\n\n // If passed, fill in values from default options - required in the case of no prototype bridging\n if (copyFromGlobals) {\n deepExtend(toColor, globalOptions.color, false, allowDeletion);\n } else {\n // Clear local properties - need to do it like this in order to retain prototype bridges\n for (var i in toColor) {\n if (Object.prototype.hasOwnProperty.call(toColor, i)) {\n delete toColor[i];\n }\n }\n }\n if (isString(toColor)) {\n toColor.color = toColor;\n toColor.highlight = toColor;\n toColor.hover = toColor;\n toColor.inherit = false;\n if (fromColor.opacity === undefined) {\n toColor.opacity = 1.0; // set default\n }\n } else {\n var colorsDefined = false;\n if (fromColor.color !== undefined) {\n toColor.color = fromColor.color;\n colorsDefined = true;\n }\n if (fromColor.highlight !== undefined) {\n toColor.highlight = fromColor.highlight;\n colorsDefined = true;\n }\n if (fromColor.hover !== undefined) {\n toColor.hover = fromColor.hover;\n colorsDefined = true;\n }\n if (fromColor.inherit !== undefined) {\n toColor.inherit = fromColor.inherit;\n }\n if (fromColor.opacity !== undefined) {\n toColor.opacity = Math.min(1, Math.max(0, fromColor.opacity));\n }\n if (colorsDefined === true) {\n toColor.inherit = false;\n } else {\n if (toColor.inherit === undefined) {\n toColor.inherit = \"from\"; // Set default\n }\n }\n }\n } else if (allowDeletion === true && newOptions.color === null) {\n parentOptions.color = bridgeObject(globalOptions.color); // set the object back to the global options\n }\n\n if (allowDeletion === true && newOptions.font === null) {\n parentOptions.font = bridgeObject(globalOptions.font); // set the object back to the global options\n }\n\n if (Object.prototype.hasOwnProperty.call(newOptions, \"selfReferenceSize\")) {\n console.warn(\"The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}\");\n parentOptions.selfReference.size = newOptions.selfReferenceSize;\n }\n }\n }]);\n return Edge;\n}();\n\n/**\n * Handler for Edges\n */\nvar EdgesHandler = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {Array.} images\n * @param {Array.} groups\n */\n function EdgesHandler(body, images, groups) {\n var _context,\n _this = this;\n _classCallCheck(this, EdgesHandler);\n this.body = body;\n this.images = images;\n this.groups = groups;\n\n // create the edge API in the body container\n this.body.functions.createEdge = _bindInstanceProperty$1(_context = this.create).call(_context, this);\n this.edgesListeners = {\n add: function add(event, params) {\n _this.add(params.items);\n },\n update: function update(event, params) {\n _this.update(params.items);\n },\n remove: function remove(event, params) {\n _this.remove(params.items);\n }\n };\n this.options = {};\n this.defaultOptions = {\n arrows: {\n to: {\n enabled: false,\n scaleFactor: 1,\n type: \"arrow\"\n },\n // boolean / {arrowScaleFactor:1} / {enabled: false, arrowScaleFactor:1}\n middle: {\n enabled: false,\n scaleFactor: 1,\n type: \"arrow\"\n },\n from: {\n enabled: false,\n scaleFactor: 1,\n type: \"arrow\"\n }\n },\n endPointOffset: {\n from: 0,\n to: 0\n },\n arrowStrikethrough: true,\n color: {\n color: \"#848484\",\n highlight: \"#848484\",\n hover: \"#848484\",\n inherit: \"from\",\n opacity: 1.0\n },\n dashes: false,\n font: {\n color: \"#343434\",\n size: 14,\n // px\n face: \"arial\",\n background: \"none\",\n strokeWidth: 2,\n // px\n strokeColor: \"#ffffff\",\n align: \"horizontal\",\n multi: false,\n vadjust: 0,\n bold: {\n mod: \"bold\"\n },\n boldital: {\n mod: \"bold italic\"\n },\n ital: {\n mod: \"italic\"\n },\n mono: {\n mod: \"\",\n size: 15,\n // px\n face: \"courier new\",\n vadjust: 2\n }\n },\n hidden: false,\n hoverWidth: 1.5,\n label: undefined,\n labelHighlightBold: true,\n length: undefined,\n physics: true,\n scaling: {\n min: 1,\n max: 15,\n label: {\n enabled: true,\n min: 14,\n max: 30,\n maxVisible: 30,\n drawThreshold: 5\n },\n customScalingFunction: function customScalingFunction(min, max, total, value) {\n if (max === min) {\n return 0.5;\n } else {\n var scale = 1 / (max - min);\n return Math.max(0, (value - min) * scale);\n }\n }\n },\n selectionWidth: 1.5,\n selfReference: {\n size: 20,\n angle: Math.PI / 4,\n renderBehindTheNode: true\n },\n shadow: {\n enabled: false,\n color: \"rgba(0,0,0,0.5)\",\n size: 10,\n x: 5,\n y: 5\n },\n background: {\n enabled: false,\n color: \"rgba(111,111,111,1)\",\n size: 10,\n dashes: false\n },\n smooth: {\n enabled: true,\n type: \"dynamic\",\n forceDirection: \"none\",\n roundness: 0.5\n },\n title: undefined,\n width: 1,\n value: undefined\n };\n deepExtend(this.options, this.defaultOptions);\n this.bindEventListeners();\n }\n\n /**\n * Binds event listeners\n */\n _createClass(EdgesHandler, [{\n key: \"bindEventListeners\",\n value: function bindEventListeners() {\n var _this2 = this,\n _context2,\n _context3;\n // this allows external modules to force all dynamic curves to turn static.\n this.body.emitter.on(\"_forceDisableDynamicCurves\", function (type) {\n var emit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (type === \"dynamic\") {\n type = \"continuous\";\n }\n var dataChanged = false;\n for (var edgeId in _this2.body.edges) {\n if (Object.prototype.hasOwnProperty.call(_this2.body.edges, edgeId)) {\n var edge = _this2.body.edges[edgeId];\n var edgeData = _this2.body.data.edges.get(edgeId);\n\n // only forcibly remove the smooth curve if the data has been set of the edge has the smooth curves defined.\n // this is because a change in the global would not affect these curves.\n if (edgeData != null) {\n var smoothOptions = edgeData.smooth;\n if (smoothOptions !== undefined) {\n if (smoothOptions.enabled === true && smoothOptions.type === \"dynamic\") {\n if (type === undefined) {\n edge.setOptions({\n smooth: false\n });\n } else {\n edge.setOptions({\n smooth: {\n type: type\n }\n });\n }\n dataChanged = true;\n }\n }\n }\n }\n }\n if (emit === true && dataChanged === true) {\n _this2.body.emitter.emit(\"_dataChanged\");\n }\n });\n\n // this is called when options of EXISTING nodes or edges have changed.\n //\n // NOTE: Not true, called when options have NOT changed, for both existing as well as new nodes.\n // See update() for logic.\n // TODO: Verify and examine the consequences of this. It might still trigger when\n // non-option fields have changed, but then reconnecting edges is still useless.\n // Alternatively, it might also be called when edges are removed.\n //\n this.body.emitter.on(\"_dataUpdated\", function () {\n _this2.reconnectEdges();\n });\n\n // refresh the edges. Used when reverting from hierarchical layout\n this.body.emitter.on(\"refreshEdges\", _bindInstanceProperty$1(_context2 = this.refresh).call(_context2, this));\n this.body.emitter.on(\"refresh\", _bindInstanceProperty$1(_context3 = this.refresh).call(_context3, this));\n this.body.emitter.on(\"destroy\", function () {\n forEach$5(_this2.edgesListeners, function (callback, event) {\n if (_this2.body.data.edges) _this2.body.data.edges.off(event, callback);\n });\n delete _this2.body.functions.createEdge;\n delete _this2.edgesListeners.add;\n delete _this2.edgesListeners.update;\n delete _this2.edgesListeners.remove;\n delete _this2.edgesListeners;\n });\n }\n\n /**\n *\n * @param {object} options\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options !== undefined) {\n // use the parser from the Edge class to fill in all shorthand notations\n Edge.parseOptions(this.options, options, true, this.defaultOptions, true);\n\n // update smooth settings in all edges\n var dataChanged = false;\n if (options.smooth !== undefined) {\n for (var edgeId in this.body.edges) {\n if (Object.prototype.hasOwnProperty.call(this.body.edges, edgeId)) {\n dataChanged = this.body.edges[edgeId].updateEdgeType() || dataChanged;\n }\n }\n }\n\n // update fonts in all edges\n if (options.font !== undefined) {\n for (var _edgeId in this.body.edges) {\n if (Object.prototype.hasOwnProperty.call(this.body.edges, _edgeId)) {\n this.body.edges[_edgeId].updateLabelModule();\n }\n }\n }\n\n // update the state of the variables if needed\n if (options.hidden !== undefined || options.physics !== undefined || dataChanged === true) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n }\n\n /**\n * Load edges by reading the data table\n *\n * @param {Array | DataSet | DataView} edges The data containing the edges.\n * @param {boolean} [doNotEmit=false] - Suppress data changed event.\n * @private\n */\n }, {\n key: \"setData\",\n value: function setData(edges) {\n var _this3 = this;\n var doNotEmit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var oldEdgesData = this.body.data.edges;\n if (isDataViewLike(\"id\", edges)) {\n this.body.data.edges = edges;\n } else if (_Array$isArray(edges)) {\n this.body.data.edges = new DataSet();\n this.body.data.edges.add(edges);\n } else if (!edges) {\n this.body.data.edges = new DataSet();\n } else {\n throw new TypeError(\"Array or DataSet expected\");\n }\n\n // TODO: is this null or undefined or false?\n if (oldEdgesData) {\n // unsubscribe from old dataset\n forEach$5(this.edgesListeners, function (callback, event) {\n oldEdgesData.off(event, callback);\n });\n }\n\n // remove drawn edges\n this.body.edges = {};\n\n // TODO: is this null or undefined or false?\n if (this.body.data.edges) {\n // subscribe to new dataset\n forEach$5(this.edgesListeners, function (callback, event) {\n _this3.body.data.edges.on(event, callback);\n });\n\n // draw all new nodes\n var ids = this.body.data.edges.getIds();\n this.add(ids, true);\n }\n this.body.emitter.emit(\"_adjustEdgesForHierarchicalLayout\");\n if (doNotEmit === false) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n\n /**\n * Add edges\n *\n * @param {number[] | string[]} ids\n * @param {boolean} [doNotEmit=false]\n * @private\n */\n }, {\n key: \"add\",\n value: function add(ids) {\n var doNotEmit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var edges = this.body.edges;\n var edgesData = this.body.data.edges;\n for (var i = 0; i < ids.length; i++) {\n var id = ids[i];\n var oldEdge = edges[id];\n if (oldEdge) {\n oldEdge.disconnect();\n }\n var data = edgesData.get(id, {\n showInternalIds: true\n });\n edges[id] = this.create(data);\n }\n this.body.emitter.emit(\"_adjustEdgesForHierarchicalLayout\");\n if (doNotEmit === false) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n\n /**\n * Update existing edges, or create them when not yet existing\n *\n * @param {number[] | string[]} ids\n * @private\n */\n }, {\n key: \"update\",\n value: function update(ids) {\n var edges = this.body.edges;\n var edgesData = this.body.data.edges;\n var dataChanged = false;\n for (var i = 0; i < ids.length; i++) {\n var id = ids[i];\n var data = edgesData.get(id);\n var edge = edges[id];\n if (edge !== undefined) {\n // update edge\n edge.disconnect();\n dataChanged = edge.setOptions(data) || dataChanged; // if a support node is added, data can be changed.\n edge.connect();\n } else {\n // create edge\n this.body.edges[id] = this.create(data);\n dataChanged = true;\n }\n }\n if (dataChanged === true) {\n this.body.emitter.emit(\"_adjustEdgesForHierarchicalLayout\");\n this.body.emitter.emit(\"_dataChanged\");\n } else {\n this.body.emitter.emit(\"_dataUpdated\");\n }\n }\n\n /**\n * Remove existing edges. Non existing ids will be ignored\n *\n * @param {number[] | string[]} ids\n * @param {boolean} [emit=true]\n * @private\n */\n }, {\n key: \"remove\",\n value: function remove(ids) {\n var emit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (ids.length === 0) return; // early out\n\n var edges = this.body.edges;\n forEach$5(ids, function (id) {\n var edge = edges[id];\n if (edge !== undefined) {\n edge.remove();\n }\n });\n if (emit) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n\n /**\n * Refreshes Edge Handler\n */\n }, {\n key: \"refresh\",\n value: function refresh() {\n var _this4 = this;\n forEach$5(this.body.edges, function (edge, edgeId) {\n var data = _this4.body.data.edges.get(edgeId);\n if (data !== undefined) {\n edge.setOptions(data);\n }\n });\n }\n\n /**\n *\n * @param {object} properties\n * @returns {Edge}\n */\n }, {\n key: \"create\",\n value: function create(properties) {\n return new Edge(properties, this.body, this.images, this.options, this.defaultOptions);\n }\n\n /**\n * Reconnect all edges\n *\n * @private\n */\n }, {\n key: \"reconnectEdges\",\n value: function reconnectEdges() {\n var id;\n var nodes = this.body.nodes;\n var edges = this.body.edges;\n for (id in nodes) {\n if (Object.prototype.hasOwnProperty.call(nodes, id)) {\n nodes[id].edges = [];\n }\n }\n for (id in edges) {\n if (Object.prototype.hasOwnProperty.call(edges, id)) {\n var edge = edges[id];\n edge.from = null;\n edge.to = null;\n edge.connect();\n }\n }\n }\n\n /**\n *\n * @param {Edge.id} edgeId\n * @returns {Array}\n */\n }, {\n key: \"getConnectedNodes\",\n value: function getConnectedNodes(edgeId) {\n var nodeList = [];\n if (this.body.edges[edgeId] !== undefined) {\n var edge = this.body.edges[edgeId];\n if (edge.fromId !== undefined) {\n nodeList.push(edge.fromId);\n }\n if (edge.toId !== undefined) {\n nodeList.push(edge.toId);\n }\n }\n return nodeList;\n }\n\n /**\n * There is no direct relation between the nodes and the edges DataSet,\n * so the right place to do call this is in the handler for event `_dataUpdated`.\n */\n }, {\n key: \"_updateState\",\n value: function _updateState() {\n this._addMissingEdges();\n this._removeInvalidEdges();\n }\n\n /**\n * Scan for missing nodes and remove corresponding edges, if any.\n *\n * @private\n */\n }, {\n key: \"_removeInvalidEdges\",\n value: function _removeInvalidEdges() {\n var _this5 = this;\n var edgesToDelete = [];\n forEach$5(this.body.edges, function (edge, id) {\n var toNode = _this5.body.nodes[edge.toId];\n var fromNode = _this5.body.nodes[edge.fromId];\n\n // Skip clustering edges here, let the Clustering module handle those\n if (toNode !== undefined && toNode.isCluster === true || fromNode !== undefined && fromNode.isCluster === true) {\n return;\n }\n if (toNode === undefined || fromNode === undefined) {\n edgesToDelete.push(id);\n }\n });\n this.remove(edgesToDelete, false);\n }\n\n /**\n * add all edges from dataset that are not in the cached state\n *\n * @private\n */\n }, {\n key: \"_addMissingEdges\",\n value: function _addMissingEdges() {\n var edgesData = this.body.data.edges;\n if (edgesData === undefined || edgesData === null) {\n return; // No edges DataSet yet; can happen on startup\n }\n\n var edges = this.body.edges;\n var addIds = [];\n _forEachInstanceProperty(edgesData).call(edgesData, function (edgeData, edgeId) {\n var edge = edges[edgeId];\n if (edge === undefined) {\n addIds.push(edgeId);\n }\n });\n this.add(addIds, true);\n }\n }]);\n return EdgesHandler;\n}();\n\n/**\n * Barnes Hut Solver\n */\nvar BarnesHutSolver = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {{physicsNodeIndices: Array, physicsEdgeIndices: Array, forces: {}, velocities: {}}} physicsBody\n * @param {object} options\n */\n function BarnesHutSolver(body, physicsBody, options) {\n _classCallCheck(this, BarnesHutSolver);\n this.body = body;\n this.physicsBody = physicsBody;\n this.barnesHutTree;\n this.setOptions(options);\n this._rng = Alea(\"BARNES HUT SOLVER\");\n\n // debug: show grid\n // this.body.emitter.on(\"afterDrawing\", (ctx) => {this._debug(ctx,'#ff0000')})\n }\n\n /**\n *\n * @param {object} options\n */\n _createClass(BarnesHutSolver, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n this.options = options;\n this.thetaInversed = 1 / this.options.theta;\n\n // if 1 then min distance = 0.5, if 0.5 then min distance = 0.5 + 0.5*node.shape.radius\n this.overlapAvoidanceFactor = 1 - Math.max(0, Math.min(1, this.options.avoidOverlap));\n }\n\n /**\n * This function calculates the forces the nodes apply on each other based on a gravitational model.\n * The Barnes Hut method is used to speed up this N-body simulation.\n *\n * @private\n */\n }, {\n key: \"solve\",\n value: function solve() {\n if (this.options.gravitationalConstant !== 0 && this.physicsBody.physicsNodeIndices.length > 0) {\n var node;\n var nodes = this.body.nodes;\n var nodeIndices = this.physicsBody.physicsNodeIndices;\n var nodeCount = nodeIndices.length;\n\n // create the tree\n var barnesHutTree = this._formBarnesHutTree(nodes, nodeIndices);\n\n // for debugging\n this.barnesHutTree = barnesHutTree;\n\n // place the nodes one by one recursively\n for (var i = 0; i < nodeCount; i++) {\n node = nodes[nodeIndices[i]];\n if (node.options.mass > 0) {\n // starting with root is irrelevant, it never passes the BarnesHutSolver condition\n this._getForceContributions(barnesHutTree.root, node);\n }\n }\n }\n }\n\n /**\n * @param {object} parentBranch\n * @param {Node} node\n * @private\n */\n }, {\n key: \"_getForceContributions\",\n value: function _getForceContributions(parentBranch, node) {\n this._getForceContribution(parentBranch.children.NW, node);\n this._getForceContribution(parentBranch.children.NE, node);\n this._getForceContribution(parentBranch.children.SW, node);\n this._getForceContribution(parentBranch.children.SE, node);\n }\n\n /**\n * This function traverses the barnesHutTree. It checks when it can approximate distant nodes with their center of mass.\n * If a region contains a single node, we check if it is not itself, then we apply the force.\n *\n * @param {object} parentBranch\n * @param {Node} node\n * @private\n */\n }, {\n key: \"_getForceContribution\",\n value: function _getForceContribution(parentBranch, node) {\n // we get no force contribution from an empty region\n if (parentBranch.childrenCount > 0) {\n // get the distance from the center of mass to the node.\n var dx = parentBranch.centerOfMass.x - node.x;\n var dy = parentBranch.centerOfMass.y - node.y;\n var distance = Math.sqrt(dx * dx + dy * dy);\n\n // BarnesHutSolver condition\n // original condition : s/d < theta = passed === d/s > 1/theta = passed\n // calcSize = 1/s --> d * 1/s > 1/theta = passed\n if (distance * parentBranch.calcSize > this.thetaInversed) {\n this._calculateForces(distance, dx, dy, node, parentBranch);\n } else {\n // Did not pass the condition, go into children if available\n if (parentBranch.childrenCount === 4) {\n this._getForceContributions(parentBranch, node);\n } else {\n // parentBranch must have only one node, if it was empty we wouldnt be here\n if (parentBranch.children.data.id != node.id) {\n // if it is not self\n this._calculateForces(distance, dx, dy, node, parentBranch);\n }\n }\n }\n }\n }\n\n /**\n * Calculate the forces based on the distance.\n *\n * @param {number} distance\n * @param {number} dx\n * @param {number} dy\n * @param {Node} node\n * @param {object} parentBranch\n * @private\n */\n }, {\n key: \"_calculateForces\",\n value: function _calculateForces(distance, dx, dy, node, parentBranch) {\n if (distance === 0) {\n distance = 0.1;\n dx = distance;\n }\n if (this.overlapAvoidanceFactor < 1 && node.shape.radius) {\n distance = Math.max(0.1 + this.overlapAvoidanceFactor * node.shape.radius, distance - node.shape.radius);\n }\n\n // the dividing by the distance cubed instead of squared allows us to get the fx and fy components without sines and cosines\n // it is shorthand for gravityforce with distance squared and fx = dx/distance * gravityForce\n var gravityForce = this.options.gravitationalConstant * parentBranch.mass * node.options.mass / Math.pow(distance, 3);\n var fx = dx * gravityForce;\n var fy = dy * gravityForce;\n this.physicsBody.forces[node.id].x += fx;\n this.physicsBody.forces[node.id].y += fy;\n }\n\n /**\n * This function constructs the barnesHut tree recursively. It creates the root, splits it and starts placing the nodes.\n *\n * @param {Array.} nodes\n * @param {Array.} nodeIndices\n * @returns {{root: {centerOfMass: {x: number, y: number}, mass: number, range: {minX: number, maxX: number, minY: number, maxY: number}, size: number, calcSize: number, children: {data: null}, maxWidth: number, level: number, childrenCount: number}}} BarnesHutTree\n * @private\n */\n }, {\n key: \"_formBarnesHutTree\",\n value: function _formBarnesHutTree(nodes, nodeIndices) {\n var node;\n var nodeCount = nodeIndices.length;\n var minX = nodes[nodeIndices[0]].x;\n var minY = nodes[nodeIndices[0]].y;\n var maxX = nodes[nodeIndices[0]].x;\n var maxY = nodes[nodeIndices[0]].y;\n\n // get the range of the nodes\n for (var i = 1; i < nodeCount; i++) {\n var _node = nodes[nodeIndices[i]];\n var x = _node.x;\n var y = _node.y;\n if (_node.options.mass > 0) {\n if (x < minX) {\n minX = x;\n }\n if (x > maxX) {\n maxX = x;\n }\n if (y < minY) {\n minY = y;\n }\n if (y > maxY) {\n maxY = y;\n }\n }\n }\n // make the range a square\n var sizeDiff = Math.abs(maxX - minX) - Math.abs(maxY - minY); // difference between X and Y\n if (sizeDiff > 0) {\n minY -= 0.5 * sizeDiff;\n maxY += 0.5 * sizeDiff;\n } // xSize > ySize\n else {\n minX += 0.5 * sizeDiff;\n maxX -= 0.5 * sizeDiff;\n } // xSize < ySize\n\n var minimumTreeSize = 1e-5;\n var rootSize = Math.max(minimumTreeSize, Math.abs(maxX - minX));\n var halfRootSize = 0.5 * rootSize;\n var centerX = 0.5 * (minX + maxX),\n centerY = 0.5 * (minY + maxY);\n\n // construct the barnesHutTree\n var barnesHutTree = {\n root: {\n centerOfMass: {\n x: 0,\n y: 0\n },\n mass: 0,\n range: {\n minX: centerX - halfRootSize,\n maxX: centerX + halfRootSize,\n minY: centerY - halfRootSize,\n maxY: centerY + halfRootSize\n },\n size: rootSize,\n calcSize: 1 / rootSize,\n children: {\n data: null\n },\n maxWidth: 0,\n level: 0,\n childrenCount: 4\n }\n };\n this._splitBranch(barnesHutTree.root);\n\n // place the nodes one by one recursively\n for (var _i = 0; _i < nodeCount; _i++) {\n node = nodes[nodeIndices[_i]];\n if (node.options.mass > 0) {\n this._placeInTree(barnesHutTree.root, node);\n }\n }\n\n // make global\n return barnesHutTree;\n }\n\n /**\n * this updates the mass of a branch. this is increased by adding a node.\n *\n * @param {object} parentBranch\n * @param {Node} node\n * @private\n */\n }, {\n key: \"_updateBranchMass\",\n value: function _updateBranchMass(parentBranch, node) {\n var centerOfMass = parentBranch.centerOfMass;\n var totalMass = parentBranch.mass + node.options.mass;\n var totalMassInv = 1 / totalMass;\n centerOfMass.x = centerOfMass.x * parentBranch.mass + node.x * node.options.mass;\n centerOfMass.x *= totalMassInv;\n centerOfMass.y = centerOfMass.y * parentBranch.mass + node.y * node.options.mass;\n centerOfMass.y *= totalMassInv;\n parentBranch.mass = totalMass;\n var biggestSize = Math.max(Math.max(node.height, node.radius), node.width);\n parentBranch.maxWidth = parentBranch.maxWidth < biggestSize ? biggestSize : parentBranch.maxWidth;\n }\n\n /**\n * determine in which branch the node will be placed.\n *\n * @param {object} parentBranch\n * @param {Node} node\n * @param {boolean} skipMassUpdate\n * @private\n */\n }, {\n key: \"_placeInTree\",\n value: function _placeInTree(parentBranch, node, skipMassUpdate) {\n if (skipMassUpdate != true || skipMassUpdate === undefined) {\n // update the mass of the branch.\n this._updateBranchMass(parentBranch, node);\n }\n var range = parentBranch.children.NW.range;\n var region;\n if (range.maxX > node.x) {\n // in NW or SW\n if (range.maxY > node.y) {\n region = \"NW\";\n } else {\n region = \"SW\";\n }\n } else {\n // in NE or SE\n if (range.maxY > node.y) {\n region = \"NE\";\n } else {\n region = \"SE\";\n }\n }\n this._placeInRegion(parentBranch, node, region);\n }\n\n /**\n * actually place the node in a region (or branch)\n *\n * @param {object} parentBranch\n * @param {Node} node\n * @param {'NW'| 'NE' | 'SW' | 'SE'} region\n * @private\n */\n }, {\n key: \"_placeInRegion\",\n value: function _placeInRegion(parentBranch, node, region) {\n var children = parentBranch.children[region];\n switch (children.childrenCount) {\n case 0:\n // place node here\n children.children.data = node;\n children.childrenCount = 1;\n this._updateBranchMass(children, node);\n break;\n case 1:\n // convert into children\n // if there are two nodes exactly overlapping (on init, on opening of cluster etc.)\n // we move one node a little bit and we do not put it in the tree.\n if (children.children.data.x === node.x && children.children.data.y === node.y) {\n node.x += this._rng();\n node.y += this._rng();\n } else {\n this._splitBranch(children);\n this._placeInTree(children, node);\n }\n break;\n case 4:\n // place in branch\n this._placeInTree(children, node);\n break;\n }\n }\n\n /**\n * this function splits a branch into 4 sub branches. If the branch contained a node, we place it in the subbranch\n * after the split is complete.\n *\n * @param {object} parentBranch\n * @private\n */\n }, {\n key: \"_splitBranch\",\n value: function _splitBranch(parentBranch) {\n // if the branch is shaded with a node, replace the node in the new subset.\n var containedNode = null;\n if (parentBranch.childrenCount === 1) {\n containedNode = parentBranch.children.data;\n parentBranch.mass = 0;\n parentBranch.centerOfMass.x = 0;\n parentBranch.centerOfMass.y = 0;\n }\n parentBranch.childrenCount = 4;\n parentBranch.children.data = null;\n this._insertRegion(parentBranch, \"NW\");\n this._insertRegion(parentBranch, \"NE\");\n this._insertRegion(parentBranch, \"SW\");\n this._insertRegion(parentBranch, \"SE\");\n if (containedNode != null) {\n this._placeInTree(parentBranch, containedNode);\n }\n }\n\n /**\n * This function subdivides the region into four new segments.\n * Specifically, this inserts a single new segment.\n * It fills the children section of the parentBranch\n *\n * @param {object} parentBranch\n * @param {'NW'| 'NE' | 'SW' | 'SE'} region\n * @private\n */\n }, {\n key: \"_insertRegion\",\n value: function _insertRegion(parentBranch, region) {\n var minX, maxX, minY, maxY;\n var childSize = 0.5 * parentBranch.size;\n switch (region) {\n case \"NW\":\n minX = parentBranch.range.minX;\n maxX = parentBranch.range.minX + childSize;\n minY = parentBranch.range.minY;\n maxY = parentBranch.range.minY + childSize;\n break;\n case \"NE\":\n minX = parentBranch.range.minX + childSize;\n maxX = parentBranch.range.maxX;\n minY = parentBranch.range.minY;\n maxY = parentBranch.range.minY + childSize;\n break;\n case \"SW\":\n minX = parentBranch.range.minX;\n maxX = parentBranch.range.minX + childSize;\n minY = parentBranch.range.minY + childSize;\n maxY = parentBranch.range.maxY;\n break;\n case \"SE\":\n minX = parentBranch.range.minX + childSize;\n maxX = parentBranch.range.maxX;\n minY = parentBranch.range.minY + childSize;\n maxY = parentBranch.range.maxY;\n break;\n }\n parentBranch.children[region] = {\n centerOfMass: {\n x: 0,\n y: 0\n },\n mass: 0,\n range: {\n minX: minX,\n maxX: maxX,\n minY: minY,\n maxY: maxY\n },\n size: 0.5 * parentBranch.size,\n calcSize: 2 * parentBranch.calcSize,\n children: {\n data: null\n },\n maxWidth: 0,\n level: parentBranch.level + 1,\n childrenCount: 0\n };\n }\n\n //--------------------------- DEBUGGING BELOW ---------------------------//\n\n /**\n * This function is for debugging purposed, it draws the tree.\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {string} color\n * @private\n */\n }, {\n key: \"_debug\",\n value: function _debug(ctx, color) {\n if (this.barnesHutTree !== undefined) {\n ctx.lineWidth = 1;\n this._drawBranch(this.barnesHutTree.root, ctx, color);\n }\n }\n\n /**\n * This function is for debugging purposes. It draws the branches recursively.\n *\n * @param {object} branch\n * @param {CanvasRenderingContext2D} ctx\n * @param {string} color\n * @private\n */\n }, {\n key: \"_drawBranch\",\n value: function _drawBranch(branch, ctx, color) {\n if (color === undefined) {\n color = \"#FF0000\";\n }\n if (branch.childrenCount === 4) {\n this._drawBranch(branch.children.NW, ctx);\n this._drawBranch(branch.children.NE, ctx);\n this._drawBranch(branch.children.SE, ctx);\n this._drawBranch(branch.children.SW, ctx);\n }\n ctx.strokeStyle = color;\n ctx.beginPath();\n ctx.moveTo(branch.range.minX, branch.range.minY);\n ctx.lineTo(branch.range.maxX, branch.range.minY);\n ctx.stroke();\n ctx.beginPath();\n ctx.moveTo(branch.range.maxX, branch.range.minY);\n ctx.lineTo(branch.range.maxX, branch.range.maxY);\n ctx.stroke();\n ctx.beginPath();\n ctx.moveTo(branch.range.maxX, branch.range.maxY);\n ctx.lineTo(branch.range.minX, branch.range.maxY);\n ctx.stroke();\n ctx.beginPath();\n ctx.moveTo(branch.range.minX, branch.range.maxY);\n ctx.lineTo(branch.range.minX, branch.range.minY);\n ctx.stroke();\n\n /*\n if (branch.mass > 0) {\n ctx.circle(branch.centerOfMass.x, branch.centerOfMass.y, 3*branch.mass);\n ctx.stroke();\n }\n */\n }\n }]);\n return BarnesHutSolver;\n}();\n\n/**\n * Repulsion Solver\n */\nvar RepulsionSolver = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {{physicsNodeIndices: Array, physicsEdgeIndices: Array, forces: {}, velocities: {}}} physicsBody\n * @param {object} options\n */\n function RepulsionSolver(body, physicsBody, options) {\n _classCallCheck(this, RepulsionSolver);\n this._rng = Alea(\"REPULSION SOLVER\");\n this.body = body;\n this.physicsBody = physicsBody;\n this.setOptions(options);\n }\n\n /**\n *\n * @param {object} options\n */\n _createClass(RepulsionSolver, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n this.options = options;\n }\n\n /**\n * Calculate the forces the nodes apply on each other based on a repulsion field.\n * This field is linearly approximated.\n *\n * @private\n */\n }, {\n key: \"solve\",\n value: function solve() {\n var dx, dy, distance, fx, fy, repulsingForce, node1, node2;\n var nodes = this.body.nodes;\n var nodeIndices = this.physicsBody.physicsNodeIndices;\n var forces = this.physicsBody.forces;\n\n // repulsing forces between nodes\n var nodeDistance = this.options.nodeDistance;\n\n // approximation constants\n var a = -2 / 3 / nodeDistance;\n var b = 4 / 3;\n\n // we loop from i over all but the last entree in the array\n // j loops from i+1 to the last. This way we do not double count any of the indices, nor i === j\n for (var i = 0; i < nodeIndices.length - 1; i++) {\n node1 = nodes[nodeIndices[i]];\n for (var j = i + 1; j < nodeIndices.length; j++) {\n node2 = nodes[nodeIndices[j]];\n dx = node2.x - node1.x;\n dy = node2.y - node1.y;\n distance = Math.sqrt(dx * dx + dy * dy);\n\n // same condition as BarnesHutSolver, making sure nodes are never 100% overlapping.\n if (distance === 0) {\n distance = 0.1 * this._rng();\n dx = distance;\n }\n if (distance < 2 * nodeDistance) {\n if (distance < 0.5 * nodeDistance) {\n repulsingForce = 1.0;\n } else {\n repulsingForce = a * distance + b; // linear approx of 1 / (1 + Math.exp((distance / nodeDistance - 1) * steepness))\n }\n\n repulsingForce = repulsingForce / distance;\n fx = dx * repulsingForce;\n fy = dy * repulsingForce;\n forces[node1.id].x -= fx;\n forces[node1.id].y -= fy;\n forces[node2.id].x += fx;\n forces[node2.id].y += fy;\n }\n }\n }\n }\n }]);\n return RepulsionSolver;\n}();\n\n/**\n * Hierarchical Repulsion Solver\n */\nvar HierarchicalRepulsionSolver = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {{physicsNodeIndices: Array, physicsEdgeIndices: Array, forces: {}, velocities: {}}} physicsBody\n * @param {object} options\n */\n function HierarchicalRepulsionSolver(body, physicsBody, options) {\n _classCallCheck(this, HierarchicalRepulsionSolver);\n this.body = body;\n this.physicsBody = physicsBody;\n this.setOptions(options);\n }\n\n /**\n *\n * @param {object} options\n */\n _createClass(HierarchicalRepulsionSolver, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n this.options = options;\n this.overlapAvoidanceFactor = Math.max(0, Math.min(1, this.options.avoidOverlap || 0));\n }\n\n /**\n * Calculate the forces the nodes apply on each other based on a repulsion field.\n * This field is linearly approximated.\n *\n * @private\n */\n }, {\n key: \"solve\",\n value: function solve() {\n var nodes = this.body.nodes;\n var nodeIndices = this.physicsBody.physicsNodeIndices;\n var forces = this.physicsBody.forces;\n\n // repulsing forces between nodes\n var nodeDistance = this.options.nodeDistance;\n\n // we loop from i over all but the last entree in the array\n // j loops from i+1 to the last. This way we do not double count any of the indices, nor i === j\n for (var i = 0; i < nodeIndices.length - 1; i++) {\n var node1 = nodes[nodeIndices[i]];\n for (var j = i + 1; j < nodeIndices.length; j++) {\n var node2 = nodes[nodeIndices[j]];\n\n // nodes only affect nodes on their level\n if (node1.level === node2.level) {\n var theseNodesDistance = nodeDistance + this.overlapAvoidanceFactor * ((node1.shape.radius || 0) / 2 + (node2.shape.radius || 0) / 2);\n var dx = node2.x - node1.x;\n var dy = node2.y - node1.y;\n var distance = Math.sqrt(dx * dx + dy * dy);\n var steepness = 0.05;\n var repulsingForce = void 0;\n if (distance < theseNodesDistance) {\n repulsingForce = -Math.pow(steepness * distance, 2) + Math.pow(steepness * theseNodesDistance, 2);\n } else {\n repulsingForce = 0;\n }\n // normalize force with\n if (distance !== 0) {\n repulsingForce = repulsingForce / distance;\n }\n var fx = dx * repulsingForce;\n var fy = dy * repulsingForce;\n forces[node1.id].x -= fx;\n forces[node1.id].y -= fy;\n forces[node2.id].x += fx;\n forces[node2.id].y += fy;\n }\n }\n }\n }\n }]);\n return HierarchicalRepulsionSolver;\n}();\n\n/**\n * Spring Solver\n */\nvar SpringSolver = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {{physicsNodeIndices: Array, physicsEdgeIndices: Array, forces: {}, velocities: {}}} physicsBody\n * @param {object} options\n */\n function SpringSolver(body, physicsBody, options) {\n _classCallCheck(this, SpringSolver);\n this.body = body;\n this.physicsBody = physicsBody;\n this.setOptions(options);\n }\n\n /**\n *\n * @param {object} options\n */\n _createClass(SpringSolver, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n this.options = options;\n }\n\n /**\n * This function calculates the springforces on the nodes, accounting for the support nodes.\n *\n * @private\n */\n }, {\n key: \"solve\",\n value: function solve() {\n var edgeLength, edge;\n var edgeIndices = this.physicsBody.physicsEdgeIndices;\n var edges = this.body.edges;\n var node1, node2, node3;\n\n // forces caused by the edges, modelled as springs\n for (var i = 0; i < edgeIndices.length; i++) {\n edge = edges[edgeIndices[i]];\n if (edge.connected === true && edge.toId !== edge.fromId) {\n // only calculate forces if nodes are in the same sector\n if (this.body.nodes[edge.toId] !== undefined && this.body.nodes[edge.fromId] !== undefined) {\n if (edge.edgeType.via !== undefined) {\n edgeLength = edge.options.length === undefined ? this.options.springLength : edge.options.length;\n node1 = edge.to;\n node2 = edge.edgeType.via;\n node3 = edge.from;\n this._calculateSpringForce(node1, node2, 0.5 * edgeLength);\n this._calculateSpringForce(node2, node3, 0.5 * edgeLength);\n } else {\n // the * 1.5 is here so the edge looks as large as a smooth edge. It does not initially because the smooth edges use\n // the support nodes which exert a repulsive force on the to and from nodes, making the edge appear larger.\n edgeLength = edge.options.length === undefined ? this.options.springLength * 1.5 : edge.options.length;\n this._calculateSpringForce(edge.from, edge.to, edgeLength);\n }\n }\n }\n }\n }\n\n /**\n * This is the code actually performing the calculation for the function above.\n *\n * @param {Node} node1\n * @param {Node} node2\n * @param {number} edgeLength\n * @private\n */\n }, {\n key: \"_calculateSpringForce\",\n value: function _calculateSpringForce(node1, node2, edgeLength) {\n var dx = node1.x - node2.x;\n var dy = node1.y - node2.y;\n var distance = Math.max(Math.sqrt(dx * dx + dy * dy), 0.01);\n\n // the 1/distance is so the fx and fy can be calculated without sine or cosine.\n var springForce = this.options.springConstant * (edgeLength - distance) / distance;\n var fx = dx * springForce;\n var fy = dy * springForce;\n\n // handle the case where one node is not part of the physcis\n if (this.physicsBody.forces[node1.id] !== undefined) {\n this.physicsBody.forces[node1.id].x += fx;\n this.physicsBody.forces[node1.id].y += fy;\n }\n if (this.physicsBody.forces[node2.id] !== undefined) {\n this.physicsBody.forces[node2.id].x -= fx;\n this.physicsBody.forces[node2.id].y -= fy;\n }\n }\n }]);\n return SpringSolver;\n}();\n\n/**\n * Hierarchical Spring Solver\n */\nvar HierarchicalSpringSolver = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {{physicsNodeIndices: Array, physicsEdgeIndices: Array, forces: {}, velocities: {}}} physicsBody\n * @param {object} options\n */\n function HierarchicalSpringSolver(body, physicsBody, options) {\n _classCallCheck(this, HierarchicalSpringSolver);\n this.body = body;\n this.physicsBody = physicsBody;\n this.setOptions(options);\n }\n\n /**\n *\n * @param {object} options\n */\n _createClass(HierarchicalSpringSolver, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n this.options = options;\n }\n\n /**\n * This function calculates the springforces on the nodes, accounting for the support nodes.\n *\n * @private\n */\n }, {\n key: \"solve\",\n value: function solve() {\n var edgeLength, edge;\n var dx, dy, fx, fy, springForce, distance;\n var edges = this.body.edges;\n var factor = 0.5;\n var edgeIndices = this.physicsBody.physicsEdgeIndices;\n var nodeIndices = this.physicsBody.physicsNodeIndices;\n var forces = this.physicsBody.forces;\n\n // initialize the spring force counters\n for (var i = 0; i < nodeIndices.length; i++) {\n var nodeId = nodeIndices[i];\n forces[nodeId].springFx = 0;\n forces[nodeId].springFy = 0;\n }\n\n // forces caused by the edges, modelled as springs\n for (var _i = 0; _i < edgeIndices.length; _i++) {\n edge = edges[edgeIndices[_i]];\n if (edge.connected === true) {\n edgeLength = edge.options.length === undefined ? this.options.springLength : edge.options.length;\n dx = edge.from.x - edge.to.x;\n dy = edge.from.y - edge.to.y;\n distance = Math.sqrt(dx * dx + dy * dy);\n distance = distance === 0 ? 0.01 : distance;\n\n // the 1/distance is so the fx and fy can be calculated without sine or cosine.\n springForce = this.options.springConstant * (edgeLength - distance) / distance;\n fx = dx * springForce;\n fy = dy * springForce;\n if (edge.to.level != edge.from.level) {\n if (forces[edge.toId] !== undefined) {\n forces[edge.toId].springFx -= fx;\n forces[edge.toId].springFy -= fy;\n }\n if (forces[edge.fromId] !== undefined) {\n forces[edge.fromId].springFx += fx;\n forces[edge.fromId].springFy += fy;\n }\n } else {\n if (forces[edge.toId] !== undefined) {\n forces[edge.toId].x -= factor * fx;\n forces[edge.toId].y -= factor * fy;\n }\n if (forces[edge.fromId] !== undefined) {\n forces[edge.fromId].x += factor * fx;\n forces[edge.fromId].y += factor * fy;\n }\n }\n }\n }\n\n // normalize spring forces\n springForce = 1;\n var springFx, springFy;\n for (var _i2 = 0; _i2 < nodeIndices.length; _i2++) {\n var _nodeId = nodeIndices[_i2];\n springFx = Math.min(springForce, Math.max(-springForce, forces[_nodeId].springFx));\n springFy = Math.min(springForce, Math.max(-springForce, forces[_nodeId].springFy));\n forces[_nodeId].x += springFx;\n forces[_nodeId].y += springFy;\n }\n\n // retain energy balance\n var totalFx = 0;\n var totalFy = 0;\n for (var _i3 = 0; _i3 < nodeIndices.length; _i3++) {\n var _nodeId2 = nodeIndices[_i3];\n totalFx += forces[_nodeId2].x;\n totalFy += forces[_nodeId2].y;\n }\n var correctionFx = totalFx / nodeIndices.length;\n var correctionFy = totalFy / nodeIndices.length;\n for (var _i4 = 0; _i4 < nodeIndices.length; _i4++) {\n var _nodeId3 = nodeIndices[_i4];\n forces[_nodeId3].x -= correctionFx;\n forces[_nodeId3].y -= correctionFy;\n }\n }\n }]);\n return HierarchicalSpringSolver;\n}();\n\n/**\n * Central Gravity Solver\n */\nvar CentralGravitySolver = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {{physicsNodeIndices: Array, physicsEdgeIndices: Array, forces: {}, velocities: {}}} physicsBody\n * @param {object} options\n */\n function CentralGravitySolver(body, physicsBody, options) {\n _classCallCheck(this, CentralGravitySolver);\n this.body = body;\n this.physicsBody = physicsBody;\n this.setOptions(options);\n }\n\n /**\n *\n * @param {object} options\n */\n _createClass(CentralGravitySolver, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n this.options = options;\n }\n\n /**\n * Calculates forces for each node\n */\n }, {\n key: \"solve\",\n value: function solve() {\n var dx, dy, distance, node;\n var nodes = this.body.nodes;\n var nodeIndices = this.physicsBody.physicsNodeIndices;\n var forces = this.physicsBody.forces;\n for (var i = 0; i < nodeIndices.length; i++) {\n var nodeId = nodeIndices[i];\n node = nodes[nodeId];\n dx = -node.x;\n dy = -node.y;\n distance = Math.sqrt(dx * dx + dy * dy);\n this._calculateForces(distance, dx, dy, forces, node);\n }\n }\n\n /**\n * Calculate the forces based on the distance.\n *\n * @param {number} distance\n * @param {number} dx\n * @param {number} dy\n * @param {Object} forces\n * @param {Node} node\n * @private\n */\n }, {\n key: \"_calculateForces\",\n value: function _calculateForces(distance, dx, dy, forces, node) {\n var gravityForce = distance === 0 ? 0 : this.options.centralGravity / distance;\n forces[node.id].x = dx * gravityForce;\n forces[node.id].y = dy * gravityForce;\n }\n }]);\n return CentralGravitySolver;\n}();\n\nfunction _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$3() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * @augments BarnesHutSolver\n */\nvar ForceAtlas2BasedRepulsionSolver = /*#__PURE__*/function (_BarnesHutSolver) {\n _inherits(ForceAtlas2BasedRepulsionSolver, _BarnesHutSolver);\n var _super = _createSuper$3(ForceAtlas2BasedRepulsionSolver);\n /**\n * @param {object} body\n * @param {{physicsNodeIndices: Array, physicsEdgeIndices: Array, forces: {}, velocities: {}}} physicsBody\n * @param {object} options\n */\n function ForceAtlas2BasedRepulsionSolver(body, physicsBody, options) {\n var _this;\n _classCallCheck(this, ForceAtlas2BasedRepulsionSolver);\n _this = _super.call(this, body, physicsBody, options);\n _this._rng = Alea(\"FORCE ATLAS 2 BASED REPULSION SOLVER\");\n return _this;\n }\n\n /**\n * Calculate the forces based on the distance.\n *\n * @param {number} distance\n * @param {number} dx\n * @param {number} dy\n * @param {Node} node\n * @param {object} parentBranch\n * @private\n */\n _createClass(ForceAtlas2BasedRepulsionSolver, [{\n key: \"_calculateForces\",\n value: function _calculateForces(distance, dx, dy, node, parentBranch) {\n if (distance === 0) {\n distance = 0.1 * this._rng();\n dx = distance;\n }\n if (this.overlapAvoidanceFactor < 1 && node.shape.radius) {\n distance = Math.max(0.1 + this.overlapAvoidanceFactor * node.shape.radius, distance - node.shape.radius);\n }\n var degree = node.edges.length + 1;\n // the dividing by the distance cubed instead of squared allows us to get the fx and fy components without sines and cosines\n // it is shorthand for gravityforce with distance squared and fx = dx/distance * gravityForce\n var gravityForce = this.options.gravitationalConstant * parentBranch.mass * node.options.mass * degree / Math.pow(distance, 2);\n var fx = dx * gravityForce;\n var fy = dy * gravityForce;\n this.physicsBody.forces[node.id].x += fx;\n this.physicsBody.forces[node.id].y += fy;\n }\n }]);\n return ForceAtlas2BasedRepulsionSolver;\n}(BarnesHutSolver);\n\nfunction _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$2() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * @augments CentralGravitySolver\n */\nvar ForceAtlas2BasedCentralGravitySolver = /*#__PURE__*/function (_CentralGravitySolver) {\n _inherits(ForceAtlas2BasedCentralGravitySolver, _CentralGravitySolver);\n var _super = _createSuper$2(ForceAtlas2BasedCentralGravitySolver);\n /**\n * @param {object} body\n * @param {{physicsNodeIndices: Array, physicsEdgeIndices: Array, forces: {}, velocities: {}}} physicsBody\n * @param {object} options\n */\n function ForceAtlas2BasedCentralGravitySolver(body, physicsBody, options) {\n _classCallCheck(this, ForceAtlas2BasedCentralGravitySolver);\n return _super.call(this, body, physicsBody, options);\n }\n\n /**\n * Calculate the forces based on the distance.\n *\n * @param {number} distance\n * @param {number} dx\n * @param {number} dy\n * @param {Object} forces\n * @param {Node} node\n * @private\n */\n _createClass(ForceAtlas2BasedCentralGravitySolver, [{\n key: \"_calculateForces\",\n value: function _calculateForces(distance, dx, dy, forces, node) {\n if (distance > 0) {\n var degree = node.edges.length + 1;\n var gravityForce = this.options.centralGravity * degree * node.options.mass;\n forces[node.id].x = dx * gravityForce;\n forces[node.id].y = dy * gravityForce;\n }\n }\n }]);\n return ForceAtlas2BasedCentralGravitySolver;\n}(CentralGravitySolver);\n\n/**\n * The physics engine\n */\nvar PhysicsEngine = /*#__PURE__*/function () {\n /**\n * @param {object} body\n */\n function PhysicsEngine(body) {\n _classCallCheck(this, PhysicsEngine);\n this.body = body;\n this.physicsBody = {\n physicsNodeIndices: [],\n physicsEdgeIndices: [],\n forces: {},\n velocities: {}\n };\n this.physicsEnabled = true;\n this.simulationInterval = 1000 / 60;\n this.requiresTimeout = true;\n this.previousStates = {};\n this.referenceState = {};\n this.freezeCache = {};\n this.renderTimer = undefined;\n\n // parameters for the adaptive timestep\n this.adaptiveTimestep = false;\n this.adaptiveTimestepEnabled = false;\n this.adaptiveCounter = 0;\n this.adaptiveInterval = 3;\n this.stabilized = false;\n this.startedStabilization = false;\n this.stabilizationIterations = 0;\n this.ready = false; // will be set to true if the stabilize\n\n // default options\n this.options = {};\n this.defaultOptions = {\n enabled: true,\n barnesHut: {\n theta: 0.5,\n gravitationalConstant: -2000,\n centralGravity: 0.3,\n springLength: 95,\n springConstant: 0.04,\n damping: 0.09,\n avoidOverlap: 0\n },\n forceAtlas2Based: {\n theta: 0.5,\n gravitationalConstant: -50,\n centralGravity: 0.01,\n springConstant: 0.08,\n springLength: 100,\n damping: 0.4,\n avoidOverlap: 0\n },\n repulsion: {\n centralGravity: 0.2,\n springLength: 200,\n springConstant: 0.05,\n nodeDistance: 100,\n damping: 0.09,\n avoidOverlap: 0\n },\n hierarchicalRepulsion: {\n centralGravity: 0.0,\n springLength: 100,\n springConstant: 0.01,\n nodeDistance: 120,\n damping: 0.09\n },\n maxVelocity: 50,\n minVelocity: 0.75,\n // px/s\n solver: \"barnesHut\",\n stabilization: {\n enabled: true,\n iterations: 1000,\n // maximum number of iteration to stabilize\n updateInterval: 50,\n onlyDynamicEdges: false,\n fit: true\n },\n timestep: 0.5,\n adaptiveTimestep: true,\n wind: {\n x: 0,\n y: 0\n }\n };\n _Object$assign(this.options, this.defaultOptions);\n this.timestep = 0.5;\n this.layoutFailed = false;\n this.bindEventListeners();\n }\n\n /**\n * Binds event listeners\n */\n _createClass(PhysicsEngine, [{\n key: \"bindEventListeners\",\n value: function bindEventListeners() {\n var _this = this;\n this.body.emitter.on(\"initPhysics\", function () {\n _this.initPhysics();\n });\n this.body.emitter.on(\"_layoutFailed\", function () {\n _this.layoutFailed = true;\n });\n this.body.emitter.on(\"resetPhysics\", function () {\n _this.stopSimulation();\n _this.ready = false;\n });\n this.body.emitter.on(\"disablePhysics\", function () {\n _this.physicsEnabled = false;\n _this.stopSimulation();\n });\n this.body.emitter.on(\"restorePhysics\", function () {\n _this.setOptions(_this.options);\n if (_this.ready === true) {\n _this.startSimulation();\n }\n });\n this.body.emitter.on(\"startSimulation\", function () {\n if (_this.ready === true) {\n _this.startSimulation();\n }\n });\n this.body.emitter.on(\"stopSimulation\", function () {\n _this.stopSimulation();\n });\n this.body.emitter.on(\"destroy\", function () {\n _this.stopSimulation(false);\n _this.body.emitter.off();\n });\n this.body.emitter.on(\"_dataChanged\", function () {\n // Nodes and/or edges have been added or removed, update shortcut lists.\n _this.updatePhysicsData();\n });\n\n // debug: show forces\n // this.body.emitter.on(\"afterDrawing\", (ctx) => {this._drawForces(ctx);});\n }\n\n /**\n * set the physics options\n *\n * @param {object} options\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options !== undefined) {\n if (options === false) {\n this.options.enabled = false;\n this.physicsEnabled = false;\n this.stopSimulation();\n } else if (options === true) {\n this.options.enabled = true;\n this.physicsEnabled = true;\n this.startSimulation();\n } else {\n this.physicsEnabled = true;\n selectiveNotDeepExtend([\"stabilization\"], this.options, options);\n mergeOptions(this.options, options, \"stabilization\");\n if (options.enabled === undefined) {\n this.options.enabled = true;\n }\n if (this.options.enabled === false) {\n this.physicsEnabled = false;\n this.stopSimulation();\n }\n var wind = this.options.wind;\n if (wind) {\n if (typeof wind.x !== \"number\" || _Number$isNaN(wind.x)) {\n wind.x = 0;\n }\n if (typeof wind.y !== \"number\" || _Number$isNaN(wind.y)) {\n wind.y = 0;\n }\n }\n\n // set the timestep\n this.timestep = this.options.timestep;\n }\n }\n this.init();\n }\n\n /**\n * configure the engine.\n */\n }, {\n key: \"init\",\n value: function init() {\n var options;\n if (this.options.solver === \"forceAtlas2Based\") {\n options = this.options.forceAtlas2Based;\n this.nodesSolver = new ForceAtlas2BasedRepulsionSolver(this.body, this.physicsBody, options);\n this.edgesSolver = new SpringSolver(this.body, this.physicsBody, options);\n this.gravitySolver = new ForceAtlas2BasedCentralGravitySolver(this.body, this.physicsBody, options);\n } else if (this.options.solver === \"repulsion\") {\n options = this.options.repulsion;\n this.nodesSolver = new RepulsionSolver(this.body, this.physicsBody, options);\n this.edgesSolver = new SpringSolver(this.body, this.physicsBody, options);\n this.gravitySolver = new CentralGravitySolver(this.body, this.physicsBody, options);\n } else if (this.options.solver === \"hierarchicalRepulsion\") {\n options = this.options.hierarchicalRepulsion;\n this.nodesSolver = new HierarchicalRepulsionSolver(this.body, this.physicsBody, options);\n this.edgesSolver = new HierarchicalSpringSolver(this.body, this.physicsBody, options);\n this.gravitySolver = new CentralGravitySolver(this.body, this.physicsBody, options);\n } else {\n // barnesHut\n options = this.options.barnesHut;\n this.nodesSolver = new BarnesHutSolver(this.body, this.physicsBody, options);\n this.edgesSolver = new SpringSolver(this.body, this.physicsBody, options);\n this.gravitySolver = new CentralGravitySolver(this.body, this.physicsBody, options);\n }\n this.modelOptions = options;\n }\n\n /**\n * initialize the engine\n */\n }, {\n key: \"initPhysics\",\n value: function initPhysics() {\n if (this.physicsEnabled === true && this.options.enabled === true) {\n if (this.options.stabilization.enabled === true) {\n this.stabilize();\n } else {\n this.stabilized = false;\n this.ready = true;\n this.body.emitter.emit(\"fit\", {}, this.layoutFailed); // if the layout failed, we use the approximation for the zoom\n this.startSimulation();\n }\n } else {\n this.ready = true;\n this.body.emitter.emit(\"fit\");\n }\n }\n\n /**\n * Start the simulation\n */\n }, {\n key: \"startSimulation\",\n value: function startSimulation() {\n if (this.physicsEnabled === true && this.options.enabled === true) {\n this.stabilized = false;\n\n // when visible, adaptivity is disabled.\n this.adaptiveTimestep = false;\n\n // this sets the width of all nodes initially which could be required for the avoidOverlap\n this.body.emitter.emit(\"_resizeNodes\");\n if (this.viewFunction === undefined) {\n var _context;\n this.viewFunction = _bindInstanceProperty$1(_context = this.simulationStep).call(_context, this);\n this.body.emitter.on(\"initRedraw\", this.viewFunction);\n this.body.emitter.emit(\"_startRendering\");\n }\n } else {\n this.body.emitter.emit(\"_redraw\");\n }\n }\n\n /**\n * Stop the simulation, force stabilization.\n *\n * @param {boolean} [emit=true]\n */\n }, {\n key: \"stopSimulation\",\n value: function stopSimulation() {\n var emit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n this.stabilized = true;\n if (emit === true) {\n this._emitStabilized();\n }\n if (this.viewFunction !== undefined) {\n this.body.emitter.off(\"initRedraw\", this.viewFunction);\n this.viewFunction = undefined;\n if (emit === true) {\n this.body.emitter.emit(\"_stopRendering\");\n }\n }\n }\n\n /**\n * The viewFunction inserts this step into each render loop. It calls the physics tick and handles the cleanup at stabilized.\n *\n */\n }, {\n key: \"simulationStep\",\n value: function simulationStep() {\n // check if the physics have settled\n var startTime = _Date$now();\n this.physicsTick();\n var physicsTime = _Date$now() - startTime;\n\n // run double speed if it is a little graph\n if ((physicsTime < 0.4 * this.simulationInterval || this.runDoubleSpeed === true) && this.stabilized === false) {\n this.physicsTick();\n\n // this makes sure there is no jitter. The decision is taken once to run it at double speed.\n this.runDoubleSpeed = true;\n }\n if (this.stabilized === true) {\n this.stopSimulation();\n }\n }\n\n /**\n * trigger the stabilized event.\n *\n * @param {number} [amountOfIterations=this.stabilizationIterations]\n * @private\n */\n }, {\n key: \"_emitStabilized\",\n value: function _emitStabilized() {\n var _this2 = this;\n var amountOfIterations = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.stabilizationIterations;\n if (this.stabilizationIterations > 1 || this.startedStabilization === true) {\n _setTimeout(function () {\n _this2.body.emitter.emit(\"stabilized\", {\n iterations: amountOfIterations\n });\n _this2.startedStabilization = false;\n _this2.stabilizationIterations = 0;\n }, 0);\n }\n }\n\n /**\n * Calculate the forces for one physics iteration and move the nodes.\n *\n * @private\n */\n }, {\n key: \"physicsStep\",\n value: function physicsStep() {\n this.gravitySolver.solve();\n this.nodesSolver.solve();\n this.edgesSolver.solve();\n this.moveNodes();\n }\n\n /**\n * Make dynamic adjustments to the timestep, based on current state.\n *\n * Helper function for physicsTick().\n *\n * @private\n */\n }, {\n key: \"adjustTimeStep\",\n value: function adjustTimeStep() {\n var factor = 1.2; // Factor for increasing the timestep on success.\n\n // we compare the two steps. if it is acceptable we double the step.\n if (this._evaluateStepQuality() === true) {\n this.timestep = factor * this.timestep;\n } else {\n // if not, we decrease the step to a minimum of the options timestep.\n // if the decreased timestep is smaller than the options step, we do not reset the counter\n // we assume that the options timestep is stable enough.\n if (this.timestep / factor < this.options.timestep) {\n this.timestep = this.options.timestep;\n } else {\n // if the timestep was larger than 2 times the option one we check the adaptivity again to ensure\n // that large instabilities do not form.\n this.adaptiveCounter = -1; // check again next iteration\n this.timestep = Math.max(this.options.timestep, this.timestep / factor);\n }\n }\n }\n\n /**\n * A single simulation step (or 'tick') in the physics simulation\n *\n * @private\n */\n }, {\n key: \"physicsTick\",\n value: function physicsTick() {\n this._startStabilizing(); // this ensures that there is no start event when the network is already stable.\n if (this.stabilized === true) return;\n\n // adaptivity means the timestep adapts to the situation, only applicable for stabilization\n if (this.adaptiveTimestep === true && this.adaptiveTimestepEnabled === true) {\n // timestep remains stable for \"interval\" iterations.\n var doAdaptive = this.adaptiveCounter % this.adaptiveInterval === 0;\n if (doAdaptive) {\n // first the big step and revert.\n this.timestep = 2 * this.timestep;\n this.physicsStep();\n this.revert(); // saves the reference state\n\n // now the normal step. Since this is the last step, it is the more stable one and we will take this.\n this.timestep = 0.5 * this.timestep;\n\n // since it's half the step, we do it twice.\n this.physicsStep();\n this.physicsStep();\n this.adjustTimeStep();\n } else {\n this.physicsStep(); // normal step, keeping timestep constant\n }\n\n this.adaptiveCounter += 1;\n } else {\n // case for the static timestep, we reset it to the one in options and take a normal step.\n this.timestep = this.options.timestep;\n this.physicsStep();\n }\n if (this.stabilized === true) this.revert();\n this.stabilizationIterations++;\n }\n\n /**\n * Nodes and edges can have the physics toggles on or off. A collection of indices is created here so we can skip the check all the time.\n *\n * @private\n */\n }, {\n key: \"updatePhysicsData\",\n value: function updatePhysicsData() {\n this.physicsBody.forces = {};\n this.physicsBody.physicsNodeIndices = [];\n this.physicsBody.physicsEdgeIndices = [];\n var nodes = this.body.nodes;\n var edges = this.body.edges;\n\n // get node indices for physics\n for (var nodeId in nodes) {\n if (Object.prototype.hasOwnProperty.call(nodes, nodeId)) {\n if (nodes[nodeId].options.physics === true) {\n this.physicsBody.physicsNodeIndices.push(nodes[nodeId].id);\n }\n }\n }\n\n // get edge indices for physics\n for (var edgeId in edges) {\n if (Object.prototype.hasOwnProperty.call(edges, edgeId)) {\n if (edges[edgeId].options.physics === true) {\n this.physicsBody.physicsEdgeIndices.push(edges[edgeId].id);\n }\n }\n }\n\n // get the velocity and the forces vector\n for (var i = 0; i < this.physicsBody.physicsNodeIndices.length; i++) {\n var _nodeId = this.physicsBody.physicsNodeIndices[i];\n this.physicsBody.forces[_nodeId] = {\n x: 0,\n y: 0\n };\n\n // forces can be reset because they are recalculated. Velocities have to persist.\n if (this.physicsBody.velocities[_nodeId] === undefined) {\n this.physicsBody.velocities[_nodeId] = {\n x: 0,\n y: 0\n };\n }\n }\n\n // clean deleted nodes from the velocity vector\n for (var _nodeId2 in this.physicsBody.velocities) {\n if (nodes[_nodeId2] === undefined) {\n delete this.physicsBody.velocities[_nodeId2];\n }\n }\n }\n\n /**\n * Revert the simulation one step. This is done so after stabilization, every new start of the simulation will also say stabilized.\n */\n }, {\n key: \"revert\",\n value: function revert() {\n var nodeIds = _Object$keys(this.previousStates);\n var nodes = this.body.nodes;\n var velocities = this.physicsBody.velocities;\n this.referenceState = {};\n for (var i = 0; i < nodeIds.length; i++) {\n var nodeId = nodeIds[i];\n if (nodes[nodeId] !== undefined) {\n if (nodes[nodeId].options.physics === true) {\n this.referenceState[nodeId] = {\n positions: {\n x: nodes[nodeId].x,\n y: nodes[nodeId].y\n }\n };\n velocities[nodeId].x = this.previousStates[nodeId].vx;\n velocities[nodeId].y = this.previousStates[nodeId].vy;\n nodes[nodeId].x = this.previousStates[nodeId].x;\n nodes[nodeId].y = this.previousStates[nodeId].y;\n }\n } else {\n delete this.previousStates[nodeId];\n }\n }\n }\n\n /**\n * This compares the reference state to the current state\n *\n * @returns {boolean}\n * @private\n */\n }, {\n key: \"_evaluateStepQuality\",\n value: function _evaluateStepQuality() {\n var dx, dy, dpos;\n var nodes = this.body.nodes;\n var reference = this.referenceState;\n var posThreshold = 0.3;\n for (var nodeId in this.referenceState) {\n if (Object.prototype.hasOwnProperty.call(this.referenceState, nodeId) && nodes[nodeId] !== undefined) {\n dx = nodes[nodeId].x - reference[nodeId].positions.x;\n dy = nodes[nodeId].y - reference[nodeId].positions.y;\n dpos = Math.sqrt(Math.pow(dx, 2) + Math.pow(dy, 2));\n if (dpos > posThreshold) {\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * move the nodes one timestep and check if they are stabilized\n */\n }, {\n key: \"moveNodes\",\n value: function moveNodes() {\n var nodeIndices = this.physicsBody.physicsNodeIndices;\n var maxNodeVelocity = 0;\n var averageNodeVelocity = 0;\n\n // the velocity threshold (energy in the system) for the adaptivity toggle\n var velocityAdaptiveThreshold = 5;\n for (var i = 0; i < nodeIndices.length; i++) {\n var nodeId = nodeIndices[i];\n var nodeVelocity = this._performStep(nodeId);\n // stabilized is true if stabilized is true and velocity is smaller than vmin --> all nodes must be stabilized\n maxNodeVelocity = Math.max(maxNodeVelocity, nodeVelocity);\n averageNodeVelocity += nodeVelocity;\n }\n\n // evaluating the stabilized and adaptiveTimestepEnabled conditions\n this.adaptiveTimestepEnabled = averageNodeVelocity / nodeIndices.length < velocityAdaptiveThreshold;\n this.stabilized = maxNodeVelocity < this.options.minVelocity;\n }\n\n /**\n * Calculate new velocity for a coordinate direction\n *\n * @param {number} v velocity for current coordinate\n * @param {number} f regular force for current coordinate\n * @param {number} m mass of current node\n * @returns {number} new velocity for current coordinate\n * @private\n */\n }, {\n key: \"calculateComponentVelocity\",\n value: function calculateComponentVelocity(v, f, m) {\n var df = this.modelOptions.damping * v; // damping force\n var a = (f - df) / m; // acceleration\n\n v += a * this.timestep;\n\n // Put a limit on the velocities if it is really high\n var maxV = this.options.maxVelocity || 1e9;\n if (Math.abs(v) > maxV) {\n v = v > 0 ? maxV : -maxV;\n }\n return v;\n }\n\n /**\n * Perform the actual step\n *\n * @param {Node.id} nodeId\n * @returns {number} the new velocity of given node\n * @private\n */\n }, {\n key: \"_performStep\",\n value: function _performStep(nodeId) {\n var node = this.body.nodes[nodeId];\n var force = this.physicsBody.forces[nodeId];\n if (this.options.wind) {\n force.x += this.options.wind.x;\n force.y += this.options.wind.y;\n }\n var velocity = this.physicsBody.velocities[nodeId];\n\n // store the state so we can revert\n this.previousStates[nodeId] = {\n x: node.x,\n y: node.y,\n vx: velocity.x,\n vy: velocity.y\n };\n if (node.options.fixed.x === false) {\n velocity.x = this.calculateComponentVelocity(velocity.x, force.x, node.options.mass);\n node.x += velocity.x * this.timestep;\n } else {\n force.x = 0;\n velocity.x = 0;\n }\n if (node.options.fixed.y === false) {\n velocity.y = this.calculateComponentVelocity(velocity.y, force.y, node.options.mass);\n node.y += velocity.y * this.timestep;\n } else {\n force.y = 0;\n velocity.y = 0;\n }\n var totalVelocity = Math.sqrt(Math.pow(velocity.x, 2) + Math.pow(velocity.y, 2));\n return totalVelocity;\n }\n\n /**\n * When initializing and stabilizing, we can freeze nodes with a predefined position.\n * This greatly speeds up stabilization because only the supportnodes for the smoothCurves have to settle.\n *\n * @private\n */\n }, {\n key: \"_freezeNodes\",\n value: function _freezeNodes() {\n var nodes = this.body.nodes;\n for (var id in nodes) {\n if (Object.prototype.hasOwnProperty.call(nodes, id)) {\n if (nodes[id].x && nodes[id].y) {\n var fixed = nodes[id].options.fixed;\n this.freezeCache[id] = {\n x: fixed.x,\n y: fixed.y\n };\n fixed.x = true;\n fixed.y = true;\n }\n }\n }\n }\n\n /**\n * Unfreezes the nodes that have been frozen by _freezeDefinedNodes.\n *\n * @private\n */\n }, {\n key: \"_restoreFrozenNodes\",\n value: function _restoreFrozenNodes() {\n var nodes = this.body.nodes;\n for (var id in nodes) {\n if (Object.prototype.hasOwnProperty.call(nodes, id)) {\n if (this.freezeCache[id] !== undefined) {\n nodes[id].options.fixed.x = this.freezeCache[id].x;\n nodes[id].options.fixed.y = this.freezeCache[id].y;\n }\n }\n }\n this.freezeCache = {};\n }\n\n /**\n * Find a stable position for all nodes\n *\n * @param {number} [iterations=this.options.stabilization.iterations]\n */\n }, {\n key: \"stabilize\",\n value: function stabilize() {\n var _this3 = this;\n var iterations = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.options.stabilization.iterations;\n if (typeof iterations !== \"number\") {\n iterations = this.options.stabilization.iterations;\n console.error(\"The stabilize method needs a numeric amount of iterations. Switching to default: \", iterations);\n }\n if (this.physicsBody.physicsNodeIndices.length === 0) {\n this.ready = true;\n return;\n }\n\n // enable adaptive timesteps\n this.adaptiveTimestep = this.options.adaptiveTimestep;\n\n // this sets the width of all nodes initially which could be required for the avoidOverlap\n this.body.emitter.emit(\"_resizeNodes\");\n this.stopSimulation(); // stop the render loop\n this.stabilized = false;\n\n // block redraw requests\n this.body.emitter.emit(\"_blockRedraw\");\n this.targetIterations = iterations;\n\n // start the stabilization\n if (this.options.stabilization.onlyDynamicEdges === true) {\n this._freezeNodes();\n }\n this.stabilizationIterations = 0;\n _setTimeout(function () {\n return _this3._stabilizationBatch();\n }, 0);\n }\n\n /**\n * If not already stabilizing, start it and emit a start event.\n *\n * @returns {boolean} true if stabilization started with this call\n * @private\n */\n }, {\n key: \"_startStabilizing\",\n value: function _startStabilizing() {\n if (this.startedStabilization === true) return false;\n this.body.emitter.emit(\"startStabilizing\");\n this.startedStabilization = true;\n return true;\n }\n\n /**\n * One batch of stabilization\n *\n * @private\n */\n }, {\n key: \"_stabilizationBatch\",\n value: function _stabilizationBatch() {\n var _this4 = this;\n var running = function running() {\n return _this4.stabilized === false && _this4.stabilizationIterations < _this4.targetIterations;\n };\n var sendProgress = function sendProgress() {\n _this4.body.emitter.emit(\"stabilizationProgress\", {\n iterations: _this4.stabilizationIterations,\n total: _this4.targetIterations\n });\n };\n if (this._startStabilizing()) {\n sendProgress(); // Ensure that there is at least one start event.\n }\n\n var count = 0;\n while (running() && count < this.options.stabilization.updateInterval) {\n this.physicsTick();\n count++;\n }\n sendProgress();\n if (running()) {\n var _context2;\n _setTimeout(_bindInstanceProperty$1(_context2 = this._stabilizationBatch).call(_context2, this), 0);\n } else {\n this._finalizeStabilization();\n }\n }\n\n /**\n * Wrap up the stabilization, fit and emit the events.\n *\n * @private\n */\n }, {\n key: \"_finalizeStabilization\",\n value: function _finalizeStabilization() {\n this.body.emitter.emit(\"_allowRedraw\");\n if (this.options.stabilization.fit === true) {\n this.body.emitter.emit(\"fit\");\n }\n if (this.options.stabilization.onlyDynamicEdges === true) {\n this._restoreFrozenNodes();\n }\n this.body.emitter.emit(\"stabilizationIterationsDone\");\n this.body.emitter.emit(\"_requestRedraw\");\n if (this.stabilized === true) {\n this._emitStabilized();\n } else {\n this.startSimulation();\n }\n this.ready = true;\n }\n\n //--------------------------- DEBUGGING BELOW ---------------------------//\n\n /**\n * Debug function that display arrows for the forces currently active in the network.\n *\n * Use this when debugging only.\n *\n * @param {CanvasRenderingContext2D} ctx\n * @private\n */\n }, {\n key: \"_drawForces\",\n value: function _drawForces(ctx) {\n for (var i = 0; i < this.physicsBody.physicsNodeIndices.length; i++) {\n var index = this.physicsBody.physicsNodeIndices[i];\n var node = this.body.nodes[index];\n var force = this.physicsBody.forces[index];\n var factor = 20;\n var colorFactor = 0.03;\n var forceSize = Math.sqrt(Math.pow(force.x, 2) + Math.pow(force.x, 2));\n var size = Math.min(Math.max(5, forceSize), 15);\n var arrowSize = 3 * size;\n var color = HSVToHex((180 - Math.min(1, Math.max(0, colorFactor * forceSize)) * 180) / 360, 1, 1);\n var point = {\n x: node.x + factor * force.x,\n y: node.y + factor * force.y\n };\n ctx.lineWidth = size;\n ctx.strokeStyle = color;\n ctx.beginPath();\n ctx.moveTo(node.x, node.y);\n ctx.lineTo(point.x, point.y);\n ctx.stroke();\n var angle = Math.atan2(force.y, force.x);\n ctx.fillStyle = color;\n EndPoints.draw(ctx, {\n type: \"arrow\",\n point: point,\n angle: angle,\n length: arrowSize\n });\n _fillInstanceProperty(ctx).call(ctx);\n }\n }\n }]);\n return PhysicsEngine;\n}();\n\n/**\n * Utility Class\n */\nvar NetworkUtil = /*#__PURE__*/function () {\n /**\n * @ignore\n */\n function NetworkUtil() {\n _classCallCheck(this, NetworkUtil);\n }\n\n /**\n * Find the center position of the network considering the bounding boxes\n *\n * @param {Array.} allNodes\n * @param {Array.} [specificNodes=[]]\n * @returns {{minX: number, maxX: number, minY: number, maxY: number}}\n * @static\n */\n _createClass(NetworkUtil, null, [{\n key: \"getRange\",\n value: function getRange(allNodes) {\n var specificNodes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n var minY = 1e9,\n maxY = -1e9,\n minX = 1e9,\n maxX = -1e9,\n node;\n if (specificNodes.length > 0) {\n for (var i = 0; i < specificNodes.length; i++) {\n node = allNodes[specificNodes[i]];\n if (minX > node.shape.boundingBox.left) {\n minX = node.shape.boundingBox.left;\n }\n if (maxX < node.shape.boundingBox.right) {\n maxX = node.shape.boundingBox.right;\n }\n if (minY > node.shape.boundingBox.top) {\n minY = node.shape.boundingBox.top;\n } // top is negative, bottom is positive\n if (maxY < node.shape.boundingBox.bottom) {\n maxY = node.shape.boundingBox.bottom;\n } // top is negative, bottom is positive\n }\n }\n\n if (minX === 1e9 && maxX === -1e9 && minY === 1e9 && maxY === -1e9) {\n minY = 0, maxY = 0, minX = 0, maxX = 0;\n }\n return {\n minX: minX,\n maxX: maxX,\n minY: minY,\n maxY: maxY\n };\n }\n\n /**\n * Find the center position of the network\n *\n * @param {Array.} allNodes\n * @param {Array.} [specificNodes=[]]\n * @returns {{minX: number, maxX: number, minY: number, maxY: number}}\n * @static\n */\n }, {\n key: \"getRangeCore\",\n value: function getRangeCore(allNodes) {\n var specificNodes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n var minY = 1e9,\n maxY = -1e9,\n minX = 1e9,\n maxX = -1e9,\n node;\n if (specificNodes.length > 0) {\n for (var i = 0; i < specificNodes.length; i++) {\n node = allNodes[specificNodes[i]];\n if (minX > node.x) {\n minX = node.x;\n }\n if (maxX < node.x) {\n maxX = node.x;\n }\n if (minY > node.y) {\n minY = node.y;\n } // top is negative, bottom is positive\n if (maxY < node.y) {\n maxY = node.y;\n } // top is negative, bottom is positive\n }\n }\n\n if (minX === 1e9 && maxX === -1e9 && minY === 1e9 && maxY === -1e9) {\n minY = 0, maxY = 0, minX = 0, maxX = 0;\n }\n return {\n minX: minX,\n maxX: maxX,\n minY: minY,\n maxY: maxY\n };\n }\n\n /**\n * @param {object} range = {minX: minX, maxX: maxX, minY: minY, maxY: maxY};\n * @returns {{x: number, y: number}}\n * @static\n */\n }, {\n key: \"findCenter\",\n value: function findCenter(range) {\n return {\n x: 0.5 * (range.maxX + range.minX),\n y: 0.5 * (range.maxY + range.minY)\n };\n }\n\n /**\n * This returns a clone of the options or options of the edge or node to be used for construction of new edges or check functions for new nodes.\n *\n * @param {vis.Item} item\n * @param {'node'|undefined} type\n * @returns {{}}\n * @static\n */\n }, {\n key: \"cloneOptions\",\n value: function cloneOptions(item, type) {\n var clonedOptions = {};\n if (type === undefined || type === \"node\") {\n deepExtend(clonedOptions, item.options, true);\n clonedOptions.x = item.x;\n clonedOptions.y = item.y;\n clonedOptions.amountOfConnections = item.edges.length;\n } else {\n deepExtend(clonedOptions, item.options, true);\n }\n return clonedOptions;\n }\n }]);\n return NetworkUtil;\n}();\n\nfunction _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct$1() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * A Cluster is a special Node that allows a group of Nodes positioned closely together\n * to be represented by a single Cluster Node.\n *\n * @augments Node\n */\nvar Cluster = /*#__PURE__*/function (_Node) {\n _inherits(Cluster, _Node);\n var _super = _createSuper$1(Cluster);\n /**\n * @param {object} options\n * @param {object} body\n * @param {Array.}imagelist\n * @param {Array} grouplist\n * @param {object} globalOptions\n * @param {object} defaultOptions Global default options for nodes\n */\n function Cluster(options, body, imagelist, grouplist, globalOptions, defaultOptions) {\n var _this;\n _classCallCheck(this, Cluster);\n _this = _super.call(this, options, body, imagelist, grouplist, globalOptions, defaultOptions);\n _this.isCluster = true;\n _this.containedNodes = {};\n _this.containedEdges = {};\n return _this;\n }\n\n /**\n * Transfer child cluster data to current and disconnect the child cluster.\n *\n * Please consult the header comment in 'Clustering.js' for the fields set here.\n *\n * @param {string|number} childClusterId id of child cluster to open\n */\n _createClass(Cluster, [{\n key: \"_openChildCluster\",\n value: function _openChildCluster(childClusterId) {\n var _this2 = this;\n var childCluster = this.body.nodes[childClusterId];\n if (this.containedNodes[childClusterId] === undefined) {\n throw new Error(\"node with id: \" + childClusterId + \" not in current cluster\");\n }\n if (!childCluster.isCluster) {\n throw new Error(\"node with id: \" + childClusterId + \" is not a cluster\");\n }\n\n // Disconnect child cluster from current cluster\n delete this.containedNodes[childClusterId];\n forEach$5(childCluster.edges, function (edge) {\n delete _this2.containedEdges[edge.id];\n });\n\n // Transfer nodes and edges\n forEach$5(childCluster.containedNodes, function (node, nodeId) {\n _this2.containedNodes[nodeId] = node;\n });\n childCluster.containedNodes = {};\n forEach$5(childCluster.containedEdges, function (edge, edgeId) {\n _this2.containedEdges[edgeId] = edge;\n });\n childCluster.containedEdges = {};\n\n // Transfer edges within cluster edges which are clustered\n forEach$5(childCluster.edges, function (clusterEdge) {\n forEach$5(_this2.edges, function (parentClusterEdge) {\n var _context, _context2;\n // Assumption: a clustered edge can only be present in a single clustering edge\n // Not tested here\n var index = _indexOfInstanceProperty(_context = parentClusterEdge.clusteringEdgeReplacingIds).call(_context, clusterEdge.id);\n if (index === -1) return;\n forEach$5(clusterEdge.clusteringEdgeReplacingIds, function (srcId) {\n parentClusterEdge.clusteringEdgeReplacingIds.push(srcId);\n\n // Maintain correct bookkeeping for transferred edge\n _this2.body.edges[srcId].edgeReplacedById = parentClusterEdge.id;\n });\n\n // Remove cluster edge from parent cluster edge\n _spliceInstanceProperty(_context2 = parentClusterEdge.clusteringEdgeReplacingIds).call(_context2, index, 1);\n });\n });\n childCluster.edges = [];\n }\n }]);\n return Cluster;\n}(Node);\n\n/**\n * The clustering engine\n */\nvar ClusterEngine = /*#__PURE__*/function () {\n /**\n * @param {object} body\n */\n function ClusterEngine(body) {\n var _this = this;\n _classCallCheck(this, ClusterEngine);\n this.body = body;\n this.clusteredNodes = {}; // key: node id, value: { clusterId: , node: }\n this.clusteredEdges = {}; // key: edge id, value: restore information for given edge\n\n this.options = {};\n this.defaultOptions = {};\n _Object$assign(this.options, this.defaultOptions);\n this.body.emitter.on(\"_resetData\", function () {\n _this.clusteredNodes = {};\n _this.clusteredEdges = {};\n });\n }\n\n /**\n *\n * @param {number} hubsize\n * @param {object} options\n */\n _createClass(ClusterEngine, [{\n key: \"clusterByHubsize\",\n value: function clusterByHubsize(hubsize, options) {\n if (hubsize === undefined) {\n hubsize = this._getHubSize();\n } else if (_typeof$1(hubsize) === \"object\") {\n options = this._checkOptions(hubsize);\n hubsize = this._getHubSize();\n }\n var nodesToCluster = [];\n for (var i = 0; i < this.body.nodeIndices.length; i++) {\n var node = this.body.nodes[this.body.nodeIndices[i]];\n if (node.edges.length >= hubsize) {\n nodesToCluster.push(node.id);\n }\n }\n for (var _i = 0; _i < nodesToCluster.length; _i++) {\n this.clusterByConnection(nodesToCluster[_i], options, true);\n }\n this.body.emitter.emit(\"_dataChanged\");\n }\n\n /**\n * loop over all nodes, check if they adhere to the condition and cluster if needed.\n *\n * @param {object} options\n * @param {boolean} [refreshData=true]\n */\n }, {\n key: \"cluster\",\n value: function cluster() {\n var _this2 = this;\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var refreshData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (options.joinCondition === undefined) {\n throw new Error(\"Cannot call clusterByNodeData without a joinCondition function in the options.\");\n }\n\n // check if the options object is fine, append if needed\n options = this._checkOptions(options);\n var childNodesObj = {};\n var childEdgesObj = {};\n\n // collect the nodes that will be in the cluster\n forEach$5(this.body.nodes, function (node, nodeId) {\n if (node.options && options.joinCondition(node.options) === true) {\n childNodesObj[nodeId] = node;\n\n // collect the edges that will be in the cluster\n forEach$5(node.edges, function (edge) {\n if (_this2.clusteredEdges[edge.id] === undefined) {\n childEdgesObj[edge.id] = edge;\n }\n });\n }\n });\n this._cluster(childNodesObj, childEdgesObj, options, refreshData);\n }\n\n /**\n * Cluster all nodes in the network that have only X edges\n *\n * @param {number} edgeCount\n * @param {object} options\n * @param {boolean} [refreshData=true]\n */\n }, {\n key: \"clusterByEdgeCount\",\n value: function clusterByEdgeCount(edgeCount, options) {\n var _this3 = this;\n var refreshData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n options = this._checkOptions(options);\n var clusters = [];\n var usedNodes = {};\n var edge, edges, relevantEdgeCount;\n // collect the nodes that will be in the cluster\n var _loop = function _loop() {\n var childNodesObj = {};\n var childEdgesObj = {};\n var nodeId = _this3.body.nodeIndices[i];\n var node = _this3.body.nodes[nodeId];\n\n // if this node is already used in another cluster this session, we do not have to re-evaluate it.\n if (usedNodes[nodeId] === undefined) {\n relevantEdgeCount = 0;\n edges = [];\n for (var j = 0; j < node.edges.length; j++) {\n edge = node.edges[j];\n if (_this3.clusteredEdges[edge.id] === undefined) {\n if (edge.toId !== edge.fromId) {\n relevantEdgeCount++;\n }\n edges.push(edge);\n }\n }\n\n // this node qualifies, we collect its neighbours to start the clustering process.\n if (relevantEdgeCount === edgeCount) {\n var checkJoinCondition = function checkJoinCondition(node) {\n if (options.joinCondition === undefined || options.joinCondition === null) {\n return true;\n }\n var clonedOptions = NetworkUtil.cloneOptions(node);\n return options.joinCondition(clonedOptions);\n };\n var gatheringSuccessful = true;\n for (var _j = 0; _j < edges.length; _j++) {\n edge = edges[_j];\n var childNodeId = _this3._getConnectedId(edge, nodeId);\n // add the nodes to the list by the join condition.\n if (checkJoinCondition(node)) {\n childEdgesObj[edge.id] = edge;\n childNodesObj[nodeId] = node;\n childNodesObj[childNodeId] = _this3.body.nodes[childNodeId];\n usedNodes[nodeId] = true;\n } else {\n // this node does not qualify after all.\n gatheringSuccessful = false;\n break;\n }\n }\n\n // add to the cluster queue\n if (_Object$keys(childNodesObj).length > 0 && _Object$keys(childEdgesObj).length > 0 && gatheringSuccessful === true) {\n /**\n * Search for cluster data that contains any of the node id's\n *\n * @returns {boolean} true if no joinCondition, otherwise return value of joinCondition\n */\n var findClusterData = function findClusterData() {\n for (var n = 0; n < clusters.length; ++n) {\n // Search for a cluster containing any of the node id's\n for (var m in childNodesObj) {\n if (clusters[n].nodes[m] !== undefined) {\n return clusters[n];\n }\n }\n }\n return undefined;\n };\n\n // If any of the found nodes is part of a cluster found in this method,\n // add the current values to that cluster\n var foundCluster = findClusterData();\n if (foundCluster !== undefined) {\n // Add nodes to found cluster if not present\n for (var m in childNodesObj) {\n if (foundCluster.nodes[m] === undefined) {\n foundCluster.nodes[m] = childNodesObj[m];\n }\n }\n\n // Add edges to found cluster, if not present\n for (var _m in childEdgesObj) {\n if (foundCluster.edges[_m] === undefined) {\n foundCluster.edges[_m] = childEdgesObj[_m];\n }\n }\n } else {\n // Create a new cluster group\n clusters.push({\n nodes: childNodesObj,\n edges: childEdgesObj\n });\n }\n }\n }\n }\n };\n for (var i = 0; i < this.body.nodeIndices.length; i++) {\n _loop();\n }\n for (var _i2 = 0; _i2 < clusters.length; _i2++) {\n this._cluster(clusters[_i2].nodes, clusters[_i2].edges, options, false);\n }\n if (refreshData === true) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n\n /**\n * Cluster all nodes in the network that have only 1 edge\n *\n * @param {object} options\n * @param {boolean} [refreshData=true]\n */\n }, {\n key: \"clusterOutliers\",\n value: function clusterOutliers(options) {\n var refreshData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n this.clusterByEdgeCount(1, options, refreshData);\n }\n\n /**\n * Cluster all nodes in the network that have only 2 edge\n *\n * @param {object} options\n * @param {boolean} [refreshData=true]\n */\n }, {\n key: \"clusterBridges\",\n value: function clusterBridges(options) {\n var refreshData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n this.clusterByEdgeCount(2, options, refreshData);\n }\n\n /**\n * suck all connected nodes of a node into the node.\n *\n * @param {Node.id} nodeId\n * @param {object} options\n * @param {boolean} [refreshData=true]\n */\n }, {\n key: \"clusterByConnection\",\n value: function clusterByConnection(nodeId, options) {\n var _context;\n var refreshData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n // kill conditions\n if (nodeId === undefined) {\n throw new Error(\"No nodeId supplied to clusterByConnection!\");\n }\n if (this.body.nodes[nodeId] === undefined) {\n throw new Error(\"The nodeId given to clusterByConnection does not exist!\");\n }\n var node = this.body.nodes[nodeId];\n options = this._checkOptions(options, node);\n if (options.clusterNodeProperties.x === undefined) {\n options.clusterNodeProperties.x = node.x;\n }\n if (options.clusterNodeProperties.y === undefined) {\n options.clusterNodeProperties.y = node.y;\n }\n if (options.clusterNodeProperties.fixed === undefined) {\n options.clusterNodeProperties.fixed = {};\n options.clusterNodeProperties.fixed.x = node.options.fixed.x;\n options.clusterNodeProperties.fixed.y = node.options.fixed.y;\n }\n var childNodesObj = {};\n var childEdgesObj = {};\n var parentNodeId = node.id;\n var parentClonedOptions = NetworkUtil.cloneOptions(node);\n childNodesObj[parentNodeId] = node;\n\n // collect the nodes that will be in the cluster\n for (var i = 0; i < node.edges.length; i++) {\n var edge = node.edges[i];\n if (this.clusteredEdges[edge.id] === undefined) {\n var childNodeId = this._getConnectedId(edge, parentNodeId);\n\n // if the child node is not in a cluster\n if (this.clusteredNodes[childNodeId] === undefined) {\n if (childNodeId !== parentNodeId) {\n if (options.joinCondition === undefined) {\n childEdgesObj[edge.id] = edge;\n childNodesObj[childNodeId] = this.body.nodes[childNodeId];\n } else {\n // clone the options and insert some additional parameters that could be interesting.\n var childClonedOptions = NetworkUtil.cloneOptions(this.body.nodes[childNodeId]);\n if (options.joinCondition(parentClonedOptions, childClonedOptions) === true) {\n childEdgesObj[edge.id] = edge;\n childNodesObj[childNodeId] = this.body.nodes[childNodeId];\n }\n }\n } else {\n // swallow the edge if it is self-referencing.\n childEdgesObj[edge.id] = edge;\n }\n }\n }\n }\n var childNodeIDs = _mapInstanceProperty(_context = _Object$keys(childNodesObj)).call(_context, function (childNode) {\n return childNodesObj[childNode].id;\n });\n for (var childNodeKey in childNodesObj) {\n if (!Object.prototype.hasOwnProperty.call(childNodesObj, childNodeKey)) continue;\n var childNode = childNodesObj[childNodeKey];\n for (var y = 0; y < childNode.edges.length; y++) {\n var childEdge = childNode.edges[y];\n if (_indexOfInstanceProperty(childNodeIDs).call(childNodeIDs, this._getConnectedId(childEdge, childNode.id)) > -1) {\n childEdgesObj[childEdge.id] = childEdge;\n }\n }\n }\n this._cluster(childNodesObj, childEdgesObj, options, refreshData);\n }\n\n /**\n * This function creates the edges that will be attached to the cluster\n * It looks for edges that are connected to the nodes from the \"outside' of the cluster.\n *\n * @param {{Node.id: vis.Node}} childNodesObj\n * @param {{vis.Edge.id: vis.Edge}} childEdgesObj\n * @param {object} clusterNodeProperties\n * @param {object} clusterEdgeProperties\n * @private\n */\n }, {\n key: \"_createClusterEdges\",\n value: function _createClusterEdges(childNodesObj, childEdgesObj, clusterNodeProperties, clusterEdgeProperties) {\n var edge, childNodeId, childNode, toId, fromId, otherNodeId;\n\n // loop over all child nodes and their edges to find edges going out of the cluster\n // these edges will be replaced by clusterEdges.\n var childKeys = _Object$keys(childNodesObj);\n var createEdges = [];\n for (var i = 0; i < childKeys.length; i++) {\n childNodeId = childKeys[i];\n childNode = childNodesObj[childNodeId];\n\n // construct new edges from the cluster to others\n for (var j = 0; j < childNode.edges.length; j++) {\n edge = childNode.edges[j];\n // we only handle edges that are visible to the system, not the disabled ones from the clustering process.\n if (this.clusteredEdges[edge.id] === undefined) {\n // self-referencing edges will be added to the \"hidden\" list\n if (edge.toId == edge.fromId) {\n childEdgesObj[edge.id] = edge;\n } else {\n // set up the from and to.\n if (edge.toId == childNodeId) {\n // this is a double equals because ints and strings can be interchanged here.\n toId = clusterNodeProperties.id;\n fromId = edge.fromId;\n otherNodeId = fromId;\n } else {\n toId = edge.toId;\n fromId = clusterNodeProperties.id;\n otherNodeId = toId;\n }\n }\n\n // Only edges from the cluster outwards are being replaced.\n if (childNodesObj[otherNodeId] === undefined) {\n createEdges.push({\n edge: edge,\n fromId: fromId,\n toId: toId\n });\n }\n }\n }\n }\n\n //\n // Here we actually create the replacement edges.\n //\n // We could not do this in the loop above as the creation process\n // would add an edge to the edges array we are iterating over.\n //\n // NOTE: a clustered edge can have multiple base edges!\n //\n var newEdges = [];\n\n /**\n * Find a cluster edge which matches the given created edge.\n *\n * @param {vis.Edge} createdEdge\n * @returns {vis.Edge}\n */\n var getNewEdge = function getNewEdge(createdEdge) {\n for (var _j2 = 0; _j2 < newEdges.length; _j2++) {\n var newEdge = newEdges[_j2];\n\n // We replace both to and from edges with a single cluster edge\n var matchToDirection = createdEdge.fromId === newEdge.fromId && createdEdge.toId === newEdge.toId;\n var matchFromDirection = createdEdge.fromId === newEdge.toId && createdEdge.toId === newEdge.fromId;\n if (matchToDirection || matchFromDirection) {\n return newEdge;\n }\n }\n return null;\n };\n for (var _j3 = 0; _j3 < createEdges.length; _j3++) {\n var createdEdge = createEdges[_j3];\n var _edge = createdEdge.edge;\n var newEdge = getNewEdge(createdEdge);\n if (newEdge === null) {\n // Create a clustered edge for this connection\n newEdge = this._createClusteredEdge(createdEdge.fromId, createdEdge.toId, _edge, clusterEdgeProperties);\n newEdges.push(newEdge);\n } else {\n newEdge.clusteringEdgeReplacingIds.push(_edge.id);\n }\n\n // also reference the new edge in the old edge\n this.body.edges[_edge.id].edgeReplacedById = newEdge.id;\n\n // hide the replaced edge\n this._backupEdgeOptions(_edge);\n _edge.setOptions({\n physics: false\n });\n }\n }\n\n /**\n * This function checks the options that can be supplied to the different cluster functions\n * for certain fields and inserts defaults if needed\n *\n * @param {object} options\n * @returns {*}\n * @private\n */\n }, {\n key: \"_checkOptions\",\n value: function _checkOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (options.clusterEdgeProperties === undefined) {\n options.clusterEdgeProperties = {};\n }\n if (options.clusterNodeProperties === undefined) {\n options.clusterNodeProperties = {};\n }\n return options;\n }\n\n /**\n *\n * @param {object} childNodesObj | object with node objects, id as keys, same as childNodes except it also contains a source node\n * @param {object} childEdgesObj | object with edge objects, id as keys\n * @param {Array} options | object with {clusterNodeProperties, clusterEdgeProperties, processProperties}\n * @param {boolean} refreshData | when true, do not wrap up\n * @private\n */\n }, {\n key: \"_cluster\",\n value: function _cluster(childNodesObj, childEdgesObj, options) {\n var refreshData = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;\n // Remove nodes which are already clustered\n var tmpNodesToRemove = [];\n for (var nodeId in childNodesObj) {\n if (Object.prototype.hasOwnProperty.call(childNodesObj, nodeId)) {\n if (this.clusteredNodes[nodeId] !== undefined) {\n tmpNodesToRemove.push(nodeId);\n }\n }\n }\n for (var n = 0; n < tmpNodesToRemove.length; ++n) {\n delete childNodesObj[tmpNodesToRemove[n]];\n }\n\n // kill condition: no nodes don't bother\n if (_Object$keys(childNodesObj).length == 0) {\n return;\n }\n\n // allow clusters of 1 if options allow\n if (_Object$keys(childNodesObj).length == 1 && options.clusterNodeProperties.allowSingleNodeCluster != true) {\n return;\n }\n var clusterNodeProperties = deepExtend({}, options.clusterNodeProperties);\n\n // construct the clusterNodeProperties\n if (options.processProperties !== undefined) {\n // get the childNode options\n var childNodesOptions = [];\n for (var _nodeId in childNodesObj) {\n if (Object.prototype.hasOwnProperty.call(childNodesObj, _nodeId)) {\n var clonedOptions = NetworkUtil.cloneOptions(childNodesObj[_nodeId]);\n childNodesOptions.push(clonedOptions);\n }\n }\n\n // get cluster properties based on childNodes\n var childEdgesOptions = [];\n for (var edgeId in childEdgesObj) {\n if (Object.prototype.hasOwnProperty.call(childEdgesObj, edgeId)) {\n // these cluster edges will be removed on creation of the cluster.\n if (edgeId.substr(0, 12) !== \"clusterEdge:\") {\n var _clonedOptions = NetworkUtil.cloneOptions(childEdgesObj[edgeId], \"edge\");\n childEdgesOptions.push(_clonedOptions);\n }\n }\n }\n clusterNodeProperties = options.processProperties(clusterNodeProperties, childNodesOptions, childEdgesOptions);\n if (!clusterNodeProperties) {\n throw new Error(\"The processProperties function does not return properties!\");\n }\n }\n\n // check if we have an unique id;\n if (clusterNodeProperties.id === undefined) {\n clusterNodeProperties.id = \"cluster:\" + v4();\n }\n var clusterId = clusterNodeProperties.id;\n if (clusterNodeProperties.label === undefined) {\n clusterNodeProperties.label = \"cluster\";\n }\n\n // give the clusterNode a position if it does not have one.\n var pos = undefined;\n if (clusterNodeProperties.x === undefined) {\n pos = this._getClusterPosition(childNodesObj);\n clusterNodeProperties.x = pos.x;\n }\n if (clusterNodeProperties.y === undefined) {\n if (pos === undefined) {\n pos = this._getClusterPosition(childNodesObj);\n }\n clusterNodeProperties.y = pos.y;\n }\n\n // force the ID to remain the same\n clusterNodeProperties.id = clusterId;\n\n // create the cluster Node\n // Note that allowSingleNodeCluster, if present, is stored in the options as well\n var clusterNode = this.body.functions.createNode(clusterNodeProperties, Cluster);\n clusterNode.containedNodes = childNodesObj;\n clusterNode.containedEdges = childEdgesObj;\n // cache a copy from the cluster edge properties if we have to reconnect others later on\n clusterNode.clusterEdgeProperties = options.clusterEdgeProperties;\n\n // finally put the cluster node into global\n this.body.nodes[clusterNodeProperties.id] = clusterNode;\n this._clusterEdges(childNodesObj, childEdgesObj, clusterNodeProperties, options.clusterEdgeProperties);\n\n // set ID to undefined so no duplicates arise\n clusterNodeProperties.id = undefined;\n\n // wrap up\n if (refreshData === true) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n\n /**\n *\n * @param {Edge} edge\n * @private\n */\n }, {\n key: \"_backupEdgeOptions\",\n value: function _backupEdgeOptions(edge) {\n if (this.clusteredEdges[edge.id] === undefined) {\n this.clusteredEdges[edge.id] = {\n physics: edge.options.physics\n };\n }\n }\n\n /**\n *\n * @param {Edge} edge\n * @private\n */\n }, {\n key: \"_restoreEdge\",\n value: function _restoreEdge(edge) {\n var originalOptions = this.clusteredEdges[edge.id];\n if (originalOptions !== undefined) {\n edge.setOptions({\n physics: originalOptions.physics\n });\n delete this.clusteredEdges[edge.id];\n }\n }\n\n /**\n * Check if a node is a cluster.\n *\n * @param {Node.id} nodeId\n * @returns {*}\n */\n }, {\n key: \"isCluster\",\n value: function isCluster(nodeId) {\n if (this.body.nodes[nodeId] !== undefined) {\n return this.body.nodes[nodeId].isCluster === true;\n } else {\n console.error(\"Node does not exist.\");\n return false;\n }\n }\n\n /**\n * get the position of the cluster node based on what's inside\n *\n * @param {object} childNodesObj | object with node objects, id as keys\n * @returns {{x: number, y: number}}\n * @private\n */\n }, {\n key: \"_getClusterPosition\",\n value: function _getClusterPosition(childNodesObj) {\n var childKeys = _Object$keys(childNodesObj);\n var minX = childNodesObj[childKeys[0]].x;\n var maxX = childNodesObj[childKeys[0]].x;\n var minY = childNodesObj[childKeys[0]].y;\n var maxY = childNodesObj[childKeys[0]].y;\n var node;\n for (var i = 1; i < childKeys.length; i++) {\n node = childNodesObj[childKeys[i]];\n minX = node.x < minX ? node.x : minX;\n maxX = node.x > maxX ? node.x : maxX;\n minY = node.y < minY ? node.y : minY;\n maxY = node.y > maxY ? node.y : maxY;\n }\n return {\n x: 0.5 * (minX + maxX),\n y: 0.5 * (minY + maxY)\n };\n }\n\n /**\n * Open a cluster by calling this function.\n *\n * @param {vis.Edge.id} clusterNodeId | the ID of the cluster node\n * @param {object} options\n * @param {boolean} refreshData | wrap up afterwards if not true\n */\n }, {\n key: \"openCluster\",\n value: function openCluster(clusterNodeId, options) {\n var refreshData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n // kill conditions\n if (clusterNodeId === undefined) {\n throw new Error(\"No clusterNodeId supplied to openCluster.\");\n }\n var clusterNode = this.body.nodes[clusterNodeId];\n if (clusterNode === undefined) {\n throw new Error(\"The clusterNodeId supplied to openCluster does not exist.\");\n }\n if (clusterNode.isCluster !== true || clusterNode.containedNodes === undefined || clusterNode.containedEdges === undefined) {\n throw new Error(\"The node:\" + clusterNodeId + \" is not a valid cluster.\");\n }\n\n // Check if current cluster is clustered itself\n var stack = this.findNode(clusterNodeId);\n var parentIndex = _indexOfInstanceProperty(stack).call(stack, clusterNodeId) - 1;\n if (parentIndex >= 0) {\n // Current cluster is clustered; transfer contained nodes and edges to parent\n var parentClusterNodeId = stack[parentIndex];\n var parentClusterNode = this.body.nodes[parentClusterNodeId];\n\n // clustering.clusteredNodes and clustering.clusteredEdges remain unchanged\n parentClusterNode._openChildCluster(clusterNodeId);\n\n // All components of child cluster node have been transferred. It can die now.\n delete this.body.nodes[clusterNodeId];\n if (refreshData === true) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n return;\n }\n\n // main body\n var containedNodes = clusterNode.containedNodes;\n var containedEdges = clusterNode.containedEdges;\n\n // allow the user to position the nodes after release.\n if (options !== undefined && options.releaseFunction !== undefined && typeof options.releaseFunction === \"function\") {\n var positions = {};\n var clusterPosition = {\n x: clusterNode.x,\n y: clusterNode.y\n };\n for (var nodeId in containedNodes) {\n if (Object.prototype.hasOwnProperty.call(containedNodes, nodeId)) {\n var containedNode = this.body.nodes[nodeId];\n positions[nodeId] = {\n x: containedNode.x,\n y: containedNode.y\n };\n }\n }\n var newPositions = options.releaseFunction(clusterPosition, positions);\n for (var _nodeId2 in containedNodes) {\n if (Object.prototype.hasOwnProperty.call(containedNodes, _nodeId2)) {\n var _containedNode = this.body.nodes[_nodeId2];\n if (newPositions[_nodeId2] !== undefined) {\n _containedNode.x = newPositions[_nodeId2].x === undefined ? clusterNode.x : newPositions[_nodeId2].x;\n _containedNode.y = newPositions[_nodeId2].y === undefined ? clusterNode.y : newPositions[_nodeId2].y;\n }\n }\n }\n } else {\n // copy the position from the cluster\n forEach$5(containedNodes, function (containedNode) {\n // inherit position\n if (containedNode.options.fixed.x === false) {\n containedNode.x = clusterNode.x;\n }\n if (containedNode.options.fixed.y === false) {\n containedNode.y = clusterNode.y;\n }\n });\n }\n\n // release nodes\n for (var _nodeId3 in containedNodes) {\n if (Object.prototype.hasOwnProperty.call(containedNodes, _nodeId3)) {\n var _containedNode2 = this.body.nodes[_nodeId3];\n\n // inherit speed\n _containedNode2.vx = clusterNode.vx;\n _containedNode2.vy = clusterNode.vy;\n _containedNode2.setOptions({\n physics: true\n });\n delete this.clusteredNodes[_nodeId3];\n }\n }\n\n // copy the clusterNode edges because we cannot iterate over an object that we add or remove from.\n var edgesToBeDeleted = [];\n for (var i = 0; i < clusterNode.edges.length; i++) {\n edgesToBeDeleted.push(clusterNode.edges[i]);\n }\n\n // actually handling the deleting.\n for (var _i3 = 0; _i3 < edgesToBeDeleted.length; _i3++) {\n var edge = edgesToBeDeleted[_i3];\n var otherNodeId = this._getConnectedId(edge, clusterNodeId);\n var otherNode = this.clusteredNodes[otherNodeId];\n for (var j = 0; j < edge.clusteringEdgeReplacingIds.length; j++) {\n var transferId = edge.clusteringEdgeReplacingIds[j];\n var transferEdge = this.body.edges[transferId];\n if (transferEdge === undefined) continue;\n\n // if the other node is in another cluster, we transfer ownership of this edge to the other cluster\n if (otherNode !== undefined) {\n // transfer ownership:\n var otherCluster = this.body.nodes[otherNode.clusterId];\n otherCluster.containedEdges[transferEdge.id] = transferEdge;\n\n // delete local reference\n delete containedEdges[transferEdge.id];\n\n // get to and from\n var fromId = transferEdge.fromId;\n var toId = transferEdge.toId;\n if (transferEdge.toId == otherNodeId) {\n toId = otherNode.clusterId;\n } else {\n fromId = otherNode.clusterId;\n }\n\n // create new cluster edge from the otherCluster\n this._createClusteredEdge(fromId, toId, transferEdge, otherCluster.clusterEdgeProperties, {\n hidden: false,\n physics: true\n });\n } else {\n this._restoreEdge(transferEdge);\n }\n }\n edge.remove();\n }\n\n // handle the releasing of the edges\n for (var edgeId in containedEdges) {\n if (Object.prototype.hasOwnProperty.call(containedEdges, edgeId)) {\n this._restoreEdge(containedEdges[edgeId]);\n }\n }\n\n // remove clusterNode\n delete this.body.nodes[clusterNodeId];\n if (refreshData === true) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n\n /**\n *\n * @param {Cluster.id} clusterId\n * @returns {Array.}\n */\n }, {\n key: \"getNodesInCluster\",\n value: function getNodesInCluster(clusterId) {\n var nodesArray = [];\n if (this.isCluster(clusterId) === true) {\n var containedNodes = this.body.nodes[clusterId].containedNodes;\n for (var nodeId in containedNodes) {\n if (Object.prototype.hasOwnProperty.call(containedNodes, nodeId)) {\n nodesArray.push(this.body.nodes[nodeId].id);\n }\n }\n }\n return nodesArray;\n }\n\n /**\n * Get the stack clusterId's that a certain node resides in. cluster A -> cluster B -> cluster C -> node\n *\n * If a node can't be found in the chain, return an empty array.\n *\n * @param {string|number} nodeId\n * @returns {Array}\n */\n }, {\n key: \"findNode\",\n value: function findNode(nodeId) {\n var stack = [];\n var max = 100;\n var counter = 0;\n var node;\n while (this.clusteredNodes[nodeId] !== undefined && counter < max) {\n node = this.body.nodes[nodeId];\n if (node === undefined) return [];\n stack.push(node.id);\n nodeId = this.clusteredNodes[nodeId].clusterId;\n counter++;\n }\n node = this.body.nodes[nodeId];\n if (node === undefined) return [];\n stack.push(node.id);\n _reverseInstanceProperty(stack).call(stack);\n return stack;\n }\n\n /**\n * Using a clustered nodeId, update with the new options\n *\n * @param {Node.id} clusteredNodeId\n * @param {object} newOptions\n */\n }, {\n key: \"updateClusteredNode\",\n value: function updateClusteredNode(clusteredNodeId, newOptions) {\n if (clusteredNodeId === undefined) {\n throw new Error(\"No clusteredNodeId supplied to updateClusteredNode.\");\n }\n if (newOptions === undefined) {\n throw new Error(\"No newOptions supplied to updateClusteredNode.\");\n }\n if (this.body.nodes[clusteredNodeId] === undefined) {\n throw new Error(\"The clusteredNodeId supplied to updateClusteredNode does not exist.\");\n }\n this.body.nodes[clusteredNodeId].setOptions(newOptions);\n this.body.emitter.emit(\"_dataChanged\");\n }\n\n /**\n * Using a base edgeId, update all related clustered edges with the new options\n *\n * @param {vis.Edge.id} startEdgeId\n * @param {object} newOptions\n */\n }, {\n key: \"updateEdge\",\n value: function updateEdge(startEdgeId, newOptions) {\n if (startEdgeId === undefined) {\n throw new Error(\"No startEdgeId supplied to updateEdge.\");\n }\n if (newOptions === undefined) {\n throw new Error(\"No newOptions supplied to updateEdge.\");\n }\n if (this.body.edges[startEdgeId] === undefined) {\n throw new Error(\"The startEdgeId supplied to updateEdge does not exist.\");\n }\n var allEdgeIds = this.getClusteredEdges(startEdgeId);\n for (var i = 0; i < allEdgeIds.length; i++) {\n var edge = this.body.edges[allEdgeIds[i]];\n edge.setOptions(newOptions);\n }\n this.body.emitter.emit(\"_dataChanged\");\n }\n\n /**\n * Get a stack of clusterEdgeId's (+base edgeid) that a base edge is the same as. cluster edge C -> cluster edge B -> cluster edge A -> base edge(edgeId)\n *\n * @param {vis.Edge.id} edgeId\n * @returns {Array.}\n */\n }, {\n key: \"getClusteredEdges\",\n value: function getClusteredEdges(edgeId) {\n var stack = [];\n var max = 100;\n var counter = 0;\n while (edgeId !== undefined && this.body.edges[edgeId] !== undefined && counter < max) {\n stack.push(this.body.edges[edgeId].id);\n edgeId = this.body.edges[edgeId].edgeReplacedById;\n counter++;\n }\n _reverseInstanceProperty(stack).call(stack);\n return stack;\n }\n\n /**\n * Get the base edge id of clusterEdgeId. cluster edge (clusteredEdgeId) -> cluster edge B -> cluster edge C -> base edge\n *\n * @param {vis.Edge.id} clusteredEdgeId\n * @returns {vis.Edge.id} baseEdgeId\n *\n * TODO: deprecate in 5.0.0. Method getBaseEdges() is the correct one to use.\n */\n }, {\n key: \"getBaseEdge\",\n value: function getBaseEdge(clusteredEdgeId) {\n // Just kludge this by returning the first base edge id found\n return this.getBaseEdges(clusteredEdgeId)[0];\n }\n\n /**\n * Get all regular edges for this clustered edge id.\n *\n * @param {vis.Edge.id} clusteredEdgeId\n * @returns {Array.} all baseEdgeId's under this clustered edge\n */\n }, {\n key: \"getBaseEdges\",\n value: function getBaseEdges(clusteredEdgeId) {\n var IdsToHandle = [clusteredEdgeId];\n var doneIds = [];\n var foundIds = [];\n var max = 100;\n var counter = 0;\n while (IdsToHandle.length > 0 && counter < max) {\n var nextId = IdsToHandle.pop();\n if (nextId === undefined) continue; // Paranoia here and onwards\n var nextEdge = this.body.edges[nextId];\n if (nextEdge === undefined) continue;\n counter++;\n var replacingIds = nextEdge.clusteringEdgeReplacingIds;\n if (replacingIds === undefined) {\n // nextId is a base id\n foundIds.push(nextId);\n } else {\n // Another cluster edge, unravel this one as well\n for (var i = 0; i < replacingIds.length; ++i) {\n var replacingId = replacingIds[i];\n\n // Don't add if already handled\n // TODO: never triggers; find a test-case which does\n if (_indexOfInstanceProperty(IdsToHandle).call(IdsToHandle, replacingIds) !== -1 || _indexOfInstanceProperty(doneIds).call(doneIds, replacingIds) !== -1) {\n continue;\n }\n IdsToHandle.push(replacingId);\n }\n }\n doneIds.push(nextId);\n }\n return foundIds;\n }\n\n /**\n * Get the Id the node is connected to\n *\n * @param {vis.Edge} edge\n * @param {Node.id} nodeId\n * @returns {*}\n * @private\n */\n }, {\n key: \"_getConnectedId\",\n value: function _getConnectedId(edge, nodeId) {\n if (edge.toId != nodeId) {\n return edge.toId;\n } else if (edge.fromId != nodeId) {\n return edge.fromId;\n } else {\n return edge.fromId;\n }\n }\n\n /**\n * We determine how many connections denote an important hub.\n * We take the mean + 2*std as the important hub size. (Assuming a normal distribution of data, ~2.2%)\n *\n * @returns {number}\n * @private\n */\n }, {\n key: \"_getHubSize\",\n value: function _getHubSize() {\n var average = 0;\n var averageSquared = 0;\n var hubCounter = 0;\n var largestHub = 0;\n for (var i = 0; i < this.body.nodeIndices.length; i++) {\n var node = this.body.nodes[this.body.nodeIndices[i]];\n if (node.edges.length > largestHub) {\n largestHub = node.edges.length;\n }\n average += node.edges.length;\n averageSquared += Math.pow(node.edges.length, 2);\n hubCounter += 1;\n }\n average = average / hubCounter;\n averageSquared = averageSquared / hubCounter;\n var variance = averageSquared - Math.pow(average, 2);\n var standardDeviation = Math.sqrt(variance);\n var hubThreshold = Math.floor(average + 2 * standardDeviation);\n\n // always have at least one to cluster\n if (hubThreshold > largestHub) {\n hubThreshold = largestHub;\n }\n return hubThreshold;\n }\n\n /**\n * Create an edge for the cluster representation.\n *\n * @param {Node.id} fromId\n * @param {Node.id} toId\n * @param {vis.Edge} baseEdge\n * @param {object} clusterEdgeProperties\n * @param {object} extraOptions\n * @returns {Edge} newly created clustered edge\n * @private\n */\n }, {\n key: \"_createClusteredEdge\",\n value: function _createClusteredEdge(fromId, toId, baseEdge, clusterEdgeProperties, extraOptions) {\n // copy the options of the edge we will replace\n var clonedOptions = NetworkUtil.cloneOptions(baseEdge, \"edge\");\n // make sure the properties of clusterEdges are superimposed on it\n deepExtend(clonedOptions, clusterEdgeProperties);\n\n // set up the edge\n clonedOptions.from = fromId;\n clonedOptions.to = toId;\n clonedOptions.id = \"clusterEdge:\" + v4();\n\n // apply the edge specific options to it if specified\n if (extraOptions !== undefined) {\n deepExtend(clonedOptions, extraOptions);\n }\n var newEdge = this.body.functions.createEdge(clonedOptions);\n newEdge.clusteringEdgeReplacingIds = [baseEdge.id];\n newEdge.connect();\n\n // Register the new edge\n this.body.edges[newEdge.id] = newEdge;\n return newEdge;\n }\n\n /**\n * Add the passed child nodes and edges to the given cluster node.\n *\n * @param {object | Node} childNodes hash of nodes or single node to add in cluster\n * @param {object | Edge} childEdges hash of edges or single edge to take into account when clustering\n * @param {Node} clusterNode cluster node to add nodes and edges to\n * @param {object} [clusterEdgeProperties]\n * @private\n */\n }, {\n key: \"_clusterEdges\",\n value: function _clusterEdges(childNodes, childEdges, clusterNode, clusterEdgeProperties) {\n if (childEdges instanceof Edge) {\n var edge = childEdges;\n var obj = {};\n obj[edge.id] = edge;\n childEdges = obj;\n }\n if (childNodes instanceof Node) {\n var node = childNodes;\n var _obj = {};\n _obj[node.id] = node;\n childNodes = _obj;\n }\n if (clusterNode === undefined || clusterNode === null) {\n throw new Error(\"_clusterEdges: parameter clusterNode required\");\n }\n if (clusterEdgeProperties === undefined) {\n // Take the required properties from the cluster node\n clusterEdgeProperties = clusterNode.clusterEdgeProperties;\n }\n\n // create the new edges that will connect to the cluster.\n // All self-referencing edges will be added to childEdges here.\n this._createClusterEdges(childNodes, childEdges, clusterNode, clusterEdgeProperties);\n\n // disable the childEdges\n for (var edgeId in childEdges) {\n if (Object.prototype.hasOwnProperty.call(childEdges, edgeId)) {\n if (this.body.edges[edgeId] !== undefined) {\n var _edge2 = this.body.edges[edgeId];\n // cache the options before changing\n this._backupEdgeOptions(_edge2);\n // disable physics and hide the edge\n _edge2.setOptions({\n physics: false\n });\n }\n }\n }\n\n // disable the childNodes\n for (var nodeId in childNodes) {\n if (Object.prototype.hasOwnProperty.call(childNodes, nodeId)) {\n this.clusteredNodes[nodeId] = {\n clusterId: clusterNode.id,\n node: this.body.nodes[nodeId]\n };\n this.body.nodes[nodeId].setOptions({\n physics: false\n });\n }\n }\n }\n\n /**\n * Determine in which cluster given nodeId resides.\n *\n * If not in cluster, return undefined.\n *\n * NOTE: If you know a cleaner way to do this, please enlighten me (wimrijnders).\n *\n * @param {Node.id} nodeId\n * @returns {Node|undefined} Node instance for cluster, if present\n * @private\n */\n }, {\n key: \"_getClusterNodeForNode\",\n value: function _getClusterNodeForNode(nodeId) {\n if (nodeId === undefined) return undefined;\n var clusteredNode = this.clusteredNodes[nodeId];\n\n // NOTE: If no cluster info found, it should actually be an error\n if (clusteredNode === undefined) return undefined;\n var clusterId = clusteredNode.clusterId;\n if (clusterId === undefined) return undefined;\n return this.body.nodes[clusterId];\n }\n\n /**\n * Internal helper function for conditionally removing items in array\n *\n * Done like this because Array.filter() is not fully supported by all IE's.\n *\n * @param {Array} arr\n * @param {Function} callback\n * @returns {Array}\n * @private\n */\n }, {\n key: \"_filter\",\n value: function _filter(arr, callback) {\n var ret = [];\n forEach$5(arr, function (item) {\n if (callback(item)) {\n ret.push(item);\n }\n });\n return ret;\n }\n\n /**\n * Scan all edges for changes in clustering and adjust this if necessary.\n *\n * Call this (internally) after there has been a change in node or edge data.\n *\n * Pre: States of this.body.nodes and this.body.edges consistent\n * Pre: this.clusteredNodes and this.clusteredEdge consistent with containedNodes and containedEdges\n * of cluster nodes.\n */\n }, {\n key: \"_updateState\",\n value: function _updateState() {\n var _this4 = this;\n var nodeId;\n var deletedNodeIds = [];\n var deletedEdgeIds = {};\n\n /**\n * Utility function to iterate over clustering nodes only\n *\n * @param {Function} callback function to call for each cluster node\n */\n var eachClusterNode = function eachClusterNode(callback) {\n forEach$5(_this4.body.nodes, function (node) {\n if (node.isCluster === true) {\n callback(node);\n }\n });\n };\n\n //\n // Remove deleted regular nodes from clustering\n //\n\n // Determine the deleted nodes\n for (nodeId in this.clusteredNodes) {\n if (!Object.prototype.hasOwnProperty.call(this.clusteredNodes, nodeId)) continue;\n var node = this.body.nodes[nodeId];\n if (node === undefined) {\n deletedNodeIds.push(nodeId);\n }\n }\n\n // Remove nodes from cluster nodes\n eachClusterNode(function (clusterNode) {\n for (var n = 0; n < deletedNodeIds.length; n++) {\n delete clusterNode.containedNodes[deletedNodeIds[n]];\n }\n });\n\n // Remove nodes from cluster list\n for (var n = 0; n < deletedNodeIds.length; n++) {\n delete this.clusteredNodes[deletedNodeIds[n]];\n }\n\n //\n // Remove deleted edges from clustering\n //\n\n // Add the deleted clustered edges to the list\n forEach$5(this.clusteredEdges, function (edgeId) {\n var edge = _this4.body.edges[edgeId];\n if (edge === undefined || !edge.endPointsValid()) {\n deletedEdgeIds[edgeId] = edgeId;\n }\n });\n\n // Cluster nodes can also contain edges which are not clustered,\n // i.e. nodes 1-2 within cluster with an edge in between.\n // So the cluster nodes also need to be scanned for invalid edges\n eachClusterNode(function (clusterNode) {\n forEach$5(clusterNode.containedEdges, function (edge, edgeId) {\n if (!edge.endPointsValid() && !deletedEdgeIds[edgeId]) {\n deletedEdgeIds[edgeId] = edgeId;\n }\n });\n });\n\n // Also scan for cluster edges which need to be removed in the active list.\n // Regular edges have been removed beforehand, so this only picks up the cluster edges.\n forEach$5(this.body.edges, function (edge, edgeId) {\n // Explicitly scan the contained edges for validity\n var isValid = true;\n var replacedIds = edge.clusteringEdgeReplacingIds;\n if (replacedIds !== undefined) {\n var numValid = 0;\n forEach$5(replacedIds, function (containedEdgeId) {\n var containedEdge = _this4.body.edges[containedEdgeId];\n if (containedEdge !== undefined && containedEdge.endPointsValid()) {\n numValid += 1;\n }\n });\n isValid = numValid > 0;\n }\n if (!edge.endPointsValid() || !isValid) {\n deletedEdgeIds[edgeId] = edgeId;\n }\n });\n\n // Remove edges from cluster nodes\n eachClusterNode(function (clusterNode) {\n forEach$5(deletedEdgeIds, function (deletedEdgeId) {\n delete clusterNode.containedEdges[deletedEdgeId];\n forEach$5(clusterNode.edges, function (edge, m) {\n if (edge.id === deletedEdgeId) {\n clusterNode.edges[m] = null; // Don't want to directly delete here, because in the loop\n return;\n }\n edge.clusteringEdgeReplacingIds = _this4._filter(edge.clusteringEdgeReplacingIds, function (id) {\n return !deletedEdgeIds[id];\n });\n });\n\n // Clean up the nulls\n clusterNode.edges = _this4._filter(clusterNode.edges, function (item) {\n return item !== null;\n });\n });\n });\n\n // Remove from cluster list\n forEach$5(deletedEdgeIds, function (edgeId) {\n delete _this4.clusteredEdges[edgeId];\n });\n\n // Remove cluster edges from active list (this.body.edges).\n // deletedEdgeIds still contains id of regular edges, but these should all\n // be gone when you reach here.\n forEach$5(deletedEdgeIds, function (edgeId) {\n delete _this4.body.edges[edgeId];\n });\n\n //\n // Check changed cluster state of edges\n //\n\n // Iterating over keys here, because edges may be removed in the loop\n var ids = _Object$keys(this.body.edges);\n forEach$5(ids, function (edgeId) {\n var edge = _this4.body.edges[edgeId];\n var shouldBeClustered = _this4._isClusteredNode(edge.fromId) || _this4._isClusteredNode(edge.toId);\n if (shouldBeClustered === _this4._isClusteredEdge(edge.id)) {\n return; // all is well\n }\n\n if (shouldBeClustered) {\n // add edge to clustering\n var clusterFrom = _this4._getClusterNodeForNode(edge.fromId);\n if (clusterFrom !== undefined) {\n _this4._clusterEdges(_this4.body.nodes[edge.fromId], edge, clusterFrom);\n }\n var clusterTo = _this4._getClusterNodeForNode(edge.toId);\n if (clusterTo !== undefined) {\n _this4._clusterEdges(_this4.body.nodes[edge.toId], edge, clusterTo);\n }\n\n // TODO: check that it works for both edges clustered\n // (This might be paranoia)\n } else {\n delete _this4._clusterEdges[edgeId];\n _this4._restoreEdge(edge);\n // This should not be happening, the state should\n // be properly updated at this point.\n //\n // If it *is* reached during normal operation, then we have to implement\n // undo clustering for this edge here.\n // throw new Error('remove edge from clustering not implemented!')\n }\n });\n\n // Clusters may be nested to any level. Keep on opening until nothing to open\n var changed = false;\n var continueLoop = true;\n var _loop2 = function _loop2() {\n var clustersToOpen = [];\n\n // Determine the id's of clusters that need opening\n eachClusterNode(function (clusterNode) {\n var numNodes = _Object$keys(clusterNode.containedNodes).length;\n var allowSingle = clusterNode.options.allowSingleNodeCluster === true;\n if (allowSingle && numNodes < 1 || !allowSingle && numNodes < 2) {\n clustersToOpen.push(clusterNode.id);\n }\n });\n\n // Open them\n for (var _n = 0; _n < clustersToOpen.length; ++_n) {\n _this4.openCluster(clustersToOpen[_n], {}, false /* Don't refresh, we're in an refresh/update already */);\n }\n\n continueLoop = clustersToOpen.length > 0;\n changed = changed || continueLoop;\n };\n while (continueLoop) {\n _loop2();\n }\n if (changed) {\n this._updateState(); // Redo this method (recursion possible! should be safe)\n }\n }\n\n /**\n * Determine if node with given id is part of a cluster.\n *\n * @param {Node.id} nodeId\n * @returns {boolean} true if part of a cluster.\n */\n }, {\n key: \"_isClusteredNode\",\n value: function _isClusteredNode(nodeId) {\n return this.clusteredNodes[nodeId] !== undefined;\n }\n\n /**\n * Determine if edge with given id is not visible due to clustering.\n *\n * An edge is considered clustered if:\n * - it is directly replaced by a clustering edge\n * - any of its connecting nodes is in a cluster\n *\n * @param {vis.Edge.id} edgeId\n * @returns {boolean} true if part of a cluster.\n */\n }, {\n key: \"_isClusteredEdge\",\n value: function _isClusteredEdge(edgeId) {\n return this.clusteredEdges[edgeId] !== undefined;\n }\n }]);\n return ClusterEngine;\n}();\n\n/**\n * Initializes window.requestAnimationFrame() to a usable form.\n *\n * Specifically, set up this method for the case of running on node.js with jsdom enabled.\n *\n * NOTES:\n *\n * On node.js, when calling this directly outside of this class, `window` is not defined.\n * This happens even if jsdom is used.\n * For node.js + jsdom, `window` is available at the moment the constructor is called.\n * For this reason, the called is placed within the constructor.\n * Even then, `window.requestAnimationFrame()` is not defined, so it still needs to be added.\n * During unit testing, it happens that the window object is reset during execution, causing\n * a runtime error due to missing `requestAnimationFrame()`. This needs to be compensated for,\n * see `_requestNextFrame()`.\n * Since this is a global object, it may affect other modules besides `Network`. With normal\n * usage, this does not cause any problems. During unit testing, errors may occur. These have\n * been compensated for, see comment block in _requestNextFrame().\n *\n * @private\n */\nfunction _initRequestAnimationFrame() {\n var func;\n if (window !== undefined) {\n func = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame;\n }\n if (func === undefined) {\n // window or method not present, setting mock requestAnimationFrame\n window.requestAnimationFrame = function (callback) {\n //console.log(\"Called mock requestAnimationFrame\");\n callback();\n };\n } else {\n window.requestAnimationFrame = func;\n }\n}\n\n/**\n * The canvas renderer\n */\nvar CanvasRenderer = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {Canvas} canvas\n */\n function CanvasRenderer(body, canvas) {\n _classCallCheck(this, CanvasRenderer);\n _initRequestAnimationFrame();\n this.body = body;\n this.canvas = canvas;\n this.redrawRequested = false;\n this.renderTimer = undefined;\n this.requiresTimeout = true;\n this.renderingActive = false;\n this.renderRequests = 0;\n this.allowRedraw = true;\n this.dragging = false;\n this.zooming = false;\n this.options = {};\n this.defaultOptions = {\n hideEdgesOnDrag: false,\n hideEdgesOnZoom: false,\n hideNodesOnDrag: false\n };\n _Object$assign(this.options, this.defaultOptions);\n this._determineBrowserMethod();\n this.bindEventListeners();\n }\n\n /**\n * Binds event listeners\n */\n _createClass(CanvasRenderer, [{\n key: \"bindEventListeners\",\n value: function bindEventListeners() {\n var _this = this,\n _context2;\n this.body.emitter.on(\"dragStart\", function () {\n _this.dragging = true;\n });\n this.body.emitter.on(\"dragEnd\", function () {\n _this.dragging = false;\n });\n this.body.emitter.on(\"zoom\", function () {\n _this.zooming = true;\n window.clearTimeout(_this.zoomTimeoutId);\n _this.zoomTimeoutId = _setTimeout(function () {\n var _context;\n _this.zooming = false;\n _bindInstanceProperty$1(_context = _this._requestRedraw).call(_context, _this)();\n }, 250);\n });\n this.body.emitter.on(\"_resizeNodes\", function () {\n _this._resizeNodes();\n });\n this.body.emitter.on(\"_redraw\", function () {\n if (_this.renderingActive === false) {\n _this._redraw();\n }\n });\n this.body.emitter.on(\"_blockRedraw\", function () {\n _this.allowRedraw = false;\n });\n this.body.emitter.on(\"_allowRedraw\", function () {\n _this.allowRedraw = true;\n _this.redrawRequested = false;\n });\n this.body.emitter.on(\"_requestRedraw\", _bindInstanceProperty$1(_context2 = this._requestRedraw).call(_context2, this));\n this.body.emitter.on(\"_startRendering\", function () {\n _this.renderRequests += 1;\n _this.renderingActive = true;\n _this._startRendering();\n });\n this.body.emitter.on(\"_stopRendering\", function () {\n _this.renderRequests -= 1;\n _this.renderingActive = _this.renderRequests > 0;\n _this.renderTimer = undefined;\n });\n this.body.emitter.on(\"destroy\", function () {\n _this.renderRequests = 0;\n _this.allowRedraw = false;\n _this.renderingActive = false;\n if (_this.requiresTimeout === true) {\n clearTimeout(_this.renderTimer);\n } else {\n window.cancelAnimationFrame(_this.renderTimer);\n }\n _this.body.emitter.off();\n });\n }\n\n /**\n *\n * @param {object} options\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options !== undefined) {\n var fields = [\"hideEdgesOnDrag\", \"hideEdgesOnZoom\", \"hideNodesOnDrag\"];\n selectiveDeepExtend(fields, this.options, options);\n }\n }\n\n /**\n * Prepare the drawing of the next frame.\n *\n * Calls the callback when the next frame can or will be drawn.\n *\n * @param {Function} callback\n * @param {number} delay - timeout case only, wait this number of milliseconds\n * @returns {Function | undefined}\n * @private\n */\n }, {\n key: \"_requestNextFrame\",\n value: function _requestNextFrame(callback, delay) {\n // During unit testing, it happens that the mock window object is reset while\n // the next frame is still pending. Then, either 'window' is not present, or\n // 'requestAnimationFrame()' is not present because it is not defined on the\n // mock window object.\n //\n // As a consequence, unrelated unit tests may appear to fail, even if the problem\n // described happens in the current unit test.\n //\n // This is not something that will happen in normal operation, but we still need\n // to take it into account.\n //\n if (typeof window === \"undefined\") return; // Doing `if (window === undefined)` does not work here!\n\n var timer;\n var myWindow = window; // Grab a reference to reduce the possibility that 'window' is reset\n // while running this method.\n\n if (this.requiresTimeout === true) {\n // wait given number of milliseconds and perform the animation step function\n timer = _setTimeout(callback, delay);\n } else {\n if (myWindow.requestAnimationFrame) {\n timer = myWindow.requestAnimationFrame(callback);\n }\n }\n return timer;\n }\n\n /**\n *\n * @private\n */\n }, {\n key: \"_startRendering\",\n value: function _startRendering() {\n if (this.renderingActive === true) {\n if (this.renderTimer === undefined) {\n var _context3;\n this.renderTimer = this._requestNextFrame(_bindInstanceProperty$1(_context3 = this._renderStep).call(_context3, this), this.simulationInterval);\n }\n }\n }\n\n /**\n *\n * @private\n */\n }, {\n key: \"_renderStep\",\n value: function _renderStep() {\n if (this.renderingActive === true) {\n // reset the renderTimer so a new scheduled animation step can be set\n this.renderTimer = undefined;\n if (this.requiresTimeout === true) {\n // this schedules a new simulation step\n this._startRendering();\n }\n this._redraw();\n if (this.requiresTimeout === false) {\n // this schedules a new simulation step\n this._startRendering();\n }\n }\n }\n\n /**\n * Redraw the network with the current data\n * chart will be resized too.\n */\n }, {\n key: \"redraw\",\n value: function redraw() {\n this.body.emitter.emit(\"setSize\");\n this._redraw();\n }\n\n /**\n * Redraw the network with the current data\n *\n * @private\n */\n }, {\n key: \"_requestRedraw\",\n value: function _requestRedraw() {\n var _this2 = this;\n if (this.redrawRequested !== true && this.renderingActive === false && this.allowRedraw === true) {\n this.redrawRequested = true;\n this._requestNextFrame(function () {\n _this2._redraw(false);\n }, 0);\n }\n }\n\n /**\n * Redraw the network with the current data\n *\n * @param {boolean} [hidden=false] | Used to get the first estimate of the node sizes.\n * Only the nodes are drawn after which they are quickly drawn over.\n * @private\n */\n }, {\n key: \"_redraw\",\n value: function _redraw() {\n var hidden = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n if (this.allowRedraw === true) {\n this.body.emitter.emit(\"initRedraw\");\n this.redrawRequested = false;\n var drawLater = {\n drawExternalLabels: null\n };\n\n // when the container div was hidden, this fixes it back up!\n if (this.canvas.frame.canvas.width === 0 || this.canvas.frame.canvas.height === 0) {\n this.canvas.setSize();\n }\n this.canvas.setTransform();\n var ctx = this.canvas.getContext();\n\n // clear the canvas\n var w = this.canvas.frame.canvas.clientWidth;\n var h = this.canvas.frame.canvas.clientHeight;\n ctx.clearRect(0, 0, w, h);\n\n // if the div is hidden, we stop the redraw here for performance.\n if (this.canvas.frame.clientWidth === 0) {\n return;\n }\n\n // set scaling and translation\n ctx.save();\n ctx.translate(this.body.view.translation.x, this.body.view.translation.y);\n ctx.scale(this.body.view.scale, this.body.view.scale);\n ctx.beginPath();\n this.body.emitter.emit(\"beforeDrawing\", ctx);\n ctx.closePath();\n if (hidden === false) {\n if ((this.dragging === false || this.dragging === true && this.options.hideEdgesOnDrag === false) && (this.zooming === false || this.zooming === true && this.options.hideEdgesOnZoom === false)) {\n this._drawEdges(ctx);\n }\n }\n if (this.dragging === false || this.dragging === true && this.options.hideNodesOnDrag === false) {\n var _this$_drawNodes = this._drawNodes(ctx, hidden),\n drawExternalLabels = _this$_drawNodes.drawExternalLabels;\n drawLater.drawExternalLabels = drawExternalLabels;\n }\n\n // draw the arrows last so they will be at the top\n if (hidden === false) {\n if ((this.dragging === false || this.dragging === true && this.options.hideEdgesOnDrag === false) && (this.zooming === false || this.zooming === true && this.options.hideEdgesOnZoom === false)) {\n this._drawArrows(ctx);\n }\n }\n if (drawLater.drawExternalLabels != null) {\n drawLater.drawExternalLabels();\n }\n if (hidden === false) {\n this._drawSelectionBox(ctx);\n }\n ctx.beginPath();\n this.body.emitter.emit(\"afterDrawing\", ctx);\n ctx.closePath();\n\n // restore original scaling and translation\n ctx.restore();\n if (hidden === true) {\n ctx.clearRect(0, 0, w, h);\n }\n }\n }\n\n /**\n * Redraw all nodes\n *\n * @param {CanvasRenderingContext2D} ctx\n * @param {boolean} [alwaysShow]\n * @private\n */\n }, {\n key: \"_resizeNodes\",\n value: function _resizeNodes() {\n this.canvas.setTransform();\n var ctx = this.canvas.getContext();\n ctx.save();\n ctx.translate(this.body.view.translation.x, this.body.view.translation.y);\n ctx.scale(this.body.view.scale, this.body.view.scale);\n var nodes = this.body.nodes;\n var node;\n\n // resize all nodes\n for (var nodeId in nodes) {\n if (Object.prototype.hasOwnProperty.call(nodes, nodeId)) {\n node = nodes[nodeId];\n node.resize(ctx);\n node.updateBoundingBox(ctx, node.selected);\n }\n }\n\n // restore original scaling and translation\n ctx.restore();\n }\n\n /**\n * Redraw all nodes\n *\n * @param {CanvasRenderingContext2D} ctx 2D context of a HTML canvas\n * @param {boolean} [alwaysShow]\n * @private\n * @returns {object} Callbacks to draw later on higher layers.\n */\n }, {\n key: \"_drawNodes\",\n value: function _drawNodes(ctx) {\n var alwaysShow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var nodes = this.body.nodes;\n var nodeIndices = this.body.nodeIndices;\n var node;\n var selected = [];\n var hovered = [];\n var margin = 20;\n var topLeft = this.canvas.DOMtoCanvas({\n x: -margin,\n y: -margin\n });\n var bottomRight = this.canvas.DOMtoCanvas({\n x: this.canvas.frame.canvas.clientWidth + margin,\n y: this.canvas.frame.canvas.clientHeight + margin\n });\n var viewableArea = {\n top: topLeft.y,\n left: topLeft.x,\n bottom: bottomRight.y,\n right: bottomRight.x\n };\n var _drawExternalLabels = [];\n\n // draw unselected nodes;\n for (var _i = 0; _i < nodeIndices.length; _i++) {\n node = nodes[nodeIndices[_i]];\n // set selected and hovered nodes aside\n if (node.hover) {\n hovered.push(nodeIndices[_i]);\n } else if (node.isSelected()) {\n selected.push(nodeIndices[_i]);\n } else {\n if (alwaysShow === true) {\n var drawLater = node.draw(ctx);\n if (drawLater.drawExternalLabel != null) {\n _drawExternalLabels.push(drawLater.drawExternalLabel);\n }\n } else if (node.isBoundingBoxOverlappingWith(viewableArea) === true) {\n var _drawLater = node.draw(ctx);\n if (_drawLater.drawExternalLabel != null) {\n _drawExternalLabels.push(_drawLater.drawExternalLabel);\n }\n } else {\n node.updateBoundingBox(ctx, node.selected);\n }\n }\n }\n var i;\n var selectedLength = selected.length;\n var hoveredLength = hovered.length;\n\n // draw the selected nodes on top\n for (i = 0; i < selectedLength; i++) {\n node = nodes[selected[i]];\n var _drawLater2 = node.draw(ctx);\n if (_drawLater2.drawExternalLabel != null) {\n _drawExternalLabels.push(_drawLater2.drawExternalLabel);\n }\n }\n\n // draw hovered nodes above everything else: fixes https://github.com/visjs/vis-network/issues/226\n for (i = 0; i < hoveredLength; i++) {\n node = nodes[hovered[i]];\n var _drawLater3 = node.draw(ctx);\n if (_drawLater3.drawExternalLabel != null) {\n _drawExternalLabels.push(_drawLater3.drawExternalLabel);\n }\n }\n return {\n drawExternalLabels: function drawExternalLabels() {\n for (var _i2 = 0, _drawExternalLabels2 = _drawExternalLabels; _i2 < _drawExternalLabels2.length; _i2++) {\n var draw = _drawExternalLabels2[_i2];\n draw();\n }\n }\n };\n }\n\n /**\n * Redraw all edges\n *\n * @param {CanvasRenderingContext2D} ctx 2D context of a HTML canvas\n * @private\n */\n }, {\n key: \"_drawEdges\",\n value: function _drawEdges(ctx) {\n var edges = this.body.edges;\n var edgeIndices = this.body.edgeIndices;\n for (var i = 0; i < edgeIndices.length; i++) {\n var edge = edges[edgeIndices[i]];\n if (edge.connected === true) {\n edge.draw(ctx);\n }\n }\n }\n\n /**\n * Redraw all arrows\n *\n * @param {CanvasRenderingContext2D} ctx 2D context of a HTML canvas\n * @private\n */\n }, {\n key: \"_drawArrows\",\n value: function _drawArrows(ctx) {\n var edges = this.body.edges;\n var edgeIndices = this.body.edgeIndices;\n for (var i = 0; i < edgeIndices.length; i++) {\n var edge = edges[edgeIndices[i]];\n if (edge.connected === true) {\n edge.drawArrows(ctx);\n }\n }\n }\n\n /**\n * Determine if the browser requires a setTimeout or a requestAnimationFrame. This was required because\n * some implementations (safari and IE9) did not support requestAnimationFrame\n *\n * @private\n */\n }, {\n key: \"_determineBrowserMethod\",\n value: function _determineBrowserMethod() {\n if (typeof window !== \"undefined\") {\n var browserType = navigator.userAgent.toLowerCase();\n this.requiresTimeout = false;\n if (_indexOfInstanceProperty(browserType).call(browserType, \"msie 9.0\") != -1) {\n // IE 9\n this.requiresTimeout = true;\n } else if (_indexOfInstanceProperty(browserType).call(browserType, \"safari\") != -1) {\n // safari\n if (_indexOfInstanceProperty(browserType).call(browserType, \"chrome\") <= -1) {\n this.requiresTimeout = true;\n }\n }\n } else {\n this.requiresTimeout = true;\n }\n }\n\n /**\n * Redraw selection box\n *\n * @param {CanvasRenderingContext2D} ctx 2D context of a HTML canvas\n * @private\n */\n }, {\n key: \"_drawSelectionBox\",\n value: function _drawSelectionBox(ctx) {\n if (this.body.selectionBox.show) {\n ctx.beginPath();\n var width = this.body.selectionBox.position.end.x - this.body.selectionBox.position.start.x;\n var height = this.body.selectionBox.position.end.y - this.body.selectionBox.position.start.y;\n ctx.rect(this.body.selectionBox.position.start.x, this.body.selectionBox.position.start.y, width, height);\n ctx.fillStyle = \"rgba(151, 194, 252, 0.2)\";\n ctx.fillRect(this.body.selectionBox.position.start.x, this.body.selectionBox.position.start.y, width, height);\n ctx.strokeStyle = \"rgba(151, 194, 252, 1)\";\n ctx.stroke();\n } else {\n ctx.closePath();\n }\n }\n }]);\n return CanvasRenderer;\n}();\n\nvar setIntervalExports = {};\nvar setInterval$1 = {\n get exports(){ return setIntervalExports; },\n set exports(v){ setIntervalExports = v; },\n};\n\nvar path$1 = path$z;\n\nvar setInterval = path$1.setInterval;\n\n(function (module) {\n\tmodule.exports = setInterval;\n} (setInterval$1));\n\nvar _setInterval = /*@__PURE__*/getDefaultExportFromCjs(setIntervalExports);\n\n/**\n * Register a touch event, taking place before a gesture\n *\n * @param {Hammer} hammer A hammer instance\n * @param {Function} callback Callback, called as callback(event)\n */\nfunction onTouch(hammer, callback) {\n callback.inputHandler = function (event) {\n if (event.isFirst) {\n callback(event);\n }\n };\n hammer.on(\"hammer.input\", callback.inputHandler);\n}\n\n/**\n * Register a release event, taking place after a gesture\n *\n * @param {Hammer} hammer A hammer instance\n * @param {Function} callback Callback, called as callback(event)\n * @returns {*}\n */\nfunction onRelease(hammer, callback) {\n callback.inputHandler = function (event) {\n if (event.isFinal) {\n callback(event);\n }\n };\n return hammer.on(\"hammer.input\", callback.inputHandler);\n}\n\n/**\n * Create the main frame for the Network.\n * This function is executed once when a Network object is created. The frame\n * contains a canvas, and this canvas contains all objects like the axis and\n * nodes.\n */\nvar Canvas = /*#__PURE__*/function () {\n /**\n * @param {object} body\n */\n function Canvas(body) {\n _classCallCheck(this, Canvas);\n this.body = body;\n this.pixelRatio = 1;\n this.cameraState = {};\n this.initialized = false;\n this.canvasViewCenter = {};\n this._cleanupCallbacks = [];\n this.options = {};\n this.defaultOptions = {\n autoResize: true,\n height: \"100%\",\n width: \"100%\"\n };\n _Object$assign(this.options, this.defaultOptions);\n this.bindEventListeners();\n }\n\n /**\n * Binds event listeners\n */\n _createClass(Canvas, [{\n key: \"bindEventListeners\",\n value: function bindEventListeners() {\n var _this = this,\n _context;\n // bind the events\n this.body.emitter.once(\"resize\", function (obj) {\n if (obj.width !== 0) {\n _this.body.view.translation.x = obj.width * 0.5;\n }\n if (obj.height !== 0) {\n _this.body.view.translation.y = obj.height * 0.5;\n }\n });\n this.body.emitter.on(\"setSize\", _bindInstanceProperty$1(_context = this.setSize).call(_context, this));\n this.body.emitter.on(\"destroy\", function () {\n _this.hammerFrame.destroy();\n _this.hammer.destroy();\n _this._cleanUp();\n });\n }\n\n /**\n * @param {object} options\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n var _this2 = this;\n if (options !== undefined) {\n var fields = [\"width\", \"height\", \"autoResize\"];\n selectiveDeepExtend(fields, this.options, options);\n }\n\n // Automatically adapt to changing size of the container element.\n this._cleanUp();\n if (this.options.autoResize === true) {\n var _context2;\n if (window.ResizeObserver) {\n // decent browsers, immediate reactions\n var observer = new ResizeObserver(function () {\n var changed = _this2.setSize();\n if (changed === true) {\n _this2.body.emitter.emit(\"_requestRedraw\");\n }\n });\n var frame = this.frame;\n observer.observe(frame);\n this._cleanupCallbacks.push(function () {\n observer.unobserve(frame);\n });\n } else {\n // IE11, continous polling\n var resizeTimer = _setInterval(function () {\n var changed = _this2.setSize();\n if (changed === true) {\n _this2.body.emitter.emit(\"_requestRedraw\");\n }\n }, 1000);\n this._cleanupCallbacks.push(function () {\n clearInterval(resizeTimer);\n });\n }\n\n // Automatically adapt to changing size of the browser.\n var resizeFunction = _bindInstanceProperty$1(_context2 = this._onResize).call(_context2, this);\n addEventListener(window, \"resize\", resizeFunction);\n this._cleanupCallbacks.push(function () {\n removeEventListener(window, \"resize\", resizeFunction);\n });\n }\n }\n\n /**\n * @private\n */\n }, {\n key: \"_cleanUp\",\n value: function _cleanUp() {\n var _context3, _context4, _context5;\n _forEachInstanceProperty(_context3 = _reverseInstanceProperty(_context4 = _spliceInstanceProperty(_context5 = this._cleanupCallbacks).call(_context5, 0)).call(_context4)).call(_context3, function (callback) {\n try {\n callback();\n } catch (error) {\n console.error(error);\n }\n });\n }\n\n /**\n * @private\n */\n }, {\n key: \"_onResize\",\n value: function _onResize() {\n this.setSize();\n this.body.emitter.emit(\"_redraw\");\n }\n\n /**\n * Get and store the cameraState\n *\n * @param {number} [pixelRatio=this.pixelRatio]\n * @private\n */\n }, {\n key: \"_getCameraState\",\n value: function _getCameraState() {\n var pixelRatio = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.pixelRatio;\n if (this.initialized === true) {\n this.cameraState.previousWidth = this.frame.canvas.width / pixelRatio;\n this.cameraState.previousHeight = this.frame.canvas.height / pixelRatio;\n this.cameraState.scale = this.body.view.scale;\n this.cameraState.position = this.DOMtoCanvas({\n x: 0.5 * this.frame.canvas.width / pixelRatio,\n y: 0.5 * this.frame.canvas.height / pixelRatio\n });\n }\n }\n\n /**\n * Set the cameraState\n *\n * @private\n */\n }, {\n key: \"_setCameraState\",\n value: function _setCameraState() {\n if (this.cameraState.scale !== undefined && this.frame.canvas.clientWidth !== 0 && this.frame.canvas.clientHeight !== 0 && this.pixelRatio !== 0 && this.cameraState.previousWidth > 0 && this.cameraState.previousHeight > 0) {\n var widthRatio = this.frame.canvas.width / this.pixelRatio / this.cameraState.previousWidth;\n var heightRatio = this.frame.canvas.height / this.pixelRatio / this.cameraState.previousHeight;\n var newScale = this.cameraState.scale;\n if (widthRatio != 1 && heightRatio != 1) {\n newScale = this.cameraState.scale * 0.5 * (widthRatio + heightRatio);\n } else if (widthRatio != 1) {\n newScale = this.cameraState.scale * widthRatio;\n } else if (heightRatio != 1) {\n newScale = this.cameraState.scale * heightRatio;\n }\n this.body.view.scale = newScale;\n // this comes from the view module.\n var currentViewCenter = this.DOMtoCanvas({\n x: 0.5 * this.frame.canvas.clientWidth,\n y: 0.5 * this.frame.canvas.clientHeight\n });\n var distanceFromCenter = {\n // offset from view, distance view has to change by these x and y to center the node\n x: currentViewCenter.x - this.cameraState.position.x,\n y: currentViewCenter.y - this.cameraState.position.y\n };\n this.body.view.translation.x += distanceFromCenter.x * this.body.view.scale;\n this.body.view.translation.y += distanceFromCenter.y * this.body.view.scale;\n }\n }\n\n /**\n *\n * @param {number|string} value\n * @returns {string}\n * @private\n */\n }, {\n key: \"_prepareValue\",\n value: function _prepareValue(value) {\n if (typeof value === \"number\") {\n return value + \"px\";\n } else if (typeof value === \"string\") {\n if (_indexOfInstanceProperty(value).call(value, \"%\") !== -1 || _indexOfInstanceProperty(value).call(value, \"px\") !== -1) {\n return value;\n } else if (_indexOfInstanceProperty(value).call(value, \"%\") === -1) {\n return value + \"px\";\n }\n }\n throw new Error(\"Could not use the value supplied for width or height:\" + value);\n }\n\n /**\n * Create the HTML\n */\n }, {\n key: \"_create\",\n value: function _create() {\n // remove all elements from the container element.\n while (this.body.container.hasChildNodes()) {\n this.body.container.removeChild(this.body.container.firstChild);\n }\n this.frame = document.createElement(\"div\");\n this.frame.className = \"vis-network\";\n this.frame.style.position = \"relative\";\n this.frame.style.overflow = \"hidden\";\n this.frame.tabIndex = 0; // tab index is required for keycharm to bind keystrokes to the div instead of the window\n\n //////////////////////////////////////////////////////////////////\n\n this.frame.canvas = document.createElement(\"canvas\");\n this.frame.canvas.style.position = \"relative\";\n this.frame.appendChild(this.frame.canvas);\n if (!this.frame.canvas.getContext) {\n var noCanvas = document.createElement(\"DIV\");\n noCanvas.style.color = \"red\";\n noCanvas.style.fontWeight = \"bold\";\n noCanvas.style.padding = \"10px\";\n noCanvas.innerText = \"Error: your browser does not support HTML canvas\";\n this.frame.canvas.appendChild(noCanvas);\n } else {\n this._setPixelRatio();\n this.setTransform();\n }\n\n // add the frame to the container element\n this.body.container.appendChild(this.frame);\n this.body.view.scale = 1;\n this.body.view.translation = {\n x: 0.5 * this.frame.canvas.clientWidth,\n y: 0.5 * this.frame.canvas.clientHeight\n };\n this._bindHammer();\n }\n\n /**\n * This function binds hammer, it can be repeated over and over due to the uniqueness check.\n *\n * @private\n */\n }, {\n key: \"_bindHammer\",\n value: function _bindHammer() {\n var _this3 = this;\n if (this.hammer !== undefined) {\n this.hammer.destroy();\n }\n this.drag = {};\n this.pinch = {};\n\n // init hammer\n this.hammer = new Hammer(this.frame.canvas);\n this.hammer.get(\"pinch\").set({\n enable: true\n });\n // enable to get better response, todo: test on mobile.\n this.hammer.get(\"pan\").set({\n threshold: 5,\n direction: Hammer.DIRECTION_ALL\n });\n onTouch(this.hammer, function (event) {\n _this3.body.eventListeners.onTouch(event);\n });\n this.hammer.on(\"tap\", function (event) {\n _this3.body.eventListeners.onTap(event);\n });\n this.hammer.on(\"doubletap\", function (event) {\n _this3.body.eventListeners.onDoubleTap(event);\n });\n this.hammer.on(\"press\", function (event) {\n _this3.body.eventListeners.onHold(event);\n });\n this.hammer.on(\"panstart\", function (event) {\n _this3.body.eventListeners.onDragStart(event);\n });\n this.hammer.on(\"panmove\", function (event) {\n _this3.body.eventListeners.onDrag(event);\n });\n this.hammer.on(\"panend\", function (event) {\n _this3.body.eventListeners.onDragEnd(event);\n });\n this.hammer.on(\"pinch\", function (event) {\n _this3.body.eventListeners.onPinch(event);\n });\n\n // TODO: neatly cleanup these handlers when re-creating the Canvas, IF these are done with hammer, event.stopPropagation will not work?\n this.frame.canvas.addEventListener(\"wheel\", function (event) {\n _this3.body.eventListeners.onMouseWheel(event);\n });\n this.frame.canvas.addEventListener(\"mousemove\", function (event) {\n _this3.body.eventListeners.onMouseMove(event);\n });\n this.frame.canvas.addEventListener(\"contextmenu\", function (event) {\n _this3.body.eventListeners.onContext(event);\n });\n this.hammerFrame = new Hammer(this.frame);\n onRelease(this.hammerFrame, function (event) {\n _this3.body.eventListeners.onRelease(event);\n });\n }\n\n /**\n * Set a new size for the network\n *\n * @param {string} width Width in pixels or percentage (for example '800px'\n * or '50%')\n * @param {string} height Height in pixels or percentage (for example '400px'\n * or '30%')\n * @returns {boolean}\n */\n }, {\n key: \"setSize\",\n value: function setSize() {\n var width = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.options.width;\n var height = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.options.height;\n width = this._prepareValue(width);\n height = this._prepareValue(height);\n var emitEvent = false;\n var oldWidth = this.frame.canvas.width;\n var oldHeight = this.frame.canvas.height;\n\n // update the pixel ratio\n //\n // NOTE: Comment in following is rather inconsistent; this is the ONLY place in the code\n // where it is assumed that the pixel ratio could change at runtime.\n // The only way I can think of this happening is a rotating screen or tablet; but then\n // there should be a mechanism for reloading the data (TODO: check if this is present).\n //\n // If the assumption is true (i.e. pixel ratio can change at runtime), then *all* usage\n // of pixel ratio must be overhauled for this.\n //\n // For the time being, I will humor the assumption here, and in the rest of the code assume it is\n // constant.\n var previousRatio = this.pixelRatio; // we cache this because the camera state storage needs the old value\n this._setPixelRatio();\n if (width != this.options.width || height != this.options.height || this.frame.style.width != width || this.frame.style.height != height) {\n this._getCameraState(previousRatio);\n this.frame.style.width = width;\n this.frame.style.height = height;\n this.frame.canvas.style.width = \"100%\";\n this.frame.canvas.style.height = \"100%\";\n this.frame.canvas.width = Math.round(this.frame.canvas.clientWidth * this.pixelRatio);\n this.frame.canvas.height = Math.round(this.frame.canvas.clientHeight * this.pixelRatio);\n this.options.width = width;\n this.options.height = height;\n this.canvasViewCenter = {\n x: 0.5 * this.frame.clientWidth,\n y: 0.5 * this.frame.clientHeight\n };\n emitEvent = true;\n } else {\n // this would adapt the width of the canvas to the width from 100% if and only if\n // there is a change.\n\n var newWidth = Math.round(this.frame.canvas.clientWidth * this.pixelRatio);\n var newHeight = Math.round(this.frame.canvas.clientHeight * this.pixelRatio);\n\n // store the camera if there is a change in size.\n if (this.frame.canvas.width !== newWidth || this.frame.canvas.height !== newHeight) {\n this._getCameraState(previousRatio);\n }\n if (this.frame.canvas.width !== newWidth) {\n this.frame.canvas.width = newWidth;\n emitEvent = true;\n }\n if (this.frame.canvas.height !== newHeight) {\n this.frame.canvas.height = newHeight;\n emitEvent = true;\n }\n }\n if (emitEvent === true) {\n this.body.emitter.emit(\"resize\", {\n width: Math.round(this.frame.canvas.width / this.pixelRatio),\n height: Math.round(this.frame.canvas.height / this.pixelRatio),\n oldWidth: Math.round(oldWidth / this.pixelRatio),\n oldHeight: Math.round(oldHeight / this.pixelRatio)\n });\n\n // restore the camera on change.\n this._setCameraState();\n }\n\n // set initialized so the get and set camera will work from now on.\n this.initialized = true;\n return emitEvent;\n }\n\n /**\n *\n * @returns {CanvasRenderingContext2D}\n */\n }, {\n key: \"getContext\",\n value: function getContext() {\n return this.frame.canvas.getContext(\"2d\");\n }\n\n /**\n * Determine the pixel ratio for various browsers.\n *\n * @returns {number}\n * @private\n */\n }, {\n key: \"_determinePixelRatio\",\n value: function _determinePixelRatio() {\n var ctx = this.getContext();\n if (ctx === undefined) {\n throw new Error(\"Could not get canvax context\");\n }\n var numerator = 1;\n if (typeof window !== \"undefined\") {\n // (window !== undefined) doesn't work here!\n // Protection during unit tests, where 'window' can be missing\n numerator = window.devicePixelRatio || 1;\n }\n var denominator = ctx.webkitBackingStorePixelRatio || ctx.mozBackingStorePixelRatio || ctx.msBackingStorePixelRatio || ctx.oBackingStorePixelRatio || ctx.backingStorePixelRatio || 1;\n return numerator / denominator;\n }\n\n /**\n * Lazy determination of pixel ratio.\n *\n * @private\n */\n }, {\n key: \"_setPixelRatio\",\n value: function _setPixelRatio() {\n this.pixelRatio = this._determinePixelRatio();\n }\n\n /**\n * Set the transform in the contained context, based on its pixelRatio\n */\n }, {\n key: \"setTransform\",\n value: function setTransform() {\n var ctx = this.getContext();\n if (ctx === undefined) {\n throw new Error(\"Could not get canvax context\");\n }\n ctx.setTransform(this.pixelRatio, 0, 0, this.pixelRatio, 0, 0);\n }\n\n /**\n * Convert the X coordinate in DOM-space (coordinate point in browser relative to the container div) to\n * the X coordinate in canvas-space (the simulation sandbox, which the camera looks upon)\n *\n * @param {number} x\n * @returns {number}\n * @private\n */\n }, {\n key: \"_XconvertDOMtoCanvas\",\n value: function _XconvertDOMtoCanvas(x) {\n return (x - this.body.view.translation.x) / this.body.view.scale;\n }\n\n /**\n * Convert the X coordinate in canvas-space (the simulation sandbox, which the camera looks upon) to\n * the X coordinate in DOM-space (coordinate point in browser relative to the container div)\n *\n * @param {number} x\n * @returns {number}\n * @private\n */\n }, {\n key: \"_XconvertCanvasToDOM\",\n value: function _XconvertCanvasToDOM(x) {\n return x * this.body.view.scale + this.body.view.translation.x;\n }\n\n /**\n * Convert the Y coordinate in DOM-space (coordinate point in browser relative to the container div) to\n * the Y coordinate in canvas-space (the simulation sandbox, which the camera looks upon)\n *\n * @param {number} y\n * @returns {number}\n * @private\n */\n }, {\n key: \"_YconvertDOMtoCanvas\",\n value: function _YconvertDOMtoCanvas(y) {\n return (y - this.body.view.translation.y) / this.body.view.scale;\n }\n\n /**\n * Convert the Y coordinate in canvas-space (the simulation sandbox, which the camera looks upon) to\n * the Y coordinate in DOM-space (coordinate point in browser relative to the container div)\n *\n * @param {number} y\n * @returns {number}\n * @private\n */\n }, {\n key: \"_YconvertCanvasToDOM\",\n value: function _YconvertCanvasToDOM(y) {\n return y * this.body.view.scale + this.body.view.translation.y;\n }\n\n /**\n * @param {point} pos\n * @returns {point}\n */\n }, {\n key: \"canvasToDOM\",\n value: function canvasToDOM(pos) {\n return {\n x: this._XconvertCanvasToDOM(pos.x),\n y: this._YconvertCanvasToDOM(pos.y)\n };\n }\n\n /**\n *\n * @param {point} pos\n * @returns {point}\n */\n }, {\n key: \"DOMtoCanvas\",\n value: function DOMtoCanvas(pos) {\n return {\n x: this._XconvertDOMtoCanvas(pos.x),\n y: this._YconvertDOMtoCanvas(pos.y)\n };\n }\n }]);\n return Canvas;\n}();\n\n/**\r\n * Validate the fit options, replace missing optional values by defaults etc.\r\n *\r\n * @param rawOptions - The raw options.\r\n * @param allNodeIds - All node ids that will be used if nodes are omitted in\r\n * the raw options.\r\n * @returns Options with everything filled in and validated.\r\n */\nfunction normalizeFitOptions(rawOptions, allNodeIds) {\n var options = _Object$assign({\n nodes: allNodeIds,\n minZoomLevel: Number.MIN_VALUE,\n maxZoomLevel: 1\n }, rawOptions !== null && rawOptions !== void 0 ? rawOptions : {});\n if (!_Array$isArray(options.nodes)) {\n throw new TypeError(\"Nodes has to be an array of ids.\");\n }\n if (options.nodes.length === 0) {\n options.nodes = allNodeIds;\n }\n if (!(typeof options.minZoomLevel === \"number\" && options.minZoomLevel > 0)) {\n throw new TypeError(\"Min zoom level has to be a number higher than zero.\");\n }\n if (!(typeof options.maxZoomLevel === \"number\" && options.minZoomLevel <= options.maxZoomLevel)) {\n throw new TypeError(\"Max zoom level has to be a number higher than min zoom level.\");\n }\n return options;\n}\n\n/**\n * The view\n */\nvar View = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {Canvas} canvas\n */\n function View(body, canvas) {\n var _context,\n _this = this,\n _context2;\n _classCallCheck(this, View);\n this.body = body;\n this.canvas = canvas;\n this.animationSpeed = 1 / this.renderRefreshRate;\n this.animationEasingFunction = \"easeInOutQuint\";\n this.easingTime = 0;\n this.sourceScale = 0;\n this.targetScale = 0;\n this.sourceTranslation = 0;\n this.targetTranslation = 0;\n this.lockedOnNodeId = undefined;\n this.lockedOnNodeOffset = undefined;\n this.touchTime = 0;\n this.viewFunction = undefined;\n this.body.emitter.on(\"fit\", _bindInstanceProperty$1(_context = this.fit).call(_context, this));\n this.body.emitter.on(\"animationFinished\", function () {\n _this.body.emitter.emit(\"_stopRendering\");\n });\n this.body.emitter.on(\"unlockNode\", _bindInstanceProperty$1(_context2 = this.releaseNode).call(_context2, this));\n }\n\n /**\n *\n * @param {object} [options={}]\n */\n _createClass(View, [{\n key: \"setOptions\",\n value: function setOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n this.options = options;\n }\n\n /**\n * This function zooms out to fit all data on screen based on amount of nodes\n *\n * @param {object} [options={{nodes=Array}}]\n * @param options\n * @param {boolean} [initialZoom=false] | zoom based on fitted formula or range, true = fitted, default = false;\n */\n }, {\n key: \"fit\",\n value: function fit(options) {\n var initialZoom = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n options = normalizeFitOptions(options, this.body.nodeIndices);\n var canvasWidth = this.canvas.frame.canvas.clientWidth;\n var canvasHeight = this.canvas.frame.canvas.clientHeight;\n var range;\n var zoomLevel;\n if (canvasWidth === 0 || canvasHeight === 0) {\n // There's no point in trying to fit into zero sized canvas. This could\n // potentially even result in invalid values being computed. For example\n // for network without nodes and zero sized canvas the zoom level would\n // end up being computed as 0/0 which results in NaN. In any other case\n // this would be 0/something which is again pointless to compute.\n zoomLevel = 1;\n range = NetworkUtil.getRange(this.body.nodes, options.nodes);\n } else if (initialZoom === true) {\n // check if more than half of the nodes have a predefined position. If so, we use the range, not the approximation.\n var positionDefined = 0;\n for (var nodeId in this.body.nodes) {\n if (Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId)) {\n var node = this.body.nodes[nodeId];\n if (node.predefinedPosition === true) {\n positionDefined += 1;\n }\n }\n }\n if (positionDefined > 0.5 * this.body.nodeIndices.length) {\n this.fit(options, false);\n return;\n }\n range = NetworkUtil.getRange(this.body.nodes, options.nodes);\n var numberOfNodes = this.body.nodeIndices.length;\n zoomLevel = 12.662 / (numberOfNodes + 7.4147) + 0.0964822; // this is obtained from fitting a dataset from 5 points with scale levels that looked good.\n\n // correct for larger canvasses.\n var factor = Math.min(canvasWidth / 600, canvasHeight / 600);\n zoomLevel *= factor;\n } else {\n this.body.emitter.emit(\"_resizeNodes\");\n range = NetworkUtil.getRange(this.body.nodes, options.nodes);\n var xDistance = Math.abs(range.maxX - range.minX) * 1.1;\n var yDistance = Math.abs(range.maxY - range.minY) * 1.1;\n var xZoomLevel = canvasWidth / xDistance;\n var yZoomLevel = canvasHeight / yDistance;\n zoomLevel = xZoomLevel <= yZoomLevel ? xZoomLevel : yZoomLevel;\n }\n if (zoomLevel > options.maxZoomLevel) {\n zoomLevel = options.maxZoomLevel;\n } else if (zoomLevel < options.minZoomLevel) {\n zoomLevel = options.minZoomLevel;\n }\n var center = NetworkUtil.findCenter(range);\n var animationOptions = {\n position: center,\n scale: zoomLevel,\n animation: options.animation\n };\n this.moveTo(animationOptions);\n }\n\n // animation\n\n /**\n * Center a node in view.\n *\n * @param {number} nodeId\n * @param {number} [options]\n */\n }, {\n key: \"focus\",\n value: function focus(nodeId) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (this.body.nodes[nodeId] !== undefined) {\n var nodePosition = {\n x: this.body.nodes[nodeId].x,\n y: this.body.nodes[nodeId].y\n };\n options.position = nodePosition;\n options.lockedOnNode = nodeId;\n this.moveTo(options);\n } else {\n console.error(\"Node: \" + nodeId + \" cannot be found.\");\n }\n }\n\n /**\n *\n * @param {object} options | options.offset = {x:number, y:number} // offset from the center in DOM pixels\n * | options.scale = number // scale to move to\n * | options.position = {x:number, y:number} // position to move to\n * | options.animation = {duration:number, easingFunction:String} || Boolean // position to move to\n */\n }, {\n key: \"moveTo\",\n value: function moveTo(options) {\n if (options === undefined) {\n options = {};\n return;\n }\n if (options.offset != null) {\n if (options.offset.x != null) {\n // Coerce and verify that x is valid.\n options.offset.x = +options.offset.x;\n if (!_Number$isFinite(options.offset.x)) {\n throw new TypeError('The option \"offset.x\" has to be a finite number.');\n }\n } else {\n options.offset.x = 0;\n }\n if (options.offset.y != null) {\n // Coerce and verify that y is valid.\n options.offset.y = +options.offset.y;\n if (!_Number$isFinite(options.offset.y)) {\n throw new TypeError('The option \"offset.y\" has to be a finite number.');\n }\n } else {\n options.offset.x = 0;\n }\n } else {\n options.offset = {\n x: 0,\n y: 0\n };\n }\n if (options.position != null) {\n if (options.position.x != null) {\n // Coerce and verify that x is valid.\n options.position.x = +options.position.x;\n if (!_Number$isFinite(options.position.x)) {\n throw new TypeError('The option \"position.x\" has to be a finite number.');\n }\n } else {\n options.position.x = 0;\n }\n if (options.position.y != null) {\n // Coerce and verify that y is valid.\n options.position.y = +options.position.y;\n if (!_Number$isFinite(options.position.y)) {\n throw new TypeError('The option \"position.y\" has to be a finite number.');\n }\n } else {\n options.position.x = 0;\n }\n } else {\n options.position = this.getViewPosition();\n }\n if (options.scale != null) {\n // Coerce and verify that the scale is valid.\n options.scale = +options.scale;\n if (!(options.scale > 0)) {\n throw new TypeError('The option \"scale\" has to be a number greater than zero.');\n }\n } else {\n options.scale = this.body.view.scale;\n }\n if (options.animation === undefined) {\n options.animation = {\n duration: 0\n };\n }\n if (options.animation === false) {\n options.animation = {\n duration: 0\n };\n }\n if (options.animation === true) {\n options.animation = {};\n }\n if (options.animation.duration === undefined) {\n options.animation.duration = 1000;\n } // default duration\n if (options.animation.easingFunction === undefined) {\n options.animation.easingFunction = \"easeInOutQuad\";\n } // default easing function\n\n this.animateView(options);\n }\n\n /**\n *\n * @param {object} options | options.offset = {x:number, y:number} // offset from the center in DOM pixels\n * | options.time = number // animation time in milliseconds\n * | options.scale = number // scale to animate to\n * | options.position = {x:number, y:number} // position to animate to\n * | options.easingFunction = String // linear, easeInQuad, easeOutQuad, easeInOutQuad,\n * // easeInCubic, easeOutCubic, easeInOutCubic,\n * // easeInQuart, easeOutQuart, easeInOutQuart,\n * // easeInQuint, easeOutQuint, easeInOutQuint\n */\n }, {\n key: \"animateView\",\n value: function animateView(options) {\n if (options === undefined) {\n return;\n }\n this.animationEasingFunction = options.animation.easingFunction;\n // release if something focussed on the node\n this.releaseNode();\n if (options.locked === true) {\n this.lockedOnNodeId = options.lockedOnNode;\n this.lockedOnNodeOffset = options.offset;\n }\n\n // forcefully complete the old animation if it was still running\n if (this.easingTime != 0) {\n this._transitionRedraw(true); // by setting easingtime to 1, we finish the animation.\n }\n\n this.sourceScale = this.body.view.scale;\n this.sourceTranslation = this.body.view.translation;\n this.targetScale = options.scale;\n\n // set the scale so the viewCenter is based on the correct zoom level. This is overridden in the transitionRedraw\n // but at least then we'll have the target transition\n this.body.view.scale = this.targetScale;\n var viewCenter = this.canvas.DOMtoCanvas({\n x: 0.5 * this.canvas.frame.canvas.clientWidth,\n y: 0.5 * this.canvas.frame.canvas.clientHeight\n });\n var distanceFromCenter = {\n // offset from view, distance view has to change by these x and y to center the node\n x: viewCenter.x - options.position.x,\n y: viewCenter.y - options.position.y\n };\n this.targetTranslation = {\n x: this.sourceTranslation.x + distanceFromCenter.x * this.targetScale + options.offset.x,\n y: this.sourceTranslation.y + distanceFromCenter.y * this.targetScale + options.offset.y\n };\n\n // if the time is set to 0, don't do an animation\n if (options.animation.duration === 0) {\n if (this.lockedOnNodeId != undefined) {\n var _context3;\n this.viewFunction = _bindInstanceProperty$1(_context3 = this._lockedRedraw).call(_context3, this);\n this.body.emitter.on(\"initRedraw\", this.viewFunction);\n } else {\n this.body.view.scale = this.targetScale;\n this.body.view.translation = this.targetTranslation;\n this.body.emitter.emit(\"_requestRedraw\");\n }\n } else {\n var _context4;\n this.animationSpeed = 1 / (60 * options.animation.duration * 0.001) || 1 / 60; // 60 for 60 seconds, 0.001 for milli's\n this.animationEasingFunction = options.animation.easingFunction;\n this.viewFunction = _bindInstanceProperty$1(_context4 = this._transitionRedraw).call(_context4, this);\n this.body.emitter.on(\"initRedraw\", this.viewFunction);\n this.body.emitter.emit(\"_startRendering\");\n }\n }\n\n /**\n * used to animate smoothly by hijacking the redraw function.\n *\n * @private\n */\n }, {\n key: \"_lockedRedraw\",\n value: function _lockedRedraw() {\n var nodePosition = {\n x: this.body.nodes[this.lockedOnNodeId].x,\n y: this.body.nodes[this.lockedOnNodeId].y\n };\n var viewCenter = this.canvas.DOMtoCanvas({\n x: 0.5 * this.canvas.frame.canvas.clientWidth,\n y: 0.5 * this.canvas.frame.canvas.clientHeight\n });\n var distanceFromCenter = {\n // offset from view, distance view has to change by these x and y to center the node\n x: viewCenter.x - nodePosition.x,\n y: viewCenter.y - nodePosition.y\n };\n var sourceTranslation = this.body.view.translation;\n var targetTranslation = {\n x: sourceTranslation.x + distanceFromCenter.x * this.body.view.scale + this.lockedOnNodeOffset.x,\n y: sourceTranslation.y + distanceFromCenter.y * this.body.view.scale + this.lockedOnNodeOffset.y\n };\n this.body.view.translation = targetTranslation;\n }\n\n /**\n * Resets state of a locked on Node\n */\n }, {\n key: \"releaseNode\",\n value: function releaseNode() {\n if (this.lockedOnNodeId !== undefined && this.viewFunction !== undefined) {\n this.body.emitter.off(\"initRedraw\", this.viewFunction);\n this.lockedOnNodeId = undefined;\n this.lockedOnNodeOffset = undefined;\n }\n }\n\n /**\n * @param {boolean} [finished=false]\n * @private\n */\n }, {\n key: \"_transitionRedraw\",\n value: function _transitionRedraw() {\n var finished = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n this.easingTime += this.animationSpeed;\n this.easingTime = finished === true ? 1.0 : this.easingTime;\n var progress = easingFunctions[this.animationEasingFunction](this.easingTime);\n this.body.view.scale = this.sourceScale + (this.targetScale - this.sourceScale) * progress;\n this.body.view.translation = {\n x: this.sourceTranslation.x + (this.targetTranslation.x - this.sourceTranslation.x) * progress,\n y: this.sourceTranslation.y + (this.targetTranslation.y - this.sourceTranslation.y) * progress\n };\n\n // cleanup\n if (this.easingTime >= 1.0) {\n this.body.emitter.off(\"initRedraw\", this.viewFunction);\n this.easingTime = 0;\n if (this.lockedOnNodeId != undefined) {\n var _context5;\n this.viewFunction = _bindInstanceProperty$1(_context5 = this._lockedRedraw).call(_context5, this);\n this.body.emitter.on(\"initRedraw\", this.viewFunction);\n }\n this.body.emitter.emit(\"animationFinished\");\n }\n }\n\n /**\n *\n * @returns {number}\n */\n }, {\n key: \"getScale\",\n value: function getScale() {\n return this.body.view.scale;\n }\n\n /**\n *\n * @returns {{x: number, y: number}}\n */\n }, {\n key: \"getViewPosition\",\n value: function getViewPosition() {\n return this.canvas.DOMtoCanvas({\n x: 0.5 * this.canvas.frame.canvas.clientWidth,\n y: 0.5 * this.canvas.frame.canvas.clientHeight\n });\n }\n }]);\n return View;\n}();\n\nvar css_248z$1 = \"div.vis-network div.vis-navigation div.vis-button {\\n width: 34px;\\n height: 34px;\\n -moz-border-radius: 17px;\\n border-radius: 17px;\\n position: absolute;\\n display: inline-block;\\n background-position: 2px 2px;\\n background-repeat: no-repeat;\\n cursor: pointer;\\n -webkit-touch-callout: none;\\n -webkit-user-select: none;\\n -khtml-user-select: none;\\n -moz-user-select: none;\\n -ms-user-select: none;\\n user-select: none;\\n}\\n\\ndiv.vis-network div.vis-navigation div.vis-button:hover {\\n box-shadow: 0 0 3px 3px rgba(56, 207, 21, 0.3);\\n}\\n\\ndiv.vis-network div.vis-navigation div.vis-button:active {\\n box-shadow: 0 0 1px 3px rgba(56, 207, 21, 0.95);\\n}\\n\\ndiv.vis-network div.vis-navigation div.vis-button.vis-up {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2Z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j3+FGbuBM/X5JUT8QwIVSSSZiTgmoFR2MfiqYFFPfjpkyrfWPopwxP47AP1pK1g9/dqeAAAAAElFTkSuQmCC');\\n bottom: 50px;\\n left: 55px;\\n}\\ndiv.vis-network div.vis-navigation div.vis-button.vis-down {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBd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TzF6P8Ytud407/dy/nL7k9X9i8J9l5y+Ef6RfbnjPvWa8N5suez+KFCgqyPY95Lnd3stv2AcBZ2+mFbze+lui1xc3dXCUUlPafXNx4/aKxcajWWNp/MklRw8/mPFntbd+h1oLE847KhQQxejVg36QQqD0MPTzHv42Ux+uGasJNBnPfwllJd71kkX7RQ3WDNf7dox3BLcNNs6vt34bbbvYHJhlTGp6O+JVHb0/2HJtX1PH+aqECqG/5YN1nlXcokGvvO6vCc4x+QskotxVHB/qa+xbOWuzw8NB3nuo+Ht0z2hHsuGU3GrWAoZfi3jrxgHpw3BPpobaCH7vbqOw6mHI836vYW3Eqcq9AtioqbJy7ufQ3lhfu8sR+s9+3vL8klACsQSu7AnxMY1MxH7YXJp7oPpLulrrj+9575Ni2aeVt1teWfEWfHQLCaspseHzOU7VWU+aM5G2NoyL4i+6j8XWDNQsmGsKu/cv+nTtjQb/mm7hfENyvqEAK5v8opjPJaL26KGBpd5TfguuBvuZRgBgY6zO0jlyZXXe9JqR+8MK8ntHOMHfHIkhu2b/0yIH7/oXJ0yFlxYnPUdRbvuILgO7+y+91l6Ka6M+cnCf4fMSypXvymHf/vzBTD3CuNGUFKT8lmK5Rs5ASqKiBlAGBXFaiSuni0fkp1pJ7Ed4e/xsAqLk46EWsG1EAAAAASUVORK5CYII=');\\n bottom: 10px;\\n left: 55px;\\n}\\ndiv.vis-network div.vis-navigation div.vis-button.vis-left {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrI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r6fDGW/Zczbt6jgUtV6kIlFxuyg/tH+6zJXmlGe8G+mlzdsyB1j3pTAwZ9q3/Sspbc9tmDwD0H3UffXCFlyuTlFpnPRdYb612c5c8+idPCu6fCLDKUubzsf6fSaWm0wmO9hbvZU8fDR2zoZ97OuppAu0UJEDEmOISZohT6q7Gek5rD3GN6FEp1DaAYB7sdNYPXPao7anS1Fmrg402g7+jYhGIaOXOaQc+uONfmCwZXJIf8xKx2KRgxYgOS+CROuyoyQKCxIhkOr4T6JWgxGnvZ1HWnf/CfHcBXxcnpRHxYwRKkUjSErFKkAQiNjP4kmBRTHbKm5KkKxwL+K39fwDX1XGF8ct++QAAAABJRU5ErkJggg==');\\n bottom: 10px;\\n left: 15px;\\n}\\ndiv.vis-network div.vis-navigation div.vis-button.vis-right {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7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left: 95px;\\n}\\ndiv.vis-network div.vis-navigation div.vis-button.vis-zoomIn {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAF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/p+dw5pGeg0WKGiS31K6vvTdmA7nx9uDZ9A3xMUIpbvSezE6MSOmbNWXewHhD6dH23o7BlqQvvrwTK6KQFpXl2WyvcE6LTB2eCPSdrurvmcUnO/cVfPD6pMteyfGs3QKpUFQoS9tU/xPH8xe+Tdd693pN/pHug0Xmqntvz1uLDo9Z9v5nnrn+dvujrI1JMUJd3OY7n97ua46douOGpkdlDoUDeG7g1NS/u/5a0Og9scCsB+ysWXSoMuyFftWJvM0E31SBjmWPznHPjy+8NjdhYfeMmJl3EiNSRgCi/25fpGu4M671zjlrm685s2fEnUoQ5lrLLW8uPLj3oX9hqgxIw8n8X1LU7yMkItCHzREZrGQV6ONmy5TggHk247sL/1jFqof/hRn/AWfqC0pI+QHBIk3tICXRrFTpF8hlJaqefh6yFxQ6HwQYlK8HAKyt3WsWxl7fAAAAAElFTkSuQmCC');\\n bottom: 10px;\\n right: 15px;\\n}\\ndiv.vis-network div.vis-navigation div.vis-button.vis-zoomOut {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozk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LzTjzfKoj0sza/GLOy1Bu3vqc20Pgl5YIGkVOEZFZ0nLLMszzdDADTgjIdX6Uf3zfUx6m6u8riKRhOCcmDAqLCURo53Oe4rrsyUlGD0nlIqubdKNZJXOm9FH6y7Yh5uKBnO8vNTX2N4YoKE2fMLREQOsE8AfFN4/ak4QIfbd2XJFRQkLx85ruN7NTp2AoAZxwlCR9dWJc81NDdtoLkc86KBIJwXQ3aOpCPqwuhR2SPbCBlUc2NyogQX3N7wqgU51BAf2w9EFXUtCtLqADqS76ev6/ilgrk2q6esxHZgf5CySh3FMcG+5jbE0ZNdj4odHdDwWPGcZNNO1MPbrxtzdW4s+tI5HPBwQTTzziKY3v/7HGlhmS23g90T+OO5L1Nu7MMw3Fv/Tx1f97/FnsAYPui8/D4nBB/oZZR230uoq67auQoLaB37Iio3sEAK52nR39p+zS13HFiilHeYtOOabdC71jQzz2R+ALBbcrjWNF+cfaUwLSrk4KmtsT4T+gK9jG7AKKjv93X1lcfUNNVaantropqddnDCcIoa7lk29S92+/5CpOvQ04VJ79KUe/7iI/Hh40U6c3PyuPjhmWKN8G8Fvnw1A/zmX/vV5h/T+CXstRMUp4kOFOjZiUlWBkFQYdALitRZXRzf3RqWumdgF79NQDBOa2V/iYSHAAAAABJRU5ErkJggg==');\\n bottom: 10px;\\n right: 55px;\\n}\\ndiv.vis-network div.vis-navigation div.vis-button.vis-zoomExtends {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADAT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5DVFBVKQtjBj6JGlNt/D8Y+OpMdlTphiEqcB4tqtsVjfjUtLLkx0J/dOnjWPTg+lEARIEHwaQJVQIYggACC/qxi6rn8ZHL4XETSsf0MU1HOk/CFGYgAwskUqY5eBitRxzn7/a0V1EEBwdqkN6jPI7y4xPmHmC5unbWdQRMqP2d86qANOksU6gvmArNQRNClqABnQgYuK0krI+wCOAyH3DK/vqOXhaf3PAO7mIRjDNV25AAAAAElFTkSuQmCC');\\n bottom: 50px;\\n right: 15px;\\n}\\n\";\nstyleInject(css_248z$1);\n\n/**\r\n * Created by Alex on 11/6/2014.\r\n */\r\nfunction keycharm(options) {\r\n var preventDefault = options && options.preventDefault || false;\r\n\r\n var container = options && options.container || window;\r\n\r\n var _exportFunctions = {};\r\n var _bound = {keydown:{}, keyup:{}};\r\n var _keys = {};\r\n var i;\r\n\r\n // a - z\r\n for (i = 97; i <= 122; i++) {_keys[String.fromCharCode(i)] = {code:65 + (i - 97), shift: false};}\r\n // A - Z\r\n for (i = 65; i <= 90; i++) {_keys[String.fromCharCode(i)] = {code:i, shift: true};}\r\n // 0 - 9\r\n for (i = 0; i <= 9; i++) {_keys['' + i] = {code:48 + i, shift: false};}\r\n // F1 - F12\r\n for (i = 1; i <= 12; i++) {_keys['F' + i] = {code:111 + i, shift: false};}\r\n // num0 - num9\r\n for (i = 0; i <= 9; i++) {_keys['num' + i] = {code:96 + i, shift: false};}\r\n\r\n // numpad misc\r\n _keys['num*'] = {code:106, shift: false};\r\n _keys['num+'] = {code:107, shift: false};\r\n _keys['num-'] = {code:109, shift: false};\r\n _keys['num/'] = {code:111, shift: false};\r\n _keys['num.'] = {code:110, shift: false};\r\n // arrows\r\n _keys['left'] = {code:37, shift: false};\r\n _keys['up'] = {code:38, shift: false};\r\n _keys['right'] = {code:39, shift: false};\r\n _keys['down'] = {code:40, shift: false};\r\n // extra keys\r\n _keys['space'] = {code:32, shift: false};\r\n _keys['enter'] = {code:13, shift: false};\r\n _keys['shift'] = {code:16, shift: undefined};\r\n _keys['esc'] = {code:27, shift: false};\r\n _keys['backspace'] = {code:8, shift: false};\r\n _keys['tab'] = {code:9, shift: false};\r\n _keys['ctrl'] = {code:17, shift: false};\r\n _keys['alt'] = {code:18, shift: false};\r\n _keys['delete'] = {code:46, shift: false};\r\n _keys['pageup'] = {code:33, shift: false};\r\n _keys['pagedown'] = {code:34, shift: false};\r\n // symbols\r\n _keys['='] = {code:187, shift: false};\r\n _keys['-'] = {code:189, shift: false};\r\n _keys[']'] = {code:221, shift: false};\r\n _keys['['] = {code:219, shift: false};\r\n\r\n\r\n\r\n var down = function(event) {handleEvent(event,'keydown');};\r\n var up = function(event) {handleEvent(event,'keyup');};\r\n\r\n // handle the actualy bound key with the event\r\n var handleEvent = function(event,type) {\r\n if (_bound[type][event.keyCode] !== undefined) {\r\n var bound = _bound[type][event.keyCode];\r\n for (var i = 0; i < bound.length; i++) {\r\n if (bound[i].shift === undefined) {\r\n bound[i].fn(event);\r\n }\r\n else if (bound[i].shift == true && event.shiftKey == true) {\r\n bound[i].fn(event);\r\n }\r\n else if (bound[i].shift == false && event.shiftKey == false) {\r\n bound[i].fn(event);\r\n }\r\n }\r\n\r\n if (preventDefault == true) {\r\n event.preventDefault();\r\n }\r\n }\r\n };\r\n\r\n // bind a key to a callback\r\n _exportFunctions.bind = function(key, callback, type) {\r\n if (type === undefined) {\r\n type = 'keydown';\r\n }\r\n if (_keys[key] === undefined) {\r\n throw new Error(\"unsupported key: \" + key);\r\n }\r\n if (_bound[type][_keys[key].code] === undefined) {\r\n _bound[type][_keys[key].code] = [];\r\n }\r\n _bound[type][_keys[key].code].push({fn:callback, shift:_keys[key].shift});\r\n };\r\n\r\n\r\n // bind all keys to a call back (demo purposes)\r\n _exportFunctions.bindAll = function(callback, type) {\r\n if (type === undefined) {\r\n type = 'keydown';\r\n }\r\n for (var key in _keys) {\r\n if (_keys.hasOwnProperty(key)) {\r\n _exportFunctions.bind(key,callback,type);\r\n }\r\n }\r\n };\r\n\r\n // get the key label from an event\r\n _exportFunctions.getKey = function(event) {\r\n for (var key in _keys) {\r\n if (_keys.hasOwnProperty(key)) {\r\n if (event.shiftKey == true && _keys[key].shift == true && event.keyCode == _keys[key].code) {\r\n return key;\r\n }\r\n else if (event.shiftKey == false && _keys[key].shift == false && event.keyCode == _keys[key].code) {\r\n return key;\r\n }\r\n else if (event.keyCode == _keys[key].code && key == 'shift') {\r\n return key;\r\n }\r\n }\r\n }\r\n return \"unknown key, currently not supported\";\r\n };\r\n\r\n // unbind either a specific callback from a key or all of them (by leaving callback undefined)\r\n _exportFunctions.unbind = function(key, callback, type) {\r\n if (type === undefined) {\r\n type = 'keydown';\r\n }\r\n if (_keys[key] === undefined) {\r\n throw new Error(\"unsupported key: \" + key);\r\n }\r\n if (callback !== undefined) {\r\n var newBindings = [];\r\n var bound = _bound[type][_keys[key].code];\r\n if (bound !== undefined) {\r\n for (var i = 0; i < bound.length; i++) {\r\n if (!(bound[i].fn == callback && bound[i].shift == _keys[key].shift)) {\r\n newBindings.push(_bound[type][_keys[key].code][i]);\r\n }\r\n }\r\n }\r\n _bound[type][_keys[key].code] = newBindings;\r\n }\r\n else {\r\n _bound[type][_keys[key].code] = [];\r\n }\r\n };\r\n\r\n // reset all bound variables.\r\n _exportFunctions.reset = function() {\r\n _bound = {keydown:{}, keyup:{}};\r\n };\r\n\r\n // unbind all listeners and reset all variables.\r\n _exportFunctions.destroy = function() {\r\n _bound = {keydown:{}, keyup:{}};\r\n container.removeEventListener('keydown', down, true);\r\n container.removeEventListener('keyup', up, true);\r\n };\r\n\r\n // create listeners.\r\n container.addEventListener('keydown',down,true);\r\n container.addEventListener('keyup',up,true);\r\n\r\n // return the public functions.\r\n return _exportFunctions;\r\n}\n\n/**\n * Navigation Handler\n */\nvar NavigationHandler = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {Canvas} canvas\n */\n function NavigationHandler(body, canvas) {\n var _this = this;\n _classCallCheck(this, NavigationHandler);\n this.body = body;\n this.canvas = canvas;\n this.iconsCreated = false;\n this.navigationHammers = [];\n this.boundFunctions = {};\n this.touchTime = 0;\n this.activated = false;\n this.body.emitter.on(\"activate\", function () {\n _this.activated = true;\n _this.configureKeyboardBindings();\n });\n this.body.emitter.on(\"deactivate\", function () {\n _this.activated = false;\n _this.configureKeyboardBindings();\n });\n this.body.emitter.on(\"destroy\", function () {\n if (_this.keycharm !== undefined) {\n _this.keycharm.destroy();\n }\n });\n this.options = {};\n }\n\n /**\n *\n * @param {object} options\n */\n _createClass(NavigationHandler, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options !== undefined) {\n this.options = options;\n this.create();\n }\n }\n\n /**\n * Creates or refreshes navigation and sets key bindings\n */\n }, {\n key: \"create\",\n value: function create() {\n if (this.options.navigationButtons === true) {\n if (this.iconsCreated === false) {\n this.loadNavigationElements();\n }\n } else if (this.iconsCreated === true) {\n this.cleanNavigation();\n }\n this.configureKeyboardBindings();\n }\n\n /**\n * Cleans up previous navigation items\n */\n }, {\n key: \"cleanNavigation\",\n value: function cleanNavigation() {\n // clean hammer bindings\n if (this.navigationHammers.length != 0) {\n for (var i = 0; i < this.navigationHammers.length; i++) {\n this.navigationHammers[i].destroy();\n }\n this.navigationHammers = [];\n }\n\n // clean up previous navigation items\n if (this.navigationDOM && this.navigationDOM[\"wrapper\"] && this.navigationDOM[\"wrapper\"].parentNode) {\n this.navigationDOM[\"wrapper\"].parentNode.removeChild(this.navigationDOM[\"wrapper\"]);\n }\n this.iconsCreated = false;\n }\n\n /**\n * Creation of the navigation controls nodes. They are drawn over the rest of the nodes and are not affected by scale and translation\n * they have a triggerFunction which is called on click. If the position of the navigation controls is dependent\n * on this.frame.canvas.clientWidth or this.frame.canvas.clientHeight, we flag horizontalAlignLeft and verticalAlignTop false.\n * This means that the location will be corrected by the _relocateNavigation function on a size change of the canvas.\n *\n * @private\n */\n }, {\n key: \"loadNavigationElements\",\n value: function loadNavigationElements() {\n var _this2 = this;\n this.cleanNavigation();\n this.navigationDOM = {};\n var navigationDivs = [\"up\", \"down\", \"left\", \"right\", \"zoomIn\", \"zoomOut\", \"zoomExtends\"];\n var navigationDivActions = [\"_moveUp\", \"_moveDown\", \"_moveLeft\", \"_moveRight\", \"_zoomIn\", \"_zoomOut\", \"_fit\"];\n this.navigationDOM[\"wrapper\"] = document.createElement(\"div\");\n this.navigationDOM[\"wrapper\"].className = \"vis-navigation\";\n this.canvas.frame.appendChild(this.navigationDOM[\"wrapper\"]);\n for (var i = 0; i < navigationDivs.length; i++) {\n this.navigationDOM[navigationDivs[i]] = document.createElement(\"div\");\n this.navigationDOM[navigationDivs[i]].className = \"vis-button vis-\" + navigationDivs[i];\n this.navigationDOM[\"wrapper\"].appendChild(this.navigationDOM[navigationDivs[i]]);\n var hammer = new Hammer(this.navigationDOM[navigationDivs[i]]);\n if (navigationDivActions[i] === \"_fit\") {\n var _context;\n onTouch(hammer, _bindInstanceProperty$1(_context = this._fit).call(_context, this));\n } else {\n var _context2;\n onTouch(hammer, _bindInstanceProperty$1(_context2 = this.bindToRedraw).call(_context2, this, navigationDivActions[i]));\n }\n this.navigationHammers.push(hammer);\n }\n\n // use a hammer for the release so we do not require the one used in the rest of the network\n // the one the rest uses can be overloaded by the manipulation system.\n var hammerFrame = new Hammer(this.canvas.frame);\n onRelease(hammerFrame, function () {\n _this2._stopMovement();\n });\n this.navigationHammers.push(hammerFrame);\n this.iconsCreated = true;\n }\n\n /**\n *\n * @param {string} action\n */\n }, {\n key: \"bindToRedraw\",\n value: function bindToRedraw(action) {\n if (this.boundFunctions[action] === undefined) {\n var _context3;\n this.boundFunctions[action] = _bindInstanceProperty$1(_context3 = this[action]).call(_context3, this);\n this.body.emitter.on(\"initRedraw\", this.boundFunctions[action]);\n this.body.emitter.emit(\"_startRendering\");\n }\n }\n\n /**\n *\n * @param {string} action\n */\n }, {\n key: \"unbindFromRedraw\",\n value: function unbindFromRedraw(action) {\n if (this.boundFunctions[action] !== undefined) {\n this.body.emitter.off(\"initRedraw\", this.boundFunctions[action]);\n this.body.emitter.emit(\"_stopRendering\");\n delete this.boundFunctions[action];\n }\n }\n\n /**\n * this stops all movement induced by the navigation buttons\n *\n * @private\n */\n }, {\n key: \"_fit\",\n value: function _fit() {\n if (new Date().valueOf() - this.touchTime > 700) {\n // TODO: fix ugly hack to avoid hammer's double fireing of event (because we use release?)\n this.body.emitter.emit(\"fit\", {\n duration: 700\n });\n this.touchTime = new Date().valueOf();\n }\n }\n\n /**\n * this stops all movement induced by the navigation buttons\n *\n * @private\n */\n }, {\n key: \"_stopMovement\",\n value: function _stopMovement() {\n for (var boundAction in this.boundFunctions) {\n if (Object.prototype.hasOwnProperty.call(this.boundFunctions, boundAction)) {\n this.body.emitter.off(\"initRedraw\", this.boundFunctions[boundAction]);\n this.body.emitter.emit(\"_stopRendering\");\n }\n }\n this.boundFunctions = {};\n }\n /**\n *\n * @private\n */\n }, {\n key: \"_moveUp\",\n value: function _moveUp() {\n this.body.view.translation.y += this.options.keyboard.speed.y;\n }\n /**\n *\n * @private\n */\n }, {\n key: \"_moveDown\",\n value: function _moveDown() {\n this.body.view.translation.y -= this.options.keyboard.speed.y;\n }\n /**\n *\n * @private\n */\n }, {\n key: \"_moveLeft\",\n value: function _moveLeft() {\n this.body.view.translation.x += this.options.keyboard.speed.x;\n }\n /**\n *\n * @private\n */\n }, {\n key: \"_moveRight\",\n value: function _moveRight() {\n this.body.view.translation.x -= this.options.keyboard.speed.x;\n }\n /**\n *\n * @private\n */\n }, {\n key: \"_zoomIn\",\n value: function _zoomIn() {\n var scaleOld = this.body.view.scale;\n var scale = this.body.view.scale * (1 + this.options.keyboard.speed.zoom);\n var translation = this.body.view.translation;\n var scaleFrac = scale / scaleOld;\n var tx = (1 - scaleFrac) * this.canvas.canvasViewCenter.x + translation.x * scaleFrac;\n var ty = (1 - scaleFrac) * this.canvas.canvasViewCenter.y + translation.y * scaleFrac;\n this.body.view.scale = scale;\n this.body.view.translation = {\n x: tx,\n y: ty\n };\n this.body.emitter.emit(\"zoom\", {\n direction: \"+\",\n scale: this.body.view.scale,\n pointer: null\n });\n }\n\n /**\n *\n * @private\n */\n }, {\n key: \"_zoomOut\",\n value: function _zoomOut() {\n var scaleOld = this.body.view.scale;\n var scale = this.body.view.scale / (1 + this.options.keyboard.speed.zoom);\n var translation = this.body.view.translation;\n var scaleFrac = scale / scaleOld;\n var tx = (1 - scaleFrac) * this.canvas.canvasViewCenter.x + translation.x * scaleFrac;\n var ty = (1 - scaleFrac) * this.canvas.canvasViewCenter.y + translation.y * scaleFrac;\n this.body.view.scale = scale;\n this.body.view.translation = {\n x: tx,\n y: ty\n };\n this.body.emitter.emit(\"zoom\", {\n direction: \"-\",\n scale: this.body.view.scale,\n pointer: null\n });\n }\n\n /**\n * bind all keys using keycharm.\n */\n }, {\n key: \"configureKeyboardBindings\",\n value: function configureKeyboardBindings() {\n var _this3 = this;\n if (this.keycharm !== undefined) {\n this.keycharm.destroy();\n }\n if (this.options.keyboard.enabled === true) {\n if (this.options.keyboard.bindToWindow === true) {\n this.keycharm = keycharm({\n container: window,\n preventDefault: true\n });\n } else {\n this.keycharm = keycharm({\n container: this.canvas.frame,\n preventDefault: true\n });\n }\n this.keycharm.reset();\n if (this.activated === true) {\n var _context4, _context5, _context6, _context7, _context8, _context9, _context10, _context11, _context12, _context13, _context14, _context15, _context16, _context17, _context18, _context19, _context20, _context21, _context22, _context23, _context24, _context25, _context26, _context27;\n _bindInstanceProperty$1(_context4 = this.keycharm).call(_context4, \"up\", function () {\n _this3.bindToRedraw(\"_moveUp\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context5 = this.keycharm).call(_context5, \"down\", function () {\n _this3.bindToRedraw(\"_moveDown\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context6 = this.keycharm).call(_context6, \"left\", function () {\n _this3.bindToRedraw(\"_moveLeft\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context7 = this.keycharm).call(_context7, \"right\", function () {\n _this3.bindToRedraw(\"_moveRight\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context8 = this.keycharm).call(_context8, \"=\", function () {\n _this3.bindToRedraw(\"_zoomIn\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context9 = this.keycharm).call(_context9, \"num+\", function () {\n _this3.bindToRedraw(\"_zoomIn\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context10 = this.keycharm).call(_context10, \"num-\", function () {\n _this3.bindToRedraw(\"_zoomOut\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context11 = this.keycharm).call(_context11, \"-\", function () {\n _this3.bindToRedraw(\"_zoomOut\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context12 = this.keycharm).call(_context12, \"[\", function () {\n _this3.bindToRedraw(\"_zoomOut\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context13 = this.keycharm).call(_context13, \"]\", function () {\n _this3.bindToRedraw(\"_zoomIn\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context14 = this.keycharm).call(_context14, \"pageup\", function () {\n _this3.bindToRedraw(\"_zoomIn\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context15 = this.keycharm).call(_context15, \"pagedown\", function () {\n _this3.bindToRedraw(\"_zoomOut\");\n }, \"keydown\");\n _bindInstanceProperty$1(_context16 = this.keycharm).call(_context16, \"up\", function () {\n _this3.unbindFromRedraw(\"_moveUp\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context17 = this.keycharm).call(_context17, \"down\", function () {\n _this3.unbindFromRedraw(\"_moveDown\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context18 = this.keycharm).call(_context18, \"left\", function () {\n _this3.unbindFromRedraw(\"_moveLeft\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context19 = this.keycharm).call(_context19, \"right\", function () {\n _this3.unbindFromRedraw(\"_moveRight\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context20 = this.keycharm).call(_context20, \"=\", function () {\n _this3.unbindFromRedraw(\"_zoomIn\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context21 = this.keycharm).call(_context21, \"num+\", function () {\n _this3.unbindFromRedraw(\"_zoomIn\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context22 = this.keycharm).call(_context22, \"num-\", function () {\n _this3.unbindFromRedraw(\"_zoomOut\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context23 = this.keycharm).call(_context23, \"-\", function () {\n _this3.unbindFromRedraw(\"_zoomOut\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context24 = this.keycharm).call(_context24, \"[\", function () {\n _this3.unbindFromRedraw(\"_zoomOut\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context25 = this.keycharm).call(_context25, \"]\", function () {\n _this3.unbindFromRedraw(\"_zoomIn\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context26 = this.keycharm).call(_context26, \"pageup\", function () {\n _this3.unbindFromRedraw(\"_zoomIn\");\n }, \"keyup\");\n _bindInstanceProperty$1(_context27 = this.keycharm).call(_context27, \"pagedown\", function () {\n _this3.unbindFromRedraw(\"_zoomOut\");\n }, \"keyup\");\n }\n }\n }\n }]);\n return NavigationHandler;\n}();\n\nfunction _createForOfIteratorHelper$4(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray$4(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray$4(o, minLen) { var _context15; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray$4(o, minLen); var n = _sliceInstanceProperty(_context15 = Object.prototype.toString.call(o)).call(_context15, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen); }\nfunction _arrayLikeToArray$4(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n/**\n * Handler for interactions\n */\nvar InteractionHandler = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {Canvas} canvas\n * @param {SelectionHandler} selectionHandler\n */\n function InteractionHandler(body, canvas, selectionHandler) {\n var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context10, _context11, _context12, _context13;\n _classCallCheck(this, InteractionHandler);\n this.body = body;\n this.canvas = canvas;\n this.selectionHandler = selectionHandler;\n this.navigationHandler = new NavigationHandler(body, canvas);\n\n // bind the events from hammer to functions in this object\n this.body.eventListeners.onTap = _bindInstanceProperty$1(_context = this.onTap).call(_context, this);\n this.body.eventListeners.onTouch = _bindInstanceProperty$1(_context2 = this.onTouch).call(_context2, this);\n this.body.eventListeners.onDoubleTap = _bindInstanceProperty$1(_context3 = this.onDoubleTap).call(_context3, this);\n this.body.eventListeners.onHold = _bindInstanceProperty$1(_context4 = this.onHold).call(_context4, this);\n this.body.eventListeners.onDragStart = _bindInstanceProperty$1(_context5 = this.onDragStart).call(_context5, this);\n this.body.eventListeners.onDrag = _bindInstanceProperty$1(_context6 = this.onDrag).call(_context6, this);\n this.body.eventListeners.onDragEnd = _bindInstanceProperty$1(_context7 = this.onDragEnd).call(_context7, this);\n this.body.eventListeners.onMouseWheel = _bindInstanceProperty$1(_context8 = this.onMouseWheel).call(_context8, this);\n this.body.eventListeners.onPinch = _bindInstanceProperty$1(_context9 = this.onPinch).call(_context9, this);\n this.body.eventListeners.onMouseMove = _bindInstanceProperty$1(_context10 = this.onMouseMove).call(_context10, this);\n this.body.eventListeners.onRelease = _bindInstanceProperty$1(_context11 = this.onRelease).call(_context11, this);\n this.body.eventListeners.onContext = _bindInstanceProperty$1(_context12 = this.onContext).call(_context12, this);\n this.touchTime = 0;\n this.drag = {};\n this.pinch = {};\n this.popup = undefined;\n this.popupObj = undefined;\n this.popupTimer = undefined;\n this.body.functions.getPointer = _bindInstanceProperty$1(_context13 = this.getPointer).call(_context13, this);\n this.options = {};\n this.defaultOptions = {\n dragNodes: true,\n dragView: true,\n hover: false,\n keyboard: {\n enabled: false,\n speed: {\n x: 10,\n y: 10,\n zoom: 0.02\n },\n bindToWindow: true,\n autoFocus: true\n },\n navigationButtons: false,\n tooltipDelay: 300,\n zoomView: true,\n zoomSpeed: 1\n };\n _Object$assign(this.options, this.defaultOptions);\n this.bindEventListeners();\n }\n\n /**\n * Binds event listeners\n */\n _createClass(InteractionHandler, [{\n key: \"bindEventListeners\",\n value: function bindEventListeners() {\n var _this = this;\n this.body.emitter.on(\"destroy\", function () {\n clearTimeout(_this.popupTimer);\n delete _this.body.functions.getPointer;\n });\n }\n\n /**\n *\n * @param {object} options\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options !== undefined) {\n // extend all but the values in fields\n var fields = [\"hideEdgesOnDrag\", \"hideEdgesOnZoom\", \"hideNodesOnDrag\", \"keyboard\", \"multiselect\", \"selectable\", \"selectConnectedEdges\"];\n selectiveNotDeepExtend(fields, this.options, options);\n\n // merge the keyboard options in.\n mergeOptions(this.options, options, \"keyboard\");\n if (options.tooltip) {\n _Object$assign(this.options.tooltip, options.tooltip);\n if (options.tooltip.color) {\n this.options.tooltip.color = parseColor(options.tooltip.color);\n }\n }\n }\n this.navigationHandler.setOptions(this.options);\n }\n\n /**\n * Get the pointer location from a touch location\n *\n * @param {{x: number, y: number}} touch\n * @returns {{x: number, y: number}} pointer\n * @private\n */\n }, {\n key: \"getPointer\",\n value: function getPointer(touch) {\n return {\n x: touch.x - getAbsoluteLeft(this.canvas.frame.canvas),\n y: touch.y - getAbsoluteTop(this.canvas.frame.canvas)\n };\n }\n\n /**\n * On start of a touch gesture, store the pointer\n *\n * @param {Event} event The event\n * @private\n */\n }, {\n key: \"onTouch\",\n value: function onTouch(event) {\n if (new Date().valueOf() - this.touchTime > 50) {\n this.drag.pointer = this.getPointer(event.center);\n this.drag.pinched = false;\n this.pinch.scale = this.body.view.scale;\n // to avoid double fireing of this event because we have two hammer instances. (on canvas and on frame)\n this.touchTime = new Date().valueOf();\n }\n }\n\n /**\n * handle tap/click event: select/unselect a node\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"onTap\",\n value: function onTap(event) {\n var pointer = this.getPointer(event.center);\n var multiselect = this.selectionHandler.options.multiselect && (event.changedPointers[0].ctrlKey || event.changedPointers[0].metaKey);\n this.checkSelectionChanges(pointer, multiselect);\n this.selectionHandler.commitAndEmit(pointer, event);\n this.selectionHandler.generateClickEvent(\"click\", event, pointer);\n }\n\n /**\n * handle doubletap event\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"onDoubleTap\",\n value: function onDoubleTap(event) {\n var pointer = this.getPointer(event.center);\n this.selectionHandler.generateClickEvent(\"doubleClick\", event, pointer);\n }\n\n /**\n * handle long tap event: multi select nodes\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"onHold\",\n value: function onHold(event) {\n var pointer = this.getPointer(event.center);\n var multiselect = this.selectionHandler.options.multiselect;\n this.checkSelectionChanges(pointer, multiselect);\n this.selectionHandler.commitAndEmit(pointer, event);\n this.selectionHandler.generateClickEvent(\"click\", event, pointer);\n this.selectionHandler.generateClickEvent(\"hold\", event, pointer);\n }\n\n /**\n * handle the release of the screen\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"onRelease\",\n value: function onRelease(event) {\n if (new Date().valueOf() - this.touchTime > 10) {\n var pointer = this.getPointer(event.center);\n this.selectionHandler.generateClickEvent(\"release\", event, pointer);\n // to avoid double fireing of this event because we have two hammer instances. (on canvas and on frame)\n this.touchTime = new Date().valueOf();\n }\n }\n\n /**\n *\n * @param {Event} event\n */\n }, {\n key: \"onContext\",\n value: function onContext(event) {\n var pointer = this.getPointer({\n x: event.clientX,\n y: event.clientY\n });\n this.selectionHandler.generateClickEvent(\"oncontext\", event, pointer);\n }\n\n /**\n * Select and deselect nodes depending current selection change.\n *\n * @param {{x: number, y: number}} pointer\n * @param {boolean} [add=false]\n */\n }, {\n key: \"checkSelectionChanges\",\n value: function checkSelectionChanges(pointer) {\n var add = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n if (add === true) {\n this.selectionHandler.selectAdditionalOnPoint(pointer);\n } else {\n this.selectionHandler.selectOnPoint(pointer);\n }\n }\n\n /**\n * Remove all node and edge id's from the first set that are present in the second one.\n *\n * @param {{nodes: Array., edges: Array.}} firstSet\n * @param {{nodes: Array., edges: Array.}} secondSet\n * @returns {{nodes: Array., edges: Array.}}\n * @private\n */\n }, {\n key: \"_determineDifference\",\n value: function _determineDifference(firstSet, secondSet) {\n var arrayDiff = function arrayDiff(firstArr, secondArr) {\n var result = [];\n for (var i = 0; i < firstArr.length; i++) {\n var value = firstArr[i];\n if (_indexOfInstanceProperty(secondArr).call(secondArr, value) === -1) {\n result.push(value);\n }\n }\n return result;\n };\n return {\n nodes: arrayDiff(firstSet.nodes, secondSet.nodes),\n edges: arrayDiff(firstSet.edges, secondSet.edges)\n };\n }\n\n /**\n * This function is called by onDragStart.\n * It is separated out because we can then overload it for the datamanipulation system.\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"onDragStart\",\n value: function onDragStart(event) {\n // if already dragging, do not start\n // this can happen on touch screens with multiple fingers\n if (this.drag.dragging) {\n return;\n }\n\n //in case the touch event was triggered on an external div, do the initial touch now.\n if (this.drag.pointer === undefined) {\n this.onTouch(event);\n }\n\n // note: drag.pointer is set in onTouch to get the initial touch location\n var node = this.selectionHandler.getNodeAt(this.drag.pointer);\n this.drag.dragging = true;\n this.drag.selection = [];\n this.drag.translation = _Object$assign({}, this.body.view.translation); // copy the object\n this.drag.nodeId = undefined;\n if (event.srcEvent.shiftKey) {\n this.body.selectionBox.show = true;\n var pointer = this.getPointer(event.center);\n this.body.selectionBox.position.start = {\n x: this.canvas._XconvertDOMtoCanvas(pointer.x),\n y: this.canvas._YconvertDOMtoCanvas(pointer.y)\n };\n this.body.selectionBox.position.end = {\n x: this.canvas._XconvertDOMtoCanvas(pointer.x),\n y: this.canvas._YconvertDOMtoCanvas(pointer.y)\n };\n } else if (node !== undefined && this.options.dragNodes === true) {\n this.drag.nodeId = node.id;\n // select the clicked node if not yet selected\n if (node.isSelected() === false) {\n this.selectionHandler.setSelection({\n nodes: [node.id]\n });\n }\n\n // after select to contain the node\n this.selectionHandler.generateClickEvent(\"dragStart\", event, this.drag.pointer);\n\n // create an array with the selected nodes and their original location and status\n var _iterator = _createForOfIteratorHelper$4(this.selectionHandler.getSelectedNodes()),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _node = _step.value;\n var s = {\n id: _node.id,\n node: _node,\n // store original x, y, xFixed and yFixed, make the node temporarily Fixed\n x: _node.x,\n y: _node.y,\n xFixed: _node.options.fixed.x,\n yFixed: _node.options.fixed.y\n };\n _node.options.fixed.x = true;\n _node.options.fixed.y = true;\n this.drag.selection.push(s);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n } else {\n // fallback if no node is selected and thus the view is dragged.\n this.selectionHandler.generateClickEvent(\"dragStart\", event, this.drag.pointer, undefined, true);\n }\n }\n\n /**\n * handle drag event\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"onDrag\",\n value: function onDrag(event) {\n var _this2 = this;\n if (this.drag.pinched === true) {\n return;\n }\n\n // remove the focus on node if it is focussed on by the focusOnNode\n this.body.emitter.emit(\"unlockNode\");\n var pointer = this.getPointer(event.center);\n var selection = this.drag.selection;\n if (selection && selection.length && this.options.dragNodes === true) {\n this.selectionHandler.generateClickEvent(\"dragging\", event, pointer);\n\n // calculate delta's and new location\n var deltaX = pointer.x - this.drag.pointer.x;\n var deltaY = pointer.y - this.drag.pointer.y;\n\n // update position of all selected nodes\n _forEachInstanceProperty(selection).call(selection, function (selection) {\n var node = selection.node;\n // only move the node if it was not fixed initially\n if (selection.xFixed === false) {\n node.x = _this2.canvas._XconvertDOMtoCanvas(_this2.canvas._XconvertCanvasToDOM(selection.x) + deltaX);\n }\n // only move the node if it was not fixed initially\n if (selection.yFixed === false) {\n node.y = _this2.canvas._YconvertDOMtoCanvas(_this2.canvas._YconvertCanvasToDOM(selection.y) + deltaY);\n }\n });\n\n // start the simulation of the physics\n this.body.emitter.emit(\"startSimulation\");\n } else {\n // create selection box\n if (event.srcEvent.shiftKey) {\n this.selectionHandler.generateClickEvent(\"dragging\", event, pointer, undefined, true);\n\n // if the drag was not started properly because the click started outside the network div, start it now.\n if (this.drag.pointer === undefined) {\n this.onDragStart(event);\n return;\n }\n this.body.selectionBox.position.end = {\n x: this.canvas._XconvertDOMtoCanvas(pointer.x),\n y: this.canvas._YconvertDOMtoCanvas(pointer.y)\n };\n this.body.emitter.emit(\"_requestRedraw\");\n }\n\n // move the network\n if (this.options.dragView === true && !event.srcEvent.shiftKey) {\n this.selectionHandler.generateClickEvent(\"dragging\", event, pointer, undefined, true);\n\n // if the drag was not started properly because the click started outside the network div, start it now.\n if (this.drag.pointer === undefined) {\n this.onDragStart(event);\n return;\n }\n var diffX = pointer.x - this.drag.pointer.x;\n var diffY = pointer.y - this.drag.pointer.y;\n this.body.view.translation = {\n x: this.drag.translation.x + diffX,\n y: this.drag.translation.y + diffY\n };\n this.body.emitter.emit(\"_requestRedraw\");\n }\n }\n }\n\n /**\n * handle drag start event\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"onDragEnd\",\n value: function onDragEnd(event) {\n var _this3 = this;\n this.drag.dragging = false;\n if (this.body.selectionBox.show) {\n var _context14;\n this.body.selectionBox.show = false;\n var selectionBoxPosition = this.body.selectionBox.position;\n var selectionBoxPositionMinMax = {\n minX: Math.min(selectionBoxPosition.start.x, selectionBoxPosition.end.x),\n minY: Math.min(selectionBoxPosition.start.y, selectionBoxPosition.end.y),\n maxX: Math.max(selectionBoxPosition.start.x, selectionBoxPosition.end.x),\n maxY: Math.max(selectionBoxPosition.start.y, selectionBoxPosition.end.y)\n };\n var toBeSelectedNodes = _filterInstanceProperty(_context14 = this.body.nodeIndices).call(_context14, function (nodeId) {\n var node = _this3.body.nodes[nodeId];\n return node.x >= selectionBoxPositionMinMax.minX && node.x <= selectionBoxPositionMinMax.maxX && node.y >= selectionBoxPositionMinMax.minY && node.y <= selectionBoxPositionMinMax.maxY;\n });\n _forEachInstanceProperty(toBeSelectedNodes).call(toBeSelectedNodes, function (nodeId) {\n return _this3.selectionHandler.selectObject(_this3.body.nodes[nodeId]);\n });\n var pointer = this.getPointer(event.center);\n this.selectionHandler.commitAndEmit(pointer, event);\n this.selectionHandler.generateClickEvent(\"dragEnd\", event, this.getPointer(event.center), undefined, true);\n this.body.emitter.emit(\"_requestRedraw\");\n } else {\n var selection = this.drag.selection;\n if (selection && selection.length) {\n _forEachInstanceProperty(selection).call(selection, function (s) {\n // restore original xFixed and yFixed\n s.node.options.fixed.x = s.xFixed;\n s.node.options.fixed.y = s.yFixed;\n });\n this.selectionHandler.generateClickEvent(\"dragEnd\", event, this.getPointer(event.center));\n this.body.emitter.emit(\"startSimulation\");\n } else {\n this.selectionHandler.generateClickEvent(\"dragEnd\", event, this.getPointer(event.center), undefined, true);\n this.body.emitter.emit(\"_requestRedraw\");\n }\n }\n }\n\n /**\n * Handle pinch event\n *\n * @param {Event} event The event\n * @private\n */\n }, {\n key: \"onPinch\",\n value: function onPinch(event) {\n var pointer = this.getPointer(event.center);\n this.drag.pinched = true;\n if (this.pinch[\"scale\"] === undefined) {\n this.pinch.scale = 1;\n }\n\n // TODO: enabled moving while pinching?\n var scale = this.pinch.scale * event.scale;\n this.zoom(scale, pointer);\n }\n\n /**\n * Zoom the network in or out\n *\n * @param {number} scale a number around 1, and between 0.01 and 10\n * @param {{x: number, y: number}} pointer Position on screen\n * @private\n */\n }, {\n key: \"zoom\",\n value: function zoom(scale, pointer) {\n if (this.options.zoomView === true) {\n var scaleOld = this.body.view.scale;\n if (scale < 0.00001) {\n scale = 0.00001;\n }\n if (scale > 10) {\n scale = 10;\n }\n var preScaleDragPointer = undefined;\n if (this.drag !== undefined) {\n if (this.drag.dragging === true) {\n preScaleDragPointer = this.canvas.DOMtoCanvas(this.drag.pointer);\n }\n }\n // + this.canvas.frame.canvas.clientHeight / 2\n var translation = this.body.view.translation;\n var scaleFrac = scale / scaleOld;\n var tx = (1 - scaleFrac) * pointer.x + translation.x * scaleFrac;\n var ty = (1 - scaleFrac) * pointer.y + translation.y * scaleFrac;\n this.body.view.scale = scale;\n this.body.view.translation = {\n x: tx,\n y: ty\n };\n if (preScaleDragPointer != undefined) {\n var postScaleDragPointer = this.canvas.canvasToDOM(preScaleDragPointer);\n this.drag.pointer.x = postScaleDragPointer.x;\n this.drag.pointer.y = postScaleDragPointer.y;\n }\n this.body.emitter.emit(\"_requestRedraw\");\n if (scaleOld < scale) {\n this.body.emitter.emit(\"zoom\", {\n direction: \"+\",\n scale: this.body.view.scale,\n pointer: pointer\n });\n } else {\n this.body.emitter.emit(\"zoom\", {\n direction: \"-\",\n scale: this.body.view.scale,\n pointer: pointer\n });\n }\n }\n }\n\n /**\n * Event handler for mouse wheel event, used to zoom the timeline\n * See http://adomas.org/javascript-mouse-wheel/\n * https://github.com/EightMedia/hammer.js/issues/256\n *\n * @param {MouseEvent} event\n * @private\n */\n }, {\n key: \"onMouseWheel\",\n value: function onMouseWheel(event) {\n if (this.options.zoomView === true) {\n // If delta is nonzero, handle it.\n // Basically, delta is now positive if wheel was scrolled up,\n // and negative, if wheel was scrolled down.\n if (event.deltaY !== 0) {\n // calculate the new scale\n var scale = this.body.view.scale;\n scale *= 1 + (event.deltaY < 0 ? 1 : -1) * (this.options.zoomSpeed * 0.1);\n\n // calculate the pointer location\n var pointer = this.getPointer({\n x: event.clientX,\n y: event.clientY\n });\n\n // apply the new scale\n this.zoom(scale, pointer);\n }\n\n // Prevent default actions caused by mouse wheel.\n event.preventDefault();\n }\n }\n\n /**\n * Mouse move handler for checking whether the title moves over a node with a title.\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"onMouseMove\",\n value: function onMouseMove(event) {\n var _this4 = this;\n var pointer = this.getPointer({\n x: event.clientX,\n y: event.clientY\n });\n var popupVisible = false;\n\n // check if the previously selected node is still selected\n if (this.popup !== undefined) {\n if (this.popup.hidden === false) {\n this._checkHidePopup(pointer);\n }\n\n // if the popup was not hidden above\n if (this.popup.hidden === false) {\n popupVisible = true;\n this.popup.setPosition(pointer.x + 3, pointer.y - 5);\n this.popup.show();\n }\n }\n\n // if we bind the keyboard to the div, we have to highlight it to use it. This highlights it on mouse over.\n if (this.options.keyboard.autoFocus && this.options.keyboard.bindToWindow === false && this.options.keyboard.enabled === true) {\n this.canvas.frame.focus();\n }\n\n // start a timeout that will check if the mouse is positioned above an element\n if (popupVisible === false) {\n if (this.popupTimer !== undefined) {\n clearInterval(this.popupTimer); // stop any running calculationTimer\n this.popupTimer = undefined;\n }\n if (!this.drag.dragging) {\n this.popupTimer = _setTimeout(function () {\n return _this4._checkShowPopup(pointer);\n }, this.options.tooltipDelay);\n }\n }\n\n // adding hover highlights\n if (this.options.hover === true) {\n this.selectionHandler.hoverObject(event, pointer);\n }\n }\n\n /**\n * Check if there is an element on the given position in the network\n * (a node or edge). If so, and if this element has a title,\n * show a popup window with its title.\n *\n * @param {{x:number, y:number}} pointer\n * @private\n */\n }, {\n key: \"_checkShowPopup\",\n value: function _checkShowPopup(pointer) {\n var x = this.canvas._XconvertDOMtoCanvas(pointer.x);\n var y = this.canvas._YconvertDOMtoCanvas(pointer.y);\n var pointerObj = {\n left: x,\n top: y,\n right: x,\n bottom: y\n };\n var previousPopupObjId = this.popupObj === undefined ? undefined : this.popupObj.id;\n var nodeUnderCursor = false;\n var popupType = \"node\";\n\n // check if a node is under the cursor.\n if (this.popupObj === undefined) {\n // search the nodes for overlap, select the top one in case of multiple nodes\n var nodeIndices = this.body.nodeIndices;\n var nodes = this.body.nodes;\n var node;\n var overlappingNodes = [];\n for (var i = 0; i < nodeIndices.length; i++) {\n node = nodes[nodeIndices[i]];\n if (node.isOverlappingWith(pointerObj) === true) {\n nodeUnderCursor = true;\n if (node.getTitle() !== undefined) {\n overlappingNodes.push(nodeIndices[i]);\n }\n }\n }\n if (overlappingNodes.length > 0) {\n // if there are overlapping nodes, select the last one, this is the one which is drawn on top of the others\n this.popupObj = nodes[overlappingNodes[overlappingNodes.length - 1]];\n // if you hover over a node, the title of the edge is not supposed to be shown.\n nodeUnderCursor = true;\n }\n }\n if (this.popupObj === undefined && nodeUnderCursor === false) {\n // search the edges for overlap\n var edgeIndices = this.body.edgeIndices;\n var edges = this.body.edges;\n var edge;\n var overlappingEdges = [];\n for (var _i = 0; _i < edgeIndices.length; _i++) {\n edge = edges[edgeIndices[_i]];\n if (edge.isOverlappingWith(pointerObj) === true) {\n if (edge.connected === true && edge.getTitle() !== undefined) {\n overlappingEdges.push(edgeIndices[_i]);\n }\n }\n }\n if (overlappingEdges.length > 0) {\n this.popupObj = edges[overlappingEdges[overlappingEdges.length - 1]];\n popupType = \"edge\";\n }\n }\n if (this.popupObj !== undefined) {\n // show popup message window\n if (this.popupObj.id !== previousPopupObjId) {\n if (this.popup === undefined) {\n this.popup = new Popup(this.canvas.frame);\n }\n this.popup.popupTargetType = popupType;\n this.popup.popupTargetId = this.popupObj.id;\n\n // adjust a small offset such that the mouse cursor is located in the\n // bottom left location of the popup, and you can easily move over the\n // popup area\n this.popup.setPosition(pointer.x + 3, pointer.y - 5);\n this.popup.setText(this.popupObj.getTitle());\n this.popup.show();\n this.body.emitter.emit(\"showPopup\", this.popupObj.id);\n }\n } else {\n if (this.popup !== undefined) {\n this.popup.hide();\n this.body.emitter.emit(\"hidePopup\");\n }\n }\n }\n\n /**\n * Check if the popup must be hidden, which is the case when the mouse is no\n * longer hovering on the object\n *\n * @param {{x:number, y:number}} pointer\n * @private\n */\n }, {\n key: \"_checkHidePopup\",\n value: function _checkHidePopup(pointer) {\n var pointerObj = this.selectionHandler._pointerToPositionObject(pointer);\n var stillOnObj = false;\n if (this.popup.popupTargetType === \"node\") {\n if (this.body.nodes[this.popup.popupTargetId] !== undefined) {\n stillOnObj = this.body.nodes[this.popup.popupTargetId].isOverlappingWith(pointerObj);\n\n // if the mouse is still one the node, we have to check if it is not also on one that is drawn on top of it.\n // we initially only check stillOnObj because this is much faster.\n if (stillOnObj === true) {\n var overNode = this.selectionHandler.getNodeAt(pointer);\n stillOnObj = overNode === undefined ? false : overNode.id === this.popup.popupTargetId;\n }\n }\n } else {\n if (this.selectionHandler.getNodeAt(pointer) === undefined) {\n if (this.body.edges[this.popup.popupTargetId] !== undefined) {\n stillOnObj = this.body.edges[this.popup.popupTargetId].isOverlappingWith(pointerObj);\n }\n }\n }\n if (stillOnObj === false) {\n this.popupObj = undefined;\n this.popup.hide();\n this.body.emitter.emit(\"hidePopup\");\n }\n }\n }]);\n return InteractionHandler;\n}();\n\nvar weakMapExports = {};\nvar weakMap$2 = {\n get exports(){ return weakMapExports; },\n set exports(v){ weakMapExports = v; },\n};\n\nvar uncurryThis$1 = functionUncurryThis;\nvar defineBuiltIns$1 = defineBuiltIns$3;\nvar getWeakData = internalMetadataExports.getWeakData;\nvar anInstance = anInstance$4;\nvar anObject = anObject$f;\nvar isNullOrUndefined = isNullOrUndefined$6;\nvar isObject$1 = isObject$m;\nvar iterate = iterate$8;\nvar ArrayIterationModule = arrayIteration;\nvar hasOwn = hasOwnProperty_1;\nvar InternalStateModule = internalState;\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\nvar find = ArrayIterationModule.find;\nvar findIndex = ArrayIterationModule.findIndex;\nvar splice = uncurryThis$1([].splice);\nvar id = 0;\n\n// fallback for uncaught frozen keys\nvar uncaughtFrozenStore = function (state) {\n return state.frozen || (state.frozen = new UncaughtFrozenStore());\n};\n\nvar UncaughtFrozenStore = function () {\n this.entries = [];\n};\n\nvar findUncaughtFrozen = function (store, key) {\n return find(store.entries, function (it) {\n return it[0] === key;\n });\n};\n\nUncaughtFrozenStore.prototype = {\n get: function (key) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) return entry[1];\n },\n has: function (key) {\n return !!findUncaughtFrozen(this, key);\n },\n set: function (key, value) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) entry[1] = value;\n else this.entries.push([key, value]);\n },\n 'delete': function (key) {\n var index = findIndex(this.entries, function (it) {\n return it[0] === key;\n });\n if (~index) splice(this.entries, index, 1);\n return !!~index;\n }\n};\n\nvar collectionWeak$1 = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance(that, Prototype);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n id: id++,\n frozen: undefined\n });\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var data = getWeakData(anObject(key), true);\n if (data === true) uncaughtFrozenStore(state).set(key, value);\n else data[state.id] = value;\n return that;\n };\n\n defineBuiltIns$1(Prototype, {\n // `{ WeakMap, WeakSet }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-weakmap.prototype.delete\n // https://tc39.es/ecma262/#sec-weakset.prototype.delete\n 'delete': function (key) {\n var state = getInternalState(this);\n if (!isObject$1(key)) return false;\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state)['delete'](key);\n return data && hasOwn(data, state.id) && delete data[state.id];\n },\n // `{ WeakMap, WeakSet }.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-weakmap.prototype.has\n // https://tc39.es/ecma262/#sec-weakset.prototype.has\n has: function has(key) {\n var state = getInternalState(this);\n if (!isObject$1(key)) return false;\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state).has(key);\n return data && hasOwn(data, state.id);\n }\n });\n\n defineBuiltIns$1(Prototype, IS_MAP ? {\n // `WeakMap.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-weakmap.prototype.get\n get: function get(key) {\n var state = getInternalState(this);\n if (isObject$1(key)) {\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state).get(key);\n return data ? data[state.id] : undefined;\n }\n },\n // `WeakMap.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-weakmap.prototype.set\n set: function set(key, value) {\n return define(this, key, value);\n }\n } : {\n // `WeakSet.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-weakset.prototype.add\n add: function add(value) {\n return define(this, value, true);\n }\n });\n\n return Constructor;\n }\n};\n\nvar FREEZING = freezing;\nvar global$1 = global$q;\nvar uncurryThis = functionUncurryThis;\nvar defineBuiltIns = defineBuiltIns$3;\nvar InternalMetadataModule = internalMetadataExports;\nvar collection = collection$3;\nvar collectionWeak = collectionWeak$1;\nvar isObject = isObject$m;\nvar enforceInternalState = internalState.enforce;\nvar fails = fails$z;\nvar NATIVE_WEAK_MAP = weakMapBasicDetection;\n\nvar $Object = Object;\n// eslint-disable-next-line es/no-array-isarray -- safe\nvar isArray = Array.isArray;\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar isExtensible = $Object.isExtensible;\n// eslint-disable-next-line es/no-object-isfrozen -- safe\nvar isFrozen = $Object.isFrozen;\n// eslint-disable-next-line es/no-object-issealed -- safe\nvar isSealed = $Object.isSealed;\n// eslint-disable-next-line es/no-object-freeze -- safe\nvar freeze = $Object.freeze;\n// eslint-disable-next-line es/no-object-seal -- safe\nvar seal = $Object.seal;\n\nvar FROZEN = {};\nvar SEALED = {};\nvar IS_IE11 = !global$1.ActiveXObject && 'ActiveXObject' in global$1;\nvar InternalWeakMap;\n\nvar wrapper = function (init) {\n return function WeakMap() {\n return init(this, arguments.length ? arguments[0] : undefined);\n };\n};\n\n// `WeakMap` constructor\n// https://tc39.es/ecma262/#sec-weakmap-constructor\nvar $WeakMap = collection('WeakMap', wrapper, collectionWeak);\nvar WeakMapPrototype = $WeakMap.prototype;\nvar nativeSet = uncurryThis(WeakMapPrototype.set);\n\n// Chakra Edge bug: adding frozen arrays to WeakMap unfreeze them\nvar hasMSEdgeFreezingBug = function () {\n return FREEZING && fails(function () {\n var frozenArray = freeze([]);\n nativeSet(new $WeakMap(), frozenArray, 1);\n return !isFrozen(frozenArray);\n });\n};\n\n// IE11 WeakMap frozen keys fix\n// We can't use feature detection because it crash some old IE builds\n// https://github.com/zloirock/core-js/issues/485\nif (NATIVE_WEAK_MAP) if (IS_IE11) {\n InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);\n InternalMetadataModule.enable();\n var nativeDelete = uncurryThis(WeakMapPrototype['delete']);\n var nativeHas = uncurryThis(WeakMapPrototype.has);\n var nativeGet = uncurryThis(WeakMapPrototype.get);\n defineBuiltIns(WeakMapPrototype, {\n 'delete': function (key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeDelete(this, key) || state.frozen['delete'](key);\n } return nativeDelete(this, key);\n },\n has: function has(key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeHas(this, key) || state.frozen.has(key);\n } return nativeHas(this, key);\n },\n get: function get(key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);\n } return nativeGet(this, key);\n },\n set: function set(key, value) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);\n } else nativeSet(this, key, value);\n return this;\n }\n });\n// Chakra Edge frozen keys fix\n} else if (hasMSEdgeFreezingBug()) {\n defineBuiltIns(WeakMapPrototype, {\n set: function set(key, value) {\n var arrayIntegrityLevel;\n if (isArray(key)) {\n if (isFrozen(key)) arrayIntegrityLevel = FROZEN;\n else if (isSealed(key)) arrayIntegrityLevel = SEALED;\n }\n nativeSet(this, key, value);\n if (arrayIntegrityLevel == FROZEN) freeze(key);\n if (arrayIntegrityLevel == SEALED) seal(key);\n return this;\n }\n });\n}\n\nvar path = path$z;\n\nvar weakMap$1 = path.WeakMap;\n\nvar parent$1 = weakMap$1;\n\n\nvar weakMap = parent$1;\n\n(function (module) {\n\tmodule.exports = weakMap;\n} (weakMap$2));\n\nvar _WeakMap = /*@__PURE__*/getDefaultExportFromCjs(weakMapExports);\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nfunction __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\n\nfunction _createForOfIteratorHelper$3(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray$3(o, minLen) { var _context2; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray$3(o, minLen); var n = _sliceInstanceProperty(_context2 = Object.prototype.toString.call(o)).call(_context2, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen); }\nfunction _arrayLikeToArray$3(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nvar _SingleTypeSelectionAccumulator_previousSelection, _SingleTypeSelectionAccumulator_selection, _SelectionAccumulator_nodes, _SelectionAccumulator_edges, _SelectionAccumulator_commitHandler;\n/**\r\n * @param prev\r\n * @param next\r\n */\nfunction diffSets(prev, next) {\n var diff = new _Set();\n var _iterator = _createForOfIteratorHelper$3(next),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n if (!prev.has(item)) {\n diff.add(item);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return diff;\n}\nvar SingleTypeSelectionAccumulator = /*#__PURE__*/function () {\n function SingleTypeSelectionAccumulator() {\n _classCallCheck(this, SingleTypeSelectionAccumulator);\n _SingleTypeSelectionAccumulator_previousSelection.set(this, new _Set());\n _SingleTypeSelectionAccumulator_selection.set(this, new _Set());\n }\n _createClass(SingleTypeSelectionAccumulator, [{\n key: \"size\",\n get: function get() {\n return __classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_selection, \"f\").size;\n }\n }, {\n key: \"add\",\n value: function add() {\n for (var _len = arguments.length, items = new Array(_len), _key = 0; _key < _len; _key++) {\n items[_key] = arguments[_key];\n }\n for (var _i = 0, _items = items; _i < _items.length; _i++) {\n var item = _items[_i];\n __classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_selection, \"f\").add(item);\n }\n }\n }, {\n key: \"delete\",\n value: function _delete() {\n for (var _len2 = arguments.length, items = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n items[_key2] = arguments[_key2];\n }\n for (var _i2 = 0, _items2 = items; _i2 < _items2.length; _i2++) {\n var item = _items2[_i2];\n __classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_selection, \"f\").delete(item);\n }\n }\n }, {\n key: \"clear\",\n value: function clear() {\n __classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_selection, \"f\").clear();\n }\n }, {\n key: \"getSelection\",\n value: function getSelection() {\n return _toConsumableArray(__classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_selection, \"f\"));\n }\n }, {\n key: \"getChanges\",\n value: function getChanges() {\n return {\n added: _toConsumableArray(diffSets(__classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_previousSelection, \"f\"), __classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_selection, \"f\"))),\n deleted: _toConsumableArray(diffSets(__classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_selection, \"f\"), __classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_previousSelection, \"f\"))),\n previous: _toConsumableArray(new _Set(__classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_previousSelection, \"f\"))),\n current: _toConsumableArray(new _Set(__classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_selection, \"f\")))\n };\n }\n }, {\n key: \"commit\",\n value: function commit() {\n var changes = this.getChanges();\n __classPrivateFieldSet(this, _SingleTypeSelectionAccumulator_previousSelection, __classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_selection, \"f\"), \"f\");\n __classPrivateFieldSet(this, _SingleTypeSelectionAccumulator_selection, new _Set(__classPrivateFieldGet(this, _SingleTypeSelectionAccumulator_previousSelection, \"f\")), \"f\");\n var _iterator2 = _createForOfIteratorHelper$3(changes.added),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var item = _step2.value;\n item.select();\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n var _iterator3 = _createForOfIteratorHelper$3(changes.deleted),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var _item = _step3.value;\n _item.unselect();\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n return changes;\n }\n }]);\n return SingleTypeSelectionAccumulator;\n}();\n_SingleTypeSelectionAccumulator_previousSelection = new _WeakMap(), _SingleTypeSelectionAccumulator_selection = new _WeakMap();\nvar SelectionAccumulator = /*#__PURE__*/function () {\n function SelectionAccumulator() {\n var commitHandler = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {};\n _classCallCheck(this, SelectionAccumulator);\n _SelectionAccumulator_nodes.set(this, new SingleTypeSelectionAccumulator());\n _SelectionAccumulator_edges.set(this, new SingleTypeSelectionAccumulator());\n _SelectionAccumulator_commitHandler.set(this, void 0);\n __classPrivateFieldSet(this, _SelectionAccumulator_commitHandler, commitHandler, \"f\");\n }\n _createClass(SelectionAccumulator, [{\n key: \"sizeNodes\",\n get: function get() {\n return __classPrivateFieldGet(this, _SelectionAccumulator_nodes, \"f\").size;\n }\n }, {\n key: \"sizeEdges\",\n get: function get() {\n return __classPrivateFieldGet(this, _SelectionAccumulator_edges, \"f\").size;\n }\n }, {\n key: \"getNodes\",\n value: function getNodes() {\n return __classPrivateFieldGet(this, _SelectionAccumulator_nodes, \"f\").getSelection();\n }\n }, {\n key: \"getEdges\",\n value: function getEdges() {\n return __classPrivateFieldGet(this, _SelectionAccumulator_edges, \"f\").getSelection();\n }\n }, {\n key: \"addNodes\",\n value: function addNodes() {\n var _classPrivateFieldGe;\n (_classPrivateFieldGe = __classPrivateFieldGet(this, _SelectionAccumulator_nodes, \"f\")).add.apply(_classPrivateFieldGe, arguments);\n }\n }, {\n key: \"addEdges\",\n value: function addEdges() {\n var _classPrivateFieldGe2;\n (_classPrivateFieldGe2 = __classPrivateFieldGet(this, _SelectionAccumulator_edges, \"f\")).add.apply(_classPrivateFieldGe2, arguments);\n }\n }, {\n key: \"deleteNodes\",\n value: function deleteNodes(node) {\n __classPrivateFieldGet(this, _SelectionAccumulator_nodes, \"f\").delete(node);\n }\n }, {\n key: \"deleteEdges\",\n value: function deleteEdges(edge) {\n __classPrivateFieldGet(this, _SelectionAccumulator_edges, \"f\").delete(edge);\n }\n }, {\n key: \"clear\",\n value: function clear() {\n __classPrivateFieldGet(this, _SelectionAccumulator_nodes, \"f\").clear();\n __classPrivateFieldGet(this, _SelectionAccumulator_edges, \"f\").clear();\n }\n }, {\n key: \"commit\",\n value: function commit() {\n var _classPrivateFieldGe3, _context;\n var summary = {\n nodes: __classPrivateFieldGet(this, _SelectionAccumulator_nodes, \"f\").commit(),\n edges: __classPrivateFieldGet(this, _SelectionAccumulator_edges, \"f\").commit()\n };\n for (var _len3 = arguments.length, rest = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n rest[_key3] = arguments[_key3];\n }\n (_classPrivateFieldGe3 = __classPrivateFieldGet(this, _SelectionAccumulator_commitHandler, \"f\")).call.apply(_classPrivateFieldGe3, _concatInstanceProperty(_context = [this, summary]).call(_context, rest));\n return summary;\n }\n }]);\n return SelectionAccumulator;\n}();\n_SelectionAccumulator_nodes = new _WeakMap(), _SelectionAccumulator_edges = new _WeakMap(), _SelectionAccumulator_commitHandler = new _WeakMap();\n\nfunction _createForOfIteratorHelper$2(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray$2(o, minLen) { var _context3; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray$2(o, minLen); var n = _sliceInstanceProperty(_context3 = Object.prototype.toString.call(o)).call(_context3, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }\nfunction _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n/**\n * The handler for selections\n */\nvar SelectionHandler = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {Canvas} canvas\n */\n function SelectionHandler(body, canvas) {\n var _this = this;\n _classCallCheck(this, SelectionHandler);\n this.body = body;\n this.canvas = canvas;\n // TODO: Consider firing an event on any change to the selection, not\n // only those caused by clicks and taps. It would be easy to implement\n // now and (at least to me) it seems like something that could be\n // quite useful.\n this._selectionAccumulator = new SelectionAccumulator();\n this.hoverObj = {\n nodes: {},\n edges: {}\n };\n this.options = {};\n this.defaultOptions = {\n multiselect: false,\n selectable: true,\n selectConnectedEdges: true,\n hoverConnectedEdges: true\n };\n _Object$assign(this.options, this.defaultOptions);\n this.body.emitter.on(\"_dataChanged\", function () {\n _this.updateSelection();\n });\n }\n\n /**\n *\n * @param {object} [options]\n */\n _createClass(SelectionHandler, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options !== undefined) {\n var fields = [\"multiselect\", \"hoverConnectedEdges\", \"selectable\", \"selectConnectedEdges\"];\n selectiveDeepExtend(fields, this.options, options);\n }\n }\n\n /**\n * handles the selection part of the tap;\n *\n * @param {{x: number, y: number}} pointer\n * @returns {boolean}\n */\n }, {\n key: \"selectOnPoint\",\n value: function selectOnPoint(pointer) {\n var selected = false;\n if (this.options.selectable === true) {\n var obj = this.getNodeAt(pointer) || this.getEdgeAt(pointer);\n\n // unselect after getting the objects in order to restore width and height.\n this.unselectAll();\n if (obj !== undefined) {\n selected = this.selectObject(obj);\n }\n this.body.emitter.emit(\"_requestRedraw\");\n }\n return selected;\n }\n\n /**\n *\n * @param {{x: number, y: number}} pointer\n * @returns {boolean}\n */\n }, {\n key: \"selectAdditionalOnPoint\",\n value: function selectAdditionalOnPoint(pointer) {\n var selectionChanged = false;\n if (this.options.selectable === true) {\n var obj = this.getNodeAt(pointer) || this.getEdgeAt(pointer);\n if (obj !== undefined) {\n selectionChanged = true;\n if (obj.isSelected() === true) {\n this.deselectObject(obj);\n } else {\n this.selectObject(obj);\n }\n this.body.emitter.emit(\"_requestRedraw\");\n }\n }\n return selectionChanged;\n }\n\n /**\n * Create an object containing the standard fields for an event.\n *\n * @param {Event} event\n * @param {{x: number, y: number}} pointer Object with the x and y screen coordinates of the mouse\n * @returns {{}}\n * @private\n */\n }, {\n key: \"_initBaseEvent\",\n value: function _initBaseEvent(event, pointer) {\n var properties = {};\n properties[\"pointer\"] = {\n DOM: {\n x: pointer.x,\n y: pointer.y\n },\n canvas: this.canvas.DOMtoCanvas(pointer)\n };\n properties[\"event\"] = event;\n return properties;\n }\n\n /**\n * Generate an event which the user can catch.\n *\n * This adds some extra data to the event with respect to cursor position and\n * selected nodes and edges.\n *\n * @param {string} eventType Name of event to send\n * @param {Event} event\n * @param {{x: number, y: number}} pointer Object with the x and y screen coordinates of the mouse\n * @param {object | undefined} oldSelection If present, selection state before event occured\n * @param {boolean|undefined} [emptySelection=false] Indicate if selection data should be passed\n */\n }, {\n key: \"generateClickEvent\",\n value: function generateClickEvent(eventType, event, pointer, oldSelection) {\n var emptySelection = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var properties = this._initBaseEvent(event, pointer);\n if (emptySelection === true) {\n properties.nodes = [];\n properties.edges = [];\n } else {\n var tmp = this.getSelection();\n properties.nodes = tmp.nodes;\n properties.edges = tmp.edges;\n }\n if (oldSelection !== undefined) {\n properties[\"previousSelection\"] = oldSelection;\n }\n if (eventType == \"click\") {\n // For the time being, restrict this functionality to\n // just the click event.\n properties.items = this.getClickedItems(pointer);\n }\n if (event.controlEdge !== undefined) {\n properties.controlEdge = event.controlEdge;\n }\n this.body.emitter.emit(eventType, properties);\n }\n\n /**\n *\n * @param {object} obj\n * @param {boolean} [highlightEdges=this.options.selectConnectedEdges]\n * @returns {boolean}\n */\n }, {\n key: \"selectObject\",\n value: function selectObject(obj) {\n var highlightEdges = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.options.selectConnectedEdges;\n if (obj !== undefined) {\n if (obj instanceof Node) {\n if (highlightEdges === true) {\n var _this$_selectionAccum;\n (_this$_selectionAccum = this._selectionAccumulator).addEdges.apply(_this$_selectionAccum, _toConsumableArray(obj.edges));\n }\n this._selectionAccumulator.addNodes(obj);\n } else {\n this._selectionAccumulator.addEdges(obj);\n }\n return true;\n }\n return false;\n }\n\n /**\n *\n * @param {object} obj\n */\n }, {\n key: \"deselectObject\",\n value: function deselectObject(obj) {\n if (obj.isSelected() === true) {\n obj.selected = false;\n this._removeFromSelection(obj);\n }\n }\n\n /**\n * retrieve all nodes overlapping with given object\n *\n * @param {object} object An object with parameters left, top, right, bottom\n * @returns {number[]} An array with id's of the overlapping nodes\n * @private\n */\n }, {\n key: \"_getAllNodesOverlappingWith\",\n value: function _getAllNodesOverlappingWith(object) {\n var overlappingNodes = [];\n var nodes = this.body.nodes;\n for (var i = 0; i < this.body.nodeIndices.length; i++) {\n var nodeId = this.body.nodeIndices[i];\n if (nodes[nodeId].isOverlappingWith(object)) {\n overlappingNodes.push(nodeId);\n }\n }\n return overlappingNodes;\n }\n\n /**\n * Return a position object in canvasspace from a single point in screenspace\n *\n * @param {{x: number, y: number}} pointer\n * @returns {{left: number, top: number, right: number, bottom: number}}\n * @private\n */\n }, {\n key: \"_pointerToPositionObject\",\n value: function _pointerToPositionObject(pointer) {\n var canvasPos = this.canvas.DOMtoCanvas(pointer);\n return {\n left: canvasPos.x - 1,\n top: canvasPos.y + 1,\n right: canvasPos.x + 1,\n bottom: canvasPos.y - 1\n };\n }\n\n /**\n * Get the top node at the passed point (like a click)\n *\n * @param {{x: number, y: number}} pointer\n * @param {boolean} [returnNode=true]\n * @returns {Node | undefined} node\n */\n }, {\n key: \"getNodeAt\",\n value: function getNodeAt(pointer) {\n var returnNode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n // we first check if this is an navigation controls element\n var positionObject = this._pointerToPositionObject(pointer);\n var overlappingNodes = this._getAllNodesOverlappingWith(positionObject);\n // if there are overlapping nodes, select the last one, this is the\n // one which is drawn on top of the others\n if (overlappingNodes.length > 0) {\n if (returnNode === true) {\n return this.body.nodes[overlappingNodes[overlappingNodes.length - 1]];\n } else {\n return overlappingNodes[overlappingNodes.length - 1];\n }\n } else {\n return undefined;\n }\n }\n\n /**\n * retrieve all edges overlapping with given object, selector is around center\n *\n * @param {object} object An object with parameters left, top, right, bottom\n * @param {number[]} overlappingEdges An array with id's of the overlapping nodes\n * @private\n */\n }, {\n key: \"_getEdgesOverlappingWith\",\n value: function _getEdgesOverlappingWith(object, overlappingEdges) {\n var edges = this.body.edges;\n for (var i = 0; i < this.body.edgeIndices.length; i++) {\n var edgeId = this.body.edgeIndices[i];\n if (edges[edgeId].isOverlappingWith(object)) {\n overlappingEdges.push(edgeId);\n }\n }\n }\n\n /**\n * retrieve all nodes overlapping with given object\n *\n * @param {object} object An object with parameters left, top, right, bottom\n * @returns {number[]} An array with id's of the overlapping nodes\n * @private\n */\n }, {\n key: \"_getAllEdgesOverlappingWith\",\n value: function _getAllEdgesOverlappingWith(object) {\n var overlappingEdges = [];\n this._getEdgesOverlappingWith(object, overlappingEdges);\n return overlappingEdges;\n }\n\n /**\n * Get the edges nearest to the passed point (like a click)\n *\n * @param {{x: number, y: number}} pointer\n * @param {boolean} [returnEdge=true]\n * @returns {Edge | undefined} node\n */\n }, {\n key: \"getEdgeAt\",\n value: function getEdgeAt(pointer) {\n var returnEdge = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n // Iterate over edges, pick closest within 10\n var canvasPos = this.canvas.DOMtoCanvas(pointer);\n var mindist = 10;\n var overlappingEdge = null;\n var edges = this.body.edges;\n for (var i = 0; i < this.body.edgeIndices.length; i++) {\n var edgeId = this.body.edgeIndices[i];\n var edge = edges[edgeId];\n if (edge.connected) {\n var xFrom = edge.from.x;\n var yFrom = edge.from.y;\n var xTo = edge.to.x;\n var yTo = edge.to.y;\n var dist = edge.edgeType.getDistanceToEdge(xFrom, yFrom, xTo, yTo, canvasPos.x, canvasPos.y);\n if (dist < mindist) {\n overlappingEdge = edgeId;\n mindist = dist;\n }\n }\n }\n if (overlappingEdge !== null) {\n if (returnEdge === true) {\n return this.body.edges[overlappingEdge];\n } else {\n return overlappingEdge;\n }\n } else {\n return undefined;\n }\n }\n\n /**\n * Add object to the selection array.\n *\n * @param {object} obj\n * @private\n */\n }, {\n key: \"_addToHover\",\n value: function _addToHover(obj) {\n if (obj instanceof Node) {\n this.hoverObj.nodes[obj.id] = obj;\n } else {\n this.hoverObj.edges[obj.id] = obj;\n }\n }\n\n /**\n * Remove a single option from selection.\n *\n * @param {object} obj\n * @private\n */\n }, {\n key: \"_removeFromSelection\",\n value: function _removeFromSelection(obj) {\n if (obj instanceof Node) {\n var _this$_selectionAccum2;\n this._selectionAccumulator.deleteNodes(obj);\n (_this$_selectionAccum2 = this._selectionAccumulator).deleteEdges.apply(_this$_selectionAccum2, _toConsumableArray(obj.edges));\n } else {\n this._selectionAccumulator.deleteEdges(obj);\n }\n }\n\n /**\n * Unselect all nodes and edges.\n */\n }, {\n key: \"unselectAll\",\n value: function unselectAll() {\n this._selectionAccumulator.clear();\n }\n\n /**\n * return the number of selected nodes\n *\n * @returns {number}\n */\n }, {\n key: \"getSelectedNodeCount\",\n value: function getSelectedNodeCount() {\n return this._selectionAccumulator.sizeNodes;\n }\n\n /**\n * return the number of selected edges\n *\n * @returns {number}\n */\n }, {\n key: \"getSelectedEdgeCount\",\n value: function getSelectedEdgeCount() {\n return this._selectionAccumulator.sizeEdges;\n }\n\n /**\n * select the edges connected to the node that is being selected\n *\n * @param {Node} node\n * @private\n */\n }, {\n key: \"_hoverConnectedEdges\",\n value: function _hoverConnectedEdges(node) {\n for (var i = 0; i < node.edges.length; i++) {\n var edge = node.edges[i];\n edge.hover = true;\n this._addToHover(edge);\n }\n }\n\n /**\n * Remove the highlight from a node or edge, in response to mouse movement\n *\n * @param {Event} event\n * @param {{x: number, y: number}} pointer object with the x and y screen coordinates of the mouse\n * @param {Node|vis.Edge} object\n * @private\n */\n }, {\n key: \"emitBlurEvent\",\n value: function emitBlurEvent(event, pointer, object) {\n var properties = this._initBaseEvent(event, pointer);\n if (object.hover === true) {\n object.hover = false;\n if (object instanceof Node) {\n properties.node = object.id;\n this.body.emitter.emit(\"blurNode\", properties);\n } else {\n properties.edge = object.id;\n this.body.emitter.emit(\"blurEdge\", properties);\n }\n }\n }\n\n /**\n * Create the highlight for a node or edge, in response to mouse movement\n *\n * @param {Event} event\n * @param {{x: number, y: number}} pointer object with the x and y screen coordinates of the mouse\n * @param {Node|vis.Edge} object\n * @returns {boolean} hoverChanged\n * @private\n */\n }, {\n key: \"emitHoverEvent\",\n value: function emitHoverEvent(event, pointer, object) {\n var properties = this._initBaseEvent(event, pointer);\n var hoverChanged = false;\n if (object.hover === false) {\n object.hover = true;\n this._addToHover(object);\n hoverChanged = true;\n if (object instanceof Node) {\n properties.node = object.id;\n this.body.emitter.emit(\"hoverNode\", properties);\n } else {\n properties.edge = object.id;\n this.body.emitter.emit(\"hoverEdge\", properties);\n }\n }\n return hoverChanged;\n }\n\n /**\n * Perform actions in response to a mouse movement.\n *\n * @param {Event} event\n * @param {{x: number, y: number}} pointer | object with the x and y screen coordinates of the mouse\n */\n }, {\n key: \"hoverObject\",\n value: function hoverObject(event, pointer) {\n var object = this.getNodeAt(pointer);\n if (object === undefined) {\n object = this.getEdgeAt(pointer);\n }\n var hoverChanged = false;\n // remove all node hover highlights\n for (var nodeId in this.hoverObj.nodes) {\n if (Object.prototype.hasOwnProperty.call(this.hoverObj.nodes, nodeId)) {\n if (object === undefined || object instanceof Node && object.id != nodeId || object instanceof Edge) {\n this.emitBlurEvent(event, pointer, this.hoverObj.nodes[nodeId]);\n delete this.hoverObj.nodes[nodeId];\n hoverChanged = true;\n }\n }\n }\n\n // removing all edge hover highlights\n for (var edgeId in this.hoverObj.edges) {\n if (Object.prototype.hasOwnProperty.call(this.hoverObj.edges, edgeId)) {\n // if the hover has been changed here it means that the node has been hovered over or off\n // we then do not use the emitBlurEvent method here.\n if (hoverChanged === true) {\n this.hoverObj.edges[edgeId].hover = false;\n delete this.hoverObj.edges[edgeId];\n }\n // if the blur remains the same and the object is undefined (mouse off) or another\n // edge has been hovered, or another node has been hovered we blur the edge.\n else if (object === undefined || object instanceof Edge && object.id != edgeId || object instanceof Node && !object.hover) {\n this.emitBlurEvent(event, pointer, this.hoverObj.edges[edgeId]);\n delete this.hoverObj.edges[edgeId];\n hoverChanged = true;\n }\n }\n }\n if (object !== undefined) {\n var hoveredEdgesCount = _Object$keys(this.hoverObj.edges).length;\n var hoveredNodesCount = _Object$keys(this.hoverObj.nodes).length;\n var newOnlyHoveredEdge = object instanceof Edge && hoveredEdgesCount === 0 && hoveredNodesCount === 0;\n var newOnlyHoveredNode = object instanceof Node && hoveredEdgesCount === 0 && hoveredNodesCount === 0;\n if (hoverChanged || newOnlyHoveredEdge || newOnlyHoveredNode) {\n hoverChanged = this.emitHoverEvent(event, pointer, object);\n }\n if (object instanceof Node && this.options.hoverConnectedEdges === true) {\n this._hoverConnectedEdges(object);\n }\n }\n if (hoverChanged === true) {\n this.body.emitter.emit(\"_requestRedraw\");\n }\n }\n\n /**\n * Commit the selection changes but don't emit any events.\n */\n }, {\n key: \"commitWithoutEmitting\",\n value: function commitWithoutEmitting() {\n this._selectionAccumulator.commit();\n }\n\n /**\n * Select and deselect nodes depending current selection change.\n *\n * For changing nodes, select/deselect events are fired.\n *\n * NOTE: For a given edge, if one connecting node is deselected and with the\n * same click the other node is selected, no events for the edge will fire. It\n * was selected and it will remain selected.\n *\n * @param {{x: number, y: number}} pointer - The x and y coordinates of the\n * click, tap, dragend… that triggered this.\n * @param {UIEvent} event - The event that triggered this.\n */\n }, {\n key: \"commitAndEmit\",\n value: function commitAndEmit(pointer, event) {\n var selected = false;\n var selectionChanges = this._selectionAccumulator.commit();\n var previousSelection = {\n nodes: selectionChanges.nodes.previous,\n edges: selectionChanges.edges.previous\n };\n if (selectionChanges.edges.deleted.length > 0) {\n this.generateClickEvent(\"deselectEdge\", event, pointer, previousSelection);\n selected = true;\n }\n if (selectionChanges.nodes.deleted.length > 0) {\n this.generateClickEvent(\"deselectNode\", event, pointer, previousSelection);\n selected = true;\n }\n if (selectionChanges.nodes.added.length > 0) {\n this.generateClickEvent(\"selectNode\", event, pointer);\n selected = true;\n }\n if (selectionChanges.edges.added.length > 0) {\n this.generateClickEvent(\"selectEdge\", event, pointer);\n selected = true;\n }\n\n // fire the select event if anything has been selected or deselected\n if (selected === true) {\n // select or unselect\n this.generateClickEvent(\"select\", event, pointer);\n }\n }\n\n /**\n * Retrieve the currently selected node and edge ids.\n *\n * @returns {{nodes: Array., edges: Array.}} Arrays with the\n * ids of the selected nodes and edges.\n */\n }, {\n key: \"getSelection\",\n value: function getSelection() {\n return {\n nodes: this.getSelectedNodeIds(),\n edges: this.getSelectedEdgeIds()\n };\n }\n\n /**\n * Retrieve the currently selected nodes.\n *\n * @returns {Array} An array with selected nodes.\n */\n }, {\n key: \"getSelectedNodes\",\n value: function getSelectedNodes() {\n return this._selectionAccumulator.getNodes();\n }\n\n /**\n * Retrieve the currently selected edges.\n *\n * @returns {Array} An array with selected edges.\n */\n }, {\n key: \"getSelectedEdges\",\n value: function getSelectedEdges() {\n return this._selectionAccumulator.getEdges();\n }\n\n /**\n * Retrieve the currently selected node ids.\n *\n * @returns {Array} An array with the ids of the selected nodes.\n */\n }, {\n key: \"getSelectedNodeIds\",\n value: function getSelectedNodeIds() {\n var _context;\n return _mapInstanceProperty(_context = this._selectionAccumulator.getNodes()).call(_context, function (node) {\n return node.id;\n });\n }\n\n /**\n * Retrieve the currently selected edge ids.\n *\n * @returns {Array} An array with the ids of the selected edges.\n */\n }, {\n key: \"getSelectedEdgeIds\",\n value: function getSelectedEdgeIds() {\n var _context2;\n return _mapInstanceProperty(_context2 = this._selectionAccumulator.getEdges()).call(_context2, function (edge) {\n return edge.id;\n });\n }\n\n /**\n * Updates the current selection\n *\n * @param {{nodes: Array., edges: Array.}} selection\n * @param {object} options Options\n */\n }, {\n key: \"setSelection\",\n value: function setSelection(selection) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n if (!selection || !selection.nodes && !selection.edges) {\n throw new TypeError(\"Selection must be an object with nodes and/or edges properties\");\n }\n\n // first unselect any selected node, if option is true or undefined\n if (options.unselectAll || options.unselectAll === undefined) {\n this.unselectAll();\n }\n if (selection.nodes) {\n var _iterator = _createForOfIteratorHelper$2(selection.nodes),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var id = _step.value;\n var node = this.body.nodes[id];\n if (!node) {\n throw new RangeError('Node with id \"' + id + '\" not found');\n }\n // don't select edges with it\n this.selectObject(node, options.highlightEdges);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n if (selection.edges) {\n var _iterator2 = _createForOfIteratorHelper$2(selection.edges),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var _id = _step2.value;\n var edge = this.body.edges[_id];\n if (!edge) {\n throw new RangeError('Edge with id \"' + _id + '\" not found');\n }\n this.selectObject(edge);\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n }\n this.body.emitter.emit(\"_requestRedraw\");\n this._selectionAccumulator.commit();\n }\n\n /**\n * select zero or more nodes with the option to highlight edges\n *\n * @param {number[] | string[]} selection An array with the ids of the\n * selected nodes.\n * @param {boolean} [highlightEdges]\n */\n }, {\n key: \"selectNodes\",\n value: function selectNodes(selection) {\n var highlightEdges = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (!selection || selection.length === undefined) throw \"Selection must be an array with ids\";\n this.setSelection({\n nodes: selection\n }, {\n highlightEdges: highlightEdges\n });\n }\n\n /**\n * select zero or more edges\n *\n * @param {number[] | string[]} selection An array with the ids of the\n * selected nodes.\n */\n }, {\n key: \"selectEdges\",\n value: function selectEdges(selection) {\n if (!selection || selection.length === undefined) throw \"Selection must be an array with ids\";\n this.setSelection({\n edges: selection\n });\n }\n\n /**\n * Validate the selection: remove ids of nodes which no longer exist\n *\n * @private\n */\n }, {\n key: \"updateSelection\",\n value: function updateSelection() {\n for (var node in this._selectionAccumulator.getNodes()) {\n if (!Object.prototype.hasOwnProperty.call(this.body.nodes, node.id)) {\n this._selectionAccumulator.deleteNodes(node);\n }\n }\n for (var edge in this._selectionAccumulator.getEdges()) {\n if (!Object.prototype.hasOwnProperty.call(this.body.edges, edge.id)) {\n this._selectionAccumulator.deleteEdges(edge);\n }\n }\n }\n\n /**\n * Determine all the visual elements clicked which are on the given point.\n *\n * All elements are returned; this includes nodes, edges and their labels.\n * The order returned is from highest to lowest, i.e. element 0 of the return\n * value is the topmost item clicked on.\n *\n * The return value consists of an array of the following possible elements:\n *\n * - `{nodeId:number}` - node with given id clicked on\n * - `{nodeId:number, labelId:0}` - label of node with given id clicked on\n * - `{edgeId:number}` - edge with given id clicked on\n * - `{edge:number, labelId:0}` - label of edge with given id clicked on\n *\n * ## NOTES\n *\n * - Currently, there is only one label associated with a node or an edge,\n * but this is expected to change somewhere in the future.\n * - Since there is no z-indexing yet, it is not really possible to set the nodes and\n * edges in the correct order. For the time being, nodes come first.\n *\n * @param {point} pointer mouse position in screen coordinates\n * @returns {Array.}\n * @private\n */\n }, {\n key: \"getClickedItems\",\n value: function getClickedItems(pointer) {\n var point = this.canvas.DOMtoCanvas(pointer);\n var items = [];\n\n // Note reverse order; we want the topmost clicked items to be first in the array\n // Also note that selected nodes are disregarded here; these normally display on top\n var nodeIndices = this.body.nodeIndices;\n var nodes = this.body.nodes;\n for (var i = nodeIndices.length - 1; i >= 0; i--) {\n var node = nodes[nodeIndices[i]];\n var ret = node.getItemsOnPoint(point);\n items.push.apply(items, ret); // Append the return value to the running list.\n }\n\n var edgeIndices = this.body.edgeIndices;\n var edges = this.body.edges;\n for (var _i = edgeIndices.length - 1; _i >= 0; _i--) {\n var edge = edges[edgeIndices[_i]];\n var _ret = edge.getItemsOnPoint(point);\n items.push.apply(items, _ret); // Append the return value to the running list.\n }\n\n return items;\n }\n }]);\n return SelectionHandler;\n}();\n\nvar timsortExports = {};\nvar timsort$1 = {\n get exports(){ return timsortExports; },\n set exports(v){ timsortExports = v; },\n};\n\nvar timsort = {};\n\n/****\n * The MIT License\n *\n * Copyright (c) 2015 Marco Ziccardi\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n ****/\n\n(function (exports) {\n\t(function (global, factory) {\n\t {\n\t factory(exports);\n\t }\n\t})(commonjsGlobal, function (exports) {\n\n\t exports.__esModule = true;\n\t exports.sort = sort;\n\n\t function _classCallCheck(instance, Constructor) {\n\t if (!(instance instanceof Constructor)) {\n\t throw new TypeError('Cannot call a class as a function');\n\t }\n\t }\n\n\t var DEFAULT_MIN_MERGE = 32;\n\n\t var DEFAULT_MIN_GALLOPING = 7;\n\n\t var DEFAULT_TMP_STORAGE_LENGTH = 256;\n\n\t var POWERS_OF_TEN = [1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9];\n\n\t function log10(x) {\n\t if (x < 1e5) {\n\t if (x < 1e2) {\n\t return x < 1e1 ? 0 : 1;\n\t }\n\n\t if (x < 1e4) {\n\t return x < 1e3 ? 2 : 3;\n\t }\n\n\t return 4;\n\t }\n\n\t if (x < 1e7) {\n\t return x < 1e6 ? 5 : 6;\n\t }\n\n\t if (x < 1e9) {\n\t return x < 1e8 ? 7 : 8;\n\t }\n\n\t return 9;\n\t }\n\n\t function alphabeticalCompare(a, b) {\n\t if (a === b) {\n\t return 0;\n\t }\n\n\t if (~ ~a === a && ~ ~b === b) {\n\t if (a === 0 || b === 0) {\n\t return a < b ? -1 : 1;\n\t }\n\n\t if (a < 0 || b < 0) {\n\t if (b >= 0) {\n\t return -1;\n\t }\n\n\t if (a >= 0) {\n\t return 1;\n\t }\n\n\t a = -a;\n\t b = -b;\n\t }\n\n\t var al = log10(a);\n\t var bl = log10(b);\n\n\t var t = 0;\n\n\t if (al < bl) {\n\t a *= POWERS_OF_TEN[bl - al - 1];\n\t b /= 10;\n\t t = -1;\n\t } else if (al > bl) {\n\t b *= POWERS_OF_TEN[al - bl - 1];\n\t a /= 10;\n\t t = 1;\n\t }\n\n\t if (a === b) {\n\t return t;\n\t }\n\n\t return a < b ? -1 : 1;\n\t }\n\n\t var aStr = String(a);\n\t var bStr = String(b);\n\n\t if (aStr === bStr) {\n\t return 0;\n\t }\n\n\t return aStr < bStr ? -1 : 1;\n\t }\n\n\t function minRunLength(n) {\n\t var r = 0;\n\n\t while (n >= DEFAULT_MIN_MERGE) {\n\t r |= n & 1;\n\t n >>= 1;\n\t }\n\n\t return n + r;\n\t }\n\n\t function makeAscendingRun(array, lo, hi, compare) {\n\t var runHi = lo + 1;\n\n\t if (runHi === hi) {\n\t return 1;\n\t }\n\n\t if (compare(array[runHi++], array[lo]) < 0) {\n\t while (runHi < hi && compare(array[runHi], array[runHi - 1]) < 0) {\n\t runHi++;\n\t }\n\n\t reverseRun(array, lo, runHi);\n\t } else {\n\t while (runHi < hi && compare(array[runHi], array[runHi - 1]) >= 0) {\n\t runHi++;\n\t }\n\t }\n\n\t return runHi - lo;\n\t }\n\n\t function reverseRun(array, lo, hi) {\n\t hi--;\n\n\t while (lo < hi) {\n\t var t = array[lo];\n\t array[lo++] = array[hi];\n\t array[hi--] = t;\n\t }\n\t }\n\n\t function binaryInsertionSort(array, lo, hi, start, compare) {\n\t if (start === lo) {\n\t start++;\n\t }\n\n\t for (; start < hi; start++) {\n\t var pivot = array[start];\n\n\t var left = lo;\n\t var right = start;\n\n\t while (left < right) {\n\t var mid = left + right >>> 1;\n\n\t if (compare(pivot, array[mid]) < 0) {\n\t right = mid;\n\t } else {\n\t left = mid + 1;\n\t }\n\t }\n\n\t var n = start - left;\n\n\t switch (n) {\n\t case 3:\n\t array[left + 3] = array[left + 2];\n\n\t case 2:\n\t array[left + 2] = array[left + 1];\n\n\t case 1:\n\t array[left + 1] = array[left];\n\t break;\n\t default:\n\t while (n > 0) {\n\t array[left + n] = array[left + n - 1];\n\t n--;\n\t }\n\t }\n\n\t array[left] = pivot;\n\t }\n\t }\n\n\t function gallopLeft(value, array, start, length, hint, compare) {\n\t var lastOffset = 0;\n\t var maxOffset = 0;\n\t var offset = 1;\n\n\t if (compare(value, array[start + hint]) > 0) {\n\t maxOffset = length - hint;\n\n\t while (offset < maxOffset && compare(value, array[start + hint + offset]) > 0) {\n\t lastOffset = offset;\n\t offset = (offset << 1) + 1;\n\n\t if (offset <= 0) {\n\t offset = maxOffset;\n\t }\n\t }\n\n\t if (offset > maxOffset) {\n\t offset = maxOffset;\n\t }\n\n\t lastOffset += hint;\n\t offset += hint;\n\t } else {\n\t maxOffset = hint + 1;\n\t while (offset < maxOffset && compare(value, array[start + hint - offset]) <= 0) {\n\t lastOffset = offset;\n\t offset = (offset << 1) + 1;\n\n\t if (offset <= 0) {\n\t offset = maxOffset;\n\t }\n\t }\n\t if (offset > maxOffset) {\n\t offset = maxOffset;\n\t }\n\n\t var tmp = lastOffset;\n\t lastOffset = hint - offset;\n\t offset = hint - tmp;\n\t }\n\n\t lastOffset++;\n\t while (lastOffset < offset) {\n\t var m = lastOffset + (offset - lastOffset >>> 1);\n\n\t if (compare(value, array[start + m]) > 0) {\n\t lastOffset = m + 1;\n\t } else {\n\t offset = m;\n\t }\n\t }\n\t return offset;\n\t }\n\n\t function gallopRight(value, array, start, length, hint, compare) {\n\t var lastOffset = 0;\n\t var maxOffset = 0;\n\t var offset = 1;\n\n\t if (compare(value, array[start + hint]) < 0) {\n\t maxOffset = hint + 1;\n\n\t while (offset < maxOffset && compare(value, array[start + hint - offset]) < 0) {\n\t lastOffset = offset;\n\t offset = (offset << 1) + 1;\n\n\t if (offset <= 0) {\n\t offset = maxOffset;\n\t }\n\t }\n\n\t if (offset > maxOffset) {\n\t offset = maxOffset;\n\t }\n\n\t var tmp = lastOffset;\n\t lastOffset = hint - offset;\n\t offset = hint - tmp;\n\t } else {\n\t maxOffset = length - hint;\n\n\t while (offset < maxOffset && compare(value, array[start + hint + offset]) >= 0) {\n\t lastOffset = offset;\n\t offset = (offset << 1) + 1;\n\n\t if (offset <= 0) {\n\t offset = maxOffset;\n\t }\n\t }\n\n\t if (offset > maxOffset) {\n\t offset = maxOffset;\n\t }\n\n\t lastOffset += hint;\n\t offset += hint;\n\t }\n\n\t lastOffset++;\n\n\t while (lastOffset < offset) {\n\t var m = lastOffset + (offset - lastOffset >>> 1);\n\n\t if (compare(value, array[start + m]) < 0) {\n\t offset = m;\n\t } else {\n\t lastOffset = m + 1;\n\t }\n\t }\n\n\t return offset;\n\t }\n\n\t var TimSort = (function () {\n\t function TimSort(array, compare) {\n\t _classCallCheck(this, TimSort);\n\n\t this.array = null;\n\t this.compare = null;\n\t this.minGallop = DEFAULT_MIN_GALLOPING;\n\t this.length = 0;\n\t this.tmpStorageLength = DEFAULT_TMP_STORAGE_LENGTH;\n\t this.stackLength = 0;\n\t this.runStart = null;\n\t this.runLength = null;\n\t this.stackSize = 0;\n\n\t this.array = array;\n\t this.compare = compare;\n\n\t this.length = array.length;\n\n\t if (this.length < 2 * DEFAULT_TMP_STORAGE_LENGTH) {\n\t this.tmpStorageLength = this.length >>> 1;\n\t }\n\n\t this.tmp = new Array(this.tmpStorageLength);\n\n\t this.stackLength = this.length < 120 ? 5 : this.length < 1542 ? 10 : this.length < 119151 ? 19 : 40;\n\n\t this.runStart = new Array(this.stackLength);\n\t this.runLength = new Array(this.stackLength);\n\t }\n\n\t TimSort.prototype.pushRun = function pushRun(runStart, runLength) {\n\t this.runStart[this.stackSize] = runStart;\n\t this.runLength[this.stackSize] = runLength;\n\t this.stackSize += 1;\n\t };\n\n\t TimSort.prototype.mergeRuns = function mergeRuns() {\n\t while (this.stackSize > 1) {\n\t var n = this.stackSize - 2;\n\n\t if (n >= 1 && this.runLength[n - 1] <= this.runLength[n] + this.runLength[n + 1] || n >= 2 && this.runLength[n - 2] <= this.runLength[n] + this.runLength[n - 1]) {\n\n\t if (this.runLength[n - 1] < this.runLength[n + 1]) {\n\t n--;\n\t }\n\t } else if (this.runLength[n] > this.runLength[n + 1]) {\n\t break;\n\t }\n\t this.mergeAt(n);\n\t }\n\t };\n\n\t TimSort.prototype.forceMergeRuns = function forceMergeRuns() {\n\t while (this.stackSize > 1) {\n\t var n = this.stackSize - 2;\n\n\t if (n > 0 && this.runLength[n - 1] < this.runLength[n + 1]) {\n\t n--;\n\t }\n\n\t this.mergeAt(n);\n\t }\n\t };\n\n\t TimSort.prototype.mergeAt = function mergeAt(i) {\n\t var compare = this.compare;\n\t var array = this.array;\n\n\t var start1 = this.runStart[i];\n\t var length1 = this.runLength[i];\n\t var start2 = this.runStart[i + 1];\n\t var length2 = this.runLength[i + 1];\n\n\t this.runLength[i] = length1 + length2;\n\n\t if (i === this.stackSize - 3) {\n\t this.runStart[i + 1] = this.runStart[i + 2];\n\t this.runLength[i + 1] = this.runLength[i + 2];\n\t }\n\n\t this.stackSize--;\n\n\t var k = gallopRight(array[start2], array, start1, length1, 0, compare);\n\t start1 += k;\n\t length1 -= k;\n\n\t if (length1 === 0) {\n\t return;\n\t }\n\n\t length2 = gallopLeft(array[start1 + length1 - 1], array, start2, length2, length2 - 1, compare);\n\n\t if (length2 === 0) {\n\t return;\n\t }\n\n\t if (length1 <= length2) {\n\t this.mergeLow(start1, length1, start2, length2);\n\t } else {\n\t this.mergeHigh(start1, length1, start2, length2);\n\t }\n\t };\n\n\t TimSort.prototype.mergeLow = function mergeLow(start1, length1, start2, length2) {\n\n\t var compare = this.compare;\n\t var array = this.array;\n\t var tmp = this.tmp;\n\t var i = 0;\n\n\t for (i = 0; i < length1; i++) {\n\t tmp[i] = array[start1 + i];\n\t }\n\n\t var cursor1 = 0;\n\t var cursor2 = start2;\n\t var dest = start1;\n\n\t array[dest++] = array[cursor2++];\n\n\t if (--length2 === 0) {\n\t for (i = 0; i < length1; i++) {\n\t array[dest + i] = tmp[cursor1 + i];\n\t }\n\t return;\n\t }\n\n\t if (length1 === 1) {\n\t for (i = 0; i < length2; i++) {\n\t array[dest + i] = array[cursor2 + i];\n\t }\n\t array[dest + length2] = tmp[cursor1];\n\t return;\n\t }\n\n\t var minGallop = this.minGallop;\n\n\t while (true) {\n\t var count1 = 0;\n\t var count2 = 0;\n\t var exit = false;\n\n\t do {\n\t if (compare(array[cursor2], tmp[cursor1]) < 0) {\n\t array[dest++] = array[cursor2++];\n\t count2++;\n\t count1 = 0;\n\n\t if (--length2 === 0) {\n\t exit = true;\n\t break;\n\t }\n\t } else {\n\t array[dest++] = tmp[cursor1++];\n\t count1++;\n\t count2 = 0;\n\t if (--length1 === 1) {\n\t exit = true;\n\t break;\n\t }\n\t }\n\t } while ((count1 | count2) < minGallop);\n\n\t if (exit) {\n\t break;\n\t }\n\n\t do {\n\t count1 = gallopRight(array[cursor2], tmp, cursor1, length1, 0, compare);\n\n\t if (count1 !== 0) {\n\t for (i = 0; i < count1; i++) {\n\t array[dest + i] = tmp[cursor1 + i];\n\t }\n\n\t dest += count1;\n\t cursor1 += count1;\n\t length1 -= count1;\n\t if (length1 <= 1) {\n\t exit = true;\n\t break;\n\t }\n\t }\n\n\t array[dest++] = array[cursor2++];\n\n\t if (--length2 === 0) {\n\t exit = true;\n\t break;\n\t }\n\n\t count2 = gallopLeft(tmp[cursor1], array, cursor2, length2, 0, compare);\n\n\t if (count2 !== 0) {\n\t for (i = 0; i < count2; i++) {\n\t array[dest + i] = array[cursor2 + i];\n\t }\n\n\t dest += count2;\n\t cursor2 += count2;\n\t length2 -= count2;\n\n\t if (length2 === 0) {\n\t exit = true;\n\t break;\n\t }\n\t }\n\t array[dest++] = tmp[cursor1++];\n\n\t if (--length1 === 1) {\n\t exit = true;\n\t break;\n\t }\n\n\t minGallop--;\n\t } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING);\n\n\t if (exit) {\n\t break;\n\t }\n\n\t if (minGallop < 0) {\n\t minGallop = 0;\n\t }\n\n\t minGallop += 2;\n\t }\n\n\t this.minGallop = minGallop;\n\n\t if (minGallop < 1) {\n\t this.minGallop = 1;\n\t }\n\n\t if (length1 === 1) {\n\t for (i = 0; i < length2; i++) {\n\t array[dest + i] = array[cursor2 + i];\n\t }\n\t array[dest + length2] = tmp[cursor1];\n\t } else if (length1 === 0) {\n\t throw new Error('mergeLow preconditions were not respected');\n\t } else {\n\t for (i = 0; i < length1; i++) {\n\t array[dest + i] = tmp[cursor1 + i];\n\t }\n\t }\n\t };\n\n\t TimSort.prototype.mergeHigh = function mergeHigh(start1, length1, start2, length2) {\n\t var compare = this.compare;\n\t var array = this.array;\n\t var tmp = this.tmp;\n\t var i = 0;\n\n\t for (i = 0; i < length2; i++) {\n\t tmp[i] = array[start2 + i];\n\t }\n\n\t var cursor1 = start1 + length1 - 1;\n\t var cursor2 = length2 - 1;\n\t var dest = start2 + length2 - 1;\n\t var customCursor = 0;\n\t var customDest = 0;\n\n\t array[dest--] = array[cursor1--];\n\n\t if (--length1 === 0) {\n\t customCursor = dest - (length2 - 1);\n\n\t for (i = 0; i < length2; i++) {\n\t array[customCursor + i] = tmp[i];\n\t }\n\n\t return;\n\t }\n\n\t if (length2 === 1) {\n\t dest -= length1;\n\t cursor1 -= length1;\n\t customDest = dest + 1;\n\t customCursor = cursor1 + 1;\n\n\t for (i = length1 - 1; i >= 0; i--) {\n\t array[customDest + i] = array[customCursor + i];\n\t }\n\n\t array[dest] = tmp[cursor2];\n\t return;\n\t }\n\n\t var minGallop = this.minGallop;\n\n\t while (true) {\n\t var count1 = 0;\n\t var count2 = 0;\n\t var exit = false;\n\n\t do {\n\t if (compare(tmp[cursor2], array[cursor1]) < 0) {\n\t array[dest--] = array[cursor1--];\n\t count1++;\n\t count2 = 0;\n\t if (--length1 === 0) {\n\t exit = true;\n\t break;\n\t }\n\t } else {\n\t array[dest--] = tmp[cursor2--];\n\t count2++;\n\t count1 = 0;\n\t if (--length2 === 1) {\n\t exit = true;\n\t break;\n\t }\n\t }\n\t } while ((count1 | count2) < minGallop);\n\n\t if (exit) {\n\t break;\n\t }\n\n\t do {\n\t count1 = length1 - gallopRight(tmp[cursor2], array, start1, length1, length1 - 1, compare);\n\n\t if (count1 !== 0) {\n\t dest -= count1;\n\t cursor1 -= count1;\n\t length1 -= count1;\n\t customDest = dest + 1;\n\t customCursor = cursor1 + 1;\n\n\t for (i = count1 - 1; i >= 0; i--) {\n\t array[customDest + i] = array[customCursor + i];\n\t }\n\n\t if (length1 === 0) {\n\t exit = true;\n\t break;\n\t }\n\t }\n\n\t array[dest--] = tmp[cursor2--];\n\n\t if (--length2 === 1) {\n\t exit = true;\n\t break;\n\t }\n\n\t count2 = length2 - gallopLeft(array[cursor1], tmp, 0, length2, length2 - 1, compare);\n\n\t if (count2 !== 0) {\n\t dest -= count2;\n\t cursor2 -= count2;\n\t length2 -= count2;\n\t customDest = dest + 1;\n\t customCursor = cursor2 + 1;\n\n\t for (i = 0; i < count2; i++) {\n\t array[customDest + i] = tmp[customCursor + i];\n\t }\n\n\t if (length2 <= 1) {\n\t exit = true;\n\t break;\n\t }\n\t }\n\n\t array[dest--] = array[cursor1--];\n\n\t if (--length1 === 0) {\n\t exit = true;\n\t break;\n\t }\n\n\t minGallop--;\n\t } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING);\n\n\t if (exit) {\n\t break;\n\t }\n\n\t if (minGallop < 0) {\n\t minGallop = 0;\n\t }\n\n\t minGallop += 2;\n\t }\n\n\t this.minGallop = minGallop;\n\n\t if (minGallop < 1) {\n\t this.minGallop = 1;\n\t }\n\n\t if (length2 === 1) {\n\t dest -= length1;\n\t cursor1 -= length1;\n\t customDest = dest + 1;\n\t customCursor = cursor1 + 1;\n\n\t for (i = length1 - 1; i >= 0; i--) {\n\t array[customDest + i] = array[customCursor + i];\n\t }\n\n\t array[dest] = tmp[cursor2];\n\t } else if (length2 === 0) {\n\t throw new Error('mergeHigh preconditions were not respected');\n\t } else {\n\t customCursor = dest - (length2 - 1);\n\t for (i = 0; i < length2; i++) {\n\t array[customCursor + i] = tmp[i];\n\t }\n\t }\n\t };\n\n\t return TimSort;\n\t })();\n\n\t function sort(array, compare, lo, hi) {\n\t if (!Array.isArray(array)) {\n\t throw new TypeError('Can only sort arrays');\n\t }\n\n\t if (!compare) {\n\t compare = alphabeticalCompare;\n\t } else if (typeof compare !== 'function') {\n\t hi = lo;\n\t lo = compare;\n\t compare = alphabeticalCompare;\n\t }\n\n\t if (!lo) {\n\t lo = 0;\n\t }\n\t if (!hi) {\n\t hi = array.length;\n\t }\n\n\t var remaining = hi - lo;\n\n\t if (remaining < 2) {\n\t return;\n\t }\n\n\t var runLength = 0;\n\n\t if (remaining < DEFAULT_MIN_MERGE) {\n\t runLength = makeAscendingRun(array, lo, hi, compare);\n\t binaryInsertionSort(array, lo, hi, lo + runLength, compare);\n\t return;\n\t }\n\n\t var ts = new TimSort(array, compare);\n\n\t var minRun = minRunLength(remaining);\n\n\t do {\n\t runLength = makeAscendingRun(array, lo, hi, compare);\n\t if (runLength < minRun) {\n\t var force = remaining;\n\t if (force > minRun) {\n\t force = minRun;\n\t }\n\n\t binaryInsertionSort(array, lo, lo + force, lo + runLength, compare);\n\t runLength = force;\n\t }\n\n\t ts.pushRun(lo, runLength);\n\t ts.mergeRuns();\n\n\t remaining -= runLength;\n\t lo += runLength;\n\t } while (remaining !== 0);\n\n\t ts.forceMergeRuns();\n\t }\n\t});\n} (timsort));\n\n(function (module) {\n\tmodule.exports = timsort;\n} (timsort$1));\n\nvar TimSort = /*@__PURE__*/getDefaultExportFromCjs(timsortExports);\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n/**\n * Interface definition for direction strategy classes.\n *\n * This class describes the interface for the Strategy\n * pattern classes used to differentiate horizontal and vertical\n * direction of hierarchical results.\n *\n * For a given direction, one coordinate will be 'fixed', meaning that it is\n * determined by level.\n * The other coordinate is 'unfixed', meaning that the nodes on a given level\n * can still move along that coordinate. So:\n *\n * - `vertical` layout: `x` unfixed, `y` fixed per level\n * - `horizontal` layout: `x` fixed per level, `y` unfixed\n *\n * The local methods are stubs and should be regarded as abstract.\n * Derived classes **must** implement all the methods themselves.\n *\n * @private\n */\nvar DirectionInterface = /*#__PURE__*/function () {\n function DirectionInterface() {\n _classCallCheck(this, DirectionInterface);\n }\n _createClass(DirectionInterface, [{\n key: \"abstract\",\n value:\n /**\n * @ignore\n */\n function abstract() {\n throw new Error(\"Can't instantiate abstract class!\");\n }\n\n /**\n * This is a dummy call which is used to suppress the jsdoc errors of type:\n *\n * \"'param' is assigned a value but never used\"\n *\n * @ignore\n */\n }, {\n key: \"fake_use\",\n value: function fake_use() {\n // Do nothing special\n }\n\n /**\n * Type to use to translate dynamic curves to, in the case of hierarchical layout.\n * Dynamic curves do not work for these.\n *\n * The value should be perpendicular to the actual direction of the layout.\n *\n * @returns {string} Direction, either 'vertical' or 'horizontal'\n */\n }, {\n key: \"curveType\",\n value: function curveType() {\n return this.abstract();\n }\n\n /**\n * Return the value of the coordinate that is not fixed for this direction.\n *\n * @param {Node} node The node to read\n * @returns {number} Value of the unfixed coordinate\n */\n }, {\n key: \"getPosition\",\n value: function getPosition(node) {\n this.fake_use(node);\n return this.abstract();\n }\n\n /**\n * Set the value of the coordinate that is not fixed for this direction.\n *\n * @param {Node} node The node to adjust\n * @param {number} position\n * @param {number} [level] if specified, the hierarchy level that this node should be fixed to\n */\n }, {\n key: \"setPosition\",\n value: function setPosition(node, position) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;\n this.fake_use(node, position, level);\n this.abstract();\n }\n\n /**\n * Get the width of a tree.\n *\n * A `tree` here is a subset of nodes within the network which are not connected to other nodes,\n * only among themselves. In essence, it is a sub-network.\n *\n * @param {number} index The index number of a tree\n * @returns {number} the width of a tree in the view coordinates\n */\n }, {\n key: \"getTreeSize\",\n value: function getTreeSize(index) {\n this.fake_use(index);\n return this.abstract();\n }\n\n /**\n * Sort array of nodes on the unfixed coordinates.\n *\n * Note:** chrome has non-stable sorting implementation, which\n * has a tendency to change the order of the array items,\n * even if the custom sort function returns 0.\n *\n * For this reason, an external sort implementation is used,\n * which has the added benefit of being faster than the standard\n * platforms implementation. This has been verified on `node.js`,\n * `firefox` and `chrome` (all linux).\n *\n * @param {Array.} nodeArray array of nodes to sort\n */\n }, {\n key: \"sort\",\n value: function sort(nodeArray) {\n this.fake_use(nodeArray);\n this.abstract();\n }\n\n /**\n * Assign the fixed coordinate of the node to the given level\n *\n * @param {Node} node The node to adjust\n * @param {number} level The level to fix to\n */\n }, {\n key: \"fix\",\n value: function fix(node, level) {\n this.fake_use(node, level);\n this.abstract();\n }\n\n /**\n * Add an offset to the unfixed coordinate of the given node.\n *\n * @param {NodeId} nodeId Id of the node to adjust\n * @param {number} diff Offset to add to the unfixed coordinate\n */\n }, {\n key: \"shift\",\n value: function shift(nodeId, diff) {\n this.fake_use(nodeId, diff);\n this.abstract();\n }\n }]);\n return DirectionInterface;\n}();\n/**\n * Vertical Strategy\n *\n * Coordinate `y` is fixed on levels, coordinate `x` is unfixed.\n *\n * @augments DirectionInterface\n * @private\n */\nvar VerticalStrategy = /*#__PURE__*/function (_DirectionInterface) {\n _inherits(VerticalStrategy, _DirectionInterface);\n var _super = _createSuper(VerticalStrategy);\n /**\n * Constructor\n *\n * @param {object} layout reference to the parent LayoutEngine instance.\n */\n function VerticalStrategy(layout) {\n var _this;\n _classCallCheck(this, VerticalStrategy);\n _this = _super.call(this);\n _this.layout = layout;\n return _this;\n }\n\n /** @inheritDoc */\n _createClass(VerticalStrategy, [{\n key: \"curveType\",\n value: function curveType() {\n return \"horizontal\";\n }\n\n /** @inheritDoc */\n }, {\n key: \"getPosition\",\n value: function getPosition(node) {\n return node.x;\n }\n\n /** @inheritDoc */\n }, {\n key: \"setPosition\",\n value: function setPosition(node, position) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;\n if (level !== undefined) {\n this.layout.hierarchical.addToOrdering(node, level);\n }\n node.x = position;\n }\n\n /** @inheritDoc */\n }, {\n key: \"getTreeSize\",\n value: function getTreeSize(index) {\n var res = this.layout.hierarchical.getTreeSize(this.layout.body.nodes, index);\n return {\n min: res.min_x,\n max: res.max_x\n };\n }\n\n /** @inheritDoc */\n }, {\n key: \"sort\",\n value: function sort(nodeArray) {\n timsortExports.sort(nodeArray, function (a, b) {\n return a.x - b.x;\n });\n }\n\n /** @inheritDoc */\n }, {\n key: \"fix\",\n value: function fix(node, level) {\n node.y = this.layout.options.hierarchical.levelSeparation * level;\n node.options.fixed.y = true;\n }\n\n /** @inheritDoc */\n }, {\n key: \"shift\",\n value: function shift(nodeId, diff) {\n this.layout.body.nodes[nodeId].x += diff;\n }\n }]);\n return VerticalStrategy;\n}(DirectionInterface);\n/**\n * Horizontal Strategy\n *\n * Coordinate `x` is fixed on levels, coordinate `y` is unfixed.\n *\n * @augments DirectionInterface\n * @private\n */\nvar HorizontalStrategy = /*#__PURE__*/function (_DirectionInterface2) {\n _inherits(HorizontalStrategy, _DirectionInterface2);\n var _super2 = _createSuper(HorizontalStrategy);\n /**\n * Constructor\n *\n * @param {object} layout reference to the parent LayoutEngine instance.\n */\n function HorizontalStrategy(layout) {\n var _this2;\n _classCallCheck(this, HorizontalStrategy);\n _this2 = _super2.call(this);\n _this2.layout = layout;\n return _this2;\n }\n\n /** @inheritDoc */\n _createClass(HorizontalStrategy, [{\n key: \"curveType\",\n value: function curveType() {\n return \"vertical\";\n }\n\n /** @inheritDoc */\n }, {\n key: \"getPosition\",\n value: function getPosition(node) {\n return node.y;\n }\n\n /** @inheritDoc */\n }, {\n key: \"setPosition\",\n value: function setPosition(node, position) {\n var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;\n if (level !== undefined) {\n this.layout.hierarchical.addToOrdering(node, level);\n }\n node.y = position;\n }\n\n /** @inheritDoc */\n }, {\n key: \"getTreeSize\",\n value: function getTreeSize(index) {\n var res = this.layout.hierarchical.getTreeSize(this.layout.body.nodes, index);\n return {\n min: res.min_y,\n max: res.max_y\n };\n }\n\n /** @inheritDoc */\n }, {\n key: \"sort\",\n value: function sort(nodeArray) {\n timsortExports.sort(nodeArray, function (a, b) {\n return a.y - b.y;\n });\n }\n\n /** @inheritDoc */\n }, {\n key: \"fix\",\n value: function fix(node, level) {\n node.x = this.layout.options.hierarchical.levelSeparation * level;\n node.options.fixed.x = true;\n }\n\n /** @inheritDoc */\n }, {\n key: \"shift\",\n value: function shift(nodeId, diff) {\n this.layout.body.nodes[nodeId].y += diff;\n }\n }]);\n return HorizontalStrategy;\n}(DirectionInterface);\n\nvar everyExports = {};\nvar every$3 = {\n get exports(){ return everyExports; },\n set exports(v){ everyExports = v; },\n};\n\nvar $ = _export;\nvar $every = arrayIteration.every;\nvar arrayMethodIsStrict = arrayMethodIsStrict$6;\n\nvar STRICT_METHOD = arrayMethodIsStrict('every');\n\n// `Array.prototype.every` method\n// https://tc39.es/ecma262/#sec-array.prototype.every\n$({ target: 'Array', proto: true, forced: !STRICT_METHOD }, {\n every: function every(callbackfn /* , thisArg */) {\n return $every(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\nvar entryVirtual = entryVirtual$l;\n\nvar every$2 = entryVirtual('Array').every;\n\nvar isPrototypeOf = objectIsPrototypeOf;\nvar method = every$2;\n\nvar ArrayPrototype = Array.prototype;\n\nvar every$1 = function (it) {\n var own = it.every;\n return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.every) ? method : own;\n};\n\nvar parent = every$1;\n\nvar every = parent;\n\n(function (module) {\n\tmodule.exports = every;\n} (every$3));\n\nvar _everyInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(everyExports);\n\nfunction _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray$1(o, minLen) { var _context9; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray$1(o, minLen); var n = _sliceInstanceProperty(_context9 = Object.prototype.toString.call(o)).call(_context9, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }\nfunction _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n/**\r\n * Try to assign levels to nodes according to their positions in the cyclic “hierarchy”.\r\n *\r\n * @param nodes - Visible nodes of the graph.\r\n * @param levels - If present levels will be added to it, if not a new object will be created.\r\n * @returns Populated node levels.\r\n */\nfunction fillLevelsByDirectionCyclic(nodes, levels) {\n var edges = new _Set();\n _forEachInstanceProperty(nodes).call(nodes, function (node) {\n var _context;\n _forEachInstanceProperty(_context = node.edges).call(_context, function (edge) {\n if (edge.connected) {\n edges.add(edge);\n }\n });\n });\n _forEachInstanceProperty(edges).call(edges, function (edge) {\n var fromId = edge.from.id;\n var toId = edge.to.id;\n if (levels[fromId] == null) {\n levels[fromId] = 0;\n }\n if (levels[toId] == null || levels[fromId] >= levels[toId]) {\n levels[toId] = levels[fromId] + 1;\n }\n });\n return levels;\n}\n/**\r\n * Assign levels to nodes according to their positions in the hierarchy. Leaves will be lined up at the bottom and all other nodes as close to their children as possible.\r\n *\r\n * @param nodes - Visible nodes of the graph.\r\n * @returns Populated node levels.\r\n */\nfunction fillLevelsByDirectionLeaves(nodes) {\n return fillLevelsByDirection(\n // Pick only leaves (nodes without children).\n function (node) {\n var _context2, _context3;\n return _everyInstanceProperty(_context2 = _filterInstanceProperty(_context3 = node.edges\n // Take only visible nodes into account.\n ).call(_context3, function (edge) {\n return nodes.has(edge.toId);\n })\n // Check that all edges lead to this node (leaf).\n ).call(_context2, function (edge) {\n return edge.to === node;\n });\n },\n // Use the lowest level.\n function (newLevel, oldLevel) {\n return oldLevel > newLevel;\n },\n // Go against the direction of the edges.\n \"from\", nodes);\n}\n/**\r\n * Assign levels to nodes according to their positions in the hierarchy. Roots will be lined up at the top and all nodes as close to their parents as possible.\r\n *\r\n * @param nodes - Visible nodes of the graph.\r\n * @returns Populated node levels.\r\n */\nfunction fillLevelsByDirectionRoots(nodes) {\n return fillLevelsByDirection(\n // Pick only roots (nodes without parents).\n function (node) {\n var _context4, _context5;\n return _everyInstanceProperty(_context4 = _filterInstanceProperty(_context5 = node.edges\n // Take only visible nodes into account.\n ).call(_context5, function (edge) {\n return nodes.has(edge.toId);\n })\n // Check that all edges lead from this node (root).\n ).call(_context4, function (edge) {\n return edge.from === node;\n });\n },\n // Use the highest level.\n function (newLevel, oldLevel) {\n return oldLevel < newLevel;\n },\n // Go in the direction of the edges.\n \"to\", nodes);\n}\n/**\r\n * Assign levels to nodes according to their positions in the hierarchy.\r\n *\r\n * @param isEntryNode - Checks and return true if the graph should be traversed from this node.\r\n * @param shouldLevelBeReplaced - Checks and returns true if the level of given node should be updated to the new value.\r\n * @param direction - Wheter the graph should be traversed in the direction of the edges `\"to\"` or in the other way `\"from\"`.\r\n * @param nodes - Visible nodes of the graph.\r\n * @returns Populated node levels.\r\n */\nfunction fillLevelsByDirection(isEntryNode, shouldLevelBeReplaced, direction, nodes) {\n var _context6;\n var levels = _Object$create$1(null);\n // If acyclic, the graph can be walked through with (most likely way) fewer\n // steps than the number bellow. The exact value isn't too important as long\n // as it's quick to compute (doesn't impact acyclic graphs too much), is\n // higher than the number of steps actually needed (doesn't cut off before\n // acyclic graph is walked through) and prevents infinite loops (cuts off for\n // cyclic graphs).\n var limit = _reduceInstanceProperty(_context6 = _toConsumableArray(_valuesInstanceProperty(nodes).call(nodes))).call(_context6, function (acc, node) {\n return acc + 1 + node.edges.length;\n }, 0);\n var edgeIdProp = direction + \"Id\";\n var newLevelDiff = direction === \"to\" ? 1 : -1;\n var _iterator = _createForOfIteratorHelper$1(nodes),\n _step;\n try {\n var _loop = function _loop() {\n var _step$value = _slicedToArray(_step.value, 2),\n entryNodeId = _step$value[0],\n entryNode = _step$value[1];\n if (\n // Skip if the node is not visible.\n !nodes.has(entryNodeId) ||\n // Skip if the node is not an entry node.\n !isEntryNode(entryNode)) {\n return \"continue\";\n }\n // Line up all the entry nodes on level 0.\n levels[entryNodeId] = 0;\n var stack = [entryNode];\n var done = 0;\n var node;\n var _loop2 = function _loop2() {\n var _context7, _context8;\n if (!nodes.has(entryNodeId)) {\n // Skip if the node is not visible.\n return \"continue\";\n }\n var newLevel = levels[node.id] + newLevelDiff;\n _forEachInstanceProperty(_context7 = _filterInstanceProperty(_context8 = node.edges).call(_context8, function (edge) {\n return (\n // Ignore disconnected edges.\n edge.connected &&\n // Ignore circular edges.\n edge.to !== edge.from &&\n // Ignore edges leading to the node that's currently being processed.\n edge[direction] !== node &&\n // Ignore edges connecting to an invisible node.\n nodes.has(edge.toId) &&\n // Ignore edges connecting from an invisible node.\n nodes.has(edge.fromId)\n );\n })).call(_context7, function (edge) {\n var targetNodeId = edge[edgeIdProp];\n var oldLevel = levels[targetNodeId];\n if (oldLevel == null || shouldLevelBeReplaced(newLevel, oldLevel)) {\n levels[targetNodeId] = newLevel;\n stack.push(edge[direction]);\n }\n });\n if (done > limit) {\n // This would run forever on a cyclic graph.\n return {\n v: {\n v: fillLevelsByDirectionCyclic(nodes, levels)\n }\n };\n } else {\n ++done;\n }\n };\n while (node = stack.pop()) {\n var _ret2 = _loop2();\n if (_ret2 === \"continue\") continue;\n if (_typeof$1(_ret2) === \"object\") return _ret2.v;\n }\n };\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _ret = _loop();\n if (_ret === \"continue\") continue;\n if (_typeof$1(_ret) === \"object\") return _ret.v;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return levels;\n}\n\n/**\n * There's a mix-up with terms in the code. Following are the formal definitions:\n *\n * tree - a strict hierarchical network, i.e. every node has at most one parent\n * forest - a collection of trees. These distinct trees are thus not connected.\n *\n * So:\n * - in a network that is not a tree, there exist nodes with multiple parents.\n * - a network consisting of unconnected sub-networks, of which at least one\n * is not a tree, is not a forest.\n *\n * In the code, the definitions are:\n *\n * tree - any disconnected sub-network, strict hierarchical or not.\n * forest - a bunch of these sub-networks\n *\n * The difference between tree and not-tree is important in the code, notably within\n * to the block-shifting algorithm. The algorithm assumes formal trees and fails\n * for not-trees, often in a spectacular manner (search for 'exploding network' in the issues).\n *\n * In order to distinguish the definitions in the following code, the adjective 'formal' is\n * used. If 'formal' is absent, you must assume the non-formal definition.\n *\n * ----------------------------------------------------------------------------------\n * NOTES\n * =====\n *\n * A hierarchical layout is a different thing from a hierarchical network.\n * The layout is a way to arrange the nodes in the view; this can be done\n * on non-hierarchical networks as well. The converse is also possible.\n */\n\n/**\n * Container for derived data on current network, relating to hierarchy.\n *\n * @private\n */\nvar HierarchicalStatus = /*#__PURE__*/function () {\n /**\n * @ignore\n */\n function HierarchicalStatus() {\n _classCallCheck(this, HierarchicalStatus);\n this.childrenReference = {}; // child id's per node id\n this.parentReference = {}; // parent id's per node id\n this.trees = {}; // tree id per node id; i.e. to which tree does given node id belong\n\n this.distributionOrdering = {}; // The nodes per level, in the display order\n this.levels = {}; // hierarchy level per node id\n this.distributionIndex = {}; // The position of the node in the level sorting order, per node id.\n\n this.isTree = false; // True if current network is a formal tree\n this.treeIndex = -1; // Highest tree id in current network.\n }\n\n /**\n * Add the relation between given nodes to the current state.\n *\n * @param {Node.id} parentNodeId\n * @param {Node.id} childNodeId\n */\n _createClass(HierarchicalStatus, [{\n key: \"addRelation\",\n value: function addRelation(parentNodeId, childNodeId) {\n if (this.childrenReference[parentNodeId] === undefined) {\n this.childrenReference[parentNodeId] = [];\n }\n this.childrenReference[parentNodeId].push(childNodeId);\n if (this.parentReference[childNodeId] === undefined) {\n this.parentReference[childNodeId] = [];\n }\n this.parentReference[childNodeId].push(parentNodeId);\n }\n\n /**\n * Check if the current state is for a formal tree or formal forest.\n *\n * This is the case if every node has at most one parent.\n *\n * Pre: parentReference init'ed properly for current network\n */\n }, {\n key: \"checkIfTree\",\n value: function checkIfTree() {\n for (var i in this.parentReference) {\n if (this.parentReference[i].length > 1) {\n this.isTree = false;\n return;\n }\n }\n this.isTree = true;\n }\n\n /**\n * Return the number of separate trees in the current network.\n *\n * @returns {number}\n */\n }, {\n key: \"numTrees\",\n value: function numTrees() {\n return this.treeIndex + 1; // This assumes the indexes are assigned consecitively\n }\n\n /**\n * Assign a tree id to a node\n *\n * @param {Node} node\n * @param {string|number} treeId\n */\n }, {\n key: \"setTreeIndex\",\n value: function setTreeIndex(node, treeId) {\n if (treeId === undefined) return; // Don't bother\n\n if (this.trees[node.id] === undefined) {\n this.trees[node.id] = treeId;\n this.treeIndex = Math.max(treeId, this.treeIndex);\n }\n }\n\n /**\n * Ensure level for given id is defined.\n *\n * Sets level to zero for given node id if not already present\n *\n * @param {Node.id} nodeId\n */\n }, {\n key: \"ensureLevel\",\n value: function ensureLevel(nodeId) {\n if (this.levels[nodeId] === undefined) {\n this.levels[nodeId] = 0;\n }\n }\n\n /**\n * get the maximum level of a branch.\n *\n * TODO: Never entered; find a test case to test this!\n *\n * @param {Node.id} nodeId\n * @returns {number}\n */\n }, {\n key: \"getMaxLevel\",\n value: function getMaxLevel(nodeId) {\n var _this = this;\n var accumulator = {};\n var _getMaxLevel = function _getMaxLevel(nodeId) {\n if (accumulator[nodeId] !== undefined) {\n return accumulator[nodeId];\n }\n var level = _this.levels[nodeId];\n if (_this.childrenReference[nodeId]) {\n var children = _this.childrenReference[nodeId];\n if (children.length > 0) {\n for (var i = 0; i < children.length; i++) {\n level = Math.max(level, _getMaxLevel(children[i]));\n }\n }\n }\n accumulator[nodeId] = level;\n return level;\n };\n return _getMaxLevel(nodeId);\n }\n\n /**\n *\n * @param {Node} nodeA\n * @param {Node} nodeB\n */\n }, {\n key: \"levelDownstream\",\n value: function levelDownstream(nodeA, nodeB) {\n if (this.levels[nodeB.id] === undefined) {\n // set initial level\n if (this.levels[nodeA.id] === undefined) {\n this.levels[nodeA.id] = 0;\n }\n // set level\n this.levels[nodeB.id] = this.levels[nodeA.id] + 1;\n }\n }\n\n /**\n * Small util method to set the minimum levels of the nodes to zero.\n *\n * @param {Array.} nodes\n */\n }, {\n key: \"setMinLevelToZero\",\n value: function setMinLevelToZero(nodes) {\n var minLevel = 1e9;\n // get the minimum level\n for (var nodeId in nodes) {\n if (Object.prototype.hasOwnProperty.call(nodes, nodeId)) {\n if (this.levels[nodeId] !== undefined) {\n minLevel = Math.min(this.levels[nodeId], minLevel);\n }\n }\n }\n\n // subtract the minimum from the set so we have a range starting from 0\n for (var _nodeId in nodes) {\n if (Object.prototype.hasOwnProperty.call(nodes, _nodeId)) {\n if (this.levels[_nodeId] !== undefined) {\n this.levels[_nodeId] -= minLevel;\n }\n }\n }\n }\n\n /**\n * Get the min and max xy-coordinates of a given tree\n *\n * @param {Array.} nodes\n * @param {number} index\n * @returns {{min_x: number, max_x: number, min_y: number, max_y: number}}\n */\n }, {\n key: \"getTreeSize\",\n value: function getTreeSize(nodes, index) {\n var min_x = 1e9;\n var max_x = -1e9;\n var min_y = 1e9;\n var max_y = -1e9;\n for (var nodeId in this.trees) {\n if (Object.prototype.hasOwnProperty.call(this.trees, nodeId)) {\n if (this.trees[nodeId] === index) {\n var node = nodes[nodeId];\n min_x = Math.min(node.x, min_x);\n max_x = Math.max(node.x, max_x);\n min_y = Math.min(node.y, min_y);\n max_y = Math.max(node.y, max_y);\n }\n }\n }\n return {\n min_x: min_x,\n max_x: max_x,\n min_y: min_y,\n max_y: max_y\n };\n }\n\n /**\n * Check if two nodes have the same parent(s)\n *\n * @param {Node} node1\n * @param {Node} node2\n * @returns {boolean} true if the two nodes have a same ancestor node, false otherwise\n */\n }, {\n key: \"hasSameParent\",\n value: function hasSameParent(node1, node2) {\n var parents1 = this.parentReference[node1.id];\n var parents2 = this.parentReference[node2.id];\n if (parents1 === undefined || parents2 === undefined) {\n return false;\n }\n for (var i = 0; i < parents1.length; i++) {\n for (var j = 0; j < parents2.length; j++) {\n if (parents1[i] == parents2[j]) {\n return true;\n }\n }\n }\n return false;\n }\n\n /**\n * Check if two nodes are in the same tree.\n *\n * @param {Node} node1\n * @param {Node} node2\n * @returns {boolean} true if this is so, false otherwise\n */\n }, {\n key: \"inSameSubNetwork\",\n value: function inSameSubNetwork(node1, node2) {\n return this.trees[node1.id] === this.trees[node2.id];\n }\n\n /**\n * Get a list of the distinct levels in the current network\n *\n * @returns {Array}\n */\n }, {\n key: \"getLevels\",\n value: function getLevels() {\n return _Object$keys(this.distributionOrdering);\n }\n\n /**\n * Add a node to the ordering per level\n *\n * @param {Node} node\n * @param {number} level\n */\n }, {\n key: \"addToOrdering\",\n value: function addToOrdering(node, level) {\n if (this.distributionOrdering[level] === undefined) {\n this.distributionOrdering[level] = [];\n }\n var isPresent = false;\n var curLevel = this.distributionOrdering[level];\n for (var n in curLevel) {\n //if (curLevel[n].id === node.id) {\n if (curLevel[n] === node) {\n isPresent = true;\n break;\n }\n }\n if (!isPresent) {\n this.distributionOrdering[level].push(node);\n this.distributionIndex[node.id] = this.distributionOrdering[level].length - 1;\n }\n }\n }]);\n return HierarchicalStatus;\n}();\n/**\n * The Layout Engine\n */\nvar LayoutEngine = /*#__PURE__*/function () {\n /**\n * @param {object} body\n */\n function LayoutEngine(body) {\n _classCallCheck(this, LayoutEngine);\n this.body = body;\n\n // Make sure there always is some RNG because the setOptions method won't\n // set it unless there's a seed for it.\n this._resetRNG(Math.random() + \":\" + _Date$now());\n this.setPhysics = false;\n this.options = {};\n this.optionsBackup = {\n physics: {}\n };\n this.defaultOptions = {\n randomSeed: undefined,\n improvedLayout: true,\n clusterThreshold: 150,\n hierarchical: {\n enabled: false,\n levelSeparation: 150,\n nodeSpacing: 100,\n treeSpacing: 200,\n blockShifting: true,\n edgeMinimization: true,\n parentCentralization: true,\n direction: \"UD\",\n // UD, DU, LR, RL\n sortMethod: \"hubsize\" // hubsize, directed\n }\n };\n\n _Object$assign(this.options, this.defaultOptions);\n this.bindEventListeners();\n }\n\n /**\n * Binds event listeners\n */\n _createClass(LayoutEngine, [{\n key: \"bindEventListeners\",\n value: function bindEventListeners() {\n var _this2 = this;\n this.body.emitter.on(\"_dataChanged\", function () {\n _this2.setupHierarchicalLayout();\n });\n this.body.emitter.on(\"_dataLoaded\", function () {\n _this2.layoutNetwork();\n });\n this.body.emitter.on(\"_resetHierarchicalLayout\", function () {\n _this2.setupHierarchicalLayout();\n });\n this.body.emitter.on(\"_adjustEdgesForHierarchicalLayout\", function () {\n if (_this2.options.hierarchical.enabled !== true) {\n return;\n }\n // get the type of static smooth curve in case it is required\n var type = _this2.direction.curveType();\n\n // force all edges into static smooth curves.\n _this2.body.emitter.emit(\"_forceDisableDynamicCurves\", type, false);\n });\n }\n\n /**\n *\n * @param {object} options\n * @param {object} allOptions\n * @returns {object}\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options, allOptions) {\n if (options !== undefined) {\n var hierarchical = this.options.hierarchical;\n var prevHierarchicalState = hierarchical.enabled;\n selectiveDeepExtend([\"randomSeed\", \"improvedLayout\", \"clusterThreshold\"], this.options, options);\n mergeOptions(this.options, options, \"hierarchical\");\n if (options.randomSeed !== undefined) {\n this._resetRNG(options.randomSeed);\n }\n if (hierarchical.enabled === true) {\n if (prevHierarchicalState === true) {\n // refresh the overridden options for nodes and edges.\n this.body.emitter.emit(\"refresh\", true);\n }\n\n // make sure the level separation is the right way up\n if (hierarchical.direction === \"RL\" || hierarchical.direction === \"DU\") {\n if (hierarchical.levelSeparation > 0) {\n hierarchical.levelSeparation *= -1;\n }\n } else {\n if (hierarchical.levelSeparation < 0) {\n hierarchical.levelSeparation *= -1;\n }\n }\n this.setDirectionStrategy();\n this.body.emitter.emit(\"_resetHierarchicalLayout\");\n // because the hierarchical system needs it's own physics and smooth curve settings,\n // we adapt the other options if needed.\n return this.adaptAllOptionsForHierarchicalLayout(allOptions);\n } else {\n if (prevHierarchicalState === true) {\n // refresh the overridden options for nodes and edges.\n this.body.emitter.emit(\"refresh\");\n return deepExtend(allOptions, this.optionsBackup);\n }\n }\n }\n return allOptions;\n }\n\n /**\n * Reset the random number generator with given seed.\n *\n * @param {any} seed - The seed that will be forwarded the the RNG.\n */\n }, {\n key: \"_resetRNG\",\n value: function _resetRNG(seed) {\n this.initialRandomSeed = seed;\n this._rng = Alea(this.initialRandomSeed);\n }\n\n /**\n *\n * @param {object} allOptions\n * @returns {object}\n */\n }, {\n key: \"adaptAllOptionsForHierarchicalLayout\",\n value: function adaptAllOptionsForHierarchicalLayout(allOptions) {\n if (this.options.hierarchical.enabled === true) {\n var backupPhysics = this.optionsBackup.physics;\n\n // set the physics\n if (allOptions.physics === undefined || allOptions.physics === true) {\n allOptions.physics = {\n enabled: backupPhysics.enabled === undefined ? true : backupPhysics.enabled,\n solver: \"hierarchicalRepulsion\"\n };\n backupPhysics.enabled = backupPhysics.enabled === undefined ? true : backupPhysics.enabled;\n backupPhysics.solver = backupPhysics.solver || \"barnesHut\";\n } else if (_typeof$1(allOptions.physics) === \"object\") {\n backupPhysics.enabled = allOptions.physics.enabled === undefined ? true : allOptions.physics.enabled;\n backupPhysics.solver = allOptions.physics.solver || \"barnesHut\";\n allOptions.physics.solver = \"hierarchicalRepulsion\";\n } else if (allOptions.physics !== false) {\n backupPhysics.solver = \"barnesHut\";\n allOptions.physics = {\n solver: \"hierarchicalRepulsion\"\n };\n }\n\n // get the type of static smooth curve in case it is required\n var type = this.direction.curveType();\n\n // disable smooth curves if nothing is defined. If smooth curves have been turned on,\n // turn them into static smooth curves.\n if (allOptions.edges === undefined) {\n this.optionsBackup.edges = {\n smooth: {\n enabled: true,\n type: \"dynamic\"\n }\n };\n allOptions.edges = {\n smooth: false\n };\n } else if (allOptions.edges.smooth === undefined) {\n this.optionsBackup.edges = {\n smooth: {\n enabled: true,\n type: \"dynamic\"\n }\n };\n allOptions.edges.smooth = false;\n } else {\n if (typeof allOptions.edges.smooth === \"boolean\") {\n this.optionsBackup.edges = {\n smooth: allOptions.edges.smooth\n };\n allOptions.edges.smooth = {\n enabled: allOptions.edges.smooth,\n type: type\n };\n } else {\n var smooth = allOptions.edges.smooth;\n\n // allow custom types except for dynamic\n if (smooth.type !== undefined && smooth.type !== \"dynamic\") {\n type = smooth.type;\n }\n\n // TODO: this is options merging; see if the standard routines can be used here.\n this.optionsBackup.edges = {\n smooth: {\n enabled: smooth.enabled === undefined ? true : smooth.enabled,\n type: smooth.type === undefined ? \"dynamic\" : smooth.type,\n roundness: smooth.roundness === undefined ? 0.5 : smooth.roundness,\n forceDirection: smooth.forceDirection === undefined ? false : smooth.forceDirection\n }\n };\n\n // NOTE: Copying an object to self; this is basically setting defaults for undefined variables\n allOptions.edges.smooth = {\n enabled: smooth.enabled === undefined ? true : smooth.enabled,\n type: type,\n roundness: smooth.roundness === undefined ? 0.5 : smooth.roundness,\n forceDirection: smooth.forceDirection === undefined ? false : smooth.forceDirection\n };\n }\n }\n\n // Force all edges into static smooth curves.\n // Only applies to edges that do not use the global options for smooth.\n this.body.emitter.emit(\"_forceDisableDynamicCurves\", type);\n }\n return allOptions;\n }\n\n /**\n *\n * @param {Array.} nodesArray\n */\n }, {\n key: \"positionInitially\",\n value: function positionInitially(nodesArray) {\n if (this.options.hierarchical.enabled !== true) {\n this._resetRNG(this.initialRandomSeed);\n var radius = nodesArray.length + 50;\n for (var i = 0; i < nodesArray.length; i++) {\n var node = nodesArray[i];\n var angle = 2 * Math.PI * this._rng();\n if (node.x === undefined) {\n node.x = radius * Math.cos(angle);\n }\n if (node.y === undefined) {\n node.y = radius * Math.sin(angle);\n }\n }\n }\n }\n\n /**\n * Use Kamada Kawai to position nodes. This is quite a heavy algorithm so if there are a lot of nodes we\n * cluster them first to reduce the amount.\n */\n }, {\n key: \"layoutNetwork\",\n value: function layoutNetwork() {\n if (this.options.hierarchical.enabled !== true && this.options.improvedLayout === true) {\n var indices = this.body.nodeIndices;\n\n // first check if we should Kamada Kawai to layout. The threshold is if less than half of the visible\n // nodes have predefined positions we use this.\n var positionDefined = 0;\n for (var i = 0; i < indices.length; i++) {\n var node = this.body.nodes[indices[i]];\n if (node.predefinedPosition === true) {\n positionDefined += 1;\n }\n }\n\n // if less than half of the nodes have a predefined position we continue\n if (positionDefined < 0.5 * indices.length) {\n var MAX_LEVELS = 10;\n var level = 0;\n var clusterThreshold = this.options.clusterThreshold;\n\n //\n // Define the options for the hidden cluster nodes\n // These options don't propagate outside the clustering phase.\n //\n // Some options are explicitly disabled, because they may be set in group or default node options.\n // The clusters are never displayed, so most explicit settings here serve as performance optimizations.\n //\n // The explicit setting of 'shape' is to avoid `shape: 'image'`; images are not passed to the hidden\n // cluster nodes, leading to an exception on creation.\n //\n // All settings here are performance related, except when noted otherwise.\n //\n var clusterOptions = {\n clusterNodeProperties: {\n shape: \"ellipse\",\n // Bugfix: avoid type 'image', no images supplied\n label: \"\",\n // avoid label handling\n group: \"\",\n // avoid group handling\n font: {\n multi: false\n } // avoid font propagation\n },\n\n clusterEdgeProperties: {\n label: \"\",\n // avoid label handling\n font: {\n multi: false\n },\n // avoid font propagation\n smooth: {\n enabled: false // avoid drawing penalty for complex edges\n }\n }\n };\n\n // if there are a lot of nodes, we cluster before we run the algorithm.\n // NOTE: this part fails to find clusters for large scale-free networks, which should\n // be easily clusterable.\n // TODO: examine why this is so\n if (indices.length > clusterThreshold) {\n var startLength = indices.length;\n while (indices.length > clusterThreshold && level <= MAX_LEVELS) {\n //console.time(\"clustering\")\n level += 1;\n var before = indices.length;\n // if there are many nodes we do a hubsize cluster\n if (level % 3 === 0) {\n this.body.modules.clustering.clusterBridges(clusterOptions);\n } else {\n this.body.modules.clustering.clusterOutliers(clusterOptions);\n }\n var after = indices.length;\n if (before == after && level % 3 !== 0) {\n this._declusterAll();\n this.body.emitter.emit(\"_layoutFailed\");\n console.info(\"This network could not be positioned by this version of the improved layout algorithm.\" + \" Please disable improvedLayout for better performance.\");\n return;\n }\n //console.timeEnd(\"clustering\")\n //console.log(before,level,after);\n }\n // increase the size of the edges\n this.body.modules.kamadaKawai.setOptions({\n springLength: Math.max(150, 2 * startLength)\n });\n }\n if (level > MAX_LEVELS) {\n console.info(\"The clustering didn't succeed within the amount of interations allowed,\" + \" progressing with partial result.\");\n }\n\n // position the system for these nodes and edges\n this.body.modules.kamadaKawai.solve(indices, this.body.edgeIndices, true);\n\n // shift to center point\n this._shiftToCenter();\n\n // perturb the nodes a little bit to force the physics to kick in\n var offset = 70;\n for (var _i = 0; _i < indices.length; _i++) {\n // Only perturb the nodes that aren't fixed\n var _node = this.body.nodes[indices[_i]];\n if (_node.predefinedPosition === false) {\n _node.x += (0.5 - this._rng()) * offset;\n _node.y += (0.5 - this._rng()) * offset;\n }\n }\n\n // uncluster all clusters\n this._declusterAll();\n\n // reposition all bezier nodes.\n this.body.emitter.emit(\"_repositionBezierNodes\");\n }\n }\n }\n\n /**\n * Move all the nodes towards to the center so gravitational pull wil not move the nodes away from view\n *\n * @private\n */\n }, {\n key: \"_shiftToCenter\",\n value: function _shiftToCenter() {\n var range = NetworkUtil.getRangeCore(this.body.nodes, this.body.nodeIndices);\n var center = NetworkUtil.findCenter(range);\n for (var i = 0; i < this.body.nodeIndices.length; i++) {\n var node = this.body.nodes[this.body.nodeIndices[i]];\n node.x -= center.x;\n node.y -= center.y;\n }\n }\n\n /**\n * Expands all clusters\n *\n * @private\n */\n }, {\n key: \"_declusterAll\",\n value: function _declusterAll() {\n var clustersPresent = true;\n while (clustersPresent === true) {\n clustersPresent = false;\n for (var i = 0; i < this.body.nodeIndices.length; i++) {\n if (this.body.nodes[this.body.nodeIndices[i]].isCluster === true) {\n clustersPresent = true;\n this.body.modules.clustering.openCluster(this.body.nodeIndices[i], {}, false);\n }\n }\n if (clustersPresent === true) {\n this.body.emitter.emit(\"_dataChanged\");\n }\n }\n }\n\n /**\n *\n * @returns {number|*}\n */\n }, {\n key: \"getSeed\",\n value: function getSeed() {\n return this.initialRandomSeed;\n }\n\n /**\n * This is the main function to layout the nodes in a hierarchical way.\n * It checks if the node details are supplied correctly\n *\n * @private\n */\n }, {\n key: \"setupHierarchicalLayout\",\n value: function setupHierarchicalLayout() {\n if (this.options.hierarchical.enabled === true && this.body.nodeIndices.length > 0) {\n // get the size of the largest hubs and check if the user has defined a level for a node.\n var node, nodeId;\n var definedLevel = false;\n var undefinedLevel = false;\n this.lastNodeOnLevel = {};\n this.hierarchical = new HierarchicalStatus();\n for (nodeId in this.body.nodes) {\n if (Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId)) {\n node = this.body.nodes[nodeId];\n if (node.options.level !== undefined) {\n definedLevel = true;\n this.hierarchical.levels[nodeId] = node.options.level;\n } else {\n undefinedLevel = true;\n }\n }\n }\n\n // if the user defined some levels but not all, alert and run without hierarchical layout\n if (undefinedLevel === true && definedLevel === true) {\n throw new Error(\"To use the hierarchical layout, nodes require either no predefined levels\" + \" or levels have to be defined for all nodes.\");\n } else {\n // define levels if undefined by the users. Based on hubsize.\n if (undefinedLevel === true) {\n var sortMethod = this.options.hierarchical.sortMethod;\n if (sortMethod === \"hubsize\") {\n this._determineLevelsByHubsize();\n } else if (sortMethod === \"directed\") {\n this._determineLevelsDirected();\n } else if (sortMethod === \"custom\") {\n this._determineLevelsCustomCallback();\n }\n }\n\n // fallback for cases where there are nodes but no edges\n for (var _nodeId2 in this.body.nodes) {\n if (Object.prototype.hasOwnProperty.call(this.body.nodes, _nodeId2)) {\n this.hierarchical.ensureLevel(_nodeId2);\n }\n }\n // check the distribution of the nodes per level.\n var distribution = this._getDistribution();\n\n // get the parent children relations.\n this._generateMap();\n\n // place the nodes on the canvas.\n this._placeNodesByHierarchy(distribution);\n\n // condense the whitespace.\n this._condenseHierarchy();\n\n // shift to center so gravity does not have to do much\n this._shiftToCenter();\n }\n }\n }\n\n /**\n * @private\n */\n }, {\n key: \"_condenseHierarchy\",\n value: function _condenseHierarchy() {\n var _this3 = this;\n // Global var in this scope to define when the movement has stopped.\n var stillShifting = false;\n var branches = {};\n // first we have some methods to help shifting trees around.\n // the main method to shift the trees\n var shiftTrees = function shiftTrees() {\n var treeSizes = getTreeSizes();\n var shiftBy = 0;\n for (var i = 0; i < treeSizes.length - 1; i++) {\n var diff = treeSizes[i].max - treeSizes[i + 1].min;\n shiftBy += diff + _this3.options.hierarchical.treeSpacing;\n shiftTree(i + 1, shiftBy);\n }\n };\n\n // shift a single tree by an offset\n var shiftTree = function shiftTree(index, offset) {\n var trees = _this3.hierarchical.trees;\n for (var nodeId in trees) {\n if (Object.prototype.hasOwnProperty.call(trees, nodeId)) {\n if (trees[nodeId] === index) {\n _this3.direction.shift(nodeId, offset);\n }\n }\n }\n };\n\n // get the width of all trees\n var getTreeSizes = function getTreeSizes() {\n var treeWidths = [];\n for (var i = 0; i < _this3.hierarchical.numTrees(); i++) {\n treeWidths.push(_this3.direction.getTreeSize(i));\n }\n return treeWidths;\n };\n\n // get a map of all nodes in this branch\n var getBranchNodes = function getBranchNodes(source, map) {\n if (map[source.id]) {\n return;\n }\n map[source.id] = true;\n if (_this3.hierarchical.childrenReference[source.id]) {\n var children = _this3.hierarchical.childrenReference[source.id];\n if (children.length > 0) {\n for (var i = 0; i < children.length; i++) {\n getBranchNodes(_this3.body.nodes[children[i]], map);\n }\n }\n }\n };\n\n // get a min max width as well as the maximum movement space it has on either sides\n // we use min max terminology because width and height can interchange depending on the direction of the layout\n var getBranchBoundary = function getBranchBoundary(branchMap) {\n var maxLevel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1e9;\n var minSpace = 1e9;\n var maxSpace = 1e9;\n var min = 1e9;\n var max = -1e9;\n for (var branchNode in branchMap) {\n if (Object.prototype.hasOwnProperty.call(branchMap, branchNode)) {\n var node = _this3.body.nodes[branchNode];\n var level = _this3.hierarchical.levels[node.id];\n var position = _this3.direction.getPosition(node);\n\n // get the space around the node.\n var _this3$_getSpaceAroun = _this3._getSpaceAroundNode(node, branchMap),\n _this3$_getSpaceAroun2 = _slicedToArray(_this3$_getSpaceAroun, 2),\n minSpaceNode = _this3$_getSpaceAroun2[0],\n maxSpaceNode = _this3$_getSpaceAroun2[1];\n minSpace = Math.min(minSpaceNode, minSpace);\n maxSpace = Math.min(maxSpaceNode, maxSpace);\n\n // the width is only relevant for the levels two nodes have in common. This is why we filter on this.\n if (level <= maxLevel) {\n min = Math.min(position, min);\n max = Math.max(position, max);\n }\n }\n }\n return [min, max, minSpace, maxSpace];\n };\n\n // check what the maximum level is these nodes have in common.\n var getCollisionLevel = function getCollisionLevel(node1, node2) {\n var maxLevel1 = _this3.hierarchical.getMaxLevel(node1.id);\n var maxLevel2 = _this3.hierarchical.getMaxLevel(node2.id);\n return Math.min(maxLevel1, maxLevel2);\n };\n\n /**\n * Condense elements. These can be nodes or branches depending on the callback.\n *\n * @param {Function} callback\n * @param {Array.} levels\n * @param {*} centerParents\n */\n var shiftElementsCloser = function shiftElementsCloser(callback, levels, centerParents) {\n var hier = _this3.hierarchical;\n for (var i = 0; i < levels.length; i++) {\n var level = levels[i];\n var levelNodes = hier.distributionOrdering[level];\n if (levelNodes.length > 1) {\n for (var j = 0; j < levelNodes.length - 1; j++) {\n var node1 = levelNodes[j];\n var node2 = levelNodes[j + 1];\n\n // NOTE: logic maintained as it was; if nodes have same ancestor,\n // then of course they are in the same sub-network.\n if (hier.hasSameParent(node1, node2) && hier.inSameSubNetwork(node1, node2)) {\n callback(node1, node2, centerParents);\n }\n }\n }\n }\n };\n\n // callback for shifting branches\n var branchShiftCallback = function branchShiftCallback(node1, node2) {\n var centerParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n //window.CALLBACKS.push(() => {\n var pos1 = _this3.direction.getPosition(node1);\n var pos2 = _this3.direction.getPosition(node2);\n var diffAbs = Math.abs(pos2 - pos1);\n var nodeSpacing = _this3.options.hierarchical.nodeSpacing;\n //console.log(\"NOW CHECKING:\", node1.id, node2.id, diffAbs);\n if (diffAbs > nodeSpacing) {\n var branchNodes1 = {};\n var branchNodes2 = {};\n getBranchNodes(node1, branchNodes1);\n getBranchNodes(node2, branchNodes2);\n\n // check the largest distance between the branches\n var maxLevel = getCollisionLevel(node1, node2);\n var branchNodeBoundary1 = getBranchBoundary(branchNodes1, maxLevel);\n var branchNodeBoundary2 = getBranchBoundary(branchNodes2, maxLevel);\n var max1 = branchNodeBoundary1[1];\n var min2 = branchNodeBoundary2[0];\n var minSpace2 = branchNodeBoundary2[2];\n\n //console.log(node1.id, getBranchBoundary(branchNodes1, maxLevel), node2.id,\n // getBranchBoundary(branchNodes2, maxLevel), maxLevel);\n var diffBranch = Math.abs(max1 - min2);\n if (diffBranch > nodeSpacing) {\n var offset = max1 - min2 + nodeSpacing;\n if (offset < -minSpace2 + nodeSpacing) {\n offset = -minSpace2 + nodeSpacing;\n //console.log(\"RESETTING OFFSET\", max1 - min2 + this.options.hierarchical.nodeSpacing, -minSpace2, offset);\n }\n\n if (offset < 0) {\n //console.log(\"SHIFTING\", node2.id, offset);\n _this3._shiftBlock(node2.id, offset);\n stillShifting = true;\n if (centerParent === true) _this3._centerParent(node2);\n }\n }\n }\n //this.body.emitter.emit(\"_redraw\");})\n };\n\n var minimizeEdgeLength = function minimizeEdgeLength(iterations, node) {\n //window.CALLBACKS.push(() => {\n // console.log(\"ts\",node.id);\n var nodeId = node.id;\n var allEdges = node.edges;\n var nodeLevel = _this3.hierarchical.levels[node.id];\n\n // gather constants\n var C2 = _this3.options.hierarchical.levelSeparation * _this3.options.hierarchical.levelSeparation;\n var referenceNodes = {};\n var aboveEdges = [];\n for (var i = 0; i < allEdges.length; i++) {\n var edge = allEdges[i];\n if (edge.toId != edge.fromId) {\n var otherNode = edge.toId == nodeId ? edge.from : edge.to;\n referenceNodes[allEdges[i].id] = otherNode;\n if (_this3.hierarchical.levels[otherNode.id] < nodeLevel) {\n aboveEdges.push(edge);\n }\n }\n }\n\n // differentiated sum of lengths based on only moving one node over one axis\n var getFx = function getFx(point, edges) {\n var sum = 0;\n for (var _i2 = 0; _i2 < edges.length; _i2++) {\n if (referenceNodes[edges[_i2].id] !== undefined) {\n var a = _this3.direction.getPosition(referenceNodes[edges[_i2].id]) - point;\n sum += a / Math.sqrt(a * a + C2);\n }\n }\n return sum;\n };\n\n // doubly differentiated sum of lengths based on only moving one node over one axis\n var getDFx = function getDFx(point, edges) {\n var sum = 0;\n for (var _i3 = 0; _i3 < edges.length; _i3++) {\n if (referenceNodes[edges[_i3].id] !== undefined) {\n var a = _this3.direction.getPosition(referenceNodes[edges[_i3].id]) - point;\n sum -= C2 * Math.pow(a * a + C2, -1.5);\n }\n }\n return sum;\n };\n var getGuess = function getGuess(iterations, edges) {\n var guess = _this3.direction.getPosition(node);\n // Newton's method for optimization\n var guessMap = {};\n for (var _i4 = 0; _i4 < iterations; _i4++) {\n var fx = getFx(guess, edges);\n var dfx = getDFx(guess, edges);\n\n // we limit the movement to avoid instability.\n var limit = 40;\n var ratio = Math.max(-limit, Math.min(limit, Math.round(fx / dfx)));\n guess = guess - ratio;\n // reduce duplicates\n if (guessMap[guess] !== undefined) {\n break;\n }\n guessMap[guess] = _i4;\n }\n return guess;\n };\n var moveBranch = function moveBranch(guess) {\n // position node if there is space\n var nodePosition = _this3.direction.getPosition(node);\n\n // check movable area of the branch\n if (branches[node.id] === undefined) {\n var branchNodes = {};\n getBranchNodes(node, branchNodes);\n branches[node.id] = branchNodes;\n }\n var branchBoundary = getBranchBoundary(branches[node.id]);\n var minSpaceBranch = branchBoundary[2];\n var maxSpaceBranch = branchBoundary[3];\n var diff = guess - nodePosition;\n\n // check if we are allowed to move the node:\n var branchOffset = 0;\n if (diff > 0) {\n branchOffset = Math.min(diff, maxSpaceBranch - _this3.options.hierarchical.nodeSpacing);\n } else if (diff < 0) {\n branchOffset = -Math.min(-diff, minSpaceBranch - _this3.options.hierarchical.nodeSpacing);\n }\n if (branchOffset != 0) {\n //console.log(\"moving branch:\",branchOffset, maxSpaceBranch, minSpaceBranch)\n _this3._shiftBlock(node.id, branchOffset);\n //this.body.emitter.emit(\"_redraw\");\n stillShifting = true;\n }\n };\n var moveNode = function moveNode(guess) {\n var nodePosition = _this3.direction.getPosition(node);\n\n // position node if there is space\n var _this3$_getSpaceAroun3 = _this3._getSpaceAroundNode(node),\n _this3$_getSpaceAroun4 = _slicedToArray(_this3$_getSpaceAroun3, 2),\n minSpace = _this3$_getSpaceAroun4[0],\n maxSpace = _this3$_getSpaceAroun4[1];\n var diff = guess - nodePosition;\n // check if we are allowed to move the node:\n var newPosition = nodePosition;\n if (diff > 0) {\n newPosition = Math.min(nodePosition + (maxSpace - _this3.options.hierarchical.nodeSpacing), guess);\n } else if (diff < 0) {\n newPosition = Math.max(nodePosition - (minSpace - _this3.options.hierarchical.nodeSpacing), guess);\n }\n if (newPosition !== nodePosition) {\n //console.log(\"moving Node:\",diff, minSpace, maxSpace);\n _this3.direction.setPosition(node, newPosition);\n //this.body.emitter.emit(\"_redraw\");\n stillShifting = true;\n }\n };\n var guess = getGuess(iterations, aboveEdges);\n moveBranch(guess);\n guess = getGuess(iterations, allEdges);\n moveNode(guess);\n //})\n };\n\n // method to remove whitespace between branches. Because we do bottom up, we can center the parents.\n var minimizeEdgeLengthBottomUp = function minimizeEdgeLengthBottomUp(iterations) {\n var levels = _this3.hierarchical.getLevels();\n levels = _reverseInstanceProperty(levels).call(levels);\n for (var i = 0; i < iterations; i++) {\n stillShifting = false;\n for (var j = 0; j < levels.length; j++) {\n var level = levels[j];\n var levelNodes = _this3.hierarchical.distributionOrdering[level];\n for (var k = 0; k < levelNodes.length; k++) {\n minimizeEdgeLength(1000, levelNodes[k]);\n }\n }\n if (stillShifting !== true) {\n //console.log(\"FINISHED minimizeEdgeLengthBottomUp IN \" + i);\n break;\n }\n }\n };\n\n // method to remove whitespace between branches. Because we do bottom up, we can center the parents.\n var shiftBranchesCloserBottomUp = function shiftBranchesCloserBottomUp(iterations) {\n var levels = _this3.hierarchical.getLevels();\n levels = _reverseInstanceProperty(levels).call(levels);\n for (var i = 0; i < iterations; i++) {\n stillShifting = false;\n shiftElementsCloser(branchShiftCallback, levels, true);\n if (stillShifting !== true) {\n //console.log(\"FINISHED shiftBranchesCloserBottomUp IN \" + (i+1));\n break;\n }\n }\n };\n\n // center all parents\n var centerAllParents = function centerAllParents() {\n for (var nodeId in _this3.body.nodes) {\n if (Object.prototype.hasOwnProperty.call(_this3.body.nodes, nodeId)) _this3._centerParent(_this3.body.nodes[nodeId]);\n }\n };\n\n // center all parents\n var centerAllParentsBottomUp = function centerAllParentsBottomUp() {\n var levels = _this3.hierarchical.getLevels();\n levels = _reverseInstanceProperty(levels).call(levels);\n for (var i = 0; i < levels.length; i++) {\n var level = levels[i];\n var levelNodes = _this3.hierarchical.distributionOrdering[level];\n for (var j = 0; j < levelNodes.length; j++) {\n _this3._centerParent(levelNodes[j]);\n }\n }\n };\n\n // the actual work is done here.\n if (this.options.hierarchical.blockShifting === true) {\n shiftBranchesCloserBottomUp(5);\n centerAllParents();\n }\n\n // minimize edge length\n if (this.options.hierarchical.edgeMinimization === true) {\n minimizeEdgeLengthBottomUp(20);\n }\n if (this.options.hierarchical.parentCentralization === true) {\n centerAllParentsBottomUp();\n }\n shiftTrees();\n }\n\n /**\n * This gives the space around the node. IF a map is supplied, it will only check against nodes NOT in the map.\n * This is used to only get the distances to nodes outside of a branch.\n *\n * @param {Node} node\n * @param {{Node.id: vis.Node}} map\n * @returns {number[]}\n * @private\n */\n }, {\n key: \"_getSpaceAroundNode\",\n value: function _getSpaceAroundNode(node, map) {\n var useMap = true;\n if (map === undefined) {\n useMap = false;\n }\n var level = this.hierarchical.levels[node.id];\n if (level !== undefined) {\n var index = this.hierarchical.distributionIndex[node.id];\n var position = this.direction.getPosition(node);\n var ordering = this.hierarchical.distributionOrdering[level];\n var minSpace = 1e9;\n var maxSpace = 1e9;\n if (index !== 0) {\n var prevNode = ordering[index - 1];\n if (useMap === true && map[prevNode.id] === undefined || useMap === false) {\n var prevPos = this.direction.getPosition(prevNode);\n minSpace = position - prevPos;\n }\n }\n if (index != ordering.length - 1) {\n var nextNode = ordering[index + 1];\n if (useMap === true && map[nextNode.id] === undefined || useMap === false) {\n var nextPos = this.direction.getPosition(nextNode);\n maxSpace = Math.min(maxSpace, nextPos - position);\n }\n }\n return [minSpace, maxSpace];\n } else {\n return [0, 0];\n }\n }\n\n /**\n * We use this method to center a parent node and check if it does not cross other nodes when it does.\n *\n * @param {Node} node\n * @private\n */\n }, {\n key: \"_centerParent\",\n value: function _centerParent(node) {\n if (this.hierarchical.parentReference[node.id]) {\n var parents = this.hierarchical.parentReference[node.id];\n for (var i = 0; i < parents.length; i++) {\n var parentId = parents[i];\n var parentNode = this.body.nodes[parentId];\n var children = this.hierarchical.childrenReference[parentId];\n if (children !== undefined) {\n // get the range of the children\n var newPosition = this._getCenterPosition(children);\n var position = this.direction.getPosition(parentNode);\n var _this$_getSpaceAround = this._getSpaceAroundNode(parentNode),\n _this$_getSpaceAround2 = _slicedToArray(_this$_getSpaceAround, 2),\n minSpace = _this$_getSpaceAround2[0],\n maxSpace = _this$_getSpaceAround2[1];\n var diff = position - newPosition;\n if (diff < 0 && Math.abs(diff) < maxSpace - this.options.hierarchical.nodeSpacing || diff > 0 && Math.abs(diff) < minSpace - this.options.hierarchical.nodeSpacing) {\n this.direction.setPosition(parentNode, newPosition);\n }\n }\n }\n }\n }\n\n /**\n * This function places the nodes on the canvas based on the hierarchial distribution.\n *\n * @param {object} distribution | obtained by the function this._getDistribution()\n * @private\n */\n }, {\n key: \"_placeNodesByHierarchy\",\n value: function _placeNodesByHierarchy(distribution) {\n this.positionedNodes = {};\n // start placing all the level 0 nodes first. Then recursively position their branches.\n for (var level in distribution) {\n if (Object.prototype.hasOwnProperty.call(distribution, level)) {\n var _context;\n // sort nodes in level by position:\n var nodeArray = _Object$keys(distribution[level]);\n nodeArray = this._indexArrayToNodes(nodeArray);\n _sortInstanceProperty(_context = this.direction).call(_context, nodeArray);\n var handledNodeCount = 0;\n for (var i = 0; i < nodeArray.length; i++) {\n var node = nodeArray[i];\n if (this.positionedNodes[node.id] === undefined) {\n var spacing = this.options.hierarchical.nodeSpacing;\n var pos = spacing * handledNodeCount;\n // We get the X or Y values we need and store them in pos and previousPos.\n // The get and set make sure we get X or Y\n if (handledNodeCount > 0) {\n pos = this.direction.getPosition(nodeArray[i - 1]) + spacing;\n }\n this.direction.setPosition(node, pos, level);\n this._validatePositionAndContinue(node, level, pos);\n handledNodeCount++;\n }\n }\n }\n }\n }\n\n /**\n * This is a recursively called function to enumerate the branches from the largest hubs and place the nodes\n * on a X position that ensures there will be no overlap.\n *\n * @param {Node.id} parentId\n * @param {number} parentLevel\n * @private\n */\n }, {\n key: \"_placeBranchNodes\",\n value: function _placeBranchNodes(parentId, parentLevel) {\n var _context2;\n var childRef = this.hierarchical.childrenReference[parentId];\n\n // if this is not a parent, cancel the placing. This can happen with multiple parents to one child.\n if (childRef === undefined) {\n return;\n }\n\n // get a list of childNodes\n var childNodes = [];\n for (var i = 0; i < childRef.length; i++) {\n childNodes.push(this.body.nodes[childRef[i]]);\n }\n\n // use the positions to order the nodes.\n _sortInstanceProperty(_context2 = this.direction).call(_context2, childNodes);\n\n // position the childNodes\n for (var _i5 = 0; _i5 < childNodes.length; _i5++) {\n var childNode = childNodes[_i5];\n var childNodeLevel = this.hierarchical.levels[childNode.id];\n // check if the child node is below the parent node and if it has already been positioned.\n if (childNodeLevel > parentLevel && this.positionedNodes[childNode.id] === undefined) {\n // get the amount of space required for this node. If parent the width is based on the amount of children.\n var spacing = this.options.hierarchical.nodeSpacing;\n var pos = void 0;\n\n // we get the X or Y values we need and store them in pos and previousPos.\n // The get and set make sure we get X or Y\n if (_i5 === 0) {\n pos = this.direction.getPosition(this.body.nodes[parentId]);\n } else {\n pos = this.direction.getPosition(childNodes[_i5 - 1]) + spacing;\n }\n this.direction.setPosition(childNode, pos, childNodeLevel);\n this._validatePositionAndContinue(childNode, childNodeLevel, pos);\n } else {\n return;\n }\n }\n\n // center the parent nodes.\n var center = this._getCenterPosition(childNodes);\n this.direction.setPosition(this.body.nodes[parentId], center, parentLevel);\n }\n\n /**\n * This method checks for overlap and if required shifts the branch. It also keeps records of positioned nodes.\n * Finally it will call _placeBranchNodes to place the branch nodes.\n *\n * @param {Node} node\n * @param {number} level\n * @param {number} pos\n * @private\n */\n }, {\n key: \"_validatePositionAndContinue\",\n value: function _validatePositionAndContinue(node, level, pos) {\n // This method only works for formal trees and formal forests\n // Early exit if this is not the case\n if (!this.hierarchical.isTree) return;\n\n // if overlap has been detected, we shift the branch\n if (this.lastNodeOnLevel[level] !== undefined) {\n var previousPos = this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[level]]);\n if (pos - previousPos < this.options.hierarchical.nodeSpacing) {\n var diff = previousPos + this.options.hierarchical.nodeSpacing - pos;\n var sharedParent = this._findCommonParent(this.lastNodeOnLevel[level], node.id);\n this._shiftBlock(sharedParent.withChild, diff);\n }\n }\n this.lastNodeOnLevel[level] = node.id; // store change in position.\n this.positionedNodes[node.id] = true;\n this._placeBranchNodes(node.id, level);\n }\n\n /**\n * Receives an array with node indices and returns an array with the actual node references.\n * Used for sorting based on node properties.\n *\n * @param {Array.} idArray\n * @returns {Array.}\n */\n }, {\n key: \"_indexArrayToNodes\",\n value: function _indexArrayToNodes(idArray) {\n var array = [];\n for (var i = 0; i < idArray.length; i++) {\n array.push(this.body.nodes[idArray[i]]);\n }\n return array;\n }\n\n /**\n * This function get the distribution of levels based on hubsize\n *\n * @returns {object}\n * @private\n */\n }, {\n key: \"_getDistribution\",\n value: function _getDistribution() {\n var distribution = {};\n var nodeId, node;\n\n // we fix Y because the hierarchy is vertical,\n // we fix X so we do not give a node an x position for a second time.\n // the fix of X is removed after the x value has been set.\n for (nodeId in this.body.nodes) {\n if (Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId)) {\n node = this.body.nodes[nodeId];\n var level = this.hierarchical.levels[nodeId] === undefined ? 0 : this.hierarchical.levels[nodeId];\n this.direction.fix(node, level);\n if (distribution[level] === undefined) {\n distribution[level] = {};\n }\n distribution[level][nodeId] = node;\n }\n }\n return distribution;\n }\n\n /**\n * Return the active (i.e. visible) edges for this node\n *\n * @param {Node} node\n * @returns {Array.} Array of edge instances\n * @private\n */\n }, {\n key: \"_getActiveEdges\",\n value: function _getActiveEdges(node) {\n var _this4 = this;\n var result = [];\n forEach$5(node.edges, function (edge) {\n var _context3;\n if (_indexOfInstanceProperty(_context3 = _this4.body.edgeIndices).call(_context3, edge.id) !== -1) {\n result.push(edge);\n }\n });\n return result;\n }\n\n /**\n * Get the hubsizes for all active nodes.\n *\n * @returns {number}\n * @private\n */\n }, {\n key: \"_getHubSizes\",\n value: function _getHubSizes() {\n var _this5 = this;\n var hubSizes = {};\n var nodeIds = this.body.nodeIndices;\n forEach$5(nodeIds, function (nodeId) {\n var node = _this5.body.nodes[nodeId];\n var hubSize = _this5._getActiveEdges(node).length;\n hubSizes[hubSize] = true;\n });\n\n // Make an array of the size sorted descending\n var result = [];\n forEach$5(hubSizes, function (size) {\n result.push(Number(size));\n });\n _sortInstanceProperty(TimSort).call(TimSort, result, function (a, b) {\n return b - a;\n });\n return result;\n }\n\n /**\n * this function allocates nodes in levels based on the recursive branching from the largest hubs.\n *\n * @private\n */\n }, {\n key: \"_determineLevelsByHubsize\",\n value: function _determineLevelsByHubsize() {\n var _this6 = this;\n var levelDownstream = function levelDownstream(nodeA, nodeB) {\n _this6.hierarchical.levelDownstream(nodeA, nodeB);\n };\n var hubSizes = this._getHubSizes();\n var _loop = function _loop() {\n var hubSize = hubSizes[i];\n if (hubSize === 0) return \"break\";\n forEach$5(_this6.body.nodeIndices, function (nodeId) {\n var node = _this6.body.nodes[nodeId];\n if (hubSize === _this6._getActiveEdges(node).length) {\n _this6._crawlNetwork(levelDownstream, nodeId);\n }\n });\n };\n for (var i = 0; i < hubSizes.length; ++i) {\n var _ret = _loop();\n if (_ret === \"break\") break;\n }\n }\n\n /**\n * TODO: release feature\n * TODO: Determine if this feature is needed at all\n *\n * @private\n */\n }, {\n key: \"_determineLevelsCustomCallback\",\n value: function _determineLevelsCustomCallback() {\n var _this7 = this;\n var minLevel = 100000;\n\n // TODO: this should come from options.\n // eslint-disable-next-line no-unused-vars -- This should eventually be implemented with these parameters used.\n var customCallback = function customCallback(nodeA, nodeB, edge) {};\n\n // TODO: perhaps move to HierarchicalStatus.\n // But I currently don't see the point, this method is not used.\n var levelByDirection = function levelByDirection(nodeA, nodeB, edge) {\n var levelA = _this7.hierarchical.levels[nodeA.id];\n // set initial level\n if (levelA === undefined) {\n levelA = _this7.hierarchical.levels[nodeA.id] = minLevel;\n }\n var diff = customCallback(NetworkUtil.cloneOptions(nodeA, \"node\"), NetworkUtil.cloneOptions(nodeB, \"node\"), NetworkUtil.cloneOptions(edge, \"edge\"));\n _this7.hierarchical.levels[nodeB.id] = levelA + diff;\n };\n this._crawlNetwork(levelByDirection);\n this.hierarchical.setMinLevelToZero(this.body.nodes);\n }\n\n /**\n * Allocate nodes in levels based on the direction of the edges.\n *\n * @private\n */\n }, {\n key: \"_determineLevelsDirected\",\n value: function _determineLevelsDirected() {\n var _context4,\n _this8 = this;\n var nodes = _reduceInstanceProperty(_context4 = this.body.nodeIndices).call(_context4, function (acc, id) {\n acc.set(id, _this8.body.nodes[id]);\n return acc;\n }, new _Map());\n if (this.options.hierarchical.shakeTowards === \"roots\") {\n this.hierarchical.levels = fillLevelsByDirectionRoots(nodes);\n } else {\n this.hierarchical.levels = fillLevelsByDirectionLeaves(nodes);\n }\n this.hierarchical.setMinLevelToZero(this.body.nodes);\n }\n\n /**\n * Update the bookkeeping of parent and child.\n *\n * @private\n */\n }, {\n key: \"_generateMap\",\n value: function _generateMap() {\n var _this9 = this;\n var fillInRelations = function fillInRelations(parentNode, childNode) {\n if (_this9.hierarchical.levels[childNode.id] > _this9.hierarchical.levels[parentNode.id]) {\n _this9.hierarchical.addRelation(parentNode.id, childNode.id);\n }\n };\n this._crawlNetwork(fillInRelations);\n this.hierarchical.checkIfTree();\n }\n\n /**\n * Crawl over the entire network and use a callback on each node couple that is connected to each other.\n *\n * @param {Function} [callback=function(){}] | will receive nodeA, nodeB and the connecting edge. A and B are distinct.\n * @param {Node.id} startingNodeId\n * @private\n */\n }, {\n key: \"_crawlNetwork\",\n value: function _crawlNetwork() {\n var _this10 = this;\n var callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {};\n var startingNodeId = arguments.length > 1 ? arguments[1] : undefined;\n var progress = {};\n var crawler = function crawler(node, tree) {\n if (progress[node.id] === undefined) {\n _this10.hierarchical.setTreeIndex(node, tree);\n progress[node.id] = true;\n var childNode;\n var edges = _this10._getActiveEdges(node);\n for (var i = 0; i < edges.length; i++) {\n var edge = edges[i];\n if (edge.connected === true) {\n if (edge.toId == node.id) {\n // Not '===' because id's can be string and numeric\n childNode = edge.from;\n } else {\n childNode = edge.to;\n }\n if (node.id != childNode.id) {\n // Not '!==' because id's can be string and numeric\n callback(node, childNode, edge);\n crawler(childNode, tree);\n }\n }\n }\n }\n };\n if (startingNodeId === undefined) {\n // Crawl over all nodes\n var treeIndex = 0; // Serves to pass a unique id for the current distinct tree\n\n for (var i = 0; i < this.body.nodeIndices.length; i++) {\n var nodeId = this.body.nodeIndices[i];\n if (progress[nodeId] === undefined) {\n var node = this.body.nodes[nodeId];\n crawler(node, treeIndex);\n treeIndex += 1;\n }\n }\n } else {\n // Crawl from the given starting node\n var _node2 = this.body.nodes[startingNodeId];\n if (_node2 === undefined) {\n console.error(\"Node not found:\", startingNodeId);\n return;\n }\n crawler(_node2);\n }\n }\n\n /**\n * Shift a branch a certain distance\n *\n * @param {Node.id} parentId\n * @param {number} diff\n * @private\n */\n }, {\n key: \"_shiftBlock\",\n value: function _shiftBlock(parentId, diff) {\n var _this11 = this;\n var progress = {};\n var shifter = function shifter(parentId) {\n if (progress[parentId]) {\n return;\n }\n progress[parentId] = true;\n _this11.direction.shift(parentId, diff);\n var childRef = _this11.hierarchical.childrenReference[parentId];\n if (childRef !== undefined) {\n for (var i = 0; i < childRef.length; i++) {\n shifter(childRef[i]);\n }\n }\n };\n shifter(parentId);\n }\n\n /**\n * Find a common parent between branches.\n *\n * @param {Node.id} childA\n * @param {Node.id} childB\n * @returns {{foundParent, withChild}}\n * @private\n */\n }, {\n key: \"_findCommonParent\",\n value: function _findCommonParent(childA, childB) {\n var _this12 = this;\n var parents = {};\n var iterateParents = function iterateParents(parents, child) {\n var parentRef = _this12.hierarchical.parentReference[child];\n if (parentRef !== undefined) {\n for (var i = 0; i < parentRef.length; i++) {\n var parent = parentRef[i];\n parents[parent] = true;\n iterateParents(parents, parent);\n }\n }\n };\n var findParent = function findParent(parents, child) {\n var parentRef = _this12.hierarchical.parentReference[child];\n if (parentRef !== undefined) {\n for (var i = 0; i < parentRef.length; i++) {\n var parent = parentRef[i];\n if (parents[parent] !== undefined) {\n return {\n foundParent: parent,\n withChild: child\n };\n }\n var branch = findParent(parents, parent);\n if (branch.foundParent !== null) {\n return branch;\n }\n }\n }\n return {\n foundParent: null,\n withChild: child\n };\n };\n iterateParents(parents, childA);\n return findParent(parents, childB);\n }\n\n /**\n * Set the strategy pattern for handling the coordinates given the current direction.\n *\n * The individual instances contain all the operations and data specific to a layout direction.\n *\n * @param {Node} node\n * @param {{x: number, y: number}} position\n * @param {number} level\n * @param {boolean} [doNotUpdate=false]\n * @private\n */\n }, {\n key: \"setDirectionStrategy\",\n value: function setDirectionStrategy() {\n var isVertical = this.options.hierarchical.direction === \"UD\" || this.options.hierarchical.direction === \"DU\";\n if (isVertical) {\n this.direction = new VerticalStrategy(this);\n } else {\n this.direction = new HorizontalStrategy(this);\n }\n }\n\n /**\n * Determine the center position of a branch from the passed list of child nodes\n *\n * This takes into account the positions of all the child nodes.\n *\n * @param {Array.} childNodes Array of either child nodes or node id's\n * @returns {number}\n * @private\n */\n }, {\n key: \"_getCenterPosition\",\n value: function _getCenterPosition(childNodes) {\n var minPos = 1e9;\n var maxPos = -1e9;\n for (var i = 0; i < childNodes.length; i++) {\n var childNode = void 0;\n if (childNodes[i].id !== undefined) {\n childNode = childNodes[i];\n } else {\n var childNodeId = childNodes[i];\n childNode = this.body.nodes[childNodeId];\n }\n var position = this.direction.getPosition(childNode);\n minPos = Math.min(minPos, position);\n maxPos = Math.max(maxPos, position);\n }\n return 0.5 * (minPos + maxPos);\n }\n }]);\n return LayoutEngine;\n}();\n\nvar css_248z = \"div.vis-network div.vis-manipulation {\\n box-sizing: content-box;\\n\\n border-width: 0;\\n border-bottom: 1px;\\n border-style: solid;\\n border-color: #d6d9d8;\\n background: #ffffff; /* Old browsers */\\n background: -moz-linear-gradient(\\n top,\\n #ffffff 0%,\\n #fcfcfc 48%,\\n #fafafa 50%,\\n #fcfcfc 100%\\n ); /* FF3.6+ */\\n background: -webkit-gradient(\\n linear,\\n left top,\\n left bottom,\\n color-stop(0%, #ffffff),\\n color-stop(48%, #fcfcfc),\\n color-stop(50%, #fafafa),\\n color-stop(100%, #fcfcfc)\\n ); /* Chrome,Safari4+ */\\n background: -webkit-linear-gradient(\\n top,\\n #ffffff 0%,\\n #fcfcfc 48%,\\n #fafafa 50%,\\n #fcfcfc 100%\\n ); /* Chrome10+,Safari5.1+ */\\n background: -o-linear-gradient(\\n top,\\n #ffffff 0%,\\n #fcfcfc 48%,\\n #fafafa 50%,\\n #fcfcfc 100%\\n ); /* Opera 11.10+ */\\n background: -ms-linear-gradient(\\n top,\\n #ffffff 0%,\\n #fcfcfc 48%,\\n #fafafa 50%,\\n #fcfcfc 100%\\n ); /* IE10+ */\\n background: linear-gradient(\\n to bottom,\\n #ffffff 0%,\\n #fcfcfc 48%,\\n #fafafa 50%,\\n #fcfcfc 100%\\n ); /* W3C */\\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#fcfcfc',GradientType=0 ); /* IE6-9 */\\n\\n padding-top: 4px;\\n position: absolute;\\n left: 0;\\n top: 0;\\n width: 100%;\\n height: 28px;\\n}\\n\\ndiv.vis-network div.vis-edit-mode,\\ndiv.vis-network button.vis-edit-mode {\\n position: absolute;\\n left: 0;\\n top: 5px;\\n height: 30px;\\n}\\n\\n/* FIXME: shouldn't the vis-close button be a child of the vis-manipulation div? */\\n\\ndiv.vis-network button.vis-close {\\n position: absolute;\\n right: 0;\\n top: 0;\\n width: 30px;\\n height: 30px;\\n\\n background-color: transparent;\\n background-position: 20px 3px;\\n background-repeat: no-repeat;\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC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jaGFuZ2VkPgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6U2VxPgogICAgICAgICA8L3htcE1NOkhpc3Rvcnk+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgICAgIDxwaG90b3Nob3A6Q29sb3JNb2RlPjM8L3Bob3Rvc2hvcDpDb2xvck1vZGU+CiAgICAgICAgIDxwaG90b3Nob3A6SUNDUHJvZmlsZT5zUkdCIElFQzYxOTY2LTIuMTwvcGhvdG9zaG9wOklDQ1Byb2ZpbGU+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDAwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjc8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+NzwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+cZUZMwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAA2ElEQVR42gDLADT/AS0tLUQFBQUVFxcXtPHx8fPl5eUNCAgITCkpKesEHx8fGgYGBjH+/v4a+Pj4qgQEBFU6OjodMTExzwQUFBSvEBAQEfX19SD19fVqNDQ0CElJSd/9/f2vAwEBAfrn5+fkBwcHLRYWFgsXFxfz29vbo9LS0uwDDQ0NDfPz81orKysXIyMj+ODg4Avh4eEa/f391gMkJCRYPz8/KUhISOMCAgKh8fHxHRsbGx4UFBQQBDk5OeY7Ozv7CAgItPb29vMEBASaJSUlTQ0NDesDAEwpT0Ko8Ri2AAAAAElFTkSuQmCC');\\n border: none;\\n cursor: pointer;\\n -webkit-touch-callout: none;\\n -webkit-user-select: none;\\n -khtml-user-select: none;\\n -moz-user-select: none;\\n -ms-user-select: none;\\n user-select: none;\\n}\\n\\ndiv.vis-network button.vis-close:hover {\\n opacity: 0.6;\\n}\\n\\ndiv.vis-network div.vis-manipulation button.vis-button,\\ndiv.vis-network div.vis-edit-mode button.vis-button {\\n float: left;\\n font-family: verdana;\\n font-size: 12px;\\n border: none;\\n box-sizing: content-box;\\n -moz-border-radius: 15px;\\n border-radius: 15px;\\n background-color: transparent;\\n background-position: 0px 0px;\\n background-repeat: no-repeat;\\n height: 24px;\\n margin-left: 10px;\\n cursor: pointer;\\n padding: 0px 8px 0px 8px;\\n -webkit-touch-callout: none;\\n -webkit-user-select: none;\\n -khtml-user-select: none;\\n -moz-user-select: none;\\n -ms-user-select: none;\\n user-select: none;\\n}\\n\\ndiv.vis-network div.vis-manipulation button.vis-button:hover {\\n box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.2);\\n}\\n\\ndiv.vis-network div.vis-manipulation button.vis-button:active {\\n box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);\\n}\\n\\ndiv.vis-network div.vis-manipulation button.vis-button.vis-back {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGA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2hvcDpDb2xvck1vZGU+CiAgICAgICAgIDxwaG90b3Nob3A6SUNDUHJvZmlsZT5zUkdCIElFQzYxOTY2LTIuMTwvcGhvdG9zaG9wOklDQ1Byb2ZpbGU+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDA5MC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDkwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4jq1U/AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAVTSURBVHjanFVfTFNnFP+d77ve8qeVFbBrpcVgRrCRFikFByLxwSAaE32oRCHD6JMxxhhn8G2RxxH3MsOTbyYsmCAxPMmMMYtkIUYmK60OO0qAK23BFlNob0uh3x7WS5jLZPpLbm6+k/P9zrm5v9855PF4UFhYCABgjIExBgAgIqRSqRIi6gDQRkQ1RGTB3wgR0e8AHgH4Sa/XR/EBiAiJRAJ04cIF5Ofng4g2n0gkUkxENwF0c843LzHGQEQQQkCLExEA9ALotVgsUQAQQmgNQhJCbF5kjCEUCl0moj4t5na7fTU1NUpVVVXUYrEkASAcDhe8efOmxOfzWScmJqoBdBNR99LS0hWz2dynNSSEAF28eBGFhYVgjCEcDn9HRD1EhIMHD3o9Hs9kWVlZAh9BKBQqGB4edr58+dKZ+6JbJpOpBwBWV1fB6+rqIMsyIpHIFcZYL2MMra2tY5cuXRrfuXNnBtvAYDBk3G63oqpqZm5uzgrgSDKZjBoMhueZTAbc5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BgD5xzv3r27zBjrIyJIkgSHwzFZWVmp7NmzJ1ZaWpoAgGg0WqgoSvHMzIw1GAw6tvjhitFo7NPW5fv370Hd3d0oKCgA53zTQMvLy+VCiKuSJH0rSdLmztZytIWv5RPRD0T0Y3Fx8dzWfby6ugopHo//w4mcc8iyPMc5v5FOp7/PZrOdQohWInIC2C2EgBBigYi8Qoifs9lsv06nWyIiaFxagXg8jr8GAGxuIe7LBeWhAAAAAElFTkSuQmCC');\\n}\\n\\ndiv.vis-network div.vis-manipulation div.vis-none:hover {\\n box-shadow: 1px 1px 8px rgba(0, 0, 0, 0);\\n cursor: default;\\n}\\ndiv.vis-network div.vis-manipulation div.vis-none:active {\\n box-shadow: 1px 1px 8px rgba(0, 0, 0, 0);\\n}\\ndiv.vis-network div.vis-manipulation div.vis-none {\\n padding: 0px;\\n line-height: 23px;\\n}\\ndiv.vis-network div.vis-manipulation div.notification {\\n margin: 2px;\\n font-weight: bold;\\n}\\n\\ndiv.vis-network div.vis-manipulation button.vis-button.vis-add {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8u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0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDA5MC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDkwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5WKqp9AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAYXSURBVHjafFZtUFTXGX7e9z27sveuMCwYV8ElrA7YSFYHtJUPkaaI0aRqG8wP00zUzljDINNSA/2ROtpO24SxnahlxjYd7SSjmUkymcxYlDhQPzHGisEVp8HwYWCVVVgEsrsuLnL74+5uqTF9Z+7cO/d8PO95zvO851BlZSV0XQcAMDOYGQBARDhX3JRmMDYZwLPMWAzGHACYIgwS46oBNBNwtOL8CwE8EkSEUCgE2rJlC2w2G4go8Zwo/bMDgnoG6gxLfAAAYvPDMCCszKTAMIAGAhrWnf15AAAMwwARIRKJgDZv3gy73Q4iAjPjxIr9VVOMRhbAYKB8zvrO0llrfEsdKwLZek6YAPSFvtSu3GtLawu0ZJ6625SHGBQB1T88t6MxvopgMAjaunUrdF0HM+P4yv27DMYeJmB1RqW3Jnf3tQX2p0L4P9EXuqEd7PmDp+XuMU9sRbvXnnt1TxxACgoKYLVacbzsQDUJGkSATe6qi28uPtzusM6Kxie6NHLGUX3lxVUNX9StPHnn4wy3njuUYcu6n2pNi66avcEXnByP/nv8aiaIyrqz2gO5A9+9FI1GIfn5+WhZdTAdjFMkwMvZOy7uWnTAOz3L4Yk71m3t69fdfTDoUGTBeHTUfiHQ6lo7Z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28dalpOpkRryrwbhwBACgsLMWPGDOT4ll3qyeqAkJTdCF7P/CrUY/GkLL1rE+2hTbSH8+0Lb/WEuhzhyaA905blf9Vd/895WnZwLHrPevir/cvOB1oLYpTtLrm6oYGIMDExAaqtrUVKSgqYGSKCk0WHq5ikkWEWtNL0imv5qUW+RclLRjJsrhBAuH1/QL8R7HR4xy5nescuP23E6hOA6mLv+sb4uTw6Ogqqq6uDpmkQkcStorX4XRcM1FjZ+kvFFjCJKU1WpkNJJUqIMtX1RyLeX3JtQ0JRhmGYZ/L27duRnJycuFGISOJ9pqh5lrB6iYgqGOxRrOaa54DcZmKvkJxk8JHC9rKh+KVhOsD4+Dj+MwADIf8n5m4xGwAAAABJRU5ErkJggg==');\\n}\\n\\ndiv.vis-network div.vis-manipulation button.vis-button.vis-edit,\\ndiv.vis-network div.vis-edit-mode button.vis-button.vis-edit {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62D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cyMDA5MC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDkwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4ykninAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAYpSURBVHjafFZtTFvnFX7Oea+NudiY2Hwam4CBlgQwXdKREDKUoYg0jbRJ29RJ2VZ1mjRFUxSpA3VTfkzJfkQbS7spU6rtx5Z2UtppScjaHxvLuiatWi2jLEoMIUDCh23g2gbj7+tPuPvhOurawPl1dc99n+c55z33fV46ceIEZFkGADAziAgAQERoe/9ZK4GPM/AcgbsIXAcABCgMvkfAqAa89eDoJyF8LogIqqqChoaGYDAYHr8kItS8uc8iIH6iAa9IkAo5EAQX8pqmgUVBCBggYFgDhv0/GAsBgKZpICJkMhnQ4OAgZFkGEYGZUXmp+0cS+CKBwWA0DVRPOg5Zl2q6zaHyJlnVAMQXVTkwHrUqH0Xsvn+tdQAAMQDgpPLS2MViFY8rkGUZzIzaS/t/xqCzGggtz9e697zsnKhoLUtim4jOq/LE6x7X0nsh16dEZ5a/O3a2SCAOHjwInU6Hujd6ThJ4mCDQ+b2G232v7v6vwarPbQn8MGlMr+X0kpE3Wr5Zt5hL5HPhqYSdQIfKJ+yhxDPKWC6Xg+jt7UXD5b5KBt1kCHS85Ljd8/On3NupfnhFaZj4rWff1B98B1R/hnUmKd36bdtCNl4g0en4edNE/cXwLq8qMTMIPAQwmo/WuHvObA8+9c58k/dKtD0TyZWXN5YGA7ej7epKxspM//7SoNOdWc/Jyq2wiwhDzPxT8cP0jys3VMM7OmL0/77zn4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DAoehs0h73pHTWrvKgThYbRSt9UmSjef3MpaUvBz4O72UmADgTOPJguGiZor+/HyUlJWBmJFz+D8xTtlUiOpbwpmrmrweeSXrT+g11k4SBN3RGKUcAVCVdFhyP1nreDbY//NPyEXUlU/Pp4XYycGT6V0Ux2WwWdO7cOZSWlkII8diX7SPPNgDaKdbxoNAxwATBAEkEEgSWCEQAqPAMwqvMdCEwMO0tVqZpWsGTT58+DaPR+PhGIYQAAAgh0P7B3ioW/B0iGiCGiwXbCuOHFSJys6AbYFye2T+xWhT3WYJEIoH/DQBMw3kes8OJPgAAAABJRU5ErkJggg==');\\n}\\n\\ndiv.vis-network div.vis-edit-mode button.vis-button.vis-edit.vis-edit-mode {\\n background-color: #fcfcfc;\\n border: 1px solid #cccccc;\\n}\\n\\ndiv.vis-network div.vis-manipulation button.vis-button.vis-connect {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+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MDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDkwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4ubxs+AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAUtSURBVHjajJZ/bNT1Gcdfz/P53PV6B4W7VltLqdAaplIOiMOoyxxJCSs/Gv/yB4gzJroAosmmDklwkYWR0bQsdmkykoojTpcsWYLxD/lRZdMQkTHRtkLZRqG0tIVe7662vTu43n32x/VKZ/jh89cn38/zvN7P5/l88zwf2blzJz6fDwARQUSm1n8s31CM0/VAnbNmsUPuAsDpgEO+Bg4C7//iyv5hvmMiQiqVQpqamvB6vVNwEeG1JZtCBrYi/MrkAwDNgjhwAlbzICBLA0rDb0+/839C6XQaaWxspLCw8Dp86cbNmqVFJQddE6KzdjZ9D89g+B6fSyCOcyn1nxil+O9xKg5HqWFSHGXLjrP7W/ICqVQK2bNnDz6fDxFh65KNvxbHDhF4rJj2bXPo+IGfcW5h5xL4f99P+FCEMIAob75x9t0dAMlkElNXV4e1lteXbNqiQoMaeOFOjrdU868SD2luYyEP6dUh+sYmSHeOU6GO5Z8VLx5+NNZxIpPJ5AS2L3upROCoCvz8Lo7vnkf77cAHhpiz/zIL9vWz8L8p/NvupmM0Q7pjnAoLqz8tDrc8MnQqYVUVhVdF4LEg7b+rvDn8wDDlH0WoPpukLJImSBaMwjcJqmwWts2jPZLG/8kwYVFeVdXXZcFf4yVDc2cNKfBFmD9X+0ncCP58F48eG+Feo2CAUkvs4dl0V/uJvdXLiiV+ut++n7YLSfxPfMMG54ChzB3WIesVWB2i82b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-manipulation button.vis-button.vis-delete {\\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIku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tcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4aYJzYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAYGSURBVHjalJZ7UJTnFcZ/73m/72PdJY1RbhoQp6lkXRAvmIYxdCUadLVOozPNtGObap1JsKipjiShbdoRbeKEiQHpQK3xj0xa03aamTbaTGyAYV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74Kf6uJPqcicbfuond7cPy4SOiy7+tD9nFvZurx00KOk3CNEC+mE+vjSPBc7IWqgqTaPT60IMcO/xsXGa3HfKjRgRdbl7/KDg0jtubje6aHj7c7J3dgLQ2zoPwwQ91SooOQdAW1VKVMHty0kA5Bb48BycJn/LjWFGbLv4thvvb53kFvjJ+XEdWkPfjQVR/CcNKYgGMc8JWt5Fa2j+MIPPuyI2pa4IoHSkt6vLIuRaQ9q32khzt4GCxtNu6k46GeiIR2lIfDQQsafPzq1LGRGL9Gk9d+vrwewvfHPQOoexQVjxdB/auk/zmaUMdsfz6bVUtIalT7bxveP1ZHh6GPDPYeSzeD69kcpIfxymFWLNrka+ljhBTWkWwz2JiJT84YHnz2iPx0P20PkmRF5i6HYiwZFJsn/YzdezbzE3cQibY5xV266z6RfXohakb+xB9CjanCD9qTbW7Grk4WV38VZm0l6dhQiEw9taHSuDqrS0FIfDwXM3X9mHMsvRAk/sauDpQy38P+GtzOTGB9mEpkD0C2dS8n8zOjqK9ng8WJZFU+JTjasGvaCNXPpvJBPoMlm0OoDNMfWVxONfWNSUPUZ7TUQ56tCZlPwSgMnJSVRpaSmxsbFE1raw82ZxAZZRQUiBYUKGp5UlOX2krBzmoUVjiIKhHge9rfPo+Wcy3ZeXIYASgL1/X5RfMXMvj46OosrLy7HZbGitUUohIuzoem0RofALaOsghgWGjky0MiJTL8b0lOvI8hN1DKXKP0jd3TNTWDgcJhgMoo4ePYrD4Yi+KmaeLlprnrtXFo9h/AAlG1AqE8yFmBrC+jO0bgH9EVpO/1F2Dc5g//OAsbEx/j0Af+USsQynL1UAAAAASUVORK5CYII=');\\n}\\n/* top right bottom left */\\ndiv.vis-network div.vis-manipulation div.vis-label,\\ndiv.vis-network div.vis-edit-mode div.vis-label {\\n margin: 0 0 0 23px;\\n line-height: 25px;\\n}\\ndiv.vis-network div.vis-manipulation div.vis-separator-line {\\n float: left;\\n display: inline-block;\\n width: 1px;\\n height: 21px;\\n background-color: #bdbdbd;\\n margin: 0px 7px 0 15px; /*top right bottom left*/\\n}\\n\\n/* TODO: is this redundant?\\ndiv.network-navigation_wrapper {\\n position: absolute;\\n left: 0;\\n top: 0;\\n width: 100%;\\n height: 100%;\\n}\\n*/\\n\";\nstyleInject(css_248z);\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { var _context32; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context32 = Object.prototype.toString.call(o)).call(_context32, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from$1(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n/**\n * Clears the toolbar div element of children\n *\n * @private\n */\nvar ManipulationSystem = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {Canvas} canvas\n * @param {SelectionHandler} selectionHandler\n * @param {InteractionHandler} interactionHandler\n */\n function ManipulationSystem(body, canvas, selectionHandler, interactionHandler) {\n var _this = this,\n _context,\n _context2;\n _classCallCheck(this, ManipulationSystem);\n this.body = body;\n this.canvas = canvas;\n this.selectionHandler = selectionHandler;\n this.interactionHandler = interactionHandler;\n this.editMode = false;\n this.manipulationDiv = undefined;\n this.editModeDiv = undefined;\n this.closeDiv = undefined;\n this._domEventListenerCleanupQueue = [];\n this.temporaryUIFunctions = {};\n this.temporaryEventFunctions = [];\n this.touchTime = 0;\n this.temporaryIds = {\n nodes: [],\n edges: []\n };\n this.guiEnabled = false;\n this.inMode = false;\n this.selectedControlNode = undefined;\n this.options = {};\n this.defaultOptions = {\n enabled: false,\n initiallyActive: false,\n addNode: true,\n addEdge: true,\n editNode: undefined,\n editEdge: true,\n deleteNode: true,\n deleteEdge: true,\n controlNodeStyle: {\n shape: \"dot\",\n size: 6,\n color: {\n background: \"#ff0000\",\n border: \"#3c3c3c\",\n highlight: {\n background: \"#07f968\",\n border: \"#3c3c3c\"\n }\n },\n borderWidth: 2,\n borderWidthSelected: 2\n }\n };\n _Object$assign(this.options, this.defaultOptions);\n this.body.emitter.on(\"destroy\", function () {\n _this._clean();\n });\n this.body.emitter.on(\"_dataChanged\", _bindInstanceProperty$1(_context = this._restore).call(_context, this));\n this.body.emitter.on(\"_resetData\", _bindInstanceProperty$1(_context2 = this._restore).call(_context2, this));\n }\n\n /**\n * If something changes in the data during editing, switch back to the initial datamanipulation state and close all edit modes.\n *\n * @private\n */\n _createClass(ManipulationSystem, [{\n key: \"_restore\",\n value: function _restore() {\n if (this.inMode !== false) {\n if (this.options.initiallyActive === true) {\n this.enableEditMode();\n } else {\n this.disableEditMode();\n }\n }\n }\n\n /**\n * Set the Options\n *\n * @param {object} options\n * @param {object} allOptions\n * @param {object} globalOptions\n */\n }, {\n key: \"setOptions\",\n value: function setOptions(options, allOptions, globalOptions) {\n if (allOptions !== undefined) {\n if (allOptions.locale !== undefined) {\n this.options.locale = allOptions.locale;\n } else {\n this.options.locale = globalOptions.locale;\n }\n if (allOptions.locales !== undefined) {\n this.options.locales = allOptions.locales;\n } else {\n this.options.locales = globalOptions.locales;\n }\n }\n if (options !== undefined) {\n if (typeof options === \"boolean\") {\n this.options.enabled = options;\n } else {\n this.options.enabled = true;\n deepExtend(this.options, options);\n }\n if (this.options.initiallyActive === true) {\n this.editMode = true;\n }\n this._setup();\n }\n }\n\n /**\n * Enable or disable edit-mode. Draws the DOM required and cleans up after itself.\n *\n * @private\n */\n }, {\n key: \"toggleEditMode\",\n value: function toggleEditMode() {\n if (this.editMode === true) {\n this.disableEditMode();\n } else {\n this.enableEditMode();\n }\n }\n\n /**\n * Enables Edit Mode\n */\n }, {\n key: \"enableEditMode\",\n value: function enableEditMode() {\n this.editMode = true;\n this._clean();\n if (this.guiEnabled === true) {\n this.manipulationDiv.style.display = \"block\";\n this.closeDiv.style.display = \"block\";\n this.editModeDiv.style.display = \"none\";\n this.showManipulatorToolbar();\n }\n }\n\n /**\n * Disables Edit Mode\n */\n }, {\n key: \"disableEditMode\",\n value: function disableEditMode() {\n this.editMode = false;\n this._clean();\n if (this.guiEnabled === true) {\n this.manipulationDiv.style.display = \"none\";\n this.closeDiv.style.display = \"none\";\n this.editModeDiv.style.display = \"block\";\n this._createEditButton();\n }\n }\n\n /**\n * Creates the main toolbar. Removes functions bound to the select event. Binds all the buttons of the toolbar.\n *\n * @private\n */\n }, {\n key: \"showManipulatorToolbar\",\n value: function showManipulatorToolbar() {\n // restore the state of any bound functions or events, remove control nodes, restore physics\n this._clean();\n\n // reset global variables\n this.manipulationDOM = {};\n\n // if the gui is enabled, draw all elements.\n if (this.guiEnabled === true) {\n var _context3, _context4;\n // a _restore will hide these menus\n this.editMode = true;\n this.manipulationDiv.style.display = \"block\";\n this.closeDiv.style.display = \"block\";\n var selectedNodeCount = this.selectionHandler.getSelectedNodeCount();\n var selectedEdgeCount = this.selectionHandler.getSelectedEdgeCount();\n var selectedTotalCount = selectedNodeCount + selectedEdgeCount;\n var locale = this.options.locales[this.options.locale];\n var needSeperator = false;\n if (this.options.addNode !== false) {\n this._createAddNodeButton(locale);\n needSeperator = true;\n }\n if (this.options.addEdge !== false) {\n if (needSeperator === true) {\n this._createSeperator(1);\n } else {\n needSeperator = true;\n }\n this._createAddEdgeButton(locale);\n }\n if (selectedNodeCount === 1 && typeof this.options.editNode === \"function\") {\n if (needSeperator === true) {\n this._createSeperator(2);\n } else {\n needSeperator = true;\n }\n this._createEditNodeButton(locale);\n } else if (selectedEdgeCount === 1 && selectedNodeCount === 0 && this.options.editEdge !== false) {\n if (needSeperator === true) {\n this._createSeperator(3);\n } else {\n needSeperator = true;\n }\n this._createEditEdgeButton(locale);\n }\n\n // remove buttons\n if (selectedTotalCount !== 0) {\n if (selectedNodeCount > 0 && this.options.deleteNode !== false) {\n if (needSeperator === true) {\n this._createSeperator(4);\n }\n this._createDeleteButton(locale);\n } else if (selectedNodeCount === 0 && this.options.deleteEdge !== false) {\n if (needSeperator === true) {\n this._createSeperator(4);\n }\n this._createDeleteButton(locale);\n }\n }\n\n // bind the close button\n this._bindElementEvents(this.closeDiv, _bindInstanceProperty$1(_context3 = this.toggleEditMode).call(_context3, this));\n\n // refresh this bar based on what has been selected\n this._temporaryBindEvent(\"select\", _bindInstanceProperty$1(_context4 = this.showManipulatorToolbar).call(_context4, this));\n }\n\n // redraw to show any possible changes\n this.body.emitter.emit(\"_redraw\");\n }\n\n /**\n * Create the toolbar for adding Nodes\n */\n }, {\n key: \"addNodeMode\",\n value: function addNodeMode() {\n var _context6;\n // when using the gui, enable edit mode if it wasnt already.\n if (this.editMode !== true) {\n this.enableEditMode();\n }\n\n // restore the state of any bound functions or events, remove control nodes, restore physics\n this._clean();\n this.inMode = \"addNode\";\n if (this.guiEnabled === true) {\n var _context5;\n var locale = this.options.locales[this.options.locale];\n this.manipulationDOM = {};\n this._createBackButton(locale);\n this._createSeperator();\n this._createDescription(locale[\"addDescription\"] || this.options.locales[\"en\"][\"addDescription\"]);\n\n // bind the close button\n this._bindElementEvents(this.closeDiv, _bindInstanceProperty$1(_context5 = this.toggleEditMode).call(_context5, this));\n }\n this._temporaryBindEvent(\"click\", _bindInstanceProperty$1(_context6 = this._performAddNode).call(_context6, this));\n }\n\n /**\n * call the bound function to handle the editing of the node. The node has to be selected.\n */\n }, {\n key: \"editNode\",\n value: function editNode() {\n var _this2 = this;\n // when using the gui, enable edit mode if it wasnt already.\n if (this.editMode !== true) {\n this.enableEditMode();\n }\n\n // restore the state of any bound functions or events, remove control nodes, restore physics\n this._clean();\n var node = this.selectionHandler.getSelectedNodes()[0];\n if (node !== undefined) {\n this.inMode = \"editNode\";\n if (typeof this.options.editNode === \"function\") {\n if (node.isCluster !== true) {\n var data = deepExtend({}, node.options, false);\n data.x = node.x;\n data.y = node.y;\n if (this.options.editNode.length === 2) {\n this.options.editNode(data, function (finalizedData) {\n if (finalizedData !== null && finalizedData !== undefined && _this2.inMode === \"editNode\") {\n // if for whatever reason the mode has changes (due to dataset change) disregard the callback) {\n _this2.body.data.nodes.getDataSet().update(finalizedData);\n }\n _this2.showManipulatorToolbar();\n });\n } else {\n throw new Error(\"The function for edit does not support two arguments (data, callback)\");\n }\n } else {\n alert(this.options.locales[this.options.locale][\"editClusterError\"] || this.options.locales[\"en\"][\"editClusterError\"]);\n }\n } else {\n throw new Error(\"No function has been configured to handle the editing of nodes.\");\n }\n } else {\n this.showManipulatorToolbar();\n }\n }\n\n /**\n * create the toolbar to connect nodes\n */\n }, {\n key: \"addEdgeMode\",\n value: function addEdgeMode() {\n var _context8, _context9, _context10, _context11, _context12;\n // when using the gui, enable edit mode if it wasnt already.\n if (this.editMode !== true) {\n this.enableEditMode();\n }\n\n // restore the state of any bound functions or events, remove control nodes, restore physics\n this._clean();\n this.inMode = \"addEdge\";\n if (this.guiEnabled === true) {\n var _context7;\n var locale = this.options.locales[this.options.locale];\n this.manipulationDOM = {};\n this._createBackButton(locale);\n this._createSeperator();\n this._createDescription(locale[\"edgeDescription\"] || this.options.locales[\"en\"][\"edgeDescription\"]);\n\n // bind the close button\n this._bindElementEvents(this.closeDiv, _bindInstanceProperty$1(_context7 = this.toggleEditMode).call(_context7, this));\n }\n\n // temporarily overload functions\n this._temporaryBindUI(\"onTouch\", _bindInstanceProperty$1(_context8 = this._handleConnect).call(_context8, this));\n this._temporaryBindUI(\"onDragEnd\", _bindInstanceProperty$1(_context9 = this._finishConnect).call(_context9, this));\n this._temporaryBindUI(\"onDrag\", _bindInstanceProperty$1(_context10 = this._dragControlNode).call(_context10, this));\n this._temporaryBindUI(\"onRelease\", _bindInstanceProperty$1(_context11 = this._finishConnect).call(_context11, this));\n this._temporaryBindUI(\"onDragStart\", _bindInstanceProperty$1(_context12 = this._dragStartEdge).call(_context12, this));\n this._temporaryBindUI(\"onHold\", function () {});\n }\n\n /**\n * create the toolbar to edit edges\n */\n }, {\n key: \"editEdgeMode\",\n value: function editEdgeMode() {\n // when using the gui, enable edit mode if it wasn't already.\n if (this.editMode !== true) {\n this.enableEditMode();\n }\n\n // restore the state of any bound functions or events, remove control nodes, restore physics\n this._clean();\n this.inMode = \"editEdge\";\n if (_typeof$1(this.options.editEdge) === \"object\" && typeof this.options.editEdge.editWithoutDrag === \"function\") {\n this.edgeBeingEditedId = this.selectionHandler.getSelectedEdgeIds()[0];\n if (this.edgeBeingEditedId !== undefined) {\n var edge = this.body.edges[this.edgeBeingEditedId];\n this._performEditEdge(edge.from.id, edge.to.id);\n return;\n }\n }\n if (this.guiEnabled === true) {\n var _context13;\n var locale = this.options.locales[this.options.locale];\n this.manipulationDOM = {};\n this._createBackButton(locale);\n this._createSeperator();\n this._createDescription(locale[\"editEdgeDescription\"] || this.options.locales[\"en\"][\"editEdgeDescription\"]);\n\n // bind the close button\n this._bindElementEvents(this.closeDiv, _bindInstanceProperty$1(_context13 = this.toggleEditMode).call(_context13, this));\n }\n this.edgeBeingEditedId = this.selectionHandler.getSelectedEdgeIds()[0];\n if (this.edgeBeingEditedId !== undefined) {\n var _context14, _context15, _context16, _context17;\n var _edge = this.body.edges[this.edgeBeingEditedId];\n\n // create control nodes\n var controlNodeFrom = this._getNewTargetNode(_edge.from.x, _edge.from.y);\n var controlNodeTo = this._getNewTargetNode(_edge.to.x, _edge.to.y);\n this.temporaryIds.nodes.push(controlNodeFrom.id);\n this.temporaryIds.nodes.push(controlNodeTo.id);\n this.body.nodes[controlNodeFrom.id] = controlNodeFrom;\n this.body.nodeIndices.push(controlNodeFrom.id);\n this.body.nodes[controlNodeTo.id] = controlNodeTo;\n this.body.nodeIndices.push(controlNodeTo.id);\n\n // temporarily overload UI functions, cleaned up automatically because of _temporaryBindUI\n this._temporaryBindUI(\"onTouch\", _bindInstanceProperty$1(_context14 = this._controlNodeTouch).call(_context14, this)); // used to get the position\n this._temporaryBindUI(\"onTap\", function () {}); // disabled\n this._temporaryBindUI(\"onHold\", function () {}); // disabled\n this._temporaryBindUI(\"onDragStart\", _bindInstanceProperty$1(_context15 = this._controlNodeDragStart).call(_context15, this)); // used to select control node\n this._temporaryBindUI(\"onDrag\", _bindInstanceProperty$1(_context16 = this._controlNodeDrag).call(_context16, this)); // used to drag control node\n this._temporaryBindUI(\"onDragEnd\", _bindInstanceProperty$1(_context17 = this._controlNodeDragEnd).call(_context17, this)); // used to connect or revert control nodes\n this._temporaryBindUI(\"onMouseMove\", function () {}); // disabled\n\n // create function to position control nodes correctly on movement\n // automatically cleaned up because we use the temporary bind\n this._temporaryBindEvent(\"beforeDrawing\", function (ctx) {\n var positions = _edge.edgeType.findBorderPositions(ctx);\n if (controlNodeFrom.selected === false) {\n controlNodeFrom.x = positions.from.x;\n controlNodeFrom.y = positions.from.y;\n }\n if (controlNodeTo.selected === false) {\n controlNodeTo.x = positions.to.x;\n controlNodeTo.y = positions.to.y;\n }\n });\n this.body.emitter.emit(\"_redraw\");\n } else {\n this.showManipulatorToolbar();\n }\n }\n\n /**\n * delete everything in the selection\n */\n }, {\n key: \"deleteSelected\",\n value: function deleteSelected() {\n var _this3 = this;\n // when using the gui, enable edit mode if it wasnt already.\n if (this.editMode !== true) {\n this.enableEditMode();\n }\n\n // restore the state of any bound functions or events, remove control nodes, restore physics\n this._clean();\n this.inMode = \"delete\";\n var selectedNodes = this.selectionHandler.getSelectedNodeIds();\n var selectedEdges = this.selectionHandler.getSelectedEdgeIds();\n var deleteFunction = undefined;\n if (selectedNodes.length > 0) {\n for (var i = 0; i < selectedNodes.length; i++) {\n if (this.body.nodes[selectedNodes[i]].isCluster === true) {\n alert(this.options.locales[this.options.locale][\"deleteClusterError\"] || this.options.locales[\"en\"][\"deleteClusterError\"]);\n return;\n }\n }\n if (typeof this.options.deleteNode === \"function\") {\n deleteFunction = this.options.deleteNode;\n }\n } else if (selectedEdges.length > 0) {\n if (typeof this.options.deleteEdge === \"function\") {\n deleteFunction = this.options.deleteEdge;\n }\n }\n if (typeof deleteFunction === \"function\") {\n var data = {\n nodes: selectedNodes,\n edges: selectedEdges\n };\n if (deleteFunction.length === 2) {\n deleteFunction(data, function (finalizedData) {\n if (finalizedData !== null && finalizedData !== undefined && _this3.inMode === \"delete\") {\n // if for whatever reason the mode has changes (due to dataset change) disregard the callback) {\n _this3.body.data.edges.getDataSet().remove(finalizedData.edges);\n _this3.body.data.nodes.getDataSet().remove(finalizedData.nodes);\n _this3.body.emitter.emit(\"startSimulation\");\n _this3.showManipulatorToolbar();\n } else {\n _this3.body.emitter.emit(\"startSimulation\");\n _this3.showManipulatorToolbar();\n }\n });\n } else {\n throw new Error(\"The function for delete does not support two arguments (data, callback)\");\n }\n } else {\n this.body.data.edges.getDataSet().remove(selectedEdges);\n this.body.data.nodes.getDataSet().remove(selectedNodes);\n this.body.emitter.emit(\"startSimulation\");\n this.showManipulatorToolbar();\n }\n }\n\n //********************************************** PRIVATE ***************************************//\n\n /**\n * draw or remove the DOM\n *\n * @private\n */\n }, {\n key: \"_setup\",\n value: function _setup() {\n if (this.options.enabled === true) {\n // Enable the GUI\n this.guiEnabled = true;\n this._createWrappers();\n if (this.editMode === false) {\n this._createEditButton();\n } else {\n this.showManipulatorToolbar();\n }\n } else {\n this._removeManipulationDOM();\n\n // disable the gui\n this.guiEnabled = false;\n }\n }\n\n /**\n * create the div overlays that contain the DOM\n *\n * @private\n */\n }, {\n key: \"_createWrappers\",\n value: function _createWrappers() {\n // load the manipulator HTML elements. All styling done in css.\n if (this.manipulationDiv === undefined) {\n this.manipulationDiv = document.createElement(\"div\");\n this.manipulationDiv.className = \"vis-manipulation\";\n if (this.editMode === true) {\n this.manipulationDiv.style.display = \"block\";\n } else {\n this.manipulationDiv.style.display = \"none\";\n }\n this.canvas.frame.appendChild(this.manipulationDiv);\n }\n\n // container for the edit button.\n if (this.editModeDiv === undefined) {\n this.editModeDiv = document.createElement(\"div\");\n this.editModeDiv.className = \"vis-edit-mode\";\n if (this.editMode === true) {\n this.editModeDiv.style.display = \"none\";\n } else {\n this.editModeDiv.style.display = \"block\";\n }\n this.canvas.frame.appendChild(this.editModeDiv);\n }\n\n // container for the close div button\n if (this.closeDiv === undefined) {\n var _this$options$locales, _this$options$locales2;\n this.closeDiv = document.createElement(\"button\");\n this.closeDiv.className = \"vis-close\";\n this.closeDiv.setAttribute(\"aria-label\", (_this$options$locales = (_this$options$locales2 = this.options.locales[this.options.locale]) === null || _this$options$locales2 === void 0 ? void 0 : _this$options$locales2[\"close\"]) !== null && _this$options$locales !== void 0 ? _this$options$locales : this.options.locales[\"en\"][\"close\"]);\n this.closeDiv.style.display = this.manipulationDiv.style.display;\n this.canvas.frame.appendChild(this.closeDiv);\n }\n }\n\n /**\n * generate a new target node. Used for creating new edges and editing edges\n *\n * @param {number} x\n * @param {number} y\n * @returns {Node}\n * @private\n */\n }, {\n key: \"_getNewTargetNode\",\n value: function _getNewTargetNode(x, y) {\n var controlNodeStyle = deepExtend({}, this.options.controlNodeStyle);\n controlNodeStyle.id = \"targetNode\" + v4();\n controlNodeStyle.hidden = false;\n controlNodeStyle.physics = false;\n controlNodeStyle.x = x;\n controlNodeStyle.y = y;\n\n // we have to define the bounding box in order for the nodes to be drawn immediately\n var node = this.body.functions.createNode(controlNodeStyle);\n node.shape.boundingBox = {\n left: x,\n right: x,\n top: y,\n bottom: y\n };\n return node;\n }\n\n /**\n * Create the edit button\n */\n }, {\n key: \"_createEditButton\",\n value: function _createEditButton() {\n var _context18;\n // restore everything to it's original state (if applicable)\n this._clean();\n\n // reset the manipulationDOM\n this.manipulationDOM = {};\n\n // empty the editModeDiv\n recursiveDOMDelete(this.editModeDiv);\n\n // create the contents for the editMode button\n var locale = this.options.locales[this.options.locale];\n var button = this._createButton(\"editMode\", \"vis-edit vis-edit-mode\", locale[\"edit\"] || this.options.locales[\"en\"][\"edit\"]);\n this.editModeDiv.appendChild(button);\n\n // bind a hammer listener to the button, calling the function toggleEditMode.\n this._bindElementEvents(button, _bindInstanceProperty$1(_context18 = this.toggleEditMode).call(_context18, this));\n }\n\n /**\n * this function cleans up after everything this module does. Temporary elements, functions and events are removed, physics restored, hammers removed.\n *\n * @private\n */\n }, {\n key: \"_clean\",\n value: function _clean() {\n // not in mode\n this.inMode = false;\n\n // _clean the divs\n if (this.guiEnabled === true) {\n recursiveDOMDelete(this.editModeDiv);\n recursiveDOMDelete(this.manipulationDiv);\n\n // removes all the bindings and overloads\n this._cleanupDOMEventListeners();\n }\n\n // remove temporary nodes and edges\n this._cleanupTemporaryNodesAndEdges();\n\n // restore overloaded UI functions\n this._unbindTemporaryUIs();\n\n // remove the temporaryEventFunctions\n this._unbindTemporaryEvents();\n\n // restore the physics if required\n this.body.emitter.emit(\"restorePhysics\");\n }\n\n /**\n * Each dom element has it's own hammer. They are stored in this.manipulationHammers. This cleans them up.\n *\n * @private\n */\n }, {\n key: \"_cleanupDOMEventListeners\",\n value: function _cleanupDOMEventListeners() {\n var _context19;\n // _clean DOM event listener bindings\n var _iterator = _createForOfIteratorHelper(_spliceInstanceProperty(_context19 = this._domEventListenerCleanupQueue).call(_context19, 0)),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var callback = _step.value;\n callback();\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n\n /**\n * Remove all DOM elements created by this module.\n *\n * @private\n */\n }, {\n key: \"_removeManipulationDOM\",\n value: function _removeManipulationDOM() {\n // removes all the bindings and overloads\n this._clean();\n\n // empty the manipulation divs\n recursiveDOMDelete(this.manipulationDiv);\n recursiveDOMDelete(this.editModeDiv);\n recursiveDOMDelete(this.closeDiv);\n\n // remove the manipulation divs\n if (this.manipulationDiv) {\n this.canvas.frame.removeChild(this.manipulationDiv);\n }\n if (this.editModeDiv) {\n this.canvas.frame.removeChild(this.editModeDiv);\n }\n if (this.closeDiv) {\n this.canvas.frame.removeChild(this.closeDiv);\n }\n\n // set the references to undefined\n this.manipulationDiv = undefined;\n this.editModeDiv = undefined;\n this.closeDiv = undefined;\n }\n\n /**\n * create a seperator line. the index is to differentiate in the manipulation dom\n *\n * @param {number} [index=1]\n * @private\n */\n }, {\n key: \"_createSeperator\",\n value: function _createSeperator() {\n var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n this.manipulationDOM[\"seperatorLineDiv\" + index] = document.createElement(\"div\");\n this.manipulationDOM[\"seperatorLineDiv\" + index].className = \"vis-separator-line\";\n this.manipulationDiv.appendChild(this.manipulationDOM[\"seperatorLineDiv\" + index]);\n }\n\n // ---------------------- DOM functions for buttons --------------------------//\n\n /**\n *\n * @param {Locale} locale\n * @private\n */\n }, {\n key: \"_createAddNodeButton\",\n value: function _createAddNodeButton(locale) {\n var _context20;\n var button = this._createButton(\"addNode\", \"vis-add\", locale[\"addNode\"] || this.options.locales[\"en\"][\"addNode\"]);\n this.manipulationDiv.appendChild(button);\n this._bindElementEvents(button, _bindInstanceProperty$1(_context20 = this.addNodeMode).call(_context20, this));\n }\n\n /**\n *\n * @param {Locale} locale\n * @private\n */\n }, {\n key: \"_createAddEdgeButton\",\n value: function _createAddEdgeButton(locale) {\n var _context21;\n var button = this._createButton(\"addEdge\", \"vis-connect\", locale[\"addEdge\"] || this.options.locales[\"en\"][\"addEdge\"]);\n this.manipulationDiv.appendChild(button);\n this._bindElementEvents(button, _bindInstanceProperty$1(_context21 = this.addEdgeMode).call(_context21, this));\n }\n\n /**\n *\n * @param {Locale} locale\n * @private\n */\n }, {\n key: \"_createEditNodeButton\",\n value: function _createEditNodeButton(locale) {\n var _context22;\n var button = this._createButton(\"editNode\", \"vis-edit\", locale[\"editNode\"] || this.options.locales[\"en\"][\"editNode\"]);\n this.manipulationDiv.appendChild(button);\n this._bindElementEvents(button, _bindInstanceProperty$1(_context22 = this.editNode).call(_context22, this));\n }\n\n /**\n *\n * @param {Locale} locale\n * @private\n */\n }, {\n key: \"_createEditEdgeButton\",\n value: function _createEditEdgeButton(locale) {\n var _context23;\n var button = this._createButton(\"editEdge\", \"vis-edit\", locale[\"editEdge\"] || this.options.locales[\"en\"][\"editEdge\"]);\n this.manipulationDiv.appendChild(button);\n this._bindElementEvents(button, _bindInstanceProperty$1(_context23 = this.editEdgeMode).call(_context23, this));\n }\n\n /**\n *\n * @param {Locale} locale\n * @private\n */\n }, {\n key: \"_createDeleteButton\",\n value: function _createDeleteButton(locale) {\n var _context24;\n var deleteBtnClass;\n if (this.options.rtl) {\n deleteBtnClass = \"vis-delete-rtl\";\n } else {\n deleteBtnClass = \"vis-delete\";\n }\n var button = this._createButton(\"delete\", deleteBtnClass, locale[\"del\"] || this.options.locales[\"en\"][\"del\"]);\n this.manipulationDiv.appendChild(button);\n this._bindElementEvents(button, _bindInstanceProperty$1(_context24 = this.deleteSelected).call(_context24, this));\n }\n\n /**\n *\n * @param {Locale} locale\n * @private\n */\n }, {\n key: \"_createBackButton\",\n value: function _createBackButton(locale) {\n var _context25;\n var button = this._createButton(\"back\", \"vis-back\", locale[\"back\"] || this.options.locales[\"en\"][\"back\"]);\n this.manipulationDiv.appendChild(button);\n this._bindElementEvents(button, _bindInstanceProperty$1(_context25 = this.showManipulatorToolbar).call(_context25, this));\n }\n\n /**\n *\n * @param {number|string} id\n * @param {string} className\n * @param {label} label\n * @param {string} labelClassName\n * @returns {HTMLElement}\n * @private\n */\n }, {\n key: \"_createButton\",\n value: function _createButton(id, className, label) {\n var labelClassName = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : \"vis-label\";\n this.manipulationDOM[id + \"Div\"] = document.createElement(\"button\");\n this.manipulationDOM[id + \"Div\"].className = \"vis-button \" + className;\n this.manipulationDOM[id + \"Label\"] = document.createElement(\"div\");\n this.manipulationDOM[id + \"Label\"].className = labelClassName;\n this.manipulationDOM[id + \"Label\"].innerText = label;\n this.manipulationDOM[id + \"Div\"].appendChild(this.manipulationDOM[id + \"Label\"]);\n return this.manipulationDOM[id + \"Div\"];\n }\n\n /**\n *\n * @param {Label} label\n * @private\n */\n }, {\n key: \"_createDescription\",\n value: function _createDescription(label) {\n this.manipulationDOM[\"descriptionLabel\"] = document.createElement(\"div\");\n this.manipulationDOM[\"descriptionLabel\"].className = \"vis-none\";\n this.manipulationDOM[\"descriptionLabel\"].innerText = label;\n this.manipulationDiv.appendChild(this.manipulationDOM[\"descriptionLabel\"]);\n }\n\n // -------------------------- End of DOM functions for buttons ------------------------------//\n\n /**\n * this binds an event until cleanup by the clean functions.\n *\n * @param {Event} event The event\n * @param {Function} newFunction\n * @private\n */\n }, {\n key: \"_temporaryBindEvent\",\n value: function _temporaryBindEvent(event, newFunction) {\n this.temporaryEventFunctions.push({\n event: event,\n boundFunction: newFunction\n });\n this.body.emitter.on(event, newFunction);\n }\n\n /**\n * this overrides an UI function until cleanup by the clean function\n *\n * @param {string} UIfunctionName\n * @param {Function} newFunction\n * @private\n */\n }, {\n key: \"_temporaryBindUI\",\n value: function _temporaryBindUI(UIfunctionName, newFunction) {\n if (this.body.eventListeners[UIfunctionName] !== undefined) {\n this.temporaryUIFunctions[UIfunctionName] = this.body.eventListeners[UIfunctionName];\n this.body.eventListeners[UIfunctionName] = newFunction;\n } else {\n throw new Error(\"This UI function does not exist. Typo? You tried: \" + UIfunctionName + \" possible are: \" + _JSON$stringify(_Object$keys(this.body.eventListeners)));\n }\n }\n\n /**\n * Restore the overridden UI functions to their original state.\n *\n * @private\n */\n }, {\n key: \"_unbindTemporaryUIs\",\n value: function _unbindTemporaryUIs() {\n for (var functionName in this.temporaryUIFunctions) {\n if (Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions, functionName)) {\n this.body.eventListeners[functionName] = this.temporaryUIFunctions[functionName];\n delete this.temporaryUIFunctions[functionName];\n }\n }\n this.temporaryUIFunctions = {};\n }\n\n /**\n * Unbind the events created by _temporaryBindEvent\n *\n * @private\n */\n }, {\n key: \"_unbindTemporaryEvents\",\n value: function _unbindTemporaryEvents() {\n for (var i = 0; i < this.temporaryEventFunctions.length; i++) {\n var eventName = this.temporaryEventFunctions[i].event;\n var boundFunction = this.temporaryEventFunctions[i].boundFunction;\n this.body.emitter.off(eventName, boundFunction);\n }\n this.temporaryEventFunctions = [];\n }\n\n /**\n * Bind an hammer instance to a DOM element.\n *\n * @param {Element} domElement\n * @param {Function} boundFunction\n */\n }, {\n key: \"_bindElementEvents\",\n value: function _bindElementEvents(domElement, boundFunction) {\n // Bind touch events.\n var hammer = new Hammer(domElement, {});\n onTouch(hammer, boundFunction);\n this._domEventListenerCleanupQueue.push(function () {\n hammer.destroy();\n });\n\n // Bind keyboard events.\n var keyupListener = function keyupListener(_ref) {\n var keyCode = _ref.keyCode,\n key = _ref.key;\n if (key === \"Enter\" || key === \" \" || keyCode === 13 || keyCode === 32) {\n boundFunction();\n }\n };\n domElement.addEventListener(\"keyup\", keyupListener, false);\n this._domEventListenerCleanupQueue.push(function () {\n domElement.removeEventListener(\"keyup\", keyupListener, false);\n });\n }\n\n /**\n * Neatly clean up temporary edges and nodes\n *\n * @private\n */\n }, {\n key: \"_cleanupTemporaryNodesAndEdges\",\n value: function _cleanupTemporaryNodesAndEdges() {\n // _clean temporary edges\n for (var i = 0; i < this.temporaryIds.edges.length; i++) {\n var _context26;\n this.body.edges[this.temporaryIds.edges[i]].disconnect();\n delete this.body.edges[this.temporaryIds.edges[i]];\n var indexTempEdge = _indexOfInstanceProperty(_context26 = this.body.edgeIndices).call(_context26, this.temporaryIds.edges[i]);\n if (indexTempEdge !== -1) {\n var _context27;\n _spliceInstanceProperty(_context27 = this.body.edgeIndices).call(_context27, indexTempEdge, 1);\n }\n }\n\n // _clean temporary nodes\n for (var _i = 0; _i < this.temporaryIds.nodes.length; _i++) {\n var _context28;\n delete this.body.nodes[this.temporaryIds.nodes[_i]];\n var indexTempNode = _indexOfInstanceProperty(_context28 = this.body.nodeIndices).call(_context28, this.temporaryIds.nodes[_i]);\n if (indexTempNode !== -1) {\n var _context29;\n _spliceInstanceProperty(_context29 = this.body.nodeIndices).call(_context29, indexTempNode, 1);\n }\n }\n this.temporaryIds = {\n nodes: [],\n edges: []\n };\n }\n\n // ------------------------------------------ EDIT EDGE FUNCTIONS -----------------------------------------//\n\n /**\n * the touch is used to get the position of the initial click\n *\n * @param {Event} event The event\n * @private\n */\n }, {\n key: \"_controlNodeTouch\",\n value: function _controlNodeTouch(event) {\n this.selectionHandler.unselectAll();\n this.lastTouch = this.body.functions.getPointer(event.center);\n this.lastTouch.translation = _Object$assign({}, this.body.view.translation); // copy the object\n }\n\n /**\n * the drag start is used to mark one of the control nodes as selected.\n *\n * @private\n */\n }, {\n key: \"_controlNodeDragStart\",\n value: function _controlNodeDragStart() {\n var pointer = this.lastTouch;\n var pointerObj = this.selectionHandler._pointerToPositionObject(pointer);\n var from = this.body.nodes[this.temporaryIds.nodes[0]];\n var to = this.body.nodes[this.temporaryIds.nodes[1]];\n var edge = this.body.edges[this.edgeBeingEditedId];\n this.selectedControlNode = undefined;\n var fromSelect = from.isOverlappingWith(pointerObj);\n var toSelect = to.isOverlappingWith(pointerObj);\n if (fromSelect === true) {\n this.selectedControlNode = from;\n edge.edgeType.from = from;\n } else if (toSelect === true) {\n this.selectedControlNode = to;\n edge.edgeType.to = to;\n }\n\n // we use the selection to find the node that is being dragged. We explicitly select it here.\n if (this.selectedControlNode !== undefined) {\n this.selectionHandler.selectObject(this.selectedControlNode);\n }\n this.body.emitter.emit(\"_redraw\");\n }\n\n /**\n * dragging the control nodes or the canvas\n *\n * @param {Event} event The event\n * @private\n */\n }, {\n key: \"_controlNodeDrag\",\n value: function _controlNodeDrag(event) {\n this.body.emitter.emit(\"disablePhysics\");\n var pointer = this.body.functions.getPointer(event.center);\n var pos = this.canvas.DOMtoCanvas(pointer);\n if (this.selectedControlNode !== undefined) {\n this.selectedControlNode.x = pos.x;\n this.selectedControlNode.y = pos.y;\n } else {\n this.interactionHandler.onDrag(event);\n }\n this.body.emitter.emit(\"_redraw\");\n }\n\n /**\n * connecting or restoring the control nodes.\n *\n * @param {Event} event The event\n * @private\n */\n }, {\n key: \"_controlNodeDragEnd\",\n value: function _controlNodeDragEnd(event) {\n var pointer = this.body.functions.getPointer(event.center);\n var pointerObj = this.selectionHandler._pointerToPositionObject(pointer);\n var edge = this.body.edges[this.edgeBeingEditedId];\n // if the node that was dragged is not a control node, return\n if (this.selectedControlNode === undefined) {\n return;\n }\n\n // we use the selection to find the node that is being dragged. We explicitly DEselect the control node here.\n this.selectionHandler.unselectAll();\n var overlappingNodeIds = this.selectionHandler._getAllNodesOverlappingWith(pointerObj);\n var node = undefined;\n for (var i = overlappingNodeIds.length - 1; i >= 0; i--) {\n if (overlappingNodeIds[i] !== this.selectedControlNode.id) {\n node = this.body.nodes[overlappingNodeIds[i]];\n break;\n }\n }\n // perform the connection\n if (node !== undefined && this.selectedControlNode !== undefined) {\n if (node.isCluster === true) {\n alert(this.options.locales[this.options.locale][\"createEdgeError\"] || this.options.locales[\"en\"][\"createEdgeError\"]);\n } else {\n var from = this.body.nodes[this.temporaryIds.nodes[0]];\n if (this.selectedControlNode.id === from.id) {\n this._performEditEdge(node.id, edge.to.id);\n } else {\n this._performEditEdge(edge.from.id, node.id);\n }\n }\n } else {\n edge.updateEdgeType();\n this.body.emitter.emit(\"restorePhysics\");\n }\n this.body.emitter.emit(\"_redraw\");\n }\n\n // ------------------------------------ END OF EDIT EDGE FUNCTIONS -----------------------------------------//\n\n // ------------------------------------------- ADD EDGE FUNCTIONS -----------------------------------------//\n /**\n * the function bound to the selection event. It checks if you want to connect a cluster and changes the description\n * to walk the user through the process.\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"_handleConnect\",\n value: function _handleConnect(event) {\n // check to avoid double fireing of this function.\n if (new Date().valueOf() - this.touchTime > 100) {\n this.lastTouch = this.body.functions.getPointer(event.center);\n this.lastTouch.translation = _Object$assign({}, this.body.view.translation); // copy the object\n\n this.interactionHandler.drag.pointer = this.lastTouch; // Drag pointer is not updated when adding edges\n this.interactionHandler.drag.translation = this.lastTouch.translation;\n var pointer = this.lastTouch;\n var node = this.selectionHandler.getNodeAt(pointer);\n if (node !== undefined) {\n if (node.isCluster === true) {\n alert(this.options.locales[this.options.locale][\"createEdgeError\"] || this.options.locales[\"en\"][\"createEdgeError\"]);\n } else {\n // create a node the temporary line can look at\n var targetNode = this._getNewTargetNode(node.x, node.y);\n this.body.nodes[targetNode.id] = targetNode;\n this.body.nodeIndices.push(targetNode.id);\n\n // create a temporary edge\n var connectionEdge = this.body.functions.createEdge({\n id: \"connectionEdge\" + v4(),\n from: node.id,\n to: targetNode.id,\n physics: false,\n smooth: {\n enabled: true,\n type: \"continuous\",\n roundness: 0.5\n }\n });\n this.body.edges[connectionEdge.id] = connectionEdge;\n this.body.edgeIndices.push(connectionEdge.id);\n this.temporaryIds.nodes.push(targetNode.id);\n this.temporaryIds.edges.push(connectionEdge.id);\n }\n }\n this.touchTime = new Date().valueOf();\n }\n }\n\n /**\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"_dragControlNode\",\n value: function _dragControlNode(event) {\n var pointer = this.body.functions.getPointer(event.center);\n var pointerObj = this.selectionHandler._pointerToPositionObject(pointer);\n // remember the edge id\n var connectFromId = undefined;\n if (this.temporaryIds.edges[0] !== undefined) {\n connectFromId = this.body.edges[this.temporaryIds.edges[0]].fromId;\n }\n\n // get the overlapping node but NOT the temporary node;\n var overlappingNodeIds = this.selectionHandler._getAllNodesOverlappingWith(pointerObj);\n var node = undefined;\n for (var i = overlappingNodeIds.length - 1; i >= 0; i--) {\n var _context30;\n // if the node id is NOT a temporary node, accept the node.\n if (_indexOfInstanceProperty(_context30 = this.temporaryIds.nodes).call(_context30, overlappingNodeIds[i]) === -1) {\n node = this.body.nodes[overlappingNodeIds[i]];\n break;\n }\n }\n event.controlEdge = {\n from: connectFromId,\n to: node ? node.id : undefined\n };\n this.selectionHandler.generateClickEvent(\"controlNodeDragging\", event, pointer);\n if (this.temporaryIds.nodes[0] !== undefined) {\n var targetNode = this.body.nodes[this.temporaryIds.nodes[0]]; // there is only one temp node in the add edge mode.\n targetNode.x = this.canvas._XconvertDOMtoCanvas(pointer.x);\n targetNode.y = this.canvas._YconvertDOMtoCanvas(pointer.y);\n this.body.emitter.emit(\"_redraw\");\n } else {\n this.interactionHandler.onDrag(event);\n }\n }\n\n /**\n * Connect the new edge to the target if one exists, otherwise remove temp line\n *\n * @param {Event} event The event\n * @private\n */\n }, {\n key: \"_finishConnect\",\n value: function _finishConnect(event) {\n var pointer = this.body.functions.getPointer(event.center);\n var pointerObj = this.selectionHandler._pointerToPositionObject(pointer);\n\n // remember the edge id\n var connectFromId = undefined;\n if (this.temporaryIds.edges[0] !== undefined) {\n connectFromId = this.body.edges[this.temporaryIds.edges[0]].fromId;\n }\n\n // get the overlapping node but NOT the temporary node;\n var overlappingNodeIds = this.selectionHandler._getAllNodesOverlappingWith(pointerObj);\n var node = undefined;\n for (var i = overlappingNodeIds.length - 1; i >= 0; i--) {\n var _context31;\n // if the node id is NOT a temporary node, accept the node.\n if (_indexOfInstanceProperty(_context31 = this.temporaryIds.nodes).call(_context31, overlappingNodeIds[i]) === -1) {\n node = this.body.nodes[overlappingNodeIds[i]];\n break;\n }\n }\n\n // clean temporary nodes and edges.\n this._cleanupTemporaryNodesAndEdges();\n\n // perform the connection\n if (node !== undefined) {\n if (node.isCluster === true) {\n alert(this.options.locales[this.options.locale][\"createEdgeError\"] || this.options.locales[\"en\"][\"createEdgeError\"]);\n } else {\n if (this.body.nodes[connectFromId] !== undefined && this.body.nodes[node.id] !== undefined) {\n this._performAddEdge(connectFromId, node.id);\n }\n }\n }\n event.controlEdge = {\n from: connectFromId,\n to: node ? node.id : undefined\n };\n this.selectionHandler.generateClickEvent(\"controlNodeDragEnd\", event, pointer);\n\n // No need to do _generateclickevent('dragEnd') here, the regular dragEnd event fires.\n this.body.emitter.emit(\"_redraw\");\n }\n\n /**\n *\n * @param {Event} event\n * @private\n */\n }, {\n key: \"_dragStartEdge\",\n value: function _dragStartEdge(event) {\n var pointer = this.lastTouch;\n this.selectionHandler.generateClickEvent(\"dragStart\", event, pointer, undefined, true);\n }\n\n // --------------------------------------- END OF ADD EDGE FUNCTIONS -------------------------------------//\n\n // ------------------------------ Performing all the actual data manipulation ------------------------//\n\n /**\n * Adds a node on the specified location\n *\n * @param {object} clickData\n * @private\n */\n }, {\n key: \"_performAddNode\",\n value: function _performAddNode(clickData) {\n var _this4 = this;\n var defaultData = {\n id: v4(),\n x: clickData.pointer.canvas.x,\n y: clickData.pointer.canvas.y,\n label: \"new\"\n };\n if (typeof this.options.addNode === \"function\") {\n if (this.options.addNode.length === 2) {\n this.options.addNode(defaultData, function (finalizedData) {\n if (finalizedData !== null && finalizedData !== undefined && _this4.inMode === \"addNode\") {\n // if for whatever reason the mode has changes (due to dataset change) disregard the callback\n _this4.body.data.nodes.getDataSet().add(finalizedData);\n }\n _this4.showManipulatorToolbar();\n });\n } else {\n this.showManipulatorToolbar();\n throw new Error(\"The function for add does not support two arguments (data,callback)\");\n }\n } else {\n this.body.data.nodes.getDataSet().add(defaultData);\n this.showManipulatorToolbar();\n }\n }\n\n /**\n * connect two nodes with a new edge.\n *\n * @param {Node.id} sourceNodeId\n * @param {Node.id} targetNodeId\n * @private\n */\n }, {\n key: \"_performAddEdge\",\n value: function _performAddEdge(sourceNodeId, targetNodeId) {\n var _this5 = this;\n var defaultData = {\n from: sourceNodeId,\n to: targetNodeId\n };\n if (typeof this.options.addEdge === \"function\") {\n if (this.options.addEdge.length === 2) {\n this.options.addEdge(defaultData, function (finalizedData) {\n if (finalizedData !== null && finalizedData !== undefined && _this5.inMode === \"addEdge\") {\n // if for whatever reason the mode has changes (due to dataset change) disregard the callback\n _this5.body.data.edges.getDataSet().add(finalizedData);\n _this5.selectionHandler.unselectAll();\n _this5.showManipulatorToolbar();\n }\n });\n } else {\n throw new Error(\"The function for connect does not support two arguments (data,callback)\");\n }\n } else {\n this.body.data.edges.getDataSet().add(defaultData);\n this.selectionHandler.unselectAll();\n this.showManipulatorToolbar();\n }\n }\n\n /**\n * connect two nodes with a new edge.\n *\n * @param {Node.id} sourceNodeId\n * @param {Node.id} targetNodeId\n * @private\n */\n }, {\n key: \"_performEditEdge\",\n value: function _performEditEdge(sourceNodeId, targetNodeId) {\n var _this6 = this;\n var defaultData = {\n id: this.edgeBeingEditedId,\n from: sourceNodeId,\n to: targetNodeId,\n label: this.body.data.edges.get(this.edgeBeingEditedId).label\n };\n var eeFunct = this.options.editEdge;\n if (_typeof$1(eeFunct) === \"object\") {\n eeFunct = eeFunct.editWithoutDrag;\n }\n if (typeof eeFunct === \"function\") {\n if (eeFunct.length === 2) {\n eeFunct(defaultData, function (finalizedData) {\n if (finalizedData === null || finalizedData === undefined || _this6.inMode !== \"editEdge\") {\n // if for whatever reason the mode has changes (due to dataset change) disregard the callback) {\n _this6.body.edges[defaultData.id].updateEdgeType();\n _this6.body.emitter.emit(\"_redraw\");\n _this6.showManipulatorToolbar();\n } else {\n _this6.body.data.edges.getDataSet().update(finalizedData);\n _this6.selectionHandler.unselectAll();\n _this6.showManipulatorToolbar();\n }\n });\n } else {\n throw new Error(\"The function for edit does not support two arguments (data, callback)\");\n }\n } else {\n this.body.data.edges.getDataSet().update(defaultData);\n this.selectionHandler.unselectAll();\n this.showManipulatorToolbar();\n }\n }\n }]);\n return ManipulationSystem;\n}();\n\n/**\r\n * This object contains all possible options. It will check if the types are correct, if required if the option is one\r\n * of the allowed values.\r\n *\r\n * __any__ means that the name of the property does not matter.\r\n * __type__ is a required field for all objects and contains the allowed types of all objects\r\n */\nvar string = \"string\";\nvar bool = \"boolean\";\nvar number = \"number\";\nvar array = \"array\";\nvar object = \"object\"; // should only be in a __type__ property\nvar dom = \"dom\";\nvar any = \"any\";\n// List of endpoints\nvar endPoints = [\"arrow\", \"bar\", \"box\", \"circle\", \"crow\", \"curve\", \"diamond\", \"image\", \"inv_curve\", \"inv_triangle\", \"triangle\", \"vee\"];\n/* eslint-disable @typescript-eslint/naming-convention -- The __*__ format is used to prevent collisions with actual option names. */\nvar nodeOptions = {\n borderWidth: {\n number: number\n },\n borderWidthSelected: {\n number: number,\n undefined: \"undefined\"\n },\n brokenImage: {\n string: string,\n undefined: \"undefined\"\n },\n chosen: {\n label: {\n boolean: bool,\n function: \"function\"\n },\n node: {\n boolean: bool,\n function: \"function\"\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n color: {\n border: {\n string: string\n },\n background: {\n string: string\n },\n highlight: {\n border: {\n string: string\n },\n background: {\n string: string\n },\n __type__: {\n object: object,\n string: string\n }\n },\n hover: {\n border: {\n string: string\n },\n background: {\n string: string\n },\n __type__: {\n object: object,\n string: string\n }\n },\n __type__: {\n object: object,\n string: string\n }\n },\n opacity: {\n number: number,\n undefined: \"undefined\"\n },\n fixed: {\n x: {\n boolean: bool\n },\n y: {\n boolean: bool\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n font: {\n align: {\n string: string\n },\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n background: {\n string: string\n },\n strokeWidth: {\n number: number\n },\n strokeColor: {\n string: string\n },\n vadjust: {\n number: number\n },\n multi: {\n boolean: bool,\n string: string\n },\n bold: {\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n mod: {\n string: string\n },\n vadjust: {\n number: number\n },\n __type__: {\n object: object,\n string: string\n }\n },\n boldital: {\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n mod: {\n string: string\n },\n vadjust: {\n number: number\n },\n __type__: {\n object: object,\n string: string\n }\n },\n ital: {\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n mod: {\n string: string\n },\n vadjust: {\n number: number\n },\n __type__: {\n object: object,\n string: string\n }\n },\n mono: {\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n mod: {\n string: string\n },\n vadjust: {\n number: number\n },\n __type__: {\n object: object,\n string: string\n }\n },\n __type__: {\n object: object,\n string: string\n }\n },\n group: {\n string: string,\n number: number,\n undefined: \"undefined\"\n },\n heightConstraint: {\n minimum: {\n number: number\n },\n valign: {\n string: string\n },\n __type__: {\n object: object,\n boolean: bool,\n number: number\n }\n },\n hidden: {\n boolean: bool\n },\n icon: {\n face: {\n string: string\n },\n code: {\n string: string\n },\n size: {\n number: number\n },\n color: {\n string: string\n },\n weight: {\n string: string,\n number: number\n },\n __type__: {\n object: object\n }\n },\n id: {\n string: string,\n number: number\n },\n image: {\n selected: {\n string: string,\n undefined: \"undefined\"\n },\n unselected: {\n string: string,\n undefined: \"undefined\"\n },\n __type__: {\n object: object,\n string: string\n }\n },\n imagePadding: {\n top: {\n number: number\n },\n right: {\n number: number\n },\n bottom: {\n number: number\n },\n left: {\n number: number\n },\n __type__: {\n object: object,\n number: number\n }\n },\n label: {\n string: string,\n undefined: \"undefined\"\n },\n labelHighlightBold: {\n boolean: bool\n },\n level: {\n number: number,\n undefined: \"undefined\"\n },\n margin: {\n top: {\n number: number\n },\n right: {\n number: number\n },\n bottom: {\n number: number\n },\n left: {\n number: number\n },\n __type__: {\n object: object,\n number: number\n }\n },\n mass: {\n number: number\n },\n physics: {\n boolean: bool\n },\n scaling: {\n min: {\n number: number\n },\n max: {\n number: number\n },\n label: {\n enabled: {\n boolean: bool\n },\n min: {\n number: number\n },\n max: {\n number: number\n },\n maxVisible: {\n number: number\n },\n drawThreshold: {\n number: number\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n customScalingFunction: {\n function: \"function\"\n },\n __type__: {\n object: object\n }\n },\n shadow: {\n enabled: {\n boolean: bool\n },\n color: {\n string: string\n },\n size: {\n number: number\n },\n x: {\n number: number\n },\n y: {\n number: number\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n shape: {\n string: [\"custom\", \"ellipse\", \"circle\", \"database\", \"box\", \"text\", \"image\", \"circularImage\", \"diamond\", \"dot\", \"star\", \"triangle\", \"triangleDown\", \"square\", \"icon\", \"hexagon\"]\n },\n ctxRenderer: {\n function: \"function\"\n },\n shapeProperties: {\n borderDashes: {\n boolean: bool,\n array: array\n },\n borderRadius: {\n number: number\n },\n interpolation: {\n boolean: bool\n },\n useImageSize: {\n boolean: bool\n },\n useBorderWithImage: {\n boolean: bool\n },\n coordinateOrigin: {\n string: [\"center\", \"top-left\"]\n },\n __type__: {\n object: object\n }\n },\n size: {\n number: number\n },\n title: {\n string: string,\n dom: dom,\n undefined: \"undefined\"\n },\n value: {\n number: number,\n undefined: \"undefined\"\n },\n widthConstraint: {\n minimum: {\n number: number\n },\n maximum: {\n number: number\n },\n __type__: {\n object: object,\n boolean: bool,\n number: number\n }\n },\n x: {\n number: number\n },\n y: {\n number: number\n },\n __type__: {\n object: object\n }\n};\nvar allOptions = {\n configure: {\n enabled: {\n boolean: bool\n },\n filter: {\n boolean: bool,\n string: string,\n array: array,\n function: \"function\"\n },\n container: {\n dom: dom\n },\n showButton: {\n boolean: bool\n },\n __type__: {\n object: object,\n boolean: bool,\n string: string,\n array: array,\n function: \"function\"\n }\n },\n edges: {\n arrows: {\n to: {\n enabled: {\n boolean: bool\n },\n scaleFactor: {\n number: number\n },\n type: {\n string: endPoints\n },\n imageHeight: {\n number: number\n },\n imageWidth: {\n number: number\n },\n src: {\n string: string\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n middle: {\n enabled: {\n boolean: bool\n },\n scaleFactor: {\n number: number\n },\n type: {\n string: endPoints\n },\n imageWidth: {\n number: number\n },\n imageHeight: {\n number: number\n },\n src: {\n string: string\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n from: {\n enabled: {\n boolean: bool\n },\n scaleFactor: {\n number: number\n },\n type: {\n string: endPoints\n },\n imageWidth: {\n number: number\n },\n imageHeight: {\n number: number\n },\n src: {\n string: string\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n __type__: {\n string: [\"from\", \"to\", \"middle\"],\n object: object\n }\n },\n endPointOffset: {\n from: {\n number: number\n },\n to: {\n number: number\n },\n __type__: {\n object: object,\n number: number\n }\n },\n arrowStrikethrough: {\n boolean: bool\n },\n background: {\n enabled: {\n boolean: bool\n },\n color: {\n string: string\n },\n size: {\n number: number\n },\n dashes: {\n boolean: bool,\n array: array\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n chosen: {\n label: {\n boolean: bool,\n function: \"function\"\n },\n edge: {\n boolean: bool,\n function: \"function\"\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n color: {\n color: {\n string: string\n },\n highlight: {\n string: string\n },\n hover: {\n string: string\n },\n inherit: {\n string: [\"from\", \"to\", \"both\"],\n boolean: bool\n },\n opacity: {\n number: number\n },\n __type__: {\n object: object,\n string: string\n }\n },\n dashes: {\n boolean: bool,\n array: array\n },\n font: {\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n background: {\n string: string\n },\n strokeWidth: {\n number: number\n },\n strokeColor: {\n string: string\n },\n align: {\n string: [\"horizontal\", \"top\", \"middle\", \"bottom\"]\n },\n vadjust: {\n number: number\n },\n multi: {\n boolean: bool,\n string: string\n },\n bold: {\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n mod: {\n string: string\n },\n vadjust: {\n number: number\n },\n __type__: {\n object: object,\n string: string\n }\n },\n boldital: {\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n mod: {\n string: string\n },\n vadjust: {\n number: number\n },\n __type__: {\n object: object,\n string: string\n }\n },\n ital: {\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n mod: {\n string: string\n },\n vadjust: {\n number: number\n },\n __type__: {\n object: object,\n string: string\n }\n },\n mono: {\n color: {\n string: string\n },\n size: {\n number: number\n },\n face: {\n string: string\n },\n mod: {\n string: string\n },\n vadjust: {\n number: number\n },\n __type__: {\n object: object,\n string: string\n }\n },\n __type__: {\n object: object,\n string: string\n }\n },\n hidden: {\n boolean: bool\n },\n hoverWidth: {\n function: \"function\",\n number: number\n },\n label: {\n string: string,\n undefined: \"undefined\"\n },\n labelHighlightBold: {\n boolean: bool\n },\n length: {\n number: number,\n undefined: \"undefined\"\n },\n physics: {\n boolean: bool\n },\n scaling: {\n min: {\n number: number\n },\n max: {\n number: number\n },\n label: {\n enabled: {\n boolean: bool\n },\n min: {\n number: number\n },\n max: {\n number: number\n },\n maxVisible: {\n number: number\n },\n drawThreshold: {\n number: number\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n customScalingFunction: {\n function: \"function\"\n },\n __type__: {\n object: object\n }\n },\n selectionWidth: {\n function: \"function\",\n number: number\n },\n selfReferenceSize: {\n number: number\n },\n selfReference: {\n size: {\n number: number\n },\n angle: {\n number: number\n },\n renderBehindTheNode: {\n boolean: bool\n },\n __type__: {\n object: object\n }\n },\n shadow: {\n enabled: {\n boolean: bool\n },\n color: {\n string: string\n },\n size: {\n number: number\n },\n x: {\n number: number\n },\n y: {\n number: number\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n smooth: {\n enabled: {\n boolean: bool\n },\n type: {\n string: [\"dynamic\", \"continuous\", \"discrete\", \"diagonalCross\", \"straightCross\", \"horizontal\", \"vertical\", \"curvedCW\", \"curvedCCW\", \"cubicBezier\"]\n },\n roundness: {\n number: number\n },\n forceDirection: {\n string: [\"horizontal\", \"vertical\", \"none\"],\n boolean: bool\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n title: {\n string: string,\n undefined: \"undefined\"\n },\n width: {\n number: number\n },\n widthConstraint: {\n maximum: {\n number: number\n },\n __type__: {\n object: object,\n boolean: bool,\n number: number\n }\n },\n value: {\n number: number,\n undefined: \"undefined\"\n },\n __type__: {\n object: object\n }\n },\n groups: {\n useDefaultGroups: {\n boolean: bool\n },\n __any__: nodeOptions,\n __type__: {\n object: object\n }\n },\n interaction: {\n dragNodes: {\n boolean: bool\n },\n dragView: {\n boolean: bool\n },\n hideEdgesOnDrag: {\n boolean: bool\n },\n hideEdgesOnZoom: {\n boolean: bool\n },\n hideNodesOnDrag: {\n boolean: bool\n },\n hover: {\n boolean: bool\n },\n keyboard: {\n enabled: {\n boolean: bool\n },\n speed: {\n x: {\n number: number\n },\n y: {\n number: number\n },\n zoom: {\n number: number\n },\n __type__: {\n object: object\n }\n },\n bindToWindow: {\n boolean: bool\n },\n autoFocus: {\n boolean: bool\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n multiselect: {\n boolean: bool\n },\n navigationButtons: {\n boolean: bool\n },\n selectable: {\n boolean: bool\n },\n selectConnectedEdges: {\n boolean: bool\n },\n hoverConnectedEdges: {\n boolean: bool\n },\n tooltipDelay: {\n number: number\n },\n zoomView: {\n boolean: bool\n },\n zoomSpeed: {\n number: number\n },\n __type__: {\n object: object\n }\n },\n layout: {\n randomSeed: {\n undefined: \"undefined\",\n number: number,\n string: string\n },\n improvedLayout: {\n boolean: bool\n },\n clusterThreshold: {\n number: number\n },\n hierarchical: {\n enabled: {\n boolean: bool\n },\n levelSeparation: {\n number: number\n },\n nodeSpacing: {\n number: number\n },\n treeSpacing: {\n number: number\n },\n blockShifting: {\n boolean: bool\n },\n edgeMinimization: {\n boolean: bool\n },\n parentCentralization: {\n boolean: bool\n },\n direction: {\n string: [\"UD\", \"DU\", \"LR\", \"RL\"]\n },\n sortMethod: {\n string: [\"hubsize\", \"directed\"]\n },\n shakeTowards: {\n string: [\"leaves\", \"roots\"]\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n __type__: {\n object: object\n }\n },\n manipulation: {\n enabled: {\n boolean: bool\n },\n initiallyActive: {\n boolean: bool\n },\n addNode: {\n boolean: bool,\n function: \"function\"\n },\n addEdge: {\n boolean: bool,\n function: \"function\"\n },\n editNode: {\n function: \"function\"\n },\n editEdge: {\n editWithoutDrag: {\n function: \"function\"\n },\n __type__: {\n object: object,\n boolean: bool,\n function: \"function\"\n }\n },\n deleteNode: {\n boolean: bool,\n function: \"function\"\n },\n deleteEdge: {\n boolean: bool,\n function: \"function\"\n },\n controlNodeStyle: nodeOptions,\n __type__: {\n object: object,\n boolean: bool\n }\n },\n nodes: nodeOptions,\n physics: {\n enabled: {\n boolean: bool\n },\n barnesHut: {\n theta: {\n number: number\n },\n gravitationalConstant: {\n number: number\n },\n centralGravity: {\n number: number\n },\n springLength: {\n number: number\n },\n springConstant: {\n number: number\n },\n damping: {\n number: number\n },\n avoidOverlap: {\n number: number\n },\n __type__: {\n object: object\n }\n },\n forceAtlas2Based: {\n theta: {\n number: number\n },\n gravitationalConstant: {\n number: number\n },\n centralGravity: {\n number: number\n },\n springLength: {\n number: number\n },\n springConstant: {\n number: number\n },\n damping: {\n number: number\n },\n avoidOverlap: {\n number: number\n },\n __type__: {\n object: object\n }\n },\n repulsion: {\n centralGravity: {\n number: number\n },\n springLength: {\n number: number\n },\n springConstant: {\n number: number\n },\n nodeDistance: {\n number: number\n },\n damping: {\n number: number\n },\n __type__: {\n object: object\n }\n },\n hierarchicalRepulsion: {\n centralGravity: {\n number: number\n },\n springLength: {\n number: number\n },\n springConstant: {\n number: number\n },\n nodeDistance: {\n number: number\n },\n damping: {\n number: number\n },\n avoidOverlap: {\n number: number\n },\n __type__: {\n object: object\n }\n },\n maxVelocity: {\n number: number\n },\n minVelocity: {\n number: number\n },\n solver: {\n string: [\"barnesHut\", \"repulsion\", \"hierarchicalRepulsion\", \"forceAtlas2Based\"]\n },\n stabilization: {\n enabled: {\n boolean: bool\n },\n iterations: {\n number: number\n },\n updateInterval: {\n number: number\n },\n onlyDynamicEdges: {\n boolean: bool\n },\n fit: {\n boolean: bool\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n timestep: {\n number: number\n },\n adaptiveTimestep: {\n boolean: bool\n },\n wind: {\n x: {\n number: number\n },\n y: {\n number: number\n },\n __type__: {\n object: object\n }\n },\n __type__: {\n object: object,\n boolean: bool\n }\n },\n //globals :\n autoResize: {\n boolean: bool\n },\n clickToUse: {\n boolean: bool\n },\n locale: {\n string: string\n },\n locales: {\n __any__: {\n any: any\n },\n __type__: {\n object: object\n }\n },\n height: {\n string: string\n },\n width: {\n string: string\n },\n __type__: {\n object: object\n }\n};\n/* eslint-enable @typescript-eslint/naming-convention */\n/**\r\n * This provides ranges, initial values, steps and dropdown menu choices for the\r\n * configuration.\r\n *\r\n * @remarks\r\n * Checkbox: `boolean`\r\n * The value supllied will be used as the initial value.\r\n *\r\n * Text field: `string`\r\n * The passed text will be used as the initial value. Any text will be\r\n * accepted afterwards.\r\n *\r\n * Number range: `[number, number, number, number]`\r\n * The meanings are `[initial value, min, max, step]`.\r\n *\r\n * Dropdown: `[Exclude, ...(string | number | boolean)[]]`\r\n * Translations for people with poor understanding of TypeScript: the first\r\n * value always has to be a string but never `\"color\"`, the rest can be any\r\n * combination of strings, numbers and booleans.\r\n *\r\n * Color picker: `[\"color\", string]`\r\n * The first value says this will be a color picker not a dropdown menu. The\r\n * next value is the initial color.\r\n */\nvar configureOptions = {\n nodes: {\n borderWidth: [1, 0, 10, 1],\n borderWidthSelected: [2, 0, 10, 1],\n color: {\n border: [\"color\", \"#2B7CE9\"],\n background: [\"color\", \"#97C2FC\"],\n highlight: {\n border: [\"color\", \"#2B7CE9\"],\n background: [\"color\", \"#D2E5FF\"]\n },\n hover: {\n border: [\"color\", \"#2B7CE9\"],\n background: [\"color\", \"#D2E5FF\"]\n }\n },\n opacity: [0, 0, 1, 0.1],\n fixed: {\n x: false,\n y: false\n },\n font: {\n color: [\"color\", \"#343434\"],\n size: [14, 0, 100, 1],\n face: [\"arial\", \"verdana\", \"tahoma\"],\n background: [\"color\", \"none\"],\n strokeWidth: [0, 0, 50, 1],\n strokeColor: [\"color\", \"#ffffff\"]\n },\n //group: 'string',\n hidden: false,\n labelHighlightBold: true,\n //icon: {\n // face: 'string', //'FontAwesome',\n // code: 'string', //'\\uf007',\n // size: [50, 0, 200, 1], //50,\n // color: ['color','#2B7CE9'] //'#aa00ff'\n //},\n //image: 'string', // --> URL\n physics: true,\n scaling: {\n min: [10, 0, 200, 1],\n max: [30, 0, 200, 1],\n label: {\n enabled: false,\n min: [14, 0, 200, 1],\n max: [30, 0, 200, 1],\n maxVisible: [30, 0, 200, 1],\n drawThreshold: [5, 0, 20, 1]\n }\n },\n shadow: {\n enabled: false,\n color: \"rgba(0,0,0,0.5)\",\n size: [10, 0, 20, 1],\n x: [5, -30, 30, 1],\n y: [5, -30, 30, 1]\n },\n shape: [\"ellipse\", \"box\", \"circle\", \"database\", \"diamond\", \"dot\", \"square\", \"star\", \"text\", \"triangle\", \"triangleDown\", \"hexagon\"],\n shapeProperties: {\n borderDashes: false,\n borderRadius: [6, 0, 20, 1],\n interpolation: true,\n useImageSize: false\n },\n size: [25, 0, 200, 1]\n },\n edges: {\n arrows: {\n to: {\n enabled: false,\n scaleFactor: [1, 0, 3, 0.05],\n type: \"arrow\"\n },\n middle: {\n enabled: false,\n scaleFactor: [1, 0, 3, 0.05],\n type: \"arrow\"\n },\n from: {\n enabled: false,\n scaleFactor: [1, 0, 3, 0.05],\n type: \"arrow\"\n }\n },\n endPointOffset: {\n from: [0, -10, 10, 1],\n to: [0, -10, 10, 1]\n },\n arrowStrikethrough: true,\n color: {\n color: [\"color\", \"#848484\"],\n highlight: [\"color\", \"#848484\"],\n hover: [\"color\", \"#848484\"],\n inherit: [\"from\", \"to\", \"both\", true, false],\n opacity: [1, 0, 1, 0.05]\n },\n dashes: false,\n font: {\n color: [\"color\", \"#343434\"],\n size: [14, 0, 100, 1],\n face: [\"arial\", \"verdana\", \"tahoma\"],\n background: [\"color\", \"none\"],\n strokeWidth: [2, 0, 50, 1],\n strokeColor: [\"color\", \"#ffffff\"],\n align: [\"horizontal\", \"top\", \"middle\", \"bottom\"]\n },\n hidden: false,\n hoverWidth: [1.5, 0, 5, 0.1],\n labelHighlightBold: true,\n physics: true,\n scaling: {\n min: [1, 0, 100, 1],\n max: [15, 0, 100, 1],\n label: {\n enabled: true,\n min: [14, 0, 200, 1],\n max: [30, 0, 200, 1],\n maxVisible: [30, 0, 200, 1],\n drawThreshold: [5, 0, 20, 1]\n }\n },\n selectionWidth: [1.5, 0, 5, 0.1],\n selfReferenceSize: [20, 0, 200, 1],\n selfReference: {\n size: [20, 0, 200, 1],\n angle: [Math.PI / 2, -6 * Math.PI, 6 * Math.PI, Math.PI / 8],\n renderBehindTheNode: true\n },\n shadow: {\n enabled: false,\n color: \"rgba(0,0,0,0.5)\",\n size: [10, 0, 20, 1],\n x: [5, -30, 30, 1],\n y: [5, -30, 30, 1]\n },\n smooth: {\n enabled: true,\n type: [\"dynamic\", \"continuous\", \"discrete\", \"diagonalCross\", \"straightCross\", \"horizontal\", \"vertical\", \"curvedCW\", \"curvedCCW\", \"cubicBezier\"],\n forceDirection: [\"horizontal\", \"vertical\", \"none\"],\n roundness: [0.5, 0, 1, 0.05]\n },\n width: [1, 0, 30, 1]\n },\n layout: {\n //randomSeed: [0, 0, 500, 1],\n //improvedLayout: true,\n hierarchical: {\n enabled: false,\n levelSeparation: [150, 20, 500, 5],\n nodeSpacing: [100, 20, 500, 5],\n treeSpacing: [200, 20, 500, 5],\n blockShifting: true,\n edgeMinimization: true,\n parentCentralization: true,\n direction: [\"UD\", \"DU\", \"LR\", \"RL\"],\n sortMethod: [\"hubsize\", \"directed\"],\n shakeTowards: [\"leaves\", \"roots\"] // leaves, roots\n }\n },\n\n interaction: {\n dragNodes: true,\n dragView: true,\n hideEdgesOnDrag: false,\n hideEdgesOnZoom: false,\n hideNodesOnDrag: false,\n hover: false,\n keyboard: {\n enabled: false,\n speed: {\n x: [10, 0, 40, 1],\n y: [10, 0, 40, 1],\n zoom: [0.02, 0, 0.1, 0.005]\n },\n bindToWindow: true,\n autoFocus: true\n },\n multiselect: false,\n navigationButtons: false,\n selectable: true,\n selectConnectedEdges: true,\n hoverConnectedEdges: true,\n tooltipDelay: [300, 0, 1000, 25],\n zoomView: true,\n zoomSpeed: [1, 0.1, 2, 0.1]\n },\n manipulation: {\n enabled: false,\n initiallyActive: false\n },\n physics: {\n enabled: true,\n barnesHut: {\n theta: [0.5, 0.1, 1, 0.05],\n gravitationalConstant: [-2000, -30000, 0, 50],\n centralGravity: [0.3, 0, 10, 0.05],\n springLength: [95, 0, 500, 5],\n springConstant: [0.04, 0, 1.2, 0.005],\n damping: [0.09, 0, 1, 0.01],\n avoidOverlap: [0, 0, 1, 0.01]\n },\n forceAtlas2Based: {\n theta: [0.5, 0.1, 1, 0.05],\n gravitationalConstant: [-50, -500, 0, 1],\n centralGravity: [0.01, 0, 1, 0.005],\n springLength: [95, 0, 500, 5],\n springConstant: [0.08, 0, 1.2, 0.005],\n damping: [0.4, 0, 1, 0.01],\n avoidOverlap: [0, 0, 1, 0.01]\n },\n repulsion: {\n centralGravity: [0.2, 0, 10, 0.05],\n springLength: [200, 0, 500, 5],\n springConstant: [0.05, 0, 1.2, 0.005],\n nodeDistance: [100, 0, 500, 5],\n damping: [0.09, 0, 1, 0.01]\n },\n hierarchicalRepulsion: {\n centralGravity: [0.2, 0, 10, 0.05],\n springLength: [100, 0, 500, 5],\n springConstant: [0.01, 0, 1.2, 0.005],\n nodeDistance: [120, 0, 500, 5],\n damping: [0.09, 0, 1, 0.01],\n avoidOverlap: [0, 0, 1, 0.01]\n },\n maxVelocity: [50, 0, 150, 1],\n minVelocity: [0.1, 0.01, 0.5, 0.01],\n solver: [\"barnesHut\", \"forceAtlas2Based\", \"repulsion\", \"hierarchicalRepulsion\"],\n timestep: [0.5, 0.01, 1, 0.01],\n wind: {\n x: [0, -10, 10, 0.1],\n y: [0, -10, 10, 0.1]\n }\n //adaptiveTimestep: true\n }\n};\n\nvar configuratorHideOption = function configuratorHideOption(parentPath, optionName, options) {\n var _context;\n if (_includesInstanceProperty(parentPath).call(parentPath, \"physics\") && _includesInstanceProperty(_context = configureOptions.physics.solver).call(_context, optionName) && options.physics.solver !== optionName && optionName !== \"wind\") {\n return true;\n }\n return false;\n};\n\nvar options = /*#__PURE__*/Object.freeze({\n\t__proto__: null,\n\tallOptions: allOptions,\n\tconfiguratorHideOption: configuratorHideOption,\n\tconfigureOptions: configureOptions\n});\n\n/**\n * The Floyd–Warshall algorithm is an algorithm for finding shortest paths in\n * a weighted graph with positive or negative edge weights (but with no negative\n * cycles). - https://en.wikipedia.org/wiki/Floyd–Warshall_algorithm\n */\nvar FloydWarshall = /*#__PURE__*/function () {\n /**\n * @ignore\n */\n function FloydWarshall() {\n _classCallCheck(this, FloydWarshall);\n }\n\n /**\n *\n * @param {object} body\n * @param {Array.} nodesArray\n * @param {Array.} edgesArray\n * @returns {{}}\n */\n _createClass(FloydWarshall, [{\n key: \"getDistances\",\n value: function getDistances(body, nodesArray, edgesArray) {\n var D_matrix = {};\n var edges = body.edges;\n\n // prepare matrix with large numbers\n for (var i = 0; i < nodesArray.length; i++) {\n var node = nodesArray[i];\n var cell = {};\n D_matrix[node] = cell;\n for (var j = 0; j < nodesArray.length; j++) {\n cell[nodesArray[j]] = i == j ? 0 : 1e9;\n }\n }\n\n // put the weights for the edges in. This assumes unidirectionality.\n for (var _i = 0; _i < edgesArray.length; _i++) {\n var edge = edges[edgesArray[_i]];\n // edge has to be connected if it counts to the distances. If it is connected to inner clusters it will crash so we also check if it is in the D_matrix\n if (edge.connected === true && D_matrix[edge.fromId] !== undefined && D_matrix[edge.toId] !== undefined) {\n D_matrix[edge.fromId][edge.toId] = 1;\n D_matrix[edge.toId][edge.fromId] = 1;\n }\n }\n var nodeCount = nodesArray.length;\n\n // Adapted FloydWarshall based on unidirectionality to greatly reduce complexity.\n for (var k = 0; k < nodeCount; k++) {\n var knode = nodesArray[k];\n var kcolm = D_matrix[knode];\n for (var _i2 = 0; _i2 < nodeCount - 1; _i2++) {\n var inode = nodesArray[_i2];\n var icolm = D_matrix[inode];\n for (var _j = _i2 + 1; _j < nodeCount; _j++) {\n var jnode = nodesArray[_j];\n var jcolm = D_matrix[jnode];\n var val = Math.min(icolm[jnode], icolm[knode] + kcolm[jnode]);\n icolm[jnode] = val;\n jcolm[inode] = val;\n }\n }\n }\n return D_matrix;\n }\n }]);\n return FloydWarshall;\n}();\n\n/**\n * KamadaKawai positions the nodes initially based on\n *\n * \"AN ALGORITHM FOR DRAWING GENERAL UNDIRECTED GRAPHS\"\n * -- Tomihisa KAMADA and Satoru KAWAI in 1989\n *\n * Possible optimizations in the distance calculation can be implemented.\n */\nvar KamadaKawai = /*#__PURE__*/function () {\n /**\n * @param {object} body\n * @param {number} edgeLength\n * @param {number} edgeStrength\n */\n function KamadaKawai(body, edgeLength, edgeStrength) {\n _classCallCheck(this, KamadaKawai);\n this.body = body;\n this.springLength = edgeLength;\n this.springConstant = edgeStrength;\n this.distanceSolver = new FloydWarshall();\n }\n\n /**\n * Not sure if needed but can be used to update the spring length and spring constant\n *\n * @param {object} options\n */\n _createClass(KamadaKawai, [{\n key: \"setOptions\",\n value: function setOptions(options) {\n if (options) {\n if (options.springLength) {\n this.springLength = options.springLength;\n }\n if (options.springConstant) {\n this.springConstant = options.springConstant;\n }\n }\n }\n\n /**\n * Position the system\n *\n * @param {Array.} nodesArray\n * @param {Array.} edgesArray\n * @param {boolean} [ignoreClusters=false]\n */\n }, {\n key: \"solve\",\n value: function solve(nodesArray, edgesArray) {\n var ignoreClusters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n // get distance matrix\n var D_matrix = this.distanceSolver.getDistances(this.body, nodesArray, edgesArray); // distance matrix\n\n // get the L Matrix\n this._createL_matrix(D_matrix);\n\n // get the K Matrix\n this._createK_matrix(D_matrix);\n\n // initial E Matrix\n this._createE_matrix();\n\n // calculate positions\n var threshold = 0.01;\n var innerThreshold = 1;\n var iterations = 0;\n var maxIterations = Math.max(1000, Math.min(10 * this.body.nodeIndices.length, 6000));\n var maxInnerIterations = 5;\n var maxEnergy = 1e9;\n var highE_nodeId = 0,\n dE_dx = 0,\n dE_dy = 0,\n delta_m = 0,\n subIterations = 0;\n while (maxEnergy > threshold && iterations < maxIterations) {\n iterations += 1;\n var _this$_getHighestEner = this._getHighestEnergyNode(ignoreClusters);\n var _this$_getHighestEner2 = _slicedToArray(_this$_getHighestEner, 4);\n highE_nodeId = _this$_getHighestEner2[0];\n maxEnergy = _this$_getHighestEner2[1];\n dE_dx = _this$_getHighestEner2[2];\n dE_dy = _this$_getHighestEner2[3];\n delta_m = maxEnergy;\n subIterations = 0;\n while (delta_m > innerThreshold && subIterations < maxInnerIterations) {\n subIterations += 1;\n this._moveNode(highE_nodeId, dE_dx, dE_dy);\n var _this$_getEnergy = this._getEnergy(highE_nodeId);\n var _this$_getEnergy2 = _slicedToArray(_this$_getEnergy, 3);\n delta_m = _this$_getEnergy2[0];\n dE_dx = _this$_getEnergy2[1];\n dE_dy = _this$_getEnergy2[2];\n }\n }\n }\n\n /**\n * get the node with the highest energy\n *\n * @param {boolean} ignoreClusters\n * @returns {number[]}\n * @private\n */\n }, {\n key: \"_getHighestEnergyNode\",\n value: function _getHighestEnergyNode(ignoreClusters) {\n var nodesArray = this.body.nodeIndices;\n var nodes = this.body.nodes;\n var maxEnergy = 0;\n var maxEnergyNodeId = nodesArray[0];\n var dE_dx_max = 0,\n dE_dy_max = 0;\n for (var nodeIdx = 0; nodeIdx < nodesArray.length; nodeIdx++) {\n var m = nodesArray[nodeIdx];\n // by not evaluating nodes with predefined positions we should only move nodes that have no positions.\n if (nodes[m].predefinedPosition !== true || nodes[m].isCluster === true && ignoreClusters === true || nodes[m].options.fixed.x !== true || nodes[m].options.fixed.y !== true) {\n var _this$_getEnergy3 = this._getEnergy(m),\n _this$_getEnergy4 = _slicedToArray(_this$_getEnergy3, 3),\n delta_m = _this$_getEnergy4[0],\n dE_dx = _this$_getEnergy4[1],\n dE_dy = _this$_getEnergy4[2];\n if (maxEnergy < delta_m) {\n maxEnergy = delta_m;\n maxEnergyNodeId = m;\n dE_dx_max = dE_dx;\n dE_dy_max = dE_dy;\n }\n }\n }\n return [maxEnergyNodeId, maxEnergy, dE_dx_max, dE_dy_max];\n }\n\n /**\n * calculate the energy of a single node\n *\n * @param {Node.id} m\n * @returns {number[]}\n * @private\n */\n }, {\n key: \"_getEnergy\",\n value: function _getEnergy(m) {\n var _this$E_sums$m = _slicedToArray(this.E_sums[m], 2),\n dE_dx = _this$E_sums$m[0],\n dE_dy = _this$E_sums$m[1];\n var delta_m = Math.sqrt(Math.pow(dE_dx, 2) + Math.pow(dE_dy, 2));\n return [delta_m, dE_dx, dE_dy];\n }\n\n /**\n * move the node based on it's energy\n * the dx and dy are calculated from the linear system proposed by Kamada and Kawai\n *\n * @param {number} m\n * @param {number} dE_dx\n * @param {number} dE_dy\n * @private\n */\n }, {\n key: \"_moveNode\",\n value: function _moveNode(m, dE_dx, dE_dy) {\n var nodesArray = this.body.nodeIndices;\n var nodes = this.body.nodes;\n var d2E_dx2 = 0;\n var d2E_dxdy = 0;\n var d2E_dy2 = 0;\n var x_m = nodes[m].x;\n var y_m = nodes[m].y;\n var km = this.K_matrix[m];\n var lm = this.L_matrix[m];\n for (var iIdx = 0; iIdx < nodesArray.length; iIdx++) {\n var i = nodesArray[iIdx];\n if (i !== m) {\n var x_i = nodes[i].x;\n var y_i = nodes[i].y;\n var kmat = km[i];\n var lmat = lm[i];\n var denominator = 1.0 / Math.pow(Math.pow(x_m - x_i, 2) + Math.pow(y_m - y_i, 2), 1.5);\n d2E_dx2 += kmat * (1 - lmat * Math.pow(y_m - y_i, 2) * denominator);\n d2E_dxdy += kmat * (lmat * (x_m - x_i) * (y_m - y_i) * denominator);\n d2E_dy2 += kmat * (1 - lmat * Math.pow(x_m - x_i, 2) * denominator);\n }\n }\n // make the variable names easier to make the solving of the linear system easier to read\n var A = d2E_dx2,\n B = d2E_dxdy,\n C = dE_dx,\n D = d2E_dy2,\n E = dE_dy;\n\n // solve the linear system for dx and dy\n var dy = (C / A + E / B) / (B / A - D / B);\n var dx = -(B * dy + C) / A;\n\n // move the node\n nodes[m].x += dx;\n nodes[m].y += dy;\n\n // Recalculate E_matrix (should be incremental)\n this._updateE_matrix(m);\n }\n\n /**\n * Create the L matrix: edge length times shortest path\n *\n * @param {object} D_matrix\n * @private\n */\n }, {\n key: \"_createL_matrix\",\n value: function _createL_matrix(D_matrix) {\n var nodesArray = this.body.nodeIndices;\n var edgeLength = this.springLength;\n this.L_matrix = [];\n for (var i = 0; i < nodesArray.length; i++) {\n this.L_matrix[nodesArray[i]] = {};\n for (var j = 0; j < nodesArray.length; j++) {\n this.L_matrix[nodesArray[i]][nodesArray[j]] = edgeLength * D_matrix[nodesArray[i]][nodesArray[j]];\n }\n }\n }\n\n /**\n * Create the K matrix: spring constants times shortest path\n *\n * @param {object} D_matrix\n * @private\n */\n }, {\n key: \"_createK_matrix\",\n value: function _createK_matrix(D_matrix) {\n var nodesArray = this.body.nodeIndices;\n var edgeStrength = this.springConstant;\n this.K_matrix = [];\n for (var i = 0; i < nodesArray.length; i++) {\n this.K_matrix[nodesArray[i]] = {};\n for (var j = 0; j < nodesArray.length; j++) {\n this.K_matrix[nodesArray[i]][nodesArray[j]] = edgeStrength * Math.pow(D_matrix[nodesArray[i]][nodesArray[j]], -2);\n }\n }\n }\n\n /**\n * Create matrix with all energies between nodes\n *\n * @private\n */\n }, {\n key: \"_createE_matrix\",\n value: function _createE_matrix() {\n var nodesArray = this.body.nodeIndices;\n var nodes = this.body.nodes;\n this.E_matrix = {};\n this.E_sums = {};\n for (var mIdx = 0; mIdx < nodesArray.length; mIdx++) {\n this.E_matrix[nodesArray[mIdx]] = [];\n }\n for (var _mIdx = 0; _mIdx < nodesArray.length; _mIdx++) {\n var m = nodesArray[_mIdx];\n var x_m = nodes[m].x;\n var y_m = nodes[m].y;\n var dE_dx = 0;\n var dE_dy = 0;\n for (var iIdx = _mIdx; iIdx < nodesArray.length; iIdx++) {\n var i = nodesArray[iIdx];\n if (i !== m) {\n var x_i = nodes[i].x;\n var y_i = nodes[i].y;\n var denominator = 1.0 / Math.sqrt(Math.pow(x_m - x_i, 2) + Math.pow(y_m - y_i, 2));\n this.E_matrix[m][iIdx] = [this.K_matrix[m][i] * (x_m - x_i - this.L_matrix[m][i] * (x_m - x_i) * denominator), this.K_matrix[m][i] * (y_m - y_i - this.L_matrix[m][i] * (y_m - y_i) * denominator)];\n this.E_matrix[i][_mIdx] = this.E_matrix[m][iIdx];\n dE_dx += this.E_matrix[m][iIdx][0];\n dE_dy += this.E_matrix[m][iIdx][1];\n }\n }\n //Store sum\n this.E_sums[m] = [dE_dx, dE_dy];\n }\n }\n\n /**\n * Update method, just doing single column (rows are auto-updated) (update all sums)\n *\n * @param {number} m\n * @private\n */\n }, {\n key: \"_updateE_matrix\",\n value: function _updateE_matrix(m) {\n var nodesArray = this.body.nodeIndices;\n var nodes = this.body.nodes;\n var colm = this.E_matrix[m];\n var kcolm = this.K_matrix[m];\n var lcolm = this.L_matrix[m];\n var x_m = nodes[m].x;\n var y_m = nodes[m].y;\n var dE_dx = 0;\n var dE_dy = 0;\n for (var iIdx = 0; iIdx < nodesArray.length; iIdx++) {\n var i = nodesArray[iIdx];\n if (i !== m) {\n //Keep old energy value for sum modification below\n var cell = colm[iIdx];\n var oldDx = cell[0];\n var oldDy = cell[1];\n\n //Calc new energy:\n var x_i = nodes[i].x;\n var y_i = nodes[i].y;\n var denominator = 1.0 / Math.sqrt(Math.pow(x_m - x_i, 2) + Math.pow(y_m - y_i, 2));\n var dx = kcolm[i] * (x_m - x_i - lcolm[i] * (x_m - x_i) * denominator);\n var dy = kcolm[i] * (y_m - y_i - lcolm[i] * (y_m - y_i) * denominator);\n colm[iIdx] = [dx, dy];\n dE_dx += dx;\n dE_dy += dy;\n\n //add new energy to sum of each column\n var sum = this.E_sums[i];\n sum[0] += dx - oldDx;\n sum[1] += dy - oldDy;\n }\n }\n //Store sum at -1 index\n this.E_sums[m] = [dE_dx, dE_dy];\n }\n }]);\n return KamadaKawai;\n}();\n\n/**\n * Create a network visualization, displaying nodes and edges.\n *\n * @param {Element} container The DOM element in which the Network will\n * be created. Normally a div element.\n * @param {object} data An object containing parameters\n * {Array} nodes\n * {Array} edges\n * @param {object} options Options\n * @class Network\n */\nfunction Network(container, data, options) {\n var _context,\n _context2,\n _context3,\n _context4,\n _this = this;\n if (!(this instanceof Network)) {\n throw new SyntaxError(\"Constructor must be called with the new operator\");\n }\n\n // set constant values\n this.options = {};\n this.defaultOptions = {\n locale: \"en\",\n locales: locales,\n clickToUse: false\n };\n _Object$assign(this.options, this.defaultOptions);\n\n /**\n * Containers for nodes and edges.\n *\n * 'edges' and 'nodes' contain the full definitions of all the network elements.\n * 'nodeIndices' and 'edgeIndices' contain the id's of the active elements.\n *\n * The distinction is important, because a defined node need not be active, i.e.\n * visible on the canvas. This happens in particular when clusters are defined, in\n * that case there will be nodes and edges not displayed.\n * The bottom line is that all code with actions related to visibility, *must* use\n * 'nodeIndices' and 'edgeIndices', not 'nodes' and 'edges' directly.\n */\n this.body = {\n container: container,\n // See comment above for following fields\n nodes: {},\n nodeIndices: [],\n edges: {},\n edgeIndices: [],\n emitter: {\n on: _bindInstanceProperty$1(_context = this.on).call(_context, this),\n off: _bindInstanceProperty$1(_context2 = this.off).call(_context2, this),\n emit: _bindInstanceProperty$1(_context3 = this.emit).call(_context3, this),\n once: _bindInstanceProperty$1(_context4 = this.once).call(_context4, this)\n },\n eventListeners: {\n onTap: function onTap() {},\n onTouch: function onTouch() {},\n onDoubleTap: function onDoubleTap() {},\n onHold: function onHold() {},\n onDragStart: function onDragStart() {},\n onDrag: function onDrag() {},\n onDragEnd: function onDragEnd() {},\n onMouseWheel: function onMouseWheel() {},\n onPinch: function onPinch() {},\n onMouseMove: function onMouseMove() {},\n onRelease: function onRelease() {},\n onContext: function onContext() {}\n },\n data: {\n nodes: null,\n // A DataSet or DataView\n edges: null // A DataSet or DataView\n },\n\n functions: {\n createNode: function createNode() {},\n createEdge: function createEdge() {},\n getPointer: function getPointer() {}\n },\n modules: {},\n view: {\n scale: 1,\n translation: {\n x: 0,\n y: 0\n }\n },\n selectionBox: {\n show: false,\n position: {\n start: {\n x: 0,\n y: 0\n },\n end: {\n x: 0,\n y: 0\n }\n }\n }\n };\n\n // bind the event listeners\n this.bindEventListeners();\n\n // setting up all modules\n this.images = new Images(function () {\n return _this.body.emitter.emit(\"_requestRedraw\");\n }); // object with images\n this.groups = new Groups(); // object with groups\n this.canvas = new Canvas(this.body); // DOM handler\n this.selectionHandler = new SelectionHandler(this.body, this.canvas); // Selection handler\n this.interactionHandler = new InteractionHandler(this.body, this.canvas, this.selectionHandler); // Interaction handler handles all the hammer bindings (that are bound by canvas), key\n this.view = new View(this.body, this.canvas); // camera handler, does animations and zooms\n this.renderer = new CanvasRenderer(this.body, this.canvas); // renderer, starts renderloop, has events that modules can hook into\n this.physics = new PhysicsEngine(this.body); // physics engine, does all the simulations\n this.layoutEngine = new LayoutEngine(this.body); // layout engine for inital layout and hierarchical layout\n this.clustering = new ClusterEngine(this.body); // clustering api\n this.manipulation = new ManipulationSystem(this.body, this.canvas, this.selectionHandler, this.interactionHandler); // data manipulation system\n\n this.nodesHandler = new NodesHandler(this.body, this.images, this.groups, this.layoutEngine); // Handle adding, deleting and updating of nodes as well as global options\n this.edgesHandler = new EdgesHandler(this.body, this.images, this.groups); // Handle adding, deleting and updating of edges as well as global options\n\n this.body.modules[\"kamadaKawai\"] = new KamadaKawai(this.body, 150, 0.05); // Layouting algorithm.\n this.body.modules[\"clustering\"] = this.clustering;\n\n // create the DOM elements\n this.canvas._create();\n\n // apply options\n this.setOptions(options);\n\n // load data (the disable start variable will be the same as the enabled clustering)\n this.setData(data);\n}\n\n// Extend Network with an Emitter mixin\nEmitter(Network.prototype);\n\n/**\n * Set options\n *\n * @param {object} options\n */\nNetwork.prototype.setOptions = function (options) {\n var _this2 = this;\n if (options === null) {\n options = undefined; // This ensures that options handling doesn't crash in the handling\n }\n\n if (options !== undefined) {\n var errorFound = Validator.validate(options, allOptions);\n if (errorFound === true) {\n console.error(\"%cErrors have been found in the supplied options object.\", VALIDATOR_PRINT_STYLE);\n }\n\n // copy the global fields over\n var fields = [\"locale\", \"locales\", \"clickToUse\"];\n selectiveDeepExtend(fields, this.options, options);\n\n // normalize the locale or use English\n if (options.locale !== undefined) {\n options.locale = normalizeLanguageCode(options.locales || this.options.locales, options.locale);\n }\n\n // the hierarchical system can adapt the edges and the physics to it's own options because not all combinations work with the hierarichical system.\n options = this.layoutEngine.setOptions(options.layout, options);\n this.canvas.setOptions(options); // options for canvas are in globals\n\n // pass the options to the modules\n this.groups.setOptions(options.groups);\n this.nodesHandler.setOptions(options.nodes);\n this.edgesHandler.setOptions(options.edges);\n this.physics.setOptions(options.physics);\n this.manipulation.setOptions(options.manipulation, options, this.options); // manipulation uses the locales in the globals\n\n this.interactionHandler.setOptions(options.interaction);\n this.renderer.setOptions(options.interaction); // options for rendering are in interaction\n this.selectionHandler.setOptions(options.interaction); // options for selection are in interaction\n\n // reload the settings of the nodes to apply changes in groups that are not referenced by pointer.\n if (options.groups !== undefined) {\n this.body.emitter.emit(\"refreshNodes\");\n }\n // these two do not have options at the moment, here for completeness\n //this.view.setOptions(options.view);\n //this.clustering.setOptions(options.clustering);\n\n if (\"configure\" in options) {\n if (!this.configurator) {\n this.configurator = new Configurator(this, this.body.container, configureOptions, this.canvas.pixelRatio, configuratorHideOption);\n }\n this.configurator.setOptions(options.configure);\n }\n\n // if the configuration system is enabled, copy all options and put them into the config system\n if (this.configurator && this.configurator.options.enabled === true) {\n var networkOptions = {\n nodes: {},\n edges: {},\n layout: {},\n interaction: {},\n manipulation: {},\n physics: {},\n global: {}\n };\n deepExtend(networkOptions.nodes, this.nodesHandler.options);\n deepExtend(networkOptions.edges, this.edgesHandler.options);\n deepExtend(networkOptions.layout, this.layoutEngine.options);\n // load the selectionHandler and render default options in to the interaction group\n deepExtend(networkOptions.interaction, this.selectionHandler.options);\n deepExtend(networkOptions.interaction, this.renderer.options);\n deepExtend(networkOptions.interaction, this.interactionHandler.options);\n deepExtend(networkOptions.manipulation, this.manipulation.options);\n deepExtend(networkOptions.physics, this.physics.options);\n\n // load globals into the global object\n deepExtend(networkOptions.global, this.canvas.options);\n deepExtend(networkOptions.global, this.options);\n this.configurator.setModuleOptions(networkOptions);\n }\n\n // handle network global options\n if (options.clickToUse !== undefined) {\n if (options.clickToUse === true) {\n if (this.activator === undefined) {\n this.activator = new Activator(this.canvas.frame);\n this.activator.on(\"change\", function () {\n _this2.body.emitter.emit(\"activate\");\n });\n }\n } else {\n if (this.activator !== undefined) {\n this.activator.destroy();\n delete this.activator;\n }\n this.body.emitter.emit(\"activate\");\n }\n } else {\n this.body.emitter.emit(\"activate\");\n }\n this.canvas.setSize();\n // start the physics simulation. Can be safely called multiple times.\n this.body.emitter.emit(\"startSimulation\");\n }\n};\n\n/**\n * Update the visible nodes and edges list with the most recent node state.\n *\n * Visible nodes are stored in this.body.nodeIndices.\n * Visible edges are stored in this.body.edgeIndices.\n * A node or edges is visible if it is not hidden or clustered.\n *\n * @private\n */\nNetwork.prototype._updateVisibleIndices = function () {\n var nodes = this.body.nodes;\n var edges = this.body.edges;\n this.body.nodeIndices = [];\n this.body.edgeIndices = [];\n for (var nodeId in nodes) {\n if (Object.prototype.hasOwnProperty.call(nodes, nodeId)) {\n if (!this.clustering._isClusteredNode(nodeId) && nodes[nodeId].options.hidden === false) {\n this.body.nodeIndices.push(nodes[nodeId].id);\n }\n }\n }\n for (var edgeId in edges) {\n if (Object.prototype.hasOwnProperty.call(edges, edgeId)) {\n var edge = edges[edgeId];\n\n // It can happen that this is executed *after* a node edge has been removed,\n // but *before* the edge itself has been removed. Taking this into account.\n var fromNode = nodes[edge.fromId];\n var toNode = nodes[edge.toId];\n var edgeNodesPresent = fromNode !== undefined && toNode !== undefined;\n var isVisible = !this.clustering._isClusteredEdge(edgeId) && edge.options.hidden === false && edgeNodesPresent && fromNode.options.hidden === false &&\n // Also hidden if any of its connecting nodes are hidden\n toNode.options.hidden === false; // idem\n\n if (isVisible) {\n this.body.edgeIndices.push(edge.id);\n }\n }\n }\n};\n\n/**\n * Bind all events\n */\nNetwork.prototype.bindEventListeners = function () {\n var _this3 = this;\n // This event will trigger a rebuilding of the cache everything.\n // Used when nodes or edges have been added or removed.\n this.body.emitter.on(\"_dataChanged\", function () {\n _this3.edgesHandler._updateState();\n _this3.body.emitter.emit(\"_dataUpdated\");\n });\n\n // this is called when options of EXISTING nodes or edges have changed.\n this.body.emitter.on(\"_dataUpdated\", function () {\n // Order important in following block\n _this3.clustering._updateState();\n _this3._updateVisibleIndices();\n _this3._updateValueRange(_this3.body.nodes);\n _this3._updateValueRange(_this3.body.edges);\n // start simulation (can be called safely, even if already running)\n _this3.body.emitter.emit(\"startSimulation\");\n _this3.body.emitter.emit(\"_requestRedraw\");\n });\n};\n\n/**\n * Set nodes and edges, and optionally options as well.\n *\n * @param {object} data Object containing parameters:\n * {Array | DataSet | DataView} [nodes] Array with nodes\n * {Array | DataSet | DataView} [edges] Array with edges\n * {String} [dot] String containing data in DOT format\n * {String} [gephi] String containing data in gephi JSON format\n * {Options} [options] Object with options\n */\nNetwork.prototype.setData = function (data) {\n // reset the physics engine.\n this.body.emitter.emit(\"resetPhysics\");\n this.body.emitter.emit(\"_resetData\");\n\n // unselect all to ensure no selections from old data are carried over.\n this.selectionHandler.unselectAll();\n if (data && data.dot && (data.nodes || data.edges)) {\n throw new SyntaxError('Data must contain either parameter \"dot\" or ' + ' parameter pair \"nodes\" and \"edges\", but not both.');\n }\n\n // set options\n this.setOptions(data && data.options);\n // set all data\n if (data && data.dot) {\n console.warn(\"The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);\");\n // parse DOT file\n var dotData = DOTToGraph(data.dot);\n this.setData(dotData);\n return;\n } else if (data && data.gephi) {\n // parse DOT file\n console.warn(\"The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);\");\n var gephiData = parseGephi(data.gephi);\n this.setData(gephiData);\n return;\n } else {\n this.nodesHandler.setData(data && data.nodes, true);\n this.edgesHandler.setData(data && data.edges, true);\n }\n\n // emit change in data\n this.body.emitter.emit(\"_dataChanged\");\n\n // emit data loaded\n this.body.emitter.emit(\"_dataLoaded\");\n\n // find a stable position or start animating to a stable position\n this.body.emitter.emit(\"initPhysics\");\n};\n\n/**\n * Cleans up all bindings of the network, removing it fully from the memory IF the variable is set to null after calling this function.\n * var network = new vis.Network(..);\n * network.destroy();\n * network = null;\n */\nNetwork.prototype.destroy = function () {\n this.body.emitter.emit(\"destroy\");\n // clear events\n this.body.emitter.off();\n this.off();\n\n // delete modules\n delete this.groups;\n delete this.canvas;\n delete this.selectionHandler;\n delete this.interactionHandler;\n delete this.view;\n delete this.renderer;\n delete this.physics;\n delete this.layoutEngine;\n delete this.clustering;\n delete this.manipulation;\n delete this.nodesHandler;\n delete this.edgesHandler;\n delete this.configurator;\n delete this.images;\n for (var nodeId in this.body.nodes) {\n if (!Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId)) continue;\n delete this.body.nodes[nodeId];\n }\n for (var edgeId in this.body.edges) {\n if (!Object.prototype.hasOwnProperty.call(this.body.edges, edgeId)) continue;\n delete this.body.edges[edgeId];\n }\n\n // remove the container and everything inside it recursively\n recursiveDOMDelete(this.body.container);\n};\n\n/**\n * Update the values of all object in the given array according to the current\n * value range of the objects in the array.\n *\n * @param {object} obj An object containing a set of Edges or Nodes\n * The objects must have a method getValue() and\n * setValueRange(min, max).\n * @private\n */\nNetwork.prototype._updateValueRange = function (obj) {\n var id;\n\n // determine the range of the objects\n var valueMin = undefined;\n var valueMax = undefined;\n var valueTotal = 0;\n for (id in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, id)) {\n var value = obj[id].getValue();\n if (value !== undefined) {\n valueMin = valueMin === undefined ? value : Math.min(value, valueMin);\n valueMax = valueMax === undefined ? value : Math.max(value, valueMax);\n valueTotal += value;\n }\n }\n }\n\n // adjust the range of all objects\n if (valueMin !== undefined && valueMax !== undefined) {\n for (id in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, id)) {\n obj[id].setValueRange(valueMin, valueMax, valueTotal);\n }\n }\n }\n};\n\n/**\n * Returns true when the Network is active.\n *\n * @returns {boolean}\n */\nNetwork.prototype.isActive = function () {\n return !this.activator || this.activator.active;\n};\nNetwork.prototype.setSize = function () {\n return this.canvas.setSize.apply(this.canvas, arguments);\n};\nNetwork.prototype.canvasToDOM = function () {\n return this.canvas.canvasToDOM.apply(this.canvas, arguments);\n};\nNetwork.prototype.DOMtoCanvas = function () {\n return this.canvas.DOMtoCanvas.apply(this.canvas, arguments);\n};\n\n/**\n * Nodes can be in clusters. Clusters can also be in clusters. This function returns and array of\n * nodeIds showing where the node is.\n *\n * If any nodeId in the chain, especially the first passed in as a parameter, is not present in\n * the current nodes list, an empty array is returned.\n *\n * Example:\n * cluster 'A' contains cluster 'B',\n * cluster 'B' contains cluster 'C',\n * cluster 'C' contains node 'fred'.\n * `jsnetwork.clustering.findNode('fred')` will return `['A','B','C','fred']`.\n *\n * @param {string|number} nodeId\n * @returns {Array}\n */\nNetwork.prototype.findNode = function () {\n return this.clustering.findNode.apply(this.clustering, arguments);\n};\nNetwork.prototype.isCluster = function () {\n return this.clustering.isCluster.apply(this.clustering, arguments);\n};\nNetwork.prototype.openCluster = function () {\n return this.clustering.openCluster.apply(this.clustering, arguments);\n};\nNetwork.prototype.cluster = function () {\n return this.clustering.cluster.apply(this.clustering, arguments);\n};\nNetwork.prototype.getNodesInCluster = function () {\n return this.clustering.getNodesInCluster.apply(this.clustering, arguments);\n};\nNetwork.prototype.clusterByConnection = function () {\n return this.clustering.clusterByConnection.apply(this.clustering, arguments);\n};\nNetwork.prototype.clusterByHubsize = function () {\n return this.clustering.clusterByHubsize.apply(this.clustering, arguments);\n};\nNetwork.prototype.updateClusteredNode = function () {\n return this.clustering.updateClusteredNode.apply(this.clustering, arguments);\n};\nNetwork.prototype.getClusteredEdges = function () {\n return this.clustering.getClusteredEdges.apply(this.clustering, arguments);\n};\nNetwork.prototype.getBaseEdge = function () {\n return this.clustering.getBaseEdge.apply(this.clustering, arguments);\n};\nNetwork.prototype.getBaseEdges = function () {\n return this.clustering.getBaseEdges.apply(this.clustering, arguments);\n};\nNetwork.prototype.updateEdge = function () {\n return this.clustering.updateEdge.apply(this.clustering, arguments);\n};\n\n/**\n * This method will cluster all nodes with 1 edge with their respective connected node.\n * The options object is explained in full below.\n *\n * @param {object} [options]\n * @returns {undefined}\n */\nNetwork.prototype.clusterOutliers = function () {\n return this.clustering.clusterOutliers.apply(this.clustering, arguments);\n};\nNetwork.prototype.getSeed = function () {\n return this.layoutEngine.getSeed.apply(this.layoutEngine, arguments);\n};\nNetwork.prototype.enableEditMode = function () {\n return this.manipulation.enableEditMode.apply(this.manipulation, arguments);\n};\nNetwork.prototype.disableEditMode = function () {\n return this.manipulation.disableEditMode.apply(this.manipulation, arguments);\n};\nNetwork.prototype.addNodeMode = function () {\n return this.manipulation.addNodeMode.apply(this.manipulation, arguments);\n};\nNetwork.prototype.editNode = function () {\n return this.manipulation.editNode.apply(this.manipulation, arguments);\n};\nNetwork.prototype.editNodeMode = function () {\n console.warn(\"Deprecated: Please use editNode instead of editNodeMode.\");\n return this.manipulation.editNode.apply(this.manipulation, arguments);\n};\nNetwork.prototype.addEdgeMode = function () {\n return this.manipulation.addEdgeMode.apply(this.manipulation, arguments);\n};\nNetwork.prototype.editEdgeMode = function () {\n return this.manipulation.editEdgeMode.apply(this.manipulation, arguments);\n};\nNetwork.prototype.deleteSelected = function () {\n return this.manipulation.deleteSelected.apply(this.manipulation, arguments);\n};\nNetwork.prototype.getPositions = function () {\n return this.nodesHandler.getPositions.apply(this.nodesHandler, arguments);\n};\nNetwork.prototype.getPosition = function () {\n return this.nodesHandler.getPosition.apply(this.nodesHandler, arguments);\n};\nNetwork.prototype.storePositions = function () {\n return this.nodesHandler.storePositions.apply(this.nodesHandler, arguments);\n};\nNetwork.prototype.moveNode = function () {\n return this.nodesHandler.moveNode.apply(this.nodesHandler, arguments);\n};\nNetwork.prototype.getBoundingBox = function () {\n return this.nodesHandler.getBoundingBox.apply(this.nodesHandler, arguments);\n};\nNetwork.prototype.getConnectedNodes = function (objectId) {\n if (this.body.nodes[objectId] !== undefined) {\n return this.nodesHandler.getConnectedNodes.apply(this.nodesHandler, arguments);\n } else {\n return this.edgesHandler.getConnectedNodes.apply(this.edgesHandler, arguments);\n }\n};\nNetwork.prototype.getConnectedEdges = function () {\n return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler, arguments);\n};\nNetwork.prototype.startSimulation = function () {\n return this.physics.startSimulation.apply(this.physics, arguments);\n};\nNetwork.prototype.stopSimulation = function () {\n return this.physics.stopSimulation.apply(this.physics, arguments);\n};\nNetwork.prototype.stabilize = function () {\n return this.physics.stabilize.apply(this.physics, arguments);\n};\nNetwork.prototype.getSelection = function () {\n return this.selectionHandler.getSelection.apply(this.selectionHandler, arguments);\n};\nNetwork.prototype.setSelection = function () {\n return this.selectionHandler.setSelection.apply(this.selectionHandler, arguments);\n};\nNetwork.prototype.getSelectedNodes = function () {\n return this.selectionHandler.getSelectedNodeIds.apply(this.selectionHandler, arguments);\n};\nNetwork.prototype.getSelectedEdges = function () {\n return this.selectionHandler.getSelectedEdgeIds.apply(this.selectionHandler, arguments);\n};\nNetwork.prototype.getNodeAt = function () {\n var node = this.selectionHandler.getNodeAt.apply(this.selectionHandler, arguments);\n if (node !== undefined && node.id !== undefined) {\n return node.id;\n }\n return node;\n};\nNetwork.prototype.getEdgeAt = function () {\n var edge = this.selectionHandler.getEdgeAt.apply(this.selectionHandler, arguments);\n if (edge !== undefined && edge.id !== undefined) {\n return edge.id;\n }\n return edge;\n};\nNetwork.prototype.selectNodes = function () {\n return this.selectionHandler.selectNodes.apply(this.selectionHandler, arguments);\n};\nNetwork.prototype.selectEdges = function () {\n return this.selectionHandler.selectEdges.apply(this.selectionHandler, arguments);\n};\nNetwork.prototype.unselectAll = function () {\n this.selectionHandler.unselectAll.apply(this.selectionHandler, arguments);\n this.selectionHandler.commitWithoutEmitting.apply(this.selectionHandler);\n this.redraw();\n};\nNetwork.prototype.redraw = function () {\n return this.renderer.redraw.apply(this.renderer, arguments);\n};\nNetwork.prototype.getScale = function () {\n return this.view.getScale.apply(this.view, arguments);\n};\nNetwork.prototype.getViewPosition = function () {\n return this.view.getViewPosition.apply(this.view, arguments);\n};\nNetwork.prototype.fit = function () {\n return this.view.fit.apply(this.view, arguments);\n};\nNetwork.prototype.moveTo = function () {\n return this.view.moveTo.apply(this.view, arguments);\n};\nNetwork.prototype.focus = function () {\n return this.view.focus.apply(this.view, arguments);\n};\nNetwork.prototype.releaseNode = function () {\n return this.view.releaseNode.apply(this.view, arguments);\n};\nNetwork.prototype.getOptionsFromConfigurator = function () {\n var options = {};\n if (this.configurator) {\n options = this.configurator.getOptions.apply(this.configurator);\n }\n return options;\n};\n\nvar parseDOTNetwork = DOTToGraph;\n// DataSet, utils etc. can't be reexported here because that would cause stack\n// overflow in UMD builds. They all export vis namespace therefore reexporting\n// leads to loading vis to load vis to load vis…\n\nexport { DataSet, DataView, Network, Images as NetworkImages, Queue, index as data, dotparser as networkDOTParser, gephiParser as networkGephiParser, options as networkOptions, parseDOTNetwork, parseGephi as parseGephiNetwork };\n//# sourceMappingURL=vis-network.js.map\n","const defaults = {\r\n\r\n\tneo4j: {\r\n\t\tinitialQuery: `MATCH (n) WHERE exists(n.pagerank)\r\n WITH (n), RAND() AS random\r\n ORDER BY random LIMIT 3000\r\n OPTIONAL MATCH (n)-[r]-(m)\r\n //WITH n,r,m WHERE exists(n.pagerank) AND exists(m.pagerank) AND exists(m.community)\r\n RETURN n, r, m;`,\r\n\t\tneo4jUri: 'bolt://localhost:7687',\r\n\t\tneo4jUser: 'neo4j',\r\n\t\tneo4jPassword: 'neo4j',\r\n\t\tdriverConfig: {\r\n\t\t\tencrypted: 'ENCRYPTION_OFF',\r\n\t\t\ttrust: 'TRUST_ALL_CERTIFICATES',\r\n\t\t\tmaxConnectionPoolSize: 100,\r\n\t\t\tconnectionAcquisitionTimeout: 10000,\r\n\t\t\tdisableLosslessIntegers: true,\r\n\t\t},\r\n\t\tgroupAsLabel: true\r\n\t},\r\n\r\n\tvisJs: {\r\n\t\tnodes: {\r\n\t\t\tfont: {\r\n\t\t\t\tsize: 26,\r\n\t\t\t\tstrokeWidth: 7\r\n\t\t\t},\r\n\t\t\tscaling: {}\r\n\t\t},\r\n\t\tedges: {\r\n\t\t\tarrows: {\r\n\t\t\t\tto: { enabled: false }\r\n\t\t\t},\r\n\t\t\tlength: 200\r\n\t\t},\r\n\t\tlayout: {\r\n\t\t\timprovedLayout: false,\r\n\t\t\thierarchical: {\r\n\t\t\t\tenabled: false,\r\n\t\t\t\tsortMethod: 'hubsize'\r\n\t\t\t}\r\n\t\t},\r\n\t\tphysics: { // TODO: adaptive physics settings based on size of graph rendered\r\n\t\t\t// enabled: true,\r\n\t\t\t// timestep: 0.5,\r\n\t\t\t// stabilization: {\r\n\t\t\t// iterations: 10\r\n\t\t\t// }\r\n\r\n\t\t\tadaptiveTimestep: true,\r\n\t\t\t// barnesHut: {\r\n\t\t\t// gravitationalConstant: -8000,\r\n\t\t\t// springConstant: 0.04,\r\n\t\t\t// springLength: 95\r\n\t\t\t// },\r\n\t\t\tstabilization: {\r\n\t\t\t\titerations: 200,\r\n\t\t\t\tfit: true\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n\r\nexport { defaults };","import { Edge, Node } from './types';\r\n\r\nexport enum NeoVisEvents {\r\n\tCompletionEvent = 'completed',\r\n\tClickNodeEvent = 'clickNode',\r\n\tClickEdgeEvent = 'clickEdge',\r\n\tErrorEvent = 'error'\r\n}\r\n\r\nexport interface EventFunctionTypes {\r\n\t[NeoVisEvents.CompletionEvent]: (event: { recordCount: number }) => void;\r\n\t[NeoVisEvents.ClickNodeEvent]: (event: { nodeId: number, node: Node }) => void;\r\n\t[NeoVisEvents.ClickEdgeEvent]: (event: { edgeId: number, edge: Edge }) => void;\r\n\t[NeoVisEvents.ErrorEvent]: (event: { error: Error }) => void;\r\n}\r\n\r\nexport class EventController {\r\n\tprivate readonly _handlers: { [p: string]: Function[] };\r\n\r\n\tconstructor() {\r\n\t\tthis._handlers = {\r\n\t\t\t[NeoVisEvents.CompletionEvent]: [],\r\n\t\t\t[NeoVisEvents.ErrorEvent]: [],\r\n\t\t\t[NeoVisEvents.ClickNodeEvent]: [],\r\n\t\t\t[NeoVisEvents.ClickEdgeEvent]: [],\r\n\t\t};\r\n\t}\r\n\r\n\t/**\r\n\t *\r\n\t * @param eventType - Type of the event to be handled\r\n\t * @param handler - Handler to manage the event\r\n\t */\r\n\tregister(eventType: T, handler: EventFunctionTypes[T]): void {\r\n\t\tif (this._handlers[eventType] === undefined) {\r\n\t\t\tthrow new Error('Unknown event: ' + eventType);\r\n\t\t}\r\n\r\n\t\tthis._handlers[eventType].push(handler);\r\n\t}\r\n\r\n\t/**\r\n\t *\r\n\t * @param {string} eventType - Type of the event generated\r\n\t * @param {any} values - Values associated to the event\r\n\t */\r\n\tgenerateEvent(eventType: T, values: Parameters[0]): void {\r\n\t\tif (this._handlers[eventType] === undefined) {\r\n\t\t\tthrow new Error('Unknown event: ' + eventType);\r\n\t\t}\r\n\r\n\t\tfor (const handler of this._handlers[eventType]) {\r\n\t\t\thandler(values);\r\n\t\t}\r\n\t}\r\n}\r\n","import type * as Neo4jTypes from 'neo4j-driver';\r\nimport type * as VisNetwork from 'vis-network';\r\n\r\n\r\nexport const NEOVIS_DEFAULT_CONFIG = Symbol();\r\nexport const NEOVIS_ADVANCED_CONFIG = Symbol();\r\nexport type NumberOrInteger = number | Neo4jTypes.Integer;\r\n\r\nexport type RecursiveMapToDist = T extends object ? RecursiveMapTo : New\r\n\r\n/**\r\n * Maps a type recursively and replace each non object type with the new type\r\n * @param type to map\r\n * @param type to map to for each non object type\r\n */\r\nexport type RecursiveMapTo = { [P in keyof T]: RecursiveMapToDist }\r\n\r\nexport type RecursiveMapToFunctionDist = T extends object ? ((param: PARAM_TYPE) => T) | (RecursiveMapToFunction) : (param: PARAM_TYPE) => T\r\n/**\r\n * Maps a type recursively and adds the ability for each object property to be a function that returns the same type\r\n * but replace each non object type with a function that returns the same type\r\n * @param type to map\r\n * @param type of parameter the functions get\r\n */\r\nexport type RecursiveMapToFunction = {\r\n\t[P in keyof T]: RecursiveMapToFunctionDist\r\n};\r\n\r\n/**\r\n * Cypher quarry\r\n */\r\nexport type Cypher = string;\r\n\r\nexport interface NeoVisAdvanceConfig {\r\n\t/**\r\n\t * Static values that will the same for every node/relationship\r\n\t * */\r\n\tstatic?: VIS_TYPE;\r\n\t/**\r\n\t * Cypher that will be called for every object (will look the same as\r\n\t */\r\n\tcypher?: RecursiveMapTo;\r\n\tfunction?: RecursiveMapToFunction;\r\n}\r\n\r\nexport interface NonFlatNeoVisAdvanceConfig extends NeoVisAdvanceConfig {\r\n\tproperty?: RecursiveMapTo;\r\n}\r\n\r\nexport type NeovisDataConfig =\r\n\tRecursiveMapTo\r\n\t& { [NEOVIS_ADVANCED_CONFIG]?: NeoVisAdvanceConfig };\r\n\r\n/**\r\n * A mapper between neo4j node properties names to vis-network node config\r\n * @link https://visjs.github.io/vis-network/docs/network/nodes.html\r\n */\r\nexport interface LabelConfig extends RecursiveMapTo {\r\n\t/**\r\n\t * advance options which allow for:\r\n\t * mapping static options to each node\r\n\t * mapping cypher to run for each node to determine vis-network node option\r\n\t * mapping function that gets the neo4j node and returns vis-network node option\r\n\t */\r\n\t[NEOVIS_ADVANCED_CONFIG]?: NeoVisAdvanceConfig>;\r\n}\r\n\r\n/**\r\n * A mapper between neo4j relationship properties names to vis-network edge config\r\n * @link https://visjs.github.io/vis-network/docs/network/edges.html\r\n */\r\nexport interface RelationshipConfig extends RecursiveMapTo {\r\n\t/**\r\n\t * advance options which allow for:\r\n\t * mapping static options to each edge\r\n\t * mapping cypher to run for each relationship to determine vis-network edge option\r\n\t * mapping function that gets the neo4j relationship and returns vis-network edge option\r\n\t */\r\n\t[NEOVIS_ADVANCED_CONFIG]?: NeoVisAdvanceConfig>;\r\n}\r\n\r\nexport interface Neo4jConfig {\r\n\t/**\r\n\t * neo4j server\r\n\t * @example bolt://localhost:7687\r\n\t */\r\n\tserverUrl?: string;\r\n\tserverUser?: string;\r\n\tserverPassword?: string;\r\n\t/**\r\n\t * @link https://neo4j.com/docs/api/javascript-driver/current/function/index.html#configuration\r\n\t */\r\n\tdriverConfig?: Neo4jTypes.Config;\r\n}\r\n\r\nexport interface BaseNeovisConfig {\r\n\t/**\r\n\t * Html id of the element you want Neovis to render on\r\n\t */\r\n\tcontainerId: string;\r\n\t/**\r\n\t * database name you want to connect to\r\n\t * @default neo4j\r\n\t */\r\n\tserverDatabase?: string;\r\n\t/**\r\n\t * Neo4j Driver instance or configuration to make one\r\n\t */\r\n\tneo4j?: Neo4jTypes.Driver | Neo4jConfig;\r\n\t/**\r\n\t * Vis network config to override neovis defaults\r\n\t * @link https://visjs.github.io/vis-network/docs/network/#options\r\n\t */\r\n\tvisConfig?: VisNetwork.Options;\r\n\r\n\t/**\r\n\t * The Cypher query that will get the data\r\n\t */\r\n\tinitialCypher?: Cypher;\r\n\t/**\r\n\t * Should output debug messages to console\r\n\t * @default false\r\n\t */\r\n\tconsoleDebug?: boolean;\r\n\r\n\t/**\r\n\t * Should group be the label\r\n\t * @default true\r\n\t */\r\n\tgroupAsLabel?: boolean;\r\n\r\n\t/**\r\n\t * Tells Neovis is the config is flat or not\r\n\t * @default false\r\n\t */\r\n\tnonFlat?: boolean;\r\n}\r\n\r\n/**\r\n * @example\r\n * ```js\r\n * //simple\r\n * {\r\n * containerId: \"viz\",\r\n * neo4j: {\r\n * \tserverUrl: \"bolt://localhost:7687\",\r\n * \tserverUser: \"neo4j\",\r\n * \tserverPassword: \"sorts-swims-burglaries\"\r\n * },\r\n * labels: {\r\n * \tCharacter: {\r\n * \t\tlabel: \"name\",\r\n * \t\tvalue: \"pagerank\",\r\n * \t\tgroup: \"community\"\r\n * \t}\r\n * },\r\n * relationships: {\r\n * \tINTERACTS: {\r\n * \t\tvalue: \"weight\"\r\n * \t}\r\n * },\r\n * initialCypher: \"MATCH (n)-[r:INTERACTS]->(m) RETURN n,r,m\"\r\n * }\r\n * // advance\r\n * {\r\n * containerId: 'viz',\r\n * neo4j: {\r\n * \tserverUrl: 'bolt://localhost:7687',\r\n * \tserverUser: 'neo4j',\r\n * \tserverPassword: 'gland-presentation-worry'\r\n * },\r\n * visConfig: {\r\n * \tnodes: {\r\n * \t\tshape: 'square'\r\n * \t},\r\n * \tedges: {\r\n * \t\tarrows: {\r\n * \t\t\tto: {enabled: true}\r\n * \t\t}\r\n * \t},\r\n * },\r\n * labels: {\r\n * \tCharacter: {\r\n * \t\tlabel: 'pagerank',\r\n * \t\tgroup: 'community',\r\n * \t\t[Neovis.NEOVIS_ADVANCED_CONFIG]: {\r\n * \t\t\tcypher: {\r\n * \t\t\t\tvalue: \"MATCH (n) WHERE id(n) = $id RETURN n.size\"\r\n * \t\t\t},\r\n * \t\t\tfunction: {\r\n * \t\t\t\ttitle: (node) => {\r\n * \t\t\t\t\treturn viz.nodeToHtml(node, undefined);\r\n * \t\t\t\t}\r\n * \t\t\t},\r\n * \t\t}\r\n * \t}\r\n * },\r\n * relationships: {\r\n * \tINTERACTS: {\r\n * \t\tvalue: 'weight',\r\n * \t\t[Neovis.NEOVIS_ADVANCED_CONFIG]: {\r\n * \t\t\tfunction: {\r\n * \t\t\t\ttitle: (edge) => {\r\n * \t\t\t\t\treturn viz.nodeToHtml(edge, undefined);\r\n * \t\t\t\t}\r\n * \t\t\t},\r\n * \t\t}\r\n * \t}\r\n * },\r\n * initialCypher: 'MATCH (n)-[r]->(m) RETURN n,r,m'\r\n * }\r\n * ```\r\n */\r\nexport interface NeovisConfig extends BaseNeovisConfig {\r\n\tnonFlat?: false;\r\n\t/**\r\n\t * @example ```javascript\r\n\t *{\r\n\t * \tCharacter: {\r\n\t * \tlabel: 'pagerank',\r\n\t * \t\tgroup: 'community',\r\n\t * \t\t[Neovis.NEOVIS_ADVANCED_CONFIG]: {\r\n\t * \t\t\tcypher: {\r\n\t * \t\t\t\tvalue: \"MATCH (n) WHERE id(n) = $id RETURN n.size\"\r\n\t * \t\t\t},\r\n\t * \t\t\tfunction: {\r\n\t * \t\t\t\ttitle: (node) => {\r\n\t * \t\t\t\t\treturn viz.nodeToHtml(node, undefined);\r\n\t * \t\t\t\t}\r\n\t * \t\t\t},\r\n\t * \t\t}\r\n\t * \t}\r\n\t * }\r\n\t * ```\r\n\t */\r\n\tlabels?: {\r\n\t\t[label: string]: LabelConfig,\r\n\t\t[NEOVIS_DEFAULT_CONFIG]?: LabelConfig\r\n\t};\r\n\t/**\r\n\t * @example\r\n\t * ``` js\r\n\t * {\r\n\t * INTERACTS: {\r\n\t * \t value: 'weight',\r\n\t * \t [Neovis.NEOVIS_ADVANCED_CONFIG]: {\r\n\t * \t \tfunction: {\r\n\t * \t \t\ttitle: (edge) => {\r\n\t * \t \t\t\treturn viz.nodeToHtml(edge, undefined);\r\n\t * \t \t\t}\r\n\t * \t \t},\r\n\t * \t }\r\n\t * }\r\n\t * }\r\n\t * ```\r\n\t */\r\n\trelationships?: {\r\n\t\t[relationship: string]: RelationshipConfig,\r\n\t\t[NEOVIS_DEFAULT_CONFIG]?: RelationshipConfig\r\n\t};\r\n}\r\n\r\nexport type NonFlatLabelConfig = NonFlatNeoVisAdvanceConfig>;\r\nexport type NonFlatRelationsipConfig = NonFlatNeoVisAdvanceConfig>;\r\n\r\n/**\r\n * non flat version of the configuration (without Symbols)\r\n * look at the normal config for more information\r\n *\r\n * @example\r\n * ```js\r\n * {\r\n * containerId: 'viz',\r\n * nonFlat: true,\r\n * neo4j: {\r\n * \tserverUrl: 'bolt://localhost:7687',\r\n * \tserverUser: 'neo4j',\r\n * \tserverPassword: 'gland-presentation-worry'\r\n * },\r\n * visConfig: {\r\n * \tnodes: {\r\n * \t\tshape: 'square'\r\n * \t},\r\n * \tedges: {\r\n * \t\tarrows: {\r\n * \t\t\tto: {enabled: true}\r\n * \t\t}\r\n * \t},\r\n * },\r\n * labels: {\r\n * \tCharacter: {\r\n * \t\tproperty: {\r\n * \t\t label: 'pagerank',\r\n * \t\t group: 'community'\r\n * \t }\r\n * \t\tcypher: {\r\n * \t\t\tvalue: \"MATCH (n) WHERE id(n) = $id RETURN n.size\"\r\n * \t\t},\r\n * \t\tfunction: {\r\n * \t\t\ttitle: (node) => {\r\n * \t\t\t\treturn viz.nodeToHtml(node, undefined);\r\n * \t\t\t}\r\n * \t\t}\r\n * \t}\r\n * },\r\n * relationships: {\r\n * \tINTERACTS: {\r\n * property: {\r\n * \t\t value: 'weight'\r\n * \t }\r\n * \t\tfunction: {\r\n * \t\t\ttitle: (edge) => {\r\n * \t\t\t\treturn viz.nodeToHtml(edge, undefined);\r\n * \t\t\t}\r\n * \t\t}\r\n * \t}\r\n * },\r\n * initialCypher: 'MATCH (n)-[r]->(m) RETURN n,r,m'\r\n * }\r\n * ```\r\n */\r\nexport interface NonFlatNeovisConfig extends BaseNeovisConfig {\r\n\tnonFlat: true;\r\n\tdefaultLabelConfig?: NonFlatLabelConfig;\r\n\tdefaultRelationshipsConfig?: NonFlatRelationsipConfig;\r\n\tlabels?: Record;\r\n\trelationships?: Record;\r\n}\r\n\r\n/**\r\n * A network node with raw neo4j node\r\n */\r\nexport interface Node extends VisNetwork.Node {\r\n\t/**\r\n\t * @link https://neo4j.com/docs/api/javascript-driver/current/class/src/graph-types.js~Node.html\r\n\t */\r\n\tid: number;\r\n\traw: Neo4jTypes.Node;\r\n}\r\n\r\n/**\r\n * A network edge with raw neo4j relationship\r\n */\r\nexport interface Edge extends VisNetwork.Edge {\r\n\t/**\r\n\t * https://neo4j.com/docs/api/javascript-driver/current/class/src/graph-types.js~Relationship.html\r\n\t */\r\n\tid: number;\r\n\traw: Neo4jTypes.Relationship;\r\n}","'use strict';\r\n\r\nimport type * as Neo4jTypes from 'neo4j-driver';\r\nimport Neo4j from 'neo4j-driver';\r\nimport type * as Neo4jCore from 'neo4j-driver-core';\r\nimport { isInt, isNode, isPath, isRelationship } from 'neo4j-driver-core';\r\nimport * as vis from 'vis-network/standalone';\r\nimport { defaults } from './defaults';\r\nimport { EventController, EventFunctionTypes, NeoVisEvents } from './events';\r\nimport deepmerge from 'deepmerge';\r\nimport type * as VisNetwork from 'vis-network';\r\nimport {\r\n\tCypher,\r\n\tEdge,\r\n\tLabelConfig,\r\n\tNeo4jConfig,\r\n\tNEOVIS_ADVANCED_CONFIG,\r\n\tNEOVIS_DEFAULT_CONFIG,\r\n\tNeovisConfig,\r\n\tNeovisDataConfig,\r\n\tNode,\r\n\tNonFlatLabelConfig,\r\n\tNonFlatNeoVisAdvanceConfig,\r\n\tNonFlatNeovisConfig,\r\n\tNonFlatRelationsipConfig,\r\n\tNumberOrInteger,\r\n\tRecursiveMapTo,\r\n\tRecursiveMapToFunction,\r\n\tRelationshipConfig\r\n} from './types';\r\n\r\nexport * from './events';\r\nexport * from './types';\r\n\r\nfunction isNeo4jDriver(neo4jConfig: Neo4jTypes.Driver | Neo4jConfig): neo4jConfig is Neo4jTypes.Driver {\r\n\treturn neo4jConfig instanceof Neo4j.driver;\r\n}\r\nfunction _propertyToHtml string }>(key: string, value: T | T[]): string {\r\n\tif (Array.isArray(value) && value.length > 1) {\r\n\t\tlet out = `${key}:
    `;\r\n\t\tfor (const val of value) {\r\n\t\t\tout += `
  • ${val}
  • `;\r\n\t\t}\r\n\t\treturn out + '
';\r\n\t}\r\n\treturn `${key}: ${value}
`;\r\n}\r\n\r\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\r\nfunction _retrieveProperty(prop: string, obj: any): T {\r\n\tif (typeof obj?.properties === 'object') {\r\n\t\treturn isInt(obj.properties[prop]) ? obj.properties[prop].toInt() : obj.properties[prop];\r\n\t}\r\n\tthrow new Error('Neo4j object is not properly constructed');\r\n}\r\n\r\n/**\r\n * create html display of the node\r\n * @param neo4jObject node to create html from\r\n * @param titleProperties which properties to map\r\n */\r\nexport function objectToTitleHtml(neo4jObject: Neo4jTypes.Node | Neo4jTypes.Relationship, titleProperties: string[]): HTMLDivElement {\r\n\tlet titleString = '';\r\n\tif (!titleProperties) {\r\n\t\ttitleProperties = Object.keys(neo4jObject.properties);\r\n\t}\r\n\tfor (const key of titleProperties) {\r\n\t\tconst propVal = _retrieveProperty(key, neo4jObject);\r\n\t\tif (propVal) {\r\n\t\t\ttitleString += _propertyToHtml(key, propVal);\r\n\t\t}\r\n\t}\r\n\tconst title = document.createElement('div');\r\n\ttitle.innerHTML = titleString;\r\n\treturn title;\r\n}\r\n\r\n/**\r\n * create string display of the node\r\n * @param neo4jObject node to create title string from\r\n * @param titleProperties which properties to map\r\n */\r\nexport function objectToTitleString(neo4jObject: Neo4jTypes.Node | Neo4jTypes.Relationship, titleProperties: string[]): string {\r\n\tlet title = '';\r\n\tif (!titleProperties) {\r\n\t\ttitleProperties = Object.keys(neo4jObject.properties);\r\n\t}\r\n\tfor (const key of titleProperties) {\r\n\t\tconst propVal = _retrieveProperty(key, neo4jObject);\r\n\t\tif (propVal) {\r\n\t\t\ttitle += `${key}: ${propVal}\\n`;\r\n\t\t}\r\n\t}\r\n\treturn title;\r\n}\r\n\r\nexport class NeoVis {\r\n\tstatic NEOVIS_DEFAULT_CONFIG = NEOVIS_DEFAULT_CONFIG;\r\n\tstatic NEOVIS_ADVANCED_CONFIG = NEOVIS_ADVANCED_CONFIG;\r\n\tstatic objectToTitleHtml = objectToTitleHtml;\r\n\tstatic objectToTitleString = objectToTitleString;\r\n\t#data = {\r\n\t\tnodes: new vis.DataSet(),\r\n\t\tedges: new vis.DataSet()\r\n\t};\r\n\t#network: VisNetwork.Network = null;\r\n\t#events = new EventController();\r\n\t#config: NeovisConfig | NonFlatNeovisConfig;\r\n\t#driver: Neo4jTypes.Driver;\r\n\t#database: string;\r\n\t#query: Cypher;\r\n\t#container: HTMLElement;\r\n\r\n\t/**\r\n\t * All view nodes as DataSet\r\n\t * @link https://visjs.github.io/vis-data/data/dataset.html\r\n\t */\r\n\tget nodes(): VisNetwork.DataSet {\r\n\t\treturn this.#data.nodes;\r\n\t}\r\n\r\n\t/**\r\n\t * All view edges as DataSet\r\n\t * @link https://visjs.github.io/vis-data/data/dataset.html\r\n\t */\r\n\tget edges(): VisNetwork.DataSet {\r\n\t\treturn this.#data.edges;\r\n\t}\r\n\r\n\t/**\r\n\t * @ignore for test purposes only\r\n\t */\r\n\tget _config(): NeovisConfig | NonFlatNeovisConfig {\r\n\t\treturn this.#config;\r\n\t}\r\n\r\n\t/**\r\n\t * The vis network object\r\n\t * @link https://visjs.github.io/vis-network/docs/network/#methods\r\n\t */\r\n\tget network(): VisNetwork.Network | undefined {\r\n\t\treturn this.#network;\r\n\t}\r\n\r\n\t/**\r\n\t *\r\n\t * @constructor\r\n\t * @param {object} config - configures the visualization and Neo4j server connection\r\n\t */\r\n\tconstructor(config: NeovisConfig | NonFlatNeovisConfig) {\r\n\t\tthis.#init(config);\r\n\r\n\t\tthis.#consoleLog(config);\r\n\t\tthis.#consoleLog(defaults);\r\n\t}\r\n\r\n\t#consoleLog(message: object | string, level = 'log'): void {\r\n\t\tif (level !== 'log' || this.#config.consoleDebug) {\r\n\t\t\t// eslint-disable-next-line no-console\r\n\t\t\tconsole[level](message);\r\n\t\t}\r\n\t}\r\n\r\n\t#init(config: NeovisConfig | NonFlatNeovisConfig): void {\r\n\t\tlet defaultLabelConfig: NonFlatLabelConfig | LabelConfig;\r\n\t\tlet defaultRelationshipConfig: NonFlatRelationsipConfig | RelationshipConfig;\r\n\t\tif (config.nonFlat && config.defaultLabelConfig) {\r\n\t\t\tdefaultLabelConfig = config.defaultLabelConfig;\r\n\t\t\tif (defaultLabelConfig[NEOVIS_ADVANCED_CONFIG]) {\r\n\t\t\t\tthrow new Error('non flat config can\\'t use NEOVIS_ADVANCED_CONFIG, read the doc to see how the config should look');\r\n\t\t\t}\r\n\t\t\tdefaultRelationshipConfig = config.defaultRelationshipsConfig;\r\n\t\t\tif (defaultRelationshipConfig[NEOVIS_ADVANCED_CONFIG]) {\r\n\t\t\t\tthrow new Error('non flat config can\\'t use NEOVIS_ADVANCED_CONFIG, read the doc to see how the config should look');\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tdefaultLabelConfig = (config as NeovisConfig).labels?.[NEOVIS_DEFAULT_CONFIG];\r\n\t\t\tdefaultRelationshipConfig = (config as NeovisConfig).relationships?.[NEOVIS_DEFAULT_CONFIG];\r\n\t\t}\r\n\t\tif (defaultLabelConfig) {\r\n\t\t\tfor (const key of Object.keys(config.labels)) {\r\n\t\t\t\t// getting out of my for not changing the original config object\r\n\t\t\t\tif (config.nonFlat) {\r\n\t\t\t\t\t(config as NonFlatNeovisConfig) = {\r\n\t\t\t\t\t\t...config as NonFlatNeovisConfig,\r\n\t\t\t\t\t\tlabels: {\r\n\t\t\t\t\t\t\t...config.labels as Record,\r\n\t\t\t\t\t\t\t[key]: deepmerge(defaultLabelConfig as NonFlatLabelConfig, config.labels?.[key] as NonFlatLabelConfig)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t};\r\n\t\t\t\t} else {\r\n\t\t\t\t\t(config as NeovisConfig) = {\r\n\t\t\t\t\t\t...config as NeovisConfig,\r\n\t\t\t\t\t\tlabels: {\r\n\t\t\t\t\t\t\t...config.labels as Record,\r\n\t\t\t\t\t\t\t[key]: {\r\n\t\t\t\t\t\t\t\t...deepmerge(defaultLabelConfig as LabelConfig, config.labels?.[key] as LabelConfig),\r\n\t\t\t\t\t\t\t\t[NEOVIS_ADVANCED_CONFIG]: deepmerge((defaultLabelConfig as LabelConfig)[NEOVIS_ADVANCED_CONFIG] ?? {}, (config.labels?.[key] as LabelConfig)[NEOVIS_ADVANCED_CONFIG] ?? {}),\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (defaultRelationshipConfig) {\r\n\t\t\tfor (const key of Object.keys(config.relationships)) {\r\n\t\t\t\t// getting out of my for not changing the original config object\r\n\t\t\t\tif (config.nonFlat) {\r\n\t\t\t\t\t(config as NonFlatNeovisConfig) = {\r\n\t\t\t\t\t\t...config as NonFlatNeovisConfig,\r\n\t\t\t\t\t\trelationships: {\r\n\t\t\t\t\t\t\t...config.relationships as Record,\r\n\t\t\t\t\t\t\t[key]: deepmerge(defaultRelationshipConfig as NonFlatRelationsipConfig, config.relationships?.[key] as NonFlatRelationsipConfig)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t};\r\n\t\t\t\t} else {\r\n\t\t\t\t\t(config as NeovisConfig) = {\r\n\t\t\t\t\t\t...config as NeovisConfig,\r\n\t\t\t\t\t\trelationships: {\r\n\t\t\t\t\t\t\t...config.relationships as Record,\r\n\t\t\t\t\t\t\t[key]: {\r\n\t\t\t\t\t\t\t\t...deepmerge(defaultRelationshipConfig as RelationshipConfig, config.relationships?.[key] as RelationshipConfig),\r\n\t\t\t\t\t\t\t\t[NEOVIS_ADVANCED_CONFIG]: deepmerge((defaultRelationshipConfig as RelationshipConfig)[NEOVIS_ADVANCED_CONFIG] ?? {}, (config.relationships?.[key] as RelationshipConfig)[NEOVIS_ADVANCED_CONFIG] ?? {}),\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.#config = config;\r\n\t\tthis.#driver = isNeo4jDriver(config.neo4j) ? config.neo4j : Neo4j.driver(\r\n\t\t\tconfig.neo4j?.serverUrl ?? defaults.neo4j.neo4jUri,\r\n\t\t\tNeo4j.auth.basic(\r\n\t\t\t\tconfig.neo4j?.serverUser ?? defaults.neo4j.neo4jUser,\r\n\t\t\t\tconfig.neo4j?.serverPassword ?? defaults.neo4j.neo4jPassword\r\n\t\t\t),\r\n\t\t\tdeepmerge(defaults.neo4j.driverConfig, config.neo4j?.driverConfig ?? {})\r\n\t\t);\r\n\t\tthis.#database = config.serverDatabase;\r\n\t\tthis.#query = config.initialCypher ?? defaults.neo4j.initialQuery;\r\n\t\tthis.#container = document.getElementById(config.containerId);\r\n\t\tthis.#config.groupAsLabel = config.groupAsLabel ?? defaults.neo4j.groupAsLabel;\r\n\t}\r\n\r\n\tasync #runCypher(cypher: Cypher, id: number): Promise {\r\n\t\tconst session = this.#driver.session(this.#database && { database: this.#database });\r\n\t\tconst results: T[] = [];\r\n\r\n\t\ttry {\r\n\t\t\tconst result = await session.readTransaction(tx => tx.run(cypher, { id }));\r\n\t\t\tfor (const record of result.records) {\r\n\t\t\t\trecord.forEach((v) => {\r\n\t\t\t\t\tresults.push(v);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tawait session.close();\r\n\t\t}\r\n\r\n\t\tif (results.length === 0) {\r\n\t\t\treturn undefined;\r\n\t\t} else if (results.length === 1) {\r\n\t\t\treturn results.pop();\r\n\t\t}\r\n\r\n\t\treturn results;\r\n\t}\r\n\r\n\t#runFunction(func: (neoObj: NEO_TYPE) => VIS_TYPE | Promise, node: NEO_TYPE): Promise | VIS_TYPE {\r\n\t\tif (typeof func === 'function') {\r\n\t\t\treturn func(node);\r\n\t\t}\r\n\t\tthrow new Error('Function type property field must be a function');\r\n\t}\r\n\r\n\t#buildStaticObject(staticConfig: VIS_TYPE, object: VIS_TYPE): void {\r\n\t\tif (staticConfig && typeof staticConfig === 'object') {\r\n\t\t\tfor (const prop of Object.keys(staticConfig) as (keyof VIS_TYPE)[]) {\r\n\t\t\t\tconst value = staticConfig[prop];\r\n\t\t\t\tif (value && typeof value === 'object') {\r\n\t\t\t\t\tif (!object[prop]) {\r\n\t\t\t\t\t\tobject[prop as string] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.#buildStaticObject(value, object[prop] as VIS_TYPE[keyof VIS_TYPE] & object);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tobject[prop] = value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t#buildPropertyNameObject(propertyNameConfig: RecursiveMapTo, object: VIS_TYPE, neo4jObj: NEO_TYPE): void {\r\n\t\tif (propertyNameConfig && typeof propertyNameConfig === 'object') {\r\n\t\t\tfor (const prop of Object.keys(propertyNameConfig) as (keyof VIS_TYPE)[]) {\r\n\t\t\t\tconst property = propertyNameConfig[prop];\r\n\t\t\t\tif (typeof property === 'object') {\r\n\t\t\t\t\tif (!object[prop]) {\r\n\t\t\t\t\t\tobject[prop as string] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.#buildPropertyNameObject(property as RecursiveMapTo, object[prop], neo4jObj);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst value = propertyNameConfig[prop];\r\n\t\t\t\t\tobject[prop] = _retrieveProperty(value as string, neo4jObj);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t*#buildCypherObject(cypherConfig: RecursiveMapTo, object: VIS_TYPE, id: number): Generator> {\r\n\t\tif (cypherConfig && typeof cypherConfig === 'object') {\r\n\t\t\tfor (const prop of Object.keys(cypherConfig) as (keyof VIS_TYPE)[]) {\r\n\t\t\t\tconst value = cypherConfig[prop];\r\n\t\t\t\tif (value && typeof value === 'object') {\r\n\t\t\t\t\tif (!object[prop]) {\r\n\t\t\t\t\t\tobject[prop as string] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tyield *this.#buildCypherObject(value as RecursiveMapTo, object[prop], id);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst promise = this.#runCypher(value as string, id) as Promise;\r\n\t\t\t\t\tyield Promise.resolve(promise).then(value => { object[prop] = value; } ) as Promise;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t*#buildFunctionObject(functionConfig: RecursiveMapToFunction, object: VIS_TYPE, neo4jObj: NEO_TYPE): Generator> {\r\n\t\tif (functionConfig && typeof functionConfig === 'object') {\r\n\t\t\tfor (const prop of Object.keys(functionConfig) as (keyof VIS_TYPE)[]) {\r\n\t\t\t\tconst func = functionConfig[prop];\r\n\t\t\t\tif (func && typeof func === 'object') {\r\n\t\t\t\t\tif (!object[prop]) {\r\n\t\t\t\t\t\tobject[prop as string] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tyield *this.#buildFunctionObject(func as RecursiveMapToFunction, object[prop], neo4jObj);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst promise = this.#runFunction(func as (neo: NEO_TYPE) => VIS_TYPE[keyof VIS_TYPE], neo4jObj);\r\n\t\t\t\t\tyield Promise.resolve(promise).then(value => { object[prop] = value; } ) as Promise;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tasync #buildVisObject(\r\n\t\tconfig: NeovisDataConfig | NonFlatNeoVisAdvanceConfig, baseObject: VIS_TYPE, neo4jObject: NEO_TYPE, id: number\r\n\t): Promise {\r\n\t\tif (!config) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlet staticConfig: VIS_TYPE;\r\n\t\tlet cypherConfig: RecursiveMapTo;\r\n\t\tlet propertyConfig: RecursiveMapTo;\r\n\t\tlet functionConfig: RecursiveMapToFunction;\r\n\r\n\t\tif (this.#config.nonFlat) {\r\n\t\t\tif (config[NEOVIS_ADVANCED_CONFIG] !== undefined) {\r\n\t\t\t\tthrow new Error('Advanced config and non flat config should not be together');\r\n\t\t\t}\r\n\t\t\tconfig = config as NonFlatNeoVisAdvanceConfig;\r\n\t\t\tstaticConfig = config.static;\r\n\t\t\tcypherConfig = config.cypher;\r\n\t\t\tpropertyConfig = config.property;\r\n\t\t\tfunctionConfig = config.function;\r\n\t\t} else {\r\n\t\t\tconfig = config as NeovisDataConfig;\r\n\t\t\tconst advancedConfig = config[NEOVIS_ADVANCED_CONFIG];\r\n\t\t\tpropertyConfig = config;\r\n\t\t\tif (advancedConfig !== undefined && typeof advancedConfig != 'object') {\r\n\t\t\t\tthrow new Error('Advanced config should be an object. See documentation for details.');\r\n\t\t\t}\r\n\t\t\tcypherConfig = advancedConfig?.cypher;\r\n\t\t\tstaticConfig = advancedConfig?.static;\r\n\t\t\tfunctionConfig = advancedConfig?.function;\r\n\t\t}\r\n\t\tthis.#buildPropertyNameObject(propertyConfig, baseObject, neo4jObject);\r\n\t\tthis.#buildStaticObject(staticConfig, baseObject);\r\n\t\tawait Promise.all(this.#buildCypherObject(cypherConfig, baseObject, id));\r\n\t\tawait Promise.all(this.#buildFunctionObject(functionConfig, baseObject, neo4jObject));\r\n\t}\r\n\r\n\t/**\r\n\t * Build node object for vis from a neo4j Node\r\n\t * @param neo4jNode\r\n\t * @returns {{}}\r\n\t */\r\n\tasync #buildNodeVisObject(neo4jNode: Neo4jTypes.Node): Promise {\r\n\t\tconst node: Partial = {};\r\n\t\tconst label: string = neo4jNode.labels[0];\r\n\r\n\t\tconst labelConfig: LabelConfig | NonFlatLabelConfig = this.#config?.labels?.[label] ?? (this.#config as NonFlatNeovisConfig)?.defaultLabelConfig ??\r\n\t\t\t(this.#config as NeovisConfig)?.labels?.[NEOVIS_DEFAULT_CONFIG];\r\n\r\n\t\tnode.id = isInt(neo4jNode.identity) ? (neo4jNode.identity as Neo4jTypes.Integer).toInt() : neo4jNode.identity as number;\r\n\t\tnode.raw = neo4jNode;\r\n\t\tif(this.#config.groupAsLabel) {\r\n\t\t\tnode.group = label;\r\n\t\t}\r\n\r\n\t\tawait this.#buildVisObject(labelConfig, node as Node, neo4jNode, node.id);\r\n\r\n\t\treturn node as Node;\r\n\t}\r\n\r\n\r\n\t/**\r\n\t * Build edge object for vis from a neo4j Relationship\r\n\t * @param r\r\n\t * @returns {{}}\r\n\t */\r\n\tasync #buildEdgeVisObject(r: Neo4jTypes.Relationship): Promise {\r\n\t\tconst relationshipConfig = this.#config?.relationships?.[r.type] ?? (this.#config as NonFlatNeovisConfig).defaultRelationshipsConfig ??\r\n\t\t\t(this.#config as NeovisConfig)?.relationships?.[NEOVIS_DEFAULT_CONFIG];\r\n\r\n\t\tconst edge: Partial = {};\r\n\t\tedge.id = isInt(r.identity) ? (r.identity as Neo4jTypes.Integer).toInt() : r.identity as number;\r\n\t\tedge.from = isInt(r.start) ? (r.start as Neo4jTypes.Integer).toInt() : r.start as number;\r\n\t\tedge.to = isInt(r.end) ? (r.end as Neo4jTypes.Integer).toInt() : r.end as number;\r\n\t\tedge.raw = r;\r\n\r\n\t\tawait this.#buildVisObject(relationshipConfig, edge as Edge, r, edge.id);\r\n\r\n\t\treturn edge as Edge;\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the network\r\n\t */\r\n\trender(query?: Cypher): void {\r\n\r\n\t\t// connect to Neo4j instance\r\n\t\t// run query\r\n\t\tlet recordCount = 0;\r\n\t\tconst _query = query || this.#query;\r\n\t\tconst session = this.#driver.session(this.#database ? { database: this.#database } : undefined);\r\n\t\tconst dataBuildPromises = [];\r\n\t\tsession\r\n\t\t\t.run(_query, { limit: 30 })\r\n\t\t\t.subscribe({\r\n\t\t\t\tonNext: (record) => {\r\n\t\t\t\t\trecordCount++;\r\n\r\n\t\t\t\t\tthis.#consoleLog('CLASS NAME');\r\n\t\t\t\t\tthis.#consoleLog(record?.constructor.name);\r\n\t\t\t\t\tthis.#consoleLog(record);\r\n\r\n\t\t\t\t\tconst dataPromises = record.map(async (v: object) => {\r\n\t\t\t\t\t\tthis.#consoleLog('Constructor:');\r\n\t\t\t\t\t\tthis.#consoleLog(v?.constructor.name);\r\n\t\t\t\t\t\tif (isNode(v)) {\r\n\t\t\t\t\t\t\tconst node = await this.#buildNodeVisObject(v);\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tthis.#data.nodes.update(node);\r\n\t\t\t\t\t\t\t} catch (e) {\r\n\t\t\t\t\t\t\t\tthis.#consoleLog(e, 'error');\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else if (isRelationship(v)) {\r\n\t\t\t\t\t\t\tconst edge = await this.#buildEdgeVisObject(v);\r\n\t\t\t\t\t\t\tthis.#data.edges.update(edge);\r\n\r\n\t\t\t\t\t\t} else if (isPath(v)) {\r\n\t\t\t\t\t\t\tthis.#consoleLog('PATH');\r\n\t\t\t\t\t\t\tthis.#consoleLog(v);\r\n\t\t\t\t\t\t\tconst startNode = await this.#buildNodeVisObject(v.start);\r\n\t\t\t\t\t\t\tconst endNode = await this.#buildNodeVisObject(v.end);\r\n\r\n\t\t\t\t\t\t\tthis.#data.nodes.update(startNode);\r\n\t\t\t\t\t\t\tthis.#data.nodes.update(endNode);\r\n\r\n\t\t\t\t\t\t\tfor (const obj of v.segments) {\r\n\t\t\t\t\t\t\t\tthis.#data.nodes.update(await this.#buildNodeVisObject(obj.start));\r\n\t\t\t\t\t\t\t\tthis.#data.nodes.update(await this.#buildNodeVisObject(obj.end));\r\n\t\t\t\t\t\t\t\tthis.#data.edges.update(await this.#buildEdgeVisObject(obj.relationship));\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else if (Array.isArray(v)) {\r\n\t\t\t\t\t\t\tfor (const obj of v) {\r\n\t\t\t\t\t\t\t\tthis.#consoleLog('Array element constructor:');\r\n\t\t\t\t\t\t\t\tthis.#consoleLog(obj?.constructor.name);\r\n\t\t\t\t\t\t\t\tif (isNode(obj)) {\r\n\t\t\t\t\t\t\t\t\tconst node = await this.#buildNodeVisObject(obj);\r\n\t\t\t\t\t\t\t\t\tthis.#data.nodes.update(node);\r\n\r\n\t\t\t\t\t\t\t\t} else if (isRelationship(obj)) {\r\n\t\t\t\t\t\t\t\t\tconst edge = await this.#buildEdgeVisObject(obj);\r\n\r\n\t\t\t\t\t\t\t\t\tthis.#data.edges.update(edge);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\tdataBuildPromises.push(Promise.all(dataPromises));\r\n\t\t\t\t},\r\n\t\t\t\tonCompleted: async () => {\r\n\t\t\t\t\tawait Promise.all(dataBuildPromises);\r\n\t\t\t\t\tawait session.close();\r\n\r\n\t\t\t\t\tif (!this.#network) {\r\n\t\t\t\t\t\tconst options = deepmerge(defaults.visJs, this.#config.visConfig ?? {});\r\n\r\n\t\t\t\t\t\tconst container = this.#container;\r\n\r\n\t\t\t\t\t\tthis.#consoleLog(this.#data.nodes);\r\n\t\t\t\t\t\tthis.#consoleLog(this.#data.edges);\r\n\r\n\t\t\t\t\t\tthis.#network = new vis.Network(container, this.#data, options);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.#consoleLog('completed');\r\n\t\t\t\t\tsetTimeout(\r\n\t\t\t\t\t\t() => {\r\n\t\t\t\t\t\t\tthis.#network.stopSimulation();\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t10000\r\n\t\t\t\t\t);\r\n\t\t\t\t\tthis.#events.generateEvent(NeoVisEvents.CompletionEvent, { recordCount });\r\n\r\n\t\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-this-alias\r\n\t\t\t\t\tconst neoVis = this;\r\n\t\t\t\t\tthis.#network.on('click', function (this: VisNetwork.Network, params: { nodes: Node[], edges: Edge[], pointer: { DOM: VisNetwork.Position } }) {\r\n\t\t\t\t\t\tif (params.nodes.length > 0) {\r\n\t\t\t\t\t\t\tconst nodeId = this.getNodeAt(params.pointer.DOM) as number;\r\n\t\t\t\t\t\t\tneoVis.#events.generateEvent(NeoVisEvents.ClickNodeEvent, {\r\n\t\t\t\t\t\t\t\tnodeId,\r\n\t\t\t\t\t\t\t\tnode: neoVis.#data.nodes.get(nodeId)\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t} else if (params.edges.length > 0) {\r\n\t\t\t\t\t\t\tconst edgeId = this.getEdgeAt(params.pointer.DOM) as number;\r\n\t\t\t\t\t\t\tneoVis.#events.generateEvent(NeoVisEvents.ClickEdgeEvent, {\r\n\t\t\t\t\t\t\t\tedgeId,\r\n\t\t\t\t\t\t\t\tedge: neoVis.#data.edges.get(edgeId)\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t},\r\n\t\t\t\tonError: (error) => {\r\n\t\t\t\t\tthis.#consoleLog(error, 'error');\r\n\t\t\t\t\tthis.#events.generateEvent(NeoVisEvents.ErrorEvent, { error });\r\n\t\t\t\t}\r\n\t\t\t} as Neo4jCore.ResultObserver);\r\n\t}\r\n\r\n\t/**\r\n\t * Clear the data for the visualization\r\n\t */\r\n\tclearNetwork(): void {\r\n\t\tthis.#data.nodes.clear();\r\n\t\tthis.#data.edges.clear();\r\n\t}\r\n\r\n\r\n\t/**\r\n\t *\r\n\t * @param {string} eventType Event type to be handled\r\n\t * @param {Function} handler Handler to manage the event\r\n\t */\r\n\tregisterOnEvent(eventType: T, handler: EventFunctionTypes[T]): void {\r\n\t\tthis.#events.register(eventType, handler);\r\n\t}\r\n\r\n\r\n\t/**\r\n\t * Reset the config object and reload data\r\n\t * @param config\r\n\t */\r\n\treinit(config: NeovisConfig | NonFlatNeovisConfig): void {\r\n\t\tthis.#init(config);\r\n\t\tthis.render();\r\n\t}\r\n\r\n\t/**\r\n\t * Clear the network and fetch live data form the server and reload the visualization\r\n\t */\r\n\treload(): void {\r\n\t\tthis.clearNetwork();\r\n\t\tthis.render();\r\n\t}\r\n\r\n\t/**\r\n\t * Stabilize the visualization\r\n\t */\r\n\tstabilize(): void {\r\n\t\tthis.#network.stopSimulation();\r\n\t\tthis.#consoleLog('Calling stopSimulation');\r\n\t}\r\n\r\n\t/**\r\n\t * Execute an arbitrary Cypher query and re-render the visualization\r\n\t * @param query\r\n\t */\r\n\trenderWithCypher(query: Cypher): void {\r\n\t\t// this._config.initialCypher = query;\r\n\t\tthis.clearNetwork();\r\n\t\tthis.#query = query;\r\n\t\tthis.render();\r\n\t}\r\n\r\n\t/**\r\n\t * Execute an arbitrary Cypher query and update the current visualization, retaning current nodes\r\n\t * This function will not change the original query given by renderWithCypher or the inital cypher.\r\n\t * @param query\r\n\t */\r\n\tupdateWithCypher(query: Cypher): void {\r\n\t\tthis.render(query);\r\n\t}\r\n}\r\n\r\n/**\r\n * @deprecated for migration only\r\n */\r\nexport interface OldLabelConfig {\r\n\tcaption?: string | ((node: Neo4jTypes.Node) => string);\r\n\tsize?: number;\r\n\tcommunity?: string;\r\n\tsizeCypher?: string;\r\n\timage?: string;\r\n\tfont?: string | VisNetwork.Font;\r\n\ttitle_properties?: string[];\r\n}\r\n\r\n/**\r\n * @deprecated for migration only\r\n */\r\nexport interface OldRelationshipConfig {\r\n\tthickness?: number;\r\n\tcaption?: boolean | string;\r\n}\r\n\r\n/**\r\n * @deprecated for migration only\r\n */\r\nexport interface OldNeoVisConfig {\r\n\tcontainer_id: string;\r\n\tserver_url: string;\r\n\tserver_user: string;\r\n\tserver_password: string;\r\n\tserver_database: string;\r\n\tlabels?: {\r\n\t\t[label: string]: OldLabelConfig,\r\n\t\t[NEOVIS_DEFAULT_CONFIG]?: OldLabelConfig\r\n\t};\r\n\trelationships?: {\r\n\t\t[relationship: string]: OldRelationshipConfig,\r\n\t\t[NEOVIS_DEFAULT_CONFIG]?: OldRelationshipConfig\r\n\t};\r\n\tarrows?: boolean;\r\n\thierarchical?: boolean;\r\n\thierarchical_sort_method?: 'hubsize' | 'directed';\r\n\tinitial_cypher?: string;\r\n\tconsole_debug?: boolean;\r\n\tencrypted?: 'ENCRYPTION_OFF' | 'ENCRYPTION_ON';\r\n\ttrust?: 'TRUST_ALL_CERTIFICATES' | 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES';\r\n}\r\n\r\n/**\r\n * @deprecated will be removed in the future\r\n * migrate old config to the new one\r\n * @param oldNeoVisConfig 1.0.0 config object\r\n */\r\nexport function migrateFromOldConfig(oldNeoVisConfig: OldNeoVisConfig): NeovisConfig {\r\n\treturn {\r\n\t\tcontainerId: oldNeoVisConfig.container_id,\r\n\t\tinitialCypher: oldNeoVisConfig.initial_cypher,\r\n\t\tconsoleDebug: oldNeoVisConfig.console_debug,\r\n\t\tserverDatabase: oldNeoVisConfig.server_database,\r\n\t\tneo4j: {\r\n\t\t\tserverUrl: oldNeoVisConfig.server_url,\r\n\t\t\tserverUser: oldNeoVisConfig.server_user,\r\n\t\t\tserverPassword: oldNeoVisConfig.server_password,\r\n\t\t\tdriverConfig: oldNeoVisConfig.encrypted || oldNeoVisConfig.trust ? {\r\n\t\t\t\tencrypted: oldNeoVisConfig.encrypted,\r\n\t\t\t\ttrust: oldNeoVisConfig.trust\r\n\t\t\t} : undefined\r\n\t\t},\r\n\t\tvisConfig: oldNeoVisConfig.arrows || oldNeoVisConfig.hierarchical ? {\r\n\t\t\tedges: oldNeoVisConfig.arrows ? {\r\n\t\t\t\tarrows: {\r\n\t\t\t\t\tto: {\r\n\t\t\t\t\t\tenabled: oldNeoVisConfig.arrows\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} : undefined,\r\n\t\t\tlayout: oldNeoVisConfig.hierarchical ? {\r\n\t\t\t\tenabled: oldNeoVisConfig.hierarchical,\r\n\t\t\t\tsortMethod: oldNeoVisConfig.hierarchical_sort_method\r\n\t\t\t} : undefined\r\n\t\t} : undefined,\r\n\t\tlabels: oldNeoVisConfig.labels ? (Object.entries(oldNeoVisConfig.labels) as [string | typeof NEOVIS_DEFAULT_CONFIG, OldLabelConfig][])\r\n\t\t\t.concat(oldNeoVisConfig.labels?.[NEOVIS_DEFAULT_CONFIG] ? [[NEOVIS_DEFAULT_CONFIG, oldNeoVisConfig.labels[NEOVIS_DEFAULT_CONFIG]]] : [])\r\n\t\t\t.reduce((newLabelsConfig, [label, oldLabelConfig]) => {\r\n\t\t\t\tnewLabelsConfig[label] = {\r\n\t\t\t\t\tlabel: typeof oldLabelConfig.caption !== 'function' ? oldLabelConfig.caption : undefined,\r\n\t\t\t\t\tvalue: oldLabelConfig.size,\r\n\t\t\t\t\tgroup: oldLabelConfig.community,\r\n\t\t\t\t\t[NEOVIS_ADVANCED_CONFIG]: {\r\n\t\t\t\t\t\tcypher: oldLabelConfig.sizeCypher ? {\r\n\t\t\t\t\t\t\tvalue: oldLabelConfig.sizeCypher\r\n\t\t\t\t\t\t} : undefined,\r\n\t\t\t\t\t\tfunction: deepmerge({\r\n\t\t\t\t\t\t\ttitle: (props) => objectToTitleHtml(props, oldLabelConfig.title_properties)\r\n\t\t\t\t\t\t}, typeof oldLabelConfig.caption === 'function' ? { label: oldLabelConfig.caption } : {}),\r\n\t\t\t\t\t\tstatic: {\r\n\t\t\t\t\t\t\tfont: oldLabelConfig.font,\r\n\t\t\t\t\t\t\tshape: oldLabelConfig.image ? 'image' : 'dot',\r\n\t\t\t\t\t\t\timage: oldLabelConfig.image\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\treturn newLabelsConfig;\r\n\t\t\t}, {}) : undefined,\r\n\t\trelationships: oldNeoVisConfig.relationships ? (Object.entries(oldNeoVisConfig.relationships) as [string | typeof NEOVIS_DEFAULT_CONFIG, OldRelationshipConfig][])\r\n\t\t\t.concat(oldNeoVisConfig.relationships[NEOVIS_DEFAULT_CONFIG] ? [[NEOVIS_DEFAULT_CONFIG, oldNeoVisConfig.relationships[NEOVIS_DEFAULT_CONFIG]]] : [])\r\n\t\t\t.reduce((newLabelsConfig, [relationship, oldRelationshipsConfig]) => {\r\n\t\t\t\tnewLabelsConfig[relationship] = {\r\n\t\t\t\t\tvalue: oldRelationshipsConfig.thickness,\r\n\t\t\t\t\tlabel: typeof oldRelationshipsConfig.caption === 'string' ? oldRelationshipsConfig.caption : undefined,\r\n\t\t\t\t\t[NEOVIS_ADVANCED_CONFIG]: {\r\n\t\t\t\t\t\tfunction: {\r\n\t\t\t\t\t\t\ttitle: objectToTitleHtml\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\treturn newLabelsConfig;\r\n\t\t\t}, {}) : undefined\r\n\t};\r\n}\r\n\r\nexport default NeoVis;\r\n"],"names":["root","factory","exports","module","define","amd","self","byteLength","b64","lens","getLens","validLen","placeHoldersLen","toByteArray","tmp","i","arr","Arr","_byteLength","curByte","len","revLookup","charCodeAt","fromByteArray","uint8","length","extraBytes","parts","maxChunkLength","len2","push","encodeChunk","lookup","join","Uint8Array","Array","code","Error","indexOf","start","end","num","output","base64","ieee754","customInspectSymbol","Symbol","Buffer","SlowBuffer","alloc","INSPECT_MAX_BYTES","K_MAX_LENGTH","createBuffer","RangeError","buf","Object","setPrototypeOf","prototype","arg","encodingOrOffset","TypeError","allocUnsafe","from","value","string","encoding","isEncoding","actual","write","slice","fromString","ArrayBuffer","isView","arrayView","isInstance","copy","fromArrayBuffer","buffer","byteOffset","fromArrayLike","fromArrayView","SharedArrayBuffer","valueOf","b","obj","isBuffer","checked","undefined","numberIsNaN","type","isArray","data","fromObject","toPrimitive","assertSize","size","array","toString","mustMatch","arguments","loweredCase","utf8ToBytes","base64ToBytes","toLowerCase","slowToString","this","hexSlice","utf8Slice","asciiSlice","latin1Slice","base64Slice","utf16leSlice","swap","n","m","bidirectionalIndexOf","val","dir","arrayIndexOf","call","lastIndexOf","indexSize","arrLength","valLength","String","read","readUInt16BE","foundIndex","found","j","hexWrite","offset","Number","remaining","strLen","parsed","parseInt","substr","utf8Write","blitBuffer","asciiWrite","str","byteArray","asciiToBytes","base64Write","ucs2Write","units","c","hi","lo","utf16leToBytes","Math","min","res","firstByte","codePoint","bytesPerSequence","secondByte","thirdByte","fourthByte","tempCodePoint","codePoints","MAX_ARGUMENTS_LENGTH","fromCharCode","apply","decodeCodePointsArray","kMaxLength","TYPED_ARRAY_SUPPORT","proto","foo","e","typedArraySupport","console","error","defineProperty","enumerable","get","poolSize","fill","allocUnsafeSlow","_isBuffer","compare","a","x","y","concat","list","pos","set","swap16","swap32","swap64","toLocaleString","equals","inspect","max","replace","trim","target","thisStart","thisEnd","thisCopy","targetCopy","includes","isFinite","toJSON","_arr","ret","out","hexSliceLookupTable","bytes","checkOffset","ext","checkInt","wrtBigUInt64LE","checkIntBI","BigInt","wrtBigUInt64BE","checkIEEE754","writeFloat","littleEndian","noAssert","writeDouble","newBuf","subarray","readUintLE","readUIntLE","mul","readUintBE","readUIntBE","readUint8","readUInt8","readUint16LE","readUInt16LE","readUint16BE","readUint32LE","readUInt32LE","readUint32BE","readUInt32BE","readBigUInt64LE","defineBigIntMethod","validateNumber","first","last","boundsError","readBigUInt64BE","readIntLE","pow","readIntBE","readInt8","readInt16LE","readInt16BE","readInt32LE","readInt32BE","readBigInt64LE","readBigInt64BE","readFloatLE","readFloatBE","readDoubleLE","readDoubleBE","writeUintLE","writeUIntLE","writeUintBE","writeUIntBE","writeUint8","writeUInt8","writeUint16LE","writeUInt16LE","writeUint16BE","writeUInt16BE","writeUint32LE","writeUInt32LE","writeUint32BE","writeUInt32BE","writeBigUInt64LE","writeBigUInt64BE","writeIntLE","limit","sub","writeIntBE","writeInt8","writeInt16LE","writeInt16BE","writeInt32LE","writeInt32BE","writeBigInt64LE","writeBigInt64BE","writeFloatLE","writeFloatBE","writeDoubleLE","writeDoubleBE","targetStart","copyWithin","errors","E","sym","getMessage","Base","constructor","super","writable","configurable","name","stack","message","addNumericalSeparator","range","ERR_OUT_OF_RANGE","checkBounds","ERR_INVALID_ARG_TYPE","floor","ERR_BUFFER_OUT_OF_BOUNDS","input","msg","received","isInteger","abs","INVALID_BASE64_RE","Infinity","leadSurrogate","split","base64clean","src","dst","alphabet","table","i16","fn","BufferBigIntNotDefined","parent","path","entryVirtual","forEach","map","reduce","isPrototypeOf","method","ArrayPrototype","it","own","key","desc","sham","entries","keys","Promise","WrappedWellKnownSymbolModule","f","WeakMap","WeakSet","isCallable","tryToString","$TypeError","argument","isConstructor","$String","Prototype","isObject","fails","isExtensible","$forEach","STRICT_METHOD","arrayMethodIsStrict","callbackfn","toIndexedObject","toAbsoluteIndex","lengthOfArrayLike","createMethod","IS_INCLUDES","$this","el","fromIndex","O","index","bind","uncurryThis","IndexedObject","toObject","arraySpeciesCreate","TYPE","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_REJECT","NO_HOLES","that","specificCreate","result","boundFunction","create","filter","some","every","find","findIndex","filterReject","wellKnownSymbol","V8_VERSION","SPECIES","METHOD_NAME","Boolean","aCallable","IS_RIGHT","argumentsLength","memo","left","right","createProperty","$Array","k","fin","originalArray","C","arraySpeciesConstructor","ITERATOR","SAFE_CLOSING","called","iteratorWithReturn","next","done","exec","SKIP_CLOSING","ITERATION_SUPPORT","object","stringSlice","TO_STRING_TAG_SUPPORT","classofRaw","TO_STRING_TAG","$Object","CORRECT_ARGUMENTS","tag","tryGet","callee","defineBuiltIns","getWeakData","anInstance","anObject","isNullOrUndefined","iterate","ArrayIterationModule","hasOwn","InternalStateModule","setInternalState","internalStateGetterFor","getterFor","splice","id","uncaughtFrozenStore","state","frozen","UncaughtFrozenStore","findUncaughtFrozen","store","entry","has","getConstructor","wrapper","CONSTRUCTOR_NAME","ADDER","Constructor","iterable","AS_ENTRIES","getInternalState","add","$","global","InternalMetadataModule","createNonEnumerableProperty","setToStringTag","DESCRIPTORS","common","IS_WEAK","NativeConstructor","NativePrototype","exported","collection","KEY","IS_ADDER","enable","forced","setStrong","ownKeys","getOwnPropertyDescriptorModule","definePropertyModule","source","exceptions","getOwnPropertyDescriptor","F","getPrototypeOf","createPropertyDescriptor","bitmap","toPropertyKey","propertyKey","descriptor","options","defineBuiltIn","unsafe","documentAll","document","all","IS_HTMLDDA","EXISTS","createElement","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","IS_DENO","IS_NODE","window","Bun","version","Deno","userAgent","test","Pebble","classof","process","navigator","match","versions","v8","CONSTRUCTOR","$Error","TEST","V8_OR_CHAKRA_STACK_ENTRY","IS_V8_OR_CHAKRA_STACK","dropEntries","prepareStackTrace","clearErrorStack","ERROR_STACK_INSTALLABLE","captureStackTrace","isForced","wrapConstructor","Wrapper","FORCED","USE_NATIVE","VIRTUAL_PROTOTYPE","sourceProperty","targetProperty","nativeProperty","resultProperty","TARGET","GLOBAL","STATIC","stat","PROTO","nativeSource","targetPrototype","dontCallGetSet","wrap","real","preventExtensions","NATIVE_BIND","FunctionPrototype","Function","Reflect","hasOwnProperty","getDescriptor","PROPER","CONFIGURABLE","uncurryThisWithBind","aFunction","variable","namespace","getMethod","Iterators","getIteratorMethod","usingIterator","iteratorMethod","replacer","rawLength","element","keysLength","V","P","func","check","globalThis","g","getBuiltIn","propertyIsEnumerable","functionToString","inspectSource","cause","hiddenKeys","getOwnPropertyNamesModule","getOwnPropertyNamesExternalModule","uid","FREEZING","REQUIRED","METADATA","setMetadata","objectID","weakData","meta","getOwnPropertyNames","fastKey","onFreeze","NATIVE_WEAK_MAP","shared","sharedKey","OBJECT_ALREADY_INITIALIZED","metadata","facade","STATE","enforce","$documentAll","noop","empty","construct","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructorLegacy","replacement","feature","detection","normalize","POLYFILL","NATIVE","USE_SYMBOL_AS_UID","$Symbol","isArrayIteratorMethod","getIterator","iteratorClose","Result","stopped","ResultPrototype","unboundFunction","iterator","iterFn","step","IS_RECORD","IS_ITERATOR","INTERRUPTED","stop","condition","callFn","kind","innerResult","innerError","IteratorPrototype","returnThis","IteratorConstructor","NAME","ENUMERABLE_NEXT","IS_PURE","FunctionName","createIteratorConstructor","IteratorsCore","PROPER_FUNCTION_NAME","CONFIGURABLE_FUNCTION_NAME","BUGGY_SAFARI_ITERATORS","KEYS","VALUES","ENTRIES","Iterable","DEFAULT","IS_SET","CurrentIteratorPrototype","methods","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","values","PrototypeOfArrayIteratorPrototype","arrayIterator","toLength","ceil","trunc","notify","toggle","node","promise","then","macrotask","Queue","IS_IOS","IS_IOS_PEBBLE","IS_WEBOS_WEBKIT","MutationObserver","WebKitMutationObserver","queueMicrotaskDescriptor","microtask","queue","flush","domain","exit","head","enter","resolve","nextTick","createTextNode","observe","characterData","PromiseCapability","reject","$$resolve","$$reject","$default","activeXDocument","definePropertiesModule","enumBugKeys","html","documentCreateElement","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","content","LT","NullProtoObjectViaActiveX","close","temp","parentWindow","NullProtoObject","ActiveXObject","iframeDocument","iframe","JS","style","display","appendChild","contentWindow","open","Properties","V8_PROTOTYPE_DEFINE_BUG","objectKeys","defineProperties","props","IE8_DOM_DEFINE","$defineProperty","$getOwnPropertyDescriptor","ENUMERABLE","WRITABLE","Attributes","current","propertyIsEnumerableModule","$getOwnPropertyNames","arraySlice","windowNames","getWindowNames","internalObjectKeys","getOwnPropertySymbols","CORRECT_PROTOTYPE_GETTER","ObjectPrototype","ARRAY_BUFFER_NON_EXTENSIBLE","$isExtensible","FAILS_ON_PRIMITIVES","names","$propertyIsEnumerable","NASHORN_BUG","uncurryThisAccessor","aPossiblePrototype","setter","CORRECT_SETTER","__proto__","TO_ENTRIES","pref","getOwnPropertySymbolsModule","NativePromiseConstructor","IS_BROWSER","NativePromisePrototype","SUBCLASSING","NATIVE_PROMISE_REJECTION_EVENT","PromiseRejectionEvent","FORCED_PROMISE_CONSTRUCTOR","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","FakePromise","REJECTION_EVENT","newPromiseCapability","promiseCapability","checkCorrectnessOfIteration","tail","item","ENGINE_IS_BUN","USER_AGENT","validateArgumentsLength","WRAP","scheduler","hasTimeArg","firstParamIndex","handler","timeout","boundArgs","params","callback","defineBuiltInAccessor","TAG","SET_METHOD","defineGlobalProperty","SHARED","mode","copyright","license","aConstructor","defaultConstructor","S","toIntegerOrInfinity","requireObjectCoercible","charAt","CONVERT_TO_STRING","second","position","codeAt","symbol","SymbolPrototype","TO_PRIMITIVE","hint","arity","NATIVE_SYMBOL","keyFor","$location","defer","channel","port","setImmediate","clear","clearImmediate","Dispatch","MessageChannel","counter","ONREADYSTATECHANGE","location","run","runner","eventListener","event","globalPostMessageDefer","postMessage","protocol","host","args","now","port2","port1","onmessage","addEventListener","importScripts","removeChild","setTimeout","integer","number","isSymbol","ordinaryToPrimitive","exoticToPrim","postfix","random","passed","required","wrappedWellKnownSymbolModule","WellKnownSymbolsStore","createWellKnownSymbol","withoutSetter","copyConstructorProperties","installErrorCause","installErrorStack","normalizeStringArgument","$AggregateError","AggregateErrorPrototype","errorsArray","AggregateError","doesNotExceedSafeInteger","arrayMethodHasSpeciesSupport","IS_CONCAT_SPREADABLE","IS_CONCAT_SPREADABLE_SUPPORT","isConcatSpreadable","spreadable","A","addToUnscopables","defineIterator","createIterResultObject","ARRAY_ITERATOR","iterated","Arguments","$map","$reduce","CHROME_VERSION","getReplacerFunction","$stringify","numberToString","tester","low","WRONG_SYMBOLS_CONVERSION","ILL_FORMED_UNICODE","stringifyWithSymbolsFix","$replacer","fixIllFormed","prev","stringify","space","JSON","$entries","$getOwnPropertySymbols","nativeKeys","newPromiseCapabilityModule","perform","allSettled","capability","promiseResolve","alreadyCalled","status","reason","$promiseResolve","PROMISE_STATICS_INCORRECT_ITERATION","PROMISE_ANY_ERROR","any","alreadyResolved","alreadyRejected","onRejected","Internal","OwnPromiseCapability","nativeThen","setSpecies","speciesConstructor","task","hostReportErrors","PromiseConstructorDetection","PROMISE","NATIVE_PROMISE_SUBCLASSING","getInternalPromiseState","PromiseConstructor","PromisePrototype","newGenericPromiseCapability","DISPATCH_EVENT","createEvent","dispatchEvent","UNHANDLED_REJECTION","isThenable","callReaction","reaction","exited","ok","fail","rejection","onHandleUnhandled","isReject","notified","reactions","onUnhandled","initEvent","isUnhandled","emit","unwrap","internalReject","internalResolve","executor","onFulfilled","PromiseWrapper","onFinally","isFunction","race","r","PromiseConstructorWrapper","CHECK_WRAPPER","STRING_ITERATOR","point","defineWellKnownSymbol","$toString","nativeObjectCreate","getOwnPropertyNamesExternal","defineSymbolToPrimitive","HIDDEN","SYMBOL","QObject","nativeGetOwnPropertyDescriptor","nativeDefineProperty","nativeGetOwnPropertyNames","nativePropertyIsEnumerable","AllSymbols","ObjectPrototypeSymbols","USE_SETTER","findChild","setSymbolDescriptor","ObjectPrototypeDescriptor","description","$defineProperties","properties","IS_OBJECT_PROTOTYPE","useSetter","useSimple","NATIVE_SYMBOL_REGISTRY","StringToSymbolRegistry","SymbolToStringRegistry","InternalWeakMap","collectionWeak","enforceInternalState","isFrozen","isSealed","freeze","seal","FROZEN","SEALED","IS_IE11","init","$WeakMap","WeakMapPrototype","nativeSet","nativeDelete","nativeHas","nativeGet","frozenArray","arrayIntegrityLevel","thisSymbolValue","isRegistered","$isWellKnown","isWellKnown","symbolKeys","symbolKeysLength","symbolKey","DOMIterables","COLLECTION_NAME","Collection","CollectionPrototype","setInterval","schedulersFix","isMergeableObject","isNonNullObject","stringValue","$$typeof","REACT_ELEMENT_TYPE","isReactElement","isSpecial","for","cloneUnlessOtherwiseSpecified","clone","deepmerge","defaultArrayMerge","getKeys","getEnumerableOwnPropertySymbols","propertyIsOnObject","property","_","arrayMerge","sourceIsArray","destination","propertyIsUnsafe","customMerge","getMergeFunction","mergeObject","deepmerge_1","isLE","mLen","nBytes","eLen","eMax","eBias","nBits","d","s","NaN","rt","isNaN","log","LN2","assertImpersonatedUserIsEmpty","assertTxConfigIsEmpty","assertDatabaseIsEmpty","neo4j_driver_core_1","txConfig","onProtocolError","observer","isEmpty","newError","onError","database","impersonatedUser","__importDefault","mod","__esModule","bolt_protocol_util_1","packstream_1","request_message_1","stream_observers_1","Bookmark","internal","bookmark","_a","constants","ACCESS_MODE_WRITE","BOLT_PROTOCOL_V1","TxConfig","logger","Logger","BoltProtocol","server","chunker","createResponseHandler","_b","disableLosslessIntegers","useBigInt","_server","_chunker","_packer","_createPacker","_unpacker","_createUnpacker","_responseHandler","_log","_onProtocolError","_fatalError","packer","unpacker","transformMetadata","initialize","_this","authToken","onComplete","LoginObserver","_onLoginError","onCompleted","_onLoginCompleted","default","prepareToClose","beginTransaction","beforeError","afterError","beforeComplete","afterComplete","asBeginTransactionParameters","commitTransaction","rollbackTransaction","query","parameters","beforeKeys","afterKeys","_c","ResultStreamObserver","pullAll","currentFailure","reset","ResetObserver","v1","Packer","Unpacker","queueObserverIfProtocolIsNotBroken","isDebugEnabled","debug","packStruct","signature","fields","field","packable","messageBoundary","notifyFatalError","_notifyErrorToObservers","updateCurrentObserver","_updateCurrentObserver","hasOngoingObservableRequests","isBroken","notifyFatalErrorToObserver","_queueObserver","resetFailure","_resetFailure","serverVersion","extendStatics","__extends","p","__","bolt_protocol_v1_1","BOLT_PROTOCOL_V2","_super","__assign","assign","t","bolt_protocol_v2_1","BOLT_PROTOCOL_V3","CONTEXT","CALL_GET_ROUTING_TABLE","noOpObserver","StreamObserver","result_available_after","t_first","result_consumed_after","t_last","hello","goodbye","prepareToHandleSingleResponse","begin","commit","rollback","runWithMetadata","requestRoutingInformation","routingContext","_d","sessionContext","resultObserver","ProcedureRouteObserver","bolt_protocol_v3_1","BOLT_PROTOCOL_V4_0","FETCH_ALL","DATABASE","CALL_GET_ROUTING_TABLE_MULTI_DB","reactive","_e","fetchSize","moreFunction","_requestMore","discardFunction","_requestDiscard","flushRun","pull","stmtId","discard","_noOp","databaseName","bolt_protocol_v4x0_1","BOLT_PROTOCOL_V4_1","packstreamConfig","serversideRouting","_serversideRouting","bolt_protocol_v4x1_1","BOLT_PROTOCOL_V4_2","bolt_protocol_v4x2_1","stream_observers_2","BOLT_PROTOCOL_V4_3","RouteObserver","route","patch_bolt","_applyPatches","patches","_applyUtcPatch","useUtc","bolt_protocol_v4x3_1","BOLT_PROTOCOL_V4_4","routeV4x4","bolt_protocol_v4x4_1","response_handler_1","dechunker","packingConfig","createProtocol","responseHandler","onerror","handleResponse","unpack","channel_1","major","minor","handshakeErrorHandler","_error","protocolVersion","h","parseNegotiatedResponse","consumeRemainingBuffer","consumer","hasRemaining","readSlice","handshakeBuffer","writeInt32","createHandshakeMessage","__createBinding","o","k2","__exportStar","RawRoutingTable","handshake_1","create_1","routing_table_raw_1","handshake","ACCESS_MODE_READ","assertString","util","RequestMessage","clientName","json","PULL_ALL_MESSAGE","RESET_MESSAGE","routing","patchs","user_agent","buildTxMetadata","COMMIT_MESSAGE","ROLLBACK_MESSAGE","GOODBYE_MESSAGE","buildStreamMetadata","bookmarks","databaseContext","dbContext","db","imp_user","tx_timeout","tx_metadata","int","qid","NO_OP","NO_OP_IDENTITY","subject","NO_OP_OBSERVER","onNext","ResponseHandler","_pendingObservers","_transformMetadata","_observer","onPendingObserversChange","onFailure","onErrorApplyTransformation","_currentFailure","payload","_currentObserver","shift","ofRecord","record","ofNull","RecordRawRoutingTable","ofMessageResponse","response","ResponseRawRoutingTable","NullRawRoutingTable","_response","ttl","servers","_record","CompletedObserver","FailedObserver","PROTOCOL_ERROR","rawRecord","_fieldKeys","_fieldLookup","_head","_queuedRecords","_tail","_observers","_meta","_beforeError","_afterError","_beforeKeys","_afterKeys","_beforeComplete","_afterComplete","_queryId","_moreFunction","_discardFunction","_discard","_fetchSize","_setState","_states","READY","READY_STREAMING","_setupAuoPull","Record","_highRecordWatermark","_autoPull","_state","onSuccess","cancel","STREAMING","markCompleted","SUCCEEDED","subscribe","onKeys","_lowRecordWatermark","_handleStreaming","_handleHasMore","has_more","_handlePullSuccess","completionMetadata","beforeHandlerResult","continuation","_handleRunSuccess","afterSuccess","_storeMetadataForCompletion","continuation_1","_handleError","FAILED","MAX_VALUE","_onError","_onCompleted","_onComplete","_resultObserver","_records","streamObserver","BaseBuffer","getUInt8","getInt8","getFloat64","putUInt8","putInt8","putFloat64","getInt16","getUInt16","getInt32","getUInt32","getInt64","getSlice","SliceBuffer","putInt16","putUInt16","putInt32","putUInt32","putInt64","putBytes","other","_updatePos","readUInt16","readUInt32","readInt16","readInt32","readInt64","readFloat64","writeInt16","writeUInt32","writeInt64","writeFloat64","writeBytes","toHex","hexByte","inner","_start","_inner","base_buf_1","channel_buf_1","ENCRYPTION_OFF","ENCRYPTION_ON","WebSocketChannel","config","protocolSupplier","socketFactory","detectWebPageProtocol","url","WebSocket","_open","_pending","_handleConnectionError","_config","encryptionOn","encrypted","isEncryptionExplicitlyTurnedOn","encryptionOff","isEncryptionExplicitlyTurnedOff","trust","secureProtocol","isProtocolSecure","warn","verifyEncryptionSettings","scheme","determineWebSocketScheme","_ws","address","asHostPort","hostAndPort","isIPv6AddressIssueOnWindows","windowsFriendlyUrl","RegExp","asWindowsFriendlyIPv6Address","createWebSocket","binaryType","onclose","wasClean","onopen","_clearConnectionTimeout","pending","_connectionTimeoutFired","_connectionTimeoutId","_setupConnectionTimeout","connectionTimeout","connectionErrorCode","readyState","send","_buffer","setupReceiveTimeout","receiveTimeout","stopReceiveTimeout","startReceiveTimeout","webSocket_1","timeoutId","clearTimeout","BrowserHostNameResolver","_resolveToItself","resolver","BaseHostNameResolver","HostNameResolver","Channel","browser_channel_1","browser_host_name_resolver_1","buffer_1","ChannelBuffer","newChannelJSBuffer","bytesToCopy","SERVICE_UNAVAILABLE","ALLOWED_VALUES_ENCRYPTED","ALLOWED_VALUES_TRUST","driverConfig","extractEncrypted","extractTrust","trustedCertificates","extractTrustedCertificates","knownHostsPath","knownHosts","extractKnownHostsPath","configuredTimeout","extractConnectionTimeout","Dechunker","Chunker","combined_buf_1","bufferSize","_bufferSize","_ch","_currentChunkStart","_chunkOpen","_ensure","_closeChunkIfOpen","toWriteSize","chunkSize","_currentMessage","_partialChunkHeader","AWAITING_CHUNK","_onHeader","IN_HEADER","IN_CHUNK","_chunkSize","CLOSED","header","buf_1","CombinedBuffer","buffers","_buffers","utf8","ChannelConfig","channel_config_1","utf8_1","decoder","StringDecoder","encode","newBuffer","decode","decodeChannelBuffer","combinedBuffers","decodeFn","endFn","remainingBytesToRead","partBuffer","bytesToRead","lastSlice","streamDecodeCombinedBuffer","decodeCombinedBuffer","__awaiter","thisArg","_arguments","generator","fulfilled","rejected","__generator","body","label","sent","trys","ops","verb","v","op","pop","connection_provider_pooled_1","connection_1","DirectConnectionProvider","_address","acquireConnection","accessMode","databaseSpecificErrorHandler","ConnectionErrorHandler","errorCode","handleAuthorizationExpired","_handleAuthorizationExpired","_connectionPool","acquire","connection","DelegateConnection","_id","purge","catch","_hasProtocolVersion","versionPredicate","createChannelConnection","_createConnectionErrorHandler","supportsMultiDb","supportsTransactionConfig","supportsUserImpersonation","__setModuleDefault","__importStar","pool_1","PooledConnectionProvider","createChannelConnectionHook","_userAgent","_authToken","_createChannelConnection","_createConnection","destroy","_destroyConnection","validate","_validateConnection","installIdleObserver","_installIdleObserverOnConnection","removeIdleObserver","_removeIdleObserverOnConnection","PoolConfig","fromDriverConfig","_openConnections","release","_release","connect","conn","isOpen","maxConnectionLifetime","Date","creationTimestamp","ConnectionProvider","__values","__read","ar","rediscovery_1","connection_provider_single_1","load_balancing_1","SESSION_EXPIRED","READ","WRITE","DEFAULT_DB_NAME","DEFAULT_ROUTING_TABLE_PURGE_DELAY","RoutingConnectionProvider","hostNameResolver","routingTablePurgeDelay","_routingContext","_seedRouter","_rediscovery","_loadBalancingStrategy","LeastConnectedLoadBalancingStrategy","_hostNameResolver","_dnsResolver","_useSeedRouter","_routingTableRegistry","RoutingTableRegistry","_handleUnavailability","forget","_handleWriteFailure","forgetWriter","onDatabaseNameResolved","context","routingTable","error_1","_freshRoutingTable","selectReader","readers","selectWriter","writers","_acquireConnectionToServer","handleAndTransformError","addresses","lastError","error_2","_resolveSeedRouter","applyWhenExists","serverName","currentRoutingTable","RoutingTable","isStaleFor","info","_refreshRoutingTable","knownRouters","routers","_fetchRoutingTableFromSeedRouterFallbackToKnownRouters","_fetchRoutingTableFromKnownRoutersFallbackToSeedRouter","seenRouters","newRoutingTable","_fetchRoutingTableUsingSeedRouter","_fetchRoutingTableUsingKnownRouters","_applyRoutingTableIfPossible","lastRouterIndex","_fetchRoutingTable","_forgetRouter","seedRouter","resolvedAddresses","newAddresses","dnsResolvedAddresses","routerAddresses","refreshedTablePromise","currentRouter","currentIndex","previousRouterIndex","session","error_3","_createSessionForRediscovery","lookupRoutingTableOnRouter","routerAddress","connectionProvider","error_4","Session","_updateRoutingTable","keepAll","allServers","removeExpired","register","routersArray","routerIndex","forgetRouter","_tables","Map","_routingTablePurgeDelay","applyWhenDontExists","_forEach","defaultSupplier","_removeIf","isExpiredFor","e_1","e_1_1","return","_remove","delete","predicate","e_2","e_2_1","SingleConnectionProvider","_connection","connection_provider_direct_1","connection_provider_routing_1","bolt_1","idGenerator","errorHandler","createChannel","channelConfig","ChannelConnection","_handleOngoingRequestsNumberChange","_handleFatalError","_resetOnFailure","_handleProtocolError","_disableLosslessIntegers","_level","level","_loggerFunction","_dbConnectionId","_protocol","_isBroken","_initialize","err","dbConnectionId","connection_id","databaseId","hints","receiveTimeoutRaw","receiveTimeoutInSeconds","toNumber","isErrorEnabled","resetAndFlush","neo4jError","requestsNumber","delegate","_originalErrorHandler","_errorHandler","_delegate","handleUnavailability","handleWriteFailure","_errorCode","noOpHandler","isAutorizationExpiredError","isAvailabilityError","isFailureToWrite","Connection","connection_channel_1","connection_delegate_1","connection_error_handler_1","pool","packstream","bolt","loadBalancing","LoadBalancingStrategy","load_balancing_strategy_1","least_connected_load_balancing_strategy_1","round_robin_array_index_1","connectionPool","_readersIndex","_writersIndex","knownReaders","_select","knownWriters","roundRobinIndex","startIndex","leastConnectedAddress","leastActiveConnections","MAX_SAFE_INTEGER","activeConnections","activeResourceCount","RoundRobinArrayIndex","initialOffset","_offset","arrayLength","nextOffset","v2","packDateTime","unpackDateTimeWithZoneId","unpackDateTimeWithZoneOffset","DATE_TIME_WITH_ZONE_ID","DATE_TIME_WITH_ZONE_OFFSET","temporal_factory_1","localDateTimeToEpochSecond","temporalUtil","getTimeInZoneId","timeZoneId","epochSecond","nano","formatter","Intl","DateTimeFormat","timeZone","year","month","day","hour","minute","hour12","era","utc","multiply","div","localDateTime","formatToParts","currentValue","adjustEra","toUpperCase","subtract","negate","epochInTimeZone","nanosecond","timeZoneOffsetSeconds","modulo","convertIntegerPropsIfNeeded","convert","toBigInt","toNumberOrInfinity","prop","isInt","structSize","_verifyStructSize","utcSecond","unpackInteger","epochSecondAndNanoToLocalDateTime","DateTime","dateTimeWithZoneAppliedTwice","offsetOfZoneInTheFutureUtc","guessedUtc","zonedDateTimeFromGuessedUtc","getOffsetFromZoneId","packableStructFields","packDateTimeWithZoneId","packDateTimeWithZoneOffset","Structure","objectUtil","fieldStr","_byteArraysSupported","packFloat","packString","packInteger","Int8Array","packBytes","packListHeader","i_1","packableIterable","Node","_nonPackableValue","Relationship","Path","packableFields","count","i_2","packMapHeader","i_3","packStructHeader","high","greaterThanOrEqual","lessThan","packBytesHeader","disableByteArrays","_useBigInt","marker","markerHigh","markerLow","boolean","_unpackBoolean","numberOrInteger","_unpackNumberOrInteger","_unpackString","_unpackList","_unpackByteArray","_unpackMap","struct","_unpackStruct","_unpackInteger","Integer","_unpackListWithSize","_unpackByteArrayWithSize","_unpackMapWithSize","_unpackStructWithSize","createBrokenObject","_unpackNode","_unpackRelationship","_unpackUnboundRelationship","_unpackPath","_unpackUnknownStruct","UnboundRelationship","nodes","rels","sequence","segments","prevNode","nextNode","relIndex","rel","identity","PathSegment","structName","expectedSize","actualSize","dateToEpochDay","localTimeToNanoOfDay","isPoint","z","srid","packPoint2D","packPoint3D","isDuration","months","days","seconds","nanoseconds","isLocalTime","nanoOfDay","isTime","offsetSeconds","isDate","epochDay","isLocalDateTime","isDateTime","Point","unpackPoint2D","unpackPoint3D","Duration","unpackDuration","nanoOfDayToLocalTime","unpackLocalTime","localTime","Time","unpackTime","epochDayToDate","unpackDate","unpackLocalDateTime","DAYS_0000_TO_1970","DAYS_PER_400_YEAR_CYCLE","NANOS_PER_HOUR","NANOS_PER_MINUTE","NANOS_PER_SECOND","SECONDS_PER_DAY","floorDiv","floorMod","zeroDay","adjust","adjustCycles","dayOfYearEst","marchDayOfYear","marchMonth","LocalTime","localDate","LocalDateTime","DEFAULT_MAX_SIZE","DEFAULT_ACQUISITION_TIMEOUT","Pool","pool_config_1","maxSize","acquisitionTimeout","valueOrDefault","defaultConfig","isConfigured","maxConnectionPoolSize","connectionAcquisitionTimeout","defaultValue","_f","_g","_h","_j","noOp","_create","_destroy","_validate","_installIdleObserver","_removeIdleObserver","_maxSize","_acquisitionTimeout","_pools","_pendingCreates","_acquireRequests","_activeResourceCounts","_poolState","_closed","_acquire","resource","asKey","allRequests","request","pendingRequests","isCompleted","activeCount","idleCount","PendingRequest","_purgeKey","keysToKeep","keysToPurge","poolState","resource_1","PoolState","resourceAcquired","isActive","activeResourceCounts","nextCount","resourceReleased","_processPendingAcquireRequests","destructionList","requests","pendingRequest_1","currentCount","_key","_resolve","_reject","_timeoutId","_completed","_active","Rediscovery","routing_table_1","_acquireConnection","_requestRawRoutingTable","rawRoutingTable","isNull","fromRawRoutingTable","_lastBookmark","_mode","_database","__spreadArray","to","pack","l","createValidRoutingTable","ServerAddress","serverAddress","expirationTime","removeFromArray","duration","expires","calculateExpirationTime","routers_1","readers_1","writers_1","role","parseArray","fromUrl","parseServers","assertNonEmpty","serverAddressesArray","serversName","basic","username","password","realm","principal","credentials","kerberos","base64EncodedTicket","bearer","base64EncodedToken","custom","param","Driver","bookmark_1","connectivity_verifier_1","configured_custom_resolver_1","constants_1","logger_1","session_1","util_1","createConnectonProvider","createSession","sanitizeIntValue","DEFAULT_POOL_MAX_SIZE","DEFAULT_POOL_ACQUISITION_TIMEOUT","validateFetchSizeValue","sanitizeConfig","validateConfig","_createConnectionProvider","_createSession","_connectionProvider","_afterConstruction","verifyConnectivity","_getOrCreateConnectionProvider","ConnectivityVerifier","verify","_supportsRouting","_isEncrypted","_getTrust","defaultAccessMode","bookmarkOrBookmarks","_newSession","typename","sessionMode","_validateSessionMode","rawValue","defaultWhenAbsent","sanitizedValue","Neo4jError","isPathSegment","isPath","isUnboundRelationship","isRelationship","isNode","json_1","IDENTIFIER_PROPERTY_ATTRIBUTES","NODE_IDENTIFIER_PROPERTY","RELATIONSHIP_IDENTIFIER_PROPERTY","UNBOUND_RELATIONSHIP_IDENTIFIER_PROPERTY","PATH_IDENTIFIER_PROPERTY","PATH_SEGMENT_IDENTIFIER_PROPERTY","hasIdentifierProperty","labels","relationship","types","Transaction","Stats","QueryStatistics","ProfiledPlan","Plan","Notification","ServerInfo","queryType","ResultSummary","inSafeRange","auth","driver","integer_1","temporal_types_1","graph_types_1","record_1","spatial_types_1","result_summary_1","result_1","connection_provider_1","transaction_1","driver_1","auth_1","forExport","INT_CACHE","MIN_SAFE_VALUE","lessThanOrEqual","MAX_SAFE_VALUE","toInt","TWO_PWR_32_DBL","isZero","isPositive","NEGATIVE_INFINITY","greaterThan","POSITIVE_INFINITY","radix","rem","isNegative","MIN_VALUE","radixInteger","fromNumber","radixToPower","remDiv","digits","getHighBits","getLowBits","getNumBitsAbs","bit","isOdd","isEven","theOther","fromValue","notEquals","thisNeg","otherNeg","not","ONE","addend","theAddend","a48","a32","a16","a00","b48","b32","b16","c48","c32","c16","c00","fromBits","subtrahend","theSubtrahend","multiplier","ZERO","theMultiplier","TWO_PWR_24","b00","divisor","approx","theDivisor","NEG_ONE","shiftRight","shiftLeft","log2","delta","approxRes","approxRem","and","or","xor","numBits","bitsCount","__isInteger__","fromInt","cachedObj","lowBits","highBits","TWO_PWR_63_DBL","strictStringValidation","substring","valueString","_isValidNumberFromString","power","opts","theString","theNumber","minSize","theNumberString","paddingLength","repeat","_convertNumberToString","TWO_PWR_16_DBL","_values","isString","flattenedValue","flattenArray","asStringArray","EMPTY_BOOKMARK","dest","EMPTY_CONNECTION_HOLDER","ReadOnlyConnectionHolder","ConnectionHolder","_bookmark","_impersonatedUser","_referenceCount","_connectionPromise","_onDatabaseNameResolved","setDatabase","referenceCount","initializeConnection","getConnection","releaseConnection","_releaseConnection","ignoreError","connectionHolder","_connectionHolder","EmptyConnectionHolder","connection_holder_1","ignoredError","acquireAndReleaseDummyConnection","retryStrategy","urlUtil","connectivityVerifier","transactionExecutor","ERROR","WARN","INFO","DEBUG","DEFAULT_LEVEL","levels","loggerFunction","logging","loggingConfig","configuredLevel","extractConfiguredLevel","configuredLogger","extractConfiguredLogger","noOpLogger","isLevelEnabled","isWarnEnabled","isInfoEnabled","NoOpLogger","targetLevel","getBrokenObjectReason","isBrokenObject","__isBrokenObject__","__reason__","Proxy","deleteProperty","server_address_1","resolveToSelf","ConfiguredCustomResolver","resolverFunction","_resolverFunction","resolved","base_host_name_resolver_1","canRetryOn","hostPort","_host","_resolved","_port","assertNumber","_hostPort","_stringValue","resolvedHost","resolveWith","urlParsed","parseDatabaseUrl","assertValidZoneId","assertValidNanosecond","assertValidSecond","assertValidMinute","assertValidHour","assertValidDay","assertValidMonth","assertValidYear","timeZoneOffsetInSeconds","totalNanoseconds","newDate","toStandardDate","isoStringToStandardDate","dateToIsoString","timeZoneOffsetToIsoString","timeToIsoString","durationToIsoString","normalizeNanosecondsForDuration","normalizeSecondsForDuration","NANOS_PER_MILLISECOND","SECONDS_PER_HOUR","SECONDS_PER_MINUTE","MINUTES_PER_HOUR","NANOSECOND_OF_SECOND_RANGE","SECOND_OF_MINUTE_RANGE","MINUTE_OF_HOUR_RANGE","HOUR_OF_DAY_RANGE","DAY_OF_MONTH_RANGE","MONTH_OF_YEAR_RANGE","YEAR_RANGE","ValueRange","_minNumber","_maxNumber","_minInteger","_maxInteger","contains","intValue","isLeapYear","assertValidTemporalValue","assertNumberOrInteger","formatNanosecond","formatNumber","stringLength","numString","usePositiveSign","totalNanos","localTimeSeconds","totalSeconds","localTimeToSecondOfDay","monthsString","daysString","secondsAndNanosecondsString","secondsString","nanosecondsString","secondsNegative","nanosecondsGreaterThanZero","formatSecondsAndNanosecondsForDuration","signPrefix","hours","minutes","secondsValue","yearInteger","formatYear","isoString","date","standardDate","getMilliseconds","secondsPortion","getSeconds","getUTCSeconds","offsetInMinutes","getTimezoneOffset","fieldName","zoneId","TransactionExecutor","retry_strategy_1","maxRetryTimeMs","initialRetryDelayMs","jitterFactor","_maxRetryTimeMs","_valueOrDefault","_initialRetryDelayMs","_multiplier","_jitterFactor","_inFlightTimeoutIds","_verifyAfterConstruction","execute","transactionCreator","transactionWork","_executeTransactionInsidePromise","retryStartTimeMs","retryDelayMs","_retryTransactionPromise","retryStartTime","nextRetryTime","_computeDelayWithJitter","nextRetryDelayMs","tx","_safeExecuteTransactionWork","_handleTransactionWorkSuccess","_handleTransactionWorkFailure","ignore","delayMs","jitter","assertObject","assertValidConfig","extractTimeout","extractMetadata","EMPTY_CONFIG","Url","formatIPv6Address","formatIPv4Address","defaultPortForScheme","trimAndVerifyQueryElement","escapeIPv6Address","startsWithSquareBracket","endsWithSquareBracket","sanitized","schemeMissing","sanitizeUrl","parsedUrl","partition","delimiter","decodeURIComponent","fragment","startsWith","userInfo","ldelimiter","rdelimiter","lpartition","rpartition","between","ipv6Host","rest","parseAuthority","uriJsParse","extractScheme","extractHost","formattedHost","formatHost","portString","extractPort","queryString","trimAndSanitizeQuery","pair","keyValue","extractQuery","extractResourceQueryString","resourceName","validateQueryAndParameters","assertValidDate","isEmptyObjectOrNull","objName","opt","validatedQuery","skipAsserts","text","assertCypherQuery","assertQueryParameters","getTime","object_util_1","fieldLookup","_fields","idx","generateFieldLookup","visitor","resultArray","e_3","e_3_1","counters","stats","updateStatistics","plan","profile","notifications","_buildNotifications","resultConsumedAfter","resultAvailableAfter","hasPlan","hasProfile","operatorType","identifiers","children","child","dbHits","rows","pageCacheMisses","pageCacheHits","pageCacheHitRatio","time","hasPageCacheStats","nodesCreated","nodesDeleted","relationshipsCreated","relationshipsDeleted","propertiesSet","labelsAdded","labelsRemoved","indexesAdded","indexesRemoved","constraintsAdded","constraintsRemoved","statistics","_stats","_systemUpdates","camelCaseIndex","_containsSystemUpdates","_containsUpdates","containsUpdates","updates","containsSystemUpdates","systemUpdates","notification","title","severity","_constructPosition","line","column","serverMeta","agent","READ_ONLY","READ_WRITE","WRITE_ONLY","SCHEMA_WRITE","internal_1","DEFAULT_ON_ERROR","DEFAULT_ON_COMPLETED","summary","streamObserverPromise","_stack","_streamObserverPromise","_p","_query","_parameters","_createSummary","_getOrCreatePromise","records","finally","onfinally","onCompletedOriginal","onErrorOriginal","newStack","replaceStacktrace","_cancel","toStringTag","observers_1","transaction_executor_1","tx_config_1","_reactive","_readConnectionHolder","_writeConnectionHolder","_hasTx","_transactionExecutor","maxTransactionRetryTime","_createTransactionExecutor","_onCompleteCallback","_databaseNameResolved","transactionConfig","autoCommitTxConfig","_run","_assertSessionIsOpen","customRunner","observerPromise","_connectionHolderWithMode","connectionConsumer","_beginTransaction","onClose","_transactionClosed","onBookmark","_updateBookmark","onConnection","_begin","lastBookmark","readTransaction","_runTransaction","writeTransaction","normalizedDatabase","newBookmark","rawMode","POINT_IDENTIFIER_PROPERTY","formatAsFloat","DURATION_IDENTIFIER_PROPERTY","LOCAL_TIME_IDENTIFIER_PROPERTY","TIME_IDENTIFIER_PROPERTY","DATE_IDENTIFIER_PROPERTY","LOCAL_DATE_TIME_IDENTIFIER_PROPERTY","DATE_TIME_IDENTIFIER_PROPERTY","fromStandardDate","verifyStandardDateAndNanos","getHours","getMinutes","getFullYear","getMonth","getDate","localDateTimeToString","offsetDefined","idDefined","verifyTimeZoneArguments","ACTIVE","_onClose","_onBookmark","_onConnection","_onErrorCallback","_results","committed","pendingResults","rolledback","finishTransaction","ROLLED_BACK","newCompletedResult","results","_interopRequireDefault","_classCallCheck2","_createClass2","_inherits2","_possibleConstructorReturn2","_getPrototypeOf2","_neo4jDriverCore","_sessionRx","_CoreDriver","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","Super","NewTarget","_ref","_ref$defaultAccessMod","_ref$database","_default","_driver","_version","_neo4jDriverBoltConnection","_transactionRx","_resultRx","_internal$util","_console","_x","spatial","temporal","createConnectionProviderFunction","RxSession","RxTransaction","RxResult","_rxjs","_operators","RxRetryLogic","_ref$maxRetryTimeout","maxRetryTimeout","_ref$initialDelay","initialDelay","_ref$delayMultiplier","delayMultiplier","_ref$delayJitter","delayJitter","_ref$logger","_maxRetryTimeout","_initialDelay","_delayMultiplier","_delayJitter","_logger","work","pipe","retryWhen","failedWork","handledExceptions","startTime","retryCount","delayDuration","flatMap","throwError","seenErrors","nextDelayDuration","_computeNextDelay","of","delay","replayedResult","publishReplay","refCount","_result","_keys","Subject","_summary","ReplaySubject","Observable","recordsObserver","_startStreaming","_this2","summaryObserver","_this3","_ref$recordsObserver","_ref$summaryObserver","subscriptions","unsubscribe","observers","complete","_retryLogicRx","_internal$constants","_session","_retryLogic","_createRetryLogic","retry","txc","catchError","_txc","_this4","AnimationFrameAction","requestAsyncId","actions","scheduled","requestAnimationFrame","recycleAsyncId","cancelAnimationFrame","AsyncAction","animationFrameScheduler","AnimationFrameScheduler","action","active","AsyncScheduler","animationFrame","VirtualTimeScheduler","SchedulerAction","maxFrames","VirtualAction","frame","frameTimeFactor","schedule","sort","sortActions","_execute","isObservable","lift","bindCallback","callbackFunc","resultSelector","isScheduler","_i","subscriber","dispatch","AsyncSubject","innerArgs","canReportError","dispatchNext","bindNodeCallback","forkJoin","sources","first_1","forkJoinInternal","resultSelector_1","completed","emitted","_loop_1","hasValue","fromEvent","eventName","setupSubscription","sourceObj","removeEventListener","isEventTarget","source_1","on","off","isJQueryStyleEventEmitter","source_2","addListener","removeListener","isNodeStyleEventEmitter","source_3","fromEventPattern","addHandler","removeHandler","retValue","generate","initialStateOrOptions","resultSelectorOrObservable","initialState","conditionResult","closed","needIterate","iif","trueResult","falseResult","interval","period","isNumeric","NEVER","never","onErrorResumeNext","remainder","subNext","pairs","subscription","Subscription","subscribeTo","using","resourceFactory","observableFactory","hasNext","hasCompleted","_subscribe","hasError","thrownError","BehaviorSubject","_value","getValue","NotificationKind","do","accept","nextOrObserver","toObservable","createNext","undefinedValueNotification","createError","createComplete","completeNotification","_isScalar","operator","observable","observerOrNext","sink","Subscriber","rxSubscriber","toSubscriber","syncErrorThrowable","_trySubscribe","syncErrorThrown","syncErrorValue","promiseCtor","getPromiseCtor","operations","toPromise","OuterSubscriber","notifyNext","outerValue","innerValue","outerIndex","innerIndex","innerSub","notifyError","notifyComplete","windowTime","_events","_infiniteTimeWindow","_windowTime","nextInfiniteTimeWindow","nextTimeWindow","isStopped","ReplayEvent","_getNow","_trimBufferThenGetEvents","eventsCount","spliceCount","Scheduler","SubjectSubscriber","AnonymousSubject","asObservable","SubjectSubscription","subscriberIndex","destinationOrNext","SafeSubscriber","_next","_complete","_unsubscribeAndRecycle","_parentOrParents","_parentSubscriber","_context","__tryOrSetError","__tryOrUnsub","useDeprecatedSynchronousErrorHandling","wrappedComplete","_unsubscribe","_subscriptions","_ctorUnsubscribe","remove","flattenUnsubscriptionErrors","teardown","EMPTY","subscriptionIndex","errs","_enable_super_gross_mode_that_will_cause_bad_things","SimpleInnerSubscriber","SimpleOuterSubscriber","innerSubscribe","innerSubscriber","ConnectableObservable","subjectFactory","_refCount","_isComplete","getSubject","_subject","ConnectableSubscriber","connectableObservableDescriptor","connectableProto","connectable","NONE","combineLatest","observables","CombineLatestOperator","CombineLatestSubscriber","toRespond","unused","_outerValue","oldVal","_tryResultSelector","emptyScheduled","fromArray","merge","concurrent","RaceOperator","RaceSubscriber","hasFirst","timer","dueTime","periodOrScheduler","due","zip","ZipOperator","ZipSubscriber","iterators","StaticArrayIterator","StaticIterator","ZipBufferIterator","stillUnsubscribed","notifyInactive","checkIterators","shouldComplete","_tryresultSelector","nextResult","isComplete","concatAll","FilterOperator","FilterSubscriber","groupBy","keySelector","elementSelector","durationSelector","subjectSelector","GroupByOperator","GroupBySubscriber","groups","attemptedToUnsubscribe","_group","group","groupedObservable","GroupedObservable","GroupDurationSubscriber","removeGroup","groupSubject","refCountSubscription","InnerRefCountSubscription","project","MapOperator","MapSubscriber","mergeAll","mergeMap","ii","MergeMapOperator","MergeMapSubscriber","_tryNext","_innerSub","ish","innerSubscription","observeOn","ObserveOnOperator","ObserveOnSubscriber","scheduleMessage","ObserveOnMessage","RefCountOperator","refCounter","RefCountSubscriber","sharedConnection","scheduleArray","isInteropObservable","scheduleObservable","isPromise","schedulePromise","isArrayLike","isIterable","scheduleIterable","clearInterval","errored","errorValue","Action","nextHandle","RESOLVED","activeHandles","findAndClearHandle","handle","AsapAction","cb","asapScheduler","AsapScheduler","asap","asyncScheduler","async","QueueAction","queueScheduler","QueueScheduler","getSymbolIterator","ArgumentOutOfRangeError","ArgumentOutOfRangeErrorImpl","EmptyError","EmptyErrorImpl","ObjectUnsubscribedError","ObjectUnsubscribedErrorImpl","TimeoutError","TimeoutErrorImpl","UnsubscriptionError","UnsubscriptionErrorImpl","closed_1","hostReportError","parseFloat","pred","notPred","fns","pipeFromArray","obs","subscribeToArray","InnerSubscriber","subscribeToResult","outerSubscriber","audit","AuditOperator","AuditSubscriber","throttled","clearThrottle","auditTime","closingNotifier","BufferOperator","BufferSubscriber","bufferCount","startBufferEvery","BufferCountOperator","subscriberClass","BufferSkipCountSubscriber","BufferCountSubscriber","bufferTime","bufferTimeSpan","bufferCreationInterval","maxBufferSize","BufferTimeOperator","BufferTimeSubscriber","Context","contexts","openContext","timespanOnly","timeSpanOnlyState","closeAction","dispatchBufferTimeSpanOnly","closeState","creationState","dispatchBufferClose","dispatchBufferCreation","filledBufferContext","context_1","onBufferFull","context_2","closeContext","prevContext","bufferToggle","openings","closingSelector","BufferToggleOperator","BufferToggleSubscriber","closeBuffer","openBuffer","trySubscribe","bufferWhen","BufferWhenOperator","BufferWhenSubscriber","subscribing","closingSubscription","selector","CatchOperator","caught","CatchSubscriber","err2","combineAll","concatMap","concatMapTo","innerObservable","CountOperator","CountSubscriber","_tryPredicate","debounce","DebounceOperator","DebounceSubscriber","emitValue","durationSubscription","debounceTime","DebounceTimeOperator","DebounceTimeSubscriber","debouncedSubscription","lastValue","clearDebounce","debouncedNext","defaultIfEmpty","DefaultIfEmptyOperator","DefaultIfEmptySubscriber","delayFor","DelayOperator","DelaySubscriber","delay_1","_schedule","scheduleNotification","DelayMessage","delayWhen","delayDurationSelector","subscriptionDelay","SubscriptionDelayObservable","DelayWhenOperator","DelayWhenSubscriber","delayNotifierSubscriptions","_innerValue","_outerIndex","_innerIndex","removeSubscription","tryComplete","delayNotifier","tryDelay","subscriptionIdx","notifierSubscription","SubscriptionDelaySubscriber","sourceSubscribed","subscribeToSource","dematerialize","DeMaterializeOperator","DeMaterializeSubscriber","distinct","flushes","DistinctOperator","DistinctSubscriber","Set","_useKeySelector","_finalizeNext","distinctUntilChanged","DistinctUntilChangedOperator","DistinctUntilChangedSubscriber","hasKey","distinctUntilKeyChanged","throwIfEmpty","errorFactory","defaultErrorFactory","ThrowIfEmptyOperator","ThrowIfEmptySubscriber","take","TakeOperator","total","TakeSubscriber","elementAt","hasDefaultValue","endWith","EveryOperator","EverySubscriber","everyValueMatch","exhaust","SwitchFirstOperator","SwitchFirstSubscriber","hasSubscription","exhaustMap","ExhaustMapOperator","ExhaustMapSubscriber","tryNext","expand","ExpandOperator","ExpandSubscriber","subscribeToProjection","finalize","FinallyOperator","FinallySubscriber","FindValueOperator","yieldIndex","FindValueSubscriber","ignoreElements","IgnoreElementsOperator","IgnoreElementsSubscriber","IsEmptyOperator","IsEmptySubscriber","takeLast","TakeLastOperator","TakeLastSubscriber","ring","mapTo","MapToOperator","MapToSubscriber","materialize","MaterializeOperator","MaterializeSubscriber","scan","accumulator","seed","hasSeed","ScanOperator","ScanSubscriber","_seed","acc","comparer","mergeMapTo","mergeScan","MergeScanOperator","MergeScanSubscriber","multicast","subjectOrSubjectFactory","MulticastOperator","nextSources","OnErrorResumeNextOperator","OnErrorResumeNextSubscriber","subscribeToNextSource","pairwise","PairwiseOperator","PairwiseSubscriber","hasPrev","pluck","currentProp","plucker","publish","publishBehavior","publishLast","selectorOrScheduler","RepeatOperator","RepeatSubscriber","repeatWhen","notifier","RepeatWhenOperator","RepeatWhenSubscriber","sourceIsBeingSubscribedTo","retries","subscribeToRetries","retriesSubscription","RetryOperator","RetrySubscriber","RetryWhenOperator","RetryWhenSubscriber","sample","SampleOperator","sampleSubscriber","SampleSubscriber","sampleTime","SampleTimeOperator","SampleTimeSubscriber","dispatchNotification","sequenceEqual","compareTo","comparator","SequenceEqualOperator","SequenceEqualSubscriber","_oneComplete","SequenceEqualCompareToSubscriber","checkValues","areEqual","nextB","completeB","shareSubjectFactory","share","shareReplay","configOrBufferSize","useRefCount","shareReplayOperator","single","SingleOperator","SingleSubscriber","seenValue","applySingleValue","singleValue","skip","SkipOperator","SkipSubscriber","skipLast","SkipLastOperator","_skipCount","SkipLastSubscriber","_count","_ring","skipCount","oldValue","skipUntil","SkipUntilOperator","SkipUntilSubscriber","skipWhile","SkipWhileOperator","SkipWhileSubscriber","skipping","tryCallPredicate","startWith","SubscribeOnObservable","delayTime","subscribeOn","SubscribeOnOperator","switchMap","SwitchMapOperator","SwitchMapSubscriber","switchAll","switchMapTo","takeUntil","TakeUntilOperator","takeUntilSubscriber","TakeUntilSubscriber","takeWhile","inclusive","TakeWhileOperator","TakeWhileSubscriber","nextOrComplete","predicateResult","tap","DoOperator","TapSubscriber","_tapNext","_tapError","_tapComplete","defaultThrottleConfig","leading","trailing","throttle","ThrottleOperator","ThrottleSubscriber","_leading","_trailing","_hasValue","_sendValue","_throttled","tryDurationSelector","throttlingDone","throttleTime","ThrottleTimeOperator","ThrottleTimeSubscriber","_hasTrailingValue","_trailingValue","timeInterval","TimeInterval","timeoutWith","withObservable","absoluteTimeout","waitFor","TimeoutWithOperator","TimeoutWithSubscriber","scheduleTimeout","dispatchTimeout","timestamp","Timestamp","toArrayReducer","toArray","windowBoundaries","WindowOperator","windowSubscriber","WindowSubscriber","sourceSubscription","openWindow","prevWindow","newWindow","windowCount","windowSize","startWindowEvery","WindowCountOperator","WindowCountSubscriber","windows","window_1","windowTimeSpan","windowCreationInterval","maxWindowSize","WindowTimeOperator","WindowTimeSubscriber","CountedSubject","_numberOfNextedValues","dispatchWindowClose","dispatchWindowCreation","dispatchWindowTimeSpanOnly","numberOfNextedValues","closeWindow","window_2","timeSpanState","windowToggle","WindowToggleOperator","WindowToggleSubscriber","openSubscription","context_3","context_4","windowWhen","unsubscribeClosingNotification","closingNotification","withLatestFrom","WithLatestFromOperator","WithLatestFromSubscriber","_tryProject","zipAll","copyProps","SafeBuffer","nb","enc","nenc","retried","_normalizeEncoding","normalizeEncoding","utf16Text","utf16End","fillLast","utf8FillLast","base64Text","base64End","simpleWrite","simpleEnd","lastNeed","lastTotal","lastChar","utf8CheckByte","byte","utf8CheckExtraBytes","utf8CheckIncomplete","ReferenceError","instance","_defineProperties","protoProps","staticProps","_getPrototypeOf","subClass","superClass","_typeof","assertThisInitialized","_setPrototypeOf","prim","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","getter","definition","_defineProperty","_classExtractFieldDescriptor","receiver","privateMap","_classPrivateFieldSet","_classPrivateFieldGet","commonjsGlobal","getDefaultExportFromCjs","assignExports","assign$5","global$q","fails$z","functionBindNative","NATIVE_BIND$4","FunctionPrototype$3","apply$6","call$l","functionApply","NATIVE_BIND$3","FunctionPrototype$2","call$k","functionUncurryThis","uncurryThis$z","toString$d","stringSlice$1","classofRaw$2","classofRaw$1","uncurryThis$y","functionUncurryThisClause","documentAll$2","documentAll_1","documentAll$1","isCallable$m","objectGetOwnPropertyDescriptor","descriptors","NATIVE_BIND$2","call$j","functionCall","objectPropertyIsEnumerable","$propertyIsEnumerable$2","getOwnPropertyDescriptor$b","createPropertyDescriptor$7","fails$w","classof$g","$Object$5","indexedObject","isNullOrUndefined$6","isNullOrUndefined$5","$TypeError$h","requireObjectCoercible$5","IndexedObject$3","requireObjectCoercible$4","toIndexedObject$b","isCallable$l","isObject$m","path$z","path$y","global$p","isCallable$k","getBuiltIn$f","objectIsPrototypeOf","engineUserAgent","global$o","userAgent$5","process$4","Deno$1","engineV8Version","V8_VERSION$3","fails$v","symbolConstructorDetection","useSymbolAsUid","getBuiltIn$e","isCallable$j","isPrototypeOf$o","$Object$4","isSymbol$5","$String$4","tryToString$6","isCallable$i","tryToString$5","$TypeError$g","aCallable$e","aCallable$d","isNullOrUndefined$4","getMethod$3","call$i","isCallable$h","isObject$l","$TypeError$f","sharedExports","shared$7","global$n","defineProperty$f","sharedStore","store$2","requireObjectCoercible$3","$Object$3","toObject$e","toObject$d","hasOwnProperty_1","uncurryThis$u","id$2","toString$c","uid$4","shared$6","hasOwn$l","uid$3","NATIVE_SYMBOL$4","Symbol$5","WellKnownSymbolsStore$2","wellKnownSymbol$o","call$h","isObject$k","isSymbol$4","getMethod$2","$TypeError$e","toPrimitive$6","isSymbol$3","toPropertyKey$4","isObject$j","document$3","EXISTS$1","documentCreateElement$1","createElement$1","ie8DomDefine","DESCRIPTORS$h","call$g","propertyIsEnumerableModule$2","createPropertyDescriptor$6","toIndexedObject$a","toPropertyKey$3","hasOwn$k","IE8_DOM_DEFINE$1","$getOwnPropertyDescriptor$2","fails$t","isCallable$g","isForced$2","isForced_1","aCallable$c","NATIVE_BIND$1","bind$j","functionBindContext","objectDefineProperty","v8PrototypeDefineBug","isObject$i","$String$3","$TypeError$d","anObject$f","DESCRIPTORS$f","V8_PROTOTYPE_DEFINE_BUG$1","anObject$e","toPropertyKey$2","$TypeError$c","$defineProperty$1","$getOwnPropertyDescriptor$1","CONFIGURABLE$1","definePropertyModule$4","createPropertyDescriptor$5","createNonEnumerableProperty$9","global$j","apply$5","uncurryThis$s","isCallable$f","getOwnPropertyDescriptor$a","isForced$1","path$x","bind$i","createNonEnumerableProperty$8","hasOwn$j","_export","floor$1","toIntegerOrInfinity$4","toIntegerOrInfinity$3","max$3","min$2","toAbsoluteIndex$5","toIntegerOrInfinity$2","min$1","lengthOfArrayLike$d","toIndexedObject$9","toAbsoluteIndex$4","lengthOfArrayLike$c","createMethod$5","arrayIncludes","hiddenKeys$6","hasOwn$i","toIndexedObject$8","indexOf$4","hiddenKeys$5","push$7","objectKeysInternal","enumBugKeys$3","internalObjectKeys$1","enumBugKeys$2","objectKeys$4","objectGetOwnPropertySymbols","DESCRIPTORS$d","uncurryThis$q","call$f","fails$r","objectKeys$3","getOwnPropertySymbolsModule$3","propertyIsEnumerableModule$1","toObject$c","IndexedObject$2","$assign","defineProperty$e","concat$6","objectAssign","B","chr","T","assign$4","assign$2","_Object$assign","bindExports$2","bind$h","arraySlice$6","uncurryThis$o","aCallable$b","isObject$h","hasOwn$h","arraySlice$5","$Function","concat$5","factories","functionBind","partArgs","argsLength","construct$4","bind$g","path$v","entryVirtual$l","bind$f","isPrototypeOf$n","method$i","FunctionPrototype$1","bind$d","_bindInstanceProperty$1","drawCircle","ctx","beginPath","arc","PI","closePath","drawRoundRect","w","r2d","moveTo","lineTo","drawEllipse","kappa","ox","oy","xe","ye","xm","ym","bezierCurveTo","drawDatabase","hEllipse","ymb","yeb","drawDashedLine","x2","y2","pattern","patternLength","dx","dy","slope","distRemaining","sqrt","patternIndex","draw","xStep","dashLength","shapeMap","circle","dashedLine","diamond","ellipse","ellipse_vis","hexagon","cos","sin","roundRect","square","rect","star","radius","triangle","s2","ir","triangleDown","styleInject","css","ref","insertAt","getElementsByTagName","firstChild","insertBefore","styleSheet","cssText","componentEmitterExports","Emitter","mixin","_callbacks","once","removeAllListeners","callbacks","listeners","hasListeners","fromExports$2","from$7","test$2","set$4","get$7","toStringTagSupport","TO_STRING_TAG_SUPPORT$2","isCallable$e","TO_STRING_TAG$3","$Object$2","classof$f","classof$e","$String$2","toString$b","uncurryThis$n","toIntegerOrInfinity$1","toString$a","requireObjectCoercible$2","charAt$3","charCodeAt$1","createMethod$4","stringMultibyte","isCallable$d","WeakMap$1","weakMapBasicDetection","uid$2","keys$7","sharedKey$4","NATIVE_WEAK_MAP$1","global$h","isObject$g","createNonEnumerableProperty$7","hasOwn$g","shared$4","sharedKey$3","hiddenKeys$4","TypeError$3","store$1","internalState","DESCRIPTORS$c","hasOwn$f","functionName","objectDefineProperties","DESCRIPTORS$b","definePropertyModule$3","anObject$d","toIndexedObject$7","objectKeys$2","html$2","anObject$c","definePropertiesModule$1","enumBugKeys$1","hiddenKeys$3","html$1","PROTOTYPE$1","IE_PROTO$1","IteratorPrototype$1","objectCreate","correctPrototypeGetter","hasOwn$e","isCallable$c","toObject$b","CORRECT_PROTOTYPE_GETTER$1","$Object$1","ObjectPrototype$2","objectGetPrototypeOf","createNonEnumerableProperty$6","defineBuiltIn$6","fails$p","isCallable$b","isObject$f","create$c","getPrototypeOf$a","defineBuiltIn$5","ITERATOR$6","BUGGY_SAFARI_ITERATORS$1","NEW_ITERATOR_PROTOTYPE","iteratorsCore","classof$d","objectToString","defineProperty$d","createNonEnumerableProperty$5","hasOwn$d","toString$9","TO_STRING_TAG$2","setToStringTag$7","create$b","createPropertyDescriptor$4","setToStringTag$6","Iterators$5","returnThis$1","uncurryThis$m","aCallable$a","isCallable$a","$String$1","$TypeError$b","anObject$b","objectSetPrototypeOf","$$Y","call$e","getPrototypeOf$9","setToStringTag$5","defineBuiltIn$4","Iterators$4","PROPER_FUNCTION_NAME$1","ITERATOR$5","iteratorDefine","createIterResultObject$3","charAt$2","toString$8","InternalStateModule$6","defineIterator$2","createIterResultObject$2","setInternalState$6","getInternalState$2","call$d","anObject$a","getMethod$1","iteratorClose$2","anObject$9","iteratorClose$1","Iterators$3","ITERATOR$4","ArrayPrototype$i","isArrayIteratorMethod$2","isCallable$9","inspectSource$2","uncurryThis$k","fails$o","isCallable$8","classof$c","inspectSource$1","construct$3","exec$2","isConstructor$4","toPropertyKey$1","definePropertyModule$2","createPropertyDescriptor$3","createProperty$6","classof$b","isNullOrUndefined$3","Iterators$2","ITERATOR$3","getIteratorMethod$9","call$c","aCallable$9","anObject$8","tryToString$4","getIteratorMethod$8","$TypeError$a","getIterator$8","bind$c","call$b","toObject$a","callWithSafeIterationClosing","isArrayIteratorMethod$1","isConstructor$3","lengthOfArrayLike$b","createProperty$5","getIterator$7","getIteratorMethod$7","$Array$3","ITERATOR$2","checkCorrectnessOfIteration$2","arrayLike","IS_CONSTRUCTOR","mapfn","mapping","from$4","_Array$from$1","getIteratorMethodExports$1","getIteratorMethod$6","getIteratorMethodExports","getIteratorMethod$5","toIndexedObject$6","Iterators$1","InternalStateModule$5","defineIterator$1","createIterResultObject$1","setInternalState$5","getInternalState$1","getIteratorMethod_1","global$g","classof$a","createNonEnumerableProperty$4","TO_STRING_TAG$1","getIteratorMethod$1","_getIteratorMethod","getOwnPropertySymbolsExports","getOwnPropertySymbols$2","objectGetOwnPropertyNames","hiddenKeys$2","objectGetOwnPropertyNamesExternal","toAbsoluteIndex$3","lengthOfArrayLike$a","createProperty$4","$Array$2","max$2","arraySliceSimple","classof$9","toIndexedObject$5","$getOwnPropertyNames$1","arraySlice$4","defineProperty$c","defineBuiltInAccessor$3","wellKnownSymbolWrapped","wellKnownSymbol$d","path$t","hasOwn$c","wrappedWellKnownSymbolModule$1","defineProperty$b","wellKnownSymbolDefine","call$a","getBuiltIn$b","wellKnownSymbol$c","defineBuiltIn$3","symbolDefineToPrimitive","classof$8","isArray$g","isArray$f","isConstructor$2","isObject$e","SPECIES$5","$Array$1","arraySpeciesCreate$4","bind$b","IndexedObject$1","toObject$9","lengthOfArrayLike$9","arraySpeciesCreate$3","push$6","createMethod$3","arrayIteration","$$W","global$f","call$9","uncurryThis$i","DESCRIPTORS$a","NATIVE_SYMBOL$3","fails$n","hasOwn$b","isPrototypeOf$m","anObject$7","toIndexedObject$4","createPropertyDescriptor$2","objectKeys$1","getOwnPropertyNamesModule$2","getOwnPropertySymbolsModule$2","getOwnPropertyDescriptorModule$3","definePropertyModule$1","defineBuiltIn$2","defineBuiltInAccessor$2","shared$3","hiddenKeys$1","uid$1","wellKnownSymbol$a","defineWellKnownSymbol$l","defineSymbolToPrimitive$1","setToStringTag$4","InternalStateModule$4","$forEach$1","setInternalState$4","ObjectPrototype$1","TypeError$2","nativeGetOwnPropertyDescriptor$1","push$5","WellKnownSymbolsStore$1","$propertyIsEnumerable$1","symbolRegistryDetection","$$V","getBuiltIn$a","hasOwn$a","toString$7","shared$2","NATIVE_SYMBOL_REGISTRY$1","SymbolToStringRegistry$1","$$U","hasOwn$9","isSymbol$2","tryToString$3","isArray$e","isCallable$7","classof$7","toString$6","push$4","$$T","getBuiltIn$9","apply$4","call$8","uncurryThis$g","fails$m","isCallable$6","isSymbol$1","arraySlice$3","NATIVE_SYMBOL$1","exec$1","charAt$1","replace$2","getOwnPropertySymbolsModule$1","toObject$8","_Object$getOwnPropertySymbols","getOwnPropertyDescriptorExports$3","getOwnPropertyDescriptor$9","getOwnPropertyDescriptorExports$2","getOwnPropertyDescriptor$8","$$R","fails$k","toIndexedObject$3","DESCRIPTORS$9","Object$5","getOwnPropertyDescriptor$7","getOwnPropertyDescriptor$6","_Object$getOwnPropertyDescriptor$1","getOwnPropertyDescriptorsExports","getOwnPropertyDescriptors$2","getBuiltIn$8","getOwnPropertyNamesModule$1","anObject$6","concat$4","ownKeys$b","ownKeys$a","toIndexedObject$2","getOwnPropertyDescriptorModule$2","createProperty$3","getOwnPropertyDescriptors","_Object$getOwnPropertyDescriptors","definePropertiesExports$1","defineProperties$4","definePropertiesExports","defineProperties$3","$$P","DESCRIPTORS$7","defineProperties$2","Object$4","defineProperties$1","D","_Object$defineProperties","definePropertyExports$3","defineProperty$a","definePropertyExports$2","defineProperty$9","$$O","DESCRIPTORS$6","defineProperty$8","Object$3","defineProperty$7","defineProperty$6","_Object$defineProperty$1","_classCallCheck","definePropertyExports$1","defineProperty$5","definePropertyExports","defineProperty$2","_Object$defineProperty","symbolExports$2","symbol$6","symbolExports$1","symbol$5","$TypeError$9","doesNotExceedSafeInteger$3","fails$j","V8_VERSION$2","SPECIES$4","arrayMethodHasSpeciesSupport$5","$$N","fails$i","isArray$d","isObject$d","toObject$7","lengthOfArrayLike$8","doesNotExceedSafeInteger$2","createProperty$2","arraySpeciesCreate$2","arrayMethodHasSpeciesSupport$4","V8_VERSION$1","getBuiltIn$7","setToStringTag$3","symbol$3","symbol$2","$$M","uncurryThis$e","Symbol$4","thisSymbolValue$1","$$L","getBuiltIn$5","uncurryThis$d","wellKnownSymbol$7","Symbol$3","getOwnPropertyNames$4","symbol$1","_Symbol$1","iteratorExports$2","iterator$6","iteratorExports$1","iterator$5","iterator$3","iterator$1","_Symbol$iterator$1","_typeof$1","toPrimitiveExports$1","toPrimitive$5","toPrimitiveExports","toPrimitive$4","_Symbol$toPrimitive","_createClass","isArrayExports$2","isArray$c","isArrayExports$1","isArray$b","isArray$8","isArray$6","_Array$isArray$1","sliceExports$2","slice$7","sliceExports$1","slice$6","$$J","isArray$5","isConstructor$1","isObject$c","toAbsoluteIndex$2","lengthOfArrayLike$7","toIndexedObject$1","createProperty$1","wellKnownSymbol$6","nativeSlice","HAS_SPECIES_SUPPORT$3","SPECIES$3","max$1","slice$5","isPrototypeOf$l","method$h","ArrayPrototype$h","slice$3","slice$1","_sliceInstanceProperty$1","fromExports$1","from$3","fromExports","_Array$from","_arrayLikeToArray$8","arr2","_unsupportedIterableToArray$8","minLen","_slicedToArray","_arrayWithHoles","_s","_r","_n","_iterableToArrayLimit","_nonIterableRest","_toConsumableArray","_arrayWithoutHoles","iter","_iterableToArray","_nonIterableSpread","symbolExports","_Symbol","concatExports","concat$3","concat$2","isPrototypeOf$k","method$g","ArrayPrototype$g","_concatInstanceProperty","sliceExports","_sliceInstanceProperty","ownKeysExports","ownKeys$9","ownKeys$6","_Reflect$ownKeys","isArrayExports","_Array$isArray","mapExports$1","map$6","map$5","isPrototypeOf$j","method$f","ArrayPrototype$f","map$3","_mapInstanceProperty","keysExports$1","keys$6","toObject$6","keys$4","_Object$keys","nowExports","now$3","$$F","$Date","thisTimeValue","now$1","_Date$now","forEachExports$2","forEach$a","fails$g","arrayMethodIsStrict$6","arrayForEach","forEach$8","classof$6","hasOwn$8","isPrototypeOf$i","method$e","ArrayPrototype$e","DOMIterables$3","forEach$6","_forEachInstanceProperty","reverseExports$2","reverse$7","$$D","isArray$3","nativeReverse","reverse","test$1","reverse$6","isPrototypeOf$h","method$d","ArrayPrototype$d","reverse$4","_reverseInstanceProperty","spliceExports","splice$4","DESCRIPTORS$5","isArray$2","$TypeError$8","getOwnPropertyDescriptor$5","SILENT_ON_NON_WRITABLE_LENGTH_SET","tryToString$2","$TypeError$7","deletePropertyOrThrow$2","$$C","toObject$5","toAbsoluteIndex$1","lengthOfArrayLike$6","setArrayLength","doesNotExceedSafeInteger$1","arraySpeciesCreate$1","deletePropertyOrThrow$1","HAS_SPECIES_SUPPORT$1","deleteCount","insertCount","actualDeleteCount","actualStart","splice$3","isPrototypeOf$g","method$c","ArrayPrototype$c","splice$1","_spliceInstanceProperty","includesExports","includes$4","$includes","includes$3","isObject$b","classof$5","MATCH$1","$TypeError$6","MATCH","$$A","notARegExp","isRegExp","requireObjectCoercible$1","toString$5","stringIndexOf","regexp","error1","error2","correctIsRegExpLogic","searchString","includes$2","isPrototypeOf$f","arrayMethod","stringMethod","ArrayPrototype$b","StringPrototype$1","_includesInstanceProperty","getPrototypeOfExports$2","getPrototypeOf$8","toObject$4","nativeGetPrototypeOf","getPrototypeOf$6","_Object$getPrototypeOf$1","filterExports","filter$3","$filter","filter$2","isPrototypeOf$e","method$b","ArrayPrototype$a","_filterInstanceProperty","valuesExports$1","values$6","DESCRIPTORS$4","uncurryThis$9","push$3","createMethod$2","$values","values$4","_parseIntExports","_parseInt$3","whitespaces$4","toString$4","whitespaces$3","replace$1","ltrim","rtrim","createMethod$1","stringTrim","global$d","fails$d","uncurryThis$7","toString$3","trim$5","whitespaces$2","$parseInt$1","Symbol$2","ITERATOR$1","hex","numberParseInt","_parseInt$1","_parseInt","indexOfExports","indexOf$3","$$v","$indexOf","arrayMethodIsStrict$4","nativeIndexOf","NEGATIVE_ZERO","searchElement","indexOf$2","isPrototypeOf$d","method$a","ArrayPrototype$9","_indexOfInstanceProperty","trimExports","trim$4","whitespaces$1","$trim","trim$3","isPrototypeOf$c","method$9","StringPrototype","trim$1","createExports$2","create$a","Object$2","create$7","_Object$create$1","stringifyExports","stringify$2","path$e","apply$3","_JSON$stringify","setTimeoutExports","setTimeout$3","engineIsBun","$TypeError$5","validateArgumentsLength$2","global$c","apply$2","isCallable$5","arraySlice$2","validateArgumentsLength$1","Function$2","schedulersFix$2","$$s","global$b","setInterval$2","$$r","global$a","setTimeout$2","setTimeout$1","_setTimeout","fillExports","fill$4","toObject$3","lengthOfArrayLike$5","endPos","fill$2","isPrototypeOf$b","method$8","ArrayPrototype$8","_fillInstanceProperty","_extends","_inheritsLoose","_assertThisInitialized$1","win","assign$1","nextKey","VENDOR_PREFIXES","TEST_ELEMENT","round","abs$1","prefixed","prefix","camelProp","PREFIXED_TOUCH_ACTION","NATIVE_TOUCH_ACTION","TOUCH_ACTION_COMPUTE","TOUCH_ACTION_AUTO","TOUCH_ACTION_MANIPULATION","TOUCH_ACTION_NONE","TOUCH_ACTION_PAN_X","TOUCH_ACTION_PAN_Y","TOUCH_ACTION_MAP","touchMap","cssSupports","CSS","supports","getTouchActionProps","SUPPORT_TOUCH","SUPPORT_POINTER_EVENTS","SUPPORT_ONLY_TOUCH","INPUT_TYPE_TOUCH","INPUT_TYPE_MOUSE","COMPUTE_INTERVAL","INPUT_START","INPUT_END","INPUT_CANCEL","DIRECTION_NONE","DIRECTION_LEFT","DIRECTION_RIGHT","DIRECTION_UP","DIRECTION_DOWN","DIRECTION_HORIZONTAL","DIRECTION_VERTICAL","DIRECTION_ALL","PROPS_XY","PROPS_CLIENT_XY","each","boolOrFn","inStr","TouchAction","manager","_proto","compute","update","touchAction","recognizers","recognizer","getTouchAction","hasPanX","hasPanY","cleanTouchActions","preventDefaults","srcEvent","direction","offsetDirection","prevented","preventDefault","hasNone","isTapPointer","pointers","isTapMovement","distance","isTapTouchTime","deltaTime","preventSrc","hasParent","parentNode","getCenter","pointersLength","clientX","clientY","simpleCloneInputData","timeStamp","center","deltaX","deltaY","getDistance","p1","p2","getAngle","atan2","getDirection","getVelocity","inputHandler","eventType","pointersLen","changedPointersLen","changedPointers","isFirst","isFinal","firstInput","firstMultiple","offsetCenter","angle","offsetDelta","prevDelta","prevInput","computeDeltaXY","overallVelocity","overallVelocityX","overallVelocityY","scale","rotation","getRotation","maxPointers","velocity","velocityX","velocityY","lastInterval","computeIntervalInputData","srcEventTarget","composedPath","computeInputData","recognize","splitStr","addEventListeners","removeEventListeners","getWindowForElement","doc","ownerDocument","defaultView","Input","inputTarget","domHandler","ev","evEl","evTarget","evWin","inArray","findByKey","POINTER_INPUT_MAP","pointerdown","pointermove","pointerup","pointercancel","pointerout","IE10_POINTER_TYPE_ENUM","POINTER_ELEMENT_EVENTS","POINTER_WINDOW_EVENTS","MSPointerEvent","PointerEvent","PointerEventInput","_Input","pointerEvents","removePointer","eventTypeNormalized","pointerType","isTouch","storeIndex","pointerId","button","uniqueArray","TOUCH_INPUT_MAP","touchstart","touchmove","touchend","touchcancel","TouchInput","targetIds","touches","getTouches","targetTouches","allTouches","identifier","changedTouches","changedTargetTouches","touch","MOUSE_INPUT_MAP","mousedown","mousemove","mouseup","MouseInput","pressed","which","DEDUP_TIMEOUT","setLastTouch","eventData","primaryTouch","lastTouch","lts","lastTouches","recordTouches","isSyntheticEvent","TouchMouseInput","_manager","inputEvent","inputData","isMouse","sourceCapabilities","firesTouchEvents","mouse","invokeArrayArg","STATE_FAILED","_uniqueId","getRecognizerByNameIfManager","otherRecognizer","stateStr","Recognizer","simultaneous","requireFail","recognizeWith","dropRecognizeWith","requireFailure","dropRequireFailure","hasRequireFailures","canRecognizeWith","additionalEvent","tryEmit","canEmit","inputDataClone","TapRecognizer","_Recognizer","taps","threshold","posThreshold","pTime","pCenter","_timer","_input","validPointers","validMovement","validTouchTime","failTimeout","validInterval","validMultiTap","tapCount","AttrRecognizer","attrTest","optionPointers","isRecognized","isValid","directionStr","PanRecognizer","_AttrRecognizer","pX","pY","directionTest","hasMoved","SwipeRecognizer","PinchRecognizer","inOut","RotateRecognizer","PressRecognizer","validTime","defaults","domEvents","inputClass","cssProps","userSelect","touchSelect","touchCallout","contentZooming","userDrag","tapHighlightColor","preset","toggleCssProps","oldCssProps","Manager","handlers","force","curRecognizer","existing","targetRecognizer","events","gestureEvent","gesture","triggerDomEvent","SINGLE_TOUCH_INPUT_MAP","SingleTouchInput","started","normalizeSingleTouches","changed","deprecate","deprecationMessage","extend","merge$2","inherit","base","childP","baseP","bindFn","Hammer$2","Hammer","VERSION","INPUT_MOVE","STATE_POSSIBLE","STATE_BEGAN","STATE_CHANGED","STATE_ENDED","STATE_RECOGNIZED","STATE_CANCELLED","Tap","Pan","Swipe","Pinch","Rotate","Press","RealHammer","_createForOfIteratorHelper$7","allowArrayLike","_context21","_arrayLikeToArray$7","_unsupportedIterableToArray$7","normalCompletion","didErr","_e2","DELETE","deepObjectAssign","merged","deepObjectAssignNonentry","stripDelete","_len2","_key2","_context2","_step","_iterator","_Object$keys$1","Alea","_len3","_key3","_mashSeed","mash","Mash","s0","s1","mashSeed","_mashSeed2","uint32","fract53","algorithm","AleaImplementation","Hammer$1","hammerMock","Activator$1","container","_context3","_cleanupQueue","_dom","overlay","classList","hammer","_onTapOverlay","stopPropagation","_onClick","_hasParent","deactivate","_escListener","keyCode","_context4","_context5","_step2","_iterator2","activate","fullHexRE","shortHexRE","rgbRE","rgbaRE","recursiveDOMDelete","DOMobject","hasChildNodes","isObject$a","copyOrDelete","allowDeletion","doDeletion","fillIfDefined","aProp","bProp","selectiveDeepExtend","deepExtend","selectiveNotDeepExtend","propsToExclude","protoExtend","_context6","copyAndExtendArray","newValue","_context7","getAbsoluteTop","elem","getBoundingClientRect","top","forEach$5","hexToRGB","overrideOpacity","color","opacity","rgb","_rgb","RGBToHex","red","green","blue","_context10","parseColor","inputColor","defaultColor","colorStr","isValidRGB","_context11","isValidHex","hsv","RGBToHSV","hexToHSV","lighterColorHSV","darkerColorHSV","darkerColorHex","HSVToHex","lighterColorHex","background","border","highlight","hover","minRGB","maxRGB","HSVToRGB","q","bridgeObject","referenceObject","Element","objectTo","mergeOptions","mergeTarget","option","globalOptions","isPresent","srcOption","globalOption","globalEnabled","enabled","doMerge","easingFunctions","linear","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","topMost","pile","accessors","candidate","_step3","_iterator3","member","htmlColors","black","navy","darkblue","mediumblue","darkgreen","teal","darkcyan","deepskyblue","darkturquoise","mediumspringgreen","lime","springgreen","aqua","cyan","midnightblue","dodgerblue","lightseagreen","forestgreen","seagreen","darkslategray","limegreen","mediumseagreen","turquoise","royalblue","steelblue","darkslateblue","mediumturquoise","indigo","darkolivegreen","cadetblue","cornflowerblue","mediumaquamarine","dimgray","slateblue","olivedrab","slategray","lightslategray","mediumslateblue","lawngreen","chartreuse","aquamarine","maroon","purple","olive","gray","skyblue","lightskyblue","blueviolet","darkred","darkmagenta","saddlebrown","darkseagreen","lightgreen","mediumpurple","darkviolet","palegreen","darkorchid","yellowgreen","sienna","brown","darkgray","lightblue","greenyellow","paleturquoise","lightsteelblue","powderblue","firebrick","darkgoldenrod","mediumorchid","rosybrown","darkkhaki","silver","mediumvioletred","indianred","peru","chocolate","tan","lightgrey","palevioletred","thistle","orchid","goldenrod","crimson","gainsboro","plum","burlywood","lightcyan","lavender","darksalmon","violet","palegoldenrod","lightcoral","khaki","aliceblue","honeydew","azure","sandybrown","wheat","beige","whitesmoke","mintcream","ghostwhite","salmon","antiquewhite","linen","lightgoldenrodyellow","oldlace","fuchsia","magenta","deeppink","orangered","tomato","hotpink","coral","darkorange","lightsalmon","orange","lightpink","pink","gold","peachpuff","navajowhite","moccasin","bisque","mistyrose","blanchedalmond","papayawhip","lavenderblush","seashell","cornsilk","lemonchiffon","floralwhite","snow","yellow","lightyellow","ivory","white","ColorPicker$1","pixelRatio","generated","centerCoordinates","hueCircle","initialColor","previousColor","applied","updateCallback","closeCallback","_bindHammer","_setSize","setInitial","rgba","htmlColor","_isColorString","rgbaArray","isValidRGBA","_rgbaArray","rgbObj","alpha","_setColor","_generateHueCircle","_hide","_updatePicker","setColor","alert","angleConvert","colorPickerSelector","clientWidth","clientHeight","colorPickerCanvas","getContext","pixelRation","devicePixelRatio","webkitBackingStorePixelRatio","mozBackingStorePixelRatio","msBackingStorePixelRatio","oBackingStorePixelRatio","backingStorePixelRatio","setTransform","clearRect","putImageData","fillStyle","brightnessRange","opacityRange","initialColorDiv","backgroundColor","newColorDiv","width","height","_context16","_context17","_context18","_context19","className","colorPickerDiv","noCanvas","fontWeight","padding","innerText","opacityDiv","brightnessDiv","arrowDiv","me","onchange","_setOpacity","oninput","_setBrightness","brightnessLabel","opacityLabel","cancelButton","onclick","applyButton","_apply","saveButton","_save","loadButton","_loadLast","drag","pinch","_moveSelector","hue","sat","sfac","fillRect","strokeStyle","stroke","getImageData","centerY","centerX","newTop","newLeft","wrapInTag","_len5","_key5","allOptions$1","Configurator$1","parentModule","defaultContainer","configureOptions","hideOption","changedOptions","allowCreation","initialized","popupCounter","defaultOptions","showButton","moduleOptions","domElements","popupDiv","popupLimit","popupHistory","colorPicker","_removePopup","_clean","show","_option","_handleObject","_makeItem","_makeHeader","_makeButton","_push","_showPopupIfNeeded","_len6","_key6","objectLabel","select","selectedValue","_option2","selected","_update","_makeLabel","popupString","popupValue","factor","itemIndex","_setupPopup","generateButton","_printOptions","onmouseover","onmouseout","optionsContainer","_this5","hideTimeout","deleteTimeout","_this6","checkbox","_this7","_showColorPicker","_this8","insertTo","setUpdateCallback","colorString","setCloseCallback","checkOnly","visibleInSet","subObj","newPath","_getValue","_handleArray","_makeTextInput","_makeCheckbox","enabledPath","enabledValue","_label","_makeColorField","_makeDropdown","_makeRange","_constructOptions","emitter","setOptions","optionsObj","pointer","getOptions","Popup$1","overflowMethod","hidden","doShow","maxHeight","maxWidth","isLeft","isTop","visibility","hide","errorFound","VALIDATOR_PRINT_STYLE$1","Validator$1","referenceOptions","subObject","usedOptions","parse","_option3","__any__","referenceOption","is_object","getType","refOptionObj","__type__","checkFields","getSuggestion","printLocation","optionType","refOptionType","print","nodeType","_isAMomentObject","localSearch","findInOptions","globalSearch","indexMatch","closestMatch","recursive","closestMatchPath","lowerCaseOption","_context20","levenshteinDistance","_i3","_j2","matrix","Activator","Configurator","Popup","VALIDATOR_PRINT_STYLE","Validator","NODE_ATTR_MAPPING","fontsize","fontcolor","labelfontcolor","fontname","fillcolor","tooltip","labeltooltip","EDGE_ATTR_MAPPING","TOKENTYPE","NULL","DELIMITER","IDENTIFIER","UNKNOWN","DELIMITERS","dot","index$1","token","tokenType","nextPreview","isAlphaNumeric","charCode","merge$1","setValue","addNode","graph","graphs","attr","addEdge","edge","edges","createEdge","arrows","getToken","isComment","c2","newSyntaxError","SyntaxError","chop","parseStatements","parseStatement","subgraph","parseSubgraph","parseEdge","parseAttributeList","parseAttributeStatement","parseNodeStatement","subgraphs","nof_attr_list","edgeStyles","dashed","solid","dotted","arrowTypes","box","crow","curve","icurve","normal","inv","tee","vee","attr_list","attr_names","from_type","to_type","dir_type","idx_arrow","tmp_attr_list","maxLength","setProp","convertAttr","converted","visProp","visPropI","DOTToGraph","dotData","strict","parseGraph","parseDOT","graphData","dotNode","graphNode","image","shape","convertEdge","dotEdge","graphEdge","array1","array2","subEdge","elem1","elem2","locales","cn","addDescription","back","createEdgeError","del","deleteClusterError","edgeDescription","edit","editClusterError","editEdge","editEdgeDescription","editNode","cs","de","en","es","fr","nl","pt","ru","uk","CachedImage","NUM_ITERATIONS","Image","canvas","h2","h4","h8","h16","w2","w4","w8","w16","coordinates","_fillMipMap","drawImage","iterations","_to","Images","images","imageBroken","brokenUrl","imageToLoadBrokenUrlOn","imageToRedrawWith","cachedImage","img","onload","_fixImageCoordinates","_redrawWithImage","_tryloadBrokenUrl","imageToCache","offsetWidth","offsetHeight","mapExports","map$2","internalMetadataExports","internalMetadata","arrayBufferNonExtensible","fails$a","isObject$9","classof$4","objectIsExtensible","freezing","$$p","uncurryThis$5","isObject$8","hasOwn$7","defineProperty$1","isExtensible$1","FREEZING$1","id$1","bind$a","call$7","anObject$5","tryToString$1","lengthOfArrayLike$4","isPrototypeOf$a","getIterator$6","$TypeError$4","iterate$8","isPrototypeOf$9","$TypeError$3","anInstance$4","$$o","global$9","InternalMetadataModule$1","fails$8","createNonEnumerableProperty$3","iterate$7","anInstance$3","isCallable$4","isObject$7","setToStringTag$1","forEach$4","DESCRIPTORS$2","setInternalState$3","internalStateGetterFor$2","collection$3","defineBuiltIn$1","defineBuiltIns$3","getBuiltIn$4","defineBuiltInAccessor$1","DESCRIPTORS$1","SPECIES$2","setSpecies$2","create$6","defineBuiltIns$2","bind$9","anInstance$2","isNullOrUndefined$2","iterate$6","setSpecies$1","setInternalState$2","internalStateGetterFor$1","collectionStrong$2","previous","getEntry","removed","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","_Map","Groups","_defaultIndex","_groupIndex","_defaultGroups","useDefaultGroups","optionFields","groupName","_groups","_groupNames","groupname","shouldCreate","_index","isNanExports","isNan$2","isNan","_Number$isNaN","_isFiniteExports","_isFinite$2","globalIsFinite","_isFinite","_Number$isFinite","someExports","some$3","$some","some$2","isPrototypeOf$8","method$7","ArrayPrototype$7","_someInstanceProperty","_assertThisInitialized","createExports$1","create$5","createExports","create$2","_Object$create","setPrototypeOfExports$1","setPrototypeOf$7","setPrototypeOfExports","setPrototypeOf$6","setPrototypeOf$1","_Object$setPrototypeOf","bindExports$1","bind$8","bindExports","bind$5","_bindInstanceProperty","_inherits","_possibleConstructorReturn","getPrototypeOfExports$1","getPrototypeOf$5","getPrototypeOfExports","getPrototypeOf$2","_Object$getPrototypeOf","regeneratorRuntimeExports","regeneratorRuntime$1","_typeofExports","_Symbol$iterator","forEachExports$1","forEach$3","forEachExports","promiseExports$1","promise$6","promiseExports","promise$5","hasOwn$6","ownKeys$5","getOwnPropertyDescriptorModule$1","isObject$6","createNonEnumerableProperty$2","$Error$1","createPropertyDescriptor$1","errorStackInstallable","createNonEnumerableProperty$1","toString$2","$$j","isPrototypeOf$7","getPrototypeOf$1","create$1","iterate$5","push$2","engineIsNode","$TypeError$2","aConstructor$2","anObject$4","aConstructor$1","isNullOrUndefined$1","SPECIES$1","speciesConstructor$2","engineIsIos","global$7","apply$1","bind$4","isCallable$3","hasOwn$5","fails$6","arraySlice$1","IS_IOS$1","IS_NODE$4","set$3","process$3","Function$1","String$1","queue$2","task$1","Queue$3","notify$1","promise$4","queue$1","engineIsIosPebble","engineIsWebosWebkit","global$6","bind$3","getOwnPropertyDescriptor$4","Queue$2","IS_NODE$3","document$2","process$2","Promise$1","microtask$1","microtask_1","perform$6","promiseNativeConstructor","engineIsDeno","engineIsBrowser","global$4","NativePromiseConstructor$5","isCallable$2","NativePromisePrototype$2","NATIVE_PROMISE_REJECTION_EVENT$1","FORCED_PROMISE_CONSTRUCTOR$5","promiseConstructorDetection","newPromiseCapability$2","aCallable$8","$TypeError$1","$$i","IS_NODE$1","global$3","call$6","aCallable$7","isCallable$1","isObject$5","anInstance$1","speciesConstructor$1","perform$5","Queue$1","InternalStateModule$1","NativePromiseConstructor$4","newPromiseCapabilityModule$6","FORCED_PROMISE_CONSTRUCTOR$4","setInternalState$1","NativePromisePrototype$1","TypeError$1","document$1","process$1","newPromiseCapability$1","bind$2","NativePromiseConstructor$3","promiseStaticsIncorrectIteration","call$5","aCallable$6","newPromiseCapabilityModule$5","perform$4","iterate$4","$$g","FORCED_PROMISE_CONSTRUCTOR$2","call$4","aCallable$5","newPromiseCapabilityModule$4","perform$3","iterate$3","call$3","newPromiseCapabilityModule$3","anObject$3","isObject$4","promiseResolve$2","$$d","NativePromiseConstructor$1","promiseResolve$1","call$2","aCallable$4","newPromiseCapabilityModule$2","perform$2","iterate$2","call$1","aCallable$3","getBuiltIn$2","newPromiseCapabilityModule$1","perform$1","iterate$1","$$a","fails$5","getBuiltIn$1","promise$1","reverseExports$1","reverse$3","reverseExports","_Promise","_regeneratorRuntime","Op","iteratorSymbol","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","innerFn","outerFn","tryLocsList","protoGenerator","Generator","makeInvokeMethod","tryCatch","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","NativeIteratorPrototype","Gp","defineIteratorMethods","_invoke","AsyncIterator","PromiseImpl","invoke","__await","unwrapped","previousPromise","callInvokeWithMethodAndArg","delegateResult","maybeInvokeDelegate","_sent","dispatchException","abrupt","methodName","resultName","nextLoc","pushTryEntry","locs","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","doneResult","displayName","isGeneratorFunction","genFun","ctor","mark","awrap","skipTempReset","rootRecord","rval","exception","loc","hasCatch","hasFinally","finallyEntry","finish","thrown","delegateYield","runtime","regenerator","regeneratorRuntime","accidentalStrictMode","reduceExports","reduce$3","aCallable$2","toObject$2","lengthOfArrayLike$3","arrayReduce","reduce$2","isPrototypeOf$6","method$6","ArrayPrototype$6","_reduceInstanceProperty","flatMapExports","flatMap$3","isArray$1","lengthOfArrayLike$2","bind$1","flattenIntoArray$1","original","sourceLen","depth","mapper","elementLen","targetIndex","sourceIndex","mapFn","flattenIntoArray","aCallable$1","toObject$1","lengthOfArrayLike$1","flatMap$2","isPrototypeOf$5","method$5","ArrayPrototype$5","setExports","set$2","_Set","iteratorExports","_Symbol$iterator2","getIteratorExports$1","getIterator$5","getIteratorExports","_getIterator","sortExports","sort$3","mergeSort","comparefn","middle","insertionSort","llength","rlength","lindex","rindex","arraySort","firefox","engineFfVersion","engineIsIeOrEdge","webkit","engineWebkitVersion","$$6","uncurryThis$3","deletePropertyOrThrow","toString$1","fails$4","internalSort","arrayMethodIsStrict$1","FF","IE_OR_EDGE","V8","WEBKIT","nativeSort","push$1","FAILS_ON_UNDEFINED","FAILS_ON_NULL","STRICT_METHOD$1","STABLE_SORT","itemsLength","items","getSortCompare","sort$2","isPrototypeOf$4","method$4","ArrayPrototype$4","_sortInstanceProperty","keysExports","keys$3","keys$2","classof$2","hasOwn$4","isPrototypeOf$3","method$3","ArrayPrototype$3","DOMIterables$2","_keysInstanceProperty","valuesExports","values$3","values$2","classof$1","hasOwn$3","isPrototypeOf$2","method$2","ArrayPrototype$2","DOMIterables$1","_valuesInstanceProperty","entriesExports","entries$3","entries$2","hasOwn$2","isPrototypeOf$1","method$1","ArrayPrototype$1","_entriesInstanceProperty","constructExports","construct$2","$$5","anObject$2","isObject$3","fails$3","nativeConstruct","NEW_TARGET_BUG","ARGS_BUG","FORCED$2","Target","newTarget","$args","_Reflect$construct","getRandomValues","rnds8","rng","crypto","byteToHex","randomUUID","v4","rnds","unsafeStringify","ownKeys$4","enumerableOnly","symbols","_objectSpread$4","_context32","_context33","_createForOfIteratorHelper$6","_context31","_arrayLikeToArray$6","_unsupportedIterableToArray$6","isId","_flushIfNeeded","_extended","_len","_queue","_timeout","DataSetPart","senderId","_context8","_subscribers","_context9","DataStream","_pairs","_step$value","t0","_step2$value","_step3$value","_context12","_iterator4","_step4","_step4$value","_context13","_context14","_context15","_step5","_iterator5","_step5$value","toIdArray","toItemArray","_step6","_iterator6","_step6$value","_callee","_iterator7","_step7","_step7$value","_step8","_iterator8","_step8$value","_callee2","_iterator9","_step9","_step9$value","curr","maxItem","maxValue","_curr$value","minItem","minValue","_curr$value2","_value2","_step10","_iterator10","_step10$value","_ref2","_ref3","idA","itemA","_ref4","idB","itemB","DataSet","_DataSetPart","_isNativeReflectConstruct$t","_options","_data","_idProp","fieldId","addedIds","idsToAdd","_addItem","_trigger","updatedIds","oldData","updatedData","idProp","addOrUpdate","origId","fullItem","oldItem","_updateItem","updateEventData","_ref5","pureDeepObjectAssign","ids","_item","returnType","itemIds","itemId","order","_sort","_filterFields","_i2","_len4","resultant","_i4","_i5","_id3","_item2","_items","_i6","_len7","_id4","_i7","_len8","_i8","_len9","_id5","_item3","_i9","_len10","_id6","_item4","mappedItems","filteredItem","av","bv","removedIds","removedItems","ident","_context22","_context23","_step11","maxField","_iterator11","itemField","_context24","_step12","minField","_iterator12","_value3","exists","ensureFullItem","_callee3","_iterator13","_step13","_context25","_context26","isDataViewLike","getDataSet","getIds","stream","updateOnly","isDataSetLike","_parseFloatExports","_parseFloat$3","global$2","fails$2","whitespaces","$parseFloat$1","Symbol$1","numberParseFloat","trimmedString","_parseFloat$1","_parseFloat","getOwnPropertyNamesExports","getOwnPropertyNames$3","$$3","fails$1","getOwnPropertyNames$2","Object$1","_Object$getOwnPropertyNames","choosify","subOption","allowed","chosen","chosenEdge","pointInRect","rotationPoint","bottom","isValidLabel","getSelfRefCoordinates","distanceToBorder","toBorderDist","yFromNodeCenter","xFromNodeCenter","LabelAccumulator","measureText","lines","blocks","tmpText","block","_add","tmpLines","tmpLine","firstEmptyBlock","tmpBlocks","determineLineHeights","determineLabelSize","removeEmptyBlocks","tagPattern","afterBold","afterItal","afterMono","MarkupAccumulator","bold","ital","mono","spacing","modStack","modName","ch","tagName","emitBlock","unshift","setTag","advance","_this$prepareRegExp2","prepareRegExp","regExp","matched","nextTag","checkTag","unsetTag","prepared","LabelSplitter","getFormattingValues","font","fontOptions","nlLines","lineCount","multi","splitBlocks","maxWdt","_text","splitStringIntoLines","_mod","_text2","append","newLine","markupSystem","system","parseEntities","parseWS","parseStartTag","parseEndTag","beginable","parseOverride","decodeMarkupSystem","splitMarkdownBlocks","splitHtmlBlocks","curWidth","words","newText","overMaxWidth","appendLast","getLongestFit","word","getLongestFitWord","newW","multiFontStyle","Label","edgelabel","pointToSelf","baseSize","yLine","isEdgeLabel","elementOptions","initFontOptions","labelDirty","newFontOptions","parseFontString","vadjust","constrainWidth","minWdt","constrainHeight","minHgt","valign","widthConstraint","widthConstraintMaximum","widthConstraintMinimum","heightConstraint","heightConstraintMinimum","heightConstraintValign","propagateFonts","constrain","chooser","margins","widthBias","heightBias","dstPile","srcPile","addFontToPile","tmpShorthand","multiName","multiFont","optionNames","getFontOption","fontPile","addFontOptionsToPile","getBasicOptions","_loop","modOptions","getFontOptions","baseline","viewFontSize","view","scaling","drawThreshold","maxVisible","calculateLabelSize","_drawBackground","_drawText","getSize","_this$_setAlignment2","_setAlignment","textAlign","labelHeight","align","_this$_getColor2","_getColor","strokeColor","fontColor","strokeWidth","lineWidth","lineJoin","strokeText","fillText","textBaseline","initialStrokeColor","_processLabel","face","labelHighlightBold","fontString","selectedState","hoverState","inText","differentState","_processLabelText","outOptions","inOptions","newOptionsArray","NodeBase","labelModule","margin","refreshNeeded","boundingBox","adjustSizes","borderWidth","resize","shadow","shadowColor","shadowBlur","shadowSize","shadowOffsetX","shadowX","shadowOffsetY","shadowY","borderDashes","setLineDash","dashes","shapeProperties","borderColor","save","enableBorderDashes","disableBorderDashes","restore","enableShadow","disableShadow","performStroke","_updateBoundingBox","textSize","getTextSize","Box$1","_NodeBase","Box","_isNativeReflectConstruct$s","_setMargins","needsRefresh","dimensions","getDimensionsFromLabel","initContextForDraw","borderRadius","performFill","updateBoundingBox","_addBoundingBoxMargin","CircleImageBase","_isNativeReflectConstruct$r","labelOffset","imageObj","imageObjAlt","setImages","selection_changed","imageTmp","imgPadding","imagePadding","optImgPadding","useImageSize","ratio_width","ratio_height","_getImagePadding","globalAlpha","interpolation","imgPosLeft","imgPosTop","imgWidth","imgHeight","drawImageAtPosition","labelDimensions","yLabel","Circle$1","_CircleImageBase","Circle","_isNativeReflectConstruct$q","diameter","_drawRawCircle","CircularImage","_isNativeReflectConstruct$p","_resizeImage","switchImages","labelX","labelY","coordinateOrigin","clip","_drawImageAtPosition","_drawImageLabel","ShapeBase","_isNativeReflectConstruct$o","_this$customSizeWidth","_this$customSizeHeigh","customSizeWidth","customSizeHeight","sizeMultiplier","CanvasRenderingContext2D","icon","drawExternalLabel","ownKeys$3","_objectSpread$3","CustomShape","_ShapeBase","_isNativeReflectConstruct$n","ctxRenderer","drawLater","drawNode","nodeDimensions","_distanceToBorder","Database","_isNativeReflectConstruct$m","Diamond$1","Diamond","_isNativeReflectConstruct$l","_drawShape","Dot","_isNativeReflectConstruct$k","Ellipse","_isNativeReflectConstruct$j","Icon","_isNativeReflectConstruct$i","iconSize","_icon","weight","Image$2","_isNativeReflectConstruct$h","side","useBorderWithImage","neutralborderWidth","selectionLineWidth","borderWidthSelected","Square","_isNativeReflectConstruct$g","Hexagon","_isNativeReflectConstruct$f","Star","_isNativeReflectConstruct$e","Text","_isNativeReflectConstruct$d","Triangle$1","Triangle","_isNativeReflectConstruct$c","TriangleDown","_isNativeReflectConstruct$b","ownKeys$2","_objectSpread$2","imagelist","grouplist","baseFontSize","predefinedPosition","currentShape","_localColor","checkMass","parseOptions","_load_images","updateLabelModule","checkOpacity","updateShape","physics","load","brokenImage","unselected","updateGroupOptions","currentGroup","fixed","customScalingFunction","sizeDiff","fontDiff","visible","nodeId","labelId","origin","parentOptions","newOptions","groupList","groupObj","skipProperties","checkCoordinateOrigin","parsedColor","mass","strId","_arrayLikeToArray$5","NodesHandler","layoutEngine","functions","createNode","nodesListeners","boldital","bindEventListeners","refresh","_nodeId","_nodeId2","doNotEmit","oldNodesData","newNodes","positionInitially","changedData","dataChanged","clearPositions","dataArray","_node","nodeIndices","_node2","dataset","_unsupportedIterableToArray$5","_createForOfIteratorHelper$5","dsNode","bodyNode","nodeList","nodeObj","toId","fromId","edgeList","getExports$1","get$6","getExports","get$5","hasOwn$1","isObject$2","anObject$1","get$4","isDataDescriptor","_Reflect$get","getOwnPropertyDescriptorExports$1","getOwnPropertyDescriptor$3","getOwnPropertyDescriptorExports","_Object$getOwnPropertyDescriptor","_get","_superPropBase","hypotExports","hypot$2","$$1","$hypot","hypot","value1","value2","sum","aLen","larg","_Math$hypot","_createSuper$a","_isNativeReflectConstruct$a","EndPoint","points","arrowData","xt","yt","Image$1","_EndPoint","translate","rotate","imageWidth","imageHeight","Arrow","_EndPoint2","_super2","transform","drawPath","Crow","Curve","pi","startAngle","endAngle","InvertedCurve","InvertedTriangle","Bar","Vee","EndPoints","ownKeys$1","_objectSpread$1","EdgeBase","_body","_labelModule","colorDirty","hoverWidth","selectionWidth","fromPoint","toPoint","_selected","_hover","viaNode","getViaNode","getColor","_drawDashedLine","_drawLine","_line","_this$_getCircleData2","_getCircleData","_circle","_fromPoint","_toPoint","lineCap","lineDashOffset","_this$_getCircleData4","_this$_getCircleData6","_y","_radius","_findBorderPosition","_findBorderPositionCircle","_this$_getCircleData$2","selfReference","nearNode","endPointOffset","arrowStrikethrough","iteration","_pointOnCircle","difference","inheritsColor","grd","createLinearGradient","fromColor","toColor","addColorStop","angleFrom","angleTo","renderBehindTheNode","pointTFrom","pointTTo","x1","y1","x3","y3","_getDistanceToEdge","_this$_getCircleData8","px","py","u","arrowPoint","node1","node2","reversed","scaleFactor","fromArrowScale","fromArrowType","toArrowScale","toArrowType","middleArrowScale","middleArrowType","relativeLength","smooth","pointT","via","guidePos","getPoint","halfLength","guidePos1","guidePos2","_this$_getCircleData10","_pointT","_low","_high","_pointT2","core","origCtxAttr","backgroundSize","setStrokeDashed","backgroundDashes","_objectSpread","BezierEdgeBase","_EdgeBase","_isNativeReflectConstruct$9","_getViaCoordinates","minDistance","lastX","lastY","_getDistanceToLine","viaNode1","viaNode2","quadraticCurveTo","drawBackground","BezierEdgeDynamic","_BezierEdgeBase","_isNativeReflectConstruct$8","_boundFunction","positionBezierNode","physicsChange","setupSupportNode","parentEdgeId","_bezierCurve","cx","cy","cr","_findBorderPositionBezier","_getDistanceToBezierEdge","BezierEdgeStatic","_isNativeReflectConstruct$7","_stepX3","_stepY3","roundness","stepX","stepY","xVia","yVia","_stepX","_stepY","_stepX2","_stepY2","myAngle","_pi","_myAngle","_xVia","_yVia","CubicBezierEdgeBase","_isNativeReflectConstruct$6","via1","via2","vec","CubicBezierEdge","_CubicBezierEdgeBase","_isNativeReflectConstruct$5","viaNodes","forceDirection","_getDistanceToBezierEdge2","StraightEdge","_isNativeReflectConstruct$4","edgeSegmentLength","toBorderPoint","Edge","baseWidth","edgeType","connected","affectsLayout","updateEdgeType","_setInteractionWidths","toArrow","fromArrow","middleArrow","toArrowSrc","toArrowImageWidth","toArrowImageHeight","middleArrowSrc","middleArrowImageWidth","middleArrowImageHeight","fromArrowSrc","fromArrowImageWidth","fromArrowImageHeight","selectedWidth","changeInType","cleanup","disconnect","attachEdge","detachEdge","widthDiff","drawLine","drawLabel","getArrowData","drawArrowHead","_getRotation","edgeId","isOverlappingWith","xFrom","yFrom","xTo","yTo","xObj","yObj","getDistanceToEdge","copyFromGlobals","colorsDefined","selfReferenceSize","EdgesHandler","edgesListeners","edgeData","smoothOptions","reconnectEdges","_edgeId","oldEdgesData","edgesData","oldEdge","showInternalIds","_addMissingEdges","_removeInvalidEdges","edgesToDelete","toNode","fromNode","isCluster","addIds","BarnesHutSolver","physicsBody","barnesHutTree","_rng","thetaInversed","theta","overlapAvoidanceFactor","avoidOverlap","gravitationalConstant","physicsNodeIndices","nodeCount","_formBarnesHutTree","_getForceContributions","parentBranch","_getForceContribution","NW","NE","SW","SE","childrenCount","centerOfMass","calcSize","_calculateForces","gravityForce","fx","fy","forces","minX","minY","maxX","maxY","rootSize","halfRootSize","_splitBranch","_placeInTree","totalMass","totalMassInv","biggestSize","skipMassUpdate","_updateBranchMass","region","_placeInRegion","containedNode","_insertRegion","childSize","_drawBranch","branch","RepulsionSolver","repulsingForce","nodeDistance","HierarchicalRepulsionSolver","theseNodesDistance","SpringSolver","edgeLength","node3","edgeIndices","physicsEdgeIndices","springLength","_calculateSpringForce","springForce","springConstant","HierarchicalSpringSolver","springFx","springFy","totalFx","totalFy","correctionFx","correctionFy","_nodeId3","CentralGravitySolver","centralGravity","ForceAtlas2BasedRepulsionSolver","_BarnesHutSolver","_isNativeReflectConstruct$3","degree","ForceAtlas2BasedCentralGravitySolver","_CentralGravitySolver","_isNativeReflectConstruct$2","PhysicsEngine","velocities","physicsEnabled","simulationInterval","requiresTimeout","previousStates","referenceState","freezeCache","renderTimer","adaptiveTimestep","adaptiveTimestepEnabled","adaptiveCounter","adaptiveInterval","stabilized","startedStabilization","stabilizationIterations","ready","barnesHut","damping","forceAtlas2Based","repulsion","hierarchicalRepulsion","maxVelocity","minVelocity","solver","stabilization","updateInterval","onlyDynamicEdges","fit","timestep","wind","layoutFailed","initPhysics","stopSimulation","startSimulation","updatePhysicsData","nodesSolver","edgesSolver","gravitySolver","modelOptions","stabilize","viewFunction","simulationStep","_emitStabilized","physicsTick","runDoubleSpeed","amountOfIterations","solve","moveNodes","_evaluateStepQuality","_startStabilizing","physicsStep","revert","adjustTimeStep","nodeIds","positions","vx","vy","reference","maxNodeVelocity","averageNodeVelocity","nodeVelocity","_performStep","maxV","calculateComponentVelocity","targetIterations","_freezeNodes","_stabilizationBatch","running","sendProgress","_finalizeStabilization","_restoreFrozenNodes","forceSize","arrowSize","NetworkUtil","allNodes","specificNodes","clonedOptions","amountOfConnections","Cluster","_Node","_isNativeReflectConstruct$1","containedNodes","containedEdges","childClusterId","childCluster","clusterEdge","parentClusterEdge","clusteringEdgeReplacingIds","srcId","edgeReplacedById","ClusterEngine","clusteredNodes","clusteredEdges","hubsize","_getHubSize","_checkOptions","nodesToCluster","clusterByConnection","refreshData","joinCondition","childNodesObj","childEdgesObj","_cluster","edgeCount","relevantEdgeCount","clusters","usedNodes","checkJoinCondition","cloneOptions","gatheringSuccessful","childNodeId","_getConnectedId","foundCluster","findClusterData","_m","clusterByEdgeCount","clusterNodeProperties","parentNodeId","parentClonedOptions","childClonedOptions","childNodeIDs","childNode","childNodeKey","childEdge","clusterEdgeProperties","otherNodeId","childKeys","createEdges","newEdges","getNewEdge","createdEdge","newEdge","matchToDirection","matchFromDirection","_j3","_edge","_createClusteredEdge","_backupEdgeOptions","tmpNodesToRemove","allowSingleNodeCluster","processProperties","childNodesOptions","childEdgesOptions","_clonedOptions","clusterId","_getClusterPosition","clusterNode","_clusterEdges","originalOptions","clusterNodeId","findNode","parentIndex","parentClusterNodeId","_openChildCluster","releaseFunction","clusterPosition","newPositions","_containedNode","_containedNode2","edgesToBeDeleted","otherNode","transferId","transferEdge","otherCluster","_restoreEdge","nodesArray","clusteredNodeId","startEdgeId","allEdgeIds","getClusteredEdges","clusteredEdgeId","getBaseEdges","IdsToHandle","doneIds","foundIds","nextId","nextEdge","replacingIds","replacingId","average","averageSquared","hubCounter","largestHub","variance","standardDeviation","hubThreshold","baseEdge","extraOptions","childNodes","childEdges","_obj","_createClusterEdges","_edge2","clusteredNode","deletedNodeIds","deletedEdgeIds","eachClusterNode","endPointsValid","replacedIds","numValid","containedEdgeId","containedEdge","deletedEdgeId","_filter","shouldBeClustered","_isClusteredNode","_isClusteredEdge","clusterFrom","_getClusterNodeForNode","clusterTo","continueLoop","_loop2","clustersToOpen","numNodes","allowSingle","openCluster","_updateState","CanvasRenderer","mozRequestAnimationFrame","webkitRequestAnimationFrame","msRequestAnimationFrame","redrawRequested","renderingActive","renderRequests","allowRedraw","dragging","zooming","hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag","_determineBrowserMethod","zoomTimeoutId","_requestRedraw","_resizeNodes","_redraw","_startRendering","myWindow","_requestNextFrame","_renderStep","drawExternalLabels","setSize","translation","_drawEdges","_drawNodes","_drawArrows","_drawSelectionBox","alwaysShow","hovered","topLeft","DOMtoCanvas","bottomRight","viewableArea","_drawExternalLabels","isSelected","isBoundingBoxOverlappingWith","_drawLater","selectedLength","hoveredLength","_drawLater2","_drawLater3","_drawExternalLabels2","drawArrows","browserType","selectionBox","setIntervalExports","_setInterval","onTouch","onRelease","Canvas","cameraState","canvasViewCenter","_cleanupCallbacks","autoResize","hammerFrame","_cleanUp","listener","useCapture","ResizeObserver","unobserve","resizeTimer","resizeFunction","_onResize","attachEvent","detachEvent","previousWidth","previousHeight","widthRatio","heightRatio","newScale","currentViewCenter","distanceFromCenter","overflow","tabIndex","_setPixelRatio","eventListeners","onTap","onDoubleTap","onHold","onDragStart","onDrag","onDragEnd","onPinch","onMouseWheel","onMouseMove","onContext","_prepareValue","emitEvent","oldWidth","oldHeight","previousRatio","_getCameraState","newWidth","newHeight","_setCameraState","numerator","_determinePixelRatio","_XconvertCanvasToDOM","_YconvertCanvasToDOM","_XconvertDOMtoCanvas","_YconvertDOMtoCanvas","View","animationSpeed","renderRefreshRate","animationEasingFunction","easingTime","sourceScale","targetScale","sourceTranslation","targetTranslation","lockedOnNodeId","lockedOnNodeOffset","touchTime","releaseNode","initialZoom","rawOptions","allNodeIds","minZoomLevel","maxZoomLevel","normalizeFitOptions","zoomLevel","canvasWidth","canvasHeight","getRange","positionDefined","xZoomLevel","yZoomLevel","animationOptions","findCenter","animation","nodePosition","lockedOnNode","getViewPosition","easingFunction","animateView","locked","_transitionRedraw","viewCenter","_lockedRedraw","finished","progress","keycharm","_exportFunctions","_bound","keydown","keyup","down","handleEvent","up","bound","shiftKey","bindAll","getKey","unbind","newBindings","NavigationHandler","iconsCreated","navigationHammers","boundFunctions","activated","configureKeyboardBindings","navigationButtons","loadNavigationElements","cleanNavigation","navigationDOM","navigationDivs","navigationDivActions","_fit","bindToRedraw","_stopMovement","boundAction","keyboard","speed","scaleOld","zoom","scaleFrac","ty","_context27","bindToWindow","unbindFromRedraw","_arrayLikeToArray$4","InteractionHandler","selectionHandler","navigationHandler","popup","popupObj","popupTimer","getPointer","dragNodes","dragView","autoFocus","tooltipDelay","zoomView","zoomSpeed","pinched","multiselect","ctrlKey","metaKey","checkSelectionChanges","commitAndEmit","generateClickEvent","selectAdditionalOnPoint","selectOnPoint","firstSet","secondSet","arrayDiff","firstArr","secondArr","getNodeAt","selection","setSelection","_unsupportedIterableToArray$4","_createForOfIteratorHelper$4","getSelectedNodes","xFixed","yFixed","diffX","diffY","selectionBoxPosition","selectionBoxPositionMinMax","toBeSelectedNodes","selectObject","preScaleDragPointer","postScaleDragPointer","canvasToDOM","popupVisible","_checkHidePopup","setPosition","focus","_checkShowPopup","hoverObject","pointerObj","previousPopupObjId","nodeUnderCursor","popupType","overlappingNodes","getTitle","overlappingEdges","popupTargetType","popupTargetId","setText","_pointerToPositionObject","stillOnObj","overNode","weakMapExports","weakMap$2","uncurryThis$1","defineBuiltIns$1","isObject$1","collectionWeak$1","global$1","weakMap","_SingleTypeSelectionAccumulator_previousSelection","_SingleTypeSelectionAccumulator_selection","_SelectionAccumulator_nodes","_SelectionAccumulator_edges","_SelectionAccumulator_commitHandler","_WeakMap","__classPrivateFieldGet","__classPrivateFieldSet","_createForOfIteratorHelper$3","_arrayLikeToArray$3","_unsupportedIterableToArray$3","diffSets","diff","SingleTypeSelectionAccumulator","_items2","added","deleted","changes","getChanges","unselect","SelectionAccumulator","commitHandler","getSelection","_classPrivateFieldGe","_classPrivateFieldGe2","_classPrivateFieldGe3","_createForOfIteratorHelper$2","_arrayLikeToArray$2","_unsupportedIterableToArray$2","SelectionHandler","_selectionAccumulator","hoverObj","selectable","selectConnectedEdges","hoverConnectedEdges","updateSelection","getEdgeAt","unselectAll","selectionChanged","deselectObject","DOM","oldSelection","emptySelection","_initBaseEvent","getClickedItems","controlEdge","highlightEdges","_this$_selectionAccum","addEdges","addNodes","_removeFromSelection","canvasPos","returnNode","positionObject","_getAllNodesOverlappingWith","_getEdgesOverlappingWith","returnEdge","mindist","overlappingEdge","dist","_this$_selectionAccum2","deleteNodes","deleteEdges","sizeNodes","sizeEdges","_addToHover","hoverChanged","emitBlurEvent","hoveredEdgesCount","hoveredNodesCount","emitHoverEvent","_hoverConnectedEdges","selectionChanges","previousSelection","getSelectedNodeIds","getSelectedEdgeIds","getNodes","getEdges","getItemsOnPoint","_ret","timsortExports","timsort$1","timsort","alphabeticalCompare","runLength","DEFAULT_MIN_MERGE","binaryInsertionSort","makeAscendingRun","ts","TimSort","minRun","minRunLength","pushRun","mergeRuns","forceMergeRuns","POWERS_OF_TEN","log10","al","bl","aStr","bStr","runHi","reverseRun","pivot","mid","gallopLeft","lastOffset","maxOffset","gallopRight","minGallop","tmpStorageLength","stackLength","runStart","stackSize","mergeAt","start1","length1","start2","length2","mergeLow","mergeHigh","cursor1","cursor2","count1","count2","customCursor","customDest","_createSuper","DirectionInterface","abstract","fake_use","nodeArray","VerticalStrategy","_DirectionInterface","layout","hierarchical","addToOrdering","getTreeSize","min_x","max_x","levelSeparation","HorizontalStrategy","_DirectionInterface2","min_y","max_y","everyExports","every$3","$every","every$2","_everyInstanceProperty","_arrayLikeToArray$1","fillLevelsByDirectionCyclic","fillLevelsByDirection","isEntryNode","shouldLevelBeReplaced","edgeIdProp","newLevelDiff","_unsupportedIterableToArray$1","_createForOfIteratorHelper$1","entryNodeId","entryNode","newLevel","targetNodeId","oldLevel","_ret2","HierarchicalStatus","childrenReference","parentReference","trees","distributionOrdering","distributionIndex","isTree","treeIndex","treeId","_getMaxLevel","nodeA","nodeB","minLevel","parents1","parents2","curLevel","LayoutEngine","_resetRNG","setPhysics","optionsBackup","randomSeed","improvedLayout","clusterThreshold","nodeSpacing","treeSpacing","blockShifting","edgeMinimization","parentCentralization","sortMethod","setupHierarchicalLayout","layoutNetwork","curveType","allOptions","prevHierarchicalState","setDirectionStrategy","adaptAllOptionsForHierarchicalLayout","initialRandomSeed","backupPhysics","indices","clusterOptions","startLength","before","modules","clustering","clusterBridges","clusterOutliers","_declusterAll","kamadaKawai","_shiftToCenter","getRangeCore","clustersPresent","definedLevel","undefinedLevel","lastNodeOnLevel","_determineLevelsByHubsize","_determineLevelsDirected","_determineLevelsCustomCallback","ensureLevel","distribution","_getDistribution","_generateMap","_placeNodesByHierarchy","_condenseHierarchy","stillShifting","branches","shiftTree","getBranchNodes","getBranchBoundary","branchMap","maxLevel","minSpace","maxSpace","branchNode","getPosition","_this3$_getSpaceAroun2","_getSpaceAroundNode","minSpaceNode","maxSpaceNode","shiftElementsCloser","centerParents","hier","levelNodes","hasSameParent","inSameSubNetwork","branchShiftCallback","centerParent","pos1","pos2","diffAbs","branchNodes1","branchNodes2","maxLevel1","getMaxLevel","maxLevel2","getCollisionLevel","branchNodeBoundary1","branchNodeBoundary2","max1","min2","minSpace2","_shiftBlock","_centerParent","minimizeEdgeLength","allEdges","nodeLevel","C2","referenceNodes","aboveEdges","getFx","getDFx","getGuess","guess","guessMap","dfx","branchNodes","branchBoundary","minSpaceBranch","maxSpaceBranch","branchOffset","moveBranch","_this3$_getSpaceAroun4","newPosition","moveNode","getLevels","shiftBranchesCloserBottomUp","centerAllParents","minimizeEdgeLengthBottomUp","centerAllParentsBottomUp","treeSizes","treeWidths","numTrees","getTreeSizes","shiftBy","shiftTrees","useMap","ordering","nextPos","parents","parentId","_getCenterPosition","_this$_getSpaceAround2","positionedNodes","_indexArrayToNodes","handledNodeCount","_validatePositionAndContinue","parentLevel","childRef","childNodeLevel","previousPos","sharedParent","_findCommonParent","withChild","_placeBranchNodes","idArray","fix","hubSizes","hubSize","_getActiveEdges","levelDownstream","_getHubSizes","_crawlNetwork","levelA","setMinLevelToZero","shakeTowards","fillLevelsByDirectionRoots","fillLevelsByDirectionLeaves","_this9","addRelation","checkIfTree","_this10","startingNodeId","crawler","tree","setTreeIndex","_this11","shifter","childA","childB","_this12","iterateParents","parentRef","findParent","foundParent","isVertical","minPos","maxPos","_arrayLikeToArray","ManipulationSystem","interactionHandler","editMode","manipulationDiv","editModeDiv","closeDiv","_domEventListenerCleanupQueue","temporaryUIFunctions","temporaryEventFunctions","temporaryIds","guiEnabled","inMode","selectedControlNode","initiallyActive","deleteNode","deleteEdge","controlNodeStyle","_restore","enableEditMode","disableEditMode","locale","_setup","showManipulatorToolbar","_createEditButton","manipulationDOM","selectedNodeCount","getSelectedNodeCount","selectedEdgeCount","getSelectedEdgeCount","selectedTotalCount","needSeperator","_createAddNodeButton","_createSeperator","_createAddEdgeButton","_createEditNodeButton","_createEditEdgeButton","_createDeleteButton","_bindElementEvents","toggleEditMode","_temporaryBindEvent","_createBackButton","_createDescription","_performAddNode","finalizedData","_temporaryBindUI","_handleConnect","_finishConnect","_dragControlNode","_dragStartEdge","editWithoutDrag","edgeBeingEditedId","controlNodeFrom","_getNewTargetNode","controlNodeTo","_controlNodeTouch","_controlNodeDragStart","_controlNodeDrag","_controlNodeDragEnd","findBorderPositions","_performEditEdge","selectedNodes","selectedEdges","deleteFunction","_createWrappers","_removeManipulationDOM","_this$options$locales","_this$options$locales2","setAttribute","_createButton","_cleanupDOMEventListeners","_cleanupTemporaryNodesAndEdges","_unbindTemporaryUIs","_unbindTemporaryEvents","_unsupportedIterableToArray","_createForOfIteratorHelper","addNodeMode","addEdgeMode","editEdgeMode","deleteBtnClass","rtl","deleteSelected","labelClassName","newFunction","UIfunctionName","domElement","keyupListener","indexTempEdge","_context28","_context29","indexTempNode","fromSelect","toSelect","overlappingNodeIds","targetNode","connectionEdge","connectFromId","_context30","_performAddEdge","clickData","defaultData","sourceNodeId","eeFunct","bool","endPoints","nodeOptions","function","minimum","dom","maximum","configure","interaction","manipulation","clickToUse","configuratorHideOption","parentPath","optionName","FloydWarshall","edgesArray","D_matrix","cell","knode","kcolm","inode","icolm","jnode","jcolm","KamadaKawai","edgeStrength","distanceSolver","ignoreClusters","getDistances","_createL_matrix","_createK_matrix","_createE_matrix","maxIterations","maxEnergy","highE_nodeId","dE_dx","dE_dy","delta_m","subIterations","_this$_getHighestEner2","_getHighestEnergyNode","_moveNode","_this$_getEnergy2","_getEnergy","maxEnergyNodeId","dE_dx_max","dE_dy_max","nodeIdx","_this$_getEnergy4","_this$E_sums$m","E_sums","d2E_dx2","d2E_dxdy","d2E_dy2","x_m","y_m","km","K_matrix","lm","L_matrix","iIdx","x_i","y_i","kmat","lmat","denominator","_updateE_matrix","E_matrix","mIdx","_mIdx","colm","lcolm","oldDx","oldDy","Network","renderer","nodesHandler","edgesHandler","setData","rawCode","_rawCode$split2","rawLanguage","rawCountry","language","country","_code","normalizeLanguageCode","configurator","networkOptions","setModuleOptions","activator","_updateVisibleIndices","edgeNodesPresent","_updateValueRange","gephi","gephiData","gephiJSON","inheritColor","gEdges","vEdges","gEdge","vEdge","attributes","gNode","vNode","parseGephi","valueMin","valueMax","valueTotal","setValueRange","cluster","getNodesInCluster","clusterByHubsize","updateClusteredNode","getBaseEdge","updateEdge","getSeed","editNodeMode","getPositions","storePositions","getBoundingBox","getConnectedNodes","objectId","getConnectedEdges","getSelectedEdges","selectNodes","selectEdges","commitWithoutEmitting","redraw","getScale","getOptionsFromConfigurator","neo4j","initialQuery","neo4jUri","neo4jUser","neo4jPassword","groupAsLabel","visJs","NeoVisEvents","EventController","_handlers","CompletionEvent","ErrorEvent","ClickNodeEvent","ClickEdgeEvent","generateEvent","NEOVIS_DEFAULT_CONFIG","NEOVIS_ADVANCED_CONFIG","_classPrivateMethodInitSpec","privateSet","_checkPrivateRedeclaration","_classPrivateFieldInitSpec","privateCollection","_classPrivateMethodGet","_propertyToHtml","_retrieveProperty","objectToTitleHtml","neo4jObject","titleProperties","titleString","propVal","innerHTML","objectToTitleString","_network","_query2","_container","_consoleLog","_WeakSet","_init","_runCypher","_runFunction","_buildStaticObject","_buildPropertyNameObject","_buildCypherObject","_buildFunctionObject","_buildVisObject","_buildNodeVisObject","_buildEdgeVisObject","NeoVis","network","vis","_init2","_consoleLog2","render","recordCount","dataBuildPromises","dataPromises","_buildNodeVisObject2","_buildEdgeVisObject2","startNode","endNode","visConfig","neoVis","clearNetwork","registerOnEvent","reinit","reload","renderWithCypher","updateWithCypher","consoleDebug","defaultLabelConfig","defaultRelationshipConfig","nonFlat","defaultRelationshipsConfig","relationships","Neo4j","serverUrl","serverUser","serverPassword","serverDatabase","initialCypher","getElementById","containerId","_runCypher2","cypher","_runFunction2","_buildStaticObject2","staticConfig","_buildPropertyNameObject2","propertyNameConfig","neo4jObj","_buildCypherObject2","cypherConfig","_buildFunctionObject2","functionConfig","_buildVisObject2","baseObject","propertyConfig","static","advancedConfig","neo4jNode","labelConfig","raw","relationshipConfig","migrateFromOldConfig","oldNeoVisConfig","container_id","initial_cypher","console_debug","server_database","server_url","server_user","server_password","hierarchical_sort_method","_Object$entries","newLabelsConfig","oldLabelConfig","caption","community","sizeCypher","title_properties","oldRelationshipsConfig","thickness"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/types.d.ts b/dist/types.d.ts index 9a1248f..ed91abf 100644 --- a/dist/types.d.ts +++ b/dist/types.d.ts @@ -110,6 +110,11 @@ export interface BaseNeovisConfig { * @default false */ consoleDebug?: boolean; + /** + * Should group be the label + * @default true + */ + groupAsLabel?: boolean; /** * Tells Neovis is the config is flat or not * @default false diff --git a/docs/assets/search.js b/docs/assets/search.js index 789f7d7..b32c765 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = JSON.parse("{\"rows\":[{\"kind\":64,\"name\":\"objectToTitleHtml\",\"url\":\"functions/objectToTitleHtml.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"objectToTitleString\",\"url\":\"functions/objectToTitleString.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"migrateFromOldConfig\",\"url\":\"functions/migrateFromOldConfig.html\",\"classes\":\"\"},{\"kind\":128,\"name\":\"NeoVis\",\"url\":\"classes/NeoVis.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"NEOVIS_DEFAULT_CONFIG\",\"url\":\"classes/NeoVis.html#NEOVIS_DEFAULT_CONFIG\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":1024,\"name\":\"NEOVIS_ADVANCED_CONFIG\",\"url\":\"classes/NeoVis.html#NEOVIS_ADVANCED_CONFIG\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":1024,\"name\":\"objectToTitleHtml\",\"url\":\"classes/NeoVis.html#objectToTitleHtml\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"classes/NeoVis.html#objectToTitleHtml.__type\",\"classes\":\"\",\"parent\":\"NeoVis.objectToTitleHtml\"},{\"kind\":1024,\"name\":\"objectToTitleString\",\"url\":\"classes/NeoVis.html#objectToTitleString\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"classes/NeoVis.html#objectToTitleString.__type-2\",\"classes\":\"\",\"parent\":\"NeoVis.objectToTitleString\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/NeoVis.html#constructor\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":262144,\"name\":\"nodes\",\"url\":\"classes/NeoVis.html#nodes\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":262144,\"name\":\"edges\",\"url\":\"classes/NeoVis.html#edges\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":262144,\"name\":\"network\",\"url\":\"classes/NeoVis.html#network\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":2048,\"name\":\"render\",\"url\":\"classes/NeoVis.html#render\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":2048,\"name\":\"clearNetwork\",\"url\":\"classes/NeoVis.html#clearNetwork\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":2048,\"name\":\"registerOnEvent\",\"url\":\"classes/NeoVis.html#registerOnEvent\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":2048,\"name\":\"reinit\",\"url\":\"classes/NeoVis.html#reinit\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":2048,\"name\":\"reload\",\"url\":\"classes/NeoVis.html#reload\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":2048,\"name\":\"stabilize\",\"url\":\"classes/NeoVis.html#stabilize\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":2048,\"name\":\"renderWithCypher\",\"url\":\"classes/NeoVis.html#renderWithCypher\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":2048,\"name\":\"updateWithCypher\",\"url\":\"classes/NeoVis.html#updateWithCypher\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":256,\"name\":\"OldLabelConfig\",\"url\":\"interfaces/OldLabelConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"caption\",\"url\":\"interfaces/OldLabelConfig.html#caption\",\"classes\":\"\",\"parent\":\"OldLabelConfig\"},{\"kind\":1024,\"name\":\"size\",\"url\":\"interfaces/OldLabelConfig.html#size\",\"classes\":\"\",\"parent\":\"OldLabelConfig\"},{\"kind\":1024,\"name\":\"community\",\"url\":\"interfaces/OldLabelConfig.html#community\",\"classes\":\"\",\"parent\":\"OldLabelConfig\"},{\"kind\":1024,\"name\":\"sizeCypher\",\"url\":\"interfaces/OldLabelConfig.html#sizeCypher\",\"classes\":\"\",\"parent\":\"OldLabelConfig\"},{\"kind\":1024,\"name\":\"image\",\"url\":\"interfaces/OldLabelConfig.html#image\",\"classes\":\"\",\"parent\":\"OldLabelConfig\"},{\"kind\":1024,\"name\":\"font\",\"url\":\"interfaces/OldLabelConfig.html#font\",\"classes\":\"\",\"parent\":\"OldLabelConfig\"},{\"kind\":1024,\"name\":\"title_properties\",\"url\":\"interfaces/OldLabelConfig.html#title_properties\",\"classes\":\"\",\"parent\":\"OldLabelConfig\"},{\"kind\":256,\"name\":\"OldRelationshipConfig\",\"url\":\"interfaces/OldRelationshipConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"thickness\",\"url\":\"interfaces/OldRelationshipConfig.html#thickness\",\"classes\":\"\",\"parent\":\"OldRelationshipConfig\"},{\"kind\":1024,\"name\":\"caption\",\"url\":\"interfaces/OldRelationshipConfig.html#caption\",\"classes\":\"\",\"parent\":\"OldRelationshipConfig\"},{\"kind\":256,\"name\":\"OldNeoVisConfig\",\"url\":\"interfaces/OldNeoVisConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"container_id\",\"url\":\"interfaces/OldNeoVisConfig.html#container_id\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"server_url\",\"url\":\"interfaces/OldNeoVisConfig.html#server_url\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"server_user\",\"url\":\"interfaces/OldNeoVisConfig.html#server_user\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"server_password\",\"url\":\"interfaces/OldNeoVisConfig.html#server_password\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"server_database\",\"url\":\"interfaces/OldNeoVisConfig.html#server_database\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"labels\",\"url\":\"interfaces/OldNeoVisConfig.html#labels\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/OldNeoVisConfig.html#labels.__type\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig.labels\"},{\"kind\":1024,\"name\":\"[NEOVIS_DEFAULT_CONFIG]\",\"url\":\"interfaces/OldNeoVisConfig.html#labels.__type._NEOVIS_DEFAULT_CONFIG_\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig.labels.__type\"},{\"kind\":1024,\"name\":\"relationships\",\"url\":\"interfaces/OldNeoVisConfig.html#relationships\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/OldNeoVisConfig.html#relationships.__type-1\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig.relationships\"},{\"kind\":1024,\"name\":\"[NEOVIS_DEFAULT_CONFIG]\",\"url\":\"interfaces/OldNeoVisConfig.html#relationships.__type-1._NEOVIS_DEFAULT_CONFIG_-1\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig.relationships.__type\"},{\"kind\":1024,\"name\":\"arrows\",\"url\":\"interfaces/OldNeoVisConfig.html#arrows\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"hierarchical\",\"url\":\"interfaces/OldNeoVisConfig.html#hierarchical\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"hierarchical_sort_method\",\"url\":\"interfaces/OldNeoVisConfig.html#hierarchical_sort_method\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"initial_cypher\",\"url\":\"interfaces/OldNeoVisConfig.html#initial_cypher\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"console_debug\",\"url\":\"interfaces/OldNeoVisConfig.html#console_debug\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"encrypted\",\"url\":\"interfaces/OldNeoVisConfig.html#encrypted\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"trust\",\"url\":\"interfaces/OldNeoVisConfig.html#trust\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":8388608,\"name\":\"default\",\"url\":\"modules.html#default\",\"classes\":\"\"},{\"kind\":8,\"name\":\"NeoVisEvents\",\"url\":\"enums/NeoVisEvents.html\",\"classes\":\"\"},{\"kind\":16,\"name\":\"CompletionEvent\",\"url\":\"enums/NeoVisEvents.html#CompletionEvent\",\"classes\":\"\",\"parent\":\"NeoVisEvents\"},{\"kind\":16,\"name\":\"ClickNodeEvent\",\"url\":\"enums/NeoVisEvents.html#ClickNodeEvent\",\"classes\":\"\",\"parent\":\"NeoVisEvents\"},{\"kind\":16,\"name\":\"ClickEdgeEvent\",\"url\":\"enums/NeoVisEvents.html#ClickEdgeEvent\",\"classes\":\"\",\"parent\":\"NeoVisEvents\"},{\"kind\":16,\"name\":\"ErrorEvent\",\"url\":\"enums/NeoVisEvents.html#ErrorEvent\",\"classes\":\"\",\"parent\":\"NeoVisEvents\"},{\"kind\":256,\"name\":\"EventFunctionTypes\",\"url\":\"interfaces/EventFunctionTypes.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"completed\",\"url\":\"interfaces/EventFunctionTypes.html#completed\",\"classes\":\"\",\"parent\":\"EventFunctionTypes\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/EventFunctionTypes.html#completed.__type-4\",\"classes\":\"\",\"parent\":\"EventFunctionTypes.completed\"},{\"kind\":1024,\"name\":\"clickNode\",\"url\":\"interfaces/EventFunctionTypes.html#clickNode\",\"classes\":\"\",\"parent\":\"EventFunctionTypes\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/EventFunctionTypes.html#clickNode.__type-2\",\"classes\":\"\",\"parent\":\"EventFunctionTypes.clickNode\"},{\"kind\":1024,\"name\":\"clickEdge\",\"url\":\"interfaces/EventFunctionTypes.html#clickEdge\",\"classes\":\"\",\"parent\":\"EventFunctionTypes\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/EventFunctionTypes.html#clickEdge.__type\",\"classes\":\"\",\"parent\":\"EventFunctionTypes.clickEdge\"},{\"kind\":1024,\"name\":\"error\",\"url\":\"interfaces/EventFunctionTypes.html#error\",\"classes\":\"\",\"parent\":\"EventFunctionTypes\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/EventFunctionTypes.html#error.__type-6\",\"classes\":\"\",\"parent\":\"EventFunctionTypes.error\"},{\"kind\":128,\"name\":\"EventController\",\"url\":\"classes/EventController.html\",\"classes\":\"\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/EventController.html#constructor\",\"classes\":\"\",\"parent\":\"EventController\"},{\"kind\":2048,\"name\":\"register\",\"url\":\"classes/EventController.html#register\",\"classes\":\"\",\"parent\":\"EventController\"},{\"kind\":2048,\"name\":\"generateEvent\",\"url\":\"classes/EventController.html#generateEvent\",\"classes\":\"\",\"parent\":\"EventController\"},{\"kind\":32,\"name\":\"NEOVIS_DEFAULT_CONFIG\",\"url\":\"variables/NEOVIS_DEFAULT_CONFIG.html\",\"classes\":\"\"},{\"kind\":32,\"name\":\"NEOVIS_ADVANCED_CONFIG\",\"url\":\"variables/NEOVIS_ADVANCED_CONFIG.html\",\"classes\":\"\"},{\"kind\":4194304,\"name\":\"NumberOrInteger\",\"url\":\"types/NumberOrInteger.html\",\"classes\":\"\"},{\"kind\":4194304,\"name\":\"RecursiveMapToDist\",\"url\":\"types/RecursiveMapToDist.html\",\"classes\":\"\"},{\"kind\":4194304,\"name\":\"RecursiveMapTo\",\"url\":\"types/RecursiveMapTo.html\",\"classes\":\"\"},{\"kind\":4194304,\"name\":\"RecursiveMapToFunctionDist\",\"url\":\"types/RecursiveMapToFunctionDist.html\",\"classes\":\"\"},{\"kind\":4194304,\"name\":\"RecursiveMapToFunction\",\"url\":\"types/RecursiveMapToFunction.html\",\"classes\":\"\"},{\"kind\":4194304,\"name\":\"Cypher\",\"url\":\"types/Cypher.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"NeoVisAdvanceConfig\",\"url\":\"interfaces/NeoVisAdvanceConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"static\",\"url\":\"interfaces/NeoVisAdvanceConfig.html#static\",\"classes\":\"\",\"parent\":\"NeoVisAdvanceConfig\"},{\"kind\":1024,\"name\":\"cypher\",\"url\":\"interfaces/NeoVisAdvanceConfig.html#cypher\",\"classes\":\"\",\"parent\":\"NeoVisAdvanceConfig\"},{\"kind\":1024,\"name\":\"function\",\"url\":\"interfaces/NeoVisAdvanceConfig.html#function\",\"classes\":\"\",\"parent\":\"NeoVisAdvanceConfig\"},{\"kind\":256,\"name\":\"NonFlatNeoVisAdvanceConfig\",\"url\":\"interfaces/NonFlatNeoVisAdvanceConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"property\",\"url\":\"interfaces/NonFlatNeoVisAdvanceConfig.html#property\",\"classes\":\"\",\"parent\":\"NonFlatNeoVisAdvanceConfig\"},{\"kind\":1024,\"name\":\"static\",\"url\":\"interfaces/NonFlatNeoVisAdvanceConfig.html#static\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeoVisAdvanceConfig\"},{\"kind\":1024,\"name\":\"cypher\",\"url\":\"interfaces/NonFlatNeoVisAdvanceConfig.html#cypher\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeoVisAdvanceConfig\"},{\"kind\":1024,\"name\":\"function\",\"url\":\"interfaces/NonFlatNeoVisAdvanceConfig.html#function\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeoVisAdvanceConfig\"},{\"kind\":4194304,\"name\":\"NeovisDataConfig\",\"url\":\"types/NeovisDataConfig.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"LabelConfig\",\"url\":\"interfaces/LabelConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"[NEOVIS_ADVANCED_CONFIG]\",\"url\":\"interfaces/LabelConfig.html#_NEOVIS_ADVANCED_CONFIG_\",\"classes\":\"\",\"parent\":\"LabelConfig\"},{\"kind\":256,\"name\":\"RelationshipConfig\",\"url\":\"interfaces/RelationshipConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"[NEOVIS_ADVANCED_CONFIG]\",\"url\":\"interfaces/RelationshipConfig.html#_NEOVIS_ADVANCED_CONFIG_\",\"classes\":\"\",\"parent\":\"RelationshipConfig\"},{\"kind\":256,\"name\":\"Neo4jConfig\",\"url\":\"interfaces/Neo4jConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"serverUrl\",\"url\":\"interfaces/Neo4jConfig.html#serverUrl\",\"classes\":\"\",\"parent\":\"Neo4jConfig\"},{\"kind\":1024,\"name\":\"serverUser\",\"url\":\"interfaces/Neo4jConfig.html#serverUser\",\"classes\":\"\",\"parent\":\"Neo4jConfig\"},{\"kind\":1024,\"name\":\"serverPassword\",\"url\":\"interfaces/Neo4jConfig.html#serverPassword\",\"classes\":\"\",\"parent\":\"Neo4jConfig\"},{\"kind\":1024,\"name\":\"driverConfig\",\"url\":\"interfaces/Neo4jConfig.html#driverConfig\",\"classes\":\"\",\"parent\":\"Neo4jConfig\"},{\"kind\":256,\"name\":\"BaseNeovisConfig\",\"url\":\"interfaces/BaseNeovisConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"containerId\",\"url\":\"interfaces/BaseNeovisConfig.html#containerId\",\"classes\":\"\",\"parent\":\"BaseNeovisConfig\"},{\"kind\":1024,\"name\":\"serverDatabase\",\"url\":\"interfaces/BaseNeovisConfig.html#serverDatabase\",\"classes\":\"\",\"parent\":\"BaseNeovisConfig\"},{\"kind\":1024,\"name\":\"neo4j\",\"url\":\"interfaces/BaseNeovisConfig.html#neo4j\",\"classes\":\"\",\"parent\":\"BaseNeovisConfig\"},{\"kind\":1024,\"name\":\"visConfig\",\"url\":\"interfaces/BaseNeovisConfig.html#visConfig\",\"classes\":\"\",\"parent\":\"BaseNeovisConfig\"},{\"kind\":1024,\"name\":\"initialCypher\",\"url\":\"interfaces/BaseNeovisConfig.html#initialCypher\",\"classes\":\"\",\"parent\":\"BaseNeovisConfig\"},{\"kind\":1024,\"name\":\"consoleDebug\",\"url\":\"interfaces/BaseNeovisConfig.html#consoleDebug\",\"classes\":\"\",\"parent\":\"BaseNeovisConfig\"},{\"kind\":1024,\"name\":\"nonFlat\",\"url\":\"interfaces/BaseNeovisConfig.html#nonFlat\",\"classes\":\"\",\"parent\":\"BaseNeovisConfig\"},{\"kind\":256,\"name\":\"NeovisConfig\",\"url\":\"interfaces/NeovisConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"nonFlat\",\"url\":\"interfaces/NeovisConfig.html#nonFlat\",\"classes\":\"\",\"parent\":\"NeovisConfig\"},{\"kind\":1024,\"name\":\"labels\",\"url\":\"interfaces/NeovisConfig.html#labels\",\"classes\":\"\",\"parent\":\"NeovisConfig\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/NeovisConfig.html#labels.__type\",\"classes\":\"\",\"parent\":\"NeovisConfig.labels\"},{\"kind\":1024,\"name\":\"[NEOVIS_DEFAULT_CONFIG]\",\"url\":\"interfaces/NeovisConfig.html#labels.__type._NEOVIS_DEFAULT_CONFIG_\",\"classes\":\"\",\"parent\":\"NeovisConfig.labels.__type\"},{\"kind\":1024,\"name\":\"relationships\",\"url\":\"interfaces/NeovisConfig.html#relationships\",\"classes\":\"\",\"parent\":\"NeovisConfig\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/NeovisConfig.html#relationships.__type-1\",\"classes\":\"\",\"parent\":\"NeovisConfig.relationships\"},{\"kind\":1024,\"name\":\"[NEOVIS_DEFAULT_CONFIG]\",\"url\":\"interfaces/NeovisConfig.html#relationships.__type-1._NEOVIS_DEFAULT_CONFIG_-1\",\"classes\":\"\",\"parent\":\"NeovisConfig.relationships.__type\"},{\"kind\":1024,\"name\":\"containerId\",\"url\":\"interfaces/NeovisConfig.html#containerId\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NeovisConfig\"},{\"kind\":1024,\"name\":\"serverDatabase\",\"url\":\"interfaces/NeovisConfig.html#serverDatabase\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NeovisConfig\"},{\"kind\":1024,\"name\":\"neo4j\",\"url\":\"interfaces/NeovisConfig.html#neo4j\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NeovisConfig\"},{\"kind\":1024,\"name\":\"visConfig\",\"url\":\"interfaces/NeovisConfig.html#visConfig\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NeovisConfig\"},{\"kind\":1024,\"name\":\"initialCypher\",\"url\":\"interfaces/NeovisConfig.html#initialCypher\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NeovisConfig\"},{\"kind\":1024,\"name\":\"consoleDebug\",\"url\":\"interfaces/NeovisConfig.html#consoleDebug\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NeovisConfig\"},{\"kind\":4194304,\"name\":\"NonFlatLabelConfig\",\"url\":\"types/NonFlatLabelConfig.html\",\"classes\":\"\"},{\"kind\":4194304,\"name\":\"NonFlatRelationsipConfig\",\"url\":\"types/NonFlatRelationsipConfig.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"NonFlatNeovisConfig\",\"url\":\"interfaces/NonFlatNeovisConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"nonFlat\",\"url\":\"interfaces/NonFlatNeovisConfig.html#nonFlat\",\"classes\":\"\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"defaultLabelConfig\",\"url\":\"interfaces/NonFlatNeovisConfig.html#defaultLabelConfig\",\"classes\":\"\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"defaultRelationshipsConfig\",\"url\":\"interfaces/NonFlatNeovisConfig.html#defaultRelationshipsConfig\",\"classes\":\"\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"labels\",\"url\":\"interfaces/NonFlatNeovisConfig.html#labels\",\"classes\":\"\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"relationships\",\"url\":\"interfaces/NonFlatNeovisConfig.html#relationships\",\"classes\":\"\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"containerId\",\"url\":\"interfaces/NonFlatNeovisConfig.html#containerId\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"serverDatabase\",\"url\":\"interfaces/NonFlatNeovisConfig.html#serverDatabase\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"neo4j\",\"url\":\"interfaces/NonFlatNeovisConfig.html#neo4j\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"visConfig\",\"url\":\"interfaces/NonFlatNeovisConfig.html#visConfig\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"initialCypher\",\"url\":\"interfaces/NonFlatNeovisConfig.html#initialCypher\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"consoleDebug\",\"url\":\"interfaces/NonFlatNeovisConfig.html#consoleDebug\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":256,\"name\":\"Node\",\"url\":\"interfaces/Node.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/Node.html#id\",\"classes\":\"\",\"parent\":\"Node\"},{\"kind\":1024,\"name\":\"raw\",\"url\":\"interfaces/Node.html#raw\",\"classes\":\"\",\"parent\":\"Node\"},{\"kind\":256,\"name\":\"Edge\",\"url\":\"interfaces/Edge.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/Edge.html#id\",\"classes\":\"\",\"parent\":\"Edge\"},{\"kind\":1024,\"name\":\"raw\",\"url\":\"interfaces/Edge.html#raw\",\"classes\":\"\",\"parent\":\"Edge\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"comment\"],\"fieldVectors\":[[\"name/0\",[0,40.325]],[\"comment/0\",[]],[\"name/1\",[1,40.325]],[\"comment/1\",[]],[\"name/2\",[2,45.433]],[\"comment/2\",[]],[\"name/3\",[3,45.433]],[\"comment/3\",[]],[\"name/4\",[4,30.77]],[\"comment/4\",[]],[\"name/5\",[5,34.447]],[\"comment/5\",[]],[\"name/6\",[0,40.325]],[\"comment/6\",[]],[\"name/7\",[6,25.974]],[\"comment/7\",[]],[\"name/8\",[1,40.325]],[\"comment/8\",[]],[\"name/9\",[6,25.974]],[\"comment/9\",[]],[\"name/10\",[7,40.325]],[\"comment/10\",[]],[\"name/11\",[8,45.433]],[\"comment/11\",[]],[\"name/12\",[9,45.433]],[\"comment/12\",[]],[\"name/13\",[10,45.433]],[\"comment/13\",[]],[\"name/14\",[11,45.433]],[\"comment/14\",[]],[\"name/15\",[12,45.433]],[\"comment/15\",[]],[\"name/16\",[13,45.433]],[\"comment/16\",[]],[\"name/17\",[14,45.433]],[\"comment/17\",[]],[\"name/18\",[15,45.433]],[\"comment/18\",[]],[\"name/19\",[16,45.433]],[\"comment/19\",[]],[\"name/20\",[17,45.433]],[\"comment/20\",[]],[\"name/21\",[18,45.433]],[\"comment/21\",[]],[\"name/22\",[19,45.433]],[\"comment/22\",[]],[\"name/23\",[20,40.325]],[\"comment/23\",[]],[\"name/24\",[21,45.433]],[\"comment/24\",[]],[\"name/25\",[22,45.433]],[\"comment/25\",[]],[\"name/26\",[23,45.433]],[\"comment/26\",[]],[\"name/27\",[24,45.433]],[\"comment/27\",[]],[\"name/28\",[25,45.433]],[\"comment/28\",[]],[\"name/29\",[26,45.433]],[\"comment/29\",[]],[\"name/30\",[27,45.433]],[\"comment/30\",[]],[\"name/31\",[28,45.433]],[\"comment/31\",[]],[\"name/32\",[20,40.325]],[\"comment/32\",[]],[\"name/33\",[29,45.433]],[\"comment/33\",[]],[\"name/34\",[30,45.433]],[\"comment/34\",[]],[\"name/35\",[31,45.433]],[\"comment/35\",[]],[\"name/36\",[32,45.433]],[\"comment/36\",[]],[\"name/37\",[33,45.433]],[\"comment/37\",[]],[\"name/38\",[34,45.433]],[\"comment/38\",[]],[\"name/39\",[35,36.96]],[\"comment/39\",[]],[\"name/40\",[6,25.974]],[\"comment/40\",[]],[\"name/41\",[4,30.77]],[\"comment/41\",[]],[\"name/42\",[36,36.96]],[\"comment/42\",[]],[\"name/43\",[6,25.974]],[\"comment/43\",[]],[\"name/44\",[4,30.77]],[\"comment/44\",[]],[\"name/45\",[37,45.433]],[\"comment/45\",[]],[\"name/46\",[38,45.433]],[\"comment/46\",[]],[\"name/47\",[39,45.433]],[\"comment/47\",[]],[\"name/48\",[40,45.433]],[\"comment/48\",[]],[\"name/49\",[41,45.433]],[\"comment/49\",[]],[\"name/50\",[42,45.433]],[\"comment/50\",[]],[\"name/51\",[43,45.433]],[\"comment/51\",[]],[\"name/52\",[44,45.433]],[\"comment/52\",[]],[\"name/53\",[45,45.433]],[\"comment/53\",[]],[\"name/54\",[46,45.433]],[\"comment/54\",[]],[\"name/55\",[47,45.433]],[\"comment/55\",[]],[\"name/56\",[48,45.433]],[\"comment/56\",[]],[\"name/57\",[49,45.433]],[\"comment/57\",[]],[\"name/58\",[50,45.433]],[\"comment/58\",[]],[\"name/59\",[51,45.433]],[\"comment/59\",[]],[\"name/60\",[6,25.974]],[\"comment/60\",[]],[\"name/61\",[52,45.433]],[\"comment/61\",[]],[\"name/62\",[6,25.974]],[\"comment/62\",[]],[\"name/63\",[53,45.433]],[\"comment/63\",[]],[\"name/64\",[6,25.974]],[\"comment/64\",[]],[\"name/65\",[54,45.433]],[\"comment/65\",[]],[\"name/66\",[6,25.974]],[\"comment/66\",[]],[\"name/67\",[55,45.433]],[\"comment/67\",[]],[\"name/68\",[7,40.325]],[\"comment/68\",[]],[\"name/69\",[56,45.433]],[\"comment/69\",[]],[\"name/70\",[57,45.433]],[\"comment/70\",[]],[\"name/71\",[4,30.77]],[\"comment/71\",[]],[\"name/72\",[5,34.447]],[\"comment/72\",[]],[\"name/73\",[58,45.433]],[\"comment/73\",[]],[\"name/74\",[59,45.433]],[\"comment/74\",[]],[\"name/75\",[60,45.433]],[\"comment/75\",[]],[\"name/76\",[61,45.433]],[\"comment/76\",[]],[\"name/77\",[62,45.433]],[\"comment/77\",[]],[\"name/78\",[63,36.96]],[\"comment/78\",[]],[\"name/79\",[64,45.433]],[\"comment/79\",[]],[\"name/80\",[65,40.325]],[\"comment/80\",[]],[\"name/81\",[63,36.96]],[\"comment/81\",[]],[\"name/82\",[66,40.325]],[\"comment/82\",[]],[\"name/83\",[67,45.433]],[\"comment/83\",[]],[\"name/84\",[68,45.433]],[\"comment/84\",[]],[\"name/85\",[65,40.325]],[\"comment/85\",[]],[\"name/86\",[63,36.96]],[\"comment/86\",[]],[\"name/87\",[66,40.325]],[\"comment/87\",[]],[\"name/88\",[69,45.433]],[\"comment/88\",[]],[\"name/89\",[70,45.433]],[\"comment/89\",[]],[\"name/90\",[5,34.447]],[\"comment/90\",[]],[\"name/91\",[71,45.433]],[\"comment/91\",[]],[\"name/92\",[5,34.447]],[\"comment/92\",[]],[\"name/93\",[72,45.433]],[\"comment/93\",[]],[\"name/94\",[73,45.433]],[\"comment/94\",[]],[\"name/95\",[74,45.433]],[\"comment/95\",[]],[\"name/96\",[75,45.433]],[\"comment/96\",[]],[\"name/97\",[76,45.433]],[\"comment/97\",[]],[\"name/98\",[77,45.433]],[\"comment/98\",[]],[\"name/99\",[78,36.96]],[\"comment/99\",[]],[\"name/100\",[79,36.96]],[\"comment/100\",[]],[\"name/101\",[80,36.96]],[\"comment/101\",[]],[\"name/102\",[81,36.96]],[\"comment/102\",[]],[\"name/103\",[82,36.96]],[\"comment/103\",[]],[\"name/104\",[83,36.96]],[\"comment/104\",[]],[\"name/105\",[84,36.96]],[\"comment/105\",[]],[\"name/106\",[85,45.433]],[\"comment/106\",[]],[\"name/107\",[84,36.96]],[\"comment/107\",[]],[\"name/108\",[35,36.96]],[\"comment/108\",[]],[\"name/109\",[6,25.974]],[\"comment/109\",[]],[\"name/110\",[4,30.77]],[\"comment/110\",[]],[\"name/111\",[36,36.96]],[\"comment/111\",[]],[\"name/112\",[6,25.974]],[\"comment/112\",[]],[\"name/113\",[4,30.77]],[\"comment/113\",[]],[\"name/114\",[78,36.96]],[\"comment/114\",[]],[\"name/115\",[79,36.96]],[\"comment/115\",[]],[\"name/116\",[80,36.96]],[\"comment/116\",[]],[\"name/117\",[81,36.96]],[\"comment/117\",[]],[\"name/118\",[82,36.96]],[\"comment/118\",[]],[\"name/119\",[83,36.96]],[\"comment/119\",[]],[\"name/120\",[86,45.433]],[\"comment/120\",[]],[\"name/121\",[87,45.433]],[\"comment/121\",[]],[\"name/122\",[88,45.433]],[\"comment/122\",[]],[\"name/123\",[84,36.96]],[\"comment/123\",[]],[\"name/124\",[89,45.433]],[\"comment/124\",[]],[\"name/125\",[90,45.433]],[\"comment/125\",[]],[\"name/126\",[35,36.96]],[\"comment/126\",[]],[\"name/127\",[36,36.96]],[\"comment/127\",[]],[\"name/128\",[78,36.96]],[\"comment/128\",[]],[\"name/129\",[79,36.96]],[\"comment/129\",[]],[\"name/130\",[80,36.96]],[\"comment/130\",[]],[\"name/131\",[81,36.96]],[\"comment/131\",[]],[\"name/132\",[82,36.96]],[\"comment/132\",[]],[\"name/133\",[83,36.96]],[\"comment/133\",[]],[\"name/134\",[91,45.433]],[\"comment/134\",[]],[\"name/135\",[92,40.325]],[\"comment/135\",[]],[\"name/136\",[93,40.325]],[\"comment/136\",[]],[\"name/137\",[94,45.433]],[\"comment/137\",[]],[\"name/138\",[92,40.325]],[\"comment/138\",[]],[\"name/139\",[93,40.325]],[\"comment/139\",[]]],\"invertedIndex\":[[\"__type\",{\"_index\":6,\"name\":{\"7\":{},\"9\":{},\"40\":{},\"43\":{},\"60\":{},\"62\":{},\"64\":{},\"66\":{},\"109\":{},\"112\":{}},\"comment\":{}}],[\"arrows\",{\"_index\":37,\"name\":{\"45\":{}},\"comment\":{}}],[\"baseneovisconfig\",{\"_index\":77,\"name\":{\"98\":{}},\"comment\":{}}],[\"caption\",{\"_index\":20,\"name\":{\"23\":{},\"32\":{}},\"comment\":{}}],[\"clearnetwork\",{\"_index\":12,\"name\":{\"15\":{}},\"comment\":{}}],[\"clickedge\",{\"_index\":53,\"name\":{\"63\":{}},\"comment\":{}}],[\"clickedgeevent\",{\"_index\":48,\"name\":{\"56\":{}},\"comment\":{}}],[\"clicknode\",{\"_index\":52,\"name\":{\"61\":{}},\"comment\":{}}],[\"clicknodeevent\",{\"_index\":47,\"name\":{\"55\":{}},\"comment\":{}}],[\"community\",{\"_index\":22,\"name\":{\"25\":{}},\"comment\":{}}],[\"completed\",{\"_index\":51,\"name\":{\"59\":{}},\"comment\":{}}],[\"completionevent\",{\"_index\":46,\"name\":{\"54\":{}},\"comment\":{}}],[\"console_debug\",{\"_index\":41,\"name\":{\"49\":{}},\"comment\":{}}],[\"consoledebug\",{\"_index\":83,\"name\":{\"104\":{},\"119\":{},\"133\":{}},\"comment\":{}}],[\"constructor\",{\"_index\":7,\"name\":{\"10\":{},\"68\":{}},\"comment\":{}}],[\"container_id\",{\"_index\":30,\"name\":{\"34\":{}},\"comment\":{}}],[\"containerid\",{\"_index\":78,\"name\":{\"99\":{},\"114\":{},\"128\":{}},\"comment\":{}}],[\"cypher\",{\"_index\":63,\"name\":{\"78\":{},\"81\":{},\"86\":{}},\"comment\":{}}],[\"default\",{\"_index\":44,\"name\":{\"52\":{}},\"comment\":{}}],[\"defaultlabelconfig\",{\"_index\":89,\"name\":{\"124\":{}},\"comment\":{}}],[\"defaultrelationshipsconfig\",{\"_index\":90,\"name\":{\"125\":{}},\"comment\":{}}],[\"driverconfig\",{\"_index\":76,\"name\":{\"97\":{}},\"comment\":{}}],[\"edge\",{\"_index\":94,\"name\":{\"137\":{}},\"comment\":{}}],[\"edges\",{\"_index\":9,\"name\":{\"12\":{}},\"comment\":{}}],[\"encrypted\",{\"_index\":42,\"name\":{\"50\":{}},\"comment\":{}}],[\"error\",{\"_index\":54,\"name\":{\"65\":{}},\"comment\":{}}],[\"errorevent\",{\"_index\":49,\"name\":{\"57\":{}},\"comment\":{}}],[\"eventcontroller\",{\"_index\":55,\"name\":{\"67\":{}},\"comment\":{}}],[\"eventfunctiontypes\",{\"_index\":50,\"name\":{\"58\":{}},\"comment\":{}}],[\"font\",{\"_index\":25,\"name\":{\"28\":{}},\"comment\":{}}],[\"function\",{\"_index\":66,\"name\":{\"82\":{},\"87\":{}},\"comment\":{}}],[\"generateevent\",{\"_index\":57,\"name\":{\"70\":{}},\"comment\":{}}],[\"hierarchical\",{\"_index\":38,\"name\":{\"46\":{}},\"comment\":{}}],[\"hierarchical_sort_method\",{\"_index\":39,\"name\":{\"47\":{}},\"comment\":{}}],[\"id\",{\"_index\":92,\"name\":{\"135\":{},\"138\":{}},\"comment\":{}}],[\"image\",{\"_index\":24,\"name\":{\"27\":{}},\"comment\":{}}],[\"initial_cypher\",{\"_index\":40,\"name\":{\"48\":{}},\"comment\":{}}],[\"initialcypher\",{\"_index\":82,\"name\":{\"103\":{},\"118\":{},\"132\":{}},\"comment\":{}}],[\"labelconfig\",{\"_index\":70,\"name\":{\"89\":{}},\"comment\":{}}],[\"labels\",{\"_index\":35,\"name\":{\"39\":{},\"108\":{},\"126\":{}},\"comment\":{}}],[\"migratefromoldconfig\",{\"_index\":2,\"name\":{\"2\":{}},\"comment\":{}}],[\"neo4j\",{\"_index\":80,\"name\":{\"101\":{},\"116\":{},\"130\":{}},\"comment\":{}}],[\"neo4jconfig\",{\"_index\":72,\"name\":{\"93\":{}},\"comment\":{}}],[\"neovis\",{\"_index\":3,\"name\":{\"3\":{}},\"comment\":{}}],[\"neovis_advanced_config\",{\"_index\":5,\"name\":{\"5\":{},\"72\":{},\"90\":{},\"92\":{}},\"comment\":{}}],[\"neovis_default_config\",{\"_index\":4,\"name\":{\"4\":{},\"41\":{},\"44\":{},\"71\":{},\"110\":{},\"113\":{}},\"comment\":{}}],[\"neovisadvanceconfig\",{\"_index\":64,\"name\":{\"79\":{}},\"comment\":{}}],[\"neovisconfig\",{\"_index\":85,\"name\":{\"106\":{}},\"comment\":{}}],[\"neovisdataconfig\",{\"_index\":69,\"name\":{\"88\":{}},\"comment\":{}}],[\"neovisevents\",{\"_index\":45,\"name\":{\"53\":{}},\"comment\":{}}],[\"network\",{\"_index\":10,\"name\":{\"13\":{}},\"comment\":{}}],[\"node\",{\"_index\":91,\"name\":{\"134\":{}},\"comment\":{}}],[\"nodes\",{\"_index\":8,\"name\":{\"11\":{}},\"comment\":{}}],[\"nonflat\",{\"_index\":84,\"name\":{\"105\":{},\"107\":{},\"123\":{}},\"comment\":{}}],[\"nonflatlabelconfig\",{\"_index\":86,\"name\":{\"120\":{}},\"comment\":{}}],[\"nonflatneovisadvanceconfig\",{\"_index\":67,\"name\":{\"83\":{}},\"comment\":{}}],[\"nonflatneovisconfig\",{\"_index\":88,\"name\":{\"122\":{}},\"comment\":{}}],[\"nonflatrelationsipconfig\",{\"_index\":87,\"name\":{\"121\":{}},\"comment\":{}}],[\"numberorinteger\",{\"_index\":58,\"name\":{\"73\":{}},\"comment\":{}}],[\"objecttotitlehtml\",{\"_index\":0,\"name\":{\"0\":{},\"6\":{}},\"comment\":{}}],[\"objecttotitlestring\",{\"_index\":1,\"name\":{\"1\":{},\"8\":{}},\"comment\":{}}],[\"oldlabelconfig\",{\"_index\":19,\"name\":{\"22\":{}},\"comment\":{}}],[\"oldneovisconfig\",{\"_index\":29,\"name\":{\"33\":{}},\"comment\":{}}],[\"oldrelationshipconfig\",{\"_index\":27,\"name\":{\"30\":{}},\"comment\":{}}],[\"property\",{\"_index\":68,\"name\":{\"84\":{}},\"comment\":{}}],[\"raw\",{\"_index\":93,\"name\":{\"136\":{},\"139\":{}},\"comment\":{}}],[\"recursivemapto\",{\"_index\":60,\"name\":{\"75\":{}},\"comment\":{}}],[\"recursivemaptodist\",{\"_index\":59,\"name\":{\"74\":{}},\"comment\":{}}],[\"recursivemaptofunction\",{\"_index\":62,\"name\":{\"77\":{}},\"comment\":{}}],[\"recursivemaptofunctiondist\",{\"_index\":61,\"name\":{\"76\":{}},\"comment\":{}}],[\"register\",{\"_index\":56,\"name\":{\"69\":{}},\"comment\":{}}],[\"registeronevent\",{\"_index\":13,\"name\":{\"16\":{}},\"comment\":{}}],[\"reinit\",{\"_index\":14,\"name\":{\"17\":{}},\"comment\":{}}],[\"relationshipconfig\",{\"_index\":71,\"name\":{\"91\":{}},\"comment\":{}}],[\"relationships\",{\"_index\":36,\"name\":{\"42\":{},\"111\":{},\"127\":{}},\"comment\":{}}],[\"reload\",{\"_index\":15,\"name\":{\"18\":{}},\"comment\":{}}],[\"render\",{\"_index\":11,\"name\":{\"14\":{}},\"comment\":{}}],[\"renderwithcypher\",{\"_index\":17,\"name\":{\"20\":{}},\"comment\":{}}],[\"server_database\",{\"_index\":34,\"name\":{\"38\":{}},\"comment\":{}}],[\"server_password\",{\"_index\":33,\"name\":{\"37\":{}},\"comment\":{}}],[\"server_url\",{\"_index\":31,\"name\":{\"35\":{}},\"comment\":{}}],[\"server_user\",{\"_index\":32,\"name\":{\"36\":{}},\"comment\":{}}],[\"serverdatabase\",{\"_index\":79,\"name\":{\"100\":{},\"115\":{},\"129\":{}},\"comment\":{}}],[\"serverpassword\",{\"_index\":75,\"name\":{\"96\":{}},\"comment\":{}}],[\"serverurl\",{\"_index\":73,\"name\":{\"94\":{}},\"comment\":{}}],[\"serveruser\",{\"_index\":74,\"name\":{\"95\":{}},\"comment\":{}}],[\"size\",{\"_index\":21,\"name\":{\"24\":{}},\"comment\":{}}],[\"sizecypher\",{\"_index\":23,\"name\":{\"26\":{}},\"comment\":{}}],[\"stabilize\",{\"_index\":16,\"name\":{\"19\":{}},\"comment\":{}}],[\"static\",{\"_index\":65,\"name\":{\"80\":{},\"85\":{}},\"comment\":{}}],[\"thickness\",{\"_index\":28,\"name\":{\"31\":{}},\"comment\":{}}],[\"title_properties\",{\"_index\":26,\"name\":{\"29\":{}},\"comment\":{}}],[\"trust\",{\"_index\":43,\"name\":{\"51\":{}},\"comment\":{}}],[\"updatewithcypher\",{\"_index\":18,\"name\":{\"21\":{}},\"comment\":{}}],[\"visconfig\",{\"_index\":81,\"name\":{\"102\":{},\"117\":{},\"131\":{}},\"comment\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file +window.searchData = JSON.parse("{\"rows\":[{\"kind\":64,\"name\":\"objectToTitleHtml\",\"url\":\"functions/objectToTitleHtml.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"objectToTitleString\",\"url\":\"functions/objectToTitleString.html\",\"classes\":\"\"},{\"kind\":64,\"name\":\"migrateFromOldConfig\",\"url\":\"functions/migrateFromOldConfig.html\",\"classes\":\"\"},{\"kind\":128,\"name\":\"NeoVis\",\"url\":\"classes/NeoVis.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"NEOVIS_DEFAULT_CONFIG\",\"url\":\"classes/NeoVis.html#NEOVIS_DEFAULT_CONFIG\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":1024,\"name\":\"NEOVIS_ADVANCED_CONFIG\",\"url\":\"classes/NeoVis.html#NEOVIS_ADVANCED_CONFIG\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":1024,\"name\":\"objectToTitleHtml\",\"url\":\"classes/NeoVis.html#objectToTitleHtml\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"classes/NeoVis.html#objectToTitleHtml.__type\",\"classes\":\"\",\"parent\":\"NeoVis.objectToTitleHtml\"},{\"kind\":1024,\"name\":\"objectToTitleString\",\"url\":\"classes/NeoVis.html#objectToTitleString\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"classes/NeoVis.html#objectToTitleString.__type-2\",\"classes\":\"\",\"parent\":\"NeoVis.objectToTitleString\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/NeoVis.html#constructor\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":262144,\"name\":\"nodes\",\"url\":\"classes/NeoVis.html#nodes\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":262144,\"name\":\"edges\",\"url\":\"classes/NeoVis.html#edges\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":262144,\"name\":\"network\",\"url\":\"classes/NeoVis.html#network\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":2048,\"name\":\"render\",\"url\":\"classes/NeoVis.html#render\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":2048,\"name\":\"clearNetwork\",\"url\":\"classes/NeoVis.html#clearNetwork\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":2048,\"name\":\"registerOnEvent\",\"url\":\"classes/NeoVis.html#registerOnEvent\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":2048,\"name\":\"reinit\",\"url\":\"classes/NeoVis.html#reinit\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":2048,\"name\":\"reload\",\"url\":\"classes/NeoVis.html#reload\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":2048,\"name\":\"stabilize\",\"url\":\"classes/NeoVis.html#stabilize\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":2048,\"name\":\"renderWithCypher\",\"url\":\"classes/NeoVis.html#renderWithCypher\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":2048,\"name\":\"updateWithCypher\",\"url\":\"classes/NeoVis.html#updateWithCypher\",\"classes\":\"\",\"parent\":\"NeoVis\"},{\"kind\":256,\"name\":\"OldLabelConfig\",\"url\":\"interfaces/OldLabelConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"caption\",\"url\":\"interfaces/OldLabelConfig.html#caption\",\"classes\":\"\",\"parent\":\"OldLabelConfig\"},{\"kind\":1024,\"name\":\"size\",\"url\":\"interfaces/OldLabelConfig.html#size\",\"classes\":\"\",\"parent\":\"OldLabelConfig\"},{\"kind\":1024,\"name\":\"community\",\"url\":\"interfaces/OldLabelConfig.html#community\",\"classes\":\"\",\"parent\":\"OldLabelConfig\"},{\"kind\":1024,\"name\":\"sizeCypher\",\"url\":\"interfaces/OldLabelConfig.html#sizeCypher\",\"classes\":\"\",\"parent\":\"OldLabelConfig\"},{\"kind\":1024,\"name\":\"image\",\"url\":\"interfaces/OldLabelConfig.html#image\",\"classes\":\"\",\"parent\":\"OldLabelConfig\"},{\"kind\":1024,\"name\":\"font\",\"url\":\"interfaces/OldLabelConfig.html#font\",\"classes\":\"\",\"parent\":\"OldLabelConfig\"},{\"kind\":1024,\"name\":\"title_properties\",\"url\":\"interfaces/OldLabelConfig.html#title_properties\",\"classes\":\"\",\"parent\":\"OldLabelConfig\"},{\"kind\":256,\"name\":\"OldRelationshipConfig\",\"url\":\"interfaces/OldRelationshipConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"thickness\",\"url\":\"interfaces/OldRelationshipConfig.html#thickness\",\"classes\":\"\",\"parent\":\"OldRelationshipConfig\"},{\"kind\":1024,\"name\":\"caption\",\"url\":\"interfaces/OldRelationshipConfig.html#caption\",\"classes\":\"\",\"parent\":\"OldRelationshipConfig\"},{\"kind\":256,\"name\":\"OldNeoVisConfig\",\"url\":\"interfaces/OldNeoVisConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"container_id\",\"url\":\"interfaces/OldNeoVisConfig.html#container_id\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"server_url\",\"url\":\"interfaces/OldNeoVisConfig.html#server_url\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"server_user\",\"url\":\"interfaces/OldNeoVisConfig.html#server_user\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"server_password\",\"url\":\"interfaces/OldNeoVisConfig.html#server_password\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"server_database\",\"url\":\"interfaces/OldNeoVisConfig.html#server_database\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"labels\",\"url\":\"interfaces/OldNeoVisConfig.html#labels\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/OldNeoVisConfig.html#labels.__type\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig.labels\"},{\"kind\":1024,\"name\":\"[NEOVIS_DEFAULT_CONFIG]\",\"url\":\"interfaces/OldNeoVisConfig.html#labels.__type._NEOVIS_DEFAULT_CONFIG_\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig.labels.__type\"},{\"kind\":1024,\"name\":\"relationships\",\"url\":\"interfaces/OldNeoVisConfig.html#relationships\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/OldNeoVisConfig.html#relationships.__type-1\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig.relationships\"},{\"kind\":1024,\"name\":\"[NEOVIS_DEFAULT_CONFIG]\",\"url\":\"interfaces/OldNeoVisConfig.html#relationships.__type-1._NEOVIS_DEFAULT_CONFIG_-1\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig.relationships.__type\"},{\"kind\":1024,\"name\":\"arrows\",\"url\":\"interfaces/OldNeoVisConfig.html#arrows\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"hierarchical\",\"url\":\"interfaces/OldNeoVisConfig.html#hierarchical\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"hierarchical_sort_method\",\"url\":\"interfaces/OldNeoVisConfig.html#hierarchical_sort_method\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"initial_cypher\",\"url\":\"interfaces/OldNeoVisConfig.html#initial_cypher\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"console_debug\",\"url\":\"interfaces/OldNeoVisConfig.html#console_debug\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"encrypted\",\"url\":\"interfaces/OldNeoVisConfig.html#encrypted\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":1024,\"name\":\"trust\",\"url\":\"interfaces/OldNeoVisConfig.html#trust\",\"classes\":\"\",\"parent\":\"OldNeoVisConfig\"},{\"kind\":8388608,\"name\":\"default\",\"url\":\"modules.html#default\",\"classes\":\"\"},{\"kind\":8,\"name\":\"NeoVisEvents\",\"url\":\"enums/NeoVisEvents.html\",\"classes\":\"\"},{\"kind\":16,\"name\":\"CompletionEvent\",\"url\":\"enums/NeoVisEvents.html#CompletionEvent\",\"classes\":\"\",\"parent\":\"NeoVisEvents\"},{\"kind\":16,\"name\":\"ClickNodeEvent\",\"url\":\"enums/NeoVisEvents.html#ClickNodeEvent\",\"classes\":\"\",\"parent\":\"NeoVisEvents\"},{\"kind\":16,\"name\":\"ClickEdgeEvent\",\"url\":\"enums/NeoVisEvents.html#ClickEdgeEvent\",\"classes\":\"\",\"parent\":\"NeoVisEvents\"},{\"kind\":16,\"name\":\"ErrorEvent\",\"url\":\"enums/NeoVisEvents.html#ErrorEvent\",\"classes\":\"\",\"parent\":\"NeoVisEvents\"},{\"kind\":256,\"name\":\"EventFunctionTypes\",\"url\":\"interfaces/EventFunctionTypes.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"completed\",\"url\":\"interfaces/EventFunctionTypes.html#completed\",\"classes\":\"\",\"parent\":\"EventFunctionTypes\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/EventFunctionTypes.html#completed.__type-4\",\"classes\":\"\",\"parent\":\"EventFunctionTypes.completed\"},{\"kind\":1024,\"name\":\"clickNode\",\"url\":\"interfaces/EventFunctionTypes.html#clickNode\",\"classes\":\"\",\"parent\":\"EventFunctionTypes\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/EventFunctionTypes.html#clickNode.__type-2\",\"classes\":\"\",\"parent\":\"EventFunctionTypes.clickNode\"},{\"kind\":1024,\"name\":\"clickEdge\",\"url\":\"interfaces/EventFunctionTypes.html#clickEdge\",\"classes\":\"\",\"parent\":\"EventFunctionTypes\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/EventFunctionTypes.html#clickEdge.__type\",\"classes\":\"\",\"parent\":\"EventFunctionTypes.clickEdge\"},{\"kind\":1024,\"name\":\"error\",\"url\":\"interfaces/EventFunctionTypes.html#error\",\"classes\":\"\",\"parent\":\"EventFunctionTypes\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/EventFunctionTypes.html#error.__type-6\",\"classes\":\"\",\"parent\":\"EventFunctionTypes.error\"},{\"kind\":128,\"name\":\"EventController\",\"url\":\"classes/EventController.html\",\"classes\":\"\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/EventController.html#constructor\",\"classes\":\"\",\"parent\":\"EventController\"},{\"kind\":2048,\"name\":\"register\",\"url\":\"classes/EventController.html#register\",\"classes\":\"\",\"parent\":\"EventController\"},{\"kind\":2048,\"name\":\"generateEvent\",\"url\":\"classes/EventController.html#generateEvent\",\"classes\":\"\",\"parent\":\"EventController\"},{\"kind\":32,\"name\":\"NEOVIS_DEFAULT_CONFIG\",\"url\":\"variables/NEOVIS_DEFAULT_CONFIG.html\",\"classes\":\"\"},{\"kind\":32,\"name\":\"NEOVIS_ADVANCED_CONFIG\",\"url\":\"variables/NEOVIS_ADVANCED_CONFIG.html\",\"classes\":\"\"},{\"kind\":4194304,\"name\":\"NumberOrInteger\",\"url\":\"types/NumberOrInteger.html\",\"classes\":\"\"},{\"kind\":4194304,\"name\":\"RecursiveMapToDist\",\"url\":\"types/RecursiveMapToDist.html\",\"classes\":\"\"},{\"kind\":4194304,\"name\":\"RecursiveMapTo\",\"url\":\"types/RecursiveMapTo.html\",\"classes\":\"\"},{\"kind\":4194304,\"name\":\"RecursiveMapToFunctionDist\",\"url\":\"types/RecursiveMapToFunctionDist.html\",\"classes\":\"\"},{\"kind\":4194304,\"name\":\"RecursiveMapToFunction\",\"url\":\"types/RecursiveMapToFunction.html\",\"classes\":\"\"},{\"kind\":4194304,\"name\":\"Cypher\",\"url\":\"types/Cypher.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"NeoVisAdvanceConfig\",\"url\":\"interfaces/NeoVisAdvanceConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"static\",\"url\":\"interfaces/NeoVisAdvanceConfig.html#static\",\"classes\":\"\",\"parent\":\"NeoVisAdvanceConfig\"},{\"kind\":1024,\"name\":\"cypher\",\"url\":\"interfaces/NeoVisAdvanceConfig.html#cypher\",\"classes\":\"\",\"parent\":\"NeoVisAdvanceConfig\"},{\"kind\":1024,\"name\":\"function\",\"url\":\"interfaces/NeoVisAdvanceConfig.html#function\",\"classes\":\"\",\"parent\":\"NeoVisAdvanceConfig\"},{\"kind\":256,\"name\":\"NonFlatNeoVisAdvanceConfig\",\"url\":\"interfaces/NonFlatNeoVisAdvanceConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"property\",\"url\":\"interfaces/NonFlatNeoVisAdvanceConfig.html#property\",\"classes\":\"\",\"parent\":\"NonFlatNeoVisAdvanceConfig\"},{\"kind\":1024,\"name\":\"static\",\"url\":\"interfaces/NonFlatNeoVisAdvanceConfig.html#static\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeoVisAdvanceConfig\"},{\"kind\":1024,\"name\":\"cypher\",\"url\":\"interfaces/NonFlatNeoVisAdvanceConfig.html#cypher\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeoVisAdvanceConfig\"},{\"kind\":1024,\"name\":\"function\",\"url\":\"interfaces/NonFlatNeoVisAdvanceConfig.html#function\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeoVisAdvanceConfig\"},{\"kind\":4194304,\"name\":\"NeovisDataConfig\",\"url\":\"types/NeovisDataConfig.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"LabelConfig\",\"url\":\"interfaces/LabelConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"[NEOVIS_ADVANCED_CONFIG]\",\"url\":\"interfaces/LabelConfig.html#_NEOVIS_ADVANCED_CONFIG_\",\"classes\":\"\",\"parent\":\"LabelConfig\"},{\"kind\":256,\"name\":\"RelationshipConfig\",\"url\":\"interfaces/RelationshipConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"[NEOVIS_ADVANCED_CONFIG]\",\"url\":\"interfaces/RelationshipConfig.html#_NEOVIS_ADVANCED_CONFIG_\",\"classes\":\"\",\"parent\":\"RelationshipConfig\"},{\"kind\":256,\"name\":\"Neo4jConfig\",\"url\":\"interfaces/Neo4jConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"serverUrl\",\"url\":\"interfaces/Neo4jConfig.html#serverUrl\",\"classes\":\"\",\"parent\":\"Neo4jConfig\"},{\"kind\":1024,\"name\":\"serverUser\",\"url\":\"interfaces/Neo4jConfig.html#serverUser\",\"classes\":\"\",\"parent\":\"Neo4jConfig\"},{\"kind\":1024,\"name\":\"serverPassword\",\"url\":\"interfaces/Neo4jConfig.html#serverPassword\",\"classes\":\"\",\"parent\":\"Neo4jConfig\"},{\"kind\":1024,\"name\":\"driverConfig\",\"url\":\"interfaces/Neo4jConfig.html#driverConfig\",\"classes\":\"\",\"parent\":\"Neo4jConfig\"},{\"kind\":256,\"name\":\"BaseNeovisConfig\",\"url\":\"interfaces/BaseNeovisConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"containerId\",\"url\":\"interfaces/BaseNeovisConfig.html#containerId\",\"classes\":\"\",\"parent\":\"BaseNeovisConfig\"},{\"kind\":1024,\"name\":\"serverDatabase\",\"url\":\"interfaces/BaseNeovisConfig.html#serverDatabase\",\"classes\":\"\",\"parent\":\"BaseNeovisConfig\"},{\"kind\":1024,\"name\":\"neo4j\",\"url\":\"interfaces/BaseNeovisConfig.html#neo4j\",\"classes\":\"\",\"parent\":\"BaseNeovisConfig\"},{\"kind\":1024,\"name\":\"visConfig\",\"url\":\"interfaces/BaseNeovisConfig.html#visConfig\",\"classes\":\"\",\"parent\":\"BaseNeovisConfig\"},{\"kind\":1024,\"name\":\"initialCypher\",\"url\":\"interfaces/BaseNeovisConfig.html#initialCypher\",\"classes\":\"\",\"parent\":\"BaseNeovisConfig\"},{\"kind\":1024,\"name\":\"consoleDebug\",\"url\":\"interfaces/BaseNeovisConfig.html#consoleDebug\",\"classes\":\"\",\"parent\":\"BaseNeovisConfig\"},{\"kind\":1024,\"name\":\"groupAsLabel\",\"url\":\"interfaces/BaseNeovisConfig.html#groupAsLabel\",\"classes\":\"\",\"parent\":\"BaseNeovisConfig\"},{\"kind\":1024,\"name\":\"nonFlat\",\"url\":\"interfaces/BaseNeovisConfig.html#nonFlat\",\"classes\":\"\",\"parent\":\"BaseNeovisConfig\"},{\"kind\":256,\"name\":\"NeovisConfig\",\"url\":\"interfaces/NeovisConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"nonFlat\",\"url\":\"interfaces/NeovisConfig.html#nonFlat\",\"classes\":\"\",\"parent\":\"NeovisConfig\"},{\"kind\":1024,\"name\":\"labels\",\"url\":\"interfaces/NeovisConfig.html#labels\",\"classes\":\"\",\"parent\":\"NeovisConfig\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/NeovisConfig.html#labels.__type\",\"classes\":\"\",\"parent\":\"NeovisConfig.labels\"},{\"kind\":1024,\"name\":\"[NEOVIS_DEFAULT_CONFIG]\",\"url\":\"interfaces/NeovisConfig.html#labels.__type._NEOVIS_DEFAULT_CONFIG_\",\"classes\":\"\",\"parent\":\"NeovisConfig.labels.__type\"},{\"kind\":1024,\"name\":\"relationships\",\"url\":\"interfaces/NeovisConfig.html#relationships\",\"classes\":\"\",\"parent\":\"NeovisConfig\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/NeovisConfig.html#relationships.__type-1\",\"classes\":\"\",\"parent\":\"NeovisConfig.relationships\"},{\"kind\":1024,\"name\":\"[NEOVIS_DEFAULT_CONFIG]\",\"url\":\"interfaces/NeovisConfig.html#relationships.__type-1._NEOVIS_DEFAULT_CONFIG_-1\",\"classes\":\"\",\"parent\":\"NeovisConfig.relationships.__type\"},{\"kind\":1024,\"name\":\"containerId\",\"url\":\"interfaces/NeovisConfig.html#containerId\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NeovisConfig\"},{\"kind\":1024,\"name\":\"serverDatabase\",\"url\":\"interfaces/NeovisConfig.html#serverDatabase\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NeovisConfig\"},{\"kind\":1024,\"name\":\"neo4j\",\"url\":\"interfaces/NeovisConfig.html#neo4j\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NeovisConfig\"},{\"kind\":1024,\"name\":\"visConfig\",\"url\":\"interfaces/NeovisConfig.html#visConfig\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NeovisConfig\"},{\"kind\":1024,\"name\":\"initialCypher\",\"url\":\"interfaces/NeovisConfig.html#initialCypher\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NeovisConfig\"},{\"kind\":1024,\"name\":\"consoleDebug\",\"url\":\"interfaces/NeovisConfig.html#consoleDebug\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NeovisConfig\"},{\"kind\":1024,\"name\":\"groupAsLabel\",\"url\":\"interfaces/NeovisConfig.html#groupAsLabel\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NeovisConfig\"},{\"kind\":4194304,\"name\":\"NonFlatLabelConfig\",\"url\":\"types/NonFlatLabelConfig.html\",\"classes\":\"\"},{\"kind\":4194304,\"name\":\"NonFlatRelationsipConfig\",\"url\":\"types/NonFlatRelationsipConfig.html\",\"classes\":\"\"},{\"kind\":256,\"name\":\"NonFlatNeovisConfig\",\"url\":\"interfaces/NonFlatNeovisConfig.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"nonFlat\",\"url\":\"interfaces/NonFlatNeovisConfig.html#nonFlat\",\"classes\":\"\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"defaultLabelConfig\",\"url\":\"interfaces/NonFlatNeovisConfig.html#defaultLabelConfig\",\"classes\":\"\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"defaultRelationshipsConfig\",\"url\":\"interfaces/NonFlatNeovisConfig.html#defaultRelationshipsConfig\",\"classes\":\"\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"labels\",\"url\":\"interfaces/NonFlatNeovisConfig.html#labels\",\"classes\":\"\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"relationships\",\"url\":\"interfaces/NonFlatNeovisConfig.html#relationships\",\"classes\":\"\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"containerId\",\"url\":\"interfaces/NonFlatNeovisConfig.html#containerId\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"serverDatabase\",\"url\":\"interfaces/NonFlatNeovisConfig.html#serverDatabase\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"neo4j\",\"url\":\"interfaces/NonFlatNeovisConfig.html#neo4j\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"visConfig\",\"url\":\"interfaces/NonFlatNeovisConfig.html#visConfig\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"initialCypher\",\"url\":\"interfaces/NonFlatNeovisConfig.html#initialCypher\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"consoleDebug\",\"url\":\"interfaces/NonFlatNeovisConfig.html#consoleDebug\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":1024,\"name\":\"groupAsLabel\",\"url\":\"interfaces/NonFlatNeovisConfig.html#groupAsLabel\",\"classes\":\"tsd-is-inherited\",\"parent\":\"NonFlatNeovisConfig\"},{\"kind\":256,\"name\":\"Node\",\"url\":\"interfaces/Node.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/Node.html#id\",\"classes\":\"\",\"parent\":\"Node\"},{\"kind\":1024,\"name\":\"raw\",\"url\":\"interfaces/Node.html#raw\",\"classes\":\"\",\"parent\":\"Node\"},{\"kind\":256,\"name\":\"Edge\",\"url\":\"interfaces/Edge.html\",\"classes\":\"\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/Edge.html#id\",\"classes\":\"\",\"parent\":\"Edge\"},{\"kind\":1024,\"name\":\"raw\",\"url\":\"interfaces/Edge.html#raw\",\"classes\":\"\",\"parent\":\"Edge\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"comment\"],\"fieldVectors\":[[\"name/0\",[0,40.535]],[\"comment/0\",[]],[\"name/1\",[1,40.535]],[\"comment/1\",[]],[\"name/2\",[2,45.643]],[\"comment/2\",[]],[\"name/3\",[3,45.643]],[\"comment/3\",[]],[\"name/4\",[4,30.98]],[\"comment/4\",[]],[\"name/5\",[5,34.657]],[\"comment/5\",[]],[\"name/6\",[0,40.535]],[\"comment/6\",[]],[\"name/7\",[6,26.184]],[\"comment/7\",[]],[\"name/8\",[1,40.535]],[\"comment/8\",[]],[\"name/9\",[6,26.184]],[\"comment/9\",[]],[\"name/10\",[7,40.535]],[\"comment/10\",[]],[\"name/11\",[8,45.643]],[\"comment/11\",[]],[\"name/12\",[9,45.643]],[\"comment/12\",[]],[\"name/13\",[10,45.643]],[\"comment/13\",[]],[\"name/14\",[11,45.643]],[\"comment/14\",[]],[\"name/15\",[12,45.643]],[\"comment/15\",[]],[\"name/16\",[13,45.643]],[\"comment/16\",[]],[\"name/17\",[14,45.643]],[\"comment/17\",[]],[\"name/18\",[15,45.643]],[\"comment/18\",[]],[\"name/19\",[16,45.643]],[\"comment/19\",[]],[\"name/20\",[17,45.643]],[\"comment/20\",[]],[\"name/21\",[18,45.643]],[\"comment/21\",[]],[\"name/22\",[19,45.643]],[\"comment/22\",[]],[\"name/23\",[20,40.535]],[\"comment/23\",[]],[\"name/24\",[21,45.643]],[\"comment/24\",[]],[\"name/25\",[22,45.643]],[\"comment/25\",[]],[\"name/26\",[23,45.643]],[\"comment/26\",[]],[\"name/27\",[24,45.643]],[\"comment/27\",[]],[\"name/28\",[25,45.643]],[\"comment/28\",[]],[\"name/29\",[26,45.643]],[\"comment/29\",[]],[\"name/30\",[27,45.643]],[\"comment/30\",[]],[\"name/31\",[28,45.643]],[\"comment/31\",[]],[\"name/32\",[20,40.535]],[\"comment/32\",[]],[\"name/33\",[29,45.643]],[\"comment/33\",[]],[\"name/34\",[30,45.643]],[\"comment/34\",[]],[\"name/35\",[31,45.643]],[\"comment/35\",[]],[\"name/36\",[32,45.643]],[\"comment/36\",[]],[\"name/37\",[33,45.643]],[\"comment/37\",[]],[\"name/38\",[34,45.643]],[\"comment/38\",[]],[\"name/39\",[35,37.171]],[\"comment/39\",[]],[\"name/40\",[6,26.184]],[\"comment/40\",[]],[\"name/41\",[4,30.98]],[\"comment/41\",[]],[\"name/42\",[36,37.171]],[\"comment/42\",[]],[\"name/43\",[6,26.184]],[\"comment/43\",[]],[\"name/44\",[4,30.98]],[\"comment/44\",[]],[\"name/45\",[37,45.643]],[\"comment/45\",[]],[\"name/46\",[38,45.643]],[\"comment/46\",[]],[\"name/47\",[39,45.643]],[\"comment/47\",[]],[\"name/48\",[40,45.643]],[\"comment/48\",[]],[\"name/49\",[41,45.643]],[\"comment/49\",[]],[\"name/50\",[42,45.643]],[\"comment/50\",[]],[\"name/51\",[43,45.643]],[\"comment/51\",[]],[\"name/52\",[44,45.643]],[\"comment/52\",[]],[\"name/53\",[45,45.643]],[\"comment/53\",[]],[\"name/54\",[46,45.643]],[\"comment/54\",[]],[\"name/55\",[47,45.643]],[\"comment/55\",[]],[\"name/56\",[48,45.643]],[\"comment/56\",[]],[\"name/57\",[49,45.643]],[\"comment/57\",[]],[\"name/58\",[50,45.643]],[\"comment/58\",[]],[\"name/59\",[51,45.643]],[\"comment/59\",[]],[\"name/60\",[6,26.184]],[\"comment/60\",[]],[\"name/61\",[52,45.643]],[\"comment/61\",[]],[\"name/62\",[6,26.184]],[\"comment/62\",[]],[\"name/63\",[53,45.643]],[\"comment/63\",[]],[\"name/64\",[6,26.184]],[\"comment/64\",[]],[\"name/65\",[54,45.643]],[\"comment/65\",[]],[\"name/66\",[6,26.184]],[\"comment/66\",[]],[\"name/67\",[55,45.643]],[\"comment/67\",[]],[\"name/68\",[7,40.535]],[\"comment/68\",[]],[\"name/69\",[56,45.643]],[\"comment/69\",[]],[\"name/70\",[57,45.643]],[\"comment/70\",[]],[\"name/71\",[4,30.98]],[\"comment/71\",[]],[\"name/72\",[5,34.657]],[\"comment/72\",[]],[\"name/73\",[58,45.643]],[\"comment/73\",[]],[\"name/74\",[59,45.643]],[\"comment/74\",[]],[\"name/75\",[60,45.643]],[\"comment/75\",[]],[\"name/76\",[61,45.643]],[\"comment/76\",[]],[\"name/77\",[62,45.643]],[\"comment/77\",[]],[\"name/78\",[63,37.171]],[\"comment/78\",[]],[\"name/79\",[64,45.643]],[\"comment/79\",[]],[\"name/80\",[65,40.535]],[\"comment/80\",[]],[\"name/81\",[63,37.171]],[\"comment/81\",[]],[\"name/82\",[66,40.535]],[\"comment/82\",[]],[\"name/83\",[67,45.643]],[\"comment/83\",[]],[\"name/84\",[68,45.643]],[\"comment/84\",[]],[\"name/85\",[65,40.535]],[\"comment/85\",[]],[\"name/86\",[63,37.171]],[\"comment/86\",[]],[\"name/87\",[66,40.535]],[\"comment/87\",[]],[\"name/88\",[69,45.643]],[\"comment/88\",[]],[\"name/89\",[70,45.643]],[\"comment/89\",[]],[\"name/90\",[5,34.657]],[\"comment/90\",[]],[\"name/91\",[71,45.643]],[\"comment/91\",[]],[\"name/92\",[5,34.657]],[\"comment/92\",[]],[\"name/93\",[72,45.643]],[\"comment/93\",[]],[\"name/94\",[73,45.643]],[\"comment/94\",[]],[\"name/95\",[74,45.643]],[\"comment/95\",[]],[\"name/96\",[75,45.643]],[\"comment/96\",[]],[\"name/97\",[76,45.643]],[\"comment/97\",[]],[\"name/98\",[77,45.643]],[\"comment/98\",[]],[\"name/99\",[78,37.171]],[\"comment/99\",[]],[\"name/100\",[79,37.171]],[\"comment/100\",[]],[\"name/101\",[80,37.171]],[\"comment/101\",[]],[\"name/102\",[81,37.171]],[\"comment/102\",[]],[\"name/103\",[82,37.171]],[\"comment/103\",[]],[\"name/104\",[83,37.171]],[\"comment/104\",[]],[\"name/105\",[84,37.171]],[\"comment/105\",[]],[\"name/106\",[85,37.171]],[\"comment/106\",[]],[\"name/107\",[86,45.643]],[\"comment/107\",[]],[\"name/108\",[85,37.171]],[\"comment/108\",[]],[\"name/109\",[35,37.171]],[\"comment/109\",[]],[\"name/110\",[6,26.184]],[\"comment/110\",[]],[\"name/111\",[4,30.98]],[\"comment/111\",[]],[\"name/112\",[36,37.171]],[\"comment/112\",[]],[\"name/113\",[6,26.184]],[\"comment/113\",[]],[\"name/114\",[4,30.98]],[\"comment/114\",[]],[\"name/115\",[78,37.171]],[\"comment/115\",[]],[\"name/116\",[79,37.171]],[\"comment/116\",[]],[\"name/117\",[80,37.171]],[\"comment/117\",[]],[\"name/118\",[81,37.171]],[\"comment/118\",[]],[\"name/119\",[82,37.171]],[\"comment/119\",[]],[\"name/120\",[83,37.171]],[\"comment/120\",[]],[\"name/121\",[84,37.171]],[\"comment/121\",[]],[\"name/122\",[87,45.643]],[\"comment/122\",[]],[\"name/123\",[88,45.643]],[\"comment/123\",[]],[\"name/124\",[89,45.643]],[\"comment/124\",[]],[\"name/125\",[85,37.171]],[\"comment/125\",[]],[\"name/126\",[90,45.643]],[\"comment/126\",[]],[\"name/127\",[91,45.643]],[\"comment/127\",[]],[\"name/128\",[35,37.171]],[\"comment/128\",[]],[\"name/129\",[36,37.171]],[\"comment/129\",[]],[\"name/130\",[78,37.171]],[\"comment/130\",[]],[\"name/131\",[79,37.171]],[\"comment/131\",[]],[\"name/132\",[80,37.171]],[\"comment/132\",[]],[\"name/133\",[81,37.171]],[\"comment/133\",[]],[\"name/134\",[82,37.171]],[\"comment/134\",[]],[\"name/135\",[83,37.171]],[\"comment/135\",[]],[\"name/136\",[84,37.171]],[\"comment/136\",[]],[\"name/137\",[92,45.643]],[\"comment/137\",[]],[\"name/138\",[93,40.535]],[\"comment/138\",[]],[\"name/139\",[94,40.535]],[\"comment/139\",[]],[\"name/140\",[95,45.643]],[\"comment/140\",[]],[\"name/141\",[93,40.535]],[\"comment/141\",[]],[\"name/142\",[94,40.535]],[\"comment/142\",[]]],\"invertedIndex\":[[\"__type\",{\"_index\":6,\"name\":{\"7\":{},\"9\":{},\"40\":{},\"43\":{},\"60\":{},\"62\":{},\"64\":{},\"66\":{},\"110\":{},\"113\":{}},\"comment\":{}}],[\"arrows\",{\"_index\":37,\"name\":{\"45\":{}},\"comment\":{}}],[\"baseneovisconfig\",{\"_index\":77,\"name\":{\"98\":{}},\"comment\":{}}],[\"caption\",{\"_index\":20,\"name\":{\"23\":{},\"32\":{}},\"comment\":{}}],[\"clearnetwork\",{\"_index\":12,\"name\":{\"15\":{}},\"comment\":{}}],[\"clickedge\",{\"_index\":53,\"name\":{\"63\":{}},\"comment\":{}}],[\"clickedgeevent\",{\"_index\":48,\"name\":{\"56\":{}},\"comment\":{}}],[\"clicknode\",{\"_index\":52,\"name\":{\"61\":{}},\"comment\":{}}],[\"clicknodeevent\",{\"_index\":47,\"name\":{\"55\":{}},\"comment\":{}}],[\"community\",{\"_index\":22,\"name\":{\"25\":{}},\"comment\":{}}],[\"completed\",{\"_index\":51,\"name\":{\"59\":{}},\"comment\":{}}],[\"completionevent\",{\"_index\":46,\"name\":{\"54\":{}},\"comment\":{}}],[\"console_debug\",{\"_index\":41,\"name\":{\"49\":{}},\"comment\":{}}],[\"consoledebug\",{\"_index\":83,\"name\":{\"104\":{},\"120\":{},\"135\":{}},\"comment\":{}}],[\"constructor\",{\"_index\":7,\"name\":{\"10\":{},\"68\":{}},\"comment\":{}}],[\"container_id\",{\"_index\":30,\"name\":{\"34\":{}},\"comment\":{}}],[\"containerid\",{\"_index\":78,\"name\":{\"99\":{},\"115\":{},\"130\":{}},\"comment\":{}}],[\"cypher\",{\"_index\":63,\"name\":{\"78\":{},\"81\":{},\"86\":{}},\"comment\":{}}],[\"default\",{\"_index\":44,\"name\":{\"52\":{}},\"comment\":{}}],[\"defaultlabelconfig\",{\"_index\":90,\"name\":{\"126\":{}},\"comment\":{}}],[\"defaultrelationshipsconfig\",{\"_index\":91,\"name\":{\"127\":{}},\"comment\":{}}],[\"driverconfig\",{\"_index\":76,\"name\":{\"97\":{}},\"comment\":{}}],[\"edge\",{\"_index\":95,\"name\":{\"140\":{}},\"comment\":{}}],[\"edges\",{\"_index\":9,\"name\":{\"12\":{}},\"comment\":{}}],[\"encrypted\",{\"_index\":42,\"name\":{\"50\":{}},\"comment\":{}}],[\"error\",{\"_index\":54,\"name\":{\"65\":{}},\"comment\":{}}],[\"errorevent\",{\"_index\":49,\"name\":{\"57\":{}},\"comment\":{}}],[\"eventcontroller\",{\"_index\":55,\"name\":{\"67\":{}},\"comment\":{}}],[\"eventfunctiontypes\",{\"_index\":50,\"name\":{\"58\":{}},\"comment\":{}}],[\"font\",{\"_index\":25,\"name\":{\"28\":{}},\"comment\":{}}],[\"function\",{\"_index\":66,\"name\":{\"82\":{},\"87\":{}},\"comment\":{}}],[\"generateevent\",{\"_index\":57,\"name\":{\"70\":{}},\"comment\":{}}],[\"groupaslabel\",{\"_index\":84,\"name\":{\"105\":{},\"121\":{},\"136\":{}},\"comment\":{}}],[\"hierarchical\",{\"_index\":38,\"name\":{\"46\":{}},\"comment\":{}}],[\"hierarchical_sort_method\",{\"_index\":39,\"name\":{\"47\":{}},\"comment\":{}}],[\"id\",{\"_index\":93,\"name\":{\"138\":{},\"141\":{}},\"comment\":{}}],[\"image\",{\"_index\":24,\"name\":{\"27\":{}},\"comment\":{}}],[\"initial_cypher\",{\"_index\":40,\"name\":{\"48\":{}},\"comment\":{}}],[\"initialcypher\",{\"_index\":82,\"name\":{\"103\":{},\"119\":{},\"134\":{}},\"comment\":{}}],[\"labelconfig\",{\"_index\":70,\"name\":{\"89\":{}},\"comment\":{}}],[\"labels\",{\"_index\":35,\"name\":{\"39\":{},\"109\":{},\"128\":{}},\"comment\":{}}],[\"migratefromoldconfig\",{\"_index\":2,\"name\":{\"2\":{}},\"comment\":{}}],[\"neo4j\",{\"_index\":80,\"name\":{\"101\":{},\"117\":{},\"132\":{}},\"comment\":{}}],[\"neo4jconfig\",{\"_index\":72,\"name\":{\"93\":{}},\"comment\":{}}],[\"neovis\",{\"_index\":3,\"name\":{\"3\":{}},\"comment\":{}}],[\"neovis_advanced_config\",{\"_index\":5,\"name\":{\"5\":{},\"72\":{},\"90\":{},\"92\":{}},\"comment\":{}}],[\"neovis_default_config\",{\"_index\":4,\"name\":{\"4\":{},\"41\":{},\"44\":{},\"71\":{},\"111\":{},\"114\":{}},\"comment\":{}}],[\"neovisadvanceconfig\",{\"_index\":64,\"name\":{\"79\":{}},\"comment\":{}}],[\"neovisconfig\",{\"_index\":86,\"name\":{\"107\":{}},\"comment\":{}}],[\"neovisdataconfig\",{\"_index\":69,\"name\":{\"88\":{}},\"comment\":{}}],[\"neovisevents\",{\"_index\":45,\"name\":{\"53\":{}},\"comment\":{}}],[\"network\",{\"_index\":10,\"name\":{\"13\":{}},\"comment\":{}}],[\"node\",{\"_index\":92,\"name\":{\"137\":{}},\"comment\":{}}],[\"nodes\",{\"_index\":8,\"name\":{\"11\":{}},\"comment\":{}}],[\"nonflat\",{\"_index\":85,\"name\":{\"106\":{},\"108\":{},\"125\":{}},\"comment\":{}}],[\"nonflatlabelconfig\",{\"_index\":87,\"name\":{\"122\":{}},\"comment\":{}}],[\"nonflatneovisadvanceconfig\",{\"_index\":67,\"name\":{\"83\":{}},\"comment\":{}}],[\"nonflatneovisconfig\",{\"_index\":89,\"name\":{\"124\":{}},\"comment\":{}}],[\"nonflatrelationsipconfig\",{\"_index\":88,\"name\":{\"123\":{}},\"comment\":{}}],[\"numberorinteger\",{\"_index\":58,\"name\":{\"73\":{}},\"comment\":{}}],[\"objecttotitlehtml\",{\"_index\":0,\"name\":{\"0\":{},\"6\":{}},\"comment\":{}}],[\"objecttotitlestring\",{\"_index\":1,\"name\":{\"1\":{},\"8\":{}},\"comment\":{}}],[\"oldlabelconfig\",{\"_index\":19,\"name\":{\"22\":{}},\"comment\":{}}],[\"oldneovisconfig\",{\"_index\":29,\"name\":{\"33\":{}},\"comment\":{}}],[\"oldrelationshipconfig\",{\"_index\":27,\"name\":{\"30\":{}},\"comment\":{}}],[\"property\",{\"_index\":68,\"name\":{\"84\":{}},\"comment\":{}}],[\"raw\",{\"_index\":94,\"name\":{\"139\":{},\"142\":{}},\"comment\":{}}],[\"recursivemapto\",{\"_index\":60,\"name\":{\"75\":{}},\"comment\":{}}],[\"recursivemaptodist\",{\"_index\":59,\"name\":{\"74\":{}},\"comment\":{}}],[\"recursivemaptofunction\",{\"_index\":62,\"name\":{\"77\":{}},\"comment\":{}}],[\"recursivemaptofunctiondist\",{\"_index\":61,\"name\":{\"76\":{}},\"comment\":{}}],[\"register\",{\"_index\":56,\"name\":{\"69\":{}},\"comment\":{}}],[\"registeronevent\",{\"_index\":13,\"name\":{\"16\":{}},\"comment\":{}}],[\"reinit\",{\"_index\":14,\"name\":{\"17\":{}},\"comment\":{}}],[\"relationshipconfig\",{\"_index\":71,\"name\":{\"91\":{}},\"comment\":{}}],[\"relationships\",{\"_index\":36,\"name\":{\"42\":{},\"112\":{},\"129\":{}},\"comment\":{}}],[\"reload\",{\"_index\":15,\"name\":{\"18\":{}},\"comment\":{}}],[\"render\",{\"_index\":11,\"name\":{\"14\":{}},\"comment\":{}}],[\"renderwithcypher\",{\"_index\":17,\"name\":{\"20\":{}},\"comment\":{}}],[\"server_database\",{\"_index\":34,\"name\":{\"38\":{}},\"comment\":{}}],[\"server_password\",{\"_index\":33,\"name\":{\"37\":{}},\"comment\":{}}],[\"server_url\",{\"_index\":31,\"name\":{\"35\":{}},\"comment\":{}}],[\"server_user\",{\"_index\":32,\"name\":{\"36\":{}},\"comment\":{}}],[\"serverdatabase\",{\"_index\":79,\"name\":{\"100\":{},\"116\":{},\"131\":{}},\"comment\":{}}],[\"serverpassword\",{\"_index\":75,\"name\":{\"96\":{}},\"comment\":{}}],[\"serverurl\",{\"_index\":73,\"name\":{\"94\":{}},\"comment\":{}}],[\"serveruser\",{\"_index\":74,\"name\":{\"95\":{}},\"comment\":{}}],[\"size\",{\"_index\":21,\"name\":{\"24\":{}},\"comment\":{}}],[\"sizecypher\",{\"_index\":23,\"name\":{\"26\":{}},\"comment\":{}}],[\"stabilize\",{\"_index\":16,\"name\":{\"19\":{}},\"comment\":{}}],[\"static\",{\"_index\":65,\"name\":{\"80\":{},\"85\":{}},\"comment\":{}}],[\"thickness\",{\"_index\":28,\"name\":{\"31\":{}},\"comment\":{}}],[\"title_properties\",{\"_index\":26,\"name\":{\"29\":{}},\"comment\":{}}],[\"trust\",{\"_index\":43,\"name\":{\"51\":{}},\"comment\":{}}],[\"updatewithcypher\",{\"_index\":18,\"name\":{\"21\":{}},\"comment\":{}}],[\"visconfig\",{\"_index\":81,\"name\":{\"102\":{},\"118\":{},\"133\":{}},\"comment\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file diff --git a/docs/classes/EventController.html b/docs/classes/EventController.html index f84bb61..7f45c0f 100644 --- a/docs/classes/EventController.html +++ b/docs/classes/EventController.html @@ -20,7 +20,7 @@

Hierarchy

  • EventController
+
  • Defined in src/events.ts:17
  • @@ -44,7 +44,7 @@
    +
  • Defined in src/events.ts:20
  • Methods

    @@ -70,7 +70,7 @@
    values: Returns void
    +
  • Defined in src/events.ts:47
  • +
  • Defined in src/events.ts:34
  • +
  • Defined in src/neovis.ts:101
  • Accessors

    @@ -148,7 +148,7 @@

    Link

    htt

    Returns DataSet<Edge, "id">

    +
  • Defined in src/neovis.ts:126
  • +
  • Defined in src/neovis.ts:141
  • +
  • Defined in src/neovis.ts:118
  • Methods

    @@ -184,7 +184,7 @@
    +
  • Defined in src/neovis.ts:544
  • +
  • Defined in src/neovis.ts:555
  • Returns void

    +
  • Defined in src/neovis.ts:564
  • +
  • Defined in src/neovis.ts:572
    • @@ -248,7 +248,7 @@

      Parameters

      Optional query: string

    Returns void

    +
  • Defined in src/neovis.ts:427
    • @@ -263,7 +263,7 @@

      Parameters

      query: string

    Returns void

    +
  • Defined in src/neovis.ts:589
  • +
  • Defined in src/neovis.ts:580
    • @@ -289,7 +289,7 @@

      Parameters

      query: string

    Returns void

    +
  • Defined in src/neovis.ts:601
  • +
  • Defined in src/events.ts:7
  • +
  • Defined in src/types.ts:105
  • visConfig?: Options
    @@ -100,7 +111,7 @@

    https://visjs.github.io/vis-network/docs/network/#options

    +
  • Defined in src/types.ts:114
  • +
  • Defined in src/events.ts:13
  • clickNode: ((event) => void)
    @@ -80,7 +80,7 @@
    nodenodeId: number

    Returns void

    +
  • Defined in src/events.ts:12
  • completed: ((event) => void)
    @@ -101,7 +101,7 @@
    event: recordCount: number

    Returns void

    +
  • Defined in src/events.ts:11
  • error: ((event) => void)
    @@ -122,7 +122,7 @@
    event: error: Error

    Returns void

    +
  • Defined in src/events.ts:14
  • +
  • Defined in src/types.ts:93
  • serverPassword?: string
    +
  • Defined in src/types.ts:89
  • serverUrl?: string
    @@ -57,12 +57,12 @@

    Example

    bolt
    +
  • Defined in src/types.ts:87
  • serverUser?: string
    +
  • Defined in src/types.ts:88
  • +
  • Defined in src/types.ts:38
  • +
  • Defined in src/types.ts:215
  • relationships?: {
        [NEOVIS_DEFAULT_CONFIG]?: RelationshipConfig;
        [relationship: string]: RelationshipConfig;
    }
    @@ -124,7 +136,7 @@
    [
  • Optional [NEOVIS_DEFAULT_CONFIG]?: RelationshipConfig
  • +
  • Defined in src/types.ts:257
  • serverDatabase?: string
    @@ -135,7 +147,7 @@

    Default

    neo4j
     
    +
  • Defined in src/types.ts:105
  • visConfig?: Options
    @@ -145,7 +157,7 @@

    Link

    Inherited from BaseNeovisConfig.visConfig

    +
  • Defined in src/types.ts:114
  • +
  • Defined in src/types.ts:323
  • relationships?: Record<string, NonFlatRelationsipConfig>
    +
  • Defined in src/types.ts:327
  • serverDatabase?: string
    @@ -127,7 +139,7 @@

    Default

    neo4j
     
    +
  • Defined in src/types.ts:105
  • visConfig?: Options
    @@ -137,7 +149,7 @@

    Link

    Inherited from BaseNeovisConfig.visConfig

    +
  • Defined in src/types.ts:114
  • +
  • Defined in src/neovis.ts:640
  • server_database: string
    +
  • Defined in src/neovis.ts:635
  • server_password: string
    +
  • Defined in src/neovis.ts:634
  • server_url: string
    +
  • Defined in src/neovis.ts:632
  • server_user: string
    +
  • Defined in src/neovis.ts:633
  • trust?: "TRUST_ALL_CERTIFICATES" | "TRUST_SYSTEM_CA_SIGNED_CERTIFICATES"
    +
  • Defined in src/neovis.ts:650
  • Cypher quarry

    +
  • Defined in src/types.ts:32
  • +
  • Defined in src/types.ts:263
  • +
  • Defined in src/types.ts:264
  • +
  • Defined in src/types.ts:7
  • +
  • Defined in src/types.ts:6
  • +
  • Defined in src/types.ts:5